/* ============================================================
   Точка здоровья — прототип сайта специалиста
   Спокойный editorial-минимализм: бумага + бирюза + песок.
   Единственная графическая идея — точка и расходящиеся волны.
   ============================================================ */

:root {
  --paper: #FAF7F2;        /* основной фон */
  --sand: #E8D9C0;         /* тёплый песочный */
  --sand-soft: #F0E6D6;    /* мягкий песочный фон секций */
  --teal: #2E7D76;         /* зелёно-бирюзовый: кнопки, ссылки, знак */
  --teal-deep: #1F4B47;    /* тёмная бирюза: тёмные секции */
  --teal-wash: #E4EEEA;    /* светлая бирюзовая заливка */
  --ink: #2B2F33;          /* основной текст */
  --mut: #5E656B;          /* второстепенный текст */
  --line: #E4DCCE;         /* волосяные линии на бумаге */
  --line-teal: rgba(250, 247, 242, .18); /* линии на тёмной бирюзе */
  --r-card: 14px;
  --r-btn: 10px;
  --r-field: 10px;
}

/* --- база --- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Golos Text', 'Segoe UI', Arial, sans-serif;
  font-size: 18px;            /* ТЗ 7.1: не меньше 18px на мобильных */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); max-width: 22ch; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--teal); }

.wrap { max-width: 1180px; margin-inline: auto; padding-inline: clamp(18px, 4vw, 32px); }
.wrap--narrow { max-width: 820px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 60;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.sec--teal :focus-visible, .foot :focus-visible { outline-color: var(--paper); }

/* --- кнопки --- */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: var(--r-btn);
  border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem;
  text-decoration: none; text-align: center;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: scale(.98); }

.btn--solid { background: var(--teal); color: #fff; }
.btn--solid:hover { background: #276B65; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: rgba(43, 47, 51, .06); }

.btn--paper { background: var(--paper); color: var(--teal-deep); }
.btn--paper:hover { background: #fff; }

.btn--sm { padding: 9px 16px; font-size: .95rem; }

/* --- шапка --- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.top__bar { display: flex; align-items: center; gap: 22px; min-height: 72px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo__mark { color: var(--teal); display: grid; place-items: center; }
.logo__text { display: flex; flex-direction: column; font-weight: 700; font-size: 1.05rem; line-height: 1.15; }
.logo__text em { font-style: normal; font-weight: 400; color: var(--mut); font-size: .72rem; }

.top__nav { display: flex; gap: 20px; margin-left: auto; }
.top__nav a { color: var(--mut); text-decoration: none; font-size: .95rem; }
.top__nav a:hover { color: var(--ink); }

.top__act { display: flex; align-items: center; gap: 14px; }
.top__phone { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }

/* --- бургер: три линии, раскрывается в крестик --- */
.top__burger {
  display: none;
  width: 44px; height: 44px;          /* ТЗ 7.3: зона нажатия от 44px */
  flex: none;
  padding: 0;
  border: 0; background: transparent;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  cursor: pointer;
}
.top__burger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 1px;
  transition: transform .25s ease, opacity .25s ease;
}
.top__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.top__burger.is-open span:nth-child(2) { opacity: 0; }
.top__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- мобильное полноэкранное меню --- */
.mmenu {
  position: fixed; inset: 0; z-index: 35; /* под шапкой, чтобы бургер оставался доступен */
  background: var(--paper);
  overflow-y: auto;
  padding-top: 76px;   /* место под шапку с бургером */
}
@media (min-width: 1021px) { .mmenu { display: none !important; } } /* на десктопе меню всегда скрыто */
.mmenu__in { display: flex; flex-direction: column; min-height: calc(100dvh - 76px); padding-bottom: 28px; }
.mmenu__in > a {
  color: var(--ink); text-decoration: none;
  font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.mmenu__in > a:hover { color: var(--teal); }
.mmenu__foot { margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.mmenu__phone { color: var(--teal-deep); font-weight: 700; font-size: 1.25rem; text-decoration: none; }
.mmenu .btn { text-align: center; }

/* блокировка прокрутки под открытым меню */
:root.menu-locked, :root.menu-locked body { overflow: hidden; }

@media (max-width: 1020px) {
  .top__nav { display: none; }
  .top__bar { justify-content: space-between; }
  .top__act { margin-left: auto; gap: 6px; }
  .top__phone { display: block; }          /* телефон остаётся на виду */
  .top__phone:hover { color: var(--teal); }
  .top__burger { display: flex; }
}
@media (max-width: 600px) {
  .top__cta { display: none; }             /* на узких экранах запись — в меню и нижней панели */
  .top__phone { font-size: .88rem; }
  .logo__text em { display: none; }
}

/* --- первый экран --- */
.hero { padding-block: clamp(48px, 7vw, 96px) 0; }

.hero__in {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
}

.hero__kicker {
  font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 18px;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -.03em;
  max-width: 16ch; /* две строки: «Поставим точку» / «в усталости» — не длиннее */
  margin-bottom: .45em;
}

/* точка-акцент в заголовке: знак бренда внутри строки */
.dot-accent {
  display: inline-block;
  width: .32em; height: .32em;
  border-radius: 50%;
  background: var(--teal);
  margin: 0 .06em;
  vertical-align: baseline;
}

.hero__lead { color: var(--mut); font-size: 1.1rem; max-width: 46ch; margin-bottom: 28px; }

.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero__phone { color: var(--ink); font-weight: 700; text-decoration: none; margin-left: 6px; }
.hero__phone:hover { color: var(--teal); }

.hero__note { color: var(--mut); font-size: .9rem; margin-top: 16px; max-width: 52ch; }

.hero__media { display: flex; justify-content: flex-end; }

@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; align-items: start; }
  .hero__media { justify-content: center; max-width: 420px; }
}

/* --- полоса фактов --- */
.facts {
  list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.fact { padding: 22px 20px 26px 0; border-right: 1px solid var(--line); padding-left: 20px; }
.fact:first-child { padding-left: 0; }
.fact:last-child { border-right: 0; }
.fact__dot {
  display: block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--teal); margin-bottom: 14px;
}
.fact h3 { font-size: 1rem; margin-bottom: 6px; }
.fact p { color: var(--mut); font-size: .88rem; line-height: 1.5; margin: 0; }

@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { border-bottom: 1px solid var(--line); }
  .fact:nth-child(2n) { border-right: 0; }
  .fact:nth-child(2n+1) { padding-left: 0; }
}
@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
  .fact { border-right: 0; }
}

/* --- секции --- */
.sec { padding-block: clamp(64px, 9vw, 120px); }
.sec--sand { background: var(--sand-soft); }
.sec--teal { background: var(--teal-deep); color: var(--paper); }
.sec--teal-soft { background: var(--teal-wash); }

.sec__head { margin-bottom: clamp(28px, 4vw, 48px); }
.sec__head h2 { margin-bottom: .4em; }
.sec__sub { color: var(--mut); max-width: 58ch; }
.sec__sub--light { color: rgba(250, 247, 242, .75); }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal-deep); margin: 0 0 14px; /* тёмная бирюза: контраст ≥4.5 на всех светлых фонах */
}
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.eyebrow--light { color: #BFD8D3; }
.eyebrow--light::before { background: #BFD8D3; }

/* --- плейсхолдеры фото: точка + волны --- */
.ph {
  position: relative;
  background: var(--sand);
  border-radius: var(--r-card);
  overflow: hidden;
  min-height: 260px;
  display: grid; place-items: center;
}
.ph--tall { aspect-ratio: 4 / 5; width: 100%; max-width: 420px; min-height: 0; }
.ph--sq { aspect-ratio: 1 / 1; min-height: 0; }

.ph__waves { position: absolute; inset: 0; width: 100%; height: 100%; }

.ph__cap {
  position: relative;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--teal-deep); text-align: center; line-height: 1.5;
  padding: 6px 12px;
  background: rgba(250, 247, 242, .85);
  border-radius: 8px;
}

/* --- RF: флагман --- */
.rf {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.rf__price { border-left: 2px solid rgba(250, 247, 242, .3); padding-left: clamp(20px, 3vw, 36px); }
.rf__num { font-size: clamp(3.2rem, 7vw, 5.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 0 0 8px; }
.rf__num span { font-size: .55em; font-weight: 600; }
.rf__cap { color: rgba(250, 247, 242, .75); max-width: 24ch; }
.rf__course { font-weight: 600; margin-top: 18px; }
.rf__course span { display: block; font-weight: 400; color: rgba(250, 247, 242, .65); font-size: .9rem; }
.rf__price .btn { margin-top: 22px; }

.ticks { list-style: none; margin: 0 0 1.5em; padding: 0; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: .55em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--teal);
}
.ticks--light li::before { background: #BFD8D3; }

.rf__legal { color: rgba(250, 247, 242, .6); font-size: .88rem; max-width: 52ch; margin: 0; }

@media (max-width: 860px) {
  .rf { grid-template-columns: 1fr; }
  .rf__price { border-left: 0; border-bottom: 1px solid var(--line-teal); padding: 0 0 24px; }
}

/* --- четыре линии массажа --- */
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.line {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  gap: 20px; align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.line__dot {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--teal); color: var(--paper);
  display: grid; place-items: center;
  font-weight: 700; font-size: 1.05rem;
}
.line__body h3 { margin-bottom: 4px; }
.line__body p { color: var(--mut); font-size: .95rem; margin: 0; max-width: 62ch; }
.line__msg { font-weight: 600; color: var(--teal-deep); white-space: nowrap; font-size: .95rem; margin: 0; }

.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .line { grid-template-columns: 56px 1fr; row-gap: 8px; }
  .line__msg { grid-column: 2; }
  .line .link-arrow { grid-column: 2; }
}
@media (max-width: 480px) {
  .line { grid-template-columns: 44px 1fr; }
  .line__dot { width: 40px; height: 40px; font-size: .95rem; }
}

/* --- первый визит: таймлайн из точек --- */
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.step {
  position: relative;
  padding: 0 0 34px 46px;
  max-width: 620px;
}
.step:last-child { padding-bottom: 0; }
.step::before { /* линия между точками */
  content: ''; position: absolute; left: 9px; top: 22px; bottom: 6px;
  width: 2px; background: var(--teal); opacity: .25;
}
.step:last-child::before { display: none; }
.step__n {
  position: absolute; left: 0; top: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px var(--sand-soft);
}
.step h3 { margin-bottom: 4px; }
.step p { color: var(--mut); margin: 0; font-size: .98rem; }

/* --- пакеты: строки цен --- */
.estimat { border-top: 1px solid var(--line); }
.estimat__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
  flex-wrap: wrap; /* на узких экранах цена уходит на свою строку, без горизонтальной прокрутки */
}
.estimat__name { font-weight: 700; }
.estimat__name em { display: block; font-style: normal; font-weight: 400; color: var(--mut); font-size: .92rem; margin-top: 2px; }
.estimat__val { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; white-space: nowrap; color: var(--teal-deep); }
.estimat__note { color: var(--mut); font-size: .92rem; margin-top: 16px; max-width: 60ch; }

/* --- о специалисте: разворот --- */
.split {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.split__body .ticks { margin-bottom: 1.2em; }
.split__note { color: var(--mut); font-size: .9rem; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split__media { max-width: 440px; }
}

/* --- отзывы --- */
.quotes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.quote {
  margin: 0; padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.quote__mark { font-size: 2.4rem; line-height: .6; color: var(--teal); margin: 0 0 10px; font-weight: 800; }
.quote__text { font-size: .95rem; color: var(--ink); }
.quote__who {
  font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--mut); font-style: normal; margin-top: 12px;
}
.platforms__cap { font-weight: 600; margin-bottom: 10px; }
.platforms__row { display: flex; flex-wrap: wrap; gap: 10px; }
.platforms__note { color: var(--mut); font-size: .85rem; margin-top: 12px; }

@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

/* --- кабинет: сетка плейсхолдеров --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }

/* --- FAQ --- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 0;
  font-weight: 600; font-size: 1.05rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+'; font-weight: 400; font-size: 1.5rem; color: var(--teal);
  line-height: 1; flex: none;
}
.faq__item[open] summary::after { content: '−'; }
.faq__item p { color: var(--mut); margin: 0; padding-bottom: 20px; max-width: 62ch; }

/* --- сертификат: песочная полоса --- */
.cert { background: var(--sand); }
.cert__in {
  padding-block: clamp(48px, 6vw, 72px);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.cert__dot { color: var(--teal); margin-bottom: 6px; }
.cert h2 { max-width: none; }
.cert p { max-width: 52ch; color: var(--teal-deep); }
.cert .btn { margin-top: 6px; }

/* --- контакты и форма --- */
.bots { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }

/* структурные обёртки: форма и колонки разворотов */
.form { margin-top: 4px; }
#zayavka { scroll-margin-top: 90px; }
.hero__body { min-width: 0; }
.rf__body { min-width: 0; }
.platforms { margin-top: 8px; }

.form__field { display: block; margin-bottom: 16px; }
.form__field span { display: block; font-size: .85rem; font-weight: 600; color: rgba(250, 247, 242, .8); margin-bottom: 6px; }
.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  min-height: 48px;           /* единая высота: input и select выровнены */
  padding: 11px 14px;
  border-radius: var(--r-field);
  border: 1px solid rgba(250, 247, 242, .35);
  background-color: rgba(250, 247, 242, .1);
  color: var(--paper);
  font: inherit; font-size: 1rem; line-height: 1.4;
}
.form__field textarea { resize: vertical; min-height: 0; }
.form__field input::placeholder { color: rgba(250, 247, 242, .45); }
.form__field select option { color: var(--ink); }

/* select в стиле остальных полей: своя стрелка вместо системной */
.form__field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23FAF7F2' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form__field input:focus, .form__field select:focus, .form__field textarea:focus {
  outline: 2px solid var(--paper); outline-offset: 1px;
}

.form__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; /* выравнивание в две колонки */
}
@media (max-width: 700px) { .form__grid { grid-template-columns: 1fr; } }

.form__check {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .85rem; color: rgba(250, 247, 242, .8);
  margin-bottom: 12px;
}
.form__check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--teal); }
.form__check a { color: inherit; }

.form__msg { font-weight: 600; margin: 14px 0 0; min-height: 1.4em; }

.split__media--contacts h3 { color: #BFD8D3; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.contact-big { display: block; color: var(--paper); font-weight: 700; font-size: 1.25rem; text-decoration: none; margin-bottom: 6px; }
.split__media--contacts .split__note { color: rgba(250, 247, 242, .65); }

/* --- подвал --- */
.foot {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 36px 0 140px; /* нижний отступ — под мобильную панель */
}
@media (min-width: 861px) { .foot { padding-bottom: 36px; } }

.foot__in { display: flex; flex-wrap: wrap; gap: 24px; align-items: baseline; }
.foot__brand { font-weight: 700; display: flex; flex-direction: column; }
.foot__brand em { font-style: normal; font-weight: 400; color: var(--mut); font-size: .8rem; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot__nav a { color: var(--mut); text-decoration: none; font-size: .88rem; }
.foot__nav a:hover { color: var(--ink); }
.foot__note { flex-basis: 100%; color: var(--mut); font-size: .82rem; margin: 0; }

/* --- мобильная панель --- */
.mpanel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  background: var(--ink);
  padding-bottom: env(safe-area-inset-bottom);
}
.mpanel__b {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 4px 12px;
  color: rgba(250, 247, 242, .85); text-decoration: none;
  font-size: .72rem; font-weight: 600;
}
.mpanel__ico { font-size: 1.15rem; line-height: 1; }
.mpanel__b--cta { background: var(--teal); color: #fff; }
.mpanel__b.is-stub { color: rgba(250, 247, 242, .55); }
@media (max-width: 860px) { .mpanel { display: grid; } }

/* --- появление при прокрутке --- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn:active { transition: none; }
}