/* stolarstvopezinok.sk */
:root {
  --steel-900: #1f2b1e;     /* tmavá lesná zelená */
  --steel-800: #2a3828;
  --steel-700: #3c4b38;
  --steel-500: #6f7867;
  --steel-200: #ddd5c6;
  --steel-100: #efe8dc;
  --steel-50: #f8f4ec;
  --ink: #1e1f1a;
  --muted: #5d584e;
  --accent: #8f4f17;        /* dub (text/tlačidlá na svetlom, kontrast 6.4:1) */
  --accent-2: #d9964a;      /* svetlé drevo na tmavom */
  --line: #ddd5c6;
  --focus: #ffb000;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(40,30,15,.09);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: #fff; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: #6b3a10; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.2rem); font-weight: 760; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.eyebrow { font: 600 .78rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: .7em; }

/* tlačidlá */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 46px; padding: 0 20px; border: 2px solid var(--accent); border-radius: 6px; background: var(--accent); color: #fff; font: 650 1rem/1 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: #6b3a10; border-color: #6b3a10; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--steel-500); }
.btn-ghost:hover { background: var(--steel-100); color: var(--ink); border-color: var(--steel-700); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .92rem; }
.btn:disabled { opacity: .6; cursor: wait; }

/* hlavička */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(31,43,30,.97); backdrop-filter: saturate(1.3) blur(8px); color: #fff; border-bottom: 1px solid #000; }
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-logo { display: block; height: 48px; width: auto; background: #fff; border-radius: 6px; padding: 3px 6px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 6px; font: 800 1rem/1 var(--font); letter-spacing: .02em; color: var(--steel-900);
  background: linear-gradient(135deg, #f4f6f8 0%, #b9c2ca 45%, #eef1f3 55%, #9aa5ae 100%); box-shadow: inset 0 -4px 0 var(--accent-2); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.12rem; letter-spacing: .02em; }
.brand-text small { color: #b9bfae; font-size: .78rem; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { color: #e9edf0; text-decoration: none; font-weight: 550; }
.nav a:not(.btn):hover { color: #fff; text-decoration: underline; text-decoration-color: var(--accent-2); text-underline-offset: 6px; }
.nav-call { background: var(--accent); border-color: var(--accent); }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid #56654f; border-radius: 6px; background: transparent; cursor: pointer; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 20px; height: 2px; background: #fff; position: relative; transition: transform .2s; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -6px; } .nav-toggle-bar::after { top: 6px; }
.nav-open .nav-toggle-bar { background: transparent; }
.nav-open .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 859px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--steel-900); border-bottom: 1px solid #000; padding: 6px 16px 18px; }
  .nav-open .nav { display: block; }
  .nav li a { display: block; padding: 13px 4px; border-bottom: 1px solid #3c4b38; }
  .nav-call { margin-top: 14px; width: 100%; }
}
@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .nav { display: flex; align-items: center; gap: 28px; }
  .nav ul { display: flex; gap: 26px; }
}

.notice { background: #fff4e0; border-bottom: 1px solid #f1cf8f; }
.notice .wrap { padding-top: 12px; padding-bottom: 12px; font-weight: 600; }

/* hero */
.hero { position: relative; color: #e9edf0; padding: 48px 0 28px; overflow: hidden;
  background:
    repeating-linear-gradient(176deg, rgba(255,255,255,.02) 0 2px, transparent 2px 9px),
    radial-gradient(120% 90% at 85% 10%, #3f4f35 0%, var(--steel-900) 62%); }
.hero .eyebrow { color: var(--accent-2); }
.hero h1 { color: #fff; }
.lead { font-size: 1.14rem; color: #d3d6c8; max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero .btn-ghost { color: #fff; border-color: #7b8791; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; border-color: #fff; }
.hero-in { display: grid; gap: 36px; align-items: center; }
.hero-photos { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; }
.hero-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.hp-1 { grid-row: 1 / 3; aspect-ratio: 3 / 4; }
.hp-2, .hp-3 { aspect-ratio: 4 / 3; }
.facts { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid #3c4b38; }
.facts li { padding: 18px 12px 6px 0; }
.facts b { display: block; font: 750 1.3rem/1.15 var(--font); color: #fff; }
.facts b::before { content: ""; display: block; width: 26px; height: 3px; background: var(--accent-2); margin-bottom: 10px; }
.facts span { font-size: .88rem; color: #b9bfae; }
@media (min-width: 900px) {
  .hero { padding: 76px 0 36px; }
  .hero-in { grid-template-columns: 1fr 1fr; gap: 56px; }
  .facts { grid-template-columns: repeat(4, 1fr); }
}

/* sekcie */
.section { padding: 64px 0; }
.section-alt { background: var(--steel-50); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { margin-bottom: 28px; max-width: 48em; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.prose p { max-width: 66ch; }

/* o nás */
.about-grid { display: grid; gap: 28px; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: start; }
.pillars li { position: relative; padding: 16px 18px 16px 22px; background: var(--steel-50); border: 1px solid var(--line); border-radius: var(--radius); }
.pillars li::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; background: var(--accent); border-radius: 0 3px 3px 0; }
.pillars b { display: block; font-size: 1.05rem; }
.pillars span { color: var(--muted); font-size: .95rem; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.5fr 1fr; gap: 56px; } }

/* výroba */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chips a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }
.chips span { font: 600 .75rem/1 var(--mono); color: var(--muted); background: var(--steel-100); padding: 4px 6px; border-radius: 999px; }
.cats { display: grid; gap: 48px; }
.cat { scroll-margin-top: 84px; }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--steel-900); padding-bottom: 8px; margin-bottom: 12px; }
.cat-head h3 { margin: 0; font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
.cat-n { font: 600 .78rem/1 var(--mono); color: var(--muted); white-space: nowrap; }
.cat-text { color: #39434c; max-width: 72ch; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.gallery.collapsed li:nth-child(n+9) { display: none; }
.gallery a { display: block; overflow: hidden; border-radius: 6px; background: var(--steel-200); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }
.more { margin-top: 14px; }

/* kontakt */
.kontakt-grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .kontakt-grid { grid-template-columns: 1fr 1.1fr; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 16px 0 18px; }
.kv dt { font: 600 .74rem/2 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.kv dd { margin: 0; font-weight: 550; }
.kv a { font-weight: 650; }
.map iframe { display: block; width: 100%; height: 280px; border: 0; border-radius: 6px; }
.form { display: grid; gap: 16px; align-content: start; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font: inherit; color: inherit; padding: 11px 12px; border: 1px solid #aab4bd; border-radius: 6px; background: #fff; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: 3px solid rgba(143,79,23,.22); outline-offset: 0; }
.field textarea { resize: vertical; min-height: 140px; }
.invalid input, .invalid textarea { border-color: #b3261e; }
.check.invalid { color: #b3261e; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.form-msg { margin: 0; padding: 12px 14px; border-radius: 6px; font-weight: 600; }
.form-msg.ok { background: #e6f2ea; color: #1d5b33; }
.form-msg.err { background: #fbe9e4; color: #8a2a12; }

/* päta */
.site-footer { background: var(--steel-900); color: #c3ccd3; padding: 30px 0; font-size: .92rem; }
.site-footer a { color: #fff; }
.footer-in p { margin: .3em 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer .muted { color: #8d98a2; }

/* lightbox */
.lb { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lb::backdrop { background: rgba(12,16,11,.92); }
.lb[open] { display: grid; place-items: center; }
.lb figure { margin: 0; padding: 56px 16px 16px; display: grid; justify-items: center; gap: 10px; }
.lb img { max-width: min(1400px, 94vw); max-height: 80vh; width: auto; border-radius: 4px; }
.lb figcaption { color: #fff; text-align: center; font-size: .95rem; }
.lb-btn { position: fixed; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* podstránky */
.page { padding: 48px 0 64px; }
.page .prose { max-width: 78ch; }
.page h2 { font-size: 1.35rem; margin-top: 1.8em; }
.page table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .93rem; }
.page th, .page td { text-align: left; vertical-align: top; padding: 8px 10px; border: 1px solid var(--line); }
.page th { background: var(--steel-50); }
.table-scroll { overflow-x: auto; }

/* ===== cookies (cookies.css) ===== */
.cc-bar { position: fixed; z-index: 1000; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-left: auto; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.25); padding: 20px 20px 18px; font-size: .94rem; max-height: calc(100vh - 32px); overflow: auto; }
.cc-bar h2 { font-size: 1.1rem; margin: 0 0 .4em; padding-right: 32px; }
.cc-bar p { margin: 0 0 12px; }
.cc-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); border-radius: 6px; }
.cc-x:hover { background: var(--steel-100); color: var(--ink); }
.cc-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-btn { flex: 1 1 140px; min-height: 42px; padding: 0 14px; border: 2px solid var(--steel-900); border-radius: 6px; background: #fff; color: var(--steel-900); font: 600 .95rem/1 var(--font); cursor: pointer; }
.cc-btn:hover { background: var(--steel-900); color: #fff; }
.cc-set { display: grid; gap: 8px; margin: 0 0 14px; }
.cc-cat { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.cc-cat input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.cc-cat span { display: flex; flex-direction: column; }
.cc-cat small { color: var(--muted); font-size: .85rem; }
.cc-ph { display: grid; place-items: center; align-content: center; gap: 10px; min-height: 220px; padding: 20px; text-align: center; border: 1px dashed #aab4bd; border-radius: 6px; background: var(--steel-50); }
.cc-ph p { margin: 0; max-width: 34em; color: var(--muted); font-size: .92rem; }
.cc-ph .cc-btn { flex: none; }

@media print {
  .site-header, .cc-bar, .form, .map, .lb, .hero-cta, .more { display: none !important; }
  .gallery.collapsed li { display: block !important; }
}

/* prepínač jazyka (vlajka) */
.nav a.lang { display: inline-flex; align-items: center; padding: 4px; border-radius: 4px; line-height: 0; }
.nav a.lang img { width: 30px; height: 20px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.35); transition: transform .15s; }
.nav a.lang:hover img, .nav a.lang:focus-visible img { transform: scale(1.12); }
@media (max-width: 859px) { .nav li a.lang { display: inline-flex; margin-top: 12px; padding: 4px; border-bottom: 0; } }
