/* =============================================================================
   Стили сайта астролога.
   Цвета, шрифты и размеры — в переменных ниже: поменяйте их, и изменится весь сайт.
   Палитра «Астролог Лев»: кремовый фон, оранжевые главные блоки, тёмно-коричневые
   текст и кнопки, жёлтое солнце, красные звёздочки-акценты.
   ============================================================================= */

:root {
  --cream: #fff6ea;        /* фон страницы */
  --cream-deep: #fce9d2;   /* фон второстепенных блоков */
  --paper: #fffcf6;        /* карточки */
  --orange: #f28c28;       /* главный блок */
  --orange-light: #f7a84e;
  --brown: #2a1405;        /* текст и кнопки */
  --brown-soft: #4b2a12;
  --sun: #ffd23f;          /* солнце, акцент на тёмном */
  --red: #d1342f;          /* точечный акцент */
  --far: #5a3212;          /* дальние лапы льва */

  --bg: var(--cream);
  --text: var(--brown);
  --text-dim: #5f4c3e;
  --text-muted: #7b6a5c;
  --line: rgba(42, 20, 5, 0.13);
  --line-strong: rgba(42, 20, 5, 0.28);
  --accent: var(--red);
  --accent-mark: none;
  --eyebrow-mark: var(--red);
  --shadow: 0 30px 70px -38px rgba(42, 20, 5, 0.5);
  --shadow-soft: 0 14px 34px -22px rgba(42, 20, 5, 0.45);
  --orange-block:
    radial-gradient(70% 80% at 80% 30%, rgba(255, 210, 63, 0.35), transparent 70%),
    linear-gradient(180deg, #f28c28 0%, #f39535 70%, #f49f43 100%);

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: 76px;
  --radius: 22px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-1 -1 2 2'%3E%3Cpath d='M0-1C.14-.18.18-.14 1 0 .18.14.14.18 0 1-.14.18-.18.14-1 0-.18-.14-.14-.18 0-1Z'/%3E%3C/svg%3E");

  color-scheme: light;
}

/* Оранжевые блоки: первый экран, шапки страниц, запись. На оранжевом весь текст — тёмный */
.hero,
.page-hero,
.section--booking,
.thanks {
  --text-dim: #3a1f0b;
  --text-muted: #4a2a12;
  --line: rgba(42, 20, 5, 0.2);
  --line-strong: rgba(42, 20, 5, 0.38);
  --accent: var(--brown);
  --accent-mark: linear-gradient(transparent 62%, rgba(255, 210, 63, 0.9) 62%, rgba(255, 210, 63, 0.9) 90%, transparent 90%);
  --eyebrow-mark: var(--cream);
  background: var(--orange-block);
}

/* --- Шрифты (хранятся на сайте, без обращения к Google) ------------------- */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-cyrillic-wght-normal.e1df04190d1b.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: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-wght-normal.c47ff12887a3.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: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-cyrillic-wght-italic.b554abc2d050.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: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-wght-italic.3e2c4175a96d.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: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic-wght-normal.e58febde317b.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: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-wght-normal.938c6e8019b6.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: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-rub-wght-normal.05c312ef50fa.woff2") format("woff2");
  unicode-range: U+20BD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-rub-wght-normal.8008267545a0.woff2") format("woff2");
  unicode-range: U+20BD;
}


/* --- Основа ----------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.7 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

::selection {
  background: rgba(242, 140, 40, 0.35);
  color: var(--brown);
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.container--narrow {
  max-width: 800px;
}

.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;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--brown);
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 30px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 0.95rem/1.2 var(--font-sans);
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background-color 0.25s, border-color 0.25s, color 0.25s;
}

.btn--primary {
  color: var(--cream);
  background: var(--brown);
  box-shadow: 0 14px 30px -16px rgba(42, 20, 5, 0.75);
}

.btn--primary:hover {
  background: var(--brown-soft);
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -18px rgba(42, 20, 5, 0.8);
}

.btn--ghost,
.btn--outline {
  color: var(--brown);
  border-color: var(--line-strong);
  background: transparent;
}

.btn--ghost:hover,
.btn--outline:hover {
  border-color: var(--brown);
  background: rgba(42, 20, 5, 0.06);
}

.btn--sun {
  color: var(--brown);
  background: var(--sun);
}

.btn--sun:hover {
  background: #ffdc63;
}

.btn--small {
  min-height: 42px;
  padding: 0 22px;
  font-size: 0.86rem;
}

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

.btn:disabled {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

/* --- Подписи и заголовки разделов ----------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--text);
  font: 700 0.74rem/1.4 var(--font-sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

/* красная звёздочка, как на логотипе */
.eyebrow::before,
.eyebrow--center::after,
.section-head--center .eyebrow::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: var(--eyebrow-mark);
  -webkit-mask: var(--spark) center / contain no-repeat;
  mask: var(--spark) center / contain no-repeat;
}

.accent-text,
.hero__title em,
.section-title em,
.page-title em {
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-mark);
  padding: 0 0.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.section {
  position: relative;
  padding: clamp(80px, 10vw, 136px) 0;
}

.section--tight {
  padding: clamp(56px, 7vw, 96px) 0;
}

.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100% - 2 * var(--gutter), var(--container));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.section--booking::before,
.section--booking + .section::before,
.section--about + .section::before,
.section + .section--about::before {
  display: none;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-title {
  margin: 0 0 22px;
  font: 600 clamp(2.3rem, 4.6vw, 3.7rem) / 1.06 var(--font-serif);
  letter-spacing: -0.01em;
}

.section-lead {
  max-width: 40em;
  margin: 0;
  color: var(--text-dim);
  font-size: 1.08rem;
}

/* --- Знак-созвездие (шапка, подвал) --------------------------------------- */

.leo-mark {
  --mark-disc: transparent;
  --mark-ring: var(--orange);
  --mark-line: var(--brown);
  --mark-star: var(--orange);
  --mark-spark: var(--red);
}

.leo-mark__disc {
  fill: var(--mark-disc);
}

.leo-mark__ring {
  stroke: var(--mark-ring);
}

.leo-mark__lines {
  stroke: var(--mark-line);
}

.leo-mark__stars {
  fill: var(--mark-star);
}

.leo-mark__spark {
  fill: var(--mark-spark);
}

.leo-mark * {
  transition: fill 0.35s, stroke 0.35s;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  height: var(--header-h);
}

/* фон шапки — на псевдоэлементе, чтобы размытие не ломало мобильное меню */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 246, 234, 0.9);
  box-shadow: 0 10px 30px -24px rgba(42, 20, 5, 0.5);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  opacity: 0;
  transition: opacity 0.35s;
}

.site-header.is-scrolled::before {
  opacity: 1;
}

/* пока шапка над оранжевым блоком, знак — в «оранжевом» варианте логотипа */
.site-header:not(.is-scrolled) .leo-mark {
  --mark-ring: var(--brown);
  --mark-star: var(--cream);
  --mark-spark: var(--cream);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  position: relative;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand__mark {
  flex: none;
  width: 48px;
  height: 48px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  font: 700 1.6rem/1 var(--font-serif);
  letter-spacing: 0.01em;
}

.brand__tagline {
  margin-bottom: 3px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
}

.nav__link {
  position: relative;
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav__link:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
}

@media (max-width: 920px) {
  .nav-toggle {
    position: relative;
    z-index: 60;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 46px;
    height: 46px;
    border: 1.5px solid var(--line-strong);
    border-radius: 50%;
    background: rgba(255, 246, 234, 0.35);
    cursor: pointer;
  }

  .nav-toggle__line {
    width: 18px;
    height: 1.5px;
    background: var(--brown);
    transition: transform 0.3s var(--ease);
  }

  .nav-open .nav-toggle__line:first-of-type {
    transform: translateY(4.25px) rotate(45deg);
  }

  .nav-open .nav-toggle__line:last-of-type {
    transform: translateY(-4.25px) rotate(-45deg);
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 55;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    padding: var(--header-h) 24px 40px;
    background:
      radial-gradient(600px 420px at 50% 18%, rgba(242, 140, 40, 0.18), transparent 70%),
      var(--cream);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

  .nav-open .nav {
    opacity: 1;
    visibility: visible;
  }

  .nav-open body {
    overflow: hidden;
  }

  .nav-open .site-header .leo-mark {
    --mark-ring: var(--orange);
    --mark-star: var(--orange);
    --mark-spark: var(--red);
  }

  .nav__link {
    font: 600 2.1rem/1.2 var(--font-serif);
  }

  .nav__cta {
    margin-top: 12px;
  }
}

/* --- Первый экран ----------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 32px) 0 80px;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.hero__title {
  margin: 0 0 28px;
  font: 600 clamp(2.9rem, 6.1vw, 5.4rem) / 1 var(--font-serif);
  letter-spacing: -0.015em;
}

.hero__lead {
  max-width: 34em;
  margin: 0 0 40px;
  color: var(--text-dim);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 500;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__visual {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 600px;
}

.hero__scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  width: 26px;
  height: 42px;
  border: 1.5px solid var(--line-strong);
  border-radius: 20px;
  transform: translateX(-50%);
}

.hero__scroll span {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: var(--brown);
  transform: translateX(-50%);
  animation: scroll-cue 2.2s ease-in-out infinite;
}

@keyframes scroll-cue {
  0% { opacity: 0; transform: translate(-50%, 0); }
  30% { opacity: 1; }
  80% { opacity: 0; transform: translate(-50%, 14px); }
  100% { opacity: 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Лев из созвездия (static/js/leo.js) ------------------------------------ */

.leo-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
}

.leo-stage[role="button"] {
  cursor: pointer;
}

.leo {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* пока скрипт не запустил анимацию, сцена скрыта; если скрипт не загрузится — появится сама */
.js .leo-stage:not(.is-ready) .leo {
  visibility: hidden;
  animation: leo-failsafe 0s 2.5s forwards;
}

@keyframes leo-failsafe {
  to { visibility: visible; }
}

.leo__halo-stop {
  stop-color: var(--sun);
  stop-opacity: 0.5;
}

.leo__halo-stop--edge {
  stop-opacity: 0;
}

.leo__rays {
  fill: var(--sun);
  fill-opacity: 0.6;
  transform-box: view-box;
  transform-origin: 500px 500px;
}

.leo__disc {
  fill: var(--sun);
}

.leo__ring {
  fill: none;
  stroke: var(--red);
  stroke-width: 8;
}

.leo__shadow {
  fill: var(--brown);
}

.leo__dark line,
.leo__lit line {
  stroke-width: 6.5;
  stroke-linecap: round;
}

.leo__dark line {
  stroke: var(--brown);
}

.leo__dark circle,
.leo__fur {
  fill: var(--brown);
}

.leo__far {
  fill: var(--far);
}

.leo__eye {
  fill: var(--sun);
}

.leo__tail {
  fill: none;
  stroke: var(--brown);
  stroke-width: 8.5;
  stroke-linecap: round;
}

.leo__lit line {
  stroke: var(--orange);
}

.leo__lit circle {
  fill: var(--sun);
}

.leo__regulus {
  fill: var(--red);
}

.leo__text {
  fill: var(--brown);
}

/* --- Натальная карта (декор в разделе «Обо мне») ---------------------------- */

.wheel {
  width: 100%;
  height: 100%;
  overflow: visible;
  color: var(--brown);
}

.wheel__ring {
  fill: none;
  stroke: currentColor;
  stroke-opacity: 0.35;
  stroke-width: 1;
}

.wheel__ticks {
  fill: none;
  stroke: currentColor;
  stroke-opacity: 0.28;
  stroke-width: 0.8;
}

.wheel__borders {
  stroke: currentColor;
  stroke-opacity: 0.3;
}

.wheel__sign {
  fill: currentColor;
  opacity: 0.75;
}

.wheel__houses {
  stroke: currentColor;
  stroke-opacity: 0.14;
}

.wheel__axes {
  stroke: currentColor;
  stroke-opacity: 0.42;
  stroke-width: 1.3;
}

.wheel__house-no {
  fill: var(--text-muted);
  font: 500 11px var(--font-sans);
  text-anchor: middle;
  dominant-baseline: central;
}

.wheel__aspect {
  stroke-width: 1.2;
}

.wheel__aspect--soft {
  stroke: var(--orange);
  stroke-opacity: 0.75;
}

.wheel__aspect--hard {
  stroke: var(--red);
  stroke-opacity: 0.6;
}

.wheel__markers {
  stroke: currentColor;
  stroke-opacity: 0.5;
  stroke-width: 1.2;
}

.wheel__dot {
  fill: var(--orange);
}

.wheel__planet {
  fill: currentColor;
  opacity: 0.85;
}

/* --- Услуги ------------------------------------------------------------------ */

.group-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 56px 0 22px;
  color: var(--text-muted);
  font: 700 0.76rem/1.4 var(--font-sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section-head + .group-title {
  margin-top: 0;
}

.cards {
  display: grid;
  gap: 20px;
}

.cards--general {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards--topic {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(26px, 3vw, 38px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(380px 220px at 92% -14%, rgba(242, 140, 40, 0.13), transparent 70%);
  pointer-events: none;
  transition: opacity 0.4s;
}

.card:hover {
  border-color: rgba(242, 140, 40, 0.6);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

/* маленькое солнце: жёлтый круг с красным кольцом, как на логотипе */
.card__glyph,
.page-hero__glyph,
.article__glyph,
.thanks__glyph {
  display: grid;
  flex: none;
  place-items: center;
  border: 2px solid var(--red);
  border-radius: 50%;
  color: var(--brown);
  background: var(--sun);
}

.card__glyph {
  width: 60px;
  height: 60px;
}

.card__glyph-icon {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.badge {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream-deep);
  color: var(--brown);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card__title {
  margin-top: 12px;
  color: var(--text);
  font: 700 clamp(1.55rem, 2.2vw, 1.9rem) / 1.15 var(--font-serif);
}

.cards--general .card__title {
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
}

.card__text {
  flex: 1;
  color: var(--text-dim);
  font-size: 0.98rem;
  line-height: 1.65;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.card__offer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card__price {
  color: var(--text);
  font-variant-numeric: lining-nums;
  font: 700 1.4rem/1.2 var(--font-serif);
}

.card__format {
  color: var(--text-dim);
  font-size: 0.86rem;
}

.card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--red);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.card__more svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}

.card:hover .card__more svg {
  transform: translateX(4px);
}

/* --- Обо мне ------------------------------------------------------------------ */

.section--about {
  background: var(--cream-deep);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}

.about__visual {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1;
  margin: 0 auto 40px;
}

.about__wheel {
  position: absolute;
  inset: 0;
  animation: spin 300s linear infinite;
  will-change: transform;
}

/* Портрет — круг на месте внутреннего кольца карты (R_INNER = половина радиуса в
   content/wheel.py), номера домов остаются видны вокруг. Из вертикального фото
   в круг попадает середина со сдвигом вверх — там лицо. */
.portrait {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--paper);
  box-shadow: var(--shadow), 0 0 0 2px var(--orange);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}

.facts {
  display: grid;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.fact {
  display: grid;
  grid-template-columns: minmax(3.2em, auto) 1fr;
  gap: 22px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.fact:first-child {
  border-top: 1px solid var(--line);
}

.fact__value {
  color: var(--red);
  font-variant-numeric: lining-nums;
  font: 600 clamp(2.5rem, 4vw, 3.3rem) / 1 var(--font-serif);
}

.fact__label {
  color: var(--text-dim);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* --- Как проходит работа ---------------------------------------------------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 14px);
}

.step {
  position: relative;
  padding: 0 6px;
  text-align: center;
}

.step__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 10px var(--bg);
  color: var(--brown);
  font: 700 1.5rem/1 var(--font-serif);
}

.step__title {
  margin: 0 0 10px;
  font: 700 1.6rem/1.2 var(--font-serif);
}

.step__text {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.96rem;
}

/* --- Отзывы ------------------------------------------------------------------ */

/* На компьютере отзывы — сеткой (лишние переходят на следующий ряд),
   на телефоне — лентой, которую листают пальцем */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

@media (max-width: 960px) {
  .reviews {
    grid-template-columns: none;
    grid-auto-columns: minmax(280px, 1fr);
    grid-auto-flow: column;
    padding-bottom: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--line-strong) transparent;
  }
}

.review {
  position: relative;
  margin: 0;
  padding: 34px 32px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  scroll-snap-align: start;
}

.review::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  left: 26px;
  color: var(--orange);
  font: 600 5rem/1 var(--font-serif);
}

.review__text {
  margin: 34px 0 22px;
  font: 500 1.28rem/1.5 var(--font-serif);
}

.review__author {
  font-size: 0.92rem;
  font-weight: 700;
}

.review__service {
  display: block;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 400;
}

/* --- Вопросы и ответы ------------------------------------------------------- */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.faq .section-head {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  margin-bottom: 0;
}

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

.faq__item:first-child {
  border-top: 1px solid var(--line);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  font: 700 clamp(1.3rem, 2vw, 1.55rem) / 1.3 var(--font-serif);
  list-style: none;
  cursor: pointer;
  transition: color 0.2s;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question:hover {
  color: var(--red);
}

.faq__icon {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--orange);
  border-radius: 50%;
  transition: background-color 0.3s;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--brown);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease);
}

.faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__item[open] .faq__icon {
  background: var(--orange);
}

.faq__item[open] .faq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq__answer {
  padding: 0 60px 28px 0;
}

/* --- Запись ------------------------------------------------------------------ */

.booking {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.booking__intro {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.booking__or {
  margin: 36px 0 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.booking__form {
  padding: clamp(24px, 4vw, 44px);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 40px 80px -40px rgba(42, 20, 5, 0.6);
}

.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px 0 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 246, 234, 0.4);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.contact:hover {
  border-color: var(--brown);
  background: var(--cream);
}

.contact__icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contacts--plain {
  flex-direction: column;
  gap: 6px;
}

.contacts--plain .contact {
  min-height: 0;
  padding: 2px 0;
  border: 0;
  background: none;
  color: inherit;
  font-weight: 400;
}

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

.form {
  position: relative;
  display: grid;
  gap: 22px;
}

.field {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field__label {
  padding: 0;
  color: var(--brown);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.field__optional {
  margin-left: 8px;
  color: #7b6a5c;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0;
}

.field input:not([type="checkbox"], [type="radio"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1.5px solid rgba(42, 20, 5, 0.18);
  border-radius: 14px;
  background: #fff;
  color: var(--brown);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  min-height: 118px;
  line-height: 1.55;
  resize: vertical;
}

.field select {
  padding-right: 46px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a1405' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 16px center;
  background-repeat: no-repeat;
  background-size: 18px;
}

.field ::placeholder {
  color: rgba(42, 20, 5, 0.42);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(242, 140, 40, 0.22);
}

.field--error input:not([type="checkbox"], [type="radio"]),
.field--error select,
.field--error textarea {
  border-color: var(--red);
}

.field__hint {
  margin: 0;
  color: #7b6a5c;
  font-size: 0.82rem;
  line-height: 1.5;
}

.field__hint--accent {
  color: var(--brown);
  font-weight: 600;
}

.field__error {
  margin: 0;
  color: #b32622;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.5;
}

.form__group {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form__group > legend {
  float: left;
  width: 100%;
  margin-bottom: 0;
}

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

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice {
  position: relative;
  cursor: pointer;
}

.choice input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1.5px solid rgba(42, 20, 5, 0.18);
  border-radius: 999px;
  color: var(--brown);
  font-size: 0.9rem;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.choice:hover span {
  border-color: var(--orange);
}

.choice input:checked + span {
  border-color: var(--brown);
  background: var(--brown);
  color: var(--cream);
  font-weight: 600;
}

.choice input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(242, 140, 40, 0.45);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #5f4c3e;
  font-size: 0.9rem;
  line-height: 1.5;
  cursor: pointer;
}

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

.consent a,
.form__note a {
  color: var(--brown);
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
}

.form__note {
  margin: -6px 0 0;
  color: #7b6a5c;
  font-size: 0.82rem;
  text-align: center;
}

.form__alert {
  padding: 14px 18px;
  border: 1px solid rgba(209, 52, 47, 0.45);
  border-radius: 14px;
  background: rgba(209, 52, 47, 0.07);
  color: #8e1f1b;
  font-size: 0.92rem;
}

.form__alert p {
  margin: 0;
}

/* список ошибок у кнопки «Отправить заявку» */
.form__summary-title {
  font-weight: 700;
}

.form__summary ul {
  margin: 6px 0 0;
  padding-left: 1.2em;
}

.form__summary a {
  color: inherit;
  text-underline-offset: 3px;
}

.field--error .consent input {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.form__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Шапки внутренних страниц ------------------------------------------------- */

.page-hero {
  padding: calc(var(--header-h) + clamp(40px, 6vw, 84px)) 0 clamp(44px, 6vw, 72px);
}

.page-hero + .section {
  padding-top: clamp(48px, 6vw, 80px);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-hero__head {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 30px);
}

.page-hero__glyph {
  width: clamp(72px, 9vw, 100px);
  height: clamp(72px, 9vw, 100px);
}

.page-hero__glyph-icon {
  width: 46%;
  height: 46%;
  fill: currentColor;
}

.page-title {
  margin: 12px 0 0;
  font: 600 clamp(2.4rem, 5.4vw, 4.4rem) / 1.04 var(--font-serif);
  letter-spacing: -0.012em;
}

.page-hero__lead {
  max-width: 40em;
  margin: 28px 0 0;
  color: var(--text-dim);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 500;
}

.page-hero__meta {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Страница услуги ----------------------------------------------------------- */

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.detail__heading {
  margin: 56px 0 20px;
  font: 600 clamp(1.8rem, 2.8vw, 2.3rem) / 1.15 var(--font-serif);
}

.detail__body > .detail__heading:first-child {
  margin-top: 0;
}

.star-list,
.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.star-list li {
  position: relative;
  padding: 16px 20px 16px 54px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.star-list li::before,
.check-list li::before {
  content: "";
  position: absolute;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.star-list li::before {
  --icon: var(--spark);
  top: 20px;
  left: 22px;
  width: 16px;
  height: 16px;
  background: var(--red);
}

.check-list li {
  position: relative;
  padding-left: 36px;
  color: var(--text-dim);
}

.check-list li::before {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m7.5 12.5 3 3 6-6.5'/%3E%3C/svg%3E");
  top: 4px;
  left: 0;
  width: 20px;
  height: 20px;
  background: var(--orange);
}

.note {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  padding: 20px 24px;
  border: 1px solid rgba(242, 140, 40, 0.5);
  border-radius: 18px;
  background: rgba(255, 210, 63, 0.22);
}

.note p {
  margin: 0;
}

.note__icon {
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--brown);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.detail__aside {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.price-card {
  display: grid;
  gap: 14px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.price-card__label {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.price-card__price {
  margin: 0 0 6px;
  font-variant-numeric: lining-nums;
  font: 700 2.4rem/1.1 var(--font-serif);
}

.price-card__price--muted {
  color: var(--text-dim);
  font-size: 1.5rem;
}

.price-card__format {
  margin: -6px 0 8px;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* --- Тексты ------------------------------------------------------------------ */

.prose {
  color: var(--text-dim);
}

.prose > * {
  margin-top: 0;
  margin-bottom: 0;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  margin-top: 2em;
  color: var(--text);
  font: 600 1.85rem/1.2 var(--font-serif);
}

.prose h3 {
  margin-top: 1.6em;
  color: var(--text);
  font: 700 1.4rem/1.25 var(--font-serif);
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose li::marker {
  color: var(--orange);
}

.prose a {
  color: var(--brown);
  text-decoration-color: var(--red);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--red);
}

.prose strong {
  color: var(--text);
  font-weight: 700;
}

.prose--large > p:first-child {
  color: var(--text);
  font: 500 clamp(1.45rem, 2.3vw, 1.9rem) / 1.42 var(--font-serif);
}

/* --- Спасибо и 404 ------------------------------------------------------------ */

.thanks {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 56px);
}

.thanks__card {
  padding: clamp(32px, 6vw, 64px);
  border-radius: 32px;
  background: var(--paper);
  box-shadow: 0 40px 80px -40px rgba(42, 20, 5, 0.6);
  text-align: center;
  --text-dim: #5f4c3e;
  --text-muted: #7b6a5c;
  --line: rgba(42, 20, 5, 0.13);
  --accent: var(--red);
  --accent-mark: none;
  --eyebrow-mark: var(--red);
}

.thanks__glyph {
  display: inline-grid;
  width: 84px;
  height: 84px;
  margin-bottom: 22px;
}

.thanks__glyph-icon {
  width: 38px;
  height: 38px;
  fill: currentColor;
}

.thanks__lead {
  margin: 18px 0 32px;
  color: var(--text-dim);
  font-size: 1.15rem;
}

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

.site-footer {
  --text-dim: #e3d5c3;
  --text-muted: #b8a792;
  padding: 72px 0 32px;
  background: var(--brown);
  color: var(--cream);
}

.site-footer :focus-visible {
  outline-color: var(--sun);
}

.site-footer .leo-mark {
  --mark-ring: var(--orange);
  --mark-line: var(--orange);
  --mark-star: var(--sun);
  --mark-spark: var(--sun);
}

.site-footer .brand__tagline {
  color: var(--sun);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.site-footer__note {
  max-width: 34em;
  margin: 22px 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-dim);
}

.site-footer__col > a {
  color: var(--text-dim);
  font-size: 0.95rem;
  text-decoration: none;
}

.site-footer__col a:hover {
  color: var(--sun);
}

.site-footer__title {
  margin: 0 0 6px;
  color: var(--sun);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 246, 234, 0.14);
  color: var(--text-muted);
  font-size: 0.84rem;
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__legal::before {
  content: "·";
  margin: 0 10px;
}

.site-footer__docs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-footer__docs a {
  color: var(--text-muted);
  text-underline-offset: 3px;
}

.site-footer__docs a:hover {
  color: var(--sun);
}

/* --- Уведомление о cookie ---------------------------------------------------- */

.cookie-note {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 580px;
  margin-inline: auto;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--brown);
  box-shadow: var(--shadow);
  color: #e3d5c3;
  font-size: 0.88rem;
}

.cookie-note[hidden] {
  display: none;
}

.cookie-note p {
  margin: 0;
}

.cookie-note a {
  color: var(--sun);
}

/* --- Блог ------------------------------------------------------------------ */

.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  max-width: none;
}

.section-head--split .section-title {
  margin-bottom: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.chip:hover {
  border-color: var(--brown);
  background: rgba(255, 246, 234, 0.35);
}

.chip.is-active {
  border-color: var(--brown);
  background: var(--brown);
  color: var(--cream);
}

.chip__count {
  color: inherit;
  font-size: 0.78rem;
  opacity: 0.7;
}

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

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}

.post-card:hover {
  border-color: rgba(242, 140, 40, 0.6);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.post-card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--orange-block);
}

/* без обложки — маленькое солнце с символами */
.post-card__media::before {
  content: "";
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  border: 3px solid var(--red);
  border-radius: 50%;
  background: var(--sun);
}

.post-card__media img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__glyphs {
  position: relative;
  display: flex;
  gap: 10px;
  color: var(--brown);
}

.post-card__glyph {
  width: 54px;
  height: 54px;
  fill: currentColor;
}

.post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 24px 26px 26px;
}

.post-card__meta,
.post-card__date {
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.post-card__meta {
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.post-card__title {
  margin: 0;
  color: var(--text);
  font: 700 1.55rem/1.2 var(--font-serif);
}

.post-card__text {
  flex: 1;
  color: var(--text-dim);
  font-size: 0.96rem;
  line-height: 1.6;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}

.pagination__info,
.empty-note {
  color: var(--text-muted);
}

/* блог, пока нет ни одной статьи */
.blog-empty {
  display: grid;
  justify-items: center;
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 48px) clamp(20px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  text-align: center;
}

.blog-empty__title {
  margin: 0;
  font: 600 clamp(1.7rem, 3vw, 2.2rem) / 1.15 var(--font-serif);
  text-wrap: balance;
}

.blog-empty__text {
  margin: 0 0 8px;
  color: var(--text-dim);
}

.owner-bar {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  left: 16px;
  z-index: 60;
  pointer-events: none;
}

.owner-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  max-width: 720px;
  padding: 12px 20px;
  border-radius: 16px;
  background: var(--brown);
  box-shadow: var(--shadow);
  color: #e3d5c3;
  font-size: 0.9rem;
  pointer-events: auto;
}

.owner-bar a {
  color: var(--sun);
  font-weight: 700;
}

.container--article {
  max-width: 780px;
}

.article__glyphs {
  display: flex;
  gap: 12px;
  margin-bottom: 26px;
}

.article__glyph {
  width: 64px;
  height: 64px;
}

.article__glyph-icon {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.article__title {
  margin-top: 0;
}

.article__lead {
  margin: 24px 0 0;
  color: var(--text-dim);
  font-size: clamp(1.1rem, 1.6vw, 1.28rem);
  font-weight: 500;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article__cover {
  max-width: 1040px;
  margin-block: clamp(32px, 5vw, 56px) 0;
}

.article__cover img {
  width: 100%;
  max-height: 560px;
  border-radius: var(--radius);
  object-fit: cover;
}

.article__layout {
  padding-block: clamp(40px, 6vw, 72px);
}

.toc {
  margin-bottom: clamp(32px, 5vw, 48px);
  padding: 22px 26px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.toc__title {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.toc__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.2em;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.toc__list a {
  color: var(--text-dim);
  text-decoration: none;
}

.toc__list a:hover {
  color: var(--red);
}

.prose--article {
  font-size: 1.1rem;
  line-height: 1.8;
}

.prose--article h2 {
  font-size: clamp(1.75rem, 2.8vw, 2.2rem);
}

.prose blockquote {
  margin-inline: 0;
  padding: 6px 0 6px 26px;
  border-left: 3px solid var(--red);
  color: var(--text);
  font: italic 500 clamp(1.3rem, 2vw, 1.55rem) / 1.5 var(--font-serif);
}

.prose blockquote p {
  margin: 0;
}

.sources {
  margin-top: clamp(40px, 6vw, 56px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.sources__title {
  margin: 0 0 14px;
  font: 600 1.45rem/1.2 var(--font-serif);
}

.sources__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.4em;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.sources__list a {
  color: var(--brown);
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
}

.article-figure {
  margin-inline: 0;
}

.article-figure img {
  width: 100%;
  border-radius: 16px;
}

.article-figure figcaption {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
}

.sign-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sign-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--text-dim);
  font-size: 0.92rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

a.sign-cell:hover {
  border-color: var(--orange);
  color: var(--text);
}

.sign-cell.is-current {
  border: 2px solid var(--orange);
  background: var(--cream-deep);
  color: var(--text);
  font-weight: 600;
}

.sign-cell.is-empty {
  border-style: dashed;
  opacity: 0.55;
}

.sign-cell__glyph {
  flex: none;
  width: 22px;
  height: 22px;
  fill: var(--brown);
}

.author-card {
  display: flex;
  gap: clamp(20px, 4vw, 32px);
  align-items: flex-start;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--cream-deep);
}

.author-card__photo {
  flex: none;
  width: 96px;
  height: 124px;
  border-radius: 999px 999px 16px 16px;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--cream-deep), 0 0 0 5px var(--orange);
}

.author-card__body {
  display: grid;
  gap: 8px;
}

.author-card__label {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.author-card__name {
  margin: 0;
  font: 700 1.7rem/1.2 var(--font-serif);
}

.author-card__text {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.98rem;
}

.author-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

@media (max-width: 1080px) {
  .posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .sign-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .author-card {
    flex-direction: column;
  }
}

/* --- Программа «Астро Помощник» (страница /astro-pomoshnik/ и блок на главной) -- */

.app-hero {
  min-height: auto;
  padding: calc(var(--header-h) + 56px) 0 clamp(64px, 8vw, 110px);
}

.app-hero .hero__grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.app-hero .hero__title {
  font-size: clamp(2.6rem, 4.8vw, 4.4rem);
  line-height: 1.04;
}

.app-hero__visual {
  max-width: 680px;
}

.app-name {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font: 700 1.35rem/1.2 var(--font-serif);
  letter-spacing: 0.01em;
}

.app-name__icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: 0 10px 22px -12px rgba(42, 20, 5, 0.7);
}

/* программа «на устройствах»: окно на компьютере и телефон поверх него */
.app-devices {
  position: relative;
  padding: 0 0 9% 11%;
}

.app-devices--single {
  padding: 0;
}

.app-window {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--cream);
  box-shadow: 0 0 0 1px rgba(42, 20, 5, 0.14), 0 44px 80px -42px rgba(42, 20, 5, 0.75);
}

.app-window__bar {
  display: flex;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--cream-deep);
}

.app-window__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

.app-window__bar i:first-child {
  background: var(--red);
}

.app-window img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: top left;
}

.app-phone {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 27%;
  margin: 0;
  padding: 6px;
  border-radius: 24px;
  background: var(--brown);
  box-shadow: 0 30px 50px -24px rgba(42, 20, 5, 0.8);
}

.app-phone img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16.5;
  border-radius: 18px;
  object-fit: cover;
  object-position: top;
}

/* коротко о главном */
.app-perks-section {
  padding-bottom: 0;
}

.app-perks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-perk {
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.app-perk::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  background: var(--orange);
  -webkit-mask: var(--spark) center / contain no-repeat;
  mask: var(--spark) center / contain no-repeat;
}

.app-perk__title {
  margin: 16px 0 8px;
  font: 700 1.45rem/1.15 var(--font-serif);
}

.app-perk__text {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* снимок экрана в рамке; по нажатию открывается крупно */
.app-shot {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--cream);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.app-shot:hover {
  border-color: rgba(242, 140, 40, 0.7);
  box-shadow: var(--shadow-soft);
}

.app-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: top center;
}

.app-shot--natural img {
  aspect-ratio: auto;
}

/* «для всех» — крупно: снимок и текст, через раз меняются местами */
.app-rows {
  display: grid;
  gap: clamp(48px, 6vw, 88px);
}

.app-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.app-row:nth-child(even) .app-shot {
  order: 2;
}

.app-row .app-shot {
  max-width: 620px;
  box-shadow: var(--shadow);
}

.app-row__title {
  margin: 0 0 16px;
  font: 600 clamp(2rem, 3.4vw, 2.8rem) / 1.1 var(--font-serif);
}

.app-row__text {
  color: var(--text-dim);
  font-size: 1.06rem;
}

/* «для астрологов» — сетка карточек */
.app-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.app-feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 14px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.app-feature__title {
  margin: 12px 12px 0;
  font: 700 clamp(1.5rem, 2.2vw, 1.85rem) / 1.15 var(--font-serif);
}

.app-feature__text {
  margin: 0 12px;
  color: var(--text-dim);
  font-size: 0.97rem;
  line-height: 1.65;
}

.app-feature--text {
  grid-column: 1 / -1;
  padding: 18px 18px 30px;
}

.app-feature--text .app-feature__title::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 12px;
  background: var(--orange);
  -webkit-mask: var(--spark) center / contain no-repeat;
  mask: var(--spark) center / contain no-repeat;
}

.app-actions {
  display: flex;
  justify-content: center;
  margin: clamp(40px, 5vw, 64px) 0 0;
}

/* установка на телефон и «важно знать» */
.app-help {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px);
}

.app-help__title {
  margin: 0 0 22px;
  font: 600 clamp(1.9rem, 3vw, 2.5rem) / 1.1 var(--font-serif);
}

.app-steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: app-step;
}

.app-steps li {
  position: relative;
  padding-left: 52px;
  color: var(--text-dim);
  counter-increment: app-step;
}

.app-steps li::before {
  content: counter(app-step);
  position: absolute;
  top: -4px;
  left: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--red);
  border-radius: 50%;
  background: var(--sun);
  color: var(--brown);
  font: 700 1.05rem/1 var(--font-serif);
}

/* блок о программе на главной */
.app-teaser {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.app-teaser__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

@media (max-width: 1080px) {
  .app-perks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .app-hero {
    padding-top: calc(var(--header-h) + 28px);
  }

  .app-hero .hero__grid,
  .app-teaser,
  .app-row,
  .app-help {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-hero__visual {
    max-width: 640px;
  }

  .app-row:nth-child(even) .app-shot {
    order: 0;
  }
}

@media (max-width: 680px) {
  .app-features {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-feature--text {
    grid-column: auto;
  }

  .app-devices {
    padding: 0 0 12% 14%;
  }

  .app-phone {
    width: 30%;
    padding: 4px;
    border-radius: 16px;
  }

  .app-phone img {
    border-radius: 12px;
  }

  .app-teaser__actions .btn,
  .app-hero .hero__actions .btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .app-perks {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- Появление блоков при прокрутке ----------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* --- Адаптивность ------------------------------------------------------------ */

@media (max-width: 1080px) {
  .cards--topic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 12px) 0 56px;
  }

  .hero__grid,
  .about,
  .faq,
  .booking,
  .detail {
    grid-template-columns: minmax(0, 1fr);
  }

  /* на телефоне солнце со львом — над заголовком */
  .hero__visual {
    order: -1;
    width: min(100%, 420px);
  }

  .hero__scroll {
    display: none;
  }

  .faq .section-head,
  .booking__intro,
  .detail__aside {
    position: static;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }

  .steps::before {
    display: none;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  :root {
    --header-h: 68px;
  }

  body {
    font-size: 1rem;
  }

  .cards--general,
  .cards--topic {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 30px;
  }

  .step {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 18px;
    text-align: left;
  }

  .step__num {
    grid-row: span 2;
    width: 56px;
    height: 56px;
    margin: 0;
    box-shadow: none;
    font-size: 1.25rem;
  }

  .step__title {
    margin: 4px 0 6px;
  }

  .faq__answer {
    padding-right: 0;
  }

  .brand__name {
    font-size: 1.4rem;
  }

  .brand__mark {
    width: 42px;
    height: 42px;
  }

  .about__visual {
    width: min(100%, 340px);
  }
}

@media (max-width: 520px) {
  .hero__actions .btn {
    width: 100%;
  }

  .form__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .price-card {
    padding: 26px 22px;
  }

  .cookie-note {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
