/* ============================================================
   TOKENS
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ---- Палитра: прохладная, с индиго и пыльной розой ---- */
  --bg:            #F6F7F9;
  --bg-alt:        #EAEDF2;
  --surface:       #FFFFFF;
  --ink:           #17202A;
  --muted:         #66727C;
  --subtle:        #98A1A9;

  --accent:        #3D4C7C;
  --accent-dark:   #2C3860;
  --accent-soft:   #E3E8F4;

  --rose:          #B47B7B;
  --rose-soft:     #F4E9E9;

  --line:          rgba(23, 32, 42, .09);
  --line-strong:   rgba(23, 32, 42, .18);

  /* ---- Формы ---- */
  --radius-sm:     6px;
  --radius:        10px;
  --radius-lg:     16px;

  --container:     1180px;

  /* ---- Тени ---- */
  --shadow-xs:     0 1px 2px rgba(23, 32, 42, .04);
  --shadow-sm:     0 8px 20px -14px rgba(23, 32, 42, .16);
  --shadow:        0 24px 48px -28px rgba(23, 32, 42, .22);

  /* ---- Типографика ---- */
  --font-head:     'Cormorant Garamond', Georgia, serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 500; }
h3 { font-size: 1.55rem; font-weight: 500; }
h4 { font-size: 1.25rem; font-weight: 500; }

p { font-size: 1rem; }

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}

/* ============================================================
   EYEBROW (надзаголовок)
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow b {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--rose);
  text-transform: none;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .01em;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .2s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}
.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-full { width: 100%; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 20px 0;
  transition: padding .3s ease, background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(246, 247, 249, .9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  padding: 14px 0;
  border-bottom-color: var(--line);
}

.nav-inner {
  width: min(var(--container), 92%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.logo-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .02em;
  flex-shrink: 0;
  object-fit: cover;
  overflow: hidden;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-text strong {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}
.logo-text em {
  font-family: var(--font-body);
  font-style: normal;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: .88rem;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  color: var(--muted);
  transition: color .25s;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .3s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-mobile-cta { display: none; }
.burger { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 170px 0 110px;
  overflow: hidden;
  isolation: isolate;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 75%);
  opacity: .7;
}

.hero-inner {
  width: min(var(--container), 92%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 80px;
  align-items: center;
}

.hero h1 { margin-bottom: 26px; }
.hero h1 em {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: 0;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 32px;
  margin-right: 32px;
  border-right: 1px solid var(--line);
}
.hero-stats > div:last-child {
  border-right: 0;
  padding-right: 0;
  margin-right: 0;
}
.hero-stats strong {
  font-family: var(--font-head);
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.hero-stats span {
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .01em;
  max-width: 160px;
  line-height: 1.35;
}

/* ---- Hero media ---- */
.hero-media {
  position: relative;
  aspect-ratio: 4/5;
}
.hero-photo {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.hero-photo:hover img { transform: scale(1.03); }

.hero-tag {
  position: absolute;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: .78rem;
  font-weight: 500;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  letter-spacing: .01em;
}
.hero-tag-1 { top: 22px; left: -22px; }
.hero-tag-2 { bottom: 22px; right: -22px; }

/* ============================================================
   SECTION
   ============================================================ */
.section { padding: 120px 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 620px;
  margin-bottom: 64px;
}
.section-head p {
  color: var(--muted);
  margin-top: 16px;
  font-size: 1rem;
  max-width: 520px;
}
.section-head h2 { margin-bottom: 0; }

/* ============================================================
   REQUESTS
   ============================================================ */
.requests-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.request-card {
  position: relative;
  background: var(--surface);
  padding: 40px 36px 44px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease;
}
.request-card:hover { background: #FBFCFD; }

.request-card-wide {
  grid-column: 1 / -1;
}

.request-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 22px;
  transition: background .3s ease, transform .3s ease;
}
.request-card:hover .request-icon {
  background: var(--rose-soft);
  transform: translateY(-2px);
}

.request-card h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.request-card ul {
  display: grid;
  gap: 8px;
  font-size: .93rem;
  color: var(--muted);
}
.request-card ul li {
  position: relative;
  padding-left: 20px;
  line-height: 1.55;
}
.request-card ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 11px;
  width: 8px; height: 1px;
  background: var(--accent);
}

.request-wide-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.request-wide-list span {
  padding: 7px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink);
}

/* ============================================================
   METHODS
   ============================================================ */
.methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 36px;
}
.method-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 40px;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.method-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}
.method-tag {
  display: inline-block;
  padding: 5px 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
}
.method-card h3 { margin-bottom: 22px; }
.method-quote {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  padding-left: 22px;
  border-left: 2px solid var(--rose);
  margin-bottom: 24px;
}
.method-card p:not(.method-quote) {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 14px;
}

.important {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 44px 48px;
}
.important-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.important p {
  color: var(--muted);
  font-size: .96rem;
  margin-bottom: 14px;
  line-height: 1.7;
}
.important p:last-child { margin-bottom: 0; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 80px;
  align-items: start;
}
.about-media {
  position: sticky;
  top: 120px;
}
.about-photo {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
}
.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.about-badge {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  margin-top: 14px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  transition: border-color .25s ease, transform .25s ease;
}
.about-badge:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.about-badge-label {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}
.about-badge-action {
  font-size: .82rem;
  color: var(--accent);
  font-weight: 500;
}

.about-text h2 { margin-bottom: 24px; }
.about-text > p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 1rem;
}

.own-therapy {
  margin-top: 36px;
  padding: 32px 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.own-therapy h4 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.own-therapy p {
  color: var(--muted);
  font-size: .94rem;
  margin-bottom: 12px;
  line-height: 1.7;
}
.own-therapy p:last-child { margin-bottom: 0; }

/* Карточка-ссылка на Telegram-канал в разделе «Обо мне» */
.about-tg {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.about-tg:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.about-tg-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.about-tg-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.about-tg-text strong {
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}
.about-tg-text em {
  font-style: normal;
  font-size: .8rem;
  color: var(--muted);
}
.about-tg-arrow {
  color: var(--accent);
  font-size: 1.1rem;
  transition: transform .25s ease;
  flex-shrink: 0;
}
.about-tg:hover .about-tg-arrow {
  transform: translateX(4px);
}

/* ============================================================
   VALUES
   ============================================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.value-card {
  background: var(--surface);
  padding: 44px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.value-num {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--rose);
  margin-bottom: 24px;
  line-height: 1;
}
.value-card h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.value-card p {
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.7;
}

/* ============================================================
   PRICE
   ============================================================ */
.price-card {
  background: var(--bg-alt);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 60px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Убираем декоративную сетку — на светлом фоне она лишняя */
.price-card::before {
  display: none;
}

.price-left { position: relative; z-index: 1; }
.price-left .eyebrow { color: var(--accent); }
.price-left .eyebrow b { color: var(--rose); }
.price-left h2 {
  color: var(--ink);
  margin-bottom: 22px;
}
.price-desc {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 1rem;
  max-width: 400px;
}
.price-features {
  display: grid;
  gap: 10px;
  font-size: .92rem;
  color: var(--muted);
}
.price-features li {
  position: relative;
  padding-left: 22px;
}
.price-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 11px;
  width: 10px; height: 1px;
  background: var(--rose);
}
.price-right {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  text-align: center;
}
.price-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 4px;
}
.price-num {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -.01em;
}
.price-alt {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--rose);
}
.price-note {
  font-size: .78rem;
  color: var(--subtle);
}

/* Кнопка на светлой карточке — обычная, акцентная */
.price-card .btn-primary {
  background: var(--accent);
  border: 0;
  color: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.price-card .btn-primary:hover {
  background: var(--accent-dark);
  border-color: transparent;
  transform: translateY(-1px);
}
/* ============================================================
   FAQ
   ============================================================ */
.faq-container { max-width: 900px; }
.faq-list {
  display: grid;
  border-top: 1px solid var(--line);
}
.faq-item {
  background: transparent;
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  transition: padding .3s ease;
}
.faq-item[open] { padding-bottom: 30px; }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  line-height: 1.3;
  transition: color .25s ease;
}
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg) translateY(-4px);
  transition: transform .3s ease;
  margin-right: 4px;
}
.faq-item[open] summary::after {
  transform: rotate(-135deg) translateY(-4px);
}

.faq-body {
  margin-top: 18px;
  animation: fadeIn .35s ease;
  max-width: 720px;
}
.faq-body p {
  color: var(--muted);
  font-size: .96rem;
  margin-bottom: 12px;
  line-height: 1.75;
}
.faq-body p:last-child { margin-bottom: 0; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rules-head {
  margin: 96px 0 40px;
  max-width: 620px;
}

.rules-list .faq-item summary {
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 500;
}
.rules-list .faq-item summary .num {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--rose);
  margin-right: 14px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.section-contact {
  background: var(--bg-alt);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 560px;
}
.contact-text h2 { margin-bottom: 20px; }
.contact-text > p {
  color: var(--muted);
  margin-bottom: 34px;
  font-size: 1rem;
}

.socials {
  display: grid;
  gap: 10px;
  margin-bottom: 32px;
}
.socials a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .25s ease, transform .25s ease;
}
.socials a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.social-icon {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.social-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.social-text strong {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
}
.social-text em {
  font-style: normal;
  font-size: .82rem;
  color: var(--muted);
}

.contact-info {
  display: grid;
  gap: 10px;
}
.contact-info li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .9rem;
  color: var(--muted);
}
.contact-info span {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 44px 0;
  background: var(--ink);
  color: rgba(255, 255, 255, .75);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: .85rem;
}
.footer .logo-mark {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}
.footer .logo-text strong { color: #fff; }
.footer .logo-text em { color: rgba(255, 255, 255, .5); }
.footer p { color: rgba(255, 255, 255, .55); font-size: .82rem; }
.footer-note { color: rgba(255, 255, 255, .4) !important; font-size: .78rem !important; }

/* ============================================================
   MODAL
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 32, 42, .5);
  backdrop-filter: blur(6px);
  animation: fadeIn .3s ease;
}
.modal-content {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 44px;
  max-width: 480px;
  width: 100%;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: modalIn .35s cubic-bezier(.2, .9, .3, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .9rem;
  color: var(--muted);
  transition: background .2s, color .2s;
}
.modal-close:hover { background: var(--bg-alt); color: var(--ink); }
.modal-content h3 { margin-bottom: 12px; font-size: 1.6rem; }
.modal-content > p {
  color: var(--muted);
  font-size: .93rem;
  margin-bottom: 24px;
}
.modal-note {
  font-size: .78rem;
  color: var(--subtle);
  text-align: center;
  margin-top: 14px;
  margin-bottom: 0 !important;
}

/* ============================================================
   REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .9, .3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .hero-media { max-width: 440px; margin-inline: auto; }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .about-media {
    position: relative;
    top: 0;
    max-width: 460px;
    margin-inline: auto;
  }
  .values-grid { grid-template-columns: 1fr; }
  .requests-grid { grid-template-columns: 1fr; }
  .methods-grid { grid-template-columns: 1fr; }
  .price-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 36px;
  }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 44px; }
  .rules-head { margin: 70px 0 30px; }

  .nav-cta { display: none; }
  .nav { padding: 14px 0; transition: background .3s ease, border-color .3s ease; }
  .nav.scrolled { padding: 14px 0; }

  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    position: relative;
    z-index: 101;
    flex-shrink: 0;
  }
  .burger span {
    width: 22px; height: 1.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
    margin-inline: auto;
  }
  .burger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .burger.active span:nth-child(2) { opacity: 0; }
  .burger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 85vh;
    background: var(--bg);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 40px 24px;
    gap: 26px;
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 500;

    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform .3s ease, opacity .3s ease, visibility .3s;
    box-shadow: 0 24px 40px -20px rgba(23, 32, 42, .2);
    overflow-y: auto;
    z-index: 99;
    border-top: 1px solid var(--line);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-links a { color: var(--ink); }
  .nav-links a::after { display: none; }

  .nav-mobile-cta {
    display: block;
    margin-top: 8px;
    width: 100%;
    max-width: 260px;
    font-family: var(--font-body);
    font-size: .95rem;
  }

  .hero { padding: 130px 0 70px; }
  .hero-grid-bg { background-size: 48px 48px; }
  .hero-stats { gap: 0; }
  .hero-stats > div {
    padding-right: 18px;
    margin-right: 18px;
  }
  .hero-stats strong { font-size: 1.35rem; }
  .hero-stats span { font-size: .72rem; max-width: 130px; }
  .hero-tag { font-size: .72rem; padding: 6px 10px; }
  .hero-tag-1 { left: -8px; top: 14px; }
  .hero-tag-2 { right: -8px; bottom: 14px; }

  .request-card { padding: 32px 26px 36px; }
  .value-card { padding: 34px 28px; }
  .method-card { padding: 32px 26px; }
  .important { padding: 32px 26px; }
  .price-card { padding: 36px 24px; }
  .price-num { font-size: 2.4rem; }
  .faq-item { padding: 20px 0; }
  .faq-item summary { font-size: 1.15rem; }
  .rules-list .faq-item summary { font-size: 1rem; }
  .modal-content { padding: 32px 24px; }
  .modal-content h3 { font-size: 1.4rem; }

  /* Карточка Telegram в разделе «Обо мне» – компактнее */
  .about-tg {
    padding: 16px 18px;
    gap: 14px;
  }
  .about-tg-icon { width: 38px; height: 38px; font-size: 1rem; }
  .about-tg-text strong { font-size: .88rem; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ФИКС: без backdrop-filter на мобильных, чтобы не ломал position:fixed */
@media (max-width: 720px) {
  .nav.scrolled {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(246, 247, 249, .97);
  }
}

@media (min-width: 721px) {
  .nav-links {
    display: flex !important;
    flex-direction: row !important;
    position: static !important;
    transform: none !important;
    flex-wrap: nowrap;
    gap: 26px;
    font-size: .88rem;
  }
  .nav-links a { white-space: nowrap; }
}