/* Страницы-гиды по камням. Те же токены и шрифты, что на главной (брендбук Burgundy edition). */
:root {
  --burgundy: #3C1422;
  --burgundy-2: #4A1C2C;
  --burgundy-3: #2A0D17;
  --cream: #F5F0E7;
  --cream-2: #EDE5D8;
  --red: #D82924;
  --ink-soft: #6E5560;
  --cream-soft: #CDB9BF;
  --line-cream: rgba(60, 20, 34, .16);
  --line-wine: rgba(245, 240, 231, .16);
  --f-brand: Didot, "Didot LT STD", "Bodoni Moda", "Bodoni 72", serif;
  --f-head: Baskerville, "Baskerville Old Face", "Old Standard TT", Georgia, serif;
  --f-text: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --gutter: clamp(20px, 6vw, 90px);
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cream); color: var(--burgundy); font: 400 17px/1.6 var(--f-text); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--cream); }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--red); outline-offset: 4px; }
[hidden] { display: none !important; }

.wrap {
  max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.wine { background: var(--burgundy); color: var(--cream); }
.brand { font-family: var(--f-brand); font-weight: 400; letter-spacing: .38em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(54px, 8vw, 112px); line-height: .95; letter-spacing: -.012em; }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; }
h3 { font-size: clamp(21px, 1.8vw, 25px); line-height: 1.2; }
p { margin: 0; max-width: 64ch; }
.lead { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.55; }
.label { font: 400 12px/1.3 var(--f-text); letter-spacing: .24em; text-transform: uppercase; }
.muted { color: var(--ink-soft); }
.wine .muted { color: var(--cream-soft); }
.rubric { display: flex; align-items: stretch; gap: 16px; }
.rubric::before { content: ""; width: 1.5px; background: var(--red); flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 18px 28px;
  font: 400 13px/1 var(--f-text); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.btn .arrow { font-family: var(--f-head); font-size: 18px; letter-spacing: 0; }
.btn--solid { background: var(--burgundy); color: var(--cream); border-color: var(--burgundy); }
.btn--solid:hover { background: transparent; color: var(--burgundy); }
.wine .btn--solid, .g-hero .btn--solid { background: var(--cream); color: var(--burgundy); border-color: var(--cream); }
.wine .btn--solid:hover, .g-hero .btn--solid:hover { background: transparent; color: var(--cream); }
.wine .btn--ghost:hover, .g-hero .btn--ghost:hover { background: var(--cream); color: var(--burgundy); }

/* Шапка */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(245, 240, 231, .95); border-bottom: 1px solid var(--line-cream); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.top .brand { font-size: 15px; text-decoration: none; white-space: nowrap; }
.top nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); }
.top nav a:not(.btn) { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; opacity: .75; }
.top nav a:not(.btn):hover { opacity: 1; }
.top .btn { padding: 12px 18px; font-size: 11px; }
@media (max-width: 560px) { .top nav a:not(.btn) { display: none; } }

/* Хлебные крошки */
.crumbs { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-soft); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--cream); }

/* Первый экран гида */
.g-hero { background: radial-gradient(55% 70% at 75% 50%, rgba(120, 44, 66, .55), transparent 70%), var(--burgundy-3); color: var(--cream); }
.g-hero .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(36px, 6vw, 84px); }
.g-hero__text { display: grid; gap: 26px; min-width: 0; }
.g-hero__text .lead { color: var(--cream-soft); }
.g-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.g-hero__gem { position: relative; aspect-ratio: 1; max-width: 100%; }
.g-hero__gem canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.g-hero__gem .cap { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-soft); opacity: .8; }
@media (max-width: 820px) { .g-hero .wrap { grid-template-columns: 1fr; } .g-hero__gem { order: -1; width: min(100%, 420px); justify-self: center; } }

/* Паспорт камня */
.facts { border-bottom: 1px solid var(--line-cream); }
.facts dl { margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.facts dl > div { padding: 24px 20px 24px 0; border-right: 1px solid var(--line-cream); display: grid; gap: 6px; align-content: start; min-width: 0; }
.facts dl > div + div { padding-left: 20px; }
.facts dl > div:last-child { border-right: 0; }
.facts dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.facts dd { margin: 0; font-family: var(--f-head); font-size: 20px; line-height: 1.25; }
@media (max-width: 900px) {
  .facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts dl > div, .facts dl > div + div { padding: 18px 16px 18px 0; border-right: 0; border-bottom: 1px solid var(--line-cream); }
  .facts dl > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line-cream); }
  .facts dl > div:last-child { border-bottom: 0; }
}

/* Разделы статьи */
.sec { padding-block: clamp(56px, 8vw, 110px); }
.sec + .sec { border-top: 1px solid var(--line-cream); }
.sec__head { display: grid; gap: 18px; margin-bottom: clamp(30px, 4vw, 52px); }
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(28px, 5vw, 72px); }
.point { display: grid; gap: 12px; align-content: start; padding-top: 18px; border-top: 1px solid var(--line-cream); min-width: 0; }
.point p { color: var(--ink-soft); }
@media (max-width: 720px) { .points { grid-template-columns: 1fr; } }

.origins { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0 clamp(28px, 4vw, 56px); }
.origins li { padding: 18px 0; border-bottom: 1px solid var(--line-cream); display: grid; gap: 6px; }
.origins b { font-family: var(--f-head); font-weight: 400; font-size: 22px; }
.origins span { color: var(--ink-soft); font-size: 15px; }

.prose { display: grid; gap: 18px; }
.prose p { color: var(--burgundy); }
.note { border-left: 1.5px solid var(--red); padding-left: 18px; color: var(--ink-soft); font-size: 15px; }

/* Как мы помогаем */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); counter-reset: s; }
.steps li { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line-wine); counter-increment: s; min-width: 0; }
.steps li::before { content: "0" counter(s); font-family: var(--f-head); font-size: 15px; color: var(--cream-soft); }
.steps p { color: var(--cream-soft); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Вопросы */
.faq { display: grid; border-top: 1px solid var(--line-cream); }
.faq details { border-bottom: 1px solid var(--line-cream); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-family: var(--f-head); font-size: clamp(20px, 1.8vw, 24px); line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 20px; font-size: 26px; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 24px; color: var(--ink-soft); }

/* Призыв */
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: end; padding-block: clamp(56px, 8vw, 100px); }
.cta p { color: var(--cream-soft); margin-top: 18px; }
@media (max-width: 760px) { .cta .wrap { grid-template-columns: 1fr; } }

/* Другие камни */
.others { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.others a { display: flex; align-items: center; gap: 12px; padding: 18px; border: 1px solid var(--line-cream); text-decoration: none; font-family: var(--f-head); font-size: 21px; transition: border-color .2s, background .2s; }
.others a:hover { border-color: var(--burgundy); background: var(--cream-2); }
.dot { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: inset -3px -3px 6px rgba(0, 0, 0, .35), inset 2px 2px 4px rgba(255, 255, 255, .45); }

/* Каталог камней */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1px; background: var(--line-cream); border: 1px solid var(--line-cream); }
.card { background: var(--cream); padding: clamp(24px, 3vw, 36px); display: grid; gap: 14px; text-decoration: none; align-content: start; transition: background .25s; }
.card:hover { background: var(--cream-2); }
.card h2 { font-size: clamp(30px, 3vw, 40px); display: flex; align-items: center; gap: 14px; }
.card h2 .dot { width: 18px; height: 18px; }
.card p { color: var(--ink-soft); font-size: 15px; }
.card .label { color: var(--ink-soft); }
.card .more { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 5px; }

/* Подвал */
.foot { background: var(--burgundy-3); color: var(--cream-soft); padding-block: 44px calc(44px + env(safe-area-inset-bottom, 0px)); font-size: 13px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: start; }
.foot .brand { color: var(--cream); font-size: 18px; display: block; margin-bottom: 12px; }
.foot p { max-width: 70ch; }
.foot nav { display: grid; gap: 8px; }
.foot nav a { color: var(--cream); text-decoration: none; }
.foot nav a:hover { color: var(--cream-soft); }
