/* ============================================================
   Светлана Даниловская — психолог, супервизор
   Design tokens + art-direction layer.
   Layout/typography utilities: Tailwind (see index.html config).
   ============================================================ */

:root {
  --bg: #F3EEE6;
  --surface: #EAE1D3;
  --fg: #26221E;
  --muted: #575047;
  --border: #DCD1BF;
  --accent: #1E3A5F;
  --accent-on: #F7F3EC;
  --clay: #A07A34;
  /* Глиняный текст на светлом фоне — тёмный (контраст ≥ 4.5:1) */
  --clay-ink: #7E5C22;
  /* Глиняный акцент на тёмном фоне #16233A */
  --clay-gold: #D8B26A;
  --font-display: 'Commissioner', sans-serif;
  --font-body: 'Literata', serif;
  --radius: 2px;
  --space-section: 76px;
  --space-section-sm: 52px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  /* Тонкая бумажная фактура: два едва заметных слоя, без градиентной подсветки */
  background-image:
    repeating-linear-gradient(0deg, rgba(38,34,30,0.012) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 18% 12%, rgba(160,122,52,0.05), transparent 55%);
  color: var(--fg);
  overflow-x: hidden;
  padding-bottom: 72px; /* место под мобильную панель действий */
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
}

::selection {
  background: var(--accent);
  color: var(--accent-on);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-on);
  padding: 12px 18px;
  font-family: var(--font-display);
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* ---------- Шапка ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 238, 230, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.site-head a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.site-head a.head-phone { display: none; }
.site-head a .head-label-full { display: none; }

@media (min-width: 640px) {
  .site-head a.head-phone { display: inline-flex; }
  .site-head a .head-label-short { display: none; }
  .site-head a .head-label-full { display: inline; }
}

/* ---------- Секции ---------- */

.section {
  padding-block: var(--space-section-sm);
  border-top: 1px solid var(--border);
  scroll-margin-top: 88px;
}

@media (min-width: 768px) {
  .section { padding-block: var(--space-section); }
}

.section:first-child { border-top: 0; }

.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.6vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 22ch;
  text-wrap: balance;
  margin: 0 0 32px;
}

.prose-block {
  max-width: 68ch;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(38, 34, 30, 0.9);
}

/* ---------- Маргинальный рельс с номерами ---------- */

.rail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.rail {
  padding-top: 32px;
}

.rail ol {
  list-style: none;
  margin: 0;
  padding: 0 0 4px;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.rail ol::-webkit-scrollbar {
  display: none;
}

.rail a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: 44px;
  flex: none;
  padding: 6px 14px;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.rail a span {
  font-size: 12px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.rail a:hover {
  color: var(--fg);
}

/* Активный раздел */
.rail a.is-current {
  color: #F5F0E6;
  font-weight: 600;
  background: #16233A;
  border-color: #16233A;
}

.rail a.is-current span {
  color: var(--clay-gold);
}

@media (min-width: 1024px) {
  .rail a.is-current span {
    color: var(--clay-gold);
    font-weight: 600;
    letter-spacing: 0.02em;
  }
}

@media (min-width: 1024px) {
  .rail-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 0 64px;
  }
  .rail {
    position: sticky;
    top: 96px;
    align-self: start;
    z-index: 3;
    padding-top: var(--space-section-sm);
  }
  .rail ol {
    display: block;
    border-left: 1px solid var(--border);
    padding-left: 18px;
  }
  .rail li { position: relative; }
  .rail li + li { margin-top: 2px; }
  .rail a {
    padding: 6px 0;
    font-size: 14.5px;
    border: 0;
    border-radius: 0;
    background: none;
    white-space: normal;
  }

  .rail a.is-current {
    color: var(--fg);
    background: none;
  }
  .rail a span {
    position: absolute;
    left: -19px;
    top: 10px;
    background: var(--bg);
    padding-right: 2px;
  }
}

/* ---------- Список сложных тем ---------- */

.topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.topic-list li {
  position: relative;
  padding: 20px 0 20px 26px;
  border-top: 1px solid var(--border);
}

.topic-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 30px;
  width: 14px;
  height: 1px;
  background: var(--clay);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.topic-list li {
  transition: background-color 0.3s ease;
}

.topic-list li:hover::before {
  width: 22px;
}

.topic-list li:first-child { border-top: 0; padding-top: 4px; }

.topic-text {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(38, 34, 30, 0.9);
  max-width: 62ch;
}

.topic-text strong {
  font-weight: 600;
  color: var(--fg);
}

@media (min-width: 768px) {
  /* Две колонки с автоматической балансировкой: без дыр внизу */
  .topic-list {
    display: block;
    column-count: 2;
    column-gap: 48px;
  }
  .topic-list li {
    break-inside: avoid;
    padding-top: 18px;
  }
  .topic-list li:first-child { padding-top: 4px; }
  .topic-text { max-width: none; }
}

/* ---------- Список результатов ---------- */

.result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 62ch;
  display: grid;
  gap: 0 48px;
}

@media (min-width: 1024px) {
  .section-dark .result-list {
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.result-list li {
  position: relative;
  padding: 18px 0 18px 26px;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(38, 34, 30, 0.9);
  border-top: 1px solid var(--border);
}

.result-list li:first-child { border-top: 0; padding-top: 4px; }

.result-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 30px;
  width: 14px;
  height: 1px;
  background: var(--clay);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.result-list li:hover::before {
  width: 22px;
}

.result-list li:first-child::before { top: 12px; }

/* ---------- Цитата ---------- */

.pull-quote {
  margin: 0;
  max-width: 40ch;
  padding-left: 28px;
  border-left: 2px solid var(--clay);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.45;
  color: var(--fg);
}

.pull-quote p { margin: 0; }

/* ---------- Галерея кабинета ---------- */

/* ---------- Слайдер фотографий кабинета ---------- */

.slider {
  position: relative;
  margin-top: 8px;
  max-width: 460px;
}

.slider-viewport {
  overflow: hidden;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 18px 40px -28px rgba(60, 50, 38, 0.45);
}

.slider-track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.slider-slide {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
}

.slider-slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.96) contrast(1.02);
  user-select: none;
  -webkit-user-drag: none;
}

.slider-caption {
  margin: 0;
  padding: 13px 18px 15px;
  font-family: var(--font-display);
  font-size: 14.5px;
  letter-spacing: 0.01em;
  color: #4A4339;
  background: var(--surface);
}

.slider-arrow {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--fg);
  background: rgba(247, 243, 236, 0.92);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  z-index: 2;
}

.slider-arrow:hover {
  background: var(--accent);
  color: var(--accent-on);
  border-color: var(--accent);
}

.slider-arrow svg {
  width: 22px;
  height: 22px;
}

.slider-prev { left: 12px; }
.slider-next { right: 12px; }

.slider-arrow[disabled] {
  opacity: 0;
  pointer-events: none;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.slider-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid var(--muted);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.slider-dots button[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.15);
}

@media (max-width: 767px) {
  .slider-arrow {
    width: 38px;
    height: 38px;
    top: 34%;
  }
  .slider-prev { left: 8px; }
  .slider-next { right: 8px; }
}

/* ---------- Факты в разделе «Обо мне» ---------- */

/* ---------- Сетка блока «Обо мне» ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr) 264px;
    gap: 48px;
  }

  .about-facts { grid-column: 1; grid-row: 1; }
  .about-side { grid-column: 2; grid-row: 1; }
}

.about-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

@media (min-width: 1024px) {
  .about-side {
    position: sticky;
    top: 110px;
    padding: 22px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
  }
}

.about-facts {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 68ch;
}

.about-facts li {
  display: grid;
  gap: 3px;
  padding-left: 16px;
  border-left: 2px solid var(--clay);
}

.about-facts span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  color: var(--fg);
}

.about-facts li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.about-spec {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.about-spec li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.about-spec li .doc-link {
  color: var(--fg);
  transition: color 0.2s ease;
}

.about-spec li .doc-link:hover {
  color: var(--accent);
}

.about-spec li::before {
  content: "\2014";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--clay-ink);
}

/* Кликабельные названия документов */
.doc-link {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--clay), var(--clay));
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.25s ease, color 0.2s ease;
}

.doc-link:hover {
  color: var(--accent);
}

.about-note {
  margin: 0;
  max-width: 68ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Блок «Формат работы» ---------- */

.format-note {
  margin-top: 40px;
  padding: 22px 24px;
  background: var(--surface);
  border-left: 2px solid var(--clay);
}

.format-note-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
}

.format-note-text {
  margin: 0;
  max-width: 60ch;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(38, 34, 30, 0.9);
}

/* ---------- Секция «Полезно перед консультацией» ---------- */

#polezno .prose-block { margin: 0 0 30px; }

.guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.guide-list > li {
  padding: 22px 0;
  border-top: 1px solid var(--border);
}

.guide-list > li:first-child {
  padding-top: 0;
  border-top: 0;
}

.guide-kind {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-ink);
  margin: 0 0 10px;
}

.guide-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 0 0 10px;
}

.guide-text {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(38, 34, 30, 0.82);
  margin: 0 0 16px;
  max-width: 62ch;
}

.guide-dl {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

.guide-dl:hover { color: #16304F; }

.guide-more {
  margin: 26px 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.guide-more a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-more a:hover { color: #16304F; }

/* ---------- Стоимость ---------- */










/* ---------- Галерея «Как я работаю» ---------- */

.work-gallery {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

@media (min-width: 640px) {
  .work-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .work-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
}

.work-gallery--pair {
  max-width: 760px;
}

@media (min-width: 640px) {
  .work-gallery--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.slider-quote {
  margin-top: 28px;
  max-width: 460px;
}

.work-shot { margin: 0; }

.work-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.5s ease;
}

.work-shot:hover img { transform: scale(1.015); }

.work-shot figcaption {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 14.5px;
  letter-spacing: 0.01em;
  color: #4A4339;
}

/* ---------- Контакты ---------- */

.contact-list { margin: 0; }

.contact-list > div {
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.contact-list > div:first-child { border-top: 0; padding-top: 0; }

.contact-list dt {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-list dd {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.5;
}

/* ---------- Форма ---------- */

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-wide { grid-column: 1 / -1; }
}

.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--fg);
  margin-bottom: 7px;
}

.field input[type="text"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.field textarea { min-height: 132px; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: rgba(107, 98, 89, 0.75); }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #C4B7A1; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
  background: #F6F1E8;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  line-height: 1.45;
  cursor: pointer;
}

.consent input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

/* Ошибки клиентской валидации */
.field.is-error input[type="text"],
.field.is-error input[type="tel"],
.field.is-error select,
.field.is-error textarea {
  border-color: #8E2A17;
  background: #FBF2EE;
}

.field.is-error input:focus,
.field.is-error select:focus,
.field.is-error textarea:focus {
  outline-color: #8E2A17;
  border-color: #8E2A17;
}

.field.is-error .consent input {
  outline: 2px solid #8E2A17;
  outline-offset: 2px;
}

#form-status.is-error {
  color: #8E2A17;
  font-weight: 500;
}

/* ---------- Кнопки ---------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 26px;
  background: var(--accent);
  color: var(--accent-on);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: #16304F;
  border-color: #16304F;
}

.btn-primary:active { transform: translateY(1px); }

.btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
}

.btn-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 4px;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.btn-quiet:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- Портрет ---------- */

.portrait-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px;
  aspect-ratio: 4 / 5;
  max-width: 400px;
  margin-inline: auto;
}

.portrait-frame picture {
  display: block;
  width: 100%;
  height: 100%;
}

.portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: saturate(0.94) contrast(1.02);
}

/* ---------- Контакты в разделе «Запись» ---------- */

.zapis-contacts {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.zapis-contacts-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
}

.zapis-contacts-line {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Подвал ---------- */

.site-foot {
  border-top: 1px solid var(--border);
  padding: 44px 0 32px;
  margin-top: 24px;
  background: linear-gradient(180deg, rgba(233, 226, 214, 0.45), rgba(233, 226, 214, 0));
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 32px;
}

@media (min-width: 900px) {
  .foot-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr 1.2fr;
    gap: 32px 40px;
  }
}

.foot-col {
  min-width: 0;
}

.foot-name {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.foot-role {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.foot-label {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay-ink);
}

.foot-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.foot-text a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.foot-text a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.foot-social {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.foot-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #F5F0E6;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.foot-social-btn .icon {
  width: 18px;
  height: 18px;
}

.foot-social-tg { background: #3B7FA4; }
.foot-social-wa { background: #3F8A5E; }

.foot-social-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.foot-legal {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
}

.foot-legal p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: #4C453C;
  max-width: 78ch;
}

/* ---------- Мобильная панель действий ---------- */

.mobile-bar {
  position: fixed;
  transition: transform 0.25s ease, opacity 0.25s ease;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(243, 238, 230, 0.97);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--border);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
}

.mobile-bar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--fg);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-bar-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-on);
  margin-left: 8px;
}

@media (min-width: 768px) {
  .mobile-bar { display: none; }
}

@media (max-width: 767px) {
  html.has-mobile-bar body { padding-bottom: 76px; }

  .mobile-bar.is-hidden {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
  }
}

/* ---------- Мягкое появление секций ---------- */

html.js-reveal .reveal {
  animation: section-in 0.5s ease both;
}

@keyframes section-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js-reveal .reveal { animation: none; opacity: 1; transform: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Мессенджеры ---------- */
.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.btn-icon {
  gap: 8px;
}

.messenger-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.messenger-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.messenger-link:hover {
  border-bottom-color: var(--accent);
  opacity: 0.85;
}

.mobile-bar-tg {
  gap: 8px;
}

.mobile-bar-tg .icon {
  width: 19px;
  height: 19px;
}

.head-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.2s ease;
}

.head-social:hover { color: var(--accent); }

.hero-quote {
  margin-top: 12px;
  max-width: 40ch;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.5;
  color: var(--fg);
}

.about-side .b17-link {
  margin-top: 0;
  width: 100%;
  flex-wrap: wrap;
  align-items: flex-start;
  padding: 14px 40px 14px 12px;
  border-radius: 14px;
  position: relative;
}

.about-side .b17-text {
  flex: 1 1 100%;
  font-size: 15px;
}

.about-side .b17-badge { margin-bottom: 2px; }

.about-side .b17-arrow {
  position: absolute;
  right: 14px;
  top: 16px;
}

.about-quote {
  margin: 0 0 28px;
  max-width: 60ch;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}

/* ---------- Утверждение в разделе «Обо мне» ---------- */

.about-belief {
  margin: 0 0 34px;
  max-width: 34ch;
  padding-left: 18px;
  border-left: 2px solid var(--clay);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.6vw, 1.65rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-wrap: balance;
}

.belief-quote {
  margin: 0 0 34px;
  max-width: 62ch;
  padding: 0 0 0 18px;
  border-left: 2px solid var(--border);
}

.belief-quote-text {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(38, 34, 30, 0.86);
}

.belief-quote-text:last-of-type { margin-bottom: 14px; }

.belief-quote-source {
  display: block;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay-ink);
}

.about-quote strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.5;
  color: var(--fg);
}

/* ---------- Как я работаю: подходы ---------- */
.approach-lead {
  max-width: 68ch;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--fg);
}

.approach-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 900px;
}

.approach-list li {
  padding: 20px 22px;
  background: var(--surface);
  border-left: 2px solid var(--clay);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease, border-left-color 0.35s ease;
}

@media (hover: hover) {
  .approach-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(38, 34, 30, 0.09);
    border-left-color: var(--accent);
  }
}

.approach-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fg);
}

.approach-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.approach-close {
  margin: 28px 0 0;
  max-width: 68ch;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--fg);
}

@media (max-width: 767px) {
  .approach-list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Ссылка на b17.ru ---------- */
.b17-link {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 7px 14px 7px 8px;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.35;
  color: var(--fg);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.b17-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.b17-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 24px;
  padding: 0 7px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: #2C6E9B;
  border-radius: 999px;
}

.b17-arrow {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.b17-link:hover .b17-arrow {
  color: var(--accent);
  transform: translate(1px, -1px);
}

@media (max-width: 520px) {
  .b17-text { font-size: 14px; }
}

/* ---------- Клиент-терапевтическое соглашение ---------- */
.contract-card {
  margin-top: 36px;
  padding: 26px 28px;
  background: var(--surface);
  border-left: 2px solid var(--accent);
}

.contract-card-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fg);
}

.contract-card-title a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.25s ease, color 0.2s ease;
}

.contract-card-title a:hover {
  color: var(--accent);
  background-size: 100% 1px;
}

.contract-card-text {
  margin: 0;
  max-width: 68ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.contract-card-link {
  margin: 16px 0 0;
}

.contract-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, gap 0.2s ease;
}

.contract-read:hover {
  border-bottom-color: var(--accent);
  gap: 11px;
}

.contract-read svg {
  width: 15px;
  height: 15px;
}

/* страница соглашения */
.contract-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  counter-reset: none;
  display: grid;
  gap: 18px;
}

.contract-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.contract-num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  color: var(--clay-ink);
  text-align: right;
}

.contract-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg);
}

.contract-final {
  margin: 36px 0 0;
  padding: 20px 24px;
  background: var(--surface);
  border-left: 2px solid var(--clay);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg);
}

.contract-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 40px;
}

@media (max-width: 520px) {
  .contract-card { padding: 22px 20px; }
  .contract-list li { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
  .contract-num { font-size: 21px; }
}

.contact-mail {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line);
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.contact-mail:hover {
  text-decoration-color: var(--accent);
}

/* ---------- Контакты в конце сайта ---------- */
/* ---------- Шапка и подписи соглашения ---------- */
.contract-meta,
.contract-sign {
  margin: 28px 0 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.contract-meta > div,
.contract-sign > div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.contract-meta span,
.contract-sign span {
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.contract-sign {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

@media (max-width: 620px) {
  .contract-meta > div,
  .contract-sign > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

/* ---------- Частые вопросы ---------- */
.faq-list {
  margin-top: 8px;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  list-style: none;
  cursor: pointer;
  padding: 18px 40px 18px 0;
  position: relative;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--fg);
  transition: color 0.2s ease;
}

.faq-q::-webkit-details-marker { display: none; }

.faq-q::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -8px;
  border-right: 2px solid var(--clay);
  border-bottom: 2px solid var(--clay);
  transform: rotate(45deg);
  transition: transform 0.25s ease, border-color 0.2s ease;
}

.faq-q:hover::after {
  border-color: var(--accent);
}

.section-dark .faq-q::after {
  border-color: #D8B26A;
}

.section-dark .faq-q:hover::after {
  border-color: #F5F0E6;
}

.faq-item[open] .faq-q::after {
  transform: rotate(-135deg);
  margin-top: -3px;
}

.faq-q:hover { color: var(--accent); }

.faq-a {
  padding: 0 40px 20px 0;
  max-width: 68ch;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.faq-a p + p { margin-top: 12px; }

.faq-steps {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: faq-step;
}

.faq-steps li {
  position: relative;
  counter-increment: faq-step;
  padding-left: 34px;
  max-width: 62ch;
  margin-top: 12px;
}

.faq-steps li::before {
  content: counter(faq-step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #7E5C22;
  color: #F7F3EA;
  font-size: 12px;
  line-height: 22px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.faq-steps strong {
  color: #F0E9DC;
  font-weight: 600;
}

.section-dark .faq-steps strong {
  color: #F5F0E6;
}

/* ---------- Тёмная секция ---------- */

.section-dark {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  padding: 48px 46px;
  background: #16233A;
  border: 0;
  color: #E9E2D6;
  /* Терракотовая линия на левом краю текстовой колонки */
  box-shadow: inset 2px 0 0 var(--clay);
  /* Полоса во всю ширину экрана: тень растягивается, клип пропускает её влево и вправо */
  box-shadow: inset 2px 0 0 var(--clay), 0 0 0 100vmax #16233A;
  clip-path: inset(0 -100vmax 0 -100vmax);
}

.section-dark .h2 {
  color: #F5F0E6;
  margin-bottom: 28px;
}

.section-dark .result-list li {
  border-top-color: rgba(233, 226, 214, 0.18);
  color: rgba(233, 226, 214, 0.86);
}

.section-dark .result-list li::before {
  background: var(--clay-gold);
}

.result-list li strong {
  font-weight: 600;
  color: var(--fg);
}

.section-dark .result-list li strong {
  color: #F5F0E6;
}

/* Пункты боковой навигации светлеют, когда под ними тёмная полоса */
.rail a.on-dark { color: rgba(233, 226, 214, 0.88); }
.rail a.on-dark:hover { color: #F5F0E6; }
.rail a.on-dark span { color: #D8B26A; }
.rail a.on-dark span { background: transparent; }

@media (max-width: 1023px) {
  .section-dark {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .section-dark {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 767px) {
  .section-dark { padding-top: 32px; padding-bottom: 32px; }
}

/* ---------- Частые вопросы в тёмной секции ---------- */

.section-dark .faq-list {
  border-top-color: rgba(233, 226, 214, 0.18);
}

.section-dark .faq-item {
  border-bottom-color: rgba(233, 226, 214, 0.18);
}

.section-dark .faq-q {
  color: #F5F0E6;
}

.section-dark .faq-q:hover {
  color: #E2C08A;
}

.section-dark .faq-a {
  color: rgba(233, 226, 214, 0.82);
}

/* ---------- Логотип ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

/* ---------- Бейдж «Сделано в Спру» ---------- */

#spru-pages-badge-host {
  display: none !important;
}

/* ---------- Портрет в масштабе (hero) ---------- */

@media (min-width: 1024px) {
  .portrait-frame {
    max-width: 474px;
    aspect-ratio: 4 / 5;
    padding: 14px;
    margin-inline: 0;
  }

  .portrait-frame img {
    object-position: 50% 22%;
  }
}

.portrait-note {
  margin: 18px 0 0;
  max-width: 46ch;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--muted);
}


/* ---------- Кабинет: слайдер и текст рядом ---------- */

.kabinet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

/* Слайдер кабинета — вертикальное окно под форму фотографий */
.kabinet-grid .slider {
  max-width: 400px;
}

.kabinet-grid .slider-slide img {
  aspect-ratio: 2 / 3;
  object-position: center;
}

@media (min-width: 900px) {
  .kabinet-grid {
    grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
    gap: 40px;
  }
}

.kabinet-side {
  padding: 26px 28px 28px;
  background: var(--surface);
  border-radius: 18px;
  border-left: 2px solid var(--clay);
  box-shadow: 0 18px 40px -30px rgba(60, 50, 38, 0.4);
}

@media (min-width: 900px) {
  .kabinet-side {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: start;
  }

  .kabinet-side-title {
    margin-bottom: 14px;
  }

  .kabinet-side-text {
    margin-bottom: 16px;
  }

  .kabinet-side-list {
    align-self: start;
    gap: 14px;
    margin-bottom: 22px;
  }
}

/* Фото вывески внутри карточки приёма */
.kabinet-photo {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: var(--bg);
  box-shadow: 0 14px 30px -22px rgba(60, 50, 38, 0.5);
}

.kabinet-photo picture {
  display: block;
  width: 100%;
  height: 100%;
}

.kabinet-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 810 / 760;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.kabinet-photo:hover img {
  transform: scale(1.03);
}

.kabinet-side-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.kabinet-side-text {
  margin: 0 0 18px;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(38, 34, 30, 0.9);
}

.kabinet-side-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.kabinet-side-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.kabinet-side-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 1px;
  background: var(--clay);
}

/* ---------- Видео-полоса: видео и текст рядом ---------- */


/* ---------- Тёмная полоса-подпись ---------- */

.signature-band {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  padding: 54px 46px 60px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #16233A;
  /* Полоса во всю ширину экрана — как у тёмных секций */
  box-shadow: inset 2px 0 0 var(--clay), 0 0 0 100vmax #16233A;
  clip-path: inset(0 -100vmax 0 -100vmax);
}

@media (max-width: 1023px) {
  .signature-band {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 767px) {
  .signature-band {
    padding: 36px 24px 42px;
  }
}

.signature-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.signature-figure {
  margin: 0;
  position: relative;
}

.signature-figure img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.96) contrast(1.03);
}

@media (min-width: 768px) {
  .signature-inner {
    grid-template-columns: 1fr 1fr;
  }

  .signature-figure img {
    aspect-ratio: 5 / 6;
  }
}

/* ---------- Вход во двор ---------- */

.vhod-photo {
  position: relative;
  display: block;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
  text-decoration: none;
}

.vhod-photo picture {
  display: block;
}

.vhod-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.vhod-photo-hint {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(22, 35, 58, 0.92);
  color: #F1EAE0;
  font-size: 13px;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease;
}

.vhod-photo:hover .vhod-photo-hint,
.vhod-photo:focus-visible .vhod-photo-hint {
  background: #16233A;
}

@media (min-width: 900px) {
  .vhod {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 40px;
    padding: 32px 36px;
    align-items: center;
  }

}

/* ---------- Появление первого экрана ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-intro,
  .hero-figure,
  .hero-body {
    animation: hero-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .hero-intro { animation-delay: 0.05s; }
  .hero-figure { animation-delay: 0.16s; }
  .hero-body { animation-delay: 0.26s; }
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Hero: колонки и крупный портрет ---------- */

.hero-text {
  grid-column: 1 / -1;
}

.hero-figure {
  grid-column: 1 / -1;
  margin: 0;
}

/* На телефоне: имя → портрет с голосом → текст и кнопки */
@media (max-width: 1023px) {
  .hero-intro {
    order: 1;
  }

  .hero-figure {
    order: 2;
  }

  .hero-body {
    order: 3;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    row-gap: 0;
    /* Колонки выравниваются по нижней границе: строка 2 тянется под фигуру */
    grid-template-rows: auto 1fr;
  }

  .hero-intro {
    grid-column: 1 / span 6;
  }

  .hero-body {
    grid-column: 1 / span 6;
    align-self: end;
    margin-top: 34px;
  }

  .hero-figure {
    grid-column: 7 / span 6;
    grid-row: 1 / span 2;
    align-self: start;
  }

  .hero-figure .portrait-frame {
    margin-inline: auto;
  }
}

.signature-quote {
  margin: 0 auto 42px;
  max-width: 30ch;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.45rem, 3.2vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #F5F0E6;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .signature-quote {
    max-width: 36ch;
  }
}

/* ---------- Цены в первом экране ---------- */

.hero-price {
  margin-top: 28px;
  padding: 16px 20px 14px;
  border-left: 2px solid var(--clay);
  background: var(--surface);
  max-width: 100%;
}

.hero-price-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-price-line {
  margin: 0;
  padding: 8px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  font-size: 14.5px;
  color: var(--fg);
  border-top: 1px solid var(--border);
}

.hero-price-line > span:first-child {
  flex: 1 1 100%;
}

.hero-price-line:first-of-type {
  border-top: 0;
}

.hero-price-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--accent);
  white-space: nowrap;
}

.hero-price-term {
  font-size: 13.5px;
  color: #4C453C;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .hero-price-line > span:first-child { flex: 0 1 auto; }
}

@media (max-width: 767px) {
  .hero-price { max-width: 100%; }
}

/* ---------- Голосовое знакомство (первый экран) ---------- */

.voice {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px 16px 16px;
  border: none;
  border-radius: 18px;
  background: #16233A;
  box-shadow: 0 10px 30px rgba(22, 35, 58, 0.16);
  width: 100%;
  max-width: 460px;
}

.voice-play {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #F5F0E6;
  color: #16233A;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.voice-play:hover {
  transform: scale(1.05);
  background: #FFFFFF;
}

.voice-play::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(245, 240, 230, 0.5);
  opacity: 0;
  animation: voice-pulse 2.8s ease-out infinite;
  pointer-events: none;
}

.voice-play {
  position: relative;
}

html.js-reveal .voice.is-playing .voice-play::after {
  animation: none;
  opacity: 0;
}

@keyframes voice-pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  70% { transform: scale(1.28); opacity: 0; }
  100% { transform: scale(1.28); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .voice-play::after { animation: none; }
}

.voice-play:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.voice-icon {
  width: 22px;
  height: 22px;
}

.voice-icon-pause,
.voice.is-playing .voice-icon-play {
  display: none;
}

.voice.is-playing .voice-icon-pause {
  display: block;
}

.hero-figure .voice {
  margin-top: 18px;
  max-width: 100%;
}

.voice-body {
  flex: 1;
  min-width: 0;
}

.voice-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: #F5F0E6;
  letter-spacing: -0.01em;
}

.voice-track {
  margin-top: 9px;
  height: 3px;
  border-radius: 999px;
  background: rgba(245, 240, 230, 0.24);
  cursor: pointer;
}

.voice-progress {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: #E4B98A;
}

.voice-time {
  margin: 7px 0 0;
  font-size: 13px;
  color: rgba(245, 240, 230, 0.68);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 420px) {
  .voice {
    gap: 13px;
    padding: 14px 16px 14px 14px;
    max-width: 100%;
  }

  .voice-play {
    width: 46px;
    height: 46px;
  }

  .voice-title {
    font-size: 16px;
  }
}

/* ---------- Видео в тёмной полосе-подписи ---------- */

/* Слайдер в тёмной полосе-подписи */

.slider-signature {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.slider-signature .slider-viewport {
  overflow: hidden;
  background: transparent;
  border: none;
}

.slider-signature .slider-track {
  align-items: stretch;
}

.slider-signature .slider-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

/* В тёмной полосе стрелки уходят вниз, к точкам, — на видео не ложатся */
.slider-signature .slider-arrow {
  top: auto;
  bottom: -52px;
  transform: none;
  width: 40px;
  height: 40px;
  background: rgba(245, 240, 230, 0.1);
  border-color: rgba(245, 240, 230, 0.28);
  color: #F5F0E6;
}

.slider-signature .slider-arrow:hover {
  background: #F5F0E6;
  color: #16233A;
  border-color: #F5F0E6;
}

.slider-signature .slider-dots {
  margin-top: 22px;
}

.slider-signature .slider-arrow {
  bottom: -14px;
}

.slider-signature .slider-arrow[disabled] {
  opacity: 0.3;
}

@media (min-width: 900px) {
  .slider-signature {
    max-width: 100%;
  }

  .slider-signature .slider-slide {
    display: grid;
    grid-template-columns: minmax(0, 336px) minmax(0, 1fr);
    align-items: center;
    gap: 46px;
  }

  .slider-signature .signature-lead {
    text-align: left;
    margin: 0;
    max-width: none;
  }
}

.signature-video {
  position: relative;
  margin: 0;
}

.vp-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(233, 226, 214, 0.94);
  color: #16233A;
  cursor: pointer;
  border: 0;
  padding: 0;
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.vp-play svg {
  width: 26px;
  height: 26px;
  margin-left: 3px;
}

.vp-play:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background: #F5F0E6;
}

.signature-video.is-playing .vp-play {
  opacity: 0;
  pointer-events: none;
}

.signature-video-el {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 620px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #0E1729;
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(8, 14, 26, 0.42);
}

.signature-figure-tall {
  margin: 0;
  height: 560px;
}

.signature-figure-tall img {
  aspect-ratio: auto;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 2px;
}

.signature-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.signature-step {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.signature-lead {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.75vw, 1.42rem);
  line-height: 1.52;
  color: #F5F0E6;
  max-width: 52ch;
  margin-inline: auto;
}

.slider-signature .slider-dots {
  background: transparent;
  margin-top: 22px;
}

.slider-signature .slider-dots button {
  background: rgba(245, 240, 230, 0.35);
}

.slider-signature .slider-dots button[aria-selected="true"] {
  background: var(--accent);
}

.slider-signature .slider-arrow {
  background: rgba(14, 23, 41, 0.55);
  color: #F5F0E6;
  border-color: rgba(245, 240, 230, 0.25);
}

.slider-signature .slider-arrow:hover {
  background: rgba(14, 23, 41, 0.8);
}

@media (max-width: 767px) {
  .signature-video-el {
    max-height: 420px;
  }

  .signature-figure-tall {
    height: 380px;
  }
}


/* ---------- Субтитры к видео и голосу ---------- */

.vp-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(12, 20, 34, 0.82);
  color: #F5F0E6;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.signature-video.is-playing .vp-caption {
  opacity: 1;
  transform: none;
}

.voice-caption {
  margin: 10px 0 0;
  min-height: 3.1em;
  font-size: 14px;
  line-height: 1.5;
  color: #E6EAF0;
}

.voice-caption.is-hint {
  color: #9AA6B6;
  font-style: italic;
}

@media (max-width: 639px) {
  .vp-caption {
    left: 8px;
    right: 8px;
    bottom: 8px;
    font-size: 13px;
    padding: 7px 10px;
  }
}

/* ---------- Кнопка записи после видео-метафоры ---------- */

.signature-cta {
  margin: 40px auto 0;
  max-width: 620px;
  text-align: center;
}

.signature-cta-text {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.6;
  color: #C6CEDA;
}

.signature-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 22px;
}

.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 26px;
  background: #F5F0E6;
  color: #16233A;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-light:hover {
  background: #FFFFFF;
  transform: translateY(-1px);
}

.signature-cta-link {
  color: #F5F0E6;
  font-family: var(--font-display);
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 240, 230, 0.45);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

.signature-cta-link:hover {
  border-color: #F5F0E6;
}

/* ============================================================
   Экстренная полоса (после первого экрана)
   ============================================================ */

.emergency-strip {
  position: relative;
  z-index: 1;
  padding: 26px 0 30px;
  background: #16233A;
  color: #E9E2D6;
  border-top: 3px solid var(--clay-gold);
}

.emergency-strip-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 768px) {
  .emergency-strip-inner { padding-left: 40px; padding-right: 40px; }
}

.emergency-strip-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

@media (min-width: 900px) {
  .emergency-strip-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 44px;
    align-items: start;
  }
}

.emergency-strip-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: #F5F0E6;
}

.emergency-strip-note {
  margin: 0;
  max-width: 56ch;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(233, 226, 214, 0.82);
}

/* ============================================================
   Список экстренных контактов (.help-list) — общий стиль сайта
   ============================================================ */

.help-list { margin: 0; padding: 0; list-style: none; }

.help-list li {
  padding: 14px 0;
  border-top: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.help-list li:first-child { border-top: 0; padding-top: 0; }
.help-list strong { color: var(--fg); }

.help-list a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.help-list a:hover { color: #16304F; }

/* Тёмная секция: светлый текст и номера телефонов */
.section-dark .help-list li {
  color: rgba(233, 226, 214, 0.82);
  border-top-color: rgba(233, 226, 214, 0.18);
}

.section-dark .help-list strong { color: #F5F0E6; }
.section-dark .help-list a { color: #D8B26A; }
.section-dark .help-list a:hover { color: #F0D9A4; }

/* Экстренная полоса: та же сетка, но на тёмном фоне */
.emergency-strip .help-list { margin: 0; padding: 0; list-style: none; }

.emergency-strip .help-list li {
  padding: 9px 0;
  border-top: 1px solid rgba(233, 226, 214, 0.18);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(233, 226, 214, 0.86);
}

.emergency-strip .help-list li:first-child { border-top: 0; padding-top: 0; }
.emergency-strip .help-list strong { color: #F5F0E6; }

.emergency-strip .help-list a {
  color: #D8B26A;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.emergency-strip .help-list a:hover { color: #F0D9A4; }

/* ============================================================
   Мобильный блок с оффером в первом экране (.hero-lead)
   ============================================================ */

.hero-lead { display: none; }

@media (max-width: 1023px) {
  .hero-lead {
    display: block;
    margin-top: 22px;
    padding: 18px 20px 20px;
    background: var(--surface);
    border-left: 3px solid var(--clay);
  }

  .hero-lead-text {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(38, 34, 30, 0.88);
  }

  .hero-lead .btn-primary { width: 100%; }
}

/* ============================================================
   Экстренные контакты в подвале
   ============================================================ */

.foot-emergency a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot-emergency a:hover { color: #16304F; }
