/* Boniqo landing (Sillage-style) — палитра и типографика взяты из утверждённого референса. */

/* Шрифты — захостены локально (site_dist/fonts/), не с fonts.googleapis.com/fonts.gstatic.com:
   с внешних гугл-доменов страница ощутимо тормозила (лишние TLS-хендшейки + сеть РФ их душит).
   Файлы — те же самые, что раньше отдавал Google Fonts (Cormorant Garamond 300/400/300italic,
   Jost 300/400/500, только латиница+кириллица — только то, что реально используется на странице). */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 400; font-display: swap;
  src: url('/fonts/cg-300-400-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 400; font-display: swap;
  src: url('/fonts/cg-300-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300; font-display: swap;
  src: url('/fonts/cg-300italic-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300; font-display: swap;
  src: url('/fonts/cg-300italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url('/fonts/jost-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url('/fonts/jost-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122; }

:root {
  --bg: #0A0908;
  --bg-2: #0D0C0A;
  --panel: #100E0D;
  --ink: #F2EDE4;
  --ink-dim: #C6BFB2;
  --ink-mute: #9B9388;
  --ink-faint: #6F6A62;
  --gold: #B89A68;
  --gold-soft: rgba(184, 154, 104, .45);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: var(--ink); text-decoration: none; transition: color .5s ease; }
a:hover { color: var(--gold); }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
::selection { background: var(--gold); color: var(--bg); }

.boot-note { padding: 40px; text-align: center; color: var(--ink-mute); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }

.showmob { display: none; }
@media (max-width: 760px) {
  .hidemob { display: none !important; }
  .showmob { display: inline-flex !important; }
}

@keyframes riseIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s cubic-bezier(.16,.8,.24,1), transform 1s cubic-bezier(.16,.8,.24,1); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Шапка ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px clamp(16px, 4vw, 56px);
  transition: padding .6s ease, background .6s ease, border-color .6s ease;
  border-bottom: 1px solid rgba(242,237,228,0);
}
.header.scrolled {
  padding: 12px clamp(16px, 4vw, 56px);
  background: rgba(10,9,8,.72);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: rgba(242,237,228,.08);
}
.brand { display: flex; flex-direction: column; gap: 4px; line-height: 1; }
.brand-name { font-family: var(--serif); font-weight: 300; font-size: 20px; letter-spacing: .3em; text-transform: uppercase; }
.brand-tagline { font-size: 8px; font-weight: 300; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-mute); }
.nav { display: flex; gap: 32px; font-size: 10px; font-weight: 300; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-mute); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid rgba(184,154,104,.35);
  background: transparent; color: var(--ink); transition: background .5s ease, border-color .5s ease;
}
.icon-btn:hover { background: rgba(184,154,104,.12); border-color: var(--gold); color: var(--ink); }
.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; background: var(--gold); color: var(--bg); font-size: 10px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
}
.pill-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 22px;
  border: 1px solid rgba(184,154,104,.5); border-radius: 999px; background: transparent; color: var(--ink);
  font-size: 10px; font-weight: 300; letter-spacing: .22em; text-transform: uppercase;
  transition: background .6s ease, border-color .6s ease;
}
.pill-btn:hover { background: rgba(184,154,104,.14); border-color: var(--gold); color: var(--ink); }
.pill-btn.solid { background: var(--gold); border-color: var(--gold); color: var(--bg); font-weight: 500; }
.pill-btn.solid:hover { background: #cbae7c; color: var(--bg); }
.pill-btn.solid:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  padding: 130px clamp(16px, 4vw, 56px) clamp(56px, 8vh, 100px);
  background:
    radial-gradient(58% 46% at 62% 30%, rgba(184,154,104,.24) 0%, rgba(184,154,104,.05) 42%, rgba(10,9,8,0) 72%),
    repeating-linear-gradient(120deg, rgba(242,237,228,.05) 0 1px, rgba(242,237,228,0) 1px 15px),
    var(--bg);
}
.hero-inner { max-width: 1100px; }
.hero-kicker { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(20px, 4vh, 40px); }
.hero-kicker .line { width: 44px; height: 1px; background: var(--gold-soft); }
.hero-kicker span { font-size: 10px; font-weight: 300; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.hero h1 {
  margin: 0; font-family: var(--serif); font-weight: 300; letter-spacing: -.01em;
  font-size: clamp(38px, 7.6vw, 108px); line-height: 1.04;
}
.hero h1 em { font-style: italic; font-weight: 300; color: #E8DFCD; }
.hero-text { margin: clamp(20px, 3vh, 34px) 0 0; max-width: 46ch; font-size: clamp(14px, 1.1vw, 16px); font-weight: 300; line-height: 1.85; color: var(--ink-dim); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(16px, 3vw, 36px); margin-top: clamp(28px, 4vh, 48px); }
.hero-note { font-family: var(--serif); font-style: italic; font-size: clamp(14px, 1.3vw, 18px); color: var(--ink-mute); }

/* ---------- Общие section-элементы ---------- */
section { position: relative; padding: clamp(70px, 12vh, 150px) clamp(16px, 4vw, 56px); }
.kicker { display: block; font-size: 9.5px; font-weight: 300; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-bottom: clamp(28px, 5vh, 56px); }
.section-inner { max-width: 1200px; margin: 0 auto; }

.idea { background: var(--bg); }
.idea-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(30px, 6vw, 90px); align-items: start; }
.idea-title { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 4vw, 58px); line-height: 1.15; }
.idea-text { margin: 0; font-size: clamp(14px, 1.1vw, 17px); font-weight: 300; line-height: 2; color: var(--ink-dim); max-width: 52ch; }
.idea-quote { margin: 32px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(17px, 1.7vw, 24px); color: #E8DFCD; line-height: 1.5; }

.why { background: var(--bg-2); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: rgba(242,237,228,.08); }
.why-card { background: var(--bg-2); padding: clamp(26px, 3.5vw, 46px) clamp(20px, 2.4vw, 34px) clamp(38px, 6vw, 64px); transition: background .7s ease; }
.why-card:hover { background: #131110; }
.why-no { display: block; font-family: var(--serif); font-size: 14px; letter-spacing: .16em; color: var(--gold); margin-bottom: clamp(26px, 5vw, 48px); }
.why-card h3 { margin: 0 0 12px; font-family: var(--serif); font-weight: 300; font-size: clamp(20px, 1.9vw, 27px); }
.why-card p { margin: 0; font-size: 12.5px; font-weight: 300; line-height: 1.8; color: var(--ink-mute); max-width: 26ch; }

.story { background: var(--bg); }
.story-media {
  position: relative; overflow: hidden; min-height: 300px; aspect-ratio: 16/9;
  background: radial-gradient(46% 60% at 74% 42%, rgba(184,154,104,.2) 0%, rgba(10,9,8,0) 70%), repeating-linear-gradient(120deg, rgba(242,237,228,.045) 0 1px, rgba(242,237,228,0) 1px 15px), #141211;
  display: flex; align-items: center;
  padding: clamp(24px, 5vw, 72px);
}
.story-media p { margin: 0; max-width: 18ch; font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 4vw, 54px); line-height: 1.15; }
.story-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(28px, 5vw, 90px); margin-top: clamp(44px, 7vh, 88px); }
.story-text { margin: 0; font-size: clamp(14px, 1.1vw, 17px); font-weight: 300; line-height: 2; color: var(--ink-dim); max-width: 42ch; white-space: pre-line; }
.story-cta-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.story-cta-wrap a { display: inline-flex; align-items: center; gap: 14px; font-size: 10.5px; font-weight: 300; letter-spacing: .26em; text-transform: uppercase; border-bottom: 1px solid var(--gold-soft); padding-bottom: 10px; transition: border-color .6s ease; }
.story-cta-wrap a:hover { border-color: var(--gold); }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: none; }

/* ---------- Каталог ---------- */
.catalog { background: var(--bg-2); scroll-margin-top: 90px; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.catalog-card { background: var(--panel); border: 1px solid rgba(242,237,228,.08); border-radius: 4px; padding: 22px; display: flex; flex-direction: column; gap: 14px; transition: border-color .5s ease; cursor: pointer; }
.catalog-card:hover { border-color: var(--gold-soft); }
.catalog-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.catalog-thumb {
  aspect-ratio: 3/4; border-radius: 2px; overflow: hidden;
  background: linear-gradient(160deg, #17140f 0%, #0d0c0a 100%);
  display: flex; align-items: center; justify-content: center;
}
.catalog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.catalog-thumb .ph { font-family: var(--serif); font-size: 40px; color: var(--gold-soft); }
.catalog-name { font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1.3; }
.catalog-desc { font-size: 12px; line-height: 1.6; color: var(--ink-mute); flex: 1; }
.catalog-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.catalog-price { font-family: var(--serif); font-size: 19px; color: var(--gold); }
.state-note { color: var(--ink-mute); font-size: 13px; letter-spacing: .04em; padding: 30px 0; text-align: center; }

/* ---------- Корзина (шторка) ---------- */
.cart-overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(6,5,5,.72); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .4s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 91; width: min(420px, 100vw);
  background: var(--panel); border-left: 1px solid rgba(242,237,228,.08);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .5s cubic-bezier(.16,.8,.24,1);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid rgba(242,237,228,.08); }
.cart-head h3 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: 22px; }
.close-x { background: none; border: none; color: var(--ink-mute); font-size: 20px; width: 36px; height: 36px; }
.close-x:hover { color: var(--ink); }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart-item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid rgba(242,237,228,.06); }
.cart-item-name { font-size: 14px; margin-bottom: 6px; }
.cart-item-price { color: var(--ink-mute); font-size: 12px; }
.qty-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty-btn { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(242,237,228,.2); background: none; color: var(--ink); font-size: 14px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { border-color: var(--gold); color: var(--gold); }
.rm-btn { margin-left: auto; background: none; border: none; color: var(--ink-faint); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.rm-btn:hover { color: #e15050; }
.cart-foot { padding: 20px 24px 26px; border-top: 1px solid rgba(242,237,228,.08); }
.cart-total-row { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 16px; }
.cart-total-row b { font-family: var(--serif); font-size: 20px; color: var(--gold); }

/* ---------- Модалки (чекаут / доставка) ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(6,5,5,.82); backdrop-filter: blur(12px); opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-box {
  position: relative; width: 100%; max-width: 540px; max-height: 88svh; overflow-y: auto;
  background: var(--panel); border: 1px solid rgba(184,154,104,.2); padding: clamp(26px, 5vw, 48px);
}
.modal-box .close-x { position: absolute; top: 12px; right: 12px; }
.modal-kicker { font-size: 9.5px; font-weight: 300; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.modal-title { margin: 18px 0 0; font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 3vw, 30px); }
.field { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.field span { font-size: 9.5px; font-weight: 300; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-mute); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 2px; border: none; border-bottom: 1px solid rgba(242,237,228,.16);
  background: none; color: var(--ink); font-family: inherit; font-size: 15px; font-weight: 300; outline: none;
  transition: border-color .5s ease;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-mute) 50%), linear-gradient(135deg, var(--ink-mute) 50%, transparent 50%); background-position: right 6px top 55%, right 0 top 55%; background-size: 6px 6px; }
.field textarea { resize: vertical; min-height: 64px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field option { color: #111; }
.modal-err { color: #e88; font-size: 12.5px; min-height: 16px; margin-top: 12px; }
.modal-actions { margin-top: 24px; }
.delivery-text { margin: 20px 0 0; font-size: 13.5px; line-height: 1.85; color: var(--ink-dim); white-space: pre-line; }
.order-ok { text-align: center; padding: 10px 0; }
.order-ok .big { font-family: var(--serif); font-size: 40px; color: var(--gold); margin-bottom: 6px; }
.pay-options { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.pay-hint { margin-top: 16px; font-size: 12.5px; color: var(--ink-mute); line-height: 1.7; }

/* ---------- Футер ---------- */
.footer { border-top: 1px solid rgba(242,237,228,.07); padding: clamp(48px, 8vh, 88px) clamp(16px, 4vw, 56px) 34px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: clamp(28px, 5vw, 56px); }
.footer-brand { font-family: var(--serif); font-weight: 300; font-size: 18px; letter-spacing: .3em; text-transform: uppercase; }
.footer-text { margin: 16px 0 0; max-width: 30ch; font-size: 12.5px; font-weight: 300; line-height: 1.85; color: var(--ink-mute); }
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 11px; font-weight: 300; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dim); }
.footer-col button.link-like { background: none; border: none; color: var(--ink-dim); font: inherit; letter-spacing: inherit; text-transform: inherit; padding: 0; text-align: left; }
.footer-col button.link-like:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1200px; margin: clamp(36px, 6vh, 64px) auto 0; padding-top: 20px; border-top: 1px solid rgba(242,237,228,.06);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-size: 10px; font-weight: 300; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint);
}

/* ---------- Адаптив ---------- */
@media (max-width: 640px) {
  .nav { display: none; }
  .brand-tagline { display: none; }
  .hero { padding-top: 110px; }
  section { padding-left: 16px; padding-right: 16px; }
  .modal-box { max-height: 92svh; }
}
