/* /css/site.css — общие стили для всех страниц test.vetoshvsem.ru */

:root {
  --bg-cream: #F5F1E8; --bg-paper: #FAF7EE; --bg-ink: #0A0E0A; --bg-ink-2: #14191B;
  --text: #0F1410; --soft: #4A524A; --mute: #93958C;
  --gold: #C89346; --gold-2: #D9A85B; --moss: #2F4A22; --rust: #B85440;
  --line: #D8D0BC; --line-soft: #E8E0CB;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --pad-x: clamp(20px, 4.5vw, 80px);
  --pad-y: clamp(80px, 14vw, 180px);
  --nav-h: 68px; --util-h: 38px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { background: var(--bg-cream); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  padding-top: calc(var(--util-h) + var(--nav-h)); min-height: 100vh;
  display: flex; flex-direction: column; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--bg-ink); }

body::before {
  content:''; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/></svg>");
  opacity: 0.045; mix-blend-mode: multiply;
}

/* Typography */
.h-1 { font-family: var(--serif); font-weight: 200; font-style: italic; line-height: 0.92; letter-spacing: -0.04em;
  font-size: clamp(48px, 8vw, 128px); }
.h-2 { font-family: var(--serif); font-weight: 300; line-height: 1.04; letter-spacing: -0.025em;
  font-size: clamp(34px, 5vw, 72px); }
.h-3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; letter-spacing: -0.02em;
  font-size: clamp(22px, 2.6vw, 36px); }
.lede { font-family: var(--serif); font-weight: 300; font-size: clamp(18px, 1.5vw, 24px); line-height: 1.4;
  letter-spacing: -0.01em; max-width: 56ch; }
.body-l { font-size: clamp(15px, 1.05vw, 17px); line-height: 1.6; max-width: 60ch; color: var(--soft); }
.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; font-weight: 500;
  text-transform: uppercase; display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
i, em { font-style: italic; }

/* Container */
.container { max-width: 1600px; margin: 0 auto; padding: 0 var(--pad-x); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px;
  border-radius: 100px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 600; transition: all 0.3s; cursor: pointer; border: 0; }
.btn-gold { background: var(--gold); color: var(--bg-ink); }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { border: 1px solid currentColor; }
.btn-ghost:hover { background: currentColor; color: var(--bg-cream); }
.btn-dark { background: var(--bg-ink); color: white; }
.btn-dark:hover { background: var(--gold); color: var(--bg-ink); }
.btn-arrow { display: inline-block; transition: transform 0.3s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* NAV (fixed, shared across pages) */
.nav-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 100; }
.util { background: var(--bg-ink); color: rgba(245,241,232,0.85); height: var(--util-h); display: flex; align-items: center; }
.util-inner { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 var(--pad-x);
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.util a { display: inline-flex; align-items: center; gap: 8px; transition: color 0.2s; }
.util a:hover { color: var(--gold); }
.util-l { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.util-l .pin { color: var(--gold); }
.util-r { color: rgba(245,241,232,0.55); }
@media (max-width: 700px) { .util-r { display: none; } .util-l { gap: 14px; } .util-l .pin { display: none; } }

.nav { background: var(--bg-cream); border-bottom: 1px solid var(--line-soft);
  height: var(--nav-h); display: flex; align-items: center; }
.nav-inner { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: inline-flex; align-items: baseline; gap: 4px; font-family: var(--serif);
  font-style: italic; font-weight: 300; font-size: 26px; letter-spacing: -0.01em; color: var(--text); }
.nav-logo .dot { color: var(--gold); font-style: normal; }
.nav-menu { display: flex; gap: 24px; align-items: center; }
.nav-menu > a, .nav-menu > .ndd > button {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 500; color: var(--soft); transition: color 0.2s; padding: 6px 0; }
.nav-menu > a:hover, .nav-menu > a.active, .nav-menu > .ndd > button:hover { color: var(--gold); }
.nav-menu > a.active { color: var(--gold); }
.ndd { position: relative; }
.ndd > button { display: inline-flex; align-items: center; gap: 6px; }
.ndd > button::after { content: '+'; font-family: var(--mono); font-size: 14px; line-height: 1; transition: transform 0.3s; }
.ndd.is-open > button::after { transform: rotate(45deg); }
.ndd-menu { position: absolute; top: calc(100% + 16px); right: 0; min-width: 320px;
  background: var(--bg-paper); border: 1px solid var(--line); padding: 24px;
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: opacity 0.25s, transform 0.25s; box-shadow: 0 24px 80px rgba(15,20,16,0.12); }
.ndd.is-open .ndd-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.ndd-menu .row { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding: 8px 0;
  border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.ndd-menu .row:last-child { border-bottom: 0; }
.ndd-menu .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--mute); padding-top: 2px; }
.ndd-menu h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mute); margin-bottom: 16px; font-weight: 500; }
.nav-cta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 100px;
  transition: background 0.3s, color 0.3s, border-color 0.3s; }
.nav-cta:hover { background: var(--bg-ink); color: white; border-color: var(--bg-ink); }

.nav-burger { display: none; width: 32px; height: 32px; align-items: center; justify-content: center; }
.nav-burger span { width: 22px; height: 1.5px; background: var(--text); position: relative; }
.nav-burger span::before, .nav-burger span::after { content: ''; position: absolute; left: 0; width: 100%; height: 1.5px;
  background: var(--text); transition: transform 0.3s; }
.nav-burger span::before { top: -7px; }
.nav-burger span::after { top: 7px; }
body.menu-open .nav-burger span { background: transparent; }
body.menu-open .nav-burger span::before { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-burger span::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1100px) {
  .nav-burger { display: inline-flex; }
  .nav-menu { display: none; position: fixed; top: calc(var(--util-h) + var(--nav-h) + env(safe-area-inset-top)); left: 0; right: 0;
    background: var(--bg-cream); flex-direction: column; gap: 0; padding: 0; align-items: stretch;
    box-shadow: 0 12px 40px rgba(15,20,16,0.05); border-bottom: 1px solid var(--line);
    max-height: calc(100vh - var(--util-h) - var(--nav-h)); overflow-y: auto; }
  body.menu-open .nav-menu { display: flex; }
  .nav-menu > a, .nav-menu > .ndd > button { padding: 18px 24px; border-bottom: 1px solid var(--line-soft);
    font-size: 14px; color: var(--text); }
  .ndd-menu { position: static; opacity: 1; pointer-events: auto; transform: none;
    box-shadow: none; border: 0; margin: -8px 24px 16px; background: var(--bg-paper); display: none; }
  .ndd.is-open .ndd-menu { display: block; }
}

/* HERO (page header banner) */
.page-hero { padding: clamp(60px, 8vw, 120px) var(--pad-x) clamp(40px, 6vw, 80px);
  max-width: 1600px; margin: 0 auto; flex-shrink: 0; }
.page-hero .eyebrow { color: var(--gold); margin-bottom: 20px; }
.page-hero h1 { margin-bottom: 24px; max-width: 16ch; }
.page-hero .lede { color: var(--soft); }

/* Full-bleed photo break */
.bleed { position: relative; height: 70vh; min-height: 480px; overflow: hidden; }
.bleed img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bleed-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,10,0.35), rgba(10,14,10,0.85)); }
.bleed-content { position: relative; z-index: 2; height: 100%; display: grid; padding: var(--pad-x);
  align-content: end; color: white; max-width: 1600px; margin: 0 auto; gap: 24px; padding-bottom: clamp(60px, 8vw, 120px); }
.bleed h2 { font-family: var(--serif); font-weight: 200; font-style: italic; line-height: 0.95; letter-spacing: -0.04em;
  font-size: clamp(48px, 8vw, 128px); max-width: 16ch; }
.bleed-meta { display: flex; gap: 32px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.bleed-meta b { color: var(--gold); font-weight: 500; }

/* Main content sections */
main { flex: 1 0 auto; }
section { padding: clamp(40px, 5vw, 80px) 0; }
section.bg-paper { background: var(--bg-paper); }
section.bg-ink { background: var(--bg-ink); color: white; }
section.bg-ink h1, section.bg-ink h2, section.bg-ink h3 { color: white; }
section.bg-ink .lede, section.bg-ink .body-l { color: rgba(255,255,255,0.78); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center;
  padding: 0 var(--pad-x); max-width: 1600px; margin: 0 auto; }
.two-col-img { aspect-ratio: 4/5; background: var(--line) center/cover; }
.two-col-content h2 { margin-bottom: 24px; }
.two-col-content .lede { margin-bottom: 24px; color: var(--soft); }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } .two-col-img { aspect-ratio: 16/10; } }

/* List of numbered points */
.points { display: grid; gap: 0; padding-top: 8px; border-top: 1px solid var(--line); }
.points-item { padding: 20px 0; border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 50px 1fr; gap: 16px; align-items: start; }
.points-item .n { font-family: var(--mono); font-size: 12px; color: var(--gold); letter-spacing: 0.05em; padding-top: 4px; }
.points-item .t { font-family: var(--serif); font-size: clamp(20px, 2vw, 28px); font-weight: 400; line-height: 1.15; margin-bottom: 4px; }
.points-item .d { font-size: 14px; color: var(--soft); line-height: 1.55; }

/* FOOTER */
.footer { background: var(--bg-ink); color: white; padding: clamp(60px, 8vw, 120px) 0 32px;
  position: relative; overflow: hidden; flex-shrink: 0; margin-top: auto; }
.footer::before { content: ''; position: absolute; inset: 0; background: url('/img/DSCF9820.webp') center/cover; opacity: 0.04; pointer-events: none; }
.footer-mark { position: relative; z-index: 2; padding: 0 var(--pad-x); max-width: 1600px; margin: 0 auto; }
.footer-mark .word { font-family: var(--serif); font-weight: 200; font-style: italic;
  font-size: clamp(64px, 12vw, 220px); line-height: 0.85; letter-spacing: -0.04em; }
.footer-mark .slogan { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(18px, 1.8vw, 28px);
  margin-top: 24px; max-width: 30ch; opacity: 0.7; }
.footer-grid { position: relative; z-index: 2; padding: clamp(48px, 6vw, 96px) var(--pad-x) 0;
  max-width: 1600px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: clamp(24px, 3vw, 64px); padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 16px; font-weight: 500; }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a, .footer-col li { font-family: var(--sans); font-size: 13px; opacity: 0.85; transition: color 0.2s, opacity 0.2s; line-height: 1.55; }
.footer-col a:hover { color: var(--gold); opacity: 1; }
.footer-bot { position: relative; z-index: 2; padding: 28px var(--pad-x) 0;
  max-width: 1600px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.4); letter-spacing: 0.05em; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* Floating FAB callback */
.fab { position: fixed; right: 24px; bottom: 24px; z-index: 80; }
.fab button, .fab a { display: inline-flex; align-items: center; gap: 10px; padding: 14px 18px;
  background: var(--gold); color: var(--bg-ink); border-radius: 100px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  transition: transform 0.3s, background 0.3s; border: 0; cursor: pointer; }
.fab button:hover, .fab a:hover { transform: translateY(-2px); background: var(--gold-2); }
.fab svg { width: 16px; height: 16px; }
@media (max-width: 600px) { .fab .lbl { display: none; } .fab button, .fab a { padding: 14px; } }

/* Generic CTA section */
.cta-band { padding: clamp(60px, 8vw, 120px) var(--pad-x); background: var(--bg-ink); color: white; text-align: center; }
.cta-band h2 { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05; margin-bottom: 20px; max-width: 18ch; margin-left: auto; margin-right: auto; }
.cta-band p { color: rgba(255,255,255,0.7); max-width: 56ch; margin: 0 auto 28px; font-size: clamp(15px, 1.2vw, 18px); }
.cta-band .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Breadcrumbs */
.crumbs { padding: 16px var(--pad-x); max-width: 1600px; margin: 0 auto;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--mute); }
.crumbs a { color: var(--mute); transition: color 0.2s; }
.crumbs a:hover { color: var(--gold); }
.crumbs span:not(:last-child)::after { content: '→'; margin: 0 10px; opacity: 0.5; }

/* iOS safe-area: status bar (notch / Dynamic Island) не перекрывает nav */
.nav-wrap { background: var(--bg-ink); padding-top: env(safe-area-inset-top); }
body { padding-top: calc(var(--util-h) + var(--nav-h) + env(safe-area-inset-top)); }

.fab { padding-bottom: env(safe-area-inset-bottom); }



/* === Promo widget (2x size) === */
.promo-widget {
  position: fixed; left: 24px; bottom: 24px; z-index: 75;
  width: 560px; max-width: calc(100vw - 48px);
  background: var(--bg-paper); border: 1px solid var(--line);
  border-radius: 12px; padding: 28px 32px 26px;
  box-shadow: 0 32px 80px rgba(15, 20, 16, 0.18);
  opacity: 0; transform: translateX(-110%);
  transition: opacity 0.5s, transform 0.5s cubic-bezier(.2, .7, .2, 1);
  font-family: var(--sans);
}
.promo-widget.is-in { opacity: 1; transform: translateX(0); }
.promo-widget.is-leaving { opacity: 0; transform: translateX(-110%); pointer-events: none; }

.promo-close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: transparent; color: var(--soft);
  border: 0; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.promo-close:hover { background: var(--line-soft); color: var(--text); }
.promo-close svg { width: 20px; height: 20px; }

.promo-link { display: block; color: inherit; text-decoration: none; }

.promo-eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.24em;
  text-transform: uppercase; font-weight: 600; color: var(--gold);
  margin-bottom: 22px;
}

.promo-row { display: grid; grid-template-columns: 130px 1fr; gap: 24px; align-items: center; }
.promo-img { width: 130px; height: 130px; border-radius: 10px;
  background: var(--line) center/cover; flex-shrink: 0; }
.promo-body { display: grid; gap: 6px; }
.promo-title {
  font-family: var(--serif); font-weight: 500; font-size: 30px;
  line-height: 1.1; letter-spacing: -0.015em; color: var(--text);
}
.promo-price {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  font-family: var(--mono); margin: 6px 0 4px;
}
.promo-old { font-size: 16px; color: var(--mute); text-decoration: line-through; }
.promo-new { font-size: 30px; font-weight: 600; color: var(--gold); letter-spacing: -0.015em; }
.promo-unit { font-size: 11px; color: var(--mute); letter-spacing: 0.1em; text-transform: uppercase; }
.promo-cta {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 600; color: var(--text);
  margin-top: 10px; transition: color 0.2s;
}
.promo-link:hover .promo-cta { color: var(--gold); }

/* Mobile: над FAB, 1.5x от старого */
@media (max-width: 600px) {
  .promo-widget {
    left: 12px; right: 12px; width: auto;
    bottom: 96px; padding: 20px 22px 18px; border-radius: 10px;
  }
  .promo-eyebrow { font-size: 11px; margin-bottom: 14px; }
  .promo-row { grid-template-columns: 90px 1fr; gap: 16px; }
  .promo-img { width: 90px; height: 90px; }
  .promo-title { font-size: 22px; }
  .promo-new { font-size: 22px; }
  .promo-old { font-size: 13px; }
  .promo-close { top: 8px; right: 8px; width: 36px; height: 36px; }
  .promo-close svg { width: 16px; height: 16px; }
}
