:root {
  --bg-light: #F4F6F8;
  --bg-soft: #EBF0F4;
  --bg-dark: #1A2228;
  --bg-dark-card: #222C34;
  --text-main: #1E252B;
  --text-muted: #5C6975;
  --text-light: #F2F4F7;
  --text-light-muted: #9BA7B2;
  --accent: #3D6478;
  --accent-hover: #2C4B5B;
  --accent-soft: #DCE5EA;
  --border-light: rgba(30, 37, 43, 0.14);
  --border-dark: rgba(242, 244, 247, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.container { max-width: 1320px; margin: 0 auto; padding: 0 32px; }

/* ШАПКА */
.header {
  border-bottom: 1px solid var(--border-light);
  background: rgba(244, 246, 248, 0.94);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 100;
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 16px;
}
.nav-link {
  text-decoration: none; color: var(--text-main); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--accent); }
.nav-link--accent {
  color: var(--accent);
  font-weight: 700;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.mobile-cta-btn { display: none; }
.brand { text-decoration: none; text-align: center; display: flex; flex-direction: column; }
.brand__name {
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 16px;
  letter-spacing: 0.14em; color: var(--text-main);
}
.brand__role { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* 1. ПЕРВЫЙ ЭКРАН */
.hero {
  position: relative;
  background: radial-gradient(circle at 50% 45%, #FFFFFF 0%, #ECEFF3 68%, #DFE5EB 100%);
  overflow: hidden;
  padding-top: 24px;
}

.hero__canvas {
  position: relative;
  min-height: calc(100vh - 72px);
  max-height: 740px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero__top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 5;
}

.hero__meta-left {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.hero__meta-right {
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.hero__note { font-size: 12.5px; line-height: 1.5; color: var(--text-muted); }
.meta-line {
  display: block; width: 28px; height: 1px;
  background-color: var(--accent); margin-top: 8px;
}

.hero__stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__giant-title {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Manrope', sans-serif;
  user-select: none;
  pointer-events: none;
}

.title-left-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(clamp(60px, 8.2vw, 118px));
}

.title-left {
  font-size: clamp(46px, 6.2vw, 88px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-main);
}

.title-sub {
  font-size: clamp(20px, 2.3vw, 32px);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--accent);
  margin-top: 8px;
  padding-left: 4px;
}

.title-right {
  font-size: clamp(46px, 6.2vw, 88px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--accent);
  transform: translate(-45px, 18px);
}

.hero__portrait {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 540px;
  width: auto;
  max-width: none;
  z-index: 3;
  pointer-events: none;
  filter: contrast(1.04);
}

.hero__ghost {
  position: absolute;
  bottom: 12px;
  left: 38%;
  transform: translateX(-50%) scale(1.04);
  height: 525px;
  width: auto;
  max-width: none;
  z-index: 1;
  opacity: 0.11;
  filter: blur(7px) grayscale(100%);
  pointer-events: none;
}

.hero__bottom-row {
  position: relative;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 28px;
  gap: 24px;
}

.hero__pillars {
  list-style: none;
  font-size: 11px;
  line-height: 1.65;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  border-left: 2px solid var(--accent);
  padding-left: 12px;
  flex-shrink: 0;
}

.hero__cta-block {
  max-width: 340px;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  border-top: 1px solid rgba(61, 100, 120, 0.25);
  padding-top: 12px;
}

.hero__lead { font-size: 13px; line-height: 1.5; color: var(--text-main); margin-bottom: 12px; }
.hero__actions {
  display: flex; flex-wrap: wrap; justify-content: flex-end;
  align-items: center; gap: 10px;
}

/* КНОПКИ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  border-radius: 3px; border: 1px solid transparent;
  transition: all 0.25s ease; cursor: pointer;
}
.btn--primary { background-color: var(--accent); color: #FFFFFF; }
.btn--primary:hover { background-color: var(--accent-hover); transform: translateY(-1px); }
.btn--outline {
  background-color: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn--outline:hover { background-color: var(--accent-soft); }
.btn--full { width: 100%; }

.badge-discount {
  font-size: 12px; color: var(--accent);
  background: rgba(220, 229, 234, 0.9);
  padding: 7px 11px; border-radius: 3px; font-weight: 600;
}

/* ОБЩИЕ СЕКЦИИ И ГЛАВЫ */
.section { padding: 104px 0; position: relative; z-index: 10; }
.section--light { background-color: var(--bg-light); }
.section--soft { background-color: var(--bg-soft); }
.section--dark {
  background-color: var(--bg-dark); color: var(--text-light);
  background-image:
    linear-gradient(to right, var(--border-dark) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-dark) 1px, transparent 1px);
  background-size: 64px 64px;
}

.chapter-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}
.chapter-tag::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background-color: currentColor;
}
.chapter-tag--light { color: var(--accent-soft); }

.section__head {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 40px; align-items: end; margin-bottom: 56px;
}
.section__title {
  font-family: 'Manrope', sans-serif; font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 600; line-height: 1.18;
}
.section__desc { color: var(--text-light-muted); font-size: 16px; }

/* 2. СИМПТОМЫ */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background-color: var(--bg-dark-card); border: 1px solid var(--border-dark);
  padding: 28px 24px; border-radius: 4px; transition: border-color 0.25s, transform 0.25s;
}
.card:hover { border-color: var(--accent); transform: translateY(-4px); }
.card__num {
  display: inline-block; font-family: 'Manrope', sans-serif; font-size: 13px;
  font-weight: 700; color: var(--accent-soft); margin-bottom: 20px;
  padding-bottom: 6px; border-bottom: 1px solid var(--accent);
}
.card__title { font-family: 'Manrope', sans-serif; font-size: 19px; font-weight: 600; margin-bottom: 12px; line-height: 1.3; }
.card__text { font-size: 14px; color: var(--text-light-muted); line-height: 1.6; }

/* 3. ЖУРНАЛЬНЫЙ БЛОК «ОБО МНЕ» */
.about-ed__top {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 72px;
  align-items: start;
}
.about-ed__media { position: relative; }
.about-ed__img {
  width: 100%;
  border-radius: 2px;
  display: block;
  filter: contrast(1.02);
}
.about-ed__pullquote {
  position: relative;
  margin-top: -28px;
  margin-left: 24px;
  margin-right: -24px;
  background: var(--bg-light);
  padding: 18px 24px;
  border-left: 2px solid var(--accent);
  font-family: 'Manrope', sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
}
.about-ed__name {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.about-ed__name span { color: var(--accent); font-weight: 400; }
.about-ed__lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-main);
  margin-bottom: 40px;
  max-width: 620px;
}
.about-ed__rows { border-top: 1px solid var(--border-light); }
.ed-row {
  display: grid;
  grid-template-columns: 165px 1fr;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: baseline;
}
.ed-row__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.4;
}
.ed-row__label span {
  display: inline-block;
  margin-top: 4px;
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--accent);
}
.ed-row__body h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 6px;
}
.ed-row__body p { font-size: 15px; line-height: 1.6; }
.ed-row__body .ed-row__muted { font-size: 14px; color: var(--text-muted); }

/* 4. ШАГИ РАБОТЫ */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  padding: 32px 28px;
  border-radius: 4px;
}
.step-card__top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border-dark);
}
.step-card__num { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 13px; color: var(--accent-soft); }
.step-card__tag { font-size: 12px; color: var(--text-light-muted); }
.step-card__title { font-family: 'Manrope', sans-serif; font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.step-card__text { font-size: 14.5px; color: var(--text-light-muted); }

/* 5. ТАРИФЫ НА ЛИНИЯХ И ИНТЕРАКТИВНАЯ ШКАЛА */
.booking__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: start;
}
.booking__desc { font-size: 16px; color: var(--text-muted); margin: 16px 0 36px; }
.tariffs-ed { border-top: 1px solid var(--border-light); }
.tariff-row {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
}
.tariff-row__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.tariff-row__head h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 19px;
  font-weight: 600;
}
.tariff-row__badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: 3px;
  font-weight: 600;
  flex-shrink: 0;
}
.tariff-row__meta-tag {
  font-size: 12px;
  color: var(--text-muted);
}
.tariff-row__meta { font-size: 14px; color: var(--text-muted); }

/* Виджет шкалы стресса */
.stress-widget {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  padding: 36px 32px;
  border-radius: 4px;
}
.stress-widget__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.stress-widget__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}
.stress-widget__score {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 3px;
}
.stress-widget__title {
  font-family: 'Manrope', sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 24px;
}
.slider-wrap { margin-bottom: 20px; }
.stress-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--accent-soft);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.stress-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(26, 34, 40, 0.25);
  cursor: pointer;
  transition: transform 0.15s;
}
.stress-slider::-webkit-slider-thumb:hover { transform: scale(1.12); }
.slider-marks {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 8px;
}
.stress-widget__feedback {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-main);
  background: var(--bg-light);
  border-left: 2px solid var(--accent);
  padding: 14px 16px;
  margin-bottom: 22px;
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field span { font-size: 13px; font-weight: 500; color: var(--text-main); }
.field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(30, 37, 43, 0.2);
  border-radius: 3px;
  font-family: inherit;
  font-size: 16px;
  color: var(--text-main);
  background: var(--bg-light);
}
.field select:focus { outline: none; border-color: var(--accent); background: #FFFFFF; }
.form-buttons { display: flex; flex-direction: column; gap: 10px; }
.privacy-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.45;
}

/* 6. FAQ НА ЛИНИЯХ */
.faq__wrap { max-width: 880px; }
.faq__title { margin-bottom: 36px; }
.faq-list { border-top: 1px solid var(--border-light); }
.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 22px 0;
}
.faq-item summary {
  font-family: 'Manrope', sans-serif;
  font-size: 17.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--accent); font-weight: 400; flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: 12px; font-size: 15px; color: var(--text-muted); max-width: 760px; }

/* ФУТЕР */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 64px 0 32px;
  border-top: 1px solid var(--border-dark);
}
.footer__grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-dark);
}
.footer__brand { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 18px; letter-spacing: 0.12em; }
.footer__tagline { font-size: 14px; color: var(--text-light-muted); margin-top: 6px; }
.footer__contacts { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.footer__link { color: var(--text-light); text-decoration: none; font-size: 15px; transition: color 0.2s; }
.footer__link:hover { color: var(--accent-soft); }
.footer__bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-light-muted);
  gap: 16px;
}

/* АДАПТИВ */
@media (max-width: 1120px) {
  .hero__portrait { height: 480px; }
  .hero__ghost { height: 470px; }
  .title-left-group { transform: translateX(24px); }
  .title-right { transform: translate(-20px, 18px); }
  .title-left, .title-right { font-size: 46px; }
  .about-ed__top, .booking__grid { grid-template-columns: 1fr; gap: 40px; }
  .about-ed__pullquote { margin-right: 16px; }
}

@media (max-width: 820px) {
  .container { padding: 0 20px; }
  .nav-link { display: none; }
  .header__inner { height: 64px; justify-content: space-between; }
  .brand { text-align: left; }
  .brand__name { font-size: 13.5px; letter-spacing: 0.1em; }
  .brand__role { font-size: 11px; }
  .mobile-cta-btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent); color: #FFFFFF; text-decoration: none;
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; padding: 9px 14px; border-radius: 3px; flex-shrink: 0;
  }

  .hero { padding-top: 20px; }
  .hero__canvas { min-height: auto; max-height: none; }
  .hero__top-row { flex-direction: column; gap: 8px; }
  .hero__meta-left { flex-direction: row; flex-wrap: wrap; gap: 6px; font-size: 10px; }
  .hero__meta-left .meta-line, .hero__meta-right { display: none; }

  .hero__stage { flex-direction: column; padding: 16px 0 0; }
  .hero__giant-title { flex-direction: column; align-items: center; text-align: center; gap: 2px; margin-bottom: 8px; }
  .title-left-group { transform: none; align-items: center; }
  .title-left { font-size: 42px; }
  .title-sub { font-size: 20px; margin-top: 2px; }
  .title-right { transform: none; font-size: 42px; }

  .hero__portrait { position: relative; bottom: auto; left: auto; transform: none; height: 340px; width: auto; display: block; margin: 0 auto; }
  .hero__ghost { display: block; height: 330px; bottom: 0; left: 42%; opacity: 0.14; }

  .hero__bottom-row {
    flex-direction: column; align-items: stretch; padding: 20px 0 28px; gap: 16px;
    background: var(--bg-light); border-top: 1px solid var(--border-light);
  }
  .hero__pillars {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
    border-left: none; padding-left: 0; padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light); font-size: 10px; letter-spacing: 0.08em;
  }
  .hero__cta-block { max-width: 100%; text-align: left; align-items: stretch; border-top: none; padding-top: 0; }
  .hero__lead { font-size: 14px; margin-bottom: 16px; }
  .hero__actions { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .hero__actions .btn { width: 100%; padding: 15px 20px; font-size: 13px; }
  .badge-discount { text-align: center; padding: 8px 12px; }

  .section { padding: 64px 0; }
  .section__head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 32px; }
  .cards-grid, .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .ed-row { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .about-ed__pullquote { margin-left: 12px; margin-right: 12px; font-size: 16px; padding: 14px 16px; }
  .stress-widget { padding: 24px 20px; }
  .faq-item summary { font-size: 15.5px; }
  .footer { padding: 48px 0 28px; }
  .footer__grid, .footer__bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer__contacts { align-items: flex-start; }
}

/* === ФИКС ДЛЯ УЗКИХ ЭКРАНОВ (360px) И КРУПНОГО ШРИФТА === */
@media (max-width: 820px) {
  /* 1. Сетка 2x2 для 4 опоры в Hero вместо неровного переноса */
  .hero__pillars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 16px;
    text-align: left;
  }

  /* 2. Адаптив кнопок и неразрывный номер телефона */
  .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }
  .btn .nowrap-phone {
    white-space: nowrap;
    display: inline-block;
  }

  /* 3. Воздух и отступы в подвале на мобильных */
  .footer {
    padding: 52px 0 40px;
  }
  .footer__grid {
    gap: 28px;
    padding-bottom: 32px;
  }
  .footer__contacts {
    gap: 14px;
    width: 100%;
  }
  .footer__link {
    line-height: 1.4;
    word-break: break-word;
  }
  .footer__bottom {
    padding-top: 28px;
    gap: 18px;
    line-height: 1.55;
  }
}

/* === КОМПАКТНАЯ КНОПКА ТЕЛЕФОНА В ОДНУ СТРОКУ === */
.form-buttons .btn--outline {
  white-space: nowrap;
  font-size: clamp(10.5px, 3vw, 12px);
  letter-spacing: 0.03em;
  padding: 11px 12px;
  line-height: 1.2;
}
