/* MI-TO SLOVAKIA — tmavý dizajn
   Paleta: nočný smrekový les, hobľované drevo v svetle lampy. */
:root {
  --bg: #111613;          /* smrekový les v noci */
  --bg-2: #161D19;        /* tieň pod korunami */
  --surface: #1C2420;
  --line: #2C3630;
  --line-2: #3D4943;
  --text: #ECE6DA;        /* nebielené plátno */
  --muted: #A4ABA2;
  --wood: #D9A86C;        /* hobľovaný smrek pod lampou */
  --wood-2: #E9C597;
  --on-wood: #1A140C;
  --error: #F08A7A;
  --focus: #E9C597;

  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.4vw, 1.35rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2.1rem, 1.6rem + 2.4vw, 3.5rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.6vw, 5.8rem);

  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 9vw, 140px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 76px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: var(--step-0); line-height: 1.6; font-feature-settings: "lnum" 1, "tnum" 1; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.06; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--wood); color: var(--on-wood); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.section { padding-block: var(--section) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--muted); max-width: 46ch; }

/* tlačidlá */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; font-weight: 500; font-size: .98rem; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .15s var(--ease); }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-solid { background: var(--wood); color: var(--on-wood); }
.btn-solid:hover { background: var(--wood-2); }
.btn-line { border-color: rgba(236,230,218,.4); }
.btn-line:hover { border-color: var(--wood); color: var(--wood-2); }
.btn-ghost { padding: 0 18px; border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--wood); }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--wood); text-decoration: none; min-height: 44px; }
.link-arrow svg { width: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* hlavička */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color .35s var(--ease), border-color .35s var(--ease); border-bottom: 1px solid transparent; }
.site-header.scrolled, .site-header.menu-open { background: rgba(17,22,19,.92); border-bottom-color: var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-header.menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 1.4rem; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; color: var(--wood); }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { text-decoration: none; padding: 10px 11px; font-size: .94rem; color: rgba(236,230,218,.78); transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--wood-2); box-shadow: inset 0 -1px 0 var(--wood); }
.nav .nav-phone { display: none; }
.menu-btn { display: none; }

/* úvodný hero */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; overflow: hidden; isolation: isolate; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.1); transition: transform 3.5s var(--ease); }
.loaded .hero-img { transform: scale(1); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,18,16,.92) 0%, rgba(14,18,16,.7) 45%, rgba(14,18,16,.25) 100%), linear-gradient(0deg, rgba(14,18,16,.95) 0%, transparent 40%); }
.hero-inner { align-self: center; padding-top: calc(var(--header-h) + 48px); }
.hero h1 { font-size: var(--step-4); max-width: 12ch; }
.hero-lead { margin-top: 28px; max-width: 48ch; font-size: var(--step-1); color: rgba(236,230,218,.85); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero-inner > * { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.loaded .hero-inner > * { opacity: 1; transform: none; }
.loaded .hero-inner > :nth-child(2) { transition-delay: .15s; }
.loaded .hero-inner > :nth-child(3) { transition-delay: .3s; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-block: 28px 40px; border-top: 1px solid rgba(236,230,218,.18); margin-top: 56px; }
.hero-facts p { display: flex; align-items: baseline; gap: 14px; }
.hero-facts strong { font-family: var(--serif); font-weight: 400; font-size: var(--step-2); color: var(--wood-2); white-space: nowrap; }
.hero-facts span { color: var(--muted); font-size: var(--step--1); max-width: 22ch; }

/* hero podstránok */
.page-hero { position: relative; min-height: min(78vh, 720px); display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bg) 0%, rgba(17,22,19,.78) 45%, rgba(17,22,19,.45) 100%); }
.page-hero-inner { padding-top: calc(var(--header-h) + 64px); padding-bottom: clamp(40px, 6vw, 72px); }
.crumbs { display: flex; gap: 10px; font-size: var(--step--1); color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.page-hero h1 { font-size: var(--step-4); margin-top: 18px; }
.page-lead { margin-top: 22px; max-width: 58ch; font-size: var(--step-1); line-height: 1.55; color: rgba(236,230,218,.86); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.jump a { text-decoration: none; font-size: .93rem; padding: 9px 16px; border: 1px solid rgba(236,230,218,.25); border-radius: 999px; background: rgba(17,22,19,.4); transition: border-color .2s, color .2s; }
.jump a:hover { border-color: var(--wood); color: var(--wood-2); }

/* produkt */
.product { padding-block: var(--section) 0; scroll-margin-top: var(--header-h); }
.product + .product > .wrap { border-top: 1px solid var(--line); padding-top: var(--section); }
.product + .product { padding-top: 0; margin-top: var(--section); }
.product-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 64px; align-items: end; }
.product-head h2 { font-size: var(--step-3); grid-row: span 2; align-self: start; }
.product-text { color: var(--muted); font-size: var(--step-1); line-height: 1.5; max-width: 52ch; }
.product-from { font-family: var(--serif); font-size: var(--step-2); color: var(--wood-2); }

.prierez { margin: clamp(32px, 5vw, 64px) 0 0; padding: clamp(24px, 4vw, 56px) clamp(8px, 3vw, 40px); background: radial-gradient(120% 140% at 50% 120%, #222c26 0%, var(--bg-2) 60%); border: 1px solid var(--line); border-radius: 4px; display: grid; gap: 24px; }
.prierez img { width: 100%; max-height: 180px; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0,0,0,.45)); }
.prierez figcaption { font-size: var(--step--1); color: var(--muted); }
/* jediný výrazný pohyb: prierez sa „vyhobľuje“ zľava doprava */
.js .prierez.reveal img { clip-path: inset(0 100% 0 0); transition: clip-path 1.6s var(--ease); }
.js .prierez.reveal.in img { clip-path: inset(0 0 0 0); }
.js .prierez.reveal.in img + img { transition-delay: .35s; }
.termo img { filter: brightness(.55) sepia(.35) saturate(1.35) hue-rotate(-8deg) drop-shadow(0 18px 24px rgba(0,0,0,.45)); }

.product-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); margin-top: clamp(32px, 5vw, 56px); align-items: start; }
.product-visual { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 24px); }
.cut { margin: 0; padding: 24px; background: var(--surface); border-radius: 4px; display: grid; place-items: center; aspect-ratio: 3 / 2; }
.cut img { max-height: 100%; width: auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,.5)); }
.cut.termo img { filter: brightness(.55) sepia(.35) saturate(1.35) hue-rotate(-8deg) drop-shadow(0 20px 30px rgba(0,0,0,.5)); }
.product-photo { margin: 0; border-radius: 4px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--surface); }
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-table { display: grid; gap: 20px; justify-items: start; }

.table-wrap { width: 100%; }
.price-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.price-table caption { text-align: left; font-size: var(--step--1); color: var(--muted); padding-bottom: 12px; }
.price-table th { text-align: left; font-weight: 500; font-size: var(--step--1); color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--wood); }
.price-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table .num { text-align: right; white-space: nowrap; }
.price-table td.num { color: var(--wood-2); }
.price-table .size { font-weight: 500; white-space: nowrap; }
.price-table .size a { text-decoration: none; display: block; margin: -13px -12px; padding: 13px 12px; }
.price-table .size a:hover { color: var(--wood-2); }
.price-table tbody tr { transition: background-color .2s var(--ease); }
.price-table tbody tr:hover { background: var(--surface); }
.price-table .mat small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.3; margin-top: 2px; }
.price-table tr.na td { color: var(--muted); }
.product-note { font-size: var(--step--1); color: var(--muted); max-width: 64ch; }

/* plotové laty – vertikálne */
.lata-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); grid-template-areas: "vis body" "vis photo"; gap: 32px clamp(28px, 6vw, 96px); align-items: start; }
.product-lata + .product-lata .lata-grid { border-top: 1px solid var(--line); padding-top: var(--section); }
.lata-visual { grid-area: vis; margin: 0; padding: clamp(28px, 4vw, 48px) 24px 20px; background: radial-gradient(100% 80% at 50% 100%, #242f29 0%, var(--bg-2) 70%); border: 1px solid var(--line); border-radius: 4px; display: grid; justify-items: center; gap: 16px; position: sticky; top: calc(var(--header-h) + 24px); }
.lata-img, .lata-svg { height: min(62vh, 520px); width: auto; filter: drop-shadow(0 24px 30px rgba(0,0,0,.55)); }
.js .lata-visual.reveal .lata-img, .js .lata-visual.reveal .lata-svg { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease); }
.js .lata-visual.reveal.in .lata-img, .js .lata-visual.reveal.in .lata-svg { clip-path: inset(0 0 0 0); }
.lata-visual figcaption { font-family: var(--serif); font-size: var(--step-1); color: var(--wood-2); }
.lata-body { grid-area: body; display: grid; gap: 28px; justify-items: start; }
.lata-body .product-head { grid-template-columns: 1fr; gap: 14px; }
.lata-body .product-head h2 { grid-row: auto; }
.lata-photo { grid-area: photo; margin: 0; border-radius: 4px; overflow: hidden; max-width: 520px; }
.lata-photo img { width: 100%; }

/* úvod: kategórie */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-card { position: relative; display: block; aspect-ratio: 3 / 4.2; overflow: hidden; border-radius: 4px; text-decoration: none; isolation: isolate; background: var(--surface); }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.cat-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14,18,16,.95) 0%, rgba(14,18,16,.35) 55%, rgba(14,18,16,.1) 100%); }
.cat-card:hover img { transform: scale(1.05); }
.cat-body { position: absolute; inset: auto 0 0 0; padding: 22px; display: grid; gap: 6px; }
.cat-body strong { font-family: var(--serif); font-weight: 400; font-size: var(--step-2); line-height: 1.1; }
.cat-body em { font-style: normal; color: var(--wood-2); }
.cat-list { font-size: var(--step--1); color: var(--muted); line-height: 1.45; }

/* úvod: vzorkovník */
.rack-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rack-row a { display: grid; grid-template-columns: minmax(180px, 2fr) minmax(0, 6fr) minmax(150px, 2fr); align-items: center; gap: 24px; padding: 22px 8px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color .3s var(--ease); }
.rack-row a:hover { background: var(--bg-2); }
.rack-name { font-family: var(--serif); font-size: var(--step-1); }
.rack-img img { width: 100%; max-height: 64px; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0,0,0,.5)); transition: transform .6s var(--ease); }
.rack-row a:hover .rack-img img { transform: translateX(8px); }
.js .rack-row.reveal .rack-img img { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s var(--ease), transform .6s var(--ease); }
.js .rack-row.reveal.in .rack-img img { clip-path: inset(0 0 0 0); }
.rack-price { text-align: right; color: var(--wood-2); white-space: nowrap; }

/* úvod: prečo */
.why { position: relative; margin-top: var(--section); padding-block: clamp(96px, 14vw, 200px); overflow: hidden; isolation: isolate; }
.why-img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; z-index: -2; }
.why::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(17,22,19,.72) 30%, rgba(17,22,19,.72) 70%, var(--bg) 100%); }
.why h2 { font-size: var(--step-3); max-width: 16ch; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.why-grid > div { border-top: 1px solid rgba(217,168,108,.6); padding-top: 20px; }
.why-grid h3 { font-size: var(--step-1); }
.why-grid p { margin-top: 10px; color: rgba(236,230,218,.8); }

.teaser-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.teaser-grid li { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--surface); }
.teaser-grid img { width: 100%; height: 100%; object-fit: cover; }

.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-img { margin: 0; border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-body { display: grid; gap: 20px; justify-items: start; }
.split-body h2 { font-size: var(--step-3); }
.split-body p { color: var(--muted); font-size: var(--step-1); line-height: 1.55; max-width: 52ch; }

/* pás s objednávkami */
.order-strip { margin-top: var(--section); background: var(--bg-2); border-block: 1px solid var(--line); }
.order-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 36px; }
.order-grid p { display: grid; gap: 4px; }
.order-grid strong { font-weight: 500; }
.order-grid span { color: var(--muted); font-size: var(--step--1); }

/* ďalšie kategórie */
.cross { padding-block: var(--section) 0; }
.cross h2 { font-size: var(--step-2); margin-bottom: 28px; }
.cross-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cross-card { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; text-decoration: none; isolation: isolate; }
.cross-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.cross-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14,18,16,.9), rgba(14,18,16,.2)); }
.cross-card:hover img { transform: scale(1.05); }
.cross-card span { position: absolute; inset: auto 20px 18px; display: grid; }
.cross-card strong { font-family: var(--serif); font-weight: 400; font-size: var(--step-2); }
.cross-card em { font-style: normal; color: var(--muted); font-size: var(--step--1); }

/* galéria */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { border: 1px solid var(--line-2); background: none; border-radius: 999px; padding: 0 18px; min-height: 44px; cursor: pointer; color: var(--muted); font-size: .94rem; transition: all .2s var(--ease); }
.chip:hover { color: var(--text); border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--wood); border-color: var(--wood); color: var(--on-wood); }
.gallery-grid { list-style: none; padding: 0; margin: 0; columns: 3 280px; column-gap: 14px; }
.gallery-grid li { break-inside: avoid; margin-bottom: 14px; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.gallery-grid li.hide { display: none; }
.gallery-grid li.fade { opacity: 0; transform: scale(.98); }
.gallery-grid button { all: unset; display: block; cursor: zoom-in; overflow: hidden; border-radius: 4px; background: var(--surface); width: 100%; }
.gallery-grid button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.gallery-grid img { width: 100%; transition: transform .8s var(--ease), opacity .3s; }
.gallery-grid button:hover img { transform: scale(1.03); }

.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(8,11,9,.97); color: var(--text); }
.lightbox[open] { display: grid; grid-template-columns: 72px 1fr 72px; grid-template-rows: 1fr auto; align-items: center; animation: fadeIn .3s var(--ease); }
.lightbox::backdrop { background: transparent; }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox img { grid-column: 2; max-width: 100%; max-height: 82vh; margin: auto; object-fit: contain; animation: lbImg .45s var(--ease); }
@keyframes lbImg { from { opacity: 0; transform: scale(.97); } }
.lb-cap { grid-column: 1 / -1; text-align: center; padding: 12px 16px 24px; color: var(--muted); }
.lb-close { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; font-size: 2rem; background: none; border: 0; cursor: pointer; }
.lb-nav { width: 48px; height: 48px; font-size: 2.2rem; line-height: 1; background: none; border: 1px solid var(--line-2); border-radius: 50%; cursor: pointer; justify-self: center; }
.lb-nav:hover, .lb-close:hover { background: var(--surface); }

/* výroba */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid var(--wood); padding-top: 20px; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--serif); font-size: var(--step-2); color: var(--wood-2); margin-bottom: 14px; }
.steps h3 { font-size: var(--step-1); }
.steps p { margin-top: 10px; color: var(--muted); font-size: .95rem; }
.js .steps li.reveal { opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .steps li.reveal.in { opacity: 1; transform: none; }
.js .steps li:nth-child(2) { transition-delay: .1s; } .js .steps li:nth-child(3) { transition-delay: .2s; } .js .steps li:nth-child(4) { transition-delay: .3s; } .js .steps li:nth-child(5) { transition-delay: .4s; }

/* informácie */
.offer-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.offer-list a { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "t i" "d i"; gap: 2px 16px; align-items: center; padding: 20px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.offer-list strong { grid-area: t; font-family: var(--serif); font-weight: 400; font-size: var(--step-1); }
.offer-list span { grid-area: d; color: var(--muted); font-size: .95rem; }
.offer-list svg { grid-area: i; width: 20px; color: var(--wood); transition: transform .25s var(--ease); }
.offer-list a:hover svg { transform: translateX(4px); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); }
.faq-grid h2 { font-size: var(--step-3); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-size: var(--step-1); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 1.5px solid var(--wood); border-bottom: 1.5px solid var(--wood); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list details p { padding-bottom: 22px; color: var(--muted); max-width: 62ch; }
.faq-list details a { color: var(--wood-2); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.duo figure { margin: 0; border-radius: 4px; overflow: hidden; aspect-ratio: 3 / 2; }
.duo img { width: 100%; height: 100%; object-fit: cover; }

/* kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-phone { display: inline-block; font-family: var(--serif); font-size: var(--step-4); text-decoration: none; line-height: 1; color: var(--wood-2); margin-bottom: 14px; }
.contact-phone:hover { color: var(--text); }
.contact-mail { font-size: var(--step-1); color: var(--text); text-underline-offset: 6px; text-decoration-color: var(--wood); }
.contact-dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-dl dt { color: var(--muted); font-size: var(--step--1); margin-bottom: 8px; }
.contact-dl dd { margin: 0; line-height: 1.75; }

.calc-grid, .form-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.calc-intro h2, .form-grid h2 { font-size: var(--step-3); }
.calc-intro > p, .form-grid > div > p { margin-top: 18px; color: var(--muted); font-size: var(--step-1); max-width: 40ch; line-height: 1.5; }
.calc-rules { margin: 32px 0 0; padding: 0; list-style: none; }
.calc-rules li { padding: 14px 0; border-top: 1px solid var(--line); }
.calc-rules li:last-child { border-bottom: 1px solid var(--line); }
.calc-card { background: var(--surface); border: 1px solid var(--line); padding: clamp(22px, 3.5vw, 40px); border-radius: 6px; display: grid; gap: 20px; }
.calc-card.flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(217,168,108,.55); } 100% { box-shadow: 0 0 0 18px rgba(217,168,108,0); } }

.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: .92rem; font-weight: 500; padding: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input, select, textarea { width: 100%; min-height: 48px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 4px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
input::placeholder, textarea::placeholder { color: #7C847D; }
textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23D9A86C' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; }
select option, select optgroup { background: var(--surface); color: var(--text); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--wood); box-shadow: 0 0 0 3px rgba(217,168,108,.22); }
input[aria-invalid="true"] { border-color: var(--error); }
.error { color: var(--error); font-size: .88rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; min-height: 48px; }
.seg label { display: grid; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: grid; place-items: center; background: var(--bg); transition: background-color .2s, color .2s; }
.seg input:checked + span { background: var(--wood); color: var(--on-wood); font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: -3px; }
.seg input:disabled + span { color: #5a625c; cursor: not-allowed; }
.qty { display: grid; grid-template-columns: 48px 1fr 48px; border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; background: var(--bg); }
.qty input { border: 0; border-radius: 0; text-align: center; min-width: 0; -moz-appearance: textfield; }
.qty input:focus { box-shadow: none; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { border: 0; background: none; cursor: pointer; font-size: 1.3rem; color: var(--muted); }
.qty-btn:hover { background: var(--surface); color: var(--wood-2); }
.check { display: flex; align-items: center; gap: 10px; font-size: .95rem; cursor: pointer; min-height: 32px; }
.check input { width: 20px; height: 20px; min-height: 0; accent-color: var(--wood); }
.result { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 6px; }
.result-line { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: .95rem; }
.result-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--wood); }
.result-total output { font-family: var(--serif); font-size: var(--step-3); line-height: 1; color: var(--wood-2); }
.result-note { font-size: .9rem; color: var(--muted); min-height: 1.4em; }
.result-note.warn { color: #F2B872; }
.inquiry { display: grid; gap: 18px; }
.form-hint { font-size: .88rem; color: var(--muted); }
.form-status { padding: 14px 16px; border-radius: 4px; border: 1px solid; font-weight: 500; }
.form-status.ok { color: var(--wood-2); border-color: rgba(217,168,108,.5); background: rgba(217,168,108,.08); }
.form-status.err { color: var(--error); border-color: rgba(240,138,122,.5); background: rgba(240,138,122,.08); }
.inquiry button:disabled { opacity: .7; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* pätička */
.site-footer { margin-top: var(--section); border-top: 1px solid var(--line); background: var(--bg-2); padding-block: clamp(56px, 7vw, 96px) 28px; }
.footer-cta { display: grid; justify-items: start; gap: 6px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer-claim { color: var(--muted); }
.footer-phone { font-family: var(--serif); font-size: var(--step-4); line-height: 1.05; text-decoration: none; color: var(--wood-2); }
.footer-phone:hover { color: var(--text); }
.footer-hours { color: var(--muted); font-size: var(--step--1); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-block: 48px; }
.footer-grid h2 { font-family: var(--sans); font-size: .95rem; font-weight: 600; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-grid a { color: var(--muted); text-decoration: none; display: inline-block; padding-block: 4px; }
.footer-grid a:hover { color: var(--wood-2); }
.footer-grid address { font-style: normal; color: var(--muted); line-height: 1.75; }
.footer-ids { margin-top: 10px; font-size: var(--step--1); color: var(--muted); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; font-size: var(--step--1); color: var(--muted); }
.mobile-bar { display: none; }

/* responzívnosť */
@media (max-width: 1200px) {
  .nav, .header-phone { display: none; }
  .menu-btn { display: grid; place-content: center; gap: 6px; margin-left: auto; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; }
  .menu-btn span { display: block; width: 26px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav.open { display: flex; flex-direction: column; gap: 0; position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); padding: 12px var(--gutter) 120px; overflow-y: auto; animation: navIn .35s var(--ease); }
  .nav.open a { font-family: var(--serif); font-size: 1.85rem; color: var(--text); padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav.open a[aria-current="page"] { box-shadow: none; color: var(--wood-2); }
  .nav.open .nav-phone { display: block; font-family: var(--sans); font-size: 1.15rem; color: var(--wood-2); border-bottom: 0; margin-top: 16px; }
  @keyframes navIn { from { opacity: 0; transform: translateY(-8px); } }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card { aspect-ratio: 4 / 3.4; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
}
@media (max-width: 860px) {
  .hero::before { background: linear-gradient(180deg, rgba(14,18,16,.55) 0%, rgba(14,18,16,.82) 40%, rgba(14,18,16,.95) 100%); }
  .hero-facts { grid-template-columns: 1fr; gap: 12px; }
  .product-head { grid-template-columns: 1fr; }
  .product-head h2 { grid-row: auto; }
  .product-grid, .split-grid, .calc-grid, .form-grid, .contact-grid, .faq-grid { grid-template-columns: 1fr; }
  .product-visual, .lata-visual { position: static; }
  .product-visual { grid-template-columns: 1fr 1fr; }
  .lata-grid { grid-template-columns: 1fr; grid-template-areas: "body" "vis" "photo"; }
  .lata-img, .lata-svg { height: 360px; }
  .rack-row a { grid-template-columns: 1fr auto; grid-template-areas: "n p" "i i"; gap: 10px 16px; }
  .rack-name { grid-area: n; } .rack-price { grid-area: p; } .rack-img { grid-area: i; }
  .why-grid, .order-grid { grid-template-columns: 1fr 1fr; }
  .teaser-grid, .cross-grid { grid-template-columns: 1fr 1fr; }
  .offer-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(17,22,19,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .35s var(--ease); }
  .mobile-bar.show { transform: none; }
  body { padding-bottom: 76px; }
  .lightbox[open] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto auto; }
  .lightbox img { grid-column: 1 / -1; grid-row: 1; }
  .lb-prev, .lb-next { grid-row: 2; }
  .lb-cap { grid-row: 3; }
}
@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .cat-grid, .teaser-grid, .cross-grid, .why-grid, .order-grid, .duo, .contact-dl, .footer-grid, .steps { grid-template-columns: 1fr; }
  .product-visual { grid-template-columns: 1fr; }
  .price-table .len { display: none; }
  .price-table td, .price-table th { padding-inline: 8px; }
  .price-table .size a { margin-inline: -8px; padding-inline: 8px; }
  .field-row { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
  .page-hero { min-height: 64vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
