/* =========================================================================
   Евгения Франк · сайт врача-интегративного терапевта
   v0.1 · одна светлая тема · мобильно-первый layout
   ========================================================================= */

:root {
  /* Палитра */
  --bg:           oklch(98% 0.005 90);
  --bg-soft:      oklch(95% 0.01 85);
  --bg-strong:    oklch(92% 0.012 80);
  --text:         oklch(22% 0.01 250);
  --text-muted:   oklch(45% 0.01 250);
  --accent:       oklch(58% 0.10 215);
  --accent-hover: oklch(50% 0.12 215);
  --accent-soft:  oklch(92% 0.04 215);
  --accent-warm:  oklch(72% 0.08 50);
  --border:       oklch(90% 0.005 85);
  --border-strong: oklch(80% 0.005 85);
  --white:        oklch(99% 0 0);

  /* Шрифты */
  --font-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Manrope', var(--font-sans);
  --font-serif:   'Source Serif 4', 'Cormorant Garamond', Georgia, serif;

  /* Шкалы */
  --text-eyebrow: 0.8125rem;
  --text-body:    1.0625rem;
  --text-lead:    1.1875rem;
  --text-h3:      clamp(1.125rem, 0.95rem + 0.5vw, 1.375rem);
  --text-h2:      clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem);
  --text-hero:    clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem);

  /* Радиусы и тени */
  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    20px;
  --radius-pill:  999px;
  --shadow-sm:    0 1px 2px rgb(0 0 0 / .05);
  --shadow:       0 6px 24px -8px rgb(0 0 0 / .12);
  --shadow-lg:    0 16px 40px -12px rgb(0 0 0 / .18);

  /* Ритмы */
  --section-pad:  clamp(4rem, 3rem + 5vw, 8rem);
  --container:    1180px;
  --header-h:     76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

/* ---------- Утилиты ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 0.5rem + 2vw, 2.5rem);
}
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-eyebrow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.text-muted { color: var(--text-muted); }
.serif-pull {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  line-height: 1.4;
  color: var(--text);
  padding: 1.5rem 0 1rem;
  border-left: 2px solid var(--accent-warm);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
}

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 2px;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.brand__role {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.nav {
  display: flex;
  gap: clamp(1rem, 0.5rem + 1vw, 1.75rem);
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9375rem;
}
.nav a {
  position: relative;
  padding: 0.5rem 0;
  color: var(--text);
  transition: color .15s;
}
.nav a:hover { color: var(--accent); }
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease-out;
}
.nav a:hover::after { transform: scaleX(1); }

.header__cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text);
  transition: color .15s;
}
.phone-link:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, background-color .15s, color .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.btn--lg {
  padding: 0.875rem 1.625rem;
  font-size: 1rem;
}
.btn--block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(2rem, 1rem + 3vw, 4rem);
  padding-bottom: var(--section-pad);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 60%, var(--bg-soft) 100%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-hero);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(180deg, transparent 60%, color-mix(in oklch, var(--accent-warm) 50%, transparent) 60%);
  padding: 0 0.1em;
}
.hero__lead {
  font-size: var(--text-lead);
  color: var(--text-muted);
  max-width: 36ch;
  margin-bottom: 2rem;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 0.5rem + 1vw, 2rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 500;
}
.trust li {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}
.trust__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
  line-height: 1;
}
.hero__photo {
  margin: 0;
  position: relative;
}
.hero__photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero__photo::after {
  content: '';
  position: absolute;
  inset: 8% -3% -3% 8%;
  border: 1px solid var(--accent-warm);
  border-radius: var(--radius-lg);
  z-index: -1;
}

/* ---------- Секции ---------- */
.section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}
.section--white { background: var(--bg); }
.section--soft  { background: var(--bg-soft); }

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 1.5rem + 2vw, 4rem);
}
.section__head .eyebrow {
  margin-left: auto;
  margin-right: auto;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-h2);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}
.section__lead {
  font-size: var(--text-lead);
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto;
}

/* ---------- Карточки (Подход / Сервисы) ---------- */
.cards {
  display: grid;
  gap: clamp(1rem, 0.5rem + 1vw, 1.5rem);
}
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }

.card, .service {
  position: relative;
  padding: clamp(1.5rem, 1rem + 1vw, 2rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover, .service:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.card__icon, .service__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 12px;
  margin-bottom: 1.25rem;
}
.card__icon svg, .service__icon svg { width: 26px; height: 26px; }
.card h3, .service h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h3);
  line-height: 1.25;
  margin-bottom: 0.5rem;
  letter-spacing: -0.005em;
}
.card p, .service p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* ---------- Два столбца ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
.two-col--reverse .two-col__photo { order: 0; }
.two-col--reverse .two-col__text  { order: 1; }
.two-col--narrow { grid-template-columns: 1.4fr 1fr; align-items: start; }

.two-col__photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* «Кому помогаю» */
.symptom-list {
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}
.symptom-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 1.0625rem;
}
.symptom-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.6em;
  width: 12px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 1px;
}

/* ---------- Шаги ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.75rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step + .step::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: 50%;
  width: 1rem;
  height: 1px;
  background: var(--border-strong);
}
.step__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h3);
  margin-bottom: 0.5rem;
}
.step p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ---------- CV ---------- */
.cv h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 1.75rem 0 0.75rem;
}
.cv h3:first-child { margin-top: 1.25rem; }
.cv ul:not(.cv__pills) { display: grid; gap: 0.5rem; }
.cv ul:not(.cv__pills) li { font-size: 1rem; line-height: 1.5; }
.cv ul:not(.cv__pills) strong {
  display: inline-block;
  min-width: 11ch;
  color: var(--text);
  font-weight: 600;
}
.cv__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.cv__pills li {
  padding: 0.4rem 0.875rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  color: var(--text);
}

/* ---------- Отзывы placeholder ---------- */
.reviews-placeholder {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  text-align: center;
  background: var(--white);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.125rem;
}

/* ---------- Форма ---------- */
.form {
  margin-top: 1.75rem;
  display: grid;
  gap: 1rem;
  max-width: 540px;
}
.form__row {
  display: grid;
  gap: 0.4rem;
}
.form__row label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text);
}
.form__row input,
.form__row textarea {
  width: 100%;
  padding: 0.75rem 0.9375rem;
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.form__row input:focus,
.form__row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.form__row textarea { resize: vertical; min-height: 96px; }
.form__note { font-size: 0.8125rem; margin-top: 0.25rem; }

/* ---------- Контакты-сайдбар ---------- */
.contact-aside {
  padding: clamp(1.5rem, 1rem + 1vw, 2rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.contact-aside h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.contact-list {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-list li {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.contact-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.contact-list__label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.contact-list__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--text);
  transition: color .15s;
}
a.contact-list__value:hover { color: var(--accent); }

/* ---------- Футер ---------- */
.footer {
  padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0;
  background: var(--text);
  color: oklch(85% 0.005 250);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 2rem;
  align-items: center;
}
.footer__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--white);
  letter-spacing: -0.01em;
}
.footer__role {
  font-size: 0.875rem;
  color: oklch(70% 0.005 250);
  margin-top: 2px;
}
.footer__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: oklch(88% 0.005 250);
  max-width: 44ch;
}
.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: right;
  font-family: var(--font-display);
  font-weight: 500;
}
.footer__contacts a:hover { color: var(--accent-warm); }
.footer__copy {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid oklch(35% 0.01 250);
  text-align: center;
  font-size: 0.8125rem;
  color: oklch(65% 0.005 250);
}

/* ---------- Плавающая WhatsApp-кнопка ---------- */
.wa-float {
  position: fixed;
  right: clamp(1rem, 0.5rem + 1vw, 2rem);
  bottom: clamp(1rem, 0.5rem + 1vw, 2rem);
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  box-shadow: 0 8px 24px -8px rgb(37 211 102 / .6), 0 2px 4px rgb(0 0 0 / .1);
  z-index: 40;
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: scale(1.05); box-shadow: 0 12px 32px -8px rgb(37 211 102 / .7); }
.wa-float svg { width: 28px; height: 28px; }

/* =========================================================================
   Адаптив
   ========================================================================= */

@media (max-width: 1100px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .steps    { grid-template-columns: repeat(2, 1fr); }
  .step + .step::before { display: none; }
}

@media (max-width: 900px) {
  .nav, .header__cta .phone-link span { display: none; }
  .nav-toggle { display: flex; }
  .header__inner { grid-template-columns: 1fr auto auto; }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: 1rem clamp(1.25rem, 0.5rem + 2vw, 2.5rem) 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav.is-open a {
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.0625rem;
  }
  .nav.is-open a:last-child { border-bottom: 0; }

  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__photo {
    max-width: 480px;
    margin: 0 auto;
    order: -1;
  }
  .hero__photo img { aspect-ratio: 4/4.5; }

  .two-col, .two-col--narrow {
    grid-template-columns: 1fr;
  }
  .two-col__photo {
    max-width: 540px;
    margin: 0 auto;
  }
  .two-col--reverse .two-col__photo { order: 1; }
  .two-col--reverse .two-col__text  { order: 0; }

  .contact-aside { position: static; }
}

@media (max-width: 640px) {
  .cards--3, .cards--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.25rem;
  }
  .footer__contacts {
    flex-direction: row;
    justify-content: center;
    text-align: center;
    gap: 1.25rem;
  }
  .cv ul:not(.cv__pills) strong { display: block; min-width: 0; margin-bottom: 0.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
  html { scroll-behavior: auto; }
}
