/* GAPA WELD – smer „Dielňa“ */
:root {
  --bg: #101214;
  --surface: #181B1F;
  --line: #2A2E33;
  --line-strong: #4A5157;
  --text: #F2F0EB;
  --text-2: #C9CDD2;
  --muted: #A8ADB3;
  --accent: #FF7A00;
  --accent-hover: #FF9433;
  --accent-text: #FF8A1F;
  --on-accent: #101214;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1280px;
  --ease: cubic-bezier(.65, 0, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, figure, ol { margin: 0; }
a { color: var(--accent-text); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.display { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: .95; }
h2.display { font-size: clamp(42px, 6vw, 76px); }
.lead { font-size: 19px; color: var(--text-2); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow { display: block; margin-bottom: 14px; color: var(--accent-text); font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.link-strong { font-weight: 600; padding-block: 12px; display: inline-block; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--on-accent); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 0; }

.btn { display: inline-block; background: var(--accent); color: var(--on-accent); font-weight: 600; padding: 17px 26px; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.btn:hover { background: var(--accent-hover); color: var(--on-accent); transform: translateY(-2px); }
.btn--small { padding: 13px 22px; font-size: 15px; }

/* Hlavička */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(16, 18, 20, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 12px; }
.logo img { height: 48px; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--text); text-decoration: none; padding-block: 12px; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--accent-text); }
.nav-toggle { display: none; min-height: 44px; padding: 0 16px; background: none; border: 1px solid var(--line-strong); color: var(--text); font: 500 15px var(--body); cursor: pointer; }
@media (max-width: 960px) {
  .nav-toggle { display: block; margin-left: auto; }
  .site-header__in { flex-wrap: wrap; }
  .site-nav { display: none; order: 3; width: 100%; flex-direction: column; gap: 0; padding-bottom: 12px; }
  .site-nav.is-open { display: flex; }
  html:not(.js) .site-nav { display: flex; }
}
@media (max-width: 520px) { .site-header__cta { display: none; } }

/* Hero */
.hero { padding-top: 72px; display: flex; flex-direction: column; gap: 40px; }
.hero__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.hero__title { flex: 999 1 560px; font-size: clamp(54px, 9vw, 136px); line-height: .92; letter-spacing: -.01em; text-wrap: balance; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__side { flex: 1 1 320px; max-width: 400px; display: flex; flex-direction: column; gap: 24px; padding-bottom: 10px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

.stage { position: relative; height: clamp(260px, 34vw, 440px); overflow: hidden; background: #1B1E22; border: 1px solid var(--line); }
.stage__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage__gate { position: absolute; top: 40px; bottom: 0; left: 5%; width: 90%; border: 10px solid #383E42; background: repeating-linear-gradient(180deg, #383E42 0 26px, #14171A 26px 34px); animation: gate-open 2.4s var(--ease) .7s both; }
.stage__post { position: absolute; top: 16px; bottom: 0; width: 6%; background: #5B6168; }
.stage__post--l { left: 0; } .stage__post--r { right: 0; }
.stage__label { position: absolute; right: 8%; bottom: 16px; background: var(--bg); color: var(--text); font-size: 14px; padding: 6px 12px; }
@keyframes gate-open { from { transform: translateX(0); } to { transform: translateX(-72%); } }

/* Fakty */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); border-bottom: 1px solid var(--line); }
.fact { padding: 28px 24px 28px 0; display: flex; flex-direction: column; gap: 4px; }
.fact strong { font: 700 34px/1.05 var(--display); text-transform: uppercase; }
.fact span { color: var(--muted); font-size: 15px; }

/* Sekcie */
.section { padding-top: 104px; display: flex; flex-direction: column; gap: 44px; }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; }
.section__head p { max-width: 460px; color: var(--text-2); }
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.page-intro { max-width: 820px; padding-bottom: 40px; }
.page-intro h1 { font-size: clamp(48px, 7vw, 96px); }

/* Karty */
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: transform .35s ease, border-color .35s ease; }
.card:hover { transform: translateY(-6px); border-color: var(--accent); color: var(--text); }
.card img { width: 100%; object-fit: cover; }
.card__more { color: var(--accent-text); font-weight: 600; }
.card--product { gap: 16px; padding: 24px; }
.card--product img { height: 260px; }
.card--product h3 { font-size: 40px; font-weight: 700; line-height: 1; }
.card--product p { color: var(--text-2); }
.card--work img { height: 400px; }
.card--work figcaption { display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; }
.card--article { gap: 14px; padding: 24px; background: none; }
.card--article h3 { font-size: 22px; font-weight: 600; line-height: 1.3; }
.socials { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Konfigurátor */
.band { margin-top: 104px; background: var(--surface); border-block: 1px solid var(--line); }
.config { display: flex; flex-wrap: wrap; gap: 48px; padding-block: 88px; }
.config__controls { flex: 1 1 380px; display: flex; flex-direction: column; gap: 28px; }
.config__controls h2 { margin-bottom: 14px; }
.config__controls p { color: var(--text-2); }
.config__preview { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.opts { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.opts legend, .opts label { padding: 0; margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.opts__row { display: flex; flex-wrap: wrap; gap: 8px; }
.opts__row button { min-height: 46px; padding: 0 18px; font: 500 15px var(--body); cursor: pointer; border: 1px solid var(--line-strong); background: transparent; color: var(--text); transition: background .2s ease, border-color .2s ease; }
.opts__row button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.opts__row--swatch { gap: 12px; }
.opts__row--swatch button, .opts__row--swatch button[aria-pressed="true"] { width: 46px; padding: 0; background: var(--sw); border: 2px solid var(--surface); outline: 2px solid var(--line-strong); }
.opts__row--swatch button[aria-pressed="true"] { outline-color: var(--accent); }
.opts input[type="range"] { width: 100%; height: 44px; accent-color: var(--accent); }
.scene { position: relative; height: 420px; background: #B9BEC2; overflow: hidden; }
.scene__ground { position: absolute; inset: auto 0 0 0; height: 56px; background: #7C8288; }
.scene__row { position: absolute; inset: auto 0 56px 0; height: 250px; display: flex; align-items: flex-end; justify-content: center; }
.scene__post { flex: none; width: 34px; height: 250px; background: #5B6168; }
.scene__gate { --c: #383E42; position: relative; width: 53%; height: 220px; border: 7px solid var(--c); transition: width .35s ease, border-color .35s ease; }
[data-fill="plna"] { background: var(--c); }
[data-fill="lamely"] { background: repeating-linear-gradient(180deg, var(--c) 0 16px, transparent 16px 22px); }
[data-fill="laser"] { background: radial-gradient(circle at center, transparent 0 4px, var(--c) 4.5px) 0 0 / 20px 20px; }
[data-fill="tahokov"] { background: repeating-linear-gradient(60deg, var(--c) 0 2px, transparent 2px 12px), repeating-linear-gradient(-60deg, var(--c) 0 2px, transparent 2px 12px); }
[data-fill="kombi"] { background: linear-gradient(var(--c), var(--c)) bottom / 100% 42% no-repeat, repeating-linear-gradient(180deg, var(--c) 0 16px, transparent 16px 22px); }
.scene__split { position: absolute; top: 0; bottom: 0; left: calc(50% - 4px); width: 8px; background: var(--c); }
.scene__summary { position: absolute; top: 18px; left: 20px; right: 20px; width: fit-content; background: var(--bg); font-size: 14px; padding: 6px 12px; }
.config__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.config__foot > div { display: flex; flex-direction: column; gap: 2px; }
.config__price { font-size: 34px; font-weight: 700; }

/* Proces */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.step { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 3px solid #3A3F45; }
.step:first-child { border-top-color: var(--accent); }
.step__no { font-size: 64px; line-height: 1; }
.step:first-child .step__no { color: var(--accent); }
.step h3 { font-size: 21px; font-weight: 600; }
.step p { color: var(--text-2); }
.workshop { gap: 16px; }
.workshop img { width: 100%; height: 360px; object-fit: cover; }
.magnet { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: 32px; border: 1px solid var(--accent); }
.magnet > div { flex: 1 1 420px; display: flex; flex-direction: column; gap: 6px; }
.magnet h3 { font-size: 34px; font-weight: 700; line-height: 1.05; }
.magnet p { color: var(--text-2); }

/* Pätička */
.site-footer { margin-top: 104px; background: var(--accent); color: var(--on-accent); }
.site-footer a { color: var(--on-accent); font-weight: 600; }
.site-footer .wrap { padding-block: 88px 40px; display: flex; flex-direction: column; gap: 56px; }
.site-footer__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.site-footer__title { flex: 999 1 520px; font-size: clamp(48px, 8vw, 112px); line-height: .92; }
.site-footer__contact { flex: 1 1 300px; display: flex; flex-direction: column; gap: 6px; font-size: 19px; }
.site-footer__phone { font: 800 52px/1.1 var(--display); text-decoration: none; white-space: nowrap; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; padding-top: 24px; border-top: 1px solid var(--on-accent); font-size: 14px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Animácie pri scrollovaní (len so zapnutým JS) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage__gate { animation: none; transform: translateX(-72%); }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .scene__gate { transition: none; }
}

/* ---------- Podstránky ---------- */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-text); }
.page-hero { padding-top: 56px; max-width: var(--wrap); }
.page-hero h1 { overflow-wrap: break-word; font-size: clamp(40px, 7vw, 104px); max-width: 16ch; text-wrap: balance; }
.page-hero .lead { max-width: 62ch; margin-top: 24px; }
.split { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 40px 64px; }
.split--flip { flex-direction: row-reverse; }
.split__text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 18px; }
.split__text h2.display { font-size: clamp(36px, 4.5vw, 60px); }
.split__text p { color: var(--text-2); max-width: 58ch; }
.split__media { flex: 1 1 380px; min-width: 0; }
.split__media img { width: 100%; height: clamp(320px, 38vw, 520px); object-fit: cover; }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .62em; width: 16px; height: 3px; background: var(--accent); }
.clip { width: 100%; max-width: 520px; border: 1px solid var(--line); }
.card--fill { gap: 14px; padding: 24px; }
.card--fill h3 { font-size: 21px; font-weight: 600; }
.card--fill p { color: var(--text-2); }
.swatch { --c: #5B6168; height: 130px; border: 6px solid var(--c); }
.card--info { gap: 8px; padding: 28px; }
.card--info:hover { transform: none; border-color: var(--line); }
.card__big { font-size: 46px; text-decoration: none; }
.card__mail { font-size: 20px; font-weight: 600; overflow-wrap: anywhere; }
.card--work .card__cap { display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; }
.card[hidden] { display: none; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 16px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.table thead th { font-size: 14px; font-weight: 500; color: var(--muted); }
.table tbody th { font: 700 26px/1.1 var(--display); text-transform: uppercase; }
.table td { color: var(--text-2); }
.table tbody tr:last-child > * { border-bottom: 0; }
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { cursor: pointer; padding: 22px 40px 22px 0; font-size: 20px; font-weight: 600; list-style: none; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font: 600 30px/1 var(--display); color: var(--accent); }
.faq__item[open] summary::after { content: '–'; }
.faq__item p { padding: 0 0 24px; max-width: 72ch; color: var(--text-2); }
.magnet__title { font-size: clamp(28px, 3.4vw, 40px) !important; line-height: 1.05; }
.magnet__actions { flex: 0 1 auto !important; flex-direction: row !important; flex-wrap: wrap; align-items: center; gap: 12px 24px !important; }
.specs { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); border-top: 1px solid var(--line); }
.specs div { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-size: 14px; color: var(--muted); }
.specs dd { margin: 4px 0 0; font-weight: 600; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.gallery__item { display: block; overflow: hidden; border: 1px solid var(--line); }
.gallery__item img { width: 100%; height: 420px; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(8, 9, 10, .92); }
.lightbox img { max-width: 96vw; max-height: 88vh; width: auto; height: auto; }
.lightbox form { display: flex; justify-content: flex-end; }
.lightbox button { min-height: 44px; padding: 0 18px; margin-bottom: 8px; background: var(--accent); color: var(--on-accent); border: 0; font: 600 15px var(--body); cursor: pointer; }
.checklist { padding-block: 88px; display: flex; flex-direction: column; gap: 40px; }
.checklist__groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 24px; }
.checklist__group { margin: 0; padding: 24px; border: 1px solid var(--line-strong); display: flex; flex-direction: column; gap: 4px; }
.checklist__group legend { padding: 0 10px; font: 700 26px/1 var(--display); text-transform: uppercase; }
.checklist__group label { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; cursor: pointer; color: var(--text-2); }
.checklist__group input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); }
.checklist__group input:checked + span { color: var(--muted); text-decoration: line-through; }
.checklist__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
button.btn { border: 0; font: 600 17px var(--body); cursor: pointer; }
.article { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 40px 64px; padding-top: 56px; }
.article__media { flex: 1 1 320px; max-width: 460px; }
.article__media img { width: 100%; height: clamp(300px, 36vw, 520px); object-fit: cover; }
.prose { flex: 999 1 480px; max-width: 68ch; display: flex; flex-direction: column; gap: 18px; color: var(--text-2); font-size: 18px; }
.prose h2 { margin-top: 18px; color: var(--text); font: 700 32px/1.1 var(--display); text-transform: uppercase; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.prose strong { color: var(--text); }
.share { margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 16px; }

@media (prefers-reduced-motion: reduce) { .gallery__item img { transition: none; } }
@media print {
  .site-header, .site-footer, .page-hero, .split, .workshop, .magnet, .checklist__foot, .skip, main > .section { display: none !important; }
  body, .band { background: #fff; color: #000; }
  .band { border: 0; margin: 0; }
  .checklist { padding: 0; }
  .checklist * { color: #000 !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Konfigurátor ---------- */
.kfg { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 56px; padding-top: 56px; }
.kfg__form { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.kfg__side { flex: 1 1 420px; min-width: 0; position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 960px) { .kfg__side { position: static; order: -1; } }
.kfg__step { margin: 0; padding: 28px 24px 24px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.kfg__step legend { display: flex; align-items: center; gap: 12px; padding: 0 10px; font: 700 28px/1 var(--display); text-transform: uppercase; }
.kfg__no { color: var(--accent); }
.kfg__label { font-size: 14px; color: var(--muted); margin-top: 6px; }
.kfg__block { display: flex; flex-direction: column; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.kfg [hidden] { display: none !important; }
.kfg .opts input[type="text"], .field input, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; background: var(--bg); border: 1px solid var(--line-strong); color: var(--text); font: 400 17px var(--body); }
.field textarea { resize: vertical; }
.kfg__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; color: var(--muted); }
.field--wide { grid-column: 1 / -1; }
.field--hp { position: absolute; left: -9999px; }
.check { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: 15px; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--accent); }
.kfg__error { color: #FFB3A1; font-weight: 600; }
.kfg__step .btn { align-self: flex-start; }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.scene--kfg { height: 360px; }
.scene--kfg .scene__row { height: 240px; gap: 0; padding-inline: 4%; }
.scene--kfg .scene__post { width: auto; height: 100%; }
.scene--kfg .scene__gate { transition: none; }
.kfg__summary { margin: 0; border-top: 1px solid var(--line); }
.kfg__summary div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.kfg__summary dt { color: var(--muted); font-size: 15px; }
.kfg__summary dd { margin: 0; font-weight: 600; text-align: right; }
.kfg__price { display: flex; flex-direction: column; gap: 4px; }
.kfg__price strong { font-size: clamp(44px, 5vw, 64px); color: var(--accent); }
.kfg__done { padding-block: 72px 24px; max-width: var(--wrap); display: flex; flex-direction: column; gap: 20px; }
.kfg__done[hidden] { display: none; }
.kfg__done h2 { font-size: clamp(40px, 6vw, 76px); }
.kfg__done-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

/* ---------- Sociálne siete, texty ---------- */
.social-band { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; padding: 40px; background: var(--surface); border: 1px solid var(--line); }
.social-band > div:first-child { flex: 1 1 440px; display: flex; flex-direction: column; gap: 10px; }
.social-band h2.display { font-size: clamp(34px, 4.4vw, 56px); }
.social-band p { color: var(--text-2); max-width: 56ch; }
.social-band__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.prose--page { max-width: 72ch; flex: none; }
