/* GRANDLAB — стили сайта. Токены синхронизированы с брендбуком (brandbook/index.html). */
:root {
  --gold: #C8A04B;
  --gold-deep: #8C6A1F;
  --gold-soft: #F1E7CB;
  --ink: #17181C;
  --ink-2: #3A3A40;
  --stone: #6B6860;
  --line: #E4DFD3;
  --ground: #FAF8F3;
  --paper: #FFFFFF;
  --midnight: #2B3557;
  --verdigris: #3F6C5C;
  --ok: #3F6C5C;
  --err: #A3402F;

  --f-display: 'Tenor Sans', 'Jost', 'Futura', 'Avenir Next', sans-serif;
  --f-body: 'Golos Text', 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'IBM Plex Mono', 'SF Mono', Menlo, monospace;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 112px;
  --wrap: 1180px;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
p a, li a.inline { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s-5); }

h1, h2, h3, .display { font-family: var(--f-display); font-weight: 400; letter-spacing: .01em; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.4vw, 64px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 22px; }
h4 { font-family: var(--f-display); font-weight: 400; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 var(--s-3); color: var(--stone); }
p { margin: 0 0 1em; max-width: 62ch; }
.lead { font-size: 20px; line-height: 1.5; color: var(--ink-2); }
.muted { color: var(--stone); }
.small { font-size: 14px; }
.eyebrow { font-family: var(--f-display); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: var(--s-4); display: block; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }

/* ---- Логотип ---- */
.logo { font-family: var(--f-display); font-size: 20px; letter-spacing: .22em; color: var(--ink); position: relative; padding-bottom: 6px; display: inline-block; line-height: 1; }
.logo i { position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--gold); }
.logo--light { color: #F3EFE5; }

/* ---- Шапка ---- */
.site-header { background: var(--ground); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); height: 72px; }
.nav { display: flex; gap: var(--s-6); font-size: 15px; }
.nav a { padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.header-tools { display: flex; align-items: center; gap: var(--s-4); }
.cart-link { position: relative; display: inline-flex; padding: 6px; color: var(--ink); }
.cart-count { position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: var(--ink); font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.burger { display: none; width: 40px; height: 40px; border: 0; background: none; padding: 0; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { content: ''; position: absolute; left: 10px; width: 20px; height: 1.5px; background: var(--ink); transition: transform .2s; }
.burger span { top: 19px; } .burger span::before { top: -6px; left: 0; } .burger span::after { top: 6px; left: 0; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 820px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--ground); border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: var(--s-3) var(--s-5) var(--s-5); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* ---- Кнопки ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border: 1px solid var(--ink); background: var(--ink); color: #F3EFE5; font: 500 15px/1 var(--f-body); letter-spacing: .02em; cursor: pointer; border-radius: var(--radius); transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn:hover { background: #2A2B31; }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #D5AE5C; border-color: #D5AE5C; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #F3EFE5; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---- Секции ---- */
.section { padding: var(--s-8) 0; }
.section--tight { padding: var(--s-7) 0; }
.section--dark { background: var(--ink); color: #F3EFE5; }
.section--dark .eyebrow { color: var(--gold); }
.section--dark .muted { color: #A9A59B; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5); margin-bottom: var(--s-6); flex-wrap: wrap; }
.section-head p { margin: 0; }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---- Главная: hero ---- */
.hero { padding: var(--s-8) 0 var(--s-7); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s-7); align-items: center; }
.hero .lead { margin: var(--s-5) 0 var(--s-6); }
.hero-pack { max-width: 460px; margin: 0 auto; }
.hero-pack svg { width: 100%; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } .hero-pack { max-width: 320px; order: -1; } }

/* ---- Продукт-фича на главной ---- */
.feature { display: grid; grid-template-columns: 340px 1fr; gap: var(--s-7); align-items: center; background: var(--paper); border: 1px solid var(--line); padding: var(--s-6); }
.feature-pack svg { width: 100%; }
.facts { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); margin: var(--s-5) 0; padding: 0; list-style: none; font-family: var(--f-mono); font-size: 13px; color: var(--stone); }
.facts li::before { content: '—'; margin-right: 8px; color: var(--gold); }
.price { font-family: var(--f-display); font-size: 30px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.price s { color: var(--stone); font-size: 20px; margin-left: 10px; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } .feature-pack { max-width: 260px; } }

/* ---- Линейки ---- */
.lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.line-tile { display: block; padding: var(--s-5); border: 1px solid var(--line); background: var(--paper); position: relative; min-height: 220px; transition: border-color .15s; }
.line-tile:hover { border-color: var(--ink); }
.line-tile .swatch { width: 44px; height: 44px; margin-bottom: var(--s-5); }
.line-tile h3 { margin-bottom: var(--s-2); }
.line-tile p { font-size: 15px; color: var(--stone); margin: 0 0 var(--s-4); }
.line-tile .count { font-family: var(--f-mono); font-size: 12px; color: var(--stone); position: absolute; right: var(--s-5); top: var(--s-5); }
@media (max-width: 820px) { .lines { grid-template-columns: 1fr; } .line-tile { min-height: 0; } }

/* ---- Принципы ---- */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6) var(--s-7); }
.principle { border-top: 1px solid var(--gold); padding-top: var(--s-4); }
.principle h3 { margin-bottom: var(--s-2); font-size: 20px; }
.principle p { font-size: 15px; color: var(--ink-2); margin: 0; }
@media (max-width: 640px) { .principles { grid-template-columns: 1fr; } }

/* ---- Где купить ---- */
.mp-list { display: flex; flex-wrap: wrap; gap: var(--s-3); padding: 0; margin: 0; list-style: none; }
.mp { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 1px solid var(--line); background: var(--paper); font-size: 15px; }
.mp--soon { color: var(--stone); border-style: dashed; }
.mp b { font-weight: 600; }

/* ---- Каталог ---- */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.chip { padding: 8px 14px; border: 1px solid var(--line); background: var(--paper); font-size: 14px; border-radius: 20px; }
.chip[aria-current="page"], .chip:hover { border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; transition: border-color .15s; }
.card:hover { border-color: var(--ink); }
.card-media { padding: var(--s-5) var(--s-7) 0; }
.card-media svg, .card-media img { width: 100%; }
.card-body { padding: var(--s-4) var(--s-5) var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.card .line-label { font-family: var(--f-display); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); }
.card h3 { font-size: 20px; }
.card .meta { font-family: var(--f-mono); font-size: 12.5px; color: var(--stone); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: auto; padding-top: var(--s-3); }
.card .price { font-size: 22px; }
.badge-soon { display: inline-block; font-family: var(--f-display); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px; border: 1px solid var(--line); color: var(--stone); }

/* ---- Страница продукта ---- */
.crumbs { font-size: 13px; color: var(--stone); margin: var(--s-5) 0; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); align-items: start; }
.product-media { background: var(--paper); border: 1px solid var(--line); padding: var(--s-6); position: sticky; top: 96px; }
.product-media svg, .product-media img { width: 100%; max-width: 440px; margin: 0 auto; }
.product-buy { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; margin: var(--s-5) 0; }
.qty { display: inline-flex; border: 1px solid var(--ink); height: 48px; }
.qty button { width: 44px; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--ink); }
.qty input { width: 48px; border: 0; text-align: center; font: 500 16px var(--f-body); background: none; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.product-tabs { margin-top: var(--s-8); border-top: 1px solid var(--line); }
.product-tabs section { padding: var(--s-6) 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 260px 1fr; gap: var(--s-5); }
.product-tabs h2 { font-size: 22px; }
.note { padding: var(--s-4) var(--s-5); background: var(--gold-soft); border-left: 3px solid var(--gold); font-size: 15px; max-width: 62ch; }
.spec { width: 100%; border-collapse: collapse; font-size: 15px; max-width: 640px; }
.spec th, .spec td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { font-weight: 500; color: var(--stone); width: 44%; }
.spec td { font-family: var(--f-mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.spec td.empty { color: var(--stone); font-family: var(--f-body); font-size: 14px; font-style: italic; }
.benefits { list-style: none; padding: 0; margin: 0 0 var(--s-4); display: grid; gap: 10px; }
.benefits li { padding-left: 22px; position: relative; font-size: 15px; }
.benefits li::before { content: ''; position: absolute; left: 0; top: 10px; width: 10px; height: 2px; background: var(--gold); }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } .product-media { position: static; } .product-tabs section { grid-template-columns: 1fr; gap: var(--s-3); } }

/* ---- Прозаические страницы ---- */
.page-head { padding: var(--s-7) 0 var(--s-6); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(32px, 4.2vw, 52px); }
.prose { padding: var(--s-7) 0; max-width: 720px; }
.prose h2 { font-size: 26px; margin: var(--s-6) 0 var(--s-3); }
.prose h3 { font-size: 20px; margin: var(--s-5) 0 var(--s-2); }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 0 0 1.5em; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 500; color: var(--stone); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); padding: var(--s-7) 0; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); margin: var(--s-6) 0; }
.stat { border-top: 1px solid var(--line); padding-top: var(--s-3); }
.stat b { font-family: var(--f-display); font-weight: 400; font-size: 28px; display: block; }
.stat span { font-size: 14px; color: var(--stone); }
@media (max-width: 720px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

/* ---- Формы ---- */
.form { display: grid; gap: var(--s-4); max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; color: var(--ink-2); }
.field input, .field textarea, .field select { font: 16px var(--f-body); padding: 12px 14px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: var(--radius); width: 100%; }
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: 13px; color: var(--stone); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.consent { font-size: 13px; color: var(--stone); display: flex; gap: 10px; align-items: flex-start; }
.consent input { margin-top: 4px; }
.form-msg { font-size: 15px; padding: 12px 16px; border-left: 3px solid var(--ok); background: #EAF1EC; }
.form-msg.err { border-color: var(--err); background: #F7E9E5; }

/* ---- Корзина ---- */
.cart-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-7); padding: var(--s-7) 0; align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-items { display: grid; gap: var(--s-3); }
.cart-item { display: grid; grid-template-columns: 84px 1fr auto; gap: var(--s-4); align-items: center; background: var(--paper); border: 1px solid var(--line); padding: var(--s-4); }
.cart-item .thumb { background: var(--ground); padding: 6px; }
.cart-item h3 { font-size: 18px; margin-bottom: 4px; }
.cart-item .meta { font-family: var(--f-mono); font-size: 12.5px; color: var(--stone); }
.cart-item .right { display: grid; gap: 8px; justify-items: end; }
.cart-item .remove { background: none; border: 0; color: var(--stone); font-size: 13px; cursor: pointer; text-decoration: underline; }
.cart-empty { padding: var(--s-7); text-align: center; border: 1px dashed var(--line); }
.summary { background: var(--paper); border: 1px solid var(--line); padding: var(--s-5); position: sticky; top: 96px; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0 0 var(--s-4); font-size: 15px; }
.summary dt { color: var(--stone); } .summary dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.summary .total dt, .summary .total dd { font-family: var(--f-display); font-size: 22px; color: var(--ink); padding-top: 8px; border-top: 1px solid var(--line); }

/* ---- Плашка и подвал ---- */
.disclaimer-band { background: var(--gold-soft); color: var(--ink); font-size: 13.5px; letter-spacing: .01em; padding: 12px 0; text-align: center; }
.site-footer { background: var(--ink); color: #C9C5BB; padding: var(--s-7) 0 var(--s-5); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-6); padding-bottom: var(--s-6); border-bottom: 1px solid #2E2F35; }
.footer-brand p { margin-top: var(--s-4); color: #A9A59B; }
.site-footer h4 { color: #8E8A80; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; padding-top: var(--s-4); font-size: 12.5px; color: #8E8A80; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- Тост ---- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #F3EFE5; padding: 12px 20px; font-size: 14px; z-index: 90; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.toast a { color: var(--gold); margin-left: 8px; text-decoration: underline; }
