@font-face {
  font-family: Literata;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/literata-cyrillic-500.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Literata;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/literata-cyrillic-600.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Literata;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/literata-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF;
}

@font-face {
  font-family: Literata;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/literata-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF;
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/montserrat-cyrillic-400.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/montserrat-cyrillic-500.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/montserrat-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF;
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/montserrat-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF;
}

:root {
  --paper: #fbf6ee;
  --ink: #2c261f;
  --muted: #6f655b;
  --gold: #b8893e;
  --gold-deep: #8d6730;
  --line: rgba(140, 106, 50, 0.22);
  --card: rgba(255, 252, 247, 0.78);
  --display: Literata, Georgia, serif;
  --sans: Montserrat, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 12% 8%, rgba(232, 196, 122, 0.45), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(226, 184, 160, 0.35), transparent 26%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 40;
  padding: 8px 12px;
  background: var(--gold);
  color: #fffaf3;
}

.skip:focus {
  top: 12px;
}

.glow {
  position: fixed;
  z-index: 0;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(30px);
  pointer-events: none;
  opacity: 0.55;
}

.glow-a {
  top: 18%;
  left: -80px;
  background: rgba(232, 196, 122, 0.55);
  animation: drift 18s ease-in-out infinite;
}

.glow-b {
  right: -60px;
  bottom: 10%;
  background: rgba(226, 176, 150, 0.45);
  animation: drift 22s ease-in-out infinite reverse;
}

.wrap {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 246, 238, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner,
.hero-grid,
.approach-grid,
.book,
.service,
.about {
  min-width: 0;
}

.header-inner > *,
.hero-grid > *,
.book > *,
.service > * {
  min-width: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.brand-mark {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #fff4d8 0 28%, #e2b85a 29% 46%, transparent 47%),
    conic-gradient(from 20deg, transparent 0 18deg, #c4964a 0 28deg, transparent 0 64deg, #c4964a 0 74deg, transparent 0 120deg, #c4964a 0 130deg, transparent 0 180deg, #c4964a 0 190deg, transparent 0 240deg, #c4964a 0 250deg, transparent 0 300deg, #c4964a 0 310deg, transparent 0 360deg);
  animation: spin 28s linear infinite;
}

.nav,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.nav {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.nav a:not(.button) {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.nav a:not(.button):hover,
.nav a:not(.button):focus-visible {
  color: var(--gold-deep);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(110deg, #e7c98a 0%, #c4964a 42%, #f6e2b6 50%, #b8893e 58%, #e7c98a 100%);
  background-size: 220% 100%;
  color: #2a2118;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(184, 137, 62, 0.28);
  animation: shine 7s ease infinite;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.btn-short {
  display: none;
}

.hero {
  position: relative;
  z-index: 1;
  padding: 42px 0 20px;
  overflow: hidden;
}

.sun {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 244, 214, 0.95) 0 18%, rgba(226, 184, 90, 0.55) 19% 34%, transparent 35%),
    repeating-conic-gradient(from 0deg, rgba(226, 184, 90, 0.45) 0 8deg, transparent 8deg 24deg);
  animation: spin 48s linear infinite;
  pointer-events: none;
}

.lotus {
  position: absolute;
  left: 4%;
  bottom: 8%;
  width: min(280px, 40vw);
  fill: none;
  stroke: rgba(184, 137, 62, 0.45);
  stroke-width: 1.4;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.7fr);
  gap: 32px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h1 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(40px, 5.2vw, 72px);
}

.promise {
  max-width: min(18em, 100%);
  margin: 16px 0 0;
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 500;
  line-height: 1.25;
}

.lead,
.about-text {
  max-width: 40rem;
  margin: 16px 0 0;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  margin-top: 26px;
}

.quiet,
.about-note,
.intro {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.portrait {
  position: relative;
  min-height: 380px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 248, 230, 0.9), transparent 36%),
    linear-gradient(165deg, #f6e2b8, #e7b4a0 55%, #c4964a);
  box-shadow: 0 24px 50px rgba(140, 106, 50, 0.18);
  animation: float 9s ease-in-out infinite;
}

.portrait img,
.portrait-fallback {
  width: 100%;
  min-height: 380px;
}

.portrait img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.portrait img[hidden] {
  display: none;
}

.portrait-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.portrait-letter {
  font-family: var(--display);
  font-size: 92px;
  line-height: 0.8;
  color: #fffaf3;
}

.section {
  position: relative;
  z-index: 1;
  padding: 64px 0;
  scroll-margin-top: 48px;
}

h2 {
  margin: 0 0 18px;
  max-width: 14em;
  font-size: clamp(32px, 4vw, 48px);
}

.about-text {
  font-size: 20px;
}

.approach-grid,
.result-grid {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.approach-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.result-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.book {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  backdrop-filter: blur(10px);
}

.card {
  padding: 22px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(184, 137, 62, 0.16);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 28px;
}

.card p,
.service p,
.themes li {
  margin: 0;
  color: var(--muted);
}

.services {
  margin-top: 12px;
}

.service {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.service span {
  color: var(--gold);
  font-family: var(--display);
  font-size: 28px;
}

.service h3 {
  margin: 0 0 6px;
  font-size: 32px;
}

.themes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.themes li {
  padding: 18px 18px 18px 20px;
  border-radius: 18px;
  background: rgba(255, 252, 247, 0.7);
  box-shadow: inset 3px 0 0 var(--gold);
  color: var(--ink);
  font-weight: 500;
}

.themes li span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 400;
}

.faq {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.contact-apps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.app-link {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 16px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

a.app-link {
  cursor: pointer;
}

a.app-link:hover,
a.app-link:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(184, 137, 62, 0.16);
}

.app-mark {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.app-mark-mail {
  padding: 7px;
  border-radius: 50%;
  background: #2a2118;
  color: #fffaf3;
}

.legal-copy,
.legal-note {
  max-width: 52em;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.legal-copy {
  margin-top: 16px;
}

.book {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  padding: 28px;
}

.book.is-sent,
.book-single {
  grid-template-columns: 1fr;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
  box-shadow: none;
}

.consent a,
.site-footer a,
.prose a {
  color: var(--gold-deep);
}

.form-error {
  margin: 0 0 12px;
  color: #8c2f24;
}

.form-success {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
}

.form-success:focus {
  outline: none;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 8px 0 32px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner,
.footer-inner p {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
}

.footer-inner p {
  margin: 0;
}

.prose h1 {
  margin: 8px 0 16px;
  font-family: var(--display);
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.15;
}

.prose h2 {
  margin: 28px 0 10px;
  max-width: 18em;
  font-size: clamp(26px, 3vw, 32px);
}

.prose p,
.prose ol,
.prose ul {
  max-width: 40rem;
}

.prose ol,
.prose ul {
  margin: 8px 0 0;
  padding-left: 1.2em;
}

.prose li {
  margin: 6px 0;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(24px, -18px, 0);
  }
}

@keyframes shine {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  .hero-grid,
  .approach-grid,
  .result-grid,
  .book,
  .themes,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-wrap: wrap;
    align-items: center;
    row-gap: 2px;
    min-height: 0;
    padding: 10px 0 8px;
  }

  .nav {
    display: contents;
  }

  .nav-links {
    order: 3;
    flex: 1 0 100%;
    flex-wrap: nowrap;
    gap: 14px;
    overflow-x: auto;
    padding: 6px 0 2px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
  }

  .nav .button {
    order: 2;
  }

  .section {
    scroll-margin-top: 96px;
  }

  .brand {
    font-size: 14px;
  }

  h1 {
    font-size: clamp(34px, 9vw, 48px);
  }

  .btn-wide {
    display: none;
  }

  .btn-short {
    display: inline;
  }

  .sun {
    width: 190px;
    height: 190px;
    top: -30px;
    right: -110px;
    opacity: 0.85;
  }

  .lotus {
    display: none;
  }

  .portrait {
    width: min(100%, 280px);
    justify-self: center;
    aspect-ratio: 3 / 4;
    min-height: 0;
    border-radius: 24px;
  }

  .portrait img,
  .portrait-fallback {
    min-height: 0;
    height: 100%;
  }

  .book {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
