/* Laminam kalkulácia – vizuálny štýl podľa cenníka Laminam N13:
   podľa laminam.it: Work Sans + serifové nadpisy (SangBleu Empire -> náhrada Noto Serif Display ako na laminam.sk),
   tmavomodrá #003B5C, zaoblené tlačidlá; krémová #F7F5F1 z laminam.sk. */
:root {
  --navy: #003b5c; --navy-d: #002a42; --mist: #d4d9df; --paper: #f7f5f1; --line: #e3e6ea;
  --ink: #16191d; --muted: #5e6873; --white: #fff;
  --afr: #b4dcde; --po: #c3a57d; --new: #e8665a; --newafr: #05486f; --out: #c0c0c0;
  --serif: "Noto Serif Display", "Times New Roman", serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --r: 2px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-weight: 400; color: var(--ink); background: var(--white); line-height: 1.5; }
a { color: var(--navy); }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* hlavička */
.top { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; gap: 16px; height: 60px; }
.logo { display: block; line-height: 0; flex-shrink: 0; } .logo img { height: 26px; width: auto; }
.top-sub { color: var(--muted); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; border-left: 1px solid var(--line); padding-left: 16px; }
.badge-test { margin-left: auto; font-size: 11px; letter-spacing: .1em; background: #fff3cd; color: #7a5a00; padding: 2px 8px; border-radius: var(--r); }

.hero { background: var(--navy); color: var(--white); padding: 48px 0 40px; }
.eyebrow { margin: 0 0 8px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; opacity: .75; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 0 0 12px; }
.lead { max-width: 640px; margin: 0; font-weight: 300; font-size: 17px; opacity: .92; }

/* rozloženie */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; padding-top: 32px; padding-bottom: 64px; align-items: start; }
@media (max-width: 980px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* kroky */
.steps { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 24px; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: flex; align-items: center; font-size: 13px; color: var(--muted); }
.steps li + li::before { content: ""; width: 24px; height: 1px; background: var(--mist); margin: 0 8px; }
.steps button { background: none; border: 0; padding: 4px 0; cursor: pointer; color: inherit; display: flex; align-items: center; gap: 8px; }
.steps button:disabled { cursor: default; }
.steps .n { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--mist); display: inline-grid; place-items: center; font-size: 12px; }
.steps .n::before { content: counter(s); }
.steps li.done { color: var(--navy); }
.steps li.done .n { background: var(--navy); border-color: var(--navy); color: var(--white); }
.steps li.cur { color: var(--ink); font-weight: 500; }
.steps li.cur .n { border-color: var(--navy); color: var(--navy); }
@media (max-width: 560px) { .steps .t { display: none; } .steps li.cur .t { display: inline; } .top-sub { display: none; } }

.step-h { font-family: var(--serif); font-weight: 500; font-size: 30px; margin: 0 0 6px; line-height: 1.2; }
.step-p { color: var(--muted); margin: 0 0 24px; }
.back { background: none; border: 0; color: var(--navy); cursor: pointer; padding: 0; margin: 0 0 16px; font-size: 14px; }
.back::before { content: "← "; }

/* voľba (použitie, hrúbka) */
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.choice { text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 0; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; display: flex; flex-direction: column; overflow: hidden; }
.choice:hover, .choice:focus-visible { border-color: var(--navy); box-shadow: 0 10px 30px rgba(0, 48, 79, .12); transform: translateY(-2px); outline: none; }
.choice .img { aspect-ratio: 16 / 9; background: var(--paper) center / cover no-repeat; }
.choice .b { display: block; padding: 16px 18px 18px; }
.choice .b > span, .choice .img { display: block; }
.choice .k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.choice .t { font-family: var(--serif); font-size: 24px; font-weight: 500; margin: 2px 0 6px; }
.choice .d { color: var(--muted); font-size: 14px; margin: 0; }
.choice .od { margin-top: 10px; font-size: 14px; color: var(--navy); font-weight: 500; }

/* kolekcie */
.kolekcie { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.kol .img { aspect-ratio: 4 / 3; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; background: var(--white); }
.kol .img span { background: var(--paper) center / cover no-repeat; }
.kol .img.one { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.kol .t { font-size: 20px; }

/* dekory – mriežka s efektom zväčšenia */
.dekory { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px 16px; }
.dek { position: relative; background: none; border: 0; padding: 0; text-align: left; cursor: zoom-in; }
.dek .ph { display: block; position: relative; aspect-ratio: 3 / 2; overflow: visible; }
.dek .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border-radius: var(--r);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; transform-origin: center; background: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .dek:hover { z-index: 5; }
  .dek:hover .ph img { transform: scale(1.55); box-shadow: 0 18px 50px rgba(0, 0, 0, .28); }
  .dekory .dek:nth-child(4n+1):hover .ph img { transform-origin: left center; }
}
.dek .k { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.dek .n { display: block; font-weight: 600; font-size: 14px; }
.dek .f { display: block; font-size: 13px; color: var(--muted); }
.dek .od { display: block; font-size: 13px; color: var(--navy); margin-top: 2px; }
.dek.sel .ph img { outline: 3px solid var(--navy); outline-offset: 2px; }

.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tag { display: inline-block; font-size: 10px; letter-spacing: .05em; padding: 2px 6px; border-radius: var(--r); background: var(--paper); color: var(--ink); white-space: nowrap; }
.t-AfR { background: var(--afr); } .t-PHASE_OUT { background: var(--po); } .t-NEW { background: var(--new); color: #fff; }
.t-NEW_AfR { background: var(--newafr); color: #fff; } .t-OUT { background: var(--out); color: #444; }
.t-bm { background: var(--white); border: 1px solid var(--mist); }

.filter { display: flex; gap: 8px; margin: -8px 0 20px; flex-wrap: wrap; }
.filter input { flex: 1 1 220px; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--mist); border-radius: var(--r); }

/* lightbox */
dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(0, 25, 42, .7); backdrop-filter: blur(2px); }
.lightbox { width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border-radius: var(--r); overflow: auto; }
.lb { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.lb .big { background: var(--paper) center / cover no-repeat; min-height: 440px; position: relative; }
.lb .big img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb .info { padding: 28px; }
.lb .k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lb h2 { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.15; margin: 4px 0 4px; }
.lb .sub { color: var(--muted); margin: 0 0 16px; }
.lb .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); cursor: pointer; font-size: 20px; }
.lb .prev { left: 12px; } .lb .next { right: 12px; }
.x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; background: rgba(255, 255, 255, .92); border-radius: 50%; font-size: 22px; cursor: pointer; z-index: 2; }
@media (max-width: 760px) { .lb { grid-template-columns: 1fr; } .lb .big { min-height: 260px; } .lb .info { padding: 20px; } }

table.ceny { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 20px; }
table.ceny th, table.ceny td { padding: 8px 4px; border-bottom: 1px solid var(--line); text-align: left; }
table.ceny th { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
table.ceny .r { text-align: right; white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--navy); color: var(--white); border: 1px solid var(--navy);
  padding: 13px 26px; border-radius: 60px; cursor: pointer; font-weight: 500; letter-spacing: .04em; text-decoration: none; font-size: 15px; transition: background .2s; }
.btn:hover { background: var(--navy-d); }
.btn.ghost { background: var(--white); color: var(--navy); }
.btn.ghost:hover { background: var(--paper); }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* krok 5 – formát a množstvo */
.picked { display: flex; gap: 16px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 24px; }
.picked img { width: 96px; height: 64px; object-fit: cover; border-radius: var(--r); }
.picked .n { font-weight: 600; } .picked .f { color: var(--muted); font-size: 14px; }
.picked button { margin-left: auto; }
.lbl { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.formaty { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 24px; }
.fmt { text-align: left; border: 1px solid var(--line); background: var(--white); border-radius: var(--r); padding: 12px 14px; cursor: pointer; }
.fmt:hover { border-color: var(--navy); }
.fmt[aria-pressed="true"] { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: #f2f6f9; }
.fmt .t { font-weight: 600; } .fmt .s { font-size: 13px; color: var(--muted); } .fmt .p { color: var(--navy); font-weight: 500; margin-top: 4px; }
.qty { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 20px; }
@media (max-width: 520px) { .qty { grid-template-columns: 1fr; } }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; border: 1px solid var(--mist); border-radius: var(--r); background: var(--white); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: -1px; }
.unit { position: relative; } .unit input { padding-right: 44px; } .unit::after { content: "m²"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.calc { background: var(--paper); border-radius: var(--r); padding: 18px 20px; margin-bottom: 20px; }
.calc dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 0; font-size: 15px; }
.calc dt { color: var(--muted); } .calc dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.calc .sep { grid-column: 1 / -1; border-top: 1px solid var(--mist); margin: 6px 0 2px; }
.calc .tot { font-size: 20px; color: var(--ink); font-weight: 600; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* súhrn */
.summary { position: sticky; top: 84px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
@media (max-width: 980px) { .summary { position: static; } }
.sum-h { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; }
.sum-h h2 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 0; }
.sum-h span { color: var(--muted); font-size: 13px; }
.empty { padding: 24px 20px; color: var(--muted); font-size: 14px; }
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.line img { width: 64px; height: 44px; object-fit: cover; border-radius: var(--r); }
.line .k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.line .n { font-weight: 600; font-size: 14px; }
.line .f { font-size: 13px; color: var(--muted); }
.line .row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; gap: 8px; }
.line .p { font-weight: 600; font-variant-numeric: tabular-nums; }
.line .ed { display: flex; gap: 12px; margin-top: 4px; }
.line .ed button { background: none; border: 0; padding: 0; color: var(--navy); font-size: 13px; cursor: pointer; text-decoration: underline; }
.totals { padding: 16px 20px; }
.totals dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; font-size: 14px; }
.totals dt { color: var(--muted); } .totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.totals .big { font-size: 22px; font-weight: 600; color: var(--ink); }
.totals .sep { grid-column: 1 / -1; border-top: 1px solid var(--line); margin: 6px 0; }
.sum-a { padding: 0 20px 20px; display: grid; gap: 8px; }
.note { font-size: 12px; color: var(--muted); margin: 0; }

/* mobilná lišta so súčtom */
.mbar { display: none; }
@media (max-width: 980px) {
  .mbar.on { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--navy); color: var(--white); padding: 12px 16px;
    align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 -6px 20px rgba(0, 0, 0, .15); }
  .mbar .s { font-size: 13px; opacity: .85; } .mbar .p { font-size: 18px; font-weight: 600; }
  .mbar a { color: var(--white); font-size: 14px; }
  body.has-mbar { padding-bottom: 72px; }
}

/* formulár */
.modal { width: min(520px, calc(100vw - 32px)); border-radius: var(--r); }
.modal form { padding: 28px; display: grid; gap: 14px; }
.modal h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 0; }
.modal p { margin: 0; color: var(--muted); font-size: 14px; }
.modal label { font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.modal .chk { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.modal .err { color: #b3261e; font-size: 13px; min-height: 1em; }

.foot { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 13px; }
.foot p { margin: 0 0 6px; }

/* realizácie v detaile dekoru */
.refs { margin-top: 22px; }
.refs-r { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.refs-r button { border: 0; padding: 0; background: none; cursor: pointer; aspect-ratio: 1; overflow: hidden; border-radius: var(--r); }
.refs-r img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.refs-r button:hover img { transform: scale(1.08); }
.lb .big img { max-height: calc(100vh - 32px); }
.field input, .field select, .field textarea { border-radius: 4px; }
.fmt, .choice, .summary, .picked, .calc { border-radius: 6px; }

/* prepínač modulov */
.moduly { display: flex; gap: 4px; margin-left: 12px; border-left: 1px solid var(--line); padding-left: 12px; }
.moduly a { text-decoration: none; color: var(--muted); font-size: 13px; letter-spacing: .04em; padding: 6px 12px; border-radius: 60px; white-space: nowrap; }
.moduly a:hover { color: var(--navy); background: var(--paper); }
.moduly a[aria-current="page"] { color: var(--white); background: var(--navy); }
@media (max-width: 700px) { .moduly { margin-left: 0; border: 0; padding: 0; } .moduly a { padding: 6px 8px; font-size: 12px; } .top .badge-test { display: none; } }

.moduly .kr { display: none; }
@media (max-width: 560px) { .moduly .dl { display: none; } .moduly .kr { display: inline; } .logo img { height: 20px; } }
