/* ROTO SK site layer: only what sits inside the visuals (logo, cut-out tiles, the test card, the configurator)
   and the form panel. Tokens, grid, buttons, nav and sections come from assets/system.css. */

/* the client's logo in the nav and footer */
.nav__logo img.roto-logo { height: 30px; width: auto; }
@media (max-width: 639px) { .nav__logo img.roto-logo { height: 26px; } }

/* tanks are cut-outs on the tile ground */
.tile__media.is-cutout > img, .menu-card .panel > img.frame__img { object-fit: contain; padding: 9%; mix-blend-mode: multiply; }
.tile__media.is-cutout > img[src$=".jpg"] { mix-blend-mode: normal; }

/* booking-form recipe: the form on the alternate ground, 48px in */
@media (min-width: 1024px) { .form-panel { background: var(--surface); padding: var(--s-7); border-radius: var(--r-lg); } }

/* lists of "fits / ask us first" */
.fit-list { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.fit-list li { position: relative; padding-left: var(--s-5); }
.fit-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 2px; background: var(--action); }
.fit-list--ask li::before { background: transparent; border: 1.5px solid var(--muted); }

/* the scored test: a card on the alternate ground */
.quiz { background: var(--surface); border-radius: var(--r-lg); padding: var(--s-7); display: grid; gap: var(--s-5); align-content: start; min-height: 100%; }
@media (max-width: 639px) { .quiz { padding: var(--s-5); } }
.quiz__top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); font-size: var(--t-small); color: var(--muted); }
.quiz__bar { height: 2px; background: color-mix(in oklab, var(--ink) 12%, transparent); position: relative; }
.quiz__bar > i { position: absolute; inset: 0 auto 0 0; background: var(--action); transition: width 300ms var(--ease, ease); }
.quiz fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.quiz legend { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; margin-bottom: var(--s-3); padding: 0; }
.quiz__hint { color: var(--muted); font-size: var(--t-small); margin: calc(-1 * var(--s-2)) 0 0; }
.quiz__opt { display: flex; align-items: center; gap: var(--s-3); min-height: 48px; padding: var(--s-3) var(--s-4); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; transition: border-color 200ms, transform 200ms; }
.quiz__opt:hover { border-color: var(--ink); }
.quiz__opt input { accent-color: var(--action); width: 18px; height: 18px; margin: 0; flex: none; }
.quiz__opt:has(input:checked) { border-color: var(--action); box-shadow: inset 0 0 0 1px var(--action); }
.quiz__range { display: grid; gap: var(--s-3); }
.quiz__range output { font: 500 var(--t-h3)/1.1 var(--font-display); letter-spacing: -0.02em; }
.quiz__range input[type="range"] { width: 100%; accent-color: var(--action); min-height: 44px; }
.quiz__nav { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; }
.quiz__score { display: flex; align-items: baseline; gap: var(--s-3); }
.quiz__score b { font: var(--display-weight) var(--t-stat)/1 var(--font-display); letter-spacing: -0.03em; }
.quiz__verdict { font: 500 var(--t-card)/1.3 var(--font-text); margin: 0; }
.quiz__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
@media (max-width: 639px) { .quiz__cols { grid-template-columns: 1fr; } }
.quiz__cols h4 { font: 500 var(--t-small)/1.4 var(--font-text); color: var(--muted); margin: 0 0 var(--s-2); }
.quiz__cols ul { margin: 0; padding-left: 1.1em; display: grid; gap: var(--s-2); }
.quiz__rec { margin: 0; }
.quiz__restart { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }

/* the configurator: steps on the left, the set on the right */
.cfg { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-6); align-items: start; }
@media (max-width: 1023px) { .cfg { grid-template-columns: 1fr; } }
.cfg__steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-2); margin-bottom: var(--s-5); }
.cfg__steps span { font-size: var(--t-label); color: var(--muted); border-top: 2px solid color-mix(in oklab, var(--ink) 12%, transparent); padding-top: var(--s-2); }
.cfg__steps span.is-done { border-color: var(--action); color: var(--ink); }
.cfg__steps span.is-now { border-color: var(--ink); color: var(--ink); }
@media (max-width: 639px) { .cfg__steps { grid-template-columns: repeat(3, 1fr); } }
.cfg__opts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
@media (max-width: 639px) { .cfg__opts { grid-template-columns: 1fr; } }
.cfg__opts .quiz__opt { align-items: flex-start; flex-direction: column; gap: var(--s-1); }
.cfg__opts .quiz__opt small { color: var(--muted); font-size: var(--t-small); }
.cfg__opts .quiz__opt input { position: absolute; opacity: 0; pointer-events: none; }
.cfg__opts .quiz__opt { position: relative; }
.cfg__opts .quiz__opt:focus-within { outline: 2px solid var(--action); outline-offset: 2px; }
.cfg__set { background: var(--surface); border-radius: var(--r-lg); padding: var(--s-6); display: grid; gap: var(--s-4); }
.cfg__set img { width: 100%; height: 180px; object-fit: contain; mix-blend-mode: multiply; }
.cfg__set h3 { font: 500 var(--t-card)/1.3 var(--font-text); margin: 0; }
.cfg__presets { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.cfg__presets button { font: inherit; font-size: var(--t-small); min-height: 44px; padding: 0 var(--s-4); border: 1px solid var(--line); background: var(--bg); border-radius: var(--r-sm); cursor: pointer; color: var(--ink); }
.cfg__presets button:hover { border-color: var(--ink); }

/* section visuals on the sub-pages */
.fits-photo { aspect-ratio: 4 / 5; }
.how-panel { --p-h: 440px; background: var(--surface); }
@media (max-width: 1023px) { .fits-photo { aspect-ratio: 16 / 9; } .how-panel { --p-h: 340px; } }
@media (max-width: 639px) { .how-panel { --p-h: 300px; } }

/* cookie consent card (assets/site/consent.js): a corner card on wide screens, a compact strip on phones */
.consent { position: fixed; z-index: 60; left: var(--gut); bottom: 24px; width: min(440px, calc(100vw - 2 * var(--gut))); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md, 8px); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 12px 32px rgba(0, 0, 0, .12); }
.consent[hidden] { display: none; }
.consent__in { padding: var(--s-5); display: grid; gap: var(--s-4); }
.consent__h { font: 500 17px/1.3 var(--font-text); margin: 0 0 var(--s-1); color: var(--ink); }
.consent__text p:not(.consent__h) { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.consent__opts { display: grid; gap: 0; }
.consent__opts[hidden] { display: none; }
.consent__opts label { display: flex; align-items: center; gap: var(--s-2); min-height: 44px; font-size: 15px; color: var(--ink); }
.consent__opts span { color: var(--ink); opacity: .75; font-size: 13px; }
.consent__opts input { width: 18px; height: 18px; accent-color: var(--action); }
.consent__btns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.consent__btns .btn { width: 100%; min-width: 0; padding-inline: var(--s-3); white-space: normal; text-align: center; justify-content: center; }
.consent__btns [data-c="pick"] { grid-column: 1 / -1; order: 3; }
@media (max-width: 639px) {
  .consent { left: 0; right: 0; bottom: 0; width: auto; border-radius: 0; border-width: 1px 0 0; }
  .consent__in { padding: var(--s-4) var(--gut); gap: var(--s-3); }
  .consent__text p:not(.consent__h) { font-size: 14px; }
}
.footer__legal .footer__company { color: var(--muted); }
.footer__legal button.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.form__note { font-size: var(--t-small); color: var(--muted); }
.legal { max-width: none; }
.legal > :not(table) { max-width: 761px; }
.legal h2 { font: 500 22px/1.3 var(--font-text); margin: var(--s-7) 0 var(--s-3); }
.legal h3 { font: 500 17px/1.4 var(--font-text); margin: var(--s-5) 0 var(--s-2); }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 1.2em; display: grid; gap: var(--s-2); }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: var(--s-4) 0; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: var(--s-3) var(--s-3) var(--s-3) 0; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 500; }
.legal .muted { color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.legal > h2:first-child { margin-top: 0; }
@media (max-width: 639px) {
  .legal table, .legal tbody, .legal tr, .legal td { display: block; }
  .legal thead { display: none; }
  .legal tr { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
  .legal td { border: 0; padding: var(--s-1) 0; }
  .legal td:first-child { font-weight: 500; }
}
button.link { background: none; border: 0; padding: 0; min-height: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; box-shadow: none; }
.legal p, .legal li { font-size: 17px; line-height: 1.55; max-width: none; }
.legal td, .legal th { font-size: 15px; }

.form__note { color: var(--ink); }
.form-contacts { color: var(--ink); list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.form-contacts li { display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--s-3); align-items: baseline; }
.form-contacts .fc-k { color: var(--muted); }
.form-contacts a { color: var(--ink); font-weight: 500; text-underline-offset: 3px; margin-right: var(--s-2); }
@media (max-width: 639px) {
  .footer__legal > span { flex-basis: 100%; }
  .footer__legal button.link { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 639px) {
  .footer__policies { display: flex; flex-direction: column; align-items: flex-start; }
  .footer__policies .sep { display: none; }
}


/* homepage questions: the product line-up fills what the words leave in the left column */
#otazky .grid { align-items: stretch; }
#otazky .faq-side { display: flex; flex-direction: column; }
#otazky .faq-pic { flex: 1 1 auto; min-height: 240px; position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); }
#otazky .faq-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }

/* typography from the Hallmark variant: heavier, tighter display type on a bigger scale (h1 to 84, h2 to 56) */
:root {
  --t-h2: clamp(32px, 2.5vw + 16px, 56px);
  --t-lead: clamp(18px, .35vw + 16px, 22px);
}
h1, h2, h3, .t-h1, .t-h2 { line-height: 1.05; }
h3 { letter-spacing: -0.02em; }
body { line-height: 1.55; }

/* customers as a bento (from the Hallmark variant): big photographs, each tile one link with its words on a card */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 24px; min-height: 0; }
.bento__tile { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; justify-content: flex-end; grid-column: span 4; }
.bento__tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(.16, 1, .3, 1); }
.bento__tile:hover > img { transform: scale(1.03); }
.bento__text { position: relative; margin: 16px; padding: 14px 18px; background: var(--bg); border-radius: var(--r-md, 6px); display: grid; gap: 2px; }
.bento__text b { font-size: var(--t-card); font-weight: 500; letter-spacing: -0.01em; }
.bento__text span { color: var(--muted); font-size: var(--t-small); line-height: 1.45; }
.bento__tile:hover .bento__text b { text-decoration: underline; text-underline-offset: 3px; }
.bento__tile--lead { grid-column: span 8; grid-row: span 2; }
.bento__tile--fact { background: var(--ink); color: var(--bg); padding: 28px; justify-content: space-between; }
.bento__tile--fact strong { font: var(--display-weight) var(--t-h2)/1 var(--font-display); letter-spacing: var(--display-tracking); }
.bento__tile--fact p { color: var(--bg); opacity: .8; margin: 0; max-width: 30ch; }
.bento__tile--half { grid-column: span 6; }
.bento__stack { grid-column: span 4; grid-row: span 2; display: grid; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; min-height: 0; }
.bento__stack > .bento__tile { grid-column: auto; }
@media (max-width: 1023px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 260px; }
  .bento__tile, .bento__tile--half { grid-column: span 1; }
  .bento__tile--lead { grid-column: 1 / -1; grid-row: auto; }
  .bento__stack { grid-column: 1 / -1; grid-row: auto; grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 240px; }
  .bento__tile, .bento__tile--lead, .bento__tile--half, .bento__stack { grid-column: 1 / -1; }
  .bento__stack { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 240px; }
  .bento__tile--fact { grid-auto-rows: auto; min-height: 160px; }
}

/* the statement with the clients under it (#firma): the words in the middle, then the client names on a dark band
   across the whole screen that runs right to left without end (the list twice, moved by half). Hover holds it;
   reduced motion shows the names still, wrapped, once. */
#firma .firma__text { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; gap: var(--s-4); }
.clients { display: grid; gap: var(--s-4); padding-top: var(--s-6); }
.clients__band { margin-inline: calc(50% - 50vw); background: #111417; padding-block: 22px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.clients__track { display: flex; width: max-content; animation: clients-run 38s linear infinite; }
.clients__band:hover .clients__track { animation-play-state: paused; }
.clients__set { list-style: none; margin: 0; padding: 0 12px 0 0; display: flex; gap: 12px; }
.clients__set li { flex: none; padding: 14px 24px; border-radius: 12px; background: #1e2124; border: 1px solid #2c3135; color: #ffffff;
  font: 500 clamp(17px, 0.8vw + 12px, 22px)/1.2 var(--font-display); letter-spacing: -0.02em; white-space: nowrap; }
@keyframes clients-run { to { transform: translateX(-50%); } }
@media (max-width: 639px) { .clients__band { padding-block: 16px; } .clients__set li { padding: 10px 18px; } .clients__track { animation-duration: 28s; } }
@media (prefers-reduced-motion: reduce) {
  .clients__band { -webkit-mask-image: none; mask-image: none; padding-inline: var(--gut); }
  .clients__track { animation: none; width: auto; }
  .clients__set { flex-wrap: wrap; padding: 0; }
  .clients__set[aria-hidden="true"] { display: none; }
}

/* the guided inquiry form (assets/site/wizard.js) */
.wiz, .form-panel.wiz { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); align-content: start; }
.form-panel.wiz > * { grid-column: 1 / -1; }
.wiz__progress { list-style: none; margin: 0; padding: 0; display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; counter-reset: wiz; }
.wiz.is-stepped .wiz__progress { display: grid; }
.wiz__progress li { counter-increment: wiz; padding-top: 10px; border-top: 2px solid var(--line); font-size: var(--t-small); color: var(--muted); font-weight: 500; }
.wiz__progress li::before { content: counter(wiz) ". "; }
.wiz__progress li.is-done { border-top-color: var(--ink); color: var(--ink); }
.wiz__progress li.is-now { border-top-color: var(--p-accent); color: var(--ink); }
.wiz__step { border: 0; margin: 0; padding: 0; display: grid; gap: var(--s-4); min-width: 0; }
.wiz__step legend { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; padding: 0; margin-bottom: var(--s-3); }
.wiz__step legend:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 4px; }
.wiz__roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wiz__role { position: relative; display: block; cursor: pointer; }
.wiz__role input, .wiz__chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wiz__role span { display: grid; gap: 4px; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md, 6px); background: var(--bg); transition: border-color 160ms ease, box-shadow 160ms ease; }
.wiz__role b { font-weight: 500; }
.wiz__role small { color: var(--muted); font-size: var(--t-small); line-height: 1.4; }
.wiz__role:hover span { border-color: var(--ink); }
.wiz__role input:checked + span { border-color: var(--p-accent); box-shadow: inset 0 0 0 1px var(--p-accent); }
.wiz__role input:focus-visible + span, .wiz__chip input:focus-visible + span { outline: 2px solid var(--p-accent); outline-offset: 2px; }
.wiz__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wiz__chip { position: relative; }
.wiz__chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 15px; cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease; }
.wiz__chip:hover span { border-color: var(--ink); }
.wiz__chip input:checked + span { background: #111417; border-color: #111417; color: #fff; }
.wiz__q { font-weight: 500; margin: var(--s-2) 0 var(--s-1); }
.wiz__step .btn-row { margin-top: var(--s-2); }
.wiz__sum { border-top: 1px solid var(--line); padding-top: var(--s-4); display: grid; gap: var(--s-2); }
.wiz__sum ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wiz__sum li { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 12px; }
.wiz__sum li span { color: var(--muted); }
.wiz__sum li b { font-weight: 500; }
@media (max-width: 639px) { .wiz__roles { grid-template-columns: minmax(0, 1fr); } }

/* the close keeps the earlier heading size so it stays one screen with its links */
.closing__cta h2 { font-size: clamp(30px, 1.72vw + 23.3px, 48px); }

/* ---------------------------------------------------------------------------------------------------------------
   Sections as tall as their content (the client's call, 23. 11. 2026): the kit's one-or-two-screen rhythm left big
   empty gaps. Only the hero keeps its screen. Every section gets the same air above and below. */
:root { --sec-pad: 128px; }
@media (max-width: 1023px) { :root { --sec-pad: 88px; } }
@media (max-width: 639px) { :root { --sec-pad: 64px; } }
html body main > :is(section, .section):not(.hero, .section--hero),
html body footer.closing { height: auto; min-height: 0; padding: var(--sec-pad) 0; }
html body main > :is(section, .section).g2 > .wrap { display: block; }
html body main > :is(section, .section).g2 > .wrap > .grid.row-b { margin-top: 24px; }
html body footer.closing > .wrap { grid-template-rows: auto auto; }
.closing__cta > .close__media { flex: none; height: clamp(220px, 24vw, 360px); }
main .frame--fill, main [data-peek] .frame--fill { min-height: 380px; }
.bento { grid-template-rows: repeat(3, 210px); }
@media (max-width: 1023px) { .bento { grid-template-rows: none; } }
#otazky .faq-pic { min-height: 260px; }

/* reference cards (homepage and projekty.html): tag, the number, who, what, all on one card */
.refs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.refs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ref { display: grid; align-content: start; gap: 8px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); color: var(--ink); text-decoration: none; scroll-margin-top: 96px; transition: background-color 200ms ease; }
a.ref:hover { background: #e8eaec; }
a.ref:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.ref:target { outline: 2px solid var(--p-accent); outline-offset: 2px; }
.ref__tag { font-size: var(--t-label); color: var(--muted); font-weight: 500; }
.ref__num { font: var(--display-weight) var(--t-h3)/1.1 var(--font-display); letter-spacing: var(--display-tracking); color: var(--p-accent); }
.ref h3 { font-size: var(--t-card); font-weight: 500; letter-spacing: -0.01em; margin: 0; }
.ref p { margin: 0; font-size: var(--t-small); line-height: 1.5; }
@media (max-width: 1023px) { .refs, .refs--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .refs, .refs--3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 639px) {
  .bento, .bento__stack { grid-auto-rows: auto; grid-template-rows: none; }
  .bento__tile { min-height: 240px; }
  .bento__tile--fact { min-height: 0; gap: 12px; }
}
.bento__stack > .bento__tile--fact { min-height: 200px; }
@media (max-width: 639px) { .bento__stack > .bento__tile--fact { min-height: 0; } }

/* ---------------------------------------------------------------------------------------------------------------
   Sections as stacked cards (the client's call, 23. 11. 2026): every section has its own ground, white and light
   grey in turn (the brand band stays red), a rounded top and a shadow, and slides over the one before it.
   assets/site/stack.js makes each one stick once its bottom is in view and dims the one being covered. */
html body main > :is(section, .section) { position: relative; background: var(--bg); }
html body main > :is(section, .section):nth-child(even):not(.ground-brand) {
  --bg: #f3f4f6; --surface: #ffffff; --card: #ffffff;
}
html body main > :is(section, .section):not(.hero, .section--hero),
html body footer.closing {
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -1px 0 rgba(17, 20, 23, .04), 0 -28px 56px -28px rgba(17, 20, 23, .22);
}
html body footer.closing { position: relative; z-index: 2; background: var(--bg); margin-top: -32px; }
html body main > :is(section, .section).is-stacked { position: sticky; }
html body main > :is(section, .section) > .wrap { transform-origin: 50% 0; }
html body main > :is(section, .section).is-covered > .wrap { transform: scale(calc(1 - var(--cover, 0) * .05)); opacity: calc(1 - var(--cover, 0) * .45); filter: blur(calc(var(--cover, 0) * 10px)); }
/* the pause: a section stays in place for a stretch of scrolling before the next card arrives (longer after the hero) */
:root { --hold: 46vh; }
@media (max-width: 639px) { :root { --hold: 26vh; } }
html body main > :is(section, .section) + :is(section, .section) { margin-top: var(--hold); }
html body main > :is(.hero, .section--hero) + :is(section, .section) { margin-top: calc(var(--hold) * 1.5); }
@media (max-width: 639px) {
  html body main > :is(section, .section):not(.hero, .section--hero), html body footer.closing { border-radius: 22px 22px 0 0; }
  html body footer.closing { margin-top: -22px; }
}
@media (prefers-reduced-motion: reduce) {
  html body main > :is(section, .section).is-covered > .wrap { transform: none; opacity: 1; filter: none; }
  html body main > :is(section, .section) + :is(section, .section) { margin-top: 0; }
}

/* 20+ years band (homepage, in place of the calculator): the number large on the left, three promises on the right */
.xp__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-7, 64px); align-items: center; }
.xp__num { margin: 0; display: grid; gap: 12px; }
.xp__num b { font-weight: var(--display-weight, 500); font-size: clamp(96px, 13vw, 200px); line-height: .85; letter-spacing: -0.05em; color: var(--p-accent, #c8102e); }
.xp__num span { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.2; font-weight: 500; letter-spacing: -0.02em; max-width: 14ch; }
.xp__list { list-style: none; margin: 0; padding: 0; display: grid; }
.xp__list li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s-5, 24px); padding: var(--s-5, 24px) 0; border-top: 1px solid var(--line); }
.xp__list li:last-child { border-bottom: 1px solid var(--line); }
.xp__list b { font-weight: 500; font-size: var(--t-h4, 20px); }
.xp__list p { margin: 0; color: var(--muted); }
@media (max-width: 1023px) {
  .xp__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-6, 40px); }
  .xp__list li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

/* thank-you page after the inquiry form (dakujeme.html) */
.thanks .legal { padding-block: var(--s-4); }
.thanks__mark { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.thanks h1 { margin-top: var(--s-4); }
.thanks__steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-4); counter-reset: step; }
.thanks__steps li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr; column-gap: var(--s-3); align-items: start; }
.thanks__steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); font-weight: 500; }
.thanks__steps b { font-weight: 500; padding-top: 6px; }
.thanks__steps span { color: var(--muted); }

/* content sections for search: prose, spec table, related links (build/parts.mjs extra()) */
.prose p { max-width: 68ch; }
.see-also { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.spec-wrap { overflow-x: auto; }
.spec { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec caption { text-align: left; font-weight: 500; padding-bottom: var(--s-2); }
.spec th, .spec td { text-align: left; vertical-align: top; padding: var(--s-3) var(--s-3) var(--s-3) 0; border-bottom: 1px solid var(--line); }
.spec thead th { font-weight: 500; color: var(--muted); font-size: 14px; }
.spec tbody th { font-weight: 500; }

/* Poradňa: articles. A header (text left, photo right), "V skratke", then rows of text beside a photo with the
   sides alternating, mini visuals (number, calculation, comparison, steps, chips), sources; the index of cards */
.art-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.art-head__text { display: grid; gap: var(--s-3); }
.art-head__text h1 { margin: 0; }
.art-head__text .t-lead { margin: 0; max-width: 34ch; }
.art-head__img, .art-row__img { margin: 0; }
.art-head__img img, .art-row__img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.art-key { margin-top: clamp(32px, 4vw, 56px); padding: var(--s-5) var(--s-6); border-radius: 8px; background: var(--paper-2, #f6f6f4); display: grid; gap: var(--s-3); }
.art-key p { margin: 0; }
.art-key ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.art-key li { font-size: 18px; line-height: 1.45; padding-left: 14px; border-left: 3px solid var(--p-accent); }
.art-rows { display: grid; gap: clamp(48px, 6vw, 88px); margin-top: clamp(48px, 6vw, 88px); }
.art-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.art-row--rev .art-row__img { order: -1; }
.art-row__text { display: grid; gap: var(--s-4); max-width: 560px; }
.art-row__text > * { margin: 0; }
.art-row__text h2 { font-size: clamp(26px, 1.6vw + 16px, 36px); line-height: 1.15; }
.art-row__text p, .art-row__text li { font-size: 18px; line-height: 1.6; }
.art-row__text ul { padding-left: 1.1em; display: grid; gap: var(--s-2); }
.art-stat { display: grid; gap: 4px; padding-top: var(--s-4); border-top: 1px solid var(--line); }
.art-stat b { font: 600 clamp(36px, 2.5vw + 20px, 52px)/1 var(--font-display, inherit); color: var(--p-accent); letter-spacing: -.02em; }
.art-stat span { font-size: 16px; }
.art-stat small { font-size: 13px; color: var(--muted); }
.art-formula { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.art-formula span { display: grid; gap: 2px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.art-formula b { font-size: 20px; line-height: 1.1; }
.art-formula small { font-size: 13px; color: var(--muted); }
.art-formula i { font-style: normal; font-size: 20px; color: var(--muted); }
.art-formula .art-formula__res { background: var(--p-accent); border-color: var(--p-accent); color: #fff; }
.art-formula .art-formula__res small { color: rgba(255, 255, 255, .85); }
.art-vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.art-vs__card { padding: var(--s-4) var(--s-5); border: 1px solid var(--line); border-radius: 8px; display: grid; gap: var(--s-2); }
.art-vs__card:last-child { border-color: var(--p-accent); }
.art-vs__t { margin: 0; font-weight: 600; font-size: 19px; }
.art-vs ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.art-vs li { font-size: 16px; line-height: 1.45; }
.art-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; counter-reset: st; }
.art-steps li { counter-increment: st; font-size: 15px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.art-steps li::before { content: counter(st); width: 24px; height: 24px; border-radius: 50%; background: var(--p-accent); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.art-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.art-row__text .art-chips li { font-size: 15px; line-height: 1.2; padding: 7px 12px; border-radius: 999px; background: var(--paper-2, #f6f6f4); }
.art-tail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); margin-top: clamp(48px, 6vw, 88px); }
.art-src ol { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s-2); font-size: 15px; }
.article__related { padding-top: var(--s-5); border-top: 1px solid var(--line); }
.art-src { padding-top: var(--s-5); border-top: 1px solid var(--line); }
.article .rain-calc { margin: 0; }
@media (max-width: 767px) {
  .art-head, .art-row, .art-tail { grid-template-columns: minmax(0, 1fr); }
  .art-head__img { order: -1; }
  .art-row__img, .art-row--rev .art-row__img { order: -1; }
  .art-key ul { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .art-vs { grid-template-columns: minmax(0, 1fr); }
}
/* a peek list without photos (agro): rows in two columns */
.rows--cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 64px); }
@media (max-width: 767px) { .rows--cols { grid-template-columns: minmax(0, 1fr); } }
.rain-calc { margin: var(--s-6) 0; padding: var(--s-6); border: 1px solid var(--line); border-radius: 8px; background: var(--paper-2, #f6f6f4); display: grid; gap: var(--s-4); }
.rain-calc h3 { margin: 0; }
.rain-calc__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-4); }
.rain-calc label { display: grid; gap: var(--s-2); font-size: 15px; }
.rain-calc input, .rain-calc select { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; min-height: 44px; width: 100%; }
.rain-calc__out { display: grid; gap: var(--s-2); font-size: 17px; }
.rain-calc__out p { margin: 0; }
.por-lead { max-width: 761px; }
.por-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); margin-top: var(--s-5); }
.por-card { display: grid; gap: var(--s-3); align-content: start; text-decoration: none; color: inherit; }
.por-card__img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; transition: transform .3s ease; }
.por-card:hover .por-card__img img { transform: scale(1.02); }
.por-card h2 { margin: 0; }
.por-card:hover h2 { text-decoration: underline; text-underline-offset: 3px; }
.por-card__img { overflow: hidden; border-radius: 6px; }
@media (max-width: 1023px) { .por-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .por-grid { grid-template-columns: minmax(0, 1fr); } }

/* gallery of installation photos (projekty.html): theme chips, an even grid of 4:3 tiles with captions, 12 first and
   the rest on "Zobraziť všetky", a dialog for the large photo (assets/site/gallery.js) */
.gal-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-5); }
.gal-chip { font: inherit; font-size: 15px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.gal-chip span { color: var(--muted); margin-left: 4px; }
.gal-chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.gal-chip.is-on span { color: rgba(255,255,255,.7); }
.gal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: var(--s-5); }
.gal__item { position: relative; display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; background: #e9ecef; }
.gal__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gal__item:hover img { transform: scale(1.04); }
.gal__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; font-size: 13px; line-height: 1.35; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.65), transparent); opacity: 0; transition: opacity .25s ease; }
.gal__item:hover .gal__cap, .gal__item:focus-visible .gal__cap { opacity: 1; }
.gal__item:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 2px; }
.gal__item.is-more, .gal__item.is-out { display: none; }
.gal.is-all .gal__item.is-more:not(.is-out) { display: block; }
.gal-more { display: flex; justify-content: center; margin-top: var(--s-5); }
.gal-dlg { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.gal-dlg::backdrop { background: rgba(10, 12, 14, .88); }
.gal-dlg figure { margin: 0; display: grid; gap: 10px; justify-items: center; }
.gal-dlg img { display: block; max-width: 92vw; max-height: 84vh; width: auto; height: auto; border-radius: 6px; }
.gal-dlg figcaption { color: #fff; font-size: 15px; text-align: center; }
.gal-dlg__btn { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #111; font-size: 28px; line-height: 1; cursor: pointer; }
.gal-dlg__prev { left: 16px; } .gal-dlg__next { right: 16px; }
.gal-dlg__close { top: 24px; right: 16px; transform: none; }
@media (max-width: 1023px) { .gal { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) { .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .gal__cap { display: none; } }

/* attachment field in the inquiry form */
/* the native file button speaks the browser's language and gets cut off: hide it, show our own (wizard.js names the files) */
.wiz__files { position: relative; }
.wiz__files input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.wiz__drop { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px; border: 1px dashed var(--line); border-radius: 6px; background: #fff; cursor: pointer; font-weight: 400; }
.wiz__pick { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 4px; background: #fff; color: var(--ink); font-weight: 500; font-size: 15px; }
.wiz__drop:hover .wiz__pick { background: var(--ink); color: #fff; }
.wiz__names { min-width: 0; color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.wiz__files input[type="file"]:focus-visible + .wiz__drop { outline: 2px solid var(--accent); outline-offset: 2px; }

/* documents to download (pre-projektantov.html) */
.docs { list-style: none; padding: 0; margin: var(--s-5) 0; display: grid; gap: 0; max-width: 900px; }
html body .article .legal > .docs { max-width: 900px; }
.docs li { padding: var(--s-4) 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.docs li:first-child { border-top: 1px solid var(--line); }
.docs__link { display: flex; justify-content: space-between; gap: var(--s-4); align-items: baseline; text-decoration: none; color: var(--ink); }
.docs__name { font-weight: 500; font-size: 18px; text-decoration: underline; text-underline-offset: 3px; }
.docs__meta { flex: none; font-size: 14px; color: var(--muted); }
.docs li p { margin: 0; color: var(--muted); font-size: 15px; }
.legal ul.docs { padding-left: 0; }

/* partner zone (pre-projektantov.html, partneri/): lock marks, the locked document list */
.lock { width: 15px; height: 15px; vertical-align: -2px; flex: none; }
.partner-tag { display: inline-flex; align-items: center; gap: 8px; color: var(--p-accent); font-weight: 600; }
.docs--locked .docs__name { text-decoration: none; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.docs--locked li p { filter: blur(3px); user-select: none; }
.docs--locked li:last-child p { filter: none; }

/* questions article (najcastejsie-otazky-o-nadrziach.html): numbered rows, photo and answer side by side, alternating */
.qa-rows .wrap { display: grid; gap: clamp(40px, 6vw, 88px); }
.qa-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.qa-row--rev .qa-row__img { order: 2; }
.qa-row__img { margin: 0; }
.qa-row__img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.qa-row__text { display: grid; gap: var(--s-3); max-width: 560px; }
.qa-row__n { font: 600 15px/1 var(--font-text); color: var(--p-accent); letter-spacing: .04em; }
.qa-row .faq__item h3 { font-size: clamp(22px, 1.4vw + 14px, 30px); line-height: 1.2; margin: 0 0 var(--s-3); }
.qa-row .faq__item p { font-size: 18px; line-height: 1.6; margin: 0; }
@media (max-width: 767px) { .qa-row { grid-template-columns: minmax(0, 1fr); } .qa-row--rev .qa-row__img { order: 0; } }
.art-row__text .art-chips, .art-row__text .art-steps { display: flex; padding-left: 0; }
.art-row__text ul:not([class]) { list-style: disc; }

/* contact step before a test or configurator result (assets/site/gate.js) */
.gate { display: grid; gap: var(--s-4); }
.gate > h3, .gate > p { margin: 0; }
.gate .field { display: grid; gap: var(--s-2); }
.gate .btn-row { margin-top: var(--s-2); }
.gate .form__status:empty { display: none; }
.quiz__rec b { font-weight: 600; }
.quiz__thanks { padding: var(--s-3) var(--s-4); border-left: 3px solid var(--accent); background: var(--surface); }

/* product cards under a model table (build/parts.mjs extra().models) */
.models { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--s-4); }
.model { display: grid; grid-template-rows: 150px auto auto; gap: var(--s-1); padding: var(--s-4); background: #fff; border: 1px solid var(--line); border-radius: var(--radius, 8px); }
.model img { width: 100%; height: 150px; object-fit: contain; margin-bottom: var(--s-2); }
.model b { font-weight: 600; font-size: var(--t-small); }
.model span { color: var(--muted); font-size: var(--t-small); }
@media (max-width: 639px) { .models { grid-template-columns: 1fr 1fr; } .model { grid-template-rows: 110px auto auto; } .model img { height: 110px; } }
