/* ─── Основа ─────────────────────────────────────────────
   Палитра, шрифты, шкала, сетка. Отступы кратны 8.
   Точки перелома: 640 и 1024px. Радиус 2px. Теней нет:
   объём дают рамка в 1px и разница фонов. */
:root {
  --milk: #FAF7F0;
  --milk-warm: #F2ECDF;
  --parchment: #E7DECB;
  --graphite: #3A3630;
  --graphite-dense: #211E19;
  --graphite-soft: #6B6455;
  --brass: #B08D57;
  --brass-deep: #8A6C3E;
  --night: #23201A;
  --on-night: #EDE6D6;
  --on-night-mute: #A89E8A;
  --line: rgba(58, 54, 48, 0.16);
  --verdigris: #4A6353;

  --metal-white: #E8E6E1;
  --metal-yellow: #D4AF6A;
  --metal-rose: #E0B8A8;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* шкала: компьютер */
  --fs-h1: 60px;
  --fs-h2: 38px;
  --fs-title: 44px;
  --fs-card: 20px;
  --fs-body: 16px;
  --fs-caption: 14px;
  --fs-label: 12px;
  --fs-price: 18px;

  --radius: 2px;
  --container: 1200px;
  --read: 680px;
  --gutter: 40px;
  --section: 96px;
  --header-h: 72px;

  /* старые имена — на них завязана страница сравнения */
  --paper: var(--milk);
  --paper-2: var(--milk-warm);
  --paper-3: var(--parchment);
  --ink: var(--graphite);
  --ink-strong: var(--graphite-dense);
  --ink-mute: var(--graphite-soft);
  --on-dark: var(--graphite);
  --on-dark-mute: var(--graphite-soft);
  --ink-2: var(--milk-warm);
  --brass-light: var(--brass);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: var(--fs-body); line-height: 1.65; background: var(--milk); color: var(--graphite); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, select { font: inherit; color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; color: var(--graphite-dense); }
h1 { font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); line-height: 1.15; }
h3 { font-size: var(--fs-card); line-height: 1.25; }
p { margin: 0 0 16px; }
.caption { font-size: var(--fs-caption); line-height: 1.5; color: var(--graphite-soft); }
.label { font-size: var(--fs-label); line-height: 1.4; letter-spacing: 0.14em; text-transform: lowercase; color: var(--graphite-soft); margin: 0 0 8px; }

.wrap { max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-read { max-width: calc(var(--read) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.col-7 { grid-column: span 7; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.section { padding: var(--section) 0; }
.section.warm { background: var(--milk-warm); }

/* ─── Шапка и меню ─── */
header { position: sticky; top: 0; z-index: 20; background: rgba(250, 247, 240, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); }
.nav-links { justify-self: end; display: flex; align-items: center; gap: 24px; }
.nav-link { justify-self: end; font-size: var(--fs-caption); color: var(--graphite); }
.nav-link:hover { color: var(--brass-deep); }
.logo { font-family: var(--serif); font-size: 24px; letter-spacing: 0.02em; color: var(--graphite-dense); }
.logo .my { color: var(--brass-deep); }
.burger { background: none; border: none; width: 32px; height: 24px; position: relative; cursor: pointer; padding: 0; }
.burger span { display: block; position: absolute; left: 0; width: 100%; height: 1px; background: var(--graphite); }
.burger span:nth-child(1) { top: 3px; }
.burger span:nth-child(2) { top: 11px; width: 70%; }
.burger span:nth-child(3) { top: 19px; }
.overlay { position: fixed; inset: 0; background: rgba(35, 32, 26, 0.35); opacity: 0; pointer-events: none; transition: opacity 0.25s ease; z-index: 39; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; left: 0; height: 100%; width: 320px; max-width: 88vw; background: var(--milk-warm); border-right: 1px solid var(--line); transform: translateX(-100%); transition: transform 0.3s ease; z-index: 40; padding: 24px 32px; display: flex; flex-direction: column; }
.drawer.open { transform: translateX(0); }
.drawer-close { align-self: flex-end; background: none; border: none; color: var(--graphite-soft); font-size: var(--fs-caption); cursor: pointer; margin-bottom: 40px; }
.drawer-nav { display: flex; flex-direction: column; gap: 16px; }
.drawer-nav a { font-family: var(--serif); font-size: 24px; line-height: 1.3; color: var(--graphite-dense); }
.drawer-nav a:hover { color: var(--brass-deep); }
.drawer-foot { margin-top: auto; font-size: var(--fs-caption); color: var(--graphite-soft); }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; line-height: 1.4; color: var(--graphite-soft); margin: 0 0 16px; }
.crumbs a:hover { color: var(--brass-deep); }
.crumbs span[aria-hidden] { opacity: 0.5; }

/* ─── Кнопки ─── */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: var(--radius); font-size: 15px; font-weight: 500; letter-spacing: 0.01em; border: 1px solid transparent; cursor: pointer; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.btn-primary { background: var(--brass-deep); color: var(--milk); }
.btn-primary:hover { background: var(--brass); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--graphite); }
.btn-ghost:hover { border-color: var(--brass); color: var(--graphite-dense); }
.btn-block { width: 100%; }
.link-arrow { font-size: 15px; color: var(--brass-deep); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow:hover { color: var(--graphite-dense); }
.link-quiet { background: none; border: none; padding: 0; cursor: pointer; font-size: var(--fs-caption); color: var(--graphite-soft); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.link-quiet:hover { color: var(--brass-deep); text-decoration-color: currentColor; }

/* ─── Карточка украшения ─── */
.pcard { display: flex; flex-direction: column; background: var(--milk); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.4s ease, transform 0.4s ease; }
.pcard:hover { border-color: var(--brass); transform: translateY(-3px); }
.pcard-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--milk-warm); border-radius: var(--radius) var(--radius) 0 0; }
.pcard-media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: opacity 0.4s ease; }
.pcard-media .alt { opacity: 0; }
.pcard:hover .pcard-media .alt { opacity: 1; }
.pcard:hover .pcard-media .main { opacity: 0; }
.pcard:hover .pcard-media .main:has(~ .alt.ph) { opacity: 1; }
/* Заглушка, пока нет фото: контур огранки на тёплом молоке */
span.ph { display: flex; align-items: center; justify-content: center; background: var(--milk-warm); mix-blend-mode: normal; }
.ph .cut { width: 36%; height: auto; aspect-ratio: 1; }
.pcard-media .alt.ph { display: none; }
.pcard-body { padding: 16px; }
.pcard-name { font-family: var(--serif); font-size: var(--fs-card); font-weight: 500; line-height: 1.25; color: var(--graphite-dense); margin: 0; }
.pcard-spec { font-size: var(--fs-caption); line-height: 1.5; color: var(--graphite-soft); margin: 4px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-price { display: block; margin-top: 8px; font-size: var(--fs-price); font-weight: 500; line-height: 1.4; color: var(--graphite-dense); }
.metal-dots { display: flex; gap: 12px; margin-top: 12px; padding: 4px; margin-left: -4px; }
.metal-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line); }
.metal-dot.on { outline: 1px solid var(--brass); outline-offset: 3px; }
.metal-dot.white, .swatch.white { background: var(--metal-white); }
.metal-dot.yellow, .swatch.yellow { background: var(--metal-yellow); }
.metal-dot.rose, .swatch.rose { background: var(--metal-rose); }
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 24px; }

/* ─── Блок конструктора с контурами огранок ─── */
.cuts-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.cuts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cut-cell { background: var(--milk); padding: 32px 16px 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cut-cell .cut { width: 72px; height: 72px; }
.cut-cell span { font-size: var(--fs-caption); color: var(--graphite-soft); }
.build-grid { align-items: center; }
.build-copy p { color: var(--graphite-soft); margin: 16px 0 32px; max-width: 440px; }

/* Широкий блок-вставка: в каталоге после каждых 12 карточек и на странице украшения */
.promo { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 40px; height: 280px; padding: 0 56px; background: var(--milk-warm); border: 1px solid var(--line); border-radius: var(--radius); }
.promo.tall { height: 320px; }
.promo-copy h2 { font-size: var(--fs-h2); margin-bottom: 16px; }
.promo-copy p { color: var(--graphite-soft); margin: 0 0 24px; max-width: 400px; }
.promo .cuts-row { flex: 0 1 560px; }
.promo .cut { width: 100%; height: auto; aspect-ratio: 1; }

/* ─── Главная ─── */
.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.bg-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero { position: relative; overflow: hidden; background: var(--milk); padding: 144px 0 176px; }
.hero .bg-veil { background: linear-gradient(90deg, var(--milk) 0%, rgba(250,247,240,0.88) 26%, rgba(250,247,240,0.35) 58%, rgba(250,247,240,0) 100%); }
.hero .bg-gem { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero .bg-gem canvas { display: block; width: 100%; height: 100%; }
.hero .wrap { position: relative; z-index: 2; }
.hero-copy { max-width: 720px; }
.hero-lede { color: var(--graphite-soft); font-size: 18px; margin-top: 24px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }

.cat-section { padding: 56px 0; }
.cat-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.cat-link { display: block; text-align: center; font-family: var(--serif); font-size: 32px; line-height: 1.2; padding-bottom: 20px; border-bottom: 1px solid var(--line); color: var(--graphite-dense); transition: border-color 0.2s ease, color 0.2s ease; }
.cat-link:hover { border-color: var(--brass); color: var(--brass-deep); }

.myth { padding: 140px 0; position: relative; overflow: hidden; background: var(--night) url('img/myth.jpg') center / cover no-repeat; color: var(--on-night); text-align: center; }
.myth .bg-veil { background: linear-gradient(180deg, rgba(25,22,17,0.78) 0%, rgba(25,22,17,0.9) 100%); }
.myth-inner { max-width: var(--read); margin: 0 auto; position: relative; z-index: 2; }
.myth-inner p { color: var(--on-night-mute); font-size: 18px; }
.myth-inner .label { color: var(--brass); font-size: var(--fs-label); margin-bottom: 24px; }
.myth-inner .myth-emph { font-family: var(--serif); font-size: 34px; line-height: 1.15; color: var(--on-night); margin-top: 32px; }

.learn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.learn { display: grid; grid-template-columns: 2fr 3fr; border: 1px solid var(--line); border-radius: var(--radius); background: var(--milk); transition: border-color 0.4s ease, transform 0.4s ease; }
.learn:hover { border-color: var(--brass); transform: translateY(-3px); }
.learn-img { background: var(--parchment) center / cover; min-height: 240px; }
.learn-body { padding: 32px; display: flex; flex-direction: column; }
.learn-body h3 { font-size: 26px; line-height: 1.2; margin-bottom: 8px; }
.learn-body p:not(.label) { font-size: 15px; color: var(--graphite-soft); margin: 0 0 16px; }
.learn-body .link-arrow { align-self: flex-start; margin-top: auto; }

footer { padding: 40px 0; border-top: 1px solid var(--line); background: var(--milk); }
.foot-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.foot-links { display: flex; gap: 24px; font-size: var(--fs-caption); color: var(--graphite-soft); flex-wrap: wrap; }
.foot-links a:hover { color: var(--brass-deep); }
.copyright { font-size: var(--fs-caption); color: var(--graphite-soft); }

/* Подвал главной — четыре колонки вместо одной строки ссылок */
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 16px; padding-bottom: 32px; }
.foot-brand p { margin: 8px 0 0; font-size: var(--fs-caption); color: var(--graphite-soft); }
.foot-col a, .foot-group a { display: block; padding: 6px 0; font-size: var(--fs-caption); color: var(--graphite-soft); }
.foot-col a:hover, .foot-group a:hover { color: var(--brass-deep); }
.foot-group { border: none; }
.foot-group summary { font-family: var(--serif); font-size: 18px; color: var(--graphite-dense); margin-bottom: 12px; cursor: default; pointer-events: none; list-style: none; }
.foot-group summary::-webkit-details-marker { display: none; }
.foot-group summary::marker { content: ''; }
.foot-bottom { padding-top: 24px; border-top: 1px solid var(--line); }
.foot-bottom .copyright { font-size: 13px; }

/* ─── Каталог ─── */
.cat-page { padding: 40px 0 var(--section); }
.cat-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.cat-head h1 { font-size: var(--fs-h2); line-height: 1.15; }
.cat-head p { color: var(--graphite-soft); margin: 8px 0 0; }
.cat-count { font-size: var(--fs-caption); color: var(--graphite-soft); white-space: nowrap; }
.cats { display: flex; gap: 28px; margin: 32px 0 24px; }
.cats a { font-size: 16px; line-height: 1.5; color: var(--graphite-soft); padding-bottom: 6px; border-bottom: 2px solid transparent; white-space: nowrap; transition: color 0.2s ease, border-color 0.2s ease; }
.cats a:hover { color: var(--graphite-dense); }
.cats a.active { color: var(--graphite-dense); border-bottom-color: var(--brass); }

.fbar-wrap { position: sticky; top: var(--header-h); z-index: 15; background: var(--milk); }
.fbar { display: flex; align-items: center; justify-content: space-between; height: 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: height 0.2s ease; }
.fbar-wrap.stuck .fbar { height: 48px; }
.fbar-group { display: flex; align-items: center; gap: 32px; height: 100%; }
.fdrop { position: relative; height: 100%; }
.fdrop > button { height: 100%; background: none; border: none; cursor: pointer; font-size: var(--fs-caption); color: var(--graphite); display: inline-flex; align-items: center; gap: 8px; padding: 0; }
.fdrop > button:hover, .fdrop.open > button { color: var(--brass-deep); }
.fdrop > button .count { font-size: 12px; color: var(--brass-deep); }
.chev { width: 8px; height: 8px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.2s ease; flex-shrink: 0; }
.fdrop.open .chev { transform: translateY(2px) rotate(-135deg); }
.fpop { position: absolute; top: calc(100% + 1px); left: 0; z-index: 10; min-width: 280px; background: var(--milk); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: none; }
.fdrop.right .fpop { left: auto; right: 0; min-width: 224px; padding: 8px 16px; }
.fdrop.open .fpop { display: block; }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px 0 0; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px 0 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--milk); font-size: 13px; color: var(--graphite); cursor: pointer; }
.chip:hover { border-color: var(--brass); }
.chip i { position: relative; width: 16px; height: 16px; }
.chip i::before, .chip i::after { content: ""; position: absolute; left: 3px; right: 3px; top: 7.5px; height: 1px; background: currentColor; transform: rotate(45deg); }
.chip i::after { transform: rotate(-45deg); }
.chips .link-quiet { margin-left: 8px; }

.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--milk); cursor: pointer; font-size: var(--fs-caption); color: var(--graphite); transition: border-color 0.2s ease, background-color 0.2s ease; }
.opt:hover { border-color: var(--brass); }
.opt[aria-pressed="true"] { border-color: var(--brass-deep); background: var(--milk-warm); color: var(--graphite-dense); }
.opts.shapes { display: grid; grid-template-columns: repeat(3, 96px); gap: 8px; }
.opts.shapes .opt { flex-direction: column; height: auto; padding: 16px 8px 8px; gap: 8px; }
.opts.shapes .opt .cut { width: 40px; height: 40px; }
.opts.list { flex-direction: column; gap: 0; }
.opts.list .opt { border: none; height: 40px; padding: 0; background: none; }
.opts.list .opt[aria-pressed="true"] { color: var(--brass-deep); }
.opts.metals-f { gap: 16px; }
.metal-opt { display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: none; padding: 0; cursor: pointer; font-size: 13px; color: var(--graphite-soft); }
.metal-opt .swatch { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); }
.metal-opt[aria-pressed="true"] .swatch, .metal-opt[aria-checked="true"] .swatch { outline: 1px solid var(--brass-deep); outline-offset: 3px; }
.metal-opt[aria-pressed="true"], .metal-opt[aria-checked="true"] { color: var(--graphite-dense); }

/* Ползунок с двумя ручками */
.range { width: 280px; }
.range-vals { display: flex; justify-content: space-between; font-size: var(--fs-caption); color: var(--graphite-dense); margin-bottom: 16px; }
.range-track { position: relative; height: 24px; }
.range-track::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--line); }
.range-fill { position: absolute; top: 11px; height: 2px; background: var(--brass-deep); }
.range input { position: absolute; left: 0; top: 0; width: 100%; height: 24px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range input::-webkit-slider-runnable-track { background: none; height: 24px; }
.range input::-moz-range-track { background: none; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 16px; height: 16px; margin-top: 4px; border-radius: 50%; background: var(--milk); border: 1px solid var(--brass-deep); cursor: grab; }
.range input::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--milk); border: 1px solid var(--brass-deep); cursor: grab; }
.range input:focus-visible::-webkit-slider-thumb { outline: 1px solid var(--brass-deep); outline-offset: 2px; }

.fmobile { display: none; }
.cat-page .pgrid { margin-top: 48px; }
.more-row { display: flex; justify-content: center; margin-top: 64px; }
.more-row[hidden], .empty[hidden] { display: none; }
.empty { padding: 64px 0; text-align: center; color: var(--graphite-soft); }
.empty h3 { font-size: 26px; margin-bottom: 8px; }
.empty p { margin-bottom: 24px; }
.empty-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Нижняя панель для телефона */
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--milk); border-top: 1px solid var(--line); height: 80vh; height: 80dvh; display: flex; flex-direction: column; transform: translateY(100%); transition: transform 0.3s ease; visibility: hidden; }
.sheet.open { transform: translateY(0); visibility: visible; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 16px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.sheet-head h3 { font-size: 24px; }
.sheet-head button { background: none; border: none; font-size: var(--fs-caption); color: var(--graphite-soft); cursor: pointer; }
.sheet-body { flex: 1; overflow-y: auto; padding: 24px 16px; }
.sheet-body .sgroup + .sgroup { margin-top: 32px; }
.sheet-body .range { width: 100%; }
.sheet-body .opts.shapes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sheet-foot { padding: 16px; border-top: 1px solid var(--line); flex-shrink: 0; }

/* ─── Страница украшения ─── */
.product { padding: 40px 0 var(--section); }
.gallery-main { display: flex; aspect-ratio: 4 / 5; background: var(--milk-warm); border-radius: var(--radius); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-main::-webkit-scrollbar { display: none; }
.gallery-main > * { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; scroll-snap-align: start; }
.thumbs { display: flex; gap: 12px; margin-top: 12px; }
.thumb { width: 88px; height: 88px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--milk-warm); overflow: hidden; cursor: pointer; transition: border-color 0.2s ease; }
.thumb > * { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.thumb:hover { border-color: var(--brass); }
.thumb[aria-current="true"] { border-color: var(--brass-deep); }
.dots { display: none; justify-content: center; gap: 8px; margin-top: 16px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background-color 0.2s ease; }
.dots i.on { background: var(--brass-deep); }
.buy { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.buy h1 { font-size: var(--fs-title); line-height: 1.1; }
.buy-spec { font-size: var(--fs-caption); color: var(--graphite-soft); margin: 8px 0 0; }
.buy-price { font-size: 26px; font-weight: 500; line-height: 1.3; color: var(--graphite-dense); margin: 24px 0 32px; }
.buy-block { margin-bottom: 32px; }
.buy-block > .label { margin-bottom: 16px; }
.buy-metals { display: flex; gap: 24px; }
.size-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.select { position: relative; flex: 1; max-width: 240px; }
.select select { width: 100%; height: 48px; padding: 0 40px 0 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--milk); cursor: pointer; appearance: none; -webkit-appearance: none; font-size: 15px; }
.select select:hover, .select select:focus { border-color: var(--brass); outline: none; }
.select .chev { position: absolute; right: 16px; top: 50%; margin-top: -6px; pointer-events: none; }
.size-help { margin-top: 16px; font-size: var(--fs-caption); color: var(--graphite-soft); }
.size-help[hidden] { display: none; }
.size-help p { margin: 0 0 8px; }
.buy .btn-cart { height: 52px; font-size: 16px; }
.buy-under { display: flex; justify-content: center; margin-top: 16px; }
.buy-note { margin-top: 16px; font-size: var(--fs-caption); color: var(--graphite-soft); text-align: center; }
.buy-note[hidden] { display: none; }
.buy-note a { color: var(--brass-deep); }
.accordion { margin-top: 32px; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary, .stone summary { list-style: none; display: flex; justify-content: space-between; align-items: center; height: 56px; cursor: pointer; font-size: 15px; color: var(--graphite-dense); }
.accordion summary::-webkit-details-marker, .stone summary::-webkit-details-marker { display: none; }
details[open] > summary .chev { transform: translateY(2px) rotate(-135deg); }
.accordion .acc-body { padding: 0 0 24px; font-size: 15px; color: var(--graphite-soft); }
.accordion .acc-body p:last-child { margin-bottom: 0; }

.stone summary { display: none; }
.stone-grid { align-items: center; }
.stone-figure { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; max-width: 400px; background: var(--milk); border: 1px solid var(--line); border-radius: var(--radius); }
.stone-figure .cut { width: 56%; height: 56%; }
.stone h2 { margin-bottom: 32px; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); grid-auto-flow: column; gap: 0 40px; margin: 0; }
.spec { padding: 16px 0; border-top: 1px solid var(--line); }
.spec dt { font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: lowercase; color: var(--graphite-soft); margin-bottom: 4px; }
.spec dd { margin: 0; font-size: var(--fs-body); color: var(--graphite-dense); }

.buybar { display: none; }

/* ─── Контуры огранок: латунная линия 1px, вид сверху ─── */
.cut { display: block; fill: none; stroke: var(--brass); stroke-width: 1; stroke-linejoin: round; }
.cut * { vector-effect: non-scaling-stroke; }
.cut .facet { stroke-opacity: 0.6; }

/* ─── Страница сравнения ─── */
.recipe-eyebrow { font-size: var(--fs-label); color: var(--brass-deep); letter-spacing: 0.14em; text-transform: lowercase; margin-bottom: 16px; }
.vs-intro { padding: 144px 0 72px; text-align: center; }
.vs-intro h1 { max-width: 720px; margin: 0 auto 24px; }
.vs-intro > .wrap > p { max-width: 560px; margin: 0 auto; color: var(--graphite-soft); font-size: 18px; }
.vs-intro-img { max-width: 896px; margin: 56px auto 0; }
.vs-intro-img img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.vs-element { display: flex; align-items: center; justify-content: center; gap: 24px; padding: 32px 0 88px; }
.vs-carbon { width: 56px; height: 56px; border: 1px solid var(--graphite); transform: rotate(45deg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vs-carbon span { transform: rotate(-45deg); font-family: var(--serif); font-size: 24px; }
.vs-element p { max-width: 384px; color: var(--graphite-soft); font-size: 15px; margin: 0; }
.vs-timeline { position: relative; padding-bottom: 32px; }
.vs-spine { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); transform: translateX(-50%); }
.vs-step { position: relative; padding: 64px 0; border-bottom: 1px solid var(--line); }
.vs-step:last-child { border-bottom: none; }
.vs-step-head { text-align: center; margin-bottom: 40px; }
.vs-step-head .recipe-eyebrow { margin-bottom: 16px; }
.vs-step-head h2 { font-size: 32px; max-width: 600px; margin: 0 auto; }
.vs-node { position: absolute; left: 50%; top: 64px; width: 12px; height: 12px; background: var(--milk); border: 1px solid var(--brass); transform: translateX(-50%) rotate(45deg); }
.vs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 896px; margin: 0 auto; }
.vs-col { padding: 24px; background: var(--milk-warm); border-top: 2px solid transparent; }
.vs-col.lab { border-top-color: var(--brass); }
.vs-col.natural { border-top-color: var(--verdigris); }
.vs-col-label { font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: lowercase; margin-bottom: 16px; color: var(--graphite-soft); }
.vs-col.lab .vs-col-label { color: var(--brass-deep); }
.vs-col p { font-size: 15px; margin: 0; color: var(--graphite); }
.vs-single { max-width: 624px; margin: 0 auto; text-align: center; }
.vs-single p { color: var(--graphite-soft); font-size: 16px; margin: 0; }
.vs-single strong { color: var(--graphite-dense); font-weight: 500; }
.vs-facet { width: 40px; height: 40px; margin: 0 auto 24px; }
.vs-facet svg { width: 100%; height: 100%; }
.vs-facet path { fill: none; stroke: var(--brass); stroke-width: 1; }
.vs-compare { display: flex; gap: 32px; justify-content: center; max-width: 360px; margin: 0 auto 40px; }
.vs-compare-col { flex: 1; margin: 0; text-align: center; }
.vs-compare-col img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: var(--milk-warm); border: 1px solid var(--line); }
.vs-compare-col.natural img { transform: scaleX(-1); }
.vs-compare-col figcaption { margin-top: 8px; font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: lowercase; color: var(--graphite-soft); }
.vs-compare-col.lab figcaption { color: var(--brass-deep); }
.vs-final { padding: 88px 0 120px; text-align: center; }
.vs-final h2 { max-width: 640px; margin: 0 auto 24px; }
.vs-final p { max-width: 576px; margin: 0 auto 40px; color: var(--graphite-soft); font-size: 16px; }
.vs-cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.vs-note { margin-top: 16px; font-size: var(--fs-caption); color: var(--graphite-soft); border-left: 2px solid var(--verdigris); padding-left: 16px; text-align: left; }
.vs-single .vs-note { display: inline-block; }
.vs-honest { margin: 32px auto 0; padding: 24px; background: var(--milk-warm); border-top: 2px solid var(--verdigris); max-width: 896px; text-align: left; }
.vs-honest p { font-size: 15px; margin: 0; color: var(--graphite); }
.vs-chart { max-width: 760px; margin: 0 auto 32px; }
.vs-chart svg { width: 100%; height: auto; display: block; }
.vs-chart .ax { fill: none; stroke: var(--graphite-soft); stroke-width: 1; opacity: 0.5; }
.vs-chart .grid { fill: none; stroke: var(--line); stroke-width: 1; }
.vs-chart .mid { fill: none; stroke: var(--verdigris); stroke-width: 1; stroke-dasharray: 4 5; }
.vs-chart .line { fill: none; stroke: var(--brass); stroke-width: 2; stroke-linejoin: round; }
.vs-chart .dot { fill: var(--graphite); stroke: var(--brass); stroke-width: 2; }
.vs-chart .hero-dot { fill: var(--brass); }
.vs-chart .val { fill: var(--graphite); font-family: var(--sans); font-size: 13px; }
.vs-chart .hero-val { fill: var(--brass); font-size: 16px; font-weight: 600; }
.vs-chart .lbl { fill: var(--graphite-soft); font-family: var(--sans); font-size: 12px; }
.vs-chart .cap { fill: var(--graphite-soft); font-family: var(--sans); font-size: 10.5px; opacity: 0.8; }
.vs-live { max-width: 704px; margin: 0 auto 40px; padding: 24px; background: var(--milk-warm); border-top: 2px solid var(--verdigris); }
.vs-live-row { display: flex; align-items: baseline; gap: 16px; padding: 8px 0; }
.vs-live-label { font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: lowercase; color: var(--graphite-soft); min-width: 112px; }
.vs-live-val { font-family: var(--serif); font-size: 32px; color: var(--graphite-dense); }
.vs-live-val.brass { color: var(--brass-deep); }
.vs-live-unit { font-size: var(--fs-caption); color: var(--graphite-soft); }
.vs-live-meta { margin: 16px 0 0; font-size: 13px; line-height: 1.6; color: var(--graphite-soft); }
.vs-live-meta a { color: var(--brass-deep); text-decoration: underline; text-underline-offset: 2px; }

/* ─── До 1024px ─── */
@media (max-width: 1024px) {
  :root { --gutter: 24px; }
  .hero { padding: 96px 0 120px; }
  .hero .bg-gem { opacity: 0.5; }
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .learn-grid { grid-template-columns: 1fr; }
  .col-7, .col-5, .col-6 { grid-column: 1 / -1; }
  .buy { position: static; }
  .gallery { max-width: 640px; }
  .fbar-group { gap: 24px; }
  .promo { padding: 0 32px; gap: 24px; }
  .promo .cuts-row { flex-basis: 360px; gap: 16px; }
  .stone-figure { max-width: 320px; }
  .vs-intro { padding: 120px 0 56px; }
  .vs-cols { grid-template-columns: 1fr; }
  .vs-spine, .vs-node { display: none; }
  .vs-step { padding: 48px 0; }
  .vs-honest { padding: 24px 16px; }
}

/* ─── До 640px: шкала для телефона ─── */
@media (max-width: 640px) {
  :root {
    --gutter: 16px; --header-h: 64px; --section: 56px;
    --fs-h1: 34px; --fs-h2: 26px; --fs-title: 34px; --fs-card: 17px;
    --fs-body: 15px; --fs-caption: 13px; --fs-price: 16px;
  }
  .nav { grid-template-columns: auto 1fr auto; }
  .logo { justify-self: center; }
  .nav-links { gap: 12px; }
  .hero { padding: 72px 0 96px; }
  .hero-lede { font-size: var(--fs-body); }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
  .pcard-body { padding: 16px 8px 8px; }
  .cat-section { padding: 32px 0; }
  .cat-links { gap: 16px; }
  .cat-link { font-size: 26px; padding-bottom: 14px; }
  .cut-cell { padding: 24px 8px 16px; }
  .cut-cell .cut { width: 56px; height: 56px; }
  .myth { padding: 80px 0; }
  .myth-inner p { font-size: var(--fs-body); }
  .learn { grid-template-columns: 1fr; }
  .learn-img { min-height: 176px; }
  .learn-body { padding: 24px; }

  .foot-grid { grid-template-columns: 1fr; gap: 0; padding-top: 0; padding-bottom: 8px; }
  .foot-brand { margin-bottom: 24px; }
  .foot-group { border-top: 1px solid var(--line); }
  .foot-group:last-of-type { border-bottom: 1px solid var(--line); }
  .foot-group summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; margin-bottom: 0; cursor: pointer; pointer-events: auto; }
  .foot-group summary::after { content: '+'; color: var(--graphite-soft); font-size: 18px; }
  .foot-group[open] summary::after { content: '–'; }
  .foot-group a:first-of-type { margin-top: 4px; }
  .foot-group a:last-of-type { padding-bottom: 16px; }

  /* Избранное на главной — горизонтальная лента */
  .pgrid.ribbon { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scrollbar-width: none; }
  .pgrid.ribbon::-webkit-scrollbar { display: none; }
  .pgrid.ribbon .pcard { flex: 0 0 72vw; scroll-snap-align: start; scroll-margin-left: var(--gutter); }

  .promo, .promo.tall { height: auto; flex-direction: column; align-items: flex-start; padding: 32px 24px; gap: 32px; }
  .promo .cuts-row { flex-basis: auto; width: 100%; gap: 12px; }

  .cat-page { padding: 24px 0 var(--section); }
  .cat-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .cats { overflow-x: auto; margin: 24px calc(var(--gutter) * -1) 16px; padding: 0 var(--gutter); scrollbar-width: none; }
  .cats::-webkit-scrollbar { display: none; }
  .fbar-wrap { display: none; }
  .fmobile { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .cat-page .pgrid { margin-top: 32px; }

  .product { padding: 16px 0 var(--section); }
  .gallery { margin: 0 calc(var(--gutter) * -1); }
  .gallery-main { border-radius: 0; }
  .thumbs { display: none; }
  .dots { display: flex; }
  .buy .btn-cart { display: none; }
  .buybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; align-items: center; gap: 16px; padding: 12px var(--gutter); padding-bottom: calc(12px + env(safe-area-inset-bottom)); background: rgba(250, 247, 240, 0.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
  .buybar-price { font-size: 16px; font-weight: 500; color: var(--graphite-dense); white-space: nowrap; }
  .buybar .btn { flex: 1; height: 48px; }
  body.has-buybar footer { padding-bottom: 104px; }

  .stone.section { background: var(--milk); padding: 0; }
  .stone details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .stone summary { display: flex; }
  .stone .stone-inner { padding: 8px 0 32px; }
  .stone h2 { display: none; }
  .stone-figure { max-width: 200px; margin: 0 auto 24px; }
  .specs { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }

  .vs-live-row { flex-wrap: wrap; gap: 8px; }
  .vs-live-label { min-width: 100%; }
}

/* ─── Единственная анимация: блик по краю кнопки или карточки, 0.5 с, один раз ─── */
.shine { position: relative; isolation: isolate; }
.shine::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; z-index: 2;
  padding: 1px; opacity: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 248, 230, 0.95) 50%, transparent 62%) no-repeat;
  background-size: 300% 100%; background-position: 100% 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.btn-ghost.shine::after, .pcard.shine::after { background-image: linear-gradient(115deg, transparent 38%, #E9D3A6 50%, transparent 62%); }
.shine:hover::after { animation: shine 0.5s ease-out 1; }
@keyframes shine {
  0% { opacity: 1; background-position: 100% 0; }
  85% { opacity: 1; }
  100% { opacity: 0; background-position: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .drawer, .overlay, .sheet, .fbar { transition: none; }
  .bg-video { display: none; }
  .shine:hover::after { animation: none; }
  .pcard, .learn { transition: border-color 0.2s ease; }
  .pcard:hover, .learn:hover { transform: none; }
}
