/* ==========================================================================
   Lumara — базовые стили
   ТЗ №01.3: мобильная шапка и Hero (размеры в px; контрольные ширины 390 / 360 / 320)
   ========================================================================== */

/* ---------- Шрифты (self-hosted, только нужные начертания и подмножества) ---------- */

@font-face {
  font-family: "Great Vibes";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/great-vibes-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Great Vibes";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/great-vibes-400-latin.woff2") format("woff2");
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-500-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-500-latin.woff2") format("woff2");
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/manrope-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/manrope-400-latin.woff2") format("woff2");
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/manrope-500-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/manrope-500-latin.woff2") format("woff2");
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/manrope-600-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/manrope-600-latin.woff2") format("woff2");
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ExtraBold нужен только для латинского слова LUMARA */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/manrope-800-latin.woff2") format("woff2");
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Знак гривны ₴ для цен, набранных Cormorant */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-500-latin-ext.woff2") format("woff2");
  unicode-range: U+20B4;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-500-italic-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-500-italic-latin.woff2") format("woff2");
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токены ---------- */

:root {
  /* Цвета */
  --color-bg: #F8F4EE;
  --color-text: #3C3533;
  --color-heading: #252222;       /* крупное слово LUMARA */
  --color-body: #625956;          /* описательный текст */
  --color-accent: #713D43;
  --color-accent-hover: #603239;
  --color-accent-active: #603239;
  --color-button-text: #FFFCF8;
  --color-thanks: #925B4E;        /* терракота — только для действия «благодарность» */
  --color-thanks-hover: #7E4C40;
  --color-thanks-active: #7E4C40;
  --color-divider: #E4DDD5;
  --color-surface: #FFFCF8;       /* фон карточек и панелей */
  --color-wine: #63383B;          /* фон акцентной секции «Подход» */
  --color-on-wine: #E8D9D2;       /* вторичный текст на винном фоне */
  --color-on-wine-line: #D0A69A;  /* декоративная линия на винном фоне */
  --color-powder: #E8D9D2;        /* пудровая поверхность финального CTA */
  --color-powder-line: #B99A90;   /* декоративная линия на пудровой поверхности */
  --color-sand: #F1EAE2;          /* фон панели «Общий вопрос» */
  --color-border-warm: #D8C7BC;   /* рамка панели «Более конкретный вопрос» */
  --color-wine-card: #795157;     /* карточки на винном фоне */
  --color-muted: #817773;         /* служебные подписи в подвале */
  --color-text-soft: #4A403D;     /* ссылки навигации в подвале */
  --color-divider-soft: #DCD1C6;  /* разделитель над подвалом */
  --color-gold-muted: #B08A50;    /* декоративный лунный мотив */
  --color-dark-hover: #524846;    /* круглая кнопка: hover */
  --color-dark-active: #2E2827;   /* круглая кнопка: нажатие */
  --color-focus: #3C3533;

  /* Шрифты */
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-script: "Great Vibes", "Snell Roundhand", "Segoe Script", cursive;

  /* Типографика — базовая ширина 390 */
  --fs-body: 16px;
  --lh-body: 24px;
  --fs-button: 15px;
  --fs-logo: 36px;
  --fs-brand: 92px;               /* LUMARA */
  --lh-brand: 78px;
  --ls-brand: -2.5px;
  --fs-signature: 42px;           /* «практик Таро» */
  --lh-signature: 40px;
  --fs-h1: 36px;                  /* «Посмотреть на свою ситуацию глубже» */
  --lh-h1: 36px;
  --fs-h2: 34px;                  /* заголовки секций */
  --lh-h2: 38px;

  /* Сетка */
  --container-max: 390px;         /* 350px содержимого + 2 × 20px */
  --gutter: 20px;
  --header-h: 60px;

  /* Радиусы */
  --radius-button: 8px;
  --radius-card: 16px;

  /* Движение */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --dur-fast: 160ms;
  --dur-menu: 240ms;
}

/* Контрольная ширина 360 (ТЗ 01.3, п. 13) */
@media (max-width: 374px) {
  :root {
    --gutter: 16px;
    --fs-brand: 70px;
    --lh-brand: 74px;
    --fs-signature: 30px;
    --lh-signature: 35px;
    --fs-h1: 34px;
    --lh-h1: 35px;
  }
}

/* Контрольная ширина 320 (ТЗ 01.3, п. 14) */
@media (max-width: 339px) {
  :root {
    --fs-brand: 58px;
    --lh-brand: 62px;
    --ls-brand: -2px;
    --fs-signature: 26px;
    --lh-signature: 31px;
    --fs-h1: 30px;
    --lh-h1: 32px;
  }
}

/* ---------- База ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Типографические стили ---------- */

/* Крупное брендовое слово */
.t-brand-xl {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-brand);
  line-height: var(--lh-brand);
  letter-spacing: var(--ls-brand);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--color-heading);
  margin-left: -7px;
}

/* Рукописная пометка */
.t-script {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: var(--fs-signature);
  line-height: var(--lh-signature);
  color: #C31723;
}

/* Смысловой заголовок; переиспользуется для крупных заголовков сайта */
.t-h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  color: var(--color-text);
}

.t-body {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-body);
  text-wrap: pretty;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-button);
  background: var(--color-accent);
  color: var(--color-button-text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-button);
  line-height: 20px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--color-accent-hover); }
}

.button:active { background: var(--color-accent-active); }

.button--thanks { background: var(--color-thanks); }

@media (hover: hover) and (pointer: fine) {
  .button--thanks:hover { background: var(--color-thanks-hover); }
}

.button--thanks:active { background: var(--color-thanks-active); }

/* ==========================================================================
   Шапка
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
}

.site-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

/* Логотип центрируется по оси окна, кнопка меню на него не влияет */
.logo {
  /* position: absolute; */
  /* left: 50%; */
  /* top: 50%; */
  /* transform: translate(-50%, -50%); */
  font-family: var(--font-script);
  font-weight: 400;
  font-size: var(--fs-logo);
  line-height: 32px;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text);
  cursor: pointer;
}

/* Три линии 24 × 20: толщина 2px, промежутки 6px; при открытии — крестик */
.menu-toggle__icon {
  position: relative;
  width: 24px;
  height: 20px;
}

.menu-toggle__icon > span,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform var(--dur-menu) var(--ease), top var(--dur-menu) var(--ease), opacity var(--dur-fast) var(--ease);
}

.menu-toggle__icon::before { top: 1px; }
.menu-toggle__icon > span  { top: 9px; }
.menu-toggle__icon::after  { top: 17px; }

.menu-toggle[aria-expanded="true"] .menu-toggle__icon > span { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before {
  top: 9px;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after {
  top: 9px;
  transform: rotate(-45deg);
}

/* ---------- Полноэкранное меню ---------- */

.site-nav {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--color-bg);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur-menu) var(--ease), visibility 0s linear var(--dur-menu);
}

.site-nav.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--dur-menu) var(--ease), visibility 0s;
}

.site-nav__inner {
  padding-top: 12px;
  padding-bottom: calc(32px + env(safe-area-inset-bottom));
}

.site-nav__list { border-top: 1px solid var(--color-divider); }

.site-nav__item { border-bottom: 1px solid var(--color-divider); }

.site-nav__link {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

.site-nav__link[aria-current="page"] { color: var(--color-accent); }

@media (hover: hover) and (pointer: fine) {
  .site-nav__link:hover { color: var(--color-accent); }
}

html.is-menu-open { overflow: hidden; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  /* padding-top: 24px; */
  padding-bottom: 32px;
}

/* Заголовочная композиция: LUMARA + подпись. Подпись позиционируется
   относительно этого блока, то есть относительно верхнего края фото. */
.hero__masthead {
  position: relative;
  z-index: 1; /* подпись лежит поверх фотографии */
}

.hero__signature {
  position: absolute;
  right: -12px;
  bottom: -31px;              /* заходит на фото: низ подписи — Y 174 при 390 */
  white-space: nowrap;
}

.hero__photo {
  width: 100%;
  aspect-ratio: 4 / 5;        /* 350 × 438 / 328 × 410 / 288 × 360 */
  object-fit: cover;
  object-position: 50% 40%;
  background: #E9E2D8;        /* тон-заглушка до загрузки */
}

.hero__title { margin-top: 24px; }

.hero__text { margin-top: 16px; }

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

/* ==========================================================================
   Секции
   ========================================================================== */

.section {
  padding-top: 36px;
  padding-bottom: 40px;
  border-top: 1px solid var(--color-divider);
  scroll-margin-top: var(--header-h);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  color: var(--color-text);
}

.section__lead {
  margin-top: 8px;
  font-size: 15px;
  line-height: 22px;
  color: var(--color-body);
}

/* ==========================================================================
   Форматы консультаций (ТЗ №02.1)
   ========================================================================== */

.formats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

/* Карточка 350 × 540: фото на всю площадь, светлая панель поверх низа.
   Кликабельна целиком через растянутую круглую ссылку — одна интерактивная
   область, без вложенных ссылок. */
.format-card {
  position: relative;
  height: 540px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #E9E2D8;            /* тон-заглушка до загрузки фото */
}

.format-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.format-card__panel {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  min-height: 0;
  padding: 16px;
  border-radius: var(--radius-card);
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
}

.format-card__eyebrow {
  font-weight: 500;
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--color-accent);
  display: none;
}

.format-card__title {
  /* margin-top: 10px; */
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  line-height: 30px;
  color: var(--color-text);
}

.format-card__text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 130%;
  color: var(--color-body);
}

.format-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--color-divider);
}

.format-card__price {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 30px;
  line-height: 34px;
  font-variant-numeric: lining-nums; /* без «старостильной» единицы, похожей на I */
  color: var(--color-text);
}

.format-card__link {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-button-text);
  transition: background-color var(--dur-fast) var(--ease);
}

.format-card__link svg {
  width: 18px;
  height: 14px;
}

/* Растягиваем область нажатия на всю карточку */
.format-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
}

.format-card__link:focus-visible { outline: none; }
.format-card:has(.format-card__link:focus-visible) {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .format-card:hover .format-card__link { background: var(--color-accent-hover); }
}

.format-card:active .format-card__link { background: var(--color-accent-active); }

/* ==========================================================================
   Другие направления (ТЗ №03.1) — карточки на компоненте .format-card
   ========================================================================== */

.section--directions { padding-top: 40px; }

/* ==========================================================================
   Подход и принципы работы (ТЗ №04.1)
   ========================================================================== */

.section--approach {
  padding-top: 44px;
  padding-bottom: 24px;
  border-top: 0;                  /* секцию отделяет сам винный фон */
  background: var(--color-wine);
}

.approach__eyebrow {
  font-weight: 500;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--color-on-wine);
}

.approach__title {
  margin-top: 14px;
  font-size: 38px;
  line-height: 42px;
  color: var(--color-surface);
}

.approach__rule {
  width: 40px;
  height: 1px;
  margin: 18px 0 22px;
  border: 0;
  background: var(--color-on-wine-line);
}

.approach__lead {
  font-size: 15px;
  line-height: 23px;
  color: var(--color-on-wine);
}

/* Фото на всю ширину экрана, вне текстового контейнера */
.approach__media {
  max-width: var(--container-max);
  margin: 28px auto 0;
}

.approach__photo {
  width: 100%;
  height: 470px;
  object-fit: cover;
  background: #4E2C2F;            /* тон-заглушка до загрузки */
}

/* ==========================================================================
   Финальный CTA (ТЗ №05, ч. I)
   ========================================================================== */

.section--cta {
  padding-top: 40px;
  padding-bottom: 24px;           /* до разделителя подвала (ТЗ 05.1, п. 3) */
  border-top: 0;                  /* секцию отделяет смена фона после винного блока */
}

.cta {
  position: relative;
  overflow: hidden;               /* тени растений не выходят за панель */
  padding: 24px;
  border-radius: 20px;
  background: var(--color-powder);
}

/* Мягкие тени сухоцветов справа. Фон панели и растворение краёв
   «впечены» в изображение — без режимов наложения и масок */
.cta__shadow {
  position: absolute;
  top: 24px;
  right: -16px;
  width: 180px;
  height: 330px;
  object-fit: cover;
  pointer-events: none;
}

.cta__content { position: relative; }

.cta__eyebrow {
  font-weight: 500;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--color-accent);
}

.cta__title {
  margin-top: 14px;
  font-size: 36px;
  line-height: 38px;
}

.cta__rule {
  width: 28px;
  height: 1px;
  margin: 18px 0;
  border: 0;
  background: var(--color-accent);
}

.cta__text {
  max-width: 290px;
  font-size: 15px;
  line-height: 23px;
  color: var(--color-body);
}

/* Значок слева, подпись, стрелка справа */
.cta__button {
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-inline: 18px;
  font-size: 14px;
}

.cta__button svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.cta__button .cta__arrow {
  width: 18px;
  height: 14px;
}

/* ==========================================================================
   Подвал (ТЗ №05.1)
   ========================================================================== */

.site-footer {
  position: relative;
  overflow: hidden;               /* декоративная графика не выходит за подвал */
  background: var(--color-bg);
}

.site-footer__inner {
  position: relative;
  padding-bottom: 24px;
}

/* Разделитель шириной контейнера, а не окна */
.site-footer__inner::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: 28px;
  background: var(--color-divider-soft);
}

.site-footer__logo {
  display: inline-block;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 58px;
  line-height: 58px;
  color: var(--color-text);
  text-decoration: none;
}

.site-footer__tagline {
  margin-top: 7px;
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-muted);
}

.site-footer__rule {
  width: 28px;
  height: 1px;
  margin: 15px 0 0;
  border: 0;
  background: var(--color-powder-line);
}

/* Декор: полумесяц со звездой справа вверху, сухоцветы в правом нижнем углу.
   Не перехватывают нажатия и скрыты от экранных читалок. */
.site-footer__moon {
  position: absolute;
  top: 29px;                      /* уровень начала логотипа */
  right: 4px;                     /* 24px от края экрана при полях 20px */
  width: 55px;
  height: 100px;
  pointer-events: none;
}

.site-footer__flowers {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 170px;
  height: 188px;
  object-fit: cover;              /* фон и растворение краёв «впечены» в изображение */
  pointer-events: none;
}

.footer-nav {
  position: relative;             /* над декоративной веточкой */
  display: grid;
  grid-template-columns: 165px 165px;
  column-gap: 20px;
  margin-top: 25px;               /* 30px до текста с учётом поля ссылки 5px */
}

.footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Поле 5px сверху и снизу: шаг 30px (20 + 10), зона нажатия 30px */
.footer-nav a {
  display: inline-block;
  padding-block: 5px;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-text-soft);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

.site-footer__divider {
  position: relative;
  height: 1px;
  margin: 19px 0 0;               /* 24px от текста последней ссылки */
  border: 0;
  background: var(--color-divider-soft);
}

.site-footer__social {
  position: relative;
  display: flex;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.social-link {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-powder-line);
  color: var(--color-accent);
  transition: background-color var(--dur-fast) var(--ease);
}

.social-link--telegram {
  border: 0;
  background: var(--color-accent);
  color: var(--color-button-text);
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.site-footer__contact {
  position: relative;
  display: inline-block;
  margin-top: 12px;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-accent);
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .footer-nav a:hover,
  .site-footer__contact:hover {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .social-link:hover { background: var(--color-powder); }
  .social-link--telegram:hover { background: var(--color-accent-hover); }
}

.social-link--telegram:active { background: var(--color-accent-active); }

.site-footer__copy {
  position: relative;
  margin-top: 28px;
  font-size: 11px;
  line-height: 16px;
  color: var(--color-muted);
}

/* ==========================================================================
   Страница услуги (ТЗ №06) — общие компоненты для /question/ и других услуг
   ========================================================================== */

.service-page { padding-bottom: 48px; }   /* после «Других услуг» до подвала (ТЗ 06.6, п. 12) */

/* Навигационная цепочка */
.breadcrumbs { padding-top: 18px; }

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 11px;
  line-height: 16px;
  color: var(--color-muted);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-inline: 6px;
}

.breadcrumbs a {
  color: var(--color-muted);
  text-decoration: none;
}

.breadcrumbs [aria-current="page"] { color: var(--color-body); }

@media (hover: hover) and (pointer: fine) {
  .breadcrumbs a:hover { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }
}

/* Заголовочный блок */
.service-hero__title {
  margin-top: 24px;               /* от навигационной цепочки */
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 40px;
  line-height: 42px;
  color: var(--color-text);
}

.service-hero__lead {
  margin-top: 12px;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-body);
}

/* Фото и панель стоимости */
.service-media {
  position: relative;
  height: 350px;
  margin-top: 24px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #E9E2D8;            /* тон-заглушка до загрузки */
}

.service-media__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-media__panel {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  min-height: 154px;
  padding: 16px;
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.service-media__label {
  font-weight: 500;
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--color-muted);
}

.service-media__price {
  margin-top: 4px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  line-height: 36px;
  font-variant-numeric: lining-nums;
  color: var(--color-text);
}

.service-media__button {
  min-height: 52px;
  margin-top: 12px;
  font-size: 14px;
}

/* Секции страницы */
.page-section { margin-top: 48px; }

.page-section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  line-height: 36px;
  color: var(--color-text);
}

.page-section__lead {
  margin-top: 12px;
  font-size: 14px;
  line-height: 21px;
  color: var(--color-body);
}

/* Цитата практика (ТЗ 06.3, п. 2; по референсу) */
.quote {
  position: relative;
  overflow: hidden;               /* декор не выходит за панель */
  margin: 40px 0 0;
  padding: 24px;
  border-radius: 20px;
  background: #EDDED3;            /* цвет стены на фоновом снимке — до загрузки */
}

/* Фоновая композиция: свеча, карта и гипсофила в правом нижнем углу,
   однотонная стена слева — под текстом */
.quote__bg {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 210px;
  height: 350px;
  object-fit: cover;              /* пропорции 210 × 350 не совпадают со снимком 2:3 — без искажений */
  object-position: 100% 100%;
  /* левый край снимка плавно растворяется в фоне панели */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 35%);
  mask-image: linear-gradient(to right, transparent, #000 35%);
  pointer-events: none;
}

.quote__mark,
.quote__text,
.quote__author { position: relative; }

.quote__mark {
  display: block;
  width: 34px;
  height: 26px;
  color: var(--color-accent);
}

.quote__text {
  max-width: 302px;
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 105%;
  color: var(--color-text);
}

.quote__author {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--color-powder-line);
  width: 160px;
  font-weight: 500;
  font-size: 12px;
  line-height: 18px;
  color: var(--color-text);
  white-space: nowrap;
}

/* Винная секция во всю ширину экрана со скруглёнными углами */
.band {
  position: relative;
  overflow: hidden;
  margin: 40px calc(var(--gutter) * -1) 0;   /* выходит за поля контейнера */
  padding: 40px 0 32px;
  border-radius: 24px;
  background: var(--color-wine);
}

/* Тонкая дуга со звездой справа вверху */
.band__orbit {
  position: absolute;
  top: 0;
  right: 0;
  width: 110px;
  height: 170px;
  color: var(--color-on-wine-line);
  pointer-events: none;
}

.band__head {
  position: relative;
  padding-inline: var(--gutter);
}

.band__title {
  max-width: 300px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 36px;
  line-height: 39px;
  color: var(--color-surface);
}

.band__lead {
  max-width: 300px;
  margin-top: 12px;
  font-size: 14px;
  line-height: 21px;
  color: var(--color-on-wine);
}

/* Горизонтальная лента: свайп, привязка к карточкам, видна часть следующей */
.carousel {
  display: flex;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0 var(--gutter);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  list-style: none;
}

.carousel::-webkit-scrollbar { display: none; }

.carousel:focus-visible {
  outline: 2px solid var(--color-surface);
  outline-offset: -2px;
}

/* Светлые карточки на винном фоне: пудровые и кремовые попеременно */
.situation-card {
  display: flex;
  flex: 0 0 300px;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  padding: 20px;
  border-radius: 18px;
  background: var(--color-powder);
  scroll-snap-align: start;
}

.situation-card:nth-child(even) { background: var(--color-sand); }

.situation-card__label {
  font-weight: 500;
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--color-accent);
}

.situation-card__title {
  margin-top: 24px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  line-height: 31px;
  color: var(--color-text);
}

.situation-card__text {
  margin-top: 8px;
  font-size: 13px;
  line-height: 19px;
  color: var(--color-body);
}

/* Индикатор: точки по центру, активная вытягивается в полоску */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-dots span {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--color-powder-line);
  opacity: 0.6;
  transition: width var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

.carousel-dots span.is-active {
  width: 26px;
  background: var(--color-surface);
  opacity: 1;
}

.band + .page-section { margin-top: 48px; }

/* Темы для разбора (ТЗ 06.4): надзаголовок, фотокарточки 2 × 2 и CTA-карточка */
.topics-head__title {
  margin-top: 0;
  font-size: 34px;
  line-height: 36px;
}

.topics-head__lead { margin-top: 10px; }

.topic-cards {
  display: grid;
  grid-template-columns: 170px 170px;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

/* Фото на всю карточку, текст поверх нижней части */
.topic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 218px;
  padding: 0 10px 10px;
  border-radius: 14px;
  overflow: hidden;
  background: #3A2A26;            /* тон-заглушка до загрузки */
}

.topic-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Мягкий тёмно-коричневый градиент снизу — для читаемости белого текста */
.topic-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(39, 25, 23, 0.9) 0%,
    rgba(39, 25, 23, 0.8) 40%,
    rgba(39, 25, 23, 0.7) 50%,
    rgba(39, 25, 23, 0.38) 60%,
    rgba(39, 25, 23, 0.08) 80%,
    rgba(39, 25, 23, 0) 100%
  );

  pointer-events: none;
}

.topic-card__title,
.topic-card__text {
  position: relative;
  z-index: 1;
  max-width: 146px;
}

.topic-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  line-height: 23px;
  color: var(--color-surface);
}

.topic-card__text {
  margin-top: 5px;
  font-size: 12px;
  line-height: 15px;
  color: #F0E6DF;
}

/* Большая фото-CTA «Не нашли свою тему?» */
.topic-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  height: 250px;
  margin-top: 10px;
  padding: 18px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #3F2225;            /* тон-заглушка до загрузки */
}

.topic-cta__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-position: center center;
}

.topic-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(39, 25, 23, 0.8) 0%,
    rgba(39, 25, 23, 0.8) 40%,
    rgba(39, 25, 23, 0.7) 50%,
    rgba(39, 25, 23, 0.7) 60%,
    rgba(39, 25, 23, 0.6) 80%,
    rgba(39, 25, 23, 0.6) 100%
  );
  pointer-events: none;
  z-index: 1;                     /* над фото (оно идёт в разметке позже) */
}

.topic-cta .button{
      color: var(--color-accent);
      background: var(--color-button-text);
}

.topic-cta > :not(picture) {position: relative;z-index: 2;}

.topic-cta__eyebrow {
  font-weight: 500;
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--color-on-wine);
}

.topic-cta__title {
  max-width: 310px;
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  line-height: 30px;
  color: var(--color-surface);
}

.topic-cta__text {
  max-width: 310px;
  margin-top: 8px;
  font-size: 12px;
  line-height: 17px;
  color: #F0E6DF;
}

/* Фирменная кнопка (.button) — только отступ и контрастный фокус на тёмном фоне */
.topic-cta__button { margin-top: 14px; }

.topic-cta__button:focus-visible { outline-color: var(--color-surface); }

/* Как проходит консультация — вертикальная шкала (ТЗ 06.5) */
.process { margin-top: 48px; }

.process__title {
  max-width: 318px;
  margin-top: 0;
  font-size: 34px;
  line-height: 36px;
}

.process__lead {
  max-width: 318px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 19px;
  color: var(--color-body);
}

.timeline {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

/* Дорожка 20px + 12px + контент на всю оставшуюся ширину */
.timeline__step {
  position: relative;
  display: grid;
  grid-template-columns: 20px 1fr;
  column-gap: 12px;
}

.timeline__step + .timeline__step { margin-top: 32px; }

/* Точка на оси x = 10px, по центру первой строки названия */
.timeline__step::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  transition: background-color 300ms var(--ease), box-shadow 300ms var(--ease);
}

/* Отрезок линии от своей точки до точки следующего этапа; у последнего — нет.
   --fill — доля закрашенной части (задаёт скрипт при прокрутке) */
.timeline__step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 9.5px;
  width: 1px;
  height: calc(100% + 32px);
  background: linear-gradient(
    to bottom,
    var(--color-accent) var(--fill, 0%),
    var(--color-border-warm) var(--fill, 0%)
  );
}

/* «Загорание» при прокрутке — только когда работает скрипт.
   Без JS все точки залиты, линия спокойного цвета. */
.timeline.is-live .timeline__step::after {
  background: var(--color-surface);
  box-shadow: inset 0 0 0 1.5px var(--color-accent);
}

.timeline.is-live .timeline__step.is-lit::after {
  background: var(--color-accent);
  box-shadow: 0 0 0 5px rgba(113, 61, 67, 0.14);
}

.timeline__body { grid-column: 2; }

/* Название этапа — крупно, на месте прежнего номера; точка на уровне первой строки */
.timeline__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 30px;
  line-height: 32px;
  color: var(--color-text);
}

.timeline__text {
  margin-top: 6px;
  font-size: 12px;
  line-height: 17px;
  color: var(--color-body);
}

.timeline__photo {
  width: 100%;
  height: 150px;
  margin-top: 12px;
  border-radius: 10px;
  object-fit: cover;
  background: #E9E2D8;            /* тон-заглушка до загрузки */
}

/* Другие услуги — карусель карточек главной (ТЗ 06.6) */
.services { margin-top: 48px; }

.services__title {
  margin-top: 0;
  font-size: 36px;
  line-height: 39px;
}

/* Лента во всю ширину экрана: карточка 286px по центру, по бокам по 40px соседних */
.services__track {
  display: flex;
  gap: 12px;
  margin: 24px calc(var(--gutter) * -1) 0;   /* выходит за поля контейнера */
  padding: 0 calc(var(--gutter) + 32px);     /* (ширина ленты − 286) / 2 — карточка по центру */
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
}

.services__track::-webkit-scrollbar { display: none; }

/* Компактный вариант карточки главной для карусели */
.format-card--compact {
  flex: 0 0 286px;
  height: 442px;
  scroll-snap-align: center;
}

.format-card--compact .format-card__panel { min-height: 180px; }

.format-card--compact .format-card__title {
  font-size: 25px;
  line-height: 27px;
}

.format-card--compact .format-card__text {
  margin-top: 6px;
  font-size: 12px;
  line-height: 18px;
  flex-grow: 1;
}

.format-card--compact .format-card__price {
  font-size: 27px;
  line-height: 31px;
}

/* Стрелки под каруселью */
.services__nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.services__arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--color-accent);
  color: var(--color-button-text);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

.services__arrow svg { width: 18px; height: 18px; }

@media (hover: hover) and (pointer: fine) {
  .services__arrow:hover { background: var(--color-accent-hover); }
}

.services__arrow:active { background: var(--color-accent-active); }

/* Сравнение формулировок (ТЗ 06.1, блок 3) */
.compare { margin-top: 20px; }

.compare__panel {
  padding: 16px;
  border-radius: 12px;
}

.compare__panel--general {
  /* min-height: 104px; */
  background: var(--color-sand);
}

.compare__panel--specific {
  /* min-height: 142px; */
  border: 1px solid var(--color-border-warm);
  background: var(--color-surface);
}

.compare__label {
  font-weight: 500;
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--color-muted);
}

.compare__panel--specific .compare__label { color: var(--color-accent); }

.compare__question {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 28px;
  color: var(--color-text);
}

.compare__arrow {
  display: block;
  width: 18px;
  height: 18px;
  margin: 12px auto;
  color: var(--color-accent);
}

.compare__note {
  margin-top: 16px;
  font-size: 14px;
  line-height: 21px;
  color: var(--color-body);
  margin-bottom: 20px;
}

/* FAQ: аккордеон. Без JS ответы видны; скрипт сворачивает их при загрузке */
.faq {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-divider);
}

.faq__item { border-bottom: 1px solid var(--color-divider); }

.faq__question { margin: 0; }

.faq__button {
  position: relative;
  display: block;
  width: 100%;
  padding: 18px 24px 18px 0;
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 21px;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
}

.faq__icon {
  position: absolute;
  top: 50%;
  right: 0;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  color: var(--color-accent);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 1px;
  width: 14px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform var(--dur-fast) var(--ease);
}

.faq__icon::after { transform: rotate(90deg); }

.faq__button[aria-expanded="true"] .faq__icon::after { transform: rotate(0deg); }

.faq__answer {
  margin-top: -8px;               /* 10px от текста вопроса */
  padding: 0 24px 18px 0;
  font-size: 14px;
  line-height: 21px;
  color: var(--color-body);
}

.faq__answer[hidden] { display: none; }

/* Финальный полноширинный CTA страницы услуги (ТЗ 06.7) */
.final-cta {
  position: relative;
  isolation: isolate;
  height: 640px;
  margin: 48px calc(var(--gutter) * -1) 0;   /* во всю ширину экрана, после шкалы этапов */
  padding: 42px var(--gutter) 0;
  overflow: hidden;
  background: #301114;            /* тон до загрузки фото */
  text-align: center;
}

.final-cta__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Тёмный винный градиент сверху — под текстом; карты и свеча внизу остаются видны */
.final-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(39, 11, 15, 0.78) 0%,
    rgba(55, 18, 23, 0.72) 32%,
    rgba(55, 18, 23, 0.48) 52%,
    rgba(39, 25, 23, 0.16) 76%,
    rgba(39, 25, 23, 0.08) 100%
  );
}

.final-cta__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 38px;
  line-height: 40px;
  color: var(--color-surface);
}

.final-cta__text {
  margin-top: 14px;
  font-size: 14px;
  line-height: 21px;
  color: #F0E6DF;
}

/* Светлая широкая кнопка: фирменная .button в инверсных цветах */
.final-cta__button {
  gap: 6px;
  margin-top: 22px;
  padding-inline: 16px;
  background: var(--color-surface);
  color: var(--color-accent);
  font-size: 14px;
}

.final-cta__button svg { width: 10px; height: 10px; flex: none; }

@media (hover: hover) and (pointer: fine) {
  .final-cta__button:hover { background: var(--color-sand); }
}

.final-cta__button:active { background: var(--color-sand); }

.final-cta__button:focus-visible { outline-color: var(--color-surface); }

/* ==========================================================================
   Контекстные триггеры страницы услуги (ТЗ №06.2)
   ========================================================================== */

/* Триггер-подсказка: компактная пудровая плашка */
.nudge {
  margin-top: 8px;
  padding: 14px;
  border-radius: 12px;
  background: var(--color-powder);
}

.nudge__title {
  font-weight: 600;
  font-size: 15px;
  line-height: 20px;
  color: var(--color-text);
}

.nudge__text {
  margin-top: 4px;
  font-size: 13px;
  line-height: 18px;
  color: var(--color-body);
}

.nudge__button { margin-top: 12px; }

/* Вариант слабее: без заливки, с тонкой линией слева */
.nudge--line {
  padding: 0 0 0 12px;
  border-left: 2px solid var(--color-powder-line);
  border-radius: 0;
  background: none;
}

.nudge--line .nudge__title {
  font-size: 14px;
  line-height: 19px;
}





.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
