/* ============================================================
   Светлана Калинина — вариант оформления № 3 «Тёплый камень»
   Светлая тёплая основа, крупная антиква, золотой акцент,
   сдержанная трёхмерность. Без фреймворков и внешних запросов.
   ============================================================ */

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

:root {
  color-scheme: light dark;

  --bg: #faf7f2;
  --bg-deep: #f2ede4;
  --surface: #ffffff;
  --surface-2: #f6f2ea;
  --text: #16181d;
  --text-soft: #33383f;
  --muted: #565d6a;
  --gold: #c08a1e;          /* заливки, линии, декор */
  --gold-ink: #8a6415;      /* золото для текста: проходит по контрасту на светлом */
  --gold-soft: #fbf3e2;
  --line: #e6ded1;
  --line-strong: #d5c9b6;
  --shadow-soft: 0 1px 2px rgb(22 24 29 / 4%), 0 18px 40px -24px rgb(22 24 29 / 18%);
  --shadow-lift: 0 2px 4px rgb(22 24 29 / 5%), 0 34px 60px -30px rgb(22 24 29 / 26%);

  --wrap: min(1180px, 100% - 2.5rem);
  --radius: 6px;
  --radius-lg: 12px;

  --step--2: clamp(0.73rem, 0.71rem + 0.1vw, 0.79rem);
  --step--1: clamp(0.88rem, 0.85rem + 0.15vw, 0.97rem);
  --step-0: clamp(1rem, 0.97rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2: clamp(1.45rem, 1.28rem + 0.8vw, 2rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.4vw, 2.7rem);
  /* Заголовок первого экрана специально сдержан по размеру:
     он не должен выталкивать кнопку за пределы первого экрана. */
  --step-4: clamp(2.2rem, 1.65rem + 2.4vw, 3.5rem);

  --font-display: "Didot", "Bodoni MT", "Constantia", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --font-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, Arial, sans-serif;

  --section-y: clamp(3.75rem, 2.6rem + 4.6vw, 7rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161b;
    --bg-deep: #101216;
    --surface: #1a1d24;
    --surface-2: #1f232b;
    --text: #f0ece4;
    --text-soft: #ded8ce;
    --muted: #a4aab6;
    --gold: #d9ae55;
    --gold-ink: #e3bd72;
    --gold-soft: #221d12;
    --line: #2b3038;
    --line-strong: #3a414c;
    --shadow-soft: 0 1px 2px rgb(0 0 0 / 40%), 0 18px 40px -24px rgb(0 0 0 / 70%);
    --shadow-lift: 0 2px 4px rgb(0 0 0 / 45%), 0 34px 60px -30px rgb(0 0 0 / 80%);
  }
}

/* ---------- 2. База ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold-ink); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { color: var(--text); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: 0; }

p { text-wrap: pretty; }

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

.wrap { width: var(--wrap); margin-inline: auto; }

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  inset-block-start: -100%;
  z-index: 100;
  padding: 0.8rem 1.25rem;
  background: var(--gold);
  color: #1a1206;
  font-weight: 600;
}

.skip-link:focus { inset-block-start: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- 3. Шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
}

@supports (backdrop-filter: blur(1px)) {
  .site-header { backdrop-filter: blur(14px) saturate(130%); }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--step-1);
  text-decoration: none;
  line-height: 1.15;
}

.logo:hover { color: var(--text); }

.logo__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--gold-ink);
  border: 1px solid var(--gold);
  border-radius: 50%;
  transition: box-shadow 0.4s var(--ease);
}

.logo:hover .logo__mark { box-shadow: 0 0 20px -6px var(--gold); }

.logo__sub {
  display: block;
  margin-top: 0.1rem;
  font-family: var(--font-sans);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (width < 26rem) {
  .logo { font-size: var(--step-0); gap: 0.55rem; }
  .logo__mark { width: 2.2rem; height: 2.2rem; font-size: 0.75rem; }
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  font: inherit;
  font-size: var(--step--1);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav__toggle[hidden] { display: none; }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 1.7vw, 1.7rem);
  list-style: none;
  padding: 0;
}

.nav__list a {
  position: relative;
  display: inline-block;
  padding-block: 0.45rem;
  color: var(--muted);
  font-size: var(--step--1);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.nav__list a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0.15rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav__list a:hover,
.nav__list a[aria-current="page"] { color: var(--text); }

.nav__list a:hover::after,
.nav__list a[aria-current="page"]::after { transform: scaleX(1); }

@media (width < 62rem) {
  .nav__list { flex-wrap: wrap; gap: 0.55rem 1.1rem; padding-block: 0.5rem; }

  .js .nav__list {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }

  .nav__list[hidden] { display: none; }
  .js .nav__list li + li { border-top: 1px solid var(--line); }
  .js .nav__list a { display: block; padding: 0.85rem 0; font-size: var(--step-0); }
}

@media (width >= 62rem) {
  .nav__toggle { display: none; }
  .nav__list[hidden] { display: flex; }
}

/* ---------- 4. Кнопки ---------- */
/* Без капители: кириллица в верхнем регистре читается заметно медленнее,
   а кнопка — худшее место для потери скорости чтения. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.1rem;
  padding: 0.8rem 1.75rem;
  font: inherit;
  font-size: var(--step-0);
  font-weight: 600;
  letter-spacing: 0.005em;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.35s var(--ease),
              background-position 0.6s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease);
}

.btn[hidden] { display: none; }

.btn:hover { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

.btn--primary {
  color: #1a1206;
  background: linear-gradient(115deg, #d19b2b 0%, #edc873 48%, #c9922a 100%);
  background-size: 210% 100%;
  background-position: 0 0;
  box-shadow: 0 14px 30px -18px rgb(176 128 30 / 85%);
}

.btn--primary:hover {
  color: #1a1206;
  background-position: 100% 0;
  box-shadow: 0 18px 38px -16px rgb(176 128 30 / 85%);
}

.btn--ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line-strong);
}

.btn--ghost:hover { color: var(--text); border-color: var(--gold); }

.btn--light {
  color: var(--text);
  background: transparent;
  border-color: var(--line-strong);
}

.btn--light:hover { color: var(--text); border-color: var(--gold); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

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

.section { padding-block: var(--section-y); }

.section--tint {
  background: var(--bg-deep);
  border-block: 1px solid var(--line);
}

.section__head {
  max-width: 47rem;
  margin-bottom: clamp(2.25rem, 1.6rem + 2.2vw, 3.5rem);
}

.section__head > p:not(.eyebrow) {
  margin-top: 1rem;
  color: var(--muted);
  font-size: var(--step-1);
  line-height: 1.55;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--gold);
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 1.6rem + 3.4vw, 4.5rem);
  background:
    radial-gradient(46rem 30rem at 82% 12%, color-mix(in srgb, var(--gold) 11%, transparent), transparent 68%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(2.25rem, 1.2rem + 4vw, 4rem);
  align-items: center;
}

@media (width >= 62rem) {
  .hero__inner { grid-template-columns: 1.08fr 0.92fr; }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.95rem 0.4rem 0.4rem;
  font-size: var(--step--1);
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero__badge b {
  padding: 0.2rem 0.7rem;
  font-weight: 600;
  color: var(--gold-ink);
  background: var(--gold-soft);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  border-radius: 999px;
}

.hero__lead {
  margin-top: 1.15rem;
  max-width: 35rem;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--muted);
}

.hero .btn-row { margin-top: 1.75rem; }

.hero__note {
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--muted);
}

/* Фотография в объёмной рамке */

.hero__photo {
  position: relative;
  margin-inline: auto;
  max-width: 25rem;
  perspective: 1400px;
}

.hero__photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  transform: rotateY(-5deg) rotateX(2deg);
  box-shadow: var(--shadow-lift), 0 0 0 1px var(--line);
  transition: transform 0.9s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .hero__photo img { transform: none; transition: none; }
}

.hero__photo::after {
  content: "";
  position: absolute;
  inset: -10% -6% -14%;
  z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 22%, transparent), transparent);
  filter: blur(34px);
  pointer-events: none;
}

.hero__caption {
  position: absolute;
  inset-inline-start: -1.25rem;
  inset-block-end: 1.75rem;
  max-width: 15.5rem;
  padding: 0.9rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-inline-start: 2px solid var(--gold);
  border-radius: var(--radius);
  font-size: var(--step--1);
  line-height: 1.45;
  color: var(--muted);
  box-shadow: var(--shadow-soft);
}

.hero__caption b {
  display: block;
  margin-bottom: 0.15rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 400;
  color: var(--gold-ink);
}

/* --- 3D-сцена: крупная, за всем содержимым, чтобы не спорить с фотографией --- */

.scene {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  z-index: 0;
  width: clamp(30rem, 62vw, 56rem);
  aspect-ratio: 1;
  translate: -50% -50%;
  perspective: 1400px;
  pointer-events: none;
  opacity: 0.16;
}

.atom {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: atom-drift 46s linear infinite;
}

.atom__nucleus {
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 50%;
  width: 5%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 30px 4px color-mix(in srgb, var(--gold) 60%, transparent);
}

.atom__orbit { position: absolute; inset: 0; transform-style: preserve-3d; }

.atom__orbit--1 { transform: rotateX(74deg) rotateY(0deg); }
.atom__orbit--2 { transform: rotateX(74deg) rotateY(60deg); }
.atom__orbit--3 { transform: rotateX(74deg) rotateY(120deg); }

.atom__ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  border-radius: 50%;
  transform-style: preserve-3d;
  animation: ring-spin 16s linear infinite;
}

.atom__orbit--2 .atom__ring { animation-duration: 21s; animation-direction: reverse; }
.atom__orbit--3 .atom__ring { animation-duration: 26s; }

.atom__electron {
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: -0.4rem;
  width: 0.8rem;
  height: 0.8rem;
  translate: -50% 0;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px 3px color-mix(in srgb, var(--gold) 70%, transparent);
}

@keyframes atom-drift {
  from { transform: rotateY(0deg) rotateX(3deg); }
  to   { transform: rotateY(360deg) rotateX(3deg); }
}

@keyframes ring-spin {
  from { transform: rotateZ(0deg); }
  to   { transform: rotateZ(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .atom, .atom__ring { animation: none; }
}

/* ---------- 7. Полоса фактов ---------- */

.facts {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: calc(var(--section-y) * -0.45);
  position: relative;
  z-index: 3;
  box-shadow: var(--shadow-soft);
}

@media (width >= 40rem) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (width >= 64rem) { .facts { grid-template-columns: repeat(4, 1fr); } }

.facts__item {
  padding: 1.7rem 1.6rem;
  background: var(--surface);
  transition: background-color 0.4s var(--ease);
}

.facts__item:hover { background: var(--surface-2); }

.facts__item b {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 400;
  color: var(--gold-ink);
  line-height: 1;
}

.facts__item span {
  display: block;
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.5;
}

/* ---------- 8. Сетки и карточки ---------- */

.grid { display: grid; gap: clamp(1rem, 0.6rem + 1.4vw, 1.6rem); }

@media (width >= 48rem) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (width >= 48rem) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (width >= 68rem) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (width >= 48rem) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (width >= 68rem) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1.15rem + 1.1vw, 2.1rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transform-style: preserve-3d;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.5s var(--ease);
}

.card:hover {
  border-color: color-mix(in srgb, var(--gold) 50%, transparent);
  box-shadow: var(--shadow-lift);
}

.card h3 { margin-bottom: 0.75rem; }
.card p { color: var(--muted); }

.card__num {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  margin-bottom: 1.1rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--gold-ink);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  border-radius: 50%;
}

/* ---------- 9. Предметы и цены ---------- */

.subject {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.7rem, 1.25rem + 1.5vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transform-style: preserve-3d;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.5s var(--ease);
}

.subject:hover {
  border-color: color-mix(in srgb, var(--gold) 50%, transparent);
  box-shadow: var(--shadow-lift);
}

.subject__price {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin: 1.1rem 0 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.subject__price b {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 400;
  color: var(--gold-ink);
  line-height: 1;
}

.subject__price span { color: var(--muted); font-size: var(--step--1); }

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.85rem;
  display: grid;
  gap: 0.65rem;
}

.checklist li {
  position: relative;
  padding-inline-start: 1.9rem;
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.6;
}

.checklist li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.58em;
  width: 0.78rem;
  height: 0.4rem;
  border-inline-start: 1.5px solid var(--gold);
  border-block-end: 1.5px solid var(--gold);
  rotate: -45deg;
}

.subject .btn { margin-top: auto; align-self: flex-start; }

/* Что входит в стоимость */

.included {
  margin-top: clamp(1rem, 0.6rem + 1.4vw, 1.6rem);
  padding: clamp(1.5rem, 1.15rem + 1.3vw, 2.35rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.included h3 { margin-bottom: 1.35rem; }

.checklist--cols { margin-bottom: 0; }

@media (width >= 48rem) {
  .checklist--cols { grid-template-columns: repeat(2, 1fr); column-gap: 2.25rem; }
}

.included__note {
  margin-top: 1.6rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--step--1);
}

.included__note b { color: var(--gold-ink); font-weight: 600; }
.included__note--top { margin-top: 0; padding-top: 0; border-top: 0; }

/* Промежуточный призыв */

.inline-cta {
  margin-top: clamp(1.6rem, 1.1rem + 1.8vw, 2.6rem);
  text-align: center;
  color: var(--muted);
  font-size: var(--step--1);
}

.inline-cta a { font-weight: 600; }

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

.about {
  display: grid;
  gap: clamp(1.85rem, 1.15rem + 3vw, 3.75rem);
  align-items: start;
}

@media (width >= 62rem) { .about { grid-template-columns: 0.82fr 1.18fr; } }

.about__photo { perspective: 1200px; }

.about__photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  transform: rotateY(3deg);
  box-shadow: var(--shadow-soft);
}

@media (prefers-reduced-motion: reduce) { .about__photo img { transform: none; } }

.about__text > * + * { margin-top: 1.1rem; }
.about__text > p:not(.eyebrow) { color: var(--muted); }

.about__quote {
  margin-top: 1.85rem;
  padding: 1.5rem 1.75rem;
  background: var(--gold-soft);
  border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
  border-radius: var(--radius-lg);
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--text);
}

.credentials {
  list-style: none;
  padding: 1.4rem 1.6rem;
  margin-top: 1.85rem;
  display: grid;
  gap: 0.75rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted);
  font-size: var(--step--1);
}

.credentials b { color: var(--text); font-weight: 600; }

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

.review {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1.5rem, 1.15rem + 1.1vw, 2.1rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transform-style: preserve-3d;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.5s var(--ease);
}

.review:hover {
  border-color: color-mix(in srgb, var(--gold) 45%, transparent);
  box-shadow: var(--shadow-lift);
}

.review__tag {
  align-self: flex-start;
  padding: 0.22rem 0.75rem;
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
  background: var(--gold-soft);
  border-radius: 999px;
}

.review blockquote { margin: 0; }

/* Отзывы набраны антиквой — читаются как живые цитаты, а не как карточки товара */
.review blockquote p {
  color: var(--text-soft);
  font-family: var(--font-display);
  font-size: var(--step-0);
  line-height: 1.62;
}

.review figcaption {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--step--1);
}

.review figcaption b { color: var(--text); font-weight: 600; }

/* ---------- 12. FAQ ---------- */

.faq { max-width: 53rem; display: grid; gap: 0; border-top: 1px solid var(--line); }

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

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 0.25rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  cursor: pointer;
  list-style: none;
  transition: color 0.3s var(--ease);
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-ink); }

.faq summary::after {
  content: "";
  flex: none;
  width: 0.65rem;
  height: 0.65rem;
  margin-top: 0.45rem;
  border-inline-end: 1.5px solid var(--gold);
  border-block-end: 1.5px solid var(--gold);
  rotate: 45deg;
  transition: rotate 0.35s var(--ease);
}

.faq details[open] summary::after { rotate: -135deg; }

.faq details > div {
  padding: 0 0.25rem 1.6rem;
  color: var(--muted);
  max-width: 45rem;
}

/* ---------- 13. Призыв к действию ---------- */

.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 1.8rem + 3.5vw, 4.25rem);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.cta::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 18%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.cta p { max-width: 41rem; margin: 1.1rem auto 0; color: var(--muted); }

.cta .btn-row { justify-content: center; margin-top: 2rem; }

.cta__contacts { margin-top: 1.75rem; font-size: var(--step--1); color: var(--muted); }
.cta__contacts b { color: var(--gold-ink); white-space: nowrap; }

.cta__status {
  margin-top: 0.85rem;
  min-height: 1.5em;
  font-size: var(--step--1);
  color: var(--gold-ink);
}

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

.site-footer {
  padding-block: 3.25rem 2rem;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
}

.site-footer__grid { display: grid; gap: 2.25rem; }

@media (width >= 48rem) {
  .site-footer__grid { grid-template-columns: 1.45fr 1fr 1fr; }
}

.site-footer h2 {
  font-family: var(--font-sans);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 1rem;
}

.site-footer p { color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; color: var(--muted); }
.site-footer a { color: var(--text); text-decoration: none; transition: color 0.3s var(--ease); }
.site-footer a:hover { color: var(--gold-ink); }

.site-footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--step--2);
}

/* ---------- 15. Хлебные крошки ---------- */

.breadcrumbs {
  padding-block: 1.1rem;
  font-size: var(--step--2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.55rem; list-style: none; padding: 0; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-ink); }
.breadcrumbs li + li::before { content: "—"; margin-inline-end: 0.55rem; color: var(--line-strong); }

/* ---------- 16. Таблица программы ---------- */

.table-scroll { overflow-x: auto; }

.program {
  width: 100%;
  min-width: 33rem;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.program th,
.program td {
  padding: 1rem 1.2rem;
  text-align: start;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.program th {
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
  background: var(--surface-2);
}

.program td { color: var(--muted); font-size: var(--step--1); }

.program td:first-child {
  font-family: var(--font-display);
  font-size: var(--step-0);
  color: var(--text);
  white-space: nowrap;
}

.program tr:last-child td { border-bottom: 0; }

/* ---------- 17. Статьи ---------- */

.article { max-width: 45rem; margin-inline: auto; }

.article__meta {
  margin-bottom: 2.25rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article > h2 { margin-top: 2.75rem; margin-bottom: 1rem; font-size: var(--step-2); }
.article > h3 { margin-top: 1.85rem; margin-bottom: 0.6rem; color: var(--gold-ink); }
.article > p { margin-bottom: 1.15rem; color: var(--muted); }

.article > ul,
.article > ol {
  margin: 0 0 1.6rem;
  padding-inline-start: 1.45rem;
  display: grid;
  gap: 0.55rem;
  color: var(--muted);
}

.article > ul li::marker,
.article > ol li::marker { color: var(--gold-ink); }

.article b { color: var(--text); }

.article__callout {
  margin: 2.25rem 0;
  padding: 1.6rem 1.85rem;
  background: var(--gold-soft);
  border: 1px solid color-mix(in srgb, var(--gold) 25%, transparent);
  border-inline-start: 2px solid var(--gold);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.article__callout p { margin: 0; color: var(--text-soft); }
.article__callout p + p { margin-top: 0.9rem; }

.article-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.5rem, 1.15rem + 1.1vw, 2.1rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transform-style: preserve-3d;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.5s var(--ease);
}

.article-card:hover {
  border-color: color-mix(in srgb, var(--gold) 45%, transparent);
  box-shadow: var(--shadow-lift);
}

.article-card h3 { margin: 0; }
.article-card h3 a { color: var(--text); text-decoration: none; }
.article-card h3 a:hover { color: var(--gold-ink); }
.article-card p { color: var(--muted); margin: 0; font-size: var(--step--1); }

.article-card__more { margin-top: auto; padding-top: 0.6rem; font-weight: 600; font-size: var(--step--1); }

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

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 28%;
    }

    @keyframes reveal-in {
      from { opacity: 0; transform: perspective(1200px) rotateX(5deg) translateY(2rem); }
      to   { opacity: 1; transform: none; }
    }
  }
}

/* Наклон карточек за курсором — переменные задаёт js/main.js */

@media (prefers-reduced-motion: no-preference) and (pointer: fine) {
  .tilt {
    transform: perspective(1000px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)) translateZ(0);
  }
}

/* ---------- 19. Печать ---------- */

@media print {
  .site-header, .nav__toggle, .cta, .scene { display: none; }
  body { background: #fff; color: #000; }
}
