/* Joinery, versija 1 "Darbnīca". Viena fontu saime (Manrope), silta lina palete, viens akcents (meža zaļš). */

:root {
  --bg: #F5F0E8;
  --bg-2: #ECE4D8;
  --surface: #FFFCF8;
  --ink: #2A221C;
  --ink-2: #5E524A;
  --line: #DDD3C6;
  --line-2: #CFC3B3;
  --oak: #C4874D;
  --oak-soft: #E9D3B8;
  --walnut: #5C3D28;
  --accent: #2E5A3C;
  --accent-dark: #1F4A2E;
  --accent-soft: #DCE8DE;
  --more: #9A4A1B;
  --more-dark: #7E3B13;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(42, 34, 28, .06), 0 8px 24px rgba(42, 34, 28, .08);
  --shadow-sm: 0 1px 2px rgba(42, 34, 28, .08);
  --font: "Manrope", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
small, .small { font-size: .9rem; }
.muted { color: var(--ink-2); }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }
section { padding-block: clamp(52px, 8vw, 104px); }
.section-tight { padding-block: clamp(36px, 5vw, 64px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--oak); border-radius: 2px; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(24px, 4vw, 44px); }
.section-head h2 { margin: 0; max-width: 20ch; }
.section-head .lead { margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--oak); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; cursor: pointer; text-decoration: none; border: 2px solid transparent; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); background: var(--surface); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; color: #fff; }
.btn-ghost { background: transparent; color: var(--accent); padding-inline: 10px; }
.btn-ghost:hover { color: var(--accent-dark); background: var(--accent-soft); }
.btn-more { background: var(--more); color: #fff; min-height: 52px; padding-inline: 26px; font-size: 1.05rem; }
.btn-more:hover { background: var(--more-dark); color: #fff; }
.btn-more .badge { background: #fff; color: var(--more); border-radius: 999px; padding: 2px 10px; font-size: .9rem; font-weight: 800; }
.btn-sm { min-height: 40px; padding: 6px 16px; font-size: .92rem; }
.btn .ic { width: 18px; height: 18px; flex: none; }
.more-row { display: flex; justify-content: center; margin-top: 28px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(245, 240, 232, .92); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.brand-tag { font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-top: 4px; }
.nav { display: none; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 10px 14px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { background: var(--bg-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--oak-soft); color: var(--ink); }
.header-cta { display: none; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .ic-close { display: none; }
.nav-toggle[aria-expanded="true"] .ic-close { display: block; }
.nav-toggle[aria-expanded="true"] .ic-menu { display: none; }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 10px 0 18px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: flex; align-items: center; min-height: 48px; padding: 6px 10px; font-weight: 600; color: var(--ink); text-decoration: none; border-radius: 10px; }
.mobile-nav a:hover { background: var(--bg-2); }
.mobile-nav a[aria-current="page"] { background: var(--oak-soft); }
.mobile-nav .btn { margin-top: 10px; width: 100%; }
@media (min-width: 1024px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle, .mobile-nav { display: none !important; }
}

/* Mobile bottom bar */
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 252, 248, .96); border-top: 1px solid var(--line); }
.bottom-bar .btn { min-height: 48px; }
body { padding-bottom: 84px; }
@media (min-width: 768px) { .bottom-bar { display: none; } body { padding-bottom: 0; } }

/* Hero */
.hero { padding-block: clamp(28px, 5vw, 72px) clamp(44px, 6vw, 88px); }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-copy h1 { max-width: 14ch; margin-bottom: 20px; }
.hero-copy .lead { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { position: relative; display: grid; grid-template-columns: 1fr; gap: 14px; }
.hero-media .ph-main { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.hero-media .ph-small { display: none; }
.hero-facts { display: grid; gap: 14px; margin-top: clamp(28px, 4vw, 48px); padding-top: 24px; border-top: 1px solid var(--line); }
.hero-facts div { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: .95rem; }
.hero-facts strong { display: block; color: var(--ink); font-size: 1rem; }
.hero-facts svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 2px; }
@media (min-width: 768px) {
  .hero-media { grid-template-columns: 1.6fr 1fr; align-items: end; }
  .hero-media .ph-small { display: block; border-radius: var(--radius-lg); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
  .hero-facts { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1.15fr; gap: 56px; }
}

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.grid-3 { display: grid; gap: 22px; }
.grid-2 { display: grid; gap: 22px; }
.grid-4 { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.section-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.section-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.section-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.section-card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.section-card h3 { margin: 0; font-size: 1.35rem; }
.section-card p { margin: 0; color: var(--ink-2); }
.section-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.section-card .tags span { font-size: .8rem; font-weight: 600; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--ink-2); }
.section-card .link { margin-top: auto; padding-top: 12px; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.section-card .link svg { width: 18px; height: 18px; transition: transform .2s; }
.section-card:hover .link svg { transform: translateX(4px); }

/* Product cards */
.product-card { display: flex; flex-direction: column; }
.product-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.product-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card h3 { margin: 0; font-size: 1.15rem; }
.product-card .price { font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.product-card .price small { font-weight: 600; color: var(--ink-2); font-size: .85rem; }
.product-card .sizes { font-size: .88rem; color: var(--ink-2); }
.product-card .desc { color: var(--ink-2); font-size: .95rem; margin: 0; }
.product-card .actions { margin-top: auto; padding-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }

/* Teaser band */
.band { background: var(--bg-2); }
.band-dark { background: var(--ink); color: #E8DFD3; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .muted { color: #C9BCAD; }
.band-dark .eyebrow { color: #A9C9B2; }
.band-dark .eyebrow::before { background: var(--oak); }
.band-oak { background: var(--oak-soft); }

.calc-teaser { display: grid; gap: 28px; align-items: center; }
.calc-teaser .mini { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.calc-teaser .mini h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-bottom: 12px; }
.price-list { list-style: none; margin: 0; padding: 0; display: grid; }
.price-list li { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); }
.price-list li:first-child { border-top: 0; }
.price-list a { color: var(--ink); text-decoration: none; font-weight: 600; }
.price-list a:hover { color: var(--accent); text-decoration: underline; }
.price-list .from { font-weight: 800; white-space: nowrap; }
.price-list .from small { font-weight: 600; color: var(--ink-2); }
@media (min-width: 1024px) { .calc-teaser { grid-template-columns: 1.1fr 1fr; gap: 56px; } }

/* Gallery preview */
.gal-preview { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gal-preview a { display: block; border-radius: var(--radius); overflow: hidden; position: relative; }
.gal-preview img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s ease; }
.gal-preview a:hover img { transform: scale(1.04); }
.gal-preview .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; color: #fff; font-size: .9rem; font-weight: 600; background: linear-gradient(to top, rgba(26, 18, 12, .78), rgba(26, 18, 12, 0)); }
@media (min-width: 768px) { .gal-preview { grid-template-columns: repeat(3, 1fr); } .gal-preview a:first-child { grid-column: span 2; grid-row: span 2; } .gal-preview a:first-child img { aspect-ratio: auto; height: 100%; } }

/* Species + grades */
.species-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .species-row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .species-row { grid-template-columns: repeat(5, 1fr); } }
.species-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.species-card .sw { height: 64px; width: 100%; border-radius: 10px; object-fit: cover; background: var(--oak-soft); }
.species-card strong { font-size: 1.05rem; }
.species-card p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.species-card .mult { font-size: .8rem; font-weight: 700; color: var(--accent); }
.sw-priede { background-color: #D9A86C; }
.sw-egle { background-color: #E8CFA3; }
.sw-lapegle { background-color: #C98B4A; }
.sw-osis { background-color: #D8C2A0; }
.sw-ozols { background-color: #9C6B3F; }

.grade-list { display: grid; gap: 14px; }
@media (min-width: 768px) { .grade-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grade-list { grid-template-columns: repeat(4, 1fr); } }
.grade-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.grade-card .g { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 10px; }
.grade-card strong { display: block; font-size: 1.05rem; }
.grade-card p { margin: 6px 0 0; font-size: .92rem; color: var(--ink-2); }
.grade-card .mult { display: inline-block; margin-top: 10px; font-size: .82rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 3px 10px; }
.grade-card.has-photo { padding: 10px 10px 18px; }
.grade-card.has-photo > :not(.gr-photo) { margin-inline: 8px; }
.grade-card .gr-photo { width: 100%; height: auto; aspect-ratio: 800 / 496; object-fit: cover; border-radius: 10px; margin-bottom: 14px; background: var(--oak-soft); }

/* Steps */
.steps { display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 20px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-weight: 800; font-size: 1.6rem; color: var(--oak); display: block; margin-bottom: 8px; letter-spacing: -0.03em; }
.step strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.step p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* Blog cards */
.post-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.post-card:hover { color: inherit; }
.post-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.post-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card .meta { font-size: .82rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.post-card h3, .post-card h2 { margin: 0; font-size: 1.2rem; }
.post-card:hover h3, .post-card:hover h2 { color: var(--accent); }
.post-card p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.post-card .read { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--accent); }

/* Contact block */
.contact-grid { display: grid; gap: 22px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1.1fr 1fr; gap: 48px; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 24px; height: 24px; color: var(--accent); flex: none; margin-top: 2px; }
.contact-list strong { display: block; }
.contact-list a { font-weight: 600; }
.map-ph { background: var(--bg-2); border: 1px dashed var(--line-2); border-radius: var(--radius-lg); min-height: 280px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--ink-2); position: relative; overflow: hidden; }
.map-ph .pin { width: 44px; height: 44px; color: var(--accent); margin-bottom: 10px; }
.map-ph strong { color: var(--ink); display: block; }

/* Forms */
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, 1fr); } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--ink-2); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--oak); outline-offset: 1px; border-color: var(--oak); }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #B23A2E; }
.field .err { display: none; color: #9A2D22; font-size: .85rem; font-weight: 600; }
.field.invalid .err { display: block; }
.form-success { display: none; background: var(--accent-soft); border: 1px solid #B9D2C0; color: var(--accent-dark); border-radius: var(--radius); padding: 18px 20px; }
.form-success.show { display: block; }
.form-success strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); }

/* Footer */
.site-footer { background: var(--ink); color: #E8DFD3; padding: clamp(40px, 6vw, 72px) 0 28px; margin-top: clamp(40px, 6vw, 80px); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h3 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #E8DFD3; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand-tag { color: #C9BCAD; }
.site-footer p { color: #C9BCAD; font-size: .95rem; max-width: 36ch; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .88rem; color: #C9BCAD; }

/* Cookie bar */
.cookie { position: fixed; left: 12px; right: 12px; bottom: 92px; z-index: 95; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); display: none; gap: 14px; align-items: center; flex-wrap: wrap; font-size: .92rem; }
.cookie.show { display: flex; }
.cookie p { margin: 0; flex: 1 1 260px; color: var(--ink-2); }
.cookie .acts { display: flex; gap: 8px; }
@media (min-width: 768px) { .cookie { left: auto; right: 24px; bottom: 24px; max-width: 460px; } }

/* Page hero (inner pages) */
.page-head { padding-block: clamp(32px, 5vw, 64px) clamp(24px, 4vw, 40px); }
.page-head h1 { max-width: 18ch; }
.page-head .lead { margin-bottom: 0; }
.breadcrumb { font-size: .88rem; color: var(--ink-2); margin-bottom: 14px; }
.breadcrumb a { color: var(--ink-2); }

/* Sub nav (produkcija) */
.subnav { position: sticky; top: var(--header-h); z-index: 60; background: rgba(245, 240, 232, .95); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.subnav ul { list-style: none; margin: 0; padding: 8px 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 16px; border-radius: 999px; font-weight: 700; font-size: .95rem; color: var(--ink); text-decoration: none; white-space: nowrap; border: 1px solid transparent; }
.subnav a:hover { background: var(--bg-2); }
.subnav a.active { background: var(--ink); color: #fff; }
.product-section { padding-block: clamp(36px, 5vw, 64px); scroll-margin-top: calc(var(--header-h) + 70px); }
.product-section + .product-section { border-top: 1px solid var(--line); }
.product-section .section-head p { max-width: 60ch; }
.note { background: var(--surface); border-left: 4px solid var(--oak); border-radius: 10px; padding: 14px 18px; color: var(--ink-2); font-size: .95rem; }
.note strong { color: var(--ink); }
.finish-table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.finish-table th, .finish-table td { text-align: left; padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.finish-table thead th { border-top: 0; background: var(--bg-2); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.finish-table td:last-child { white-space: nowrap; font-weight: 700; }
@media (max-width: 639px) {
  .finish-table thead { display: none; }
  .finish-table, .finish-table tbody, .finish-table tr, .finish-table td { display: block; width: 100%; }
  .finish-table tr { border-top: 1px solid var(--line); padding: 8px 0; }
  .finish-table tr:first-child { border-top: 0; }
  .finish-table td { border: 0; padding: 4px 14px; white-space: normal; }
  .finish-table td::before { content: attr(data-label); display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); font-weight: 600; }
  .finish-table td:first-child::before { display: none; }
  .finish-table td:first-child { padding-top: 8px; font-size: 1.05rem; }
}

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"], .chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .n { font-size: .8rem; font-weight: 700; opacity: .75; }

/* Gallery */
.gallery { column-count: 1; column-gap: 14px; }
@media (min-width: 560px) { .gallery { column-count: 2; } }
@media (min-width: 900px) { .gallery { column-count: 3; } }
@media (min-width: 1300px) { .gallery { column-count: 4; } }
.g-item { break-inside: avoid; margin: 0 0 14px; display: block; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); border: 0; padding: 0; cursor: zoom-in; width: 100%; text-align: left; font: inherit; color: inherit; }
.g-item.hidden { display: none; }
.g-item img { width: 100%; height: auto; transition: transform .45s ease; }
.g-item:hover img { transform: scale(1.03); }
.g-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 14px 12px; color: #fff; font-size: .9rem; font-weight: 600; background: linear-gradient(to top, rgba(26, 18, 12, .8), rgba(26, 18, 12, 0)); }
.g-item figcaption span { display: block; font-size: .78rem; font-weight: 500; opacity: .85; }
.g-count { font-size: .95rem; color: var(--ink-2); margin: 14px 0 0; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 300; background: rgba(20, 14, 10, .94); display: none; align-items: center; justify-content: center; padding: 0; }
.lb.open { display: flex; }
.lb img { max-width: min(96vw, 1400px); max-height: calc(100vh - 150px); width: auto; height: auto; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); touch-action: pan-y; user-select: none; -webkit-user-drag: none; }
.lb-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 72px 18px; color: #fff; text-align: center; font-size: 1rem; font-weight: 600; }
.lb-cap span { display: block; font-size: .85rem; opacity: .75; font-weight: 500; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-btn svg { width: 26px; height: 26px; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; top: 24px; left: 20px; color: #fff; font-weight: 700; font-size: .95rem; opacity: .85; }
body.lb-open { overflow: hidden; }

/* Calculator */
.calc-layout { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1024px) { .calc-layout { grid-template-columns: 1fr 380px; gap: 40px; } }
.calc-steps { display: grid; gap: 18px; }
.cstep { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.cstep-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.cstep-head .num { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cstep-head h2 { margin: 0; font-size: 1.25rem; }
.cstep-head .sel { margin-left: auto; font-size: .9rem; font-weight: 700; color: var(--accent); text-align: right; }
.cstep.done .num { background: var(--accent); }
.cstep.muted-step { opacity: .55; }
.opt-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .opt-grid { grid-template-columns: repeat(3, 1fr); } }
.opt-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .opt-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.opt { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 60px; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; font: inherit; text-align: left; color: var(--ink); transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--ink-2); }
.opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.opt[aria-pressed="true"]::after { content: ""; position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; }
.opt strong { font-size: .98rem; line-height: 1.25; padding-right: 20px; }
.opt small { color: var(--ink-2); font-size: .82rem; line-height: 1.35; }
.opt .price-hint { font-size: .82rem; font-weight: 700; color: var(--accent); }
.opt-species { padding: 10px; }
.opt-species .sw { height: 56px; border-radius: 8px; background-size: cover; background-position: center; margin-bottom: 6px; }
.opt-product { padding: 0; overflow: hidden; gap: 0; }
.opt-product img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.opt-product .t { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; }
.opt-product[aria-pressed="true"]::after { top: 8px; right: 8px; }
.opt-grade .g { display: inline-flex; width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 4px; }
.opt-grade .gr-thumb { width: 100%; height: auto; aspect-ratio: 800 / 496; object-fit: cover; border-radius: 8px; margin-bottom: 6px; background: var(--oak-soft); }
.opt-grade[aria-pressed="true"]::after { top: 16px; right: 16px; box-shadow: 0 0 0 2px #fff; }
.calc-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.qty-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .qty-row { grid-template-columns: 1fr 1fr; } }
.qty-input { display: flex; align-items: stretch; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.qty-input button { width: 52px; border: 0; background: var(--bg-2); font: inherit; font-size: 1.4rem; font-weight: 700; cursor: pointer; color: var(--ink); }
.qty-input button:hover { background: var(--oak-soft); }
.qty-input input { flex: 1; border: 0; font: inherit; font-size: 1.25rem; font-weight: 700; text-align: center; min-width: 0; padding: 10px; background: transparent; color: var(--ink); }
.qty-input input:focus { outline: none; }
.qty-input:focus-within { border-color: var(--accent); }
.qty-unit { font-weight: 700; color: var(--ink-2); display: inline-flex; align-items: center; padding: 0 14px; background: var(--bg-2); }

.calc-summary { position: sticky; top: calc(var(--header-h) + 16px); background: var(--ink); color: #E8DFD3; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.calc-summary h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.calc-summary .total { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; color: #fff; letter-spacing: -0.03em; line-height: 1.05; }
.calc-summary .range { color: #C9BCAD; margin: 6px 0 16px; font-size: .95rem; }
.calc-summary .unitp { color: #fff; font-weight: 700; margin-bottom: 4px; }
.calc-summary dl { margin: 0 0 18px; display: grid; gap: 6px; font-size: .92rem; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 14px; }
.calc-summary dl div { display: flex; justify-content: space-between; gap: 12px; }
.calc-summary dt { color: #C9BCAD; }
.calc-summary dd { margin: 0; color: #fff; font-weight: 600; text-align: right; }
.calc-summary .btn-primary { width: 100%; }
.calc-summary .fine { font-size: .8rem; color: #C9BCAD; margin: 12px 0 0; }
.calc-request { display: none; background: var(--oak-soft); color: var(--ink); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.calc-request.show { display: block; }
.calc-request p { margin: 0 0 8px; font-size: .95rem; }
.calc-summary .empty { color: #C9BCAD; font-size: .95rem; }
.bottom-bar.calc-bar { grid-template-columns: 48px 1fr auto; }
.bottom-bar.calc-bar .btn-outline { padding-inline: 0; }
.bottom-bar .cs-total { display: flex; flex-direction: column; justify-content: center; line-height: 1.15; font-weight: 800; }
.bottom-bar .cs-total small { font-weight: 600; color: var(--ink-2); font-size: .75rem; }

/* Blog article */
.article { padding-block: clamp(24px, 4vw, 48px) 0; }
.article-hero { border-radius: var(--radius-lg); aspect-ratio: 16 / 8; object-fit: cover; width: 100%; margin: 24px 0 36px; box-shadow: var(--shadow); }
.article h2 { font-size: 1.5rem; margin-top: 1.6em; }
.article h3 { margin-top: 1.4em; }
.article p, .article li { font-size: 1.08rem; }
.article .meta { font-size: .88rem; color: var(--ink-2); display: flex; gap: 14px; flex-wrap: wrap; }
.grade-figure { margin: 28px 0 8px; }
.grade-figure-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .grade-figure-grid { grid-template-columns: repeat(4, 1fr); } }
.grade-figure-grid figure { margin: 0; }
.grade-figure-grid img { width: 100%; height: auto; aspect-ratio: 800 / 496; object-fit: cover; border-radius: 10px; background: var(--oak-soft); }
.grade-figure-grid figcaption { margin-top: 6px; font-size: .88rem; font-weight: 700; color: var(--ink); }
.grade-figure > figcaption { margin-top: 10px; }
.article-cta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.article-cta p { margin: 0; }
.article-nav { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.post-list { display: grid; gap: 22px; }
@media (min-width: 768px) { .post-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-list { grid-template-columns: repeat(3, 1fr); } }
.hidden { display: none !important; }

/* Delivery table */
.deliv { display: grid; gap: 14px; }
@media (min-width: 640px) { .deliv { grid-template-columns: repeat(3, 1fr); } }
.deliv div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.deliv strong { display: block; font-size: 1.2rem; }
.deliv span { font-size: .9rem; color: var(--ink-2); }

/* Two column text */
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.split img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.split img.portrait { aspect-ratio: 3 / 4; max-height: 560px; }

@media print {
  .site-header, .bottom-bar, .cookie, .lb, .nav-toggle, .btn-more { display: none !important; }
  body { background: #fff; color: #000; padding-bottom: 0; }
  .g-item.hidden, .hidden { display: block !important; }
}
