/* ============================================================================
   site.css — дизайн-система сайта manual-terapevt-malyshev.online
   Версия: 2.0 (полный редизайн, 14.09.2026)

   Принципы:
   - Спокойная медицинская палитра: глубокий тил + тёплый нейтральный фон.
     Никаких «больничных» синих градиентов и стоковых улыбок.
   - Крупная типографика, много воздуха, крупные радиусы, мягкие тени.
   - Mobile-first: базовые стили под телефон, расширения — через min-width.
   - Ноль внешних запросов: шрифты самохостинг, иконки — CSS/SVG-инлайн.
   - Бюджет CWV: критический CSS инлайнится сборщиком не требуется (файл < 30 КБ gzip),
     transform/opacity в анимациях, никаких layout-shift-триггеров.
   ========================================================================== */

/* --- Шрифты: два сабсета Manrope, самохостинг ---------------------------- */
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-cyrillic.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC,
                 U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Токены -------------------------------------------------------------- */
:root {
  /* Текст */
  --ink:        #0d1c1f;
  --ink-2:      #1d3237;
  --body:       #3c4f54;
  --muted:      #6d8085;
  --muted-2:    #93a3a7;

  /* Поверхности */
  --bg:         #ffffff;
  --bg-soft:    #f5f8f7;
  --bg-warm:    #faf8f4;
  --line:       #e4eae9;
  --line-2:     #d3dcda;

  /* Бренд */
  --brand:      #0e7a6a;
  --brand-ink:  #0a5a4e;
  --brand-soft: #e7f3f0;
  --brand-glow: rgba(14, 122, 106, 0.14);

  /* Тёплый акцент (чипы, метки) */
  --sand:       #f2ebdf;
  --sand-ink:   #7a6242;

  /* Геометрия */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(13, 28, 31, .04), 0 2px 8px rgba(13, 28, 31, .04);
  --shadow:    0 2px 4px rgba(13, 28, 31, .04), 0 12px 32px rgba(13, 28, 31, .07);
  --shadow-lg: 0 4px 8px rgba(13, 28, 31, .05), 0 24px 60px rgba(13, 28, 31, .10);

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(44px, 6vw, 84px);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- Сброс --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Липкая шапка ~70px: без этого якоря (#zapis, #faq) уезжают под неё и заголовок
     блока не видно. Правится здесь, а не отступами у каждой секции. */
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-ink); text-decoration-color: rgba(14, 122, 106, .35); text-underline-offset: 3px; }
a:hover { color: var(--brand); text-decoration-color: currentColor; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Типографика --------------------------------------------------------- */
h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.021em;
  line-height: 1.14;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(30px, 5.2vw, 54px); }
h2 { font-size: clamp(23px, 3.1vw, 34px); letter-spacing: -0.018em; }
h3 { font-size: clamp(18px, 1.6vw, 21px); font-weight: 750; letter-spacing: -0.01em; line-height: 1.3; }
h4 { font-size: 17px; font-weight: 750; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

strong, b { color: var(--ink-2); font-weight: 700; }
small { font-size: 14px; color: var(--muted); }

ul, ol { margin: 0 0 1.1em; padding-left: 0; }
li { margin: 0 0 .55em; }

/* Списки с аккуратными маркерами вместо стандартных */
.prose ul, .section ul, .card ul { list-style: none; }
.prose ul > li, .section ul > li, .card ul > li {
  position: relative;
  padding-left: 26px;
}
.prose ul > li::before, .section ul > li::before, .card ul > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
  opacity: .85;
}
.prose ol, .section ol { list-style: none; counter-reset: li; }
.prose ol > li, .section ol > li { position: relative; padding-left: 40px; }
.prose ol > li::before, .section ol > li::before {
  counter-increment: li;
  content: counter(li);
  position: absolute;
  left: 0; top: .1em;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: var(--brand-soft);
  color: var(--brand-ink);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

blockquote {
  margin: 0;
  padding: 0;
  quotes: "«" "»";
}

/* --- Каркас -------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--r-sm) 0;
  text-decoration: none;
}
.skip:focus { left: 0; color: #fff; }

/* --- Шапка --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

/* Шапка уже не сжимает бренд: иначе имя врача налезало текстом на меню. */

.site-header__row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
  flex: 0 0 auto;
  min-width: 0;
  overflow: hidden;
}
.brand:hover { color: var(--ink); }

.brand__mark {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--brand) 0%, var(--brand-ink) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .02em;
  box-shadow: 0 6px 16px var(--brand-glow);
}

.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name {
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand__role {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.3;
  white-space: nowrap;
}

/* Навигация: на телефоне — выпадающая по чекбоксу, без JS */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}
.nav-burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink-2);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
}
.nav a {
  display: block;
  padding: 9px 11px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav a:hover { background: var(--bg-soft); color: var(--brand-ink); }
.nav a[aria-current="page"] { color: var(--brand-ink); background: var(--brand-soft); }

.header-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

.tel-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.tel-link:hover { color: var(--brand-ink); }
.tel-link svg { flex: 0 0 auto; }

/* --- Кнопки -------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: 16px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .22s var(--ease),
              background .18s var(--ease), color .18s var(--ease);
  box-shadow: 0 8px 20px var(--brand-glow);
}
.btn:hover {
  --btn-bg: var(--brand-ink);
  color: var(--btn-fg);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px var(--brand-glow);
}
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.btn--sm { padding: 11px 18px; font-size: 15px; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-2);
  box-shadow: none;
}
.btn--ghost:hover { --btn-bg: var(--bg-soft); --btn-fg: var(--brand-ink); border-color: var(--brand); box-shadow: none; }

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--brand-ink);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}
.btn--light:hover { --btn-bg: #fff; --btn-fg: var(--ink); }

.btn--wide { width: 100%; }

/* --- Хлебные крошки ------------------------------------------------------ */
.crumbs { padding: 18px 0 0; }
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 13.5px;
  color: var(--muted);
}
.crumbs li + li::before { content: "→"; margin-right: 8px; color: var(--muted-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-ink); text-decoration: underline; }

/* --- Главная секция страницы (hero) -------------------------------------- */
.hero {
  position: relative;
  padding: clamp(32px, 5vw, 64px) 0 clamp(28px, 4vw, 48px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -40%; right: -18%;
  width: 620px; height: 620px;
  background: radial-gradient(circle at 50% 50%, var(--brand-soft) 0%, rgba(231, 243, 240, 0) 68%);
  pointer-events: none;
  z-index: -1;
}
.hero__inner { max-width: 800px; }

/* Герой с фото: две колонки от 900px. Фото — реальный портрет врача из контента,
   поэтому подпись под ним обязательна (кто на фото), а не «иллюстрация».
   object-position поднят к верху кадра: лицо в исходнике в верхней трети. */
.hero__grid { display: grid; gap: clamp(22px, 3.4vw, 44px); align-items: start; }
@media (min-width: 900px) {
  .hero__grid:not(.hero__grid--text) {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  }
}
.hero__media { position: relative; margin: 4px 0 26px; }
.hero__photo {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow-lg);
}
.hero__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 16%;
}
.hero__tag {
  position: absolute;
  left: 14px; right: 14px; bottom: -18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero__tag b { color: var(--ink); font-size: 15.5px; font-weight: 800; }
.hero__tag span { color: var(--muted); font-size: 13.5px; line-height: 1.4; }
@media (max-width: 899px) {
  .hero__media { max-width: 420px; margin-top: 6px; }
  .hero__tag { position: static; left: auto; right: auto; bottom: auto; margin: -10px 0 0;
               border-radius: 0 0 var(--r) var(--r); }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 11px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--sand-ink);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .01em;
  margin-bottom: 22px;
}
.hero__eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(14, 122, 106, .16);
}

.hero h1 { margin-bottom: .35em; }

.hero__lead {
  font-size: clamp(17px, 2.1vw, 20.5px);
  line-height: 1.55;
  color: var(--body);
  max-width: 62ch;
  margin: 0 0 30px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.hero__chips li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  margin: 0;
}
.hero__chips li::before {
  content: "";
  position: absolute;
  left: 0; top: .28em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e7a6a' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* --- Секции и карточки --------------------------------------------------- */
main { padding-bottom: var(--section-y); }

.section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3.4vw, 40px);
  margin: 0 0 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.section:hover { box-shadow: var(--shadow); }

.section--plain { background: transparent; border: 0; box-shadow: none; padding-left: 0; padding-right: 0; }
.section--soft { background: var(--bg-soft); border-color: transparent; }
.section--warm { background: var(--bg-warm); border-color: transparent; }

.section > h2:first-child { margin-top: 0; }
.section > *:last-child { margin-bottom: 0; }

.section__lead { font-size: 18px; color: var(--body); }

/* Сетка карточек */
.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin: 24px 0 0;
}
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 22px 20px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card h3 { margin-bottom: .4em; }
.card p { font-size: 16px; color: var(--body); margin-bottom: 0; }
.card--step { counter-increment: step; position: relative; padding-top: 26px; }
.card--step::before {
  content: counter(step, decimal-leading-zero);
  font-size: 13px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: .06em;
  display: block;
  margin-bottom: 8px;
}

/* Таблицы */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 20px 0; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
caption { text-align: left; color: var(--muted); font-size: 14px; padding: 0 0 10px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--ink); font-weight: 750; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; background: var(--bg-soft); }
th:first-child { border-top-left-radius: var(--r-sm); }
th:last-child { border-top-right-radius: var(--r-sm); }
tbody tr:hover { background: var(--bg-soft); }

/* --- Отзывы -------------------------------------------------------------- */
.reviews {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-top: 24px;
}
@media (min-width: 820px) { .reviews { grid-template-columns: repeat(2, 1fr); } }

.review {
  position: relative;
  background: var(--bg-soft);
  border-radius: var(--r);
  padding: 26px 24px 22px;
  border: 1px solid transparent;
}
.review::before {
  content: "“";
  position: absolute;
  top: 6px; left: 18px;
  font-size: 56px;
  line-height: 1;
  color: var(--brand);
  opacity: .18;
  font-weight: 800;
}
.review blockquote { font-size: 16.5px; color: var(--ink-2); margin: 0 0 14px; }
.review blockquote p { margin: 0; }
.review footer {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
}
.review footer::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--line-2);
  border-radius: 2px;
  flex: 0 0 auto;
}

/* --- FAQ ----------------------------------------------------------------- */
.faq { margin-top: 20px; border-top: 1px solid var(--line); }

.faq details {
  border-bottom: 1px solid var(--line);
  transition: background .2s var(--ease);
}
.faq details[open] { background: var(--bg-soft); }

.faq summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 20px 52px 20px 20px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  transition: color .18s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand-ink); }

.faq summary::after {
  content: "";
  position: absolute;
  right: 22px; top: 50%;
  width: 16px; height: 16px;
  margin-top: -8px;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e7a6a' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .28s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }

.faq__body { padding: 0 52px 22px 20px; color: var(--body); }
.faq__body > *:last-child { margin-bottom: 0; }

/* --- Блок записи (CTA) --------------------------------------------------- */
.cta-panel {
  position: relative;
  background: linear-gradient(150deg, var(--ink) 0%, #10333a 55%, #0d4a45 100%);
  color: rgba(255, 255, 255, .82);
  border-radius: var(--r-xl);
  padding: clamp(26px, 4vw, 52px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-panel::before {
  content: "";
  position: absolute;
  top: -180px; right: -140px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(31, 163, 148, .34) 0%, rgba(31, 163, 148, 0) 70%);
  pointer-events: none;
}
.cta-panel h2 { color: #fff; }
.cta-panel p { color: rgba(255, 255, 255, .76); }
.cta-panel a { color: #fff; }
.cta-panel__grid { position: relative; display: grid; gap: 30px; }
@media (min-width: 940px) { .cta-panel__grid { grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; } }

.cta-panel__points { list-style: none; padding: 0; margin: 22px 0 0; }
.cta-panel__points li {
  position: relative;
  padding-left: 28px;
  margin: 0 0 12px;
  font-size: 16px;
  color: rgba(255, 255, 255, .86);
}
.cta-panel__points li::before {
  content: "";
  position: absolute;
  left: 0; top: .3em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236fe0cd' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}

.cta-panel .tel-big {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-size: clamp(21px, 2.6vw, 27px);
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.cta-panel .tel-big:hover { color: #9ff0e0; }

/* Форма записи */
.booking {
  background: #fff;
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
  margin: 0;
}

.booking__title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}
.booking__hint { margin: 0 0 18px; font-size: 14.5px; color: var(--muted); }

.field { margin: 0 0 14px; }
.field > label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.field input[type="text"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-glow);
}
.field textarea { resize: vertical; min-height: 92px; }

.field-consent { margin: 16px 0 18px; }
.field-consent label {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-weight: 500;
  cursor: pointer;
}
.field-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  margin: 1px 0 0;
  accent-color: var(--brand);
  cursor: pointer;
}
.field-consent span { font-size: 14px; color: var(--muted); line-height: 1.5; }
.field-consent a { color: var(--brand-ink); }

.booking .btn { width: 100%; padding: 16px 24px; }

.form-note { margin: 12px 0 0; font-size: 14.5px; color: var(--muted); min-height: 0; }
.form-note:empty { margin: 0; }

.hp { position: absolute; left: -9999px; }

/* --- Подвал -------------------------------------------------------------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: clamp(36px, 5vw, 60px) 0 30px;
  font-size: 15px;
  color: var(--muted);
}

.footer__grid { display: grid; gap: 30px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; } }

.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer__brand .brand__mark { width: 38px; height: 38px; border-radius: 12px; font-size: 14px; }
.footer__name { font-weight: 800; color: var(--ink); font-size: 16px; }

.site-footer h3 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-2);
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 9px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--brand-ink); text-decoration: underline; }

.footer__contact a { font-weight: 750; color: var(--ink); font-size: 17px; }

.footer__legal {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted-2);
}
.footer__legal p { margin: 0 0 8px; }
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }
.footer__legal-links a { color: var(--muted); }

/* --- Мобильная нижняя панель -------------------------------------------- */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.mobile-cta .btn { flex: 1; padding: 14px 16px; font-size: 15px; }

/* --- Медиа --------------------------------------------------------------- */
figure { margin: 0 0 20px; }
figure img { border-radius: var(--r); width: 100%; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* --- Адаптив ------------------------------------------------------------- */
@media (max-width: 1279px) {
  .nav a { padding: 9px 10px; font-size: 14.5px; }
}

@media (max-width: 1120px) {
  .nav-burger { display: flex; }
  .header-actions .btn { display: none; }
  .tel-link span { display: none; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 8px 12px 14px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height .32s var(--ease), opacity .22s var(--ease), visibility .22s;
  }
  .nav a {
    padding: 14px 12px;
    font-size: 16.5px;
    border-radius: var(--r-sm);
    border-bottom: 1px solid var(--line);
  }
  .nav a:last-child { border-bottom: 0; }

  .nav-toggle:checked ~ .nav {
    max-height: 460px;
    opacity: 1;
    visibility: visible;
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-header__row { position: relative; }
}

@media (max-width: 900px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 74px; }
}

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .section { border-radius: var(--r); padding: 20px 18px; }
  .hero__actions .btn { width: 100%; }
  .hero__chips { gap: 10px 18px; }
  .cta-panel { border-radius: var(--r-lg); }
  .brand__role { display: none; }
}

/* --- Печать и доступность ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .site-header, .mobile-cta, .cta-panel .booking, .crumbs { display: none; }
  body { padding: 0; font-size: 12pt; }
  .section { border: 0; box-shadow: none; padding: 0; margin: 0 0 18pt; }
}
