@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&display=swap');

/* ============================================================
   Ристретто — капсульный кофе. Дизайн-система (glossy edition).
   Люкс-минимализм (Nespresso/Blue Bottle) + журнальный глянец + слой данных (Onyx/Tasty).
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Palette */
  --bg:        #FBFAF3;   /* кремово-белый фон */
  --bg-soft:   #F4EFE3;   /* мягкая секция */
  --surface:   #FFFFFF;   /* карточки */
  --ink:       #17130F;   /* глубокий эспрессо-графит */
  --ink-soft:  #4A423A;   /* вторичный текст */
  --ink-mute:  #8A8074;   /* приглушённый */
  --line:      #E7E0D2;   /* границы */
  --copper:    #C79A5B;   /* металлик-акцент (светлее, для блеска) */
  --copper-dk: #A9743B;   /* тёмная медь (hover/акцент) */
  --gold:      #E7C687;   /* светлое золото для бликов */
  --copper-sf: #F3E9D6;   /* медь-фон (плашки) */
  --success:   #4F7A52;
  --danger:    #B4472E;

  /* Glossy gradients */
  --grad-gold:   linear-gradient(135deg, #E7C687 0%, #C79A5B 42%, #A9743B 100%);
  --grad-ink:    linear-gradient(150deg, #2A211A 0%, #17130F 70%);
  --grad-cream:  radial-gradient(130% 130% at 25% 15%, #FFFFFF 0%, #F4EFE3 50%, #F0E4CE 100%);
  --sheen:       linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.55) 48%, rgba(255,255,255,0) 66%);

  /* Intensity color-code (по линейкам/крепости) */
  --i-light:   #D8B978;
  --i-med:     #A9743B;
  --i-strong:  #6B3F22;
  --i-dark:    #3A2317;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-head: 'Manrope', 'Segoe UI', -apple-system, Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', -apple-system, Arial, sans-serif;

  /* Radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 26px;
  --r-pill: 999px;

  /* Shadow (layered, glossy) */
  --sh-sm: 0 1px 3px rgba(23,19,15,.05), 0 2px 8px rgba(23,19,15,.05);
  --sh-md: 0 4px 14px rgba(23,19,15,.07), 0 12px 32px rgba(23,19,15,.09);
  --sh-lg: 0 10px 30px rgba(23,19,15,.12), 0 30px 70px rgba(23,19,15,.16);
  --sh-gold: 0 8px 26px rgba(169,116,59,.34);

  /* Spacing scale */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  --maxw: 1200px;
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { color: var(--ink); line-height: 1.14; margin: 0 0 .5em; }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.015em; }
h3, h4 { font-family: var(--font-head); font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
::selection { background: var(--gold); color: var(--ink); }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--copper-dk); text-decoration: none; }
a:hover { color: var(--ink); }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-5); }
section { padding: var(--sp-9) 0; }
.eyebrow { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--copper-dk); margin-bottom: var(--sp-3); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto var(--sp-7); }
.section-head p { color: var(--ink-mute); font-size: 1.05rem; }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; cursor: pointer;
  padding: 15px 30px; border-radius: var(--r-pill); border: 1.5px solid transparent; isolation: isolate;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, color .2s ease; line-height: 1; }
.btn::after { content: ''; position: absolute; inset: 0; background: var(--sheen); transform: translateX(-120%);
  transition: transform .6s ease; z-index: -1; }
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { transform: translateX(120%); }
.btn-primary { background: var(--grad-ink); color: #fff; box-shadow: var(--sh-md), inset 0 1px 0 rgba(255,255,255,.12); }
.btn-primary:hover { box-shadow: var(--sh-lg), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-copper { background: var(--grad-gold); color: #3a2412; box-shadow: var(--sh-gold), inset 0 1px 0 rgba(255,255,255,.5);
  text-shadow: 0 1px 0 rgba(255,255,255,.25); }
.btn-copper:hover { color: #3a2412; box-shadow: 0 12px 34px rgba(169,116,59,.46), inset 0 1px 0 rgba(255,255,255,.6); }
.btn-ghost { background: rgba(255,255,255,.5); color: var(--ink); border-color: var(--line); backdrop-filter: blur(4px); }
.btn-ghost:hover { border-color: var(--copper); color: var(--ink); box-shadow: var(--sh-sm); }
.btn-lg { padding: 18px 38px; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,250,243,.72);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(231,224,210,.7); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 6px 24px rgba(23,19,15,.04); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: var(--sp-5); }
.nav a { color: var(--ink); font-weight: 600; font-size: .98rem; white-space: nowrap; }
.nav a:hover { color: var(--copper-dk); }
.header-actions { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero { padding: var(--sp-9) 0 var(--sp-8); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -20%; right: -10%; width: 55vw; height: 55vw; max-width: 700px; max-height: 700px;
  background: radial-gradient(circle, rgba(231,198,135,.35) 0%, rgba(231,198,135,0) 65%); pointer-events: none; z-index: 0; }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--sp-7); align-items: center; }
.hero h1 { margin-bottom: var(--sp-4); }
.hero .lead { font-size: 1.22rem; color: var(--ink-soft); margin-bottom: var(--sp-5); text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.hero-cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-5); }
.hero-trust { display: flex; gap: var(--sp-5); flex-wrap: wrap; align-items: center; color: var(--ink-mute); font-size: .92rem; }
.hero-trust b { color: var(--ink); }
.hero-visual { position: relative; aspect-ratio: 1/1; border-radius: var(--r-lg); overflow: hidden;
  background: var(--grad-cream);
  box-shadow: var(--sh-lg), inset 0 2px 0 rgba(255,255,255,.9), inset 0 0 0 1px rgba(199,154,91,.25);
  display: flex; align-items: center; justify-content: center; }
.hero-visual::before { content: ''; position: absolute; inset: 0;
  background: radial-gradient(80% 55% at 30% 12%, rgba(255,255,255,.85) 0%, rgba(255,255,255,0) 55%); pointer-events: none; }
.hero-visual::after { content: ''; position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 210deg, rgba(231,198,135,.0), rgba(231,198,135,.5), rgba(199,154,91,.15), rgba(231,198,135,.0));
  filter: blur(2px); z-index: 0; }
.hero-visual > * { position: relative; z-index: 1; filter: drop-shadow(0 18px 30px rgba(23,19,15,.28)); }
.hero-badge { position: absolute; z-index: 2; background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.9);
  backdrop-filter: blur(10px); box-shadow: var(--sh-md), inset 0 1px 0 rgba(255,255,255,.8);
  border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); font-size: .9rem; font-weight: 600; }
.hero-badge b { display: block; font-family: var(--font-head); }
.hero-badge.b1 { top: 6%; left: 6%; }
.hero-badge.b2 { bottom: 7%; right: 6%; }

/* ---------- Hero: dark glossy (lacquered magazine) ---------- */
.hero-dark { background: var(--grad-ink); color: #F3EFE4; margin-bottom: var(--sp-6);
  border-bottom: 1px solid rgba(231,198,135,.18); }
.hero-dark::before { top: -25%; right: -5%;
  background: radial-gradient(circle, rgba(231,198,135,.5) 0%, rgba(231,198,135,0) 62%); }
.hero-dark::after { content: ''; position: absolute; left: -8%; bottom: -30%; width: 45vw; height: 45vw; max-width: 560px; max-height: 560px;
  background: radial-gradient(circle, rgba(199,154,91,.28) 0%, rgba(199,154,91,0) 65%); pointer-events: none; z-index: 0; }
.hero-dark .eyebrow { color: var(--gold); }
.hero-dark h1 { color: #FFFDF8; text-shadow: 0 2px 30px rgba(0,0,0,.4); }
.hero-dark h1 b, .hero-dark .lead b { color: var(--gold); }
.hero-dark .lead { color: rgba(243,239,228,.82); }
.hero-dark .hero-trust { color: rgba(243,239,228,.62); }
.hero-dark .hero-trust b { color: #fff; }
.hero-dark .btn-ghost { background: rgba(255,255,255,.07); color: #fff; border-color: rgba(255,255,255,.28); }
.hero-dark .btn-ghost:hover { background: rgba(255,255,255,.14); border-color: var(--gold); color: #fff; }
.hero-dark .hero-visual {
  background: radial-gradient(120% 120% at 30% 18%, #3a2c20 0%, #241a12 55%, #14100b 100%);
  box-shadow: 0 40px 80px rgba(0,0,0,.5), inset 0 2px 0 rgba(231,198,135,.35), inset 0 0 0 1px rgba(231,198,135,.28),
    inset 0 -40px 80px rgba(0,0,0,.55); }
.hero-dark .hero-visual::before {
  background: radial-gradient(70% 45% at 32% 10%, rgba(255,241,214,.5) 0%, rgba(255,241,214,0) 55%); }
.hero-dark .hero-visual::after {
  background: conic-gradient(from 200deg, rgba(231,198,135,0), rgba(231,198,135,.75), rgba(199,154,91,.2), rgba(231,198,135,0)); filter: blur(3px); }
.hero-dark .hero-visual > * { filter: drop-shadow(0 26px 34px rgba(0,0,0,.6)); }
.hero-dark .hero-badge { background: rgba(30,23,16,.55); color: #F3EFE4; border-color: rgba(231,198,135,.35);
  box-shadow: 0 10px 30px rgba(0,0,0,.4), inset 0 1px 0 rgba(231,198,135,.25); }
.hero-dark .hero-badge b { color: var(--gold); }

/* ---------- Compatibility strip ---------- */
.compat-strip { position: relative; overflow: hidden; background: var(--grad-ink); color: #fff; border-radius: var(--r-lg); padding: var(--sp-7);
  display: grid; grid-template-columns: 1fr auto; gap: var(--sp-5); align-items: center;
  box-shadow: var(--sh-lg), inset 0 1px 0 rgba(255,255,255,.1); }
.compat-strip::before { content: ''; position: absolute; top: -50%; left: -10%; width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(231,198,135,.22) 0%, rgba(231,198,135,0) 60%); pointer-events: none; }
.compat-strip > * { position: relative; z-index: 1; }
.compat-strip h3 { color: #fff; margin-bottom: var(--sp-2); }
.compat-strip p { color: rgba(255,255,255,.72); margin: 0; }
.compat-systems { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-3); }
.compat-systems span { border: 1px solid rgba(255,255,255,.25); border-radius: var(--r-pill);
  padding: 6px 16px; font-weight: 600; font-size: .9rem; color: #fff; }

/* ---------- USP / advantages ---------- */
.usp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.usp-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--sp-6); box-shadow: var(--sh-sm); transition: transform .2s, box-shadow .2s; }
.usp-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.usp-ico { width: 52px; height: 52px; border-radius: var(--r-md);
  background: linear-gradient(145deg, #FBF3E2, var(--copper-sf));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -2px 6px rgba(169,116,59,.14), 0 4px 12px rgba(169,116,59,.12);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--sp-4); font-size: 25px; }
.usp-card h3 { font-size: 1.18rem; margin-bottom: var(--sp-2); }
.usp-card p { margin: 0; font-size: .98rem; text-align: justify; -webkit-hyphens: auto; hyphens: auto; }

/* ---------- Collections (curated shelves) ---------- */
.collections { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.collection { position: relative; border-radius: var(--r-md); overflow: hidden; min-height: 180px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: var(--sp-5);
  color: #fff; border: 1px solid var(--line); transition: transform .2s; }
.collection:hover { transform: translateY(-4px); color: #fff; }
.collection h3 { color: #fff; margin: 0 0 4px; font-size: 1.2rem; }
.collection span { font-size: .88rem; opacity: .85; }
.collection { box-shadow: var(--sh-md); }
.collection::before { content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 40%, rgba(0,0,0,.28) 100%); pointer-events: none; }
.collection > * { position: relative; z-index: 1; }
.collection:hover { box-shadow: var(--sh-lg); }
.collection.c1 { background: linear-gradient(160deg, #7A4A28, #2E1B11); }
.collection.c2 { background: linear-gradient(160deg, #E7C687, #A9743B); }
.collection.c3 { background: linear-gradient(160deg, #5A8A5E, #2F4F35); }
.collection.c4 { background: linear-gradient(160deg, #8A6A9C, #453056); }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--sh-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.product:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: rgba(199,154,91,.5); }
.product-media { aspect-ratio: 4/3; position: relative; overflow: hidden;
  background: radial-gradient(120% 100% at 30% 15%, #fff 0%, var(--bg-soft) 55%, var(--copper-sf) 100%);
  display: flex; align-items: center; justify-content: center; }
.product-media::before { content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,.7) 0%, rgba(255,255,255,0) 38%); pointer-events: none; }
.product-media .capsule-emoji { font-size: 3.2rem; filter: drop-shadow(0 10px 16px rgba(23,19,15,.25)); transition: transform .3s ease; }
.product:hover .product-media .capsule-emoji { transform: scale(1.08) rotate(-3deg); }

/* ---------- Gallery (swipe) ---------- */
.gallery { position: relative; aspect-ratio: 1/1; overflow: hidden; background: #fff;
  border-bottom: 1px solid var(--line); }
.gallery[data-href] { cursor: pointer; }
.gallery[data-href]::after { content: 'Открыть →'; position: absolute; bottom: 8px; right: 10px; z-index: 3;
  background: rgba(23,19,15,.62); color: #fff; font-size: .72rem; font-weight: 600; padding: 3px 9px;
  border-radius: var(--r-pill); opacity: 0; transition: opacity .2s; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.product:hover .gallery[data-href]::after { opacity: 1; }
.gallery-track { display: flex; height: 100%; transition: transform .35s cubic-bezier(.4,0,.2,1);
  touch-action: pan-y; will-change: transform; }
.gallery-slide { min-width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.gallery-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 3.4rem; background: radial-gradient(120% 100% at 30% 15%, #fff 0%, var(--bg-soft) 55%, var(--copper-sf) 100%); }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.86); border: 1px solid var(--line); box-shadow: var(--sh-sm); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--ink); z-index: 3;
  opacity: 0; transition: opacity .2s, background .2s; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.gallery:hover .gallery-arrow { opacity: 1; }
.gallery-arrow:hover { background: #fff; color: var(--copper-dk); }
.gallery-arrow.prev { left: 8px; } .gallery-arrow.next { right: 8px; }
.gallery-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; z-index: 3; }
.gallery-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(23,19,15,.22); cursor: pointer; transition: .2s; }
.gallery-dot.on { background: var(--copper-dk); width: 18px; border-radius: 4px; }
.gallery-count { position: absolute; top: 10px; right: 10px; z-index: 3; background: rgba(23,19,15,.62); color: #fff;
  font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: var(--r-pill); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }

/* ---------- Fasovka selector ---------- */
.fasovka { display: flex; gap: 6px; margin-bottom: var(--sp-3); flex-wrap: wrap; }
.fchip { border: 1.5px solid var(--line); background: var(--bg); color: var(--ink-soft); border-radius: var(--r-sm);
  padding: 6px 12px; font-weight: 700; font-size: .84rem; cursor: pointer; font-family: var(--font-head); transition: .15s; line-height: 1; }
.fchip small { display: block; font-size: .64rem; font-weight: 600; color: var(--ink-mute); margin-top: 2px; }
.fchip:hover { border-color: var(--copper); }
.fchip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.fchip.active small { color: rgba(255,255,255,.7); }
.product-tag { position: absolute; top: 10px; left: 10px; background: var(--ink); color: #fff;
  font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); font-family: var(--font-head); }
.product-tag.hit { background: var(--copper-dk); }
.product-body { padding: var(--sp-4); display: flex; flex-direction: column; flex: 1; }
.product-brand { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--copper-dk); font-weight: 700; }
.product h3 { font-size: 1.06rem; margin: 4px 0 var(--sp-2); }
.product-notes { font-size: .88rem; color: var(--ink-mute); margin-bottom: var(--sp-3); min-height: 2.6em; }
.product-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; gap: var(--sp-2); }
.product-price { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; }
.product-percap { font-size: .78rem; color: var(--ink-mute); }
.compat-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 600;
  color: var(--success); background: rgba(79,122,82,.1); padding: 3px 9px; border-radius: var(--r-pill); margin-bottom: var(--sp-2); }

/* ---------- Intensity scale ---------- */
.intensity { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.intensity-label { font-size: .76rem; color: var(--ink-mute); font-weight: 600; }
.intensity-dots { display: flex; gap: 3px; }
.idot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.idot.on { background: var(--copper-dk); }
.intensity-bar { height: 7px; border-radius: 4px; background: var(--line); flex: 1; max-width: 90px; overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(23,19,15,.12); }
.intensity-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--i-light), var(--i-strong));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.intensity-num { font-family: var(--font-head); font-weight: 700; font-size: .82rem; }

/* ---------- Filter (compatibility) ---------- */
.filter-bar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5); display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center;
  box-shadow: var(--sh-sm); margin-bottom: var(--sp-6); }
.filter-bar .filter-label { font-weight: 700; font-family: var(--font-head); margin-right: var(--sp-2); }
.chip { border: 1.5px solid var(--line); background: var(--bg); color: var(--ink-soft); border-radius: var(--r-pill);
  padding: 8px 18px; font-weight: 600; font-size: .92rem; cursor: pointer; transition: .18s; font-family: var(--font-head); }
.chip:hover { border-color: var(--copper); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Quiz teaser ---------- */
.quiz-cta { background: var(--grad-ink); color: #fff; border-radius: var(--r-lg);
  padding: var(--sp-8); text-align: center; position: relative; overflow: hidden;
  box-shadow: var(--sh-lg), inset 0 1px 0 rgba(255,255,255,.1); }
.quiz-cta::before { content: ''; position: absolute; top: -40%; left: 50%; transform: translateX(-50%); width: 80%; height: 160%;
  background: radial-gradient(circle, rgba(231,198,135,.25) 0%, rgba(231,198,135,0) 60%); pointer-events: none; }
.quiz-cta > * { position: relative; z-index: 1; }
.quiz-cta h2 { color: #fff; }
.quiz-cta p { color: rgba(255,255,255,.75); max-width: 560px; margin: 0 auto var(--sp-5); font-size: 1.1rem; }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-6); box-shadow: var(--sh-sm); }
.review-stars { color: var(--copper-dk); margin-bottom: var(--sp-3); letter-spacing: 2px; }
.review p { font-size: 1rem; color: var(--ink); }
.review-author { font-weight: 700; font-family: var(--font-head); font-size: .95rem; }
.review-author span { color: var(--ink-mute); font-weight: 500; }

/* ---------- Price-per-cup calculator / compare ---------- */
.compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.compare-col { text-align: center; padding: var(--sp-6); border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.compare-col.win { border-color: var(--copper); box-shadow: var(--sh-md); position: relative; }
.compare-col.win::before { content: 'выгодно'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--copper-dk); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 12px; border-radius: var(--r-pill); }
.compare-price { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--ink); }
.compare-col small { color: var(--ink-mute); }

/* ---------- Order form ---------- */
.order-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-7); box-shadow: var(--sh-md); max-width: 560px; margin: 0 auto; }
.order-form label { display: block; font-weight: 600; margin-bottom: var(--sp-2); font-size: .92rem; }
.order-form input, .order-form textarea { width: 100%; padding: 13px 16px; border: 1.5px solid var(--line);
  border-radius: var(--r-sm); font-family: var(--font-body); font-size: 1rem; margin-bottom: var(--sp-4); background: var(--bg); }
.order-form input:focus, .order-form textarea:focus { outline: none; border-color: var(--copper); background: #fff; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--ink-mute); text-align: center; }
.form-msg { padding: var(--sp-3); border-radius: var(--r-sm); margin-bottom: var(--sp-4); font-weight: 600; display: none; }
.form-msg.ok { background: rgba(79,122,82,.12); color: var(--success); display: block; }
.form-msg.err { background: rgba(180,71,46,.12); color: var(--danger); display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: var(--sp-8) 0 var(--sp-6); margin-top: var(--sp-9); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-6); margin-bottom: var(--sp-7); }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: var(--sp-4); }
.site-footer a { color: rgba(255,255,255,.7); display: block; margin-bottom: var(--sp-2); font-size: .94rem; }
.site-footer a:hover { color: var(--copper); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: var(--sp-5); font-size: .84rem; color: rgba(255,255,255,.5);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3); }

/* ---------- Article (blog) ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article h1 { margin-bottom: var(--sp-4); }
.article-meta { color: var(--ink-mute); font-size: .9rem; margin-bottom: var(--sp-6); }
.article p, .article li { font-size: 1.08rem; text-align: justify; text-justify: inter-word; -webkit-hyphens: auto; hyphens: auto; }
.article h2 { margin-top: var(--sp-7); }
.article table { width: 100%; border-collapse: collapse; margin: var(--sp-5) 0; font-size: .96rem; }
.article th, .article td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.article th { background: var(--bg-soft); font-family: var(--font-head); }
.article-mid-cta, .article-tg-cta { border-radius: var(--r-md); padding: var(--sp-6); margin: var(--sp-7) 0; }
.article-mid-cta { background: var(--copper-sf); border: 1px solid var(--copper); }
.article-mid-cta h3 { margin-bottom: var(--sp-2); }
.article-tg-cta { background: var(--ink); color: #fff; text-align: center; }
.article-tg-cta h3 { color: #fff; }
.article-tg-cta p { color: rgba(255,255,255,.75); }

/* ---------- Blog index ---------- */
.blog-cluster { margin-bottom: var(--sp-8); }
.blog-cluster h2 { border-bottom: 2px solid var(--copper-sf); padding-bottom: var(--sp-3); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-sm); transition: transform .2s; }
.post-card:hover { transform: translateY(-4px); }
.post-card .post-body { padding: var(--sp-5); }
.post-card h3 { font-size: 1.1rem; margin-bottom: var(--sp-2); }
.post-card p { font-size: .92rem; color: var(--ink-mute); margin: 0; }
.post-card .post-tag { font-size: .74rem; color: var(--copper-dk); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Cart ---------- */
.cart-btn { position: relative; background: rgba(255,255,255,.5); border: 1.5px solid var(--line); border-radius: var(--r-pill);
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
  transition: .2s; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cart-btn:hover { border-color: var(--copper); color: var(--copper-dk); }
.cart-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--r-pill);
  background: var(--grad-gold); color: #3a2412; font-family: var(--font-head); font-weight: 800; font-size: .74rem;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-sm); }
.cart-badge.pop { animation: cartpop .3s ease; }
@keyframes cartpop { 0%,100% { transform: scale(1); } 50% { transform: scale(1.35); } }
.cart-overlay { position: fixed; inset: 0; background: rgba(23,19,15,.5); opacity: 0; visibility: hidden; transition: .3s; z-index: 90;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.cart-overlay.on { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: 0; height: 100%; width: 420px; max-width: 92vw; background: var(--bg); z-index: 91;
  transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column;
  box-shadow: -20px 0 60px rgba(23,19,15,.25); }
.cart-drawer.on { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-5); border-bottom: 1px solid var(--line); }
.cart-head h3 { margin: 0; }
.cart-close { background: none; border: 0; font-size: 1.2rem; cursor: pointer; color: var(--ink-mute); width: 36px; height: 36px; border-radius: 50%; }
.cart-close:hover { background: var(--bg-soft); color: var(--ink); }
.cart-body { flex: 1; overflow-y: auto; padding: var(--sp-4) var(--sp-5); }
.cart-empty { text-align: center; padding: var(--sp-8) 0; color: var(--ink-mute); }
.cart-empty p { margin: var(--sp-3) 0 var(--sp-5); }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--sp-3); align-items: center; padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: var(--r-sm); border: 1px solid var(--line); }
.cart-item-name { font-family: var(--font-head); font-weight: 700; font-size: .95rem; }
.cart-item-label { font-size: .8rem; color: var(--ink-mute); }
.cart-qty { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.cart-qty button { width: 26px; height: 26px; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; cursor: pointer; font-weight: 700; color: var(--ink); }
.cart-qty button:hover { border-color: var(--copper); }
.cart-qty span { min-width: 22px; text-align: center; font-weight: 700; font-family: var(--font-head); }
.cart-qty .q-rm { width: auto; padding: 0 8px; font-size: .74rem; font-weight: 600; color: var(--ink-mute); border: 0; background: none; margin-left: 4px; }
.cart-qty .q-rm:hover { color: var(--danger); }
.cart-item-price { font-family: var(--font-head); font-weight: 800; }
.cart-foot { padding: var(--sp-5); border-top: 1px solid var(--line); background: var(--surface); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-head); margin-bottom: var(--sp-4); }
.cart-total b { font-size: 1.4rem; }
.cart-form input, .cart-form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: .96rem; margin-bottom: var(--sp-3); background: var(--bg); }
.cart-form input:focus, .cart-form textarea:focus { outline: none; border-color: var(--copper); background: #fff; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7); align-items: start; }
.pdp-gallery .gallery { aspect-ratio: 1/1; border-radius: var(--r-lg); box-shadow: var(--sh-md); border: 1px solid var(--line); }
.pdp-brand { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--copper-dk); font-weight: 700; }
.pdp h1 { margin: var(--sp-2) 0 var(--sp-4); }
.pdp-price { font-family: var(--font-head); font-weight: 800; font-size: 2rem; }
.pdp-percap { color: var(--ink-mute); margin-bottom: var(--sp-5); }
.pdp-buy { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin: var(--sp-5) 0; }
.pdp-specs { width: 100%; border-collapse: collapse; margin: var(--sp-5) 0; font-size: .95rem; }
.pdp-specs td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.pdp-specs td:first-child { color: var(--ink-mute); width: 45%; }
.breadcrumbs { font-size: .86rem; color: var(--ink-mute); margin-bottom: var(--sp-5); }
.breadcrumbs a { color: var(--ink-mute); } .breadcrumbs a:hover { color: var(--copper-dk); }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; } }
.pdp-gallery .gallery { cursor: zoom-in; }
.pdp-hint-zoom { font-size: .8rem; color: var(--ink-mute); text-align: center; margin-top: var(--sp-2); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(20,16,11,.93); z-index: 200; display: none; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox.on { display: flex; }
.lightbox img { max-width: 90vw; max-height: 88vh; object-fit: contain; border-radius: var(--r-md); box-shadow: 0 30px 80px rgba(0,0,0,.6); background: #fff; }
.lb-close { position: absolute; top: 20px; right: 24px; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; }
.lb-close:hover { background: rgba(255,255,255,.26); }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); color: #fff; border: 0; width: 54px; height: 54px; border-radius: 50%; font-size: 1.9rem; cursor: pointer; line-height: 1; }
.lb-arrow:hover { background: rgba(255,255,255,.26); }
.lb-prev { left: 20px; } .lb-next { right: 20px; }

/* ---------- Related / family ---------- */
.related-head { text-align: center; margin-bottom: var(--sp-6); }

/* ---------- Card add-to-cart ---------- */
.product-actions { display: flex; gap: var(--sp-2); margin-top: auto; align-items: center; }
.btn-cart { flex: none; width: 46px; height: 46px; padding: 0; border-radius: var(--r-md); background: var(--ink); color: #fff; border: 0;
  display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--sh-sm); transition: .2s; }
.btn-cart:hover { background: var(--copper-dk); transform: translateY(-2px); }

/* ---------- Utilities ---------- */
.bg-soft { background: var(--bg-soft); }
.mt-0 { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: center; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .grid-2 { grid-template-columns: 1fr; }
  .usp-grid, .reviews-grid, .post-grid, .compare { grid-template-columns: 1fr 1fr; }
  .product-grid, .collections { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .compat-strip { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--bg);
    flex-direction: column; padding: var(--sp-5); border-bottom: 1px solid var(--line); gap: var(--sp-4); box-shadow: var(--sh-md); }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-actions .btn { display: none; }
}
@media (max-width: 640px) {
  section { padding: var(--sp-8) 0; }
  .usp-grid, .reviews-grid, .post-grid, .product-grid, .collections, .compare, .footer-grid { grid-template-columns: 1fr; }
  .hero-badge { display: none; }
}
