/* Магічний браслет — стили лендинга. Mobile-first: почти весь трафик из Facebook/Instagram — с телефона. */

/* ---------- Шрифты (variable, свои файлы — без запросов к Google) ---------- */
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/assets/fonts/manrope-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-display: swap; font-weight: 200 800; src: url(/assets/fonts/manrope-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/assets/fonts/manrope-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'; font-style: normal; font-display: swap; font-weight: 300 700; src: url(/assets/fonts/cormorant-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant'; font-style: normal; font-display: swap; font-weight: 300 700; src: url(/assets/fonts/cormorant-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Cormorant'; font-style: normal; font-display: swap; font-weight: 300 700; src: url(/assets/fonts/cormorant-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 {
  --bg: #f6f0e8;
  --bg-alt: #efe5d8;
  --surface: #fffcf7;
  --ink: #2b2220;
  --ink-2: #5b4f47;
  --muted: #8b7d71;
  --line: #e4d8c9;
  --accent: #5a3b78;
  --accent-hover: #47295f;
  --accent-soft: #efe7f5;
  --gold: #b58a4c;
  --gold-light: #e7c98f;
  --gold-soft: #f4e8d3;
  --night: #221a2c;
  --night-2: #2e2440;
  --night-ink: #efe8f4;
  --night-muted: #b9aec6;
  --success: #2f7d57;
  --danger: #b3261e;

  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Cormorant', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 18px 40px -24px rgba(60, 38, 22, 0.35);
  --shadow-sm: 0 6px 18px -10px rgba(60, 38, 22, 0.3);
  --header-h: 60px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  font: 400 1rem/1.6 var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: 84px; /* место под плавающую кнопку мессенджера */
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 6px; }

.container { width: min(100% - 32px, 1160px); margin-inline: auto; }
.container--narrow { width: min(100% - 32px, 820px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.icon { flex: none; }
.icon--flip { transform: scaleX(-1); }

/* Регион: цены и блоки для Украины / других стран */
html[data-region='ua'] .price-world,
html[data-region='ua'] .region-world-only,
html[data-region='world'] .price-ua,
html[data-region='world'] .region-ua-only { display: none !important; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn-lg { min-height: 56px; padding: 15px 28px; font-size: 1.05rem; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.92rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 22px -12px rgba(90, 59, 120, 0.8); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary[disabled] { opacity: .7; cursor: progress; }
.btn-ghost { border-color: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--accent); background: transparent; }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-gold { background: linear-gradient(135deg, #e3c27f, #b8894a); color: #2b1d0e; box-shadow: 0 12px 26px -14px rgba(231, 201, 143, 0.9); }
.btn-gold:hover { filter: brightness(1.05); }
.btn-ghost-light { border-color: rgba(239, 232, 244, 0.35); color: var(--night-ink); background: transparent; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.08); }
.link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 6px; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--bg-alt); color: var(--ink); }
.icon-btn:hover { background: var(--line); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 9px; margin: 0; color: var(--ink); text-decoration: none; font: 600 1.42rem/1 var(--font-display); letter-spacing: 0.01em; white-space: nowrap; }
.logo-mark { color: var(--gold); }
.header-controls { display: flex; align-items: center; gap: 8px; }
.region-switch, .lang-switch { display: flex; padding: 3px; border-radius: 999px; background: var(--bg-alt); }
.region-switch button, .lang-switch a {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 34px; padding: 4px 10px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-2); font-size: 0.85rem; font-weight: 700; text-decoration: none;
}
.region-switch b { font-size: 0.95rem; }
html[data-region='ua'] .region-switch [data-set-region='ua'],
html[data-region='world'] .region-switch [data-set-region='world'],
.lang-switch a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.hide-xs { display: none; }
@media (max-width: 380px) {
  .logo span { font-size: 1.22rem; }
  .logo-mark { width: 22px; height: 22px; }
  .region-switch button, .lang-switch a { padding: 4px 8px; }
}
@media (min-width: 560px) { .hide-xs { display: inline; } }

/* ---------- Секции ---------- */
.section { padding: 64px 0; position: relative; }
.section--tight { padding: 44px 0 56px; }
.section--alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 32px; }
.section-head h2 { font: 600 clamp(2rem, 4.2vw + 1rem, 3rem)/1.08 var(--font-display); color: var(--ink); }
.section-sub { margin-top: 12px; color: var(--ink-2); font-size: 1.04rem; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 10px; color: var(--gold); }
.ornament span { width: 36px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament span:last-child { transform: scaleX(-1); }
.section-head--light h2 { color: var(--night-ink); }
.section-head--light .ornament { color: var(--gold-light); }
.section-head--light .ornament span { background: linear-gradient(90deg, transparent, var(--gold-light)); }

/* ---------- 1. Первый экран ---------- */
.hero { position: relative; overflow: hidden; padding: 28px 0 40px; background: radial-gradient(120% 70% at 80% 10%, #efe3f1 0%, transparent 60%), radial-gradient(90% 60% at 0% 100%, #f3e4cf 0%, transparent 70%); }
.hero-inner { display: grid; gap: 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 75%, transparent); border: 1px solid var(--line); color: var(--accent); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.hero h1 { font: 600 clamp(2.35rem, 7vw + 0.6rem, 4.1rem)/1.03 var(--font-display); letter-spacing: -0.01em; }
.hero-bullets { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 18px 0 26px; color: var(--ink-2); font-weight: 600; }
.hero-bullets li { display: inline-flex; align-items: center; gap: 8px; }
.hero-bullets li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.hero-actions { display: grid; gap: 10px; }
.capacity { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; color: var(--ink-2); font-size: 0.92rem; }
.capacity--light { color: var(--night-muted); }
.hero-media { position: relative; display: grid; place-items: center; max-width: 520px; width: 100%; margin: 0 auto; }
.hero-halo { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #fffaf2 0%, #f3e6d6 55%, transparent 72%); }
.hero-halo::after { content: ''; position: absolute; inset: 4%; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); }
.hero-media img { position: relative; width: 100%; aspect-ratio: 1; object-fit: cover; }
.hero-media.is-photo img { border-radius: 50%; }
.trust { list-style: none; display: grid; gap: 10px; }
.trust li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); font-weight: 600; font-size: 0.95rem; }
.trust .icon { color: var(--gold); }

@media (min-width: 600px) {
  .hero-actions { display: flex; flex-wrap: wrap; }
  .trust { grid-template-columns: repeat(3, 1fr); }
  .trust li { flex-direction: column; text-align: center; }
}
@media (min-width: 960px) {
  .hero { padding: 56px 0 64px; }
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; align-items: center; column-gap: 48px; }
  .hero-media { grid-row: span 2; }
  .trust { grid-column: 1; }
  .trust li { flex-direction: row; text-align: left; }
}

/* ---------- 2. Плитки тем ---------- */
/* Плиток может быть меньше шести (коллекцию отключили) — неполный ряд центрируется */
.theme-grid { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.theme-grid > li { flex: 0 0 calc((100% - 20px) / 3); }
.theme-tile {
  display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%;
  padding: 16px 6px 14px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); text-decoration: none; text-align: center;
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.theme-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.theme-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--tint, var(--accent-soft)); color: var(--accent); }
.theme-name { font-weight: 700; font-size: 0.92rem; line-height: 1.25; }
@media (min-width: 800px) {
  .theme-grid { flex-wrap: nowrap; gap: 14px; }
  .theme-grid > li { flex: 1 1 0; }
}

/* ---------- 3. Каталог ---------- */
.product-grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

.product {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); /* отступ под шапку при прокрутке к карточке — scroll-padding-top у html */
  transition: box-shadow .3s, transform .3s var(--ease);
}
.product.is-highlighted, .sign-card.is-highlighted { animation: highlight 1.6s var(--ease); }
@keyframes highlight {
  0%, 100% { box-shadow: var(--shadow-sm); }
  30% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 60%, transparent), var(--shadow); }
}
.product-media { position: relative; aspect-ratio: 5 / 4; background: radial-gradient(circle at 50% 42%, #fffaf3 0%, var(--tint, var(--bg-alt)) 72%); }
.product-media img { width: 100%; height: 100%; object-fit: contain; padding: 4%; transition: opacity .25s; }
.product-media img.is-loading { opacity: .3; }
.badge { position: absolute; top: 14px; left: 14px; padding: 5px 12px; border-radius: 999px; background: var(--surface); color: var(--accent); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; box-shadow: var(--shadow-sm); }
.badge--gift { left: auto; right: 14px; color: #8a5a1c; text-transform: none; letter-spacing: 0; }
.product-body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 18px 18px 20px; }
.product-theme { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--gold); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.product-name { font: 600 1.85rem/1.05 var(--font-display); }
.product-for { margin: -4px 0 0; color: var(--ink-2); }
.stone-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.stone-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 5px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 0.84rem; font-weight: 600; line-height: 1.35; }
.stone-chips .dot { width: 15px; height: 15px; }
.dot { flex: none; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--dot-light), var(--dot) 60%); box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.25); }
.stones-hint { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Нижняя часть карточки прижата к низу: в ряду карточек кнопки и цены стоят на одной линии */
.product-foot { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.stones-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 10px 0 0; border: 0; border-top: 1px dashed var(--line); background: none; color: var(--accent); font-weight: 700; text-align: left; }
.stones-link .icon { transition: transform .2s var(--ease); }
.stones-link:hover .icon { transform: translateX(3px); }
.product-charged { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--gold-soft); color: #6d4a1b; font-size: 0.9rem; font-weight: 700; }
.product-buy { display: grid; gap: 12px; padding-top: 6px; }
.product-buy .btn { width: 100%; }
@media (min-width: 700px) {
  .product-buy { display: flex; align-items: center; justify-content: space-between; }
  .product-buy .btn { width: auto; flex: none; min-width: 140px; }
  /* В ряду карточек плашка «Зібраний вручну…» одной высоты (две строки) — ссылки «Склад…» на одной линии */
  .product-charged { min-height: calc(2.88rem + 20px); }
}
.price { display: flex; flex-direction: column; font-weight: 800; font-size: 1.32rem; line-height: 1.15; }
.price small { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.price-sub { display: block; }
.product-size { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: 0.86rem; }

.zodiac-pick { position: relative; display: grid; gap: 6px; font-weight: 700; font-size: 0.9rem; }
.zodiac-pick select, .select select { appearance: none; -webkit-appearance: none; width: 100%; min-height: 48px; padding: 10px 40px 10px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-weight: 600; }
.zodiac-pick .select-chevron, .select .select-chevron { position: absolute; right: 14px; bottom: 15px; pointer-events: none; color: var(--accent); }
.zodiac-pick.is-empty select { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }

.catalog-extras { display: grid; gap: 14px; margin-top: 26px; }
.extra-card { display: flex; gap: 14px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.extra-card > .icon { color: var(--gold); margin-top: 2px; }
.extra-card h3 { font: 600 1.45rem/1.1 var(--font-display); margin-bottom: 6px; }
.extra-card p { color: var(--ink-2); }
.extra-card .btn { margin-top: 12px; }
.extra-card--accent { background: linear-gradient(135deg, #f1e8f6, #fbf3e6); border-color: #e3d4ec; }
@media (min-width: 760px) { .catalog-extras { grid-template-columns: 1fr 1fr; } }

/* ---------- 4. Сила камня ---------- */
.stone-layout { display: grid; gap: 28px; }
.stone-text .section-head { text-align: left; margin: 0 0 20px; }
.stone-text .ornament { justify-content: flex-start; }
.stone-text .ornament span:first-child { display: none; }
.stone-text p { color: var(--ink-2); font-size: 1.04rem; }
.check-card { padding: 24px 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.check-card h3 { font: 600 1.6rem/1.1 var(--font-display); margin-bottom: 16px; }
.check-list { list-style: none; display: grid; gap: 16px; }
.check-list li { display: flex; gap: 14px; }
.check-list .icon { color: var(--accent); margin-top: 2px; }
.check-list p { color: var(--ink-2); font-size: 0.95rem; margin-top: 2px; }
@media (min-width: 960px) { .stone-layout { grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; } }

/* ---------- 5. Энергия рук мастера (тёмный блок) ---------- */
.section--night { background: radial-gradient(120% 80% at 10% 0%, var(--night-2) 0%, var(--night) 60%); color: var(--night-ink); overflow: hidden; }
.night-sky { position: absolute; inset: 0; opacity: .45; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 72%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 47% 12%, #f3dca8 50%, transparent 51%),
    radial-gradient(1px 1px at 66% 38%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 84% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 91% 66%, #f3dca8 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 88%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 92%, #fff 50%, transparent 51%);
}
.master-layout { position: relative; display: grid; gap: 30px; }
.master-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(231, 201, 143, 0.35); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); max-width: 520px; width: 100%; margin: 0 auto; }
.master-media img, .master-media video { width: 100%; aspect-ratio: 1; object-fit: cover; }
.master-media.is-photo img { aspect-ratio: 4 / 5; }
.master-text .section-head { text-align: left; margin: 0 0 18px; }
.master-text .ornament { justify-content: flex-start; }
.master-text .ornament span:first-child { display: none; }
.master-lead { font-size: 1.08rem; color: var(--night-ink); }
.master-quote { margin: 22px 0; padding: 18px 20px; border-left: 2px solid var(--gold-light); background: rgba(255, 255, 255, 0.04); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.master-quote p { font: 500 1.4rem/1.35 var(--font-display); color: #fbf3e2; }
.master-quote p::before { content: '«'; color: var(--gold-light); }
.master-quote p::after { content: '»'; color: var(--gold-light); }
.master-quote footer { margin-top: 8px; color: var(--night-muted); font-size: 0.88rem; }
.master-steps-title { font: 600 1.55rem/1.1 var(--font-display); color: var(--gold-light); margin: 6px 0 14px; }
.ritual { list-style: none; counter-reset: ritual; display: grid; gap: 14px; }
.ritual li { counter-increment: ritual; position: relative; display: grid; gap: 2px; padding-left: 46px; }
.ritual li::before { content: counter(ritual); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--gold-light); color: var(--gold-light); font: 600 1.1rem/1 var(--font-display); }
.ritual li:not(:last-child)::after { content: ''; position: absolute; left: 16px; top: 36px; bottom: -12px; width: 1px; background: rgba(231, 201, 143, 0.25); }
.ritual strong { color: #fbf3e2; }
.ritual span { color: var(--night-muted); font-size: 0.95rem; }
@media (min-width: 960px) { .master-layout { grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; } }

/* ---------- 6. Под заказ ---------- */
.custom-layout { display: grid; gap: 28px; }
.custom-info .section-head { text-align: left; margin: 0 0 16px; }
.custom-info .ornament { justify-content: flex-start; }
.custom-info .ornament span:first-child { display: none; }
.custom-lead { font: 500 1.4rem/1.35 var(--font-display); color: var(--ink); }
.custom-info h3 { margin: 24px 0 12px; font-size: 1.05rem; font-weight: 800; }
.steps { list-style: none; counter-reset: step; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding-left: 42px; color: var(--ink-2); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 0.9rem; }
.steps--compact { margin: 4px 0 14px; }
.ticks { list-style: none; display: grid; gap: 8px; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); }
.ticks .icon { color: var(--success); margin-top: 3px; }
.custom-price { margin-top: 24px; padding: 18px 20px; border-radius: var(--radius); background: var(--gold-soft); }
.custom-price-label { display: block; color: #6d4a1b; font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.custom-price .price { margin: 4px 0 6px; font-size: 1.6rem; }
.custom-price p { color: #6d4a1b; font-size: 0.9rem; }
.custom-more { margin: 16px 0 0; }
.form-card { padding: 22px 18px 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-title { font: 600 1.7rem/1.1 var(--font-display); margin-bottom: 18px; }
@media (min-width: 960px) {
  .custom-layout { grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: start; }
  .form-card { padding: 30px 32px 32px; }
}

/* ---------- Формы ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend, .label-row label { font-weight: 700; font-size: 0.95rem; padding: 0; }
.field legend { margin-bottom: 7px; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.label-row .link { font-size: 0.88rem; }
.optional { color: var(--muted); font-weight: 500; }
.hint { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.hint .link { font-size: 0.86rem; }
input[type='text'], input[type='tel'], input[type='date'], input[type='email'], textarea, .select select {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; font-size: 1rem; /* 16px — без автозума на iOS */
  transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 76px; resize: vertical; line-height: 1.45; }
input[type='date'] { -webkit-appearance: none; appearance: none; display: block; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: #b3a79b; }
.select { position: relative; }
.select .select-chevron { bottom: 16px; }
.input-short { max-width: 120px; }
.inline-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.field--nested { padding: 12px 14px; margin-top: 4px; border-radius: var(--radius-sm); background: var(--bg); }
.field.has-error input, .field.has-error textarea, .field.has-error select, .field.has-error .chips { border-color: var(--danger); }
.field.has-error .chips { border-radius: var(--radius-sm); box-shadow: 0 0 0 1.5px var(--danger); }
.error-text { margin: 0; color: var(--danger); font-size: 0.86rem; font-weight: 600; }
.form-error { margin: 0; padding: 12px 14px; border-radius: var(--radius-sm); background: #fbeaea; color: var(--danger); font-weight: 600; font-size: 0.92rem; }
.form-note { margin: -6px 0 0; color: var(--ink-2); font-size: 0.88rem; text-align: center; }
.consent { margin: 0; color: var(--muted); font-size: 0.8rem; text-align: center; }
.form-section { margin: 8px 0 -6px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 1.02rem; font-weight: 800; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--stack { flex-direction: column; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; font-size: 0.94rem; transition: background .2s, border-color .2s, color .2s; }
.chips--stack .chip span { width: 100%; border-radius: var(--radius-sm); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.phone-input { margin-top: 10px; }

.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.92rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }

.toggle { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: #fff; cursor: pointer; position: relative; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-ui { flex: none; position: relative; width: 44px; height: 26px; margin-top: 1px; border-radius: 999px; background: #d8ccbf; transition: background .2s; }
.toggle-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform .2s var(--ease); }
.toggle input:checked + .toggle-ui { background: var(--accent); }
.toggle input:checked + .toggle-ui::after { transform: translateX(18px); }
.toggle input:focus-visible + .toggle-ui { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.toggle:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: #fdfbff; }
.toggle-text { display: grid; gap: 2px; }
.toggle-text small { color: var(--ink-2); font-size: 0.86rem; line-height: 1.4; }

/* ---------- 7. Отзывы ---------- */
.review-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 340px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.review { margin: 0; scroll-snap-align: start; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.review img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.review blockquote { margin: 0; padding: 16px 18px 6px; }
.review figcaption { padding: 0 18px 16px; color: var(--muted); font-size: 0.88rem; font-weight: 600; }

/* ---------- 8. Что вы получаете ---------- */
.package-grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.package-item { padding: 18px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.package-item .icon { color: var(--accent); margin-bottom: 10px; }
.package-item h3 { font-size: 1rem; font-weight: 800; margin-bottom: 4px; }
.package-item p { color: var(--ink-2); font-size: 0.9rem; line-height: 1.45; }
.gift-banner { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 18px 20px; border-radius: var(--radius); background: linear-gradient(135deg, #f4e8d3, #f1e6f5); border: 1px solid #e8d8be; }
.gift-banner .icon { color: #8a5a1c; }
.gift-banner p { font-size: 1rem; }
@media (min-width: 800px) { .package-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

/* ---------- 9. Оплата и доставка ---------- */
.pay-tabs { display: flex; justify-content: center; gap: 4px; width: fit-content; margin: 0 auto 18px; padding: 4px; border-radius: 999px; background: var(--bg-alt); }
.pay-tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border: 0; border-radius: 999px; background: transparent; font-weight: 700; color: var(--ink-2); }
html[data-region='ua'] .pay-tabs [data-set-region='ua'],
html[data-region='world'] .pay-tabs [data-set-region='world'] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.pay-panels { max-width: 780px; margin: 0 auto; }
.pay-panel { padding: 8px 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.pay-rows { margin: 0; }
.pay-rows > div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.pay-rows > div:last-child { border-bottom: 0; }
.pay-rows dt { color: var(--accent); font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.pay-rows dd { margin: 0; color: var(--ink-2); }
@media (min-width: 700px) { .pay-rows > div { grid-template-columns: 170px 1fr; gap: 16px; } }
.warning { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; padding: 12px 14px; border-radius: var(--radius-sm); background: #fff4e0; color: #7a4a00; font-weight: 600; font-size: 0.92rem; }
.warning .icon { margin-top: 1px; }
.returns { max-width: 780px; margin: 22px auto 0; padding: 0 4px; }
.returns h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 6px; }
.returns p { color: var(--ink-2); }
.returns .link { margin-top: 10px; }

/* ---------- 10. FAQ и финал ---------- */
.faq { display: grid; gap: 10px; }
.faq-item { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; font-weight: 700; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { transition: transform .25s var(--ease); }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item summary { padding: 18px 20px; color: var(--ink); font-size: 1.02rem; }
.faq-item summary .icon { color: var(--accent); }
.faq-answer { padding: 0 20px 20px; color: var(--ink-2); }
.size-table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 0.92rem; }
.size-table th, .size-table td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--line); }
.size-table th { color: var(--muted); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.size-table td:first-child { font-weight: 800; color: var(--ink); white-space: nowrap; }
.size-note { color: var(--ink-2); font-size: 0.94rem; }

.final { position: relative; padding: 72px 0; text-align: center; color: var(--night-ink); background: radial-gradient(100% 120% at 50% 0%, var(--night-2), var(--night) 70%); overflow: hidden; }
.final::before { content: ''; position: absolute; left: 50%; top: -120px; width: 360px; height: 360px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(231, 201, 143, 0.22), transparent 70%); }
.final-inner { position: relative; }
.final h2 { font: 600 clamp(2.1rem, 5vw + 1rem, 3.3rem)/1.05 var(--font-display); }
.final p { margin: 12px 0 26px; color: var(--night-muted); font-size: 1.08rem; }
.final-actions { display: grid; gap: 10px; max-width: 420px; margin: 0 auto; }
@media (min-width: 600px) { .final-actions { display: flex; justify-content: center; max-width: none; } }

/* ---------- Подвал ---------- */
.site-footer { background: #1a1421; color: var(--night-muted); padding: 48px 0 28px; font-size: 0.92rem; }
.site-footer a { color: var(--night-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 28px; }
.footer-grid h2 { margin-bottom: 10px; color: var(--gold-light); font: 800 0.8rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: 0.08em; }
.site-footer .logo { color: var(--night-ink); margin-bottom: 10px; }
.footer-list { list-style: none; display: grid; gap: 6px; }
.footer-messengers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.footer-messengers .messenger-link { min-height: 38px; padding: 6px 12px; font-size: 0.85rem; background: rgba(255, 255, 255, 0.06); color: var(--night-ink); }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.08); display: grid; gap: 10px; font-size: 0.84rem; }
.disclaimer { color: #9d92aa; font-size: 0.84rem; line-height: 1.5; }
@media (min-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; } }

/* ---------- Плавающая кнопка «Спросить мастера» ---------- */
.fab {
  position: fixed; z-index: 40; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 12px 20px 12px 16px;
  border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700;
  box-shadow: 0 14px 30px -12px rgba(30, 20, 15, 0.6);
  transition: transform .25s var(--ease), opacity .25s;
}
.fab .icon { color: var(--gold-light); }
.fab:hover { transform: translateY(-2px); }
.fab.is-hidden { transform: translateY(120%); opacity: 0; pointer-events: none; }
@media (max-width: 420px) { .fab { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); min-height: 50px; padding: 10px 18px 10px 14px; font-size: 0.95rem; } }

/* ---------- Шторки (dialog) ---------- */
dialog.sheet { width: 100%; max-width: 100%; max-height: 94dvh; margin: auto 0 0; padding: 0; border: 0; border-radius: 26px 26px 0 0; background: var(--surface); color: var(--ink); box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, 0.35); overflow: hidden; }
dialog.sheet::backdrop { background: rgba(28, 20, 36, 0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
dialog.sheet[open] { animation: sheet-up .32s var(--ease); }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
dialog.is-fallback:not([open]) { display: none; }
dialog.is-fallback[open] { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; box-shadow: 0 0 0 100vmax rgba(28, 20, 36, 0.55); }
.sheet-inner { max-height: 94dvh; overflow-y: auto; overscroll-behavior: contain; padding: 0 18px calc(24px + env(safe-area-inset-bottom)); }
.sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -18px 14px; padding: 14px 18px 12px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.sheet-head::before { content: ''; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line); }
.sheet-head h2 { font: 600 1.6rem/1.1 var(--font-display); }
.sheet-text { color: var(--ink-2); }
@media (min-width: 640px) {
  dialog.sheet { width: min(100% - 48px, 600px); margin: auto; border-radius: 26px; }
  dialog.sheet--small { width: min(100% - 48px, 440px); }
  .sheet-inner { padding: 0 28px 28px; }
  .sheet-head { margin: 0 -28px 18px; padding: 18px 28px 14px; }
  .sheet-head::before { display: none; }
}

/* Окно «Склад і значення каменів»: шапка и низ на месте, прокручивается только середина */
.panel { display: flex; flex-direction: column; max-height: 94vh; max-height: 94dvh; }
.panel > .sheet-head { flex: none; position: relative; margin: 0; }
.sheet-title { min-width: 0; }
.sheet-eyebrow { margin: 0 0 3px; color: var(--gold); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.panel-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 18px 20px; }
.panel-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.panel-foot .btn { flex: none; min-width: 150px; }
.stones-intro { margin: 0 0 4px; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.panel-body .zodiac-pick { margin-top: 12px; }
.panel-body .stones-hint { margin-top: 10px; }
.stone-list { display: grid; margin: 0; }
.stone-row { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.stone-row:last-child { border-bottom: 0; }
.stone-list dt { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.stone-list dt .dot { width: 18px; height: 18px; }
.stone-list dd { margin: 3px 0 0 28px; color: var(--ink-2); font-size: 0.94rem; line-height: 1.5; }
.stones-more { margin: 14px 0 0; }
.stones-note { margin: 8px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8rem; line-height: 1.45; }
@media (min-width: 640px) {
  .panel-body { padding: 4px 28px 24px; }
  .panel-foot { padding: 14px 28px; }
}

.order-product { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: var(--radius); background: var(--bg); }
.order-product img { width: 72px; height: 72px; border-radius: 14px; background: radial-gradient(circle at 50% 42%, #fffaf3 0%, var(--tint, var(--bg-alt)) 72%); object-fit: contain; }
.order-product-name { margin: 0; font: 600 1.4rem/1.1 var(--font-display); }
.order-product-price { margin: 2px 0 0; color: var(--ink-2); font-weight: 700; }
.region-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; color: var(--ink-2); font-weight: 600; }
.region-line .icon { color: var(--gold); }
.pay-method { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg); color: var(--ink-2); font-weight: 600; font-size: 0.94rem; }
.pay-method .icon { color: var(--accent); margin-top: 2px; }
.order-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--accent-soft); }
.order-total span { font-weight: 700; }
.order-total strong { font-size: 1.35rem; text-align: right; }
.order-total small { display: block; color: var(--ink-2); font-size: 0.85rem; font-weight: 600; }

.messenger-list { display: grid; gap: 10px; margin-top: 16px; }
.messenger-link { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 12px 18px; border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); font-weight: 700; text-decoration: none; transition: filter .2s; }
.messenger-link:hover { filter: brightness(0.97); }
.messenger-list .messenger-link--telegram { background: #e7f4fb; color: #1b6e98; }
.messenger-list .messenger-link--viber { background: #efeafd; color: #5b47c4; }
.messenger-list .messenger-link--whatsapp { background: #e6f7ed; color: #1a7f45; }
.messenger-list .messenger-link--instagram { background: #fbe9f1; color: #a62a68; }

/* Экран «Спасибо» */
.form-success { outline: none; }
.success-head { text-align: center; padding: 6px 0 10px; }
.success-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: #e3f3ea; color: var(--success); }
.success-head h3 { font: 600 1.75rem/1.12 var(--font-display); }
.success-steps { list-style: none; counter-reset: step; display: grid; gap: 12px; margin: 18px 0; }
.success-steps li { counter-increment: step; position: relative; padding-left: 40px; color: var(--ink-2); }
.success-steps li::before { content: counter(step); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 0.85rem; }
.requisites { margin: 0 0 16px; padding: 6px 16px; border-radius: var(--radius); border: 1.5px solid var(--line); background: #fff; }
.requisites h4 { margin: 10px 0 4px; font-size: 0.82rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.req-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.req-row:last-child { border-bottom: 0; }
.req-row dt { color: var(--muted); font-size: 0.8rem; font-weight: 700; }
.req-row > div { min-width: 0; }
.req-row dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.req-row .mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 0.92rem; letter-spacing: 0.02em; word-break: break-all; }
.nowrap { white-space: nowrap; }
.copy-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 0.82rem; font-weight: 700; color: var(--accent); }
.copy-btn.is-copied { border-color: var(--success); color: var(--success); }
.success-actions { display: grid; gap: 10px; }

/* ---------- Подборки: ссылки (главная, подвал, страницы подборок) ---------- */
.topic-links { margin-top: 28px; }
.topic-links h3 { margin: 0 0 12px; font-size: 1rem; font-weight: 800; text-align: center; }
.topic-links ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.topic-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: 0.92rem; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.topic-links a:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: var(--shadow-sm); }
.topic-links .icon { color: var(--accent); }
.topic-more { padding: 40px 0 48px; }
.topic-more .topic-links { margin-top: 0; }

/* ---------- Страницы-подборки ---------- */
.hero--topic { padding: 18px 0 36px; }
.hero--topic h1 { font-size: clamp(2.1rem, 5vw + 0.8rem, 3.4rem); }
.hero-lead { margin: 14px 0 24px; color: var(--ink-2); font-size: 1.06rem; }
.hero--topic .hero-media { max-width: 400px; }
.hero--topic .hero-media--wide { max-width: 520px; }
.hero-media--wide img { aspect-ratio: 7 / 5; object-fit: contain; }
.hero-media--wide .hero-halo { inset: 4% 8%; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; font-size: 0.86rem; color: var(--muted); }
.breadcrumbs li + li::before { content: '›'; margin-right: 6px; }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.topic-section { padding: 48px 0; }
.topic-text p { color: var(--ink-2); font-size: 1.04rem; }
.topic-after { margin: 18px 0 0; color: var(--ink-2); }
.topic-cards { margin: 0; }
@media (min-width: 1000px) { .topic-cards { grid-template-columns: repeat(4, 1fr); } }
.stone-grid { column-gap: 32px; padding: 6px 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
@media (min-width: 760px) { .stone-grid { grid-template-columns: 1fr 1fr; } .stone-grid .stone-row:nth-last-child(2) { border-bottom: 0; } }
.note-box { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 48px; padding: 16px 18px; border-radius: var(--radius); background: var(--gold-soft); color: #6d4a1b; font-weight: 600; }
.note-box .icon { flex: none; margin-top: 2px; }
.topic-form { max-width: 640px; margin: 0 auto; }
.topic .size-table { margin-bottom: 4px; }
.topic [data-open-size].link { margin: 4px 0 6px; }
@media (min-width: 960px) {
  .hero--topic { padding: 36px 0 56px; }
  .topic-section { padding: 64px 0; }
}

/* Таблица знаков зодиака и поиск знака по дате */
.sign-finder { max-width: 520px; margin: 0 auto 28px; padding: 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.sign-finder label { display: block; margin-bottom: 8px; font-weight: 700; }
.sign-finder-row { display: flex; flex-wrap: wrap; gap: 10px; }
.sign-finder-row input { flex: 1 1 180px; }
.sign-finder-row .btn { flex: 1 1 auto; }
.sign-finder-result { margin: 12px 0 0; font-weight: 700; color: var(--accent); }
.zodiac-grid { list-style: none; display: grid; gap: 14px; }
@media (min-width: 760px) { .zodiac-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .zodiac-grid { grid-template-columns: repeat(3, 1fr); } }
.sign-card { display: flex; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.sign-card > img { flex: none; width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle at 50% 42%, #fffaf3 0%, #e3e7f0 72%); }
@media (max-width: 420px) { .sign-card { gap: 10px; padding: 14px; } .sign-card > img { width: 56px; height: 56px; } }
.sign-body { flex: 1; min-width: 0; }
.sign-body h3 { font: 600 1.5rem/1.1 var(--font-display); }
.sign-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 4px 0 4px; color: var(--muted); font-size: 0.86rem; font-weight: 600; }
.sign-element { padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 800; }
.sign-element--fire { background: #fbe4d9; color: #a3401c; }
.sign-element--earth { background: #ebe6d6; color: #5f5222; }
.sign-element--air { background: #e3ecf6; color: #2f5d8c; }
.sign-element--water { background: #ddeef0; color: #1f6a73; }
.sign-card .stone-row { padding: 8px 0; }
.sign-card .stone-list dd { font-size: 0.88rem; }
.sign-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.sign-buy .price { font-size: 1.1rem; }

/* ---------- Юридические страницы и 404 ---------- */
.legal { padding: 36px 0 64px; }
.legal h1 { font: 600 clamp(2rem, 4vw + 1rem, 2.8rem)/1.1 var(--font-display); margin: 18px 0 6px; }
.legal-updated { color: var(--muted); font-size: 0.9rem; }
.legal section { margin-top: 26px; }
.legal h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.legal .disclaimer { margin-top: 32px; color: var(--muted); }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.not-found { padding: 56px 0 72px; text-align: center; }
.not-found img { margin: 0 auto 10px; }
.not-found h1 { font: 600 2.4rem/1.1 var(--font-display); margin-bottom: 10px; }
.not-found p { color: var(--ink-2); }
.not-found .btn { margin-top: 16px; }
.not-found-alt { margin-top: 18px; }

/* ---------- Доступность ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
