/* ============================================================
   OliverDeck — COMPONENT · SECTION PATTERNS
   Page-level composed blocks: hero (4 variants), section header,
   founder column (4 variants), big stats, material comparison,
   calculator shell, glossary, article/editorial, quiz, checkout.
   These build on the primitives + cards above.

   NOTE: the hero background image was hardcoded to an external
   oliverdeck.ru URL in the original CSS. It is now a token:
   --od-hero-image. Set it per-page (inline style or a wrapper);
   default is a self-contained warm gradient (no external dep).
   ============================================================ */

:root {
  --od-hero-image: linear-gradient(135deg, #2d2015 0%, #181009 100%); /* @kind other */
}

/* ---------- SECTION HEADER ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; gap: 32px; flex-wrap: wrap; }
.sec-head .l { max-width: 620px; }
.sec-head .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--olive-600); margin-bottom: 12px; }
.sec-head h2 { font-family: var(--od-font-display); font-size: clamp(28px, 3.5vw, 48px); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 12px; }
.sec-head p { font-size: 16px; color: var(--od-color-text-secondary); max-width: 52ch; margin: 0; }
.sec-head[data-on="dark"] h2, .sec-head[data-on="dark"] { color: var(--neutral-50); }
.sec-head[data-on="dark"] p { color: var(--neutral-300); }
/* Compact variant — group headers inside listings (search, related blocks) */
.sec-head[data-compact="true"] { margin-bottom: 18px; }
.sec-head[data-compact="true"] h2 { font-size: 24px; }

/* ---------- HERO · PHOTO (default) ---------- */
.od-hero { position: relative; padding: var(--s-24) 0 var(--s-20); background: var(--wood-900); color: var(--neutral-50); overflow: hidden; }
.od-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(24,16,9,0.92) 0%, rgba(24,16,9,0.72) 50%, rgba(24,16,9,0.45) 100%),
    radial-gradient(ellipse at 30% 50%, rgba(238,195,13,0.18), transparent 50%),
    var(--od-hero-image) center/cover no-repeat;
}
.od-hero .container { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s-16); align-items: center; }
@media (max-width: 900px) { .od-hero .container { grid-template-columns: 1fr; } }
.od-hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; background: rgba(238,195,13,0.15); border: 1px solid rgba(238,195,13,0.3); border-radius: var(--r-pill); font-size: 13px; font-weight: 500; color: var(--olive-200); margin-bottom: var(--s-6); }
.od-hero-badge .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--olive-400); box-shadow: 0 0 12px var(--olive-400); }
.od-hero h1 { font-family: var(--od-font-display); font-size: var(--fs-d2); line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 var(--s-6); max-width: 18ch; }
.od-hero h1 .hl { color: var(--olive-300); }
.od-hero-desc { font-size: 18px; line-height: 1.5; color: var(--neutral-300); max-width: 48ch; margin: 0 0 var(--s-8); }
.od-hero-bullets { display: flex; flex-wrap: wrap; gap: var(--s-5) var(--s-6); margin-top: var(--s-8); color: var(--neutral-300); font-size: 14px; }
.od-hero-bullets span { display: inline-flex; align-items: center; gap: 8px; }
.od-hero-bullets .material-symbols-outlined { color: var(--olive-400); font-size: 20px; }
.od-hero-ctas { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.od-calc-card { position: relative; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--r-xl); padding: var(--s-8); backdrop-filter: blur(4px); }
.od-calc-card h3 { font-family: var(--od-font-display); font-size: 22px; font-weight: 600; margin: 0 0 4px; color: var(--neutral-50); }
.od-calc-card .od-calc-sub { font-size: 13px; color: var(--olive-300); margin-bottom: var(--s-5); }
.od-calc-card .od-label { color: var(--neutral-300); }
.od-calc-card .od-input, .od-calc-card .od-select { background: rgba(0,0,0,0.25); border-color: rgba(255,255,255,0.15); color: var(--neutral-50); }
.od-calc-card-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-bottom: var(--s-3); }

/* ---------- HERO · TYPOGRAPHIC ---------- */
.hero-typo { background: var(--neutral-50); color: var(--od-color-text-primary); padding: var(--s-24) 0 var(--s-20); position: relative; overflow: hidden; }
.hero-typo .kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--olive-600); margin-bottom: 32px; display: flex; align-items: center; gap: 10px; }
.hero-typo .kicker .line { flex: 0 0 40px; height: 1px; background: var(--olive-400); }
.hero-typo h1 { font-family: var(--od-font-display); font-size: clamp(48px, 7vw, 110px); line-height: 0.95; letter-spacing: -0.035em; font-weight: 600; margin: 0 0 40px; max-width: 14ch; }
.hero-typo h1 em { font-style: normal; color: var(--olive-500); }
.hero-typo .meta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 40px; border-top: 1px solid var(--od-color-border); }
@media (max-width: 700px) { .hero-typo .meta-grid { grid-template-columns: repeat(2, 1fr); } }
.hero-typo .meta-grid .big { font-family: var(--od-font-display); font-size: 40px; font-weight: 600; color: var(--wood-900); letter-spacing: -0.02em; line-height: 1; }
.hero-typo .meta-grid .big sub { font-size: 14px; font-weight: 400; color: var(--od-color-text-muted); vertical-align: baseline; margin-left: 4px; }
.hero-typo .meta-grid .lbl { font-size: 13px; color: var(--od-color-text-muted); margin-top: 8px; line-height: 1.4; }

/* ---------- HERO · SPLIT (editorial) ---------- */
.hero-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; min-height: 640px; background: var(--neutral-50); }
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; } }
.hero-split .l { padding: 80px 56px; display: flex; flex-direction: column; justify-content: center; }
.hero-split .r { background: linear-gradient(135deg, var(--wood-400), var(--wood-700)); position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 40px; color: var(--neutral-50); }
.hero-split .r::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(24,16,9,0.6), transparent 60%); }
.hero-split .r .caption { position: relative; z-index: 1; font-size: 13px; line-height: 1.5; }
.hero-split .r .caption strong { display: block; font-size: 14px; margin-bottom: 4px; }

/* ---------- BIG STATS ---------- */
.big-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--od-color-border); border-bottom: 1px solid var(--od-color-border); }
@media (max-width: 800px) { .big-stats { grid-template-columns: repeat(2, 1fr); } }
.big-stats .stat { padding: 32px 24px; border-right: 1px solid var(--od-color-border); }
.big-stats .stat:last-child { border-right: 0; }
.big-stats .val { font-family: var(--od-font-display); font-size: clamp(36px, 4vw, 56px); font-weight: 600; letter-spacing: -0.02em; line-height: 1; color: var(--wood-900); }
.big-stats .val sub { font-size: 18px; font-weight: 400; color: var(--od-color-text-muted); vertical-align: baseline; margin-left: 4px; }
.big-stats .lbl { font-size: 13px; color: var(--od-color-text-muted); margin-top: 12px; line-height: 1.4; }

/* ---------- MATERIAL COMPARISON (asymmetric, featured column) ---------- */
.compare-asym { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--od-color-border); }
@media (max-width: 800px) { .compare-asym { grid-template-columns: 1fr; } }
.compare-asym .col { padding: 36px 28px; border-right: 1px solid var(--od-color-border); display: flex; flex-direction: column; gap: 16px; position: relative; }
.compare-asym .col:last-child { border-right: 0; }
.compare-asym .col.featured { background: var(--olive-50); }
.compare-asym .col.featured h3 { color: var(--od-color-text-primary); }
.compare-asym .col.featured .row { border-color: #e8dca6; }
.compare-asym .col.featured .row .k { color: var(--od-color-text-muted); }
.compare-asym .col.featured .row .v { color: var(--olive-800); }
.compare-asym .col .material { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--olive-600); }
.compare-asym .col.featured .material { color: var(--olive-700); }
.compare-asym .col h3 { font-family: var(--od-font-display); font-size: 32px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.compare-asym .col .lede { font-size: 14px; color: var(--od-color-text-secondary); line-height: 1.55; }
.compare-asym .col.featured .lede { color: var(--od-color-text-secondary); }
.compare-asym .col .row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--od-color-border); font-size: 14px; }
.compare-asym .col .row:last-of-type { border-bottom: 0; }
.compare-asym .col .row .k { color: var(--od-color-text-muted); }
.compare-asym .col .row .v { font-weight: 600; color: var(--od-color-text-primary); }
.compare-asym .col .verdict { margin-top: auto; padding-top: 20px; font-size: 14px; font-style: italic; color: var(--od-color-text-secondary); }
.compare-asym .col.featured .verdict { color: var(--olive-800); }

/* ---------- CALCULATOR SHELL ---------- */
.calc-shell { background: var(--wood-900); color: var(--neutral-50); border-radius: var(--r-xl); padding: 48px; position: relative; overflow: hidden; }
.calc-shell::before { content: ''; position: absolute; width: 500px; height: 500px; top: -100px; right: -100px; border-radius: 50%; background: radial-gradient(circle, rgba(238,195,13,0.1), transparent 70%); }
.calc-shell .stepper { display: flex; gap: 8px; margin-bottom: 32px; position: relative; }
.calc-shell .stepper .step { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.1); }
.calc-shell .stepper .step.done, .calc-shell .stepper .step.active { background: var(--olive-400); }
.calc-shell h2 { font-family: var(--od-font-display); font-size: 36px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 12px; color: var(--neutral-50); }
.calc-shell .q { font-size: 16px; color: var(--neutral-300); margin-bottom: 32px; }
.calc-shell .opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 32px; position: relative; }
@media (max-width: 800px) { .calc-shell .opts { grid-template-columns: 1fr; } }
.calc-shell .opt { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--r-md); padding: 20px; cursor: pointer; transition: border-color .2s, background .2s; text-align: left; }
.calc-shell .opt:hover { border-color: var(--olive-400); background: rgba(238,195,13,0.08); }
.calc-shell .opt.selected { border-color: var(--olive-400); background: rgba(238,195,13,0.12); }
.calc-shell .opt .icon { font-size: 24px; color: var(--olive-300); margin-bottom: 10px; }
.calc-shell .opt .t { font-size: 16px; font-weight: 600; color: var(--neutral-50); margin-bottom: 4px; }
.calc-shell .opt .d { font-size: 13px; color: var(--neutral-400); line-height: 1.4; }
.calc-shell .nav { display: flex; justify-content: space-between; align-items: center; position: relative; }

/* ---------- GLOSSARY ---------- */
.gloss-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--od-color-border); }
@media (max-width: 800px) { .gloss-grid { grid-template-columns: 1fr; } }
.gloss-item { padding: 28px 24px; border-right: 1px solid var(--od-color-border); border-bottom: 1px solid var(--od-color-border); cursor: pointer; transition: background .15s; }
.gloss-item:hover { background: var(--neutral-50); }
.gloss-item .term { font-family: var(--od-font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; color: var(--wood-900); }
.gloss-item .abbr { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--olive-600); margin-bottom: 10px; }
.gloss-item .def { font-size: 14px; line-height: 1.55; color: var(--od-color-text-secondary); }

/* ---------- FOUNDER · JOURNAL ---------- */
.founder-card { background: var(--od-color-surface); border: 1px solid var(--od-color-border); border-radius: var(--r-xl); overflow: hidden; display: grid; grid-template-columns: 320px 1fr; }
@media (max-width: 800px) { .founder-card { grid-template-columns: 1fr; } }
.founder-portrait { aspect-ratio: 3/4; background: radial-gradient(circle at 50% 35%, var(--wood-300), var(--wood-500) 60%, var(--wood-700)); position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; padding: 24px; }
.founder-portrait .tag { position: absolute; top: 20px; left: 20px; z-index: 2; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); color: var(--neutral-50); padding: 5px 10px; border-radius: 4px; }
.founder-body { padding: 32px 36px; display: flex; flex-direction: column; }
.founder-body .meta { font-size: 12px; color: var(--od-color-text-muted); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; margin-bottom: 12px; }
.founder-body h3 { font-family: var(--od-font-display); font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 16px; }
.founder-body .quote { font-size: 16px; line-height: 1.65; color: var(--od-color-text-secondary); margin: 0 0 24px; padding-left: 16px; border-left: 2px solid var(--olive-400); font-style: italic; }
.founder-body .by { font-size: 14px; color: var(--od-color-text-muted); margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- FOUNDER · MAGAZINE (big quote) ---------- */
.founder-mag { background: var(--od-color-surface-dark); color: var(--neutral-50); border-radius: var(--r-xl); padding: 56px 48px; display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: center; position: relative; overflow: hidden; }
@media (max-width: 800px) { .founder-mag { grid-template-columns: 1fr; } }
.founder-mag::before { content: '\201C'; position: absolute; top: -60px; left: 24px; font-family: var(--od-font-display); font-size: 360px; line-height: 1; color: rgba(238,195,13,0.08); font-weight: 600; }
.founder-mag .q { font-family: var(--od-font-display); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.4; letter-spacing: -0.01em; font-weight: 400; margin: 0 0 28px; position: relative; }
.founder-mag .q em { font-style: normal; color: var(--olive-300); }
.founder-mag .signature { display: flex; align-items: center; gap: 14px; }
.founder-mag .sig-dot { width: 48px; height: 48px; border-radius: 50%; background: radial-gradient(circle at 40% 30%, var(--wood-300), var(--wood-600)); flex: none; display: flex; align-items: center; justify-content: center; font-family: var(--od-font-display); font-size: 15px; color: var(--neutral-0); font-weight: 600; }
.founder-mag .sig-meta { font-size: 13px; color: var(--neutral-300); }
.founder-mag .sig-meta strong { color: var(--neutral-50); font-size: 15px; font-weight: 600; display: block; margin-bottom: 2px; }
.founder-mag .mini-portrait { aspect-ratio: 3/4; border-radius: var(--r-lg); background: radial-gradient(circle at 50% 35%, var(--wood-300), var(--wood-500) 60%, var(--wood-800)); position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 16px; }
.founder-mag .mini-portrait .cap { position: absolute; bottom: 16px; left: 16px; z-index: 1; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--neutral-50); }

/* ---------- FOUNDER · Q&A ---------- */
.founder-qa { background: var(--od-color-surface); border: 1px solid var(--od-color-border); border-radius: var(--r-xl); padding: 40px 44px; }
.founder-qa h3 { font-family: var(--od-font-display); font-size: 22px; font-weight: 600; margin: 0 0 8px; }
.founder-qa .sub { font-size: 14px; color: var(--od-color-text-muted); margin-bottom: 28px; }
.founder-qa .qa-item { padding: 20px 0; border-bottom: 1px solid var(--od-color-border); }
.founder-qa .qa-item:last-child { border-bottom: 0; }
.founder-qa .q-text { font-size: 16px; font-weight: 700; color: var(--od-color-text-primary); margin-bottom: 10px; display: flex; gap: 12px; }
.founder-qa .q-text::before { content: '\412.'; font-family: var(--od-font-display); color: var(--wood-400); font-weight: 600; flex: none; }
.founder-qa .a-text { font-size: 15px; line-height: 1.6; color: var(--od-color-text-secondary); display: flex; gap: 12px; }
.founder-qa .a-text::before { content: '\41E.'; font-family: var(--od-font-display); color: var(--olive-500); font-weight: 600; flex: none; }

.founder-whisper { background: var(--olive-50); border: 1px solid var(--olive-200); border-radius: var(--r-lg); padding: 20px 24px; font-size: 15px; color: var(--wood-800); line-height: 1.55; position: relative; }

/* ---------- ARTICLE / EDITORIAL ---------- */
.article-lead { padding: 80px 0 40px; background: var(--neutral-50); border-bottom: 1px solid var(--od-color-border); }
.article-lead .container-sm { max-width: 860px; }
.article-lead .cat { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--olive-600); margin-bottom: 20px; }
.article-lead h1 { font-family: var(--od-font-display); font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 24px; color: var(--wood-900); }
.article-lead .dek { font-size: 20px; line-height: 1.5; color: var(--od-color-text-secondary); margin: 0 0 32px; max-width: 60ch; }
.article-lead .byline { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--od-color-text-muted); }
.article-lead .byline strong { color: var(--od-color-text-primary); font-size: 15px; font-weight: 600; }
.article-body { padding: 48px 0 80px; }
.article-body .container-sm { max-width: 800px; }
.article-body .drop { font-family: var(--od-font-display); float: left; font-size: 72px; font-weight: 600; line-height: 0.9; padding: 8px 12px 0 0; color: var(--olive-500); }
.article-body p { font-size: 18px; line-height: 1.7; color: var(--od-color-text-primary); margin: 0 0 24px; }
.article-body h2 { font-family: var(--od-font-display); font-size: 32px; font-weight: 600; letter-spacing: -0.02em; margin: 48px 0 16px; }
.article-body blockquote { margin: 36px 0; padding: 0 0 0 24px; border-left: 3px solid var(--olive-400); font-family: var(--od-font-display); font-size: 26px; line-height: 1.35; font-weight: 500; letter-spacing: -0.01em; color: var(--wood-900); }
.article-body .cta-inline { background: var(--neutral-50); border: 1px solid var(--od-color-border); border-left: 3px solid var(--olive-400); padding: 20px 24px; border-radius: var(--r-md); margin: 32px 0; font-size: 16px; line-height: 1.55; }
.article-body .cta-inline strong { display: block; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; color: var(--olive-600); margin-bottom: 6px; }

/* ---------- QUIZ ---------- */
.quiz-card { background: var(--od-color-surface); border: 1px solid var(--od-color-border); border-radius: var(--r-xl); padding: 40px; }
.quiz-card h2 { font-family: var(--od-font-display); font-size: 32px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 8px; }
.quiz-card .progress { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--olive-600); font-weight: 700; margin-bottom: 20px; }
.quiz-card .bar { height: 4px; background: var(--neutral-100); border-radius: 2px; overflow: hidden; margin-bottom: 28px; }
.quiz-card .bar-fill { height: 100%; background: var(--olive-400); transition: width .3s; }

/* ---------- CHECKOUT ---------- */
.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: flex-start; }
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } }
.checkout-block { background: var(--od-color-surface); border: 1px solid var(--od-color-border); border-radius: var(--r-lg); padding: 28px; margin-bottom: 16px; }
.checkout-block h3 { font-family: var(--od-font-display); font-size: 20px; font-weight: 600; margin: 0 0 20px; display: flex; align-items: center; gap: 10px; }
.checkout-block h3 .num { width: 28px; height: 28px; border-radius: 50%; background: var(--olive-400); color: var(--wood-900); font-family: var(--od-font-body); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.checkout-summary { background: var(--wood-900); color: var(--neutral-50); border-radius: var(--r-lg); padding: 28px; position: sticky; top: 100px; }
.checkout-summary h3 { font-family: var(--od-font-display); font-size: 20px; font-weight: 600; margin: 0 0 20px; color: var(--neutral-50); }
.checkout-summary .line { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; color: var(--neutral-300); }
.checkout-summary .line.total { font-family: var(--od-font-display); font-size: 24px; color: var(--neutral-50); font-weight: 600; border-top: 1px solid rgba(255,255,255,0.15); margin-top: 8px; padding-top: 16px; }

/* entrance — animate the slide only; opacity stays 1 so captures/print/PDF show content */
@keyframes fadeIn { from { transform: translateY(6px); } to { transform: none; } }
@media (prefers-reduced-motion: no-preference) { .od-view, .fade-in { animation: fadeIn .32s var(--ease-out); } }
