/* Rokkitt, self-hosted: variable weight 100–900, trimmed to Latin + Czech characters. */
@font-face {
  font-family: "Rokkitt";
  src: url("fonts/Rokkitt-Variable.woff2") format("woff2"), url("fonts/Rokkitt-Variable.woff") format("woff");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
/* Duvox – single committed look from the Figma design: navy ground, cream panels, red + indigo slanted accents.
   Layout: 1058px content column, staggered image/text blocks, full-bleed galleries on product pages. */
:root {
  --navy: #040459;
  --navy-deep: #070746;
  --cream: #f9f6ed;
  --red: #ff2a00;
  --indigo: #3a4098;
  --periwinkle: #9caaf5;
  --shade: rgba(2, 2, 55, 0.7);
  --ph-a: #1b1f7a;
  --ph-b: #2c3290;
  --font: "Rokkitt", Rockwell, "Roboto Slab", Georgia, serif;
  --content: 1058px;
  --gutter: 16px;
  /* Brand slant: 37° from vertical, same as the logo dashes. Horizontal shift = height × tan(37°). */
  --slant: 0.7536;
  --s10: calc(10px * var(--slant));
  --s7: calc(7px * var(--slant));
  --s5: calc(5px * var(--slant));
  --s16: calc(16px * var(--slant));
  /* Type scale: one body size and line height for all running text, three heading steps. */
  --fs-body: 18px;
  --lh-body: 1.45;
  --fs-small: 15px;
  --fs-h1: 40px;
  --fs-section: 36px;
  --fs-h2: 32px;
  --fs-h3: 26px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--navy);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 700; }
p { margin: 0; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }

.wrap { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Slanted accent bars (the design's "Divider") ---------- */
.accent { position: relative; }
.accent::before, .accent::after {
  content: ""; position: absolute; width: 95px; height: 10px; z-index: 2; pointer-events: none;
}
/* Only the inner end is slanted; the end on the card edge stays straight. */
.accent::before { top: 0; right: 0; background: var(--indigo); clip-path: polygon(var(--s10) 0, 100% 0, 100% 100%, 0 100%); }
.accent::after { bottom: 0; left: 0; background: var(--red); clip-path: polygon(0 0, 100% 0, calc(100% - var(--s10)) 100%, 0 100%); }

/* ---------- Icons ---------- */

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; }
.nav-top { background: var(--navy); }
.nav-top .wrap { display: flex; align-items: center; justify-content: space-between; height: 50px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.logo svg { width: 25px; height: 25px; flex: none; }
.logo .word { font-weight: 800; font-size: 22px; letter-spacing: 0.04em; }
.logo.big svg { width: 39px; height: 39px; }
.logo.big .word { font-size: 34px; }
.logo.on-cream { color: var(--navy); }

.navlinks { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
/* Menu dash: a 37° bar left of the label. On hover it grows rightwards behind the text (orange);
   on the current page it stays grown and turns blue. It covers roughly the lower half of the letters. */
.navlink {
  --dash: var(--red); --dash-current: var(--indigo);
  /* Dash and label share one grid cell, aligned on the text baseline: the dash has no text,
     so its bottom edge is its baseline and lands exactly on the letters' baseline. */
  position: relative; isolation: isolate; display: inline-grid; align-items: baseline;
  padding: 0.2em 0.5em 0.1em 0.25em; font-weight: 700; font-size: 20px; text-decoration: none; white-space: nowrap;
}
.navlink::before, .navlink span { grid-area: 1 / 1; }
.navlink span { padding-left: 1.15em; }
.navlink::before {
  content: ""; z-index: -1; justify-self: start; width: 0.9em; height: 0.35em;
  background: var(--dash);
  clip-path: polygon(var(--s7) 0, 100% 0, calc(100% - var(--s7)) 100%, 0 100%);
  transition: width .25s cubic-bezier(.2, .7, .3, 1), background-color .15s ease;
}
.navlink:hover::before, .navlink:focus-visible::before, .navlink[aria-current="page"]::before { width: calc(100% + 0.4em); } /* runs past the last letter, into the link's right padding, without changing its size */
.navlink[aria-current="page"]::before { background: var(--dash-current); }
.nav-top .navlink { color: var(--cream); }

.nav-products { background: var(--cream); box-shadow: 0 4px 4px rgba(4, 4, 89, 0.1); }
.nav-products .navlinks { justify-content: center; height: 50px; align-items: center; flex-wrap: nowrap; gap: clamp(0px, 0.4vw, 6px); }
.nav-products .navlink { font-size: clamp(16px, calc((100vw - 48px) / var(--menu-k, 62)), 20px); }
.nav-products .navlink { color: var(--navy); }
.nav-products .navlink, .mobile-menu .navlink { --dash-current: var(--periwinkle); }

.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--cream); }
.mobile-menu { display: none; }

/* Below this width the product bar would need tiny text, so the hamburger menu takes over. */
@media (max-width: 1100px) {
  .nav-top .wrap { height: 70px; }
  .nav-top .navlinks, .nav-products { display: none; }
  .menu-btn { display: block; }
  .mobile-menu[data-open="true"] { display: block; background: var(--cream); border-top: 4px solid var(--red); max-height: calc(100vh - 70px); overflow-y: auto; }
  .mobile-menu ul { list-style: none; margin: 0; padding: 12px var(--gutter) 20px; display: grid; gap: 2px; }
  .mobile-menu .navlink { color: var(--navy); font-size: 22px; padding-block: 10px; }
  .mobile-menu hr { border: 0; height: 2px; background: var(--periwinkle); margin: 8px 0; }
}

/* ---------- Placeholder photos ---------- */
.ph {
  position: relative; overflow: hidden; background:
    linear-gradient(135deg, var(--ph-a), var(--ph-b));
  min-height: 120px;
}
.ph::before { /* a window frame sketch so it reads as "photo goes here" */
  content: ""; position: absolute; inset: 18% 22%; border: 2px solid rgba(249, 246, 237, .22);
  background:
    linear-gradient(rgba(249, 246, 237, .22), rgba(249, 246, 237, .22)) center / 2px 100% no-repeat,
    linear-gradient(rgba(249, 246, 237, .22), rgba(249, 246, 237, .22)) center / 100% 2px no-repeat;
}
.ph::after {
  content: attr(data-label); position: absolute; left: 12px; bottom: 10px;
  font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: rgba(249, 246, 237, .65);
}
.ph.alt { background: linear-gradient(160deg, #262b86, #12156a); }
.ph.alt2 { background: linear-gradient(200deg, #343a9a, #1a1d74); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px;
  background: var(--navy); color: var(--cream); font-weight: 700; font-size: 20px; text-decoration: none; line-height: 1.15;
  transition: background .15s ease;
}
.btn::after {
  content: ""; width: 7px; height: 10px; background: var(--red); flex: none;
  clip-path: polygon(0 0, 100% 50%, 0 100%, 0 70%, 45% 50%, 0 30%);
}
.btn:hover { background: var(--indigo); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Cream panel ---------- */
.panel { background: var(--cream); color: var(--navy); padding: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.panel h2 { font-size: var(--fs-h2); line-height: 1.05; }
.panel p { font-size: var(--fs-body); line-height: var(--lh-body); max-width: 65ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--cream); color: var(--navy); border-top: 10px solid var(--red); }
.map {
  display: block; position: relative; aspect-ratio: 1877 / 373; max-width: 100%; min-height: 300px; overflow: hidden;
  background:
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(4, 4, 89, .06) 46px 48px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(4, 4, 89, .06) 46px 48px),
    #e6e4f0;
}
.map .pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); display: grid; justify-items: center; gap: 6px; }
.map .pin img { width: 48px; height: 48px; }
.map .pin b { background: var(--navy); color: var(--cream); padding: 4px 10px; font-size: 16px; white-space: nowrap; }
.map-consent { position: absolute; left: 0; right: 0; bottom: 20px; display: grid; justify-items: center; gap: 8px; padding-inline: 16px; text-align: center; }
.map-consent p { font-size: var(--fs-small); line-height: 1.35; }
.map-consent a { font-weight: 700; color: inherit; text-underline-offset: 3px; }
.map-load { border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 18px; }
.map-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map.loaded .pin, .map.loaded .map-consent { display: none; }
.footer-bottom { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; padding-block: 32px; }
.contacts { display: grid; gap: 8px; font-weight: 700; font-size: 20px; }
.contacts .row { display: flex; align-items: center; gap: 12px; }
.contacts .row img { width: 28px; height: 28px; flex: none; }
.contacts a { text-decoration: underline; text-underline-offset: 3px; }
.footer-links { display: flex; justify-content: center; gap: 24px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px 2px; font-weight: 700; font-size: 20px; text-decoration: none; }
.footer-links a::after { content: ""; width: 7px; height: 10px; background: var(--red); clip-path: polygon(0 0, 100% 50%, 0 100%, 0 70%, 45% 50%, 0 30%); }
.footer-links a:hover { background: var(--periwinkle); }
.company { text-align: right; font-size: 20px; line-height: 1.25; }
.company b { display: block; line-height: 30px; }
@media (max-width: 860px) {
  .map { aspect-ratio: 1 / 1; min-height: 0; max-height: 420px; width: 100%; }
  .footer-bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 24px; }
  .contacts { justify-items: center; }
  .footer-links { flex-wrap: wrap; gap: 0; }
  .footer-links ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; }
  .company { text-align: center; }
}

/* ======================= HOMEPAGE ======================= */
.home-top { display: grid; grid-template-columns: 702fr 346fr; gap: 10px; padding-block: 64px 54px; }
.intro { display: grid; grid-template-columns: 300fr 402fr; }
.intro .ph { min-height: 350px; }
.intro .panel { padding: 20px; }
.intro h1 { font-size: 28px; line-height: 1.15; }
.intro p { font-size: var(--fs-body); line-height: var(--lh-body); }
.mini-gallery { display: grid; grid-template-rows: 170px 170px; gap: 10px; }
.mini-gallery .gr { display: grid; gap: 10px; grid-template-columns: 188fr 148fr; }
.mini-gallery .gr.b { grid-template-columns: 148fr 188fr; }
.mini-gallery .ph { min-height: 0; }
.gallery-link { position: relative; display: grid; place-items: center; text-decoration: none; }
.gallery-link .ph { position: absolute; inset: 0; }
.gallery-link .shade { position: absolute; inset: 0; background: var(--shade); transition: background .2s; }
.gallery-link:hover .shade { background: rgba(2, 2, 55, .5); }
.gallery-link b { position: relative; z-index: 1; color: var(--cream); font-size: 36px; display: inline-flex; align-items: baseline; gap: 12px; }
.gallery-link b::after { content: ""; width: 13px; height: 16px; background: var(--red); clip-path: polygon(0 0, 100% 50%, 0 100%, 0 70%, 45% 50%, 0 30%); }

.feature-wrap { max-width: calc(1236px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.features { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 210px auto; gap: 10px; }
.features .img1 { grid-column: 1; grid-row: 1 / 3; min-height: 440px; }
.features .card1 { grid-column: 2; grid-row: 1; }
.features .img2 { grid-column: 2; grid-row: 2 / 4; min-height: 440px; }
.features .card2 { grid-column: 1; grid-row: 3; }
.features .panel { justify-content: center; min-height: 220px; }


.products { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-block: 64px 0; }
.product { position: relative; display: grid; grid-template-columns: 1fr; min-height: 197px; overflow: hidden; background: var(--cream); }
.product .ph { position: absolute; top: 0; right: 0; bottom: 0; width: 51%; }
/* Cream wedge over the photo. skewX keeps the edge at exactly 37° whatever the card height;
   --wedge is where the slanted edge meets the bottom of the card. */
.product { --wedge: 50%; }
.product::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: calc(60% + var(--wedge)); z-index: 1;
  background: var(--cream); transform: skewX(-37deg); transform-origin: bottom left;
}
.product .body {
  position: relative; z-index: 2; width: 63%; padding: 24px;
  display: flex; flex-direction: column; justify-content: center; gap: 10px; align-items: flex-start;
}
.product h3 { font-size: var(--fs-h3); line-height: 1.05; }
.product p { font-size: 17px; line-height: 1.4; }
.product .stripes { position: absolute; top: 0; right: 0; z-index: 2; display: grid; gap: 10px; width: 203px; }
.product .stripes i { height: 10px; background: var(--indigo); clip-path: polygon(var(--s10) 0, 100% 0, 100% 100%, 0 100%); }
.product .stripes i:last-child { width: 76px; justify-self: end; margin-right: 0; background: var(--red); }
.product::after { content: ""; position: absolute; left: 0; bottom: 0; width: 95px; height: 10px; z-index: 3; background: var(--red); clip-path: polygon(0 0, 100% 0, calc(100% - var(--s10)) 100%, 0 100%); }

.partners { text-align: center; padding-block: 54px 64px; color: var(--cream); display: grid; justify-items: center; gap: 20px; }

.partner-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 48px; }
.partner-list li { font-weight: 800; font-size: 26px; letter-spacing: .08em; text-transform: uppercase; opacity: .9; border: 2px dashed rgba(249, 246, 237, .3); padding: 14px 22px; }

@media (max-width: 860px) {
  .home-top { grid-template-columns: 1fr; padding-block: 0 10px; margin-inline: calc(-1 * var(--gutter)); }
  .intro { grid-template-columns: 1fr; }
  .intro .ph { min-height: 240px; }
  .intro .panel { background: var(--navy); color: var(--cream); padding: 16px; }
  .intro .logo.on-cream { color: var(--cream); }
  .intro h1 { font-size: 28px; }

  .mini-gallery { grid-template-rows: 197px 197px; }
  .feature-wrap { padding-inline: 0; }
  .features { grid-template-columns: 1fr; grid-template-rows: none; }
  .features .img1, .features .img2 { grid-row: auto; grid-column: 1; min-height: 240px; }
  .features .card1, .features .card2 { grid-row: auto; grid-column: 1; }
  .features .img1 { order: 1; } .features .card1 { order: 2; } .features .img2 { order: 3; } .features .card2 { order: 4; }
  .products { grid-template-columns: 1fr; padding-top: 10px; margin-inline: calc(-1 * var(--gutter)); }
  .product { --wedge: 56%; }
  .product .body { width: 77%; padding: 16px 16px 24px; }
}

/* ======================= PRODUCT PAGES ======================= */
/* Photo strip: panels stacked full-size, each cut by a 37° seam. --seam is the seam's horizontal run. */
.hero { --hero-h: 500px; --seam: calc(var(--hero-h) * var(--slant)); --cut1: 55%; --cut2: 88%;
  position: relative; height: var(--hero-h); overflow: hidden; background: var(--navy-deep); }
.hero-slides { position: absolute; inset: 0; }
.hero-slides .ph { position: absolute; inset: 0; }
.hero-slides .ph:nth-child(1) { z-index: 3; clip-path: polygon(0 0, var(--cut1) 0, calc(var(--cut1) - var(--seam)) 100%, 0 100%); }
.hero-slides .ph:nth-child(2) { z-index: 2; clip-path: polygon(0 0, var(--cut2) 0, calc(var(--cut2) - var(--seam)) 100%, 0 100%); }
.hero-slides .ph:nth-child(3) { z-index: 1; }
.hero-slides .ph::after { left: auto; right: 12px; }
.page-intro { position: relative; z-index: 3; margin-top: -94px; max-width: 600px; }
.page-intro .panel { padding: 24px; }
.page-intro h1 { font-size: var(--fs-h1); line-height: 1.05; }
.page-intro p { font-size: var(--fs-body); line-height: var(--lh-body); }
.page-intro-wrap { max-width: calc(1236px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.page-main { display: grid; justify-items: center; gap: 96px; padding-block: 109px 96px; color: var(--cream); }
.section-title { font-size: var(--fs-section); line-height: 1.1; color: var(--cream); text-align: center; padding-top: 0; }

.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 10px; width: 100%; }
.point { display: grid; justify-items: center; align-content: start; gap: 8px; padding: 16px; text-align: center; }
.point .pt-icon { width: 96px; height: 96px; }
.point h3 { font-size: var(--fs-h3); line-height: 1.1; min-height: 2.2em; display: grid; align-items: center; }
.points.compact .point h3 { min-height: 32px; }
.point p { font-size: var(--fs-body); line-height: var(--lh-body); max-width: 26ch; }
.points.duo .point p { max-width: 300px; }

.dots { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; width: 100%; }
.dots li { display: grid; grid-template-columns: 24px 1fr; gap: 8px; font-size: 20px; line-height: 1.3; }
.dots li::before { content: ""; width: 22px; height: 16px; margin-top: 4px; background: var(--red); clip-path: polygon(var(--s16) 0, 100% 0, calc(100% - var(--s16)) 100%, 0 100%); }

.systems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.system { background: var(--cream); color: var(--navy); padding: 16px; display: grid; align-content: start; gap: 10px; }
.system h3 { font-size: 32px; line-height: 40px; text-align: center; }
.system .ph { height: 202px; min-height: 0; }

/* Technical parameters: cream card on desktop, a list inside each system card on phones */
.spec-card { width: 100%; background: var(--cream); color: var(--navy); padding: 32px 40px 28px; display: grid; gap: 20px; }
.spec-scroll { overflow-x: auto; }
.spec { width: 100%; border-collapse: collapse; font-size: 20px; line-height: 24px; font-variant-numeric: tabular-nums; }
.spec col.param { width: 31%; }
.spec thead th { font-size: 26px; line-height: 1; padding: 0 12px 16px; text-align: center; vertical-align: bottom; border-bottom: 2px solid var(--navy); }
.spec thead th.param-h { text-align: left; font-weight: 400; padding-left: 0; }
.spec tbody tr + tr { border-top: 1px solid rgba(4, 4, 89, .16); }
.spec tbody th { text-align: left; font-weight: 400; padding: 13px 16px 13px 0; }
.spec td { text-align: center; padding: 13px 12px; white-space: nowrap; }
.spec td b { font-weight: 700; }
.spec td.all { position: relative; }
.spec td.all::before { content: ""; position: absolute; left: 12%; right: 12%; top: 50%; height: 2px; background: var(--periwinkle); }
.spec td.all span { position: relative; background: var(--cream); padding: 0 16px; }
.spec-note { font-size: 16px; line-height: 20px; opacity: .75; }
.sys-spec { display: none; }
.sys-spec h4 { margin: 8px 0 2px; font-size: 22px; }
.sys-spec dl { margin: 0; font-size: 18px; line-height: 22px; font-variant-numeric: tabular-nums; }
.sys-spec dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-top: 1px solid rgba(4, 4, 89, .16); }
.sys-spec dd { margin: 0; text-align: right; white-space: nowrap; }
.sys-spec dd b { font-weight: 700; }

.colors-card { width: 100%; max-width: 613px; }
.colors-card .panel { gap: 12px; }
.colors-card p { font-size: var(--fs-body); line-height: var(--lh-body); }

.biok { display: grid; grid-template-columns: 524fr 534fr; width: 100%; }
.biok .ph { min-height: 330px; }
.biok .panel h2 { font-size: 32px; }
.biok .dots li { font-size: 20px; }

/* Ostatní služby */
.os-glass { display: grid; gap: 40px; width: 100%; }
.points.duo { grid-template-columns: repeat(2, minmax(0, 440px)); justify-content: center; }
.wpc { display: grid; gap: 32px; width: 100%; }
.wpc-head { display: grid; justify-items: center; gap: 12px; text-align: center; }
.wpc-head p { font-size: var(--fs-body); line-height: var(--lh-body); max-width: 60ch; }
.wpc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.wpc-card { display: grid; grid-template-rows: auto 1fr; }
.wpc-card .ph { min-height: 240px; }
.wpc-card .panel h3 { font-size: var(--fs-h3); line-height: 1.05; }
.more { text-align: left; }

@media (max-width: 860px) {
  .hero { --hero-h: 300px; --cut1: 78%; --cut2: calc(100% + var(--seam)); }
  .hero-slides .ph:nth-child(3) { display: none; }
  .page-intro { margin-top: -40px; }
  .page-intro-wrap { padding-inline: 0; }
  .page-main { padding-block: 56px; gap: 56px; }
  .points, .systems { grid-template-columns: 1fr; gap: 10px; }
  .point h3, .points.compact .point h3 { min-height: 0; }
  .point .pt-icon { width: 80px; height: 80px; }
  .biok { grid-template-columns: 1fr; }
  .biok .ph { min-height: 220px; }
  .os-glass { gap: 16px; }
  .points.duo { grid-template-columns: 1fr; }
  .wpc-cards { grid-template-columns: 1fr; gap: 32px; }
  .wpc-card .ph { min-height: 200px; }
  .spec-card { display: none; }
  .sys-spec { display: block; }
}

/* Placeholder page */
.soon { min-height: 50vh; display: grid; place-items: center; padding-block: 96px; }
.soon .panel { max-width: 560px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.contacts .logo { text-decoration: none; margin-bottom: 4px; }
.footer-links ul { align-content: start; }
/* Real logos */
.partner-list { align-items: center; gap: 32px 64px; }   /* one row on wide screens, wraps on phones */
.partner-list li { border: 0; padding: 0; opacity: 1; }
.partner-list img { height: auto; display: block; }
.partner-list .text-logo { font-size: 30px; letter-spacing: .04em; text-transform: lowercase; border: 2px dashed rgba(249, 246, 237, .3); padding: 6px 18px; }
.logo svg.wordmark { width: auto; height: 15px; }
.logo.big svg.wordmark { height: 23.4px; }
.logo { gap: 12px; }
.logo.big { gap: 16px; }
.hero-slides .ph::before { display: none; }

/* ---------- Brand icons (from duvox_icons.svg), used as masks so they take any color ---------- */
:root {
  --i-arrow: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2071.12%2087.9%22%3E%3Cpolygon%20fill%3D%22%23000%22%20points%3D%2238.00%2C0.00%200.00%2C0.00%2033.12%2C43.95%200.00%2C87.90%2038.00%2C87.90%2071.12%2C43.95%22/%3E%3C/svg%3E");
  --i-point: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2077.86%2030.38%22%3E%3Cpolygon%20fill%3D%22%23000%22%20points%3D%2222.83%2C0.00%200.00%2C30.38%2055.03%2C30.38%2077.86%2C0.00%22/%3E%3C/svg%3E");
}
.btn::after, .footer-links a::after, .gallery-link b::after {
  clip-path: none; aspect-ratio: 71.12 / 87.9; height: auto;
  -webkit-mask: var(--i-arrow) center / contain no-repeat; mask: var(--i-arrow) center / contain no-repeat;
}
.btn::after, .footer-links a::after { width: 8px; }
.gallery-link b::after { width: 13px; }
.dots li::before {
  clip-path: none; width: 20px; height: auto; aspect-ratio: 77.86 / 30.38; margin-top: 9px;
  -webkit-mask: var(--i-point) center / contain no-repeat; mask: var(--i-point) center / contain no-repeat;
}
.menu-btn { width: 50px; height: 50px; padding: 12px; display: none; }
.menu-btn svg { display: block; width: 100%; height: 100%; }
@media (max-width: 1100px) { .menu-btn { display: block; } }

/* ---------- Language toggle (CZ / EN) ---------- */
.nav-right { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; align-items: center; gap: 2px; font-weight: 700; font-size: 18px; line-height: 1; }
.lang-sep { color: var(--cream); opacity: .35; padding: 0 2px; }
.lang-opt {
  position: relative; isolation: isolate; display: inline-grid; align-items: baseline;
  padding: 6px 7px 4px; color: var(--cream); text-decoration: none; letter-spacing: .06em; opacity: .55;
  transition: opacity .15s ease;
}
.lang-opt::before, .lang-opt span { grid-area: 1 / 1; }
.lang-opt::before {
  content: ""; z-index: -1; justify-self: start; width: calc(100% + .3em); height: .4em;   /* no text, so it sits on the baseline */
  background: var(--red); clip-path: polygon(var(--s7) 0, 100% 0, calc(100% - var(--s7)) 100%, 0 100%);
  transform: scaleX(0); transform-origin: left; transition: transform .2s cubic-bezier(.2, .7, .3, 1), background-color .15s ease;
}
.lang-opt:hover, .lang-opt:focus-visible { opacity: 1; }
.lang-opt:hover::before, .lang-opt:focus-visible::before { transform: scaleX(1); }
.lang-opt[aria-current="true"] { opacity: 1; }
.lang-opt[aria-current="true"]::before { transform: scaleX(1); background: var(--indigo); }
.nav-top .navlinks + .lang { padding-left: 18px; border-left: 1px solid rgba(249, 246, 237, .25); }
.menu-lang { display: none; }
/* With the hamburger menu the top bar keeps only the logo and the menu button; the toggle moves to the end of the menu. */
@media (max-width: 1100px) {
  .nav-right .lang { display: none; }
  .menu-lang { display: block; }
  .menu-lang .lang { font-size: 22px; }
  .menu-lang .lang-opt { padding: 12px 8px 10px; color: var(--navy); }  /* comfortable touch target */
  .menu-lang .lang-sep { color: var(--navy); }
  .menu-lang .lang-opt[aria-current="true"]::before { background: var(--periwinkle); }  /* same as the current page in the menu */
}

/* ---------- Announcement bar ---------- */
.notice {
  position: relative; background: var(--red); color: var(--cream); padding-bottom: 8px;
}
.notice::after {   /* hazard edge in the brand's 37° slant */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: repeating-linear-gradient(127deg, var(--navy) 0 7px, var(--red) 7px 14px);
}
.notice-in { display: flex; align-items: center; gap: 16px; padding-block: 16px; }
.notice-mark {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; background: var(--cream); color: var(--red);
  font-weight: 800; font-size: 28px; line-height: 1;
}
.notice-body { margin: 0; font-size: 19px; line-height: 1.3; display: flex; flex-wrap: wrap; column-gap: 14px; row-gap: 2px; align-items: baseline; max-width: 80ch; }
.notice-body strong { font-size: 24px; line-height: 1.1; font-weight: 800; }
.notice-body span { white-space: pre-line; }
@media (max-width: 860px) {
  .notice-in { align-items: flex-start; gap: 12px; padding-block: 12px; }
  .notice-mark { width: 34px; height: 34px; font-size: 24px; }
  .notice-body { display: block; font-size: 17px; }
  .notice-body strong { display: block; font-size: 21px; margin-bottom: 4px; }
}
.admin-link { grid-column: 1 / -1; justify-self: center; font-size: 14px; opacity: .6; }

/* Menu button holds both icons; the open/closed state picks one. */
.menu-btn .i-open, .menu-btn .i-close { display: block; width: 100%; height: 100%; }
.menu-btn .i-close, .menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.company { font-style: normal; }

/* O firmě */
.about-steps, .about-history { display: grid; gap: 40px; width: 100%; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.steps-note { text-align: center; font-size: 18px; line-height: 24px; margin-top: -16px; }
.step { display: grid; align-content: start; gap: 8px; padding: 20px; background: var(--navy-deep); border-top: 4px solid var(--indigo); }
.step-n { font-size: 56px; line-height: 1; font-weight: 800; color: var(--red); }
.step h3 { font-size: 24px; line-height: 1.1; }
.step p { font-size: 17px; line-height: 1.4; }
.timeline { list-style: none; margin: 0 auto; padding: 0; display: grid; width: 100%; max-width: 760px; }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid rgba(156, 170, 245, .3); }
.timeline li:first-child { border-top: 1px solid rgba(156, 170, 245, .3); }
.tl-year { font-size: 36px; line-height: 1; display: inline-flex; align-items: baseline; gap: 12px; }
.tl-year::before { content: ""; width: 18px; height: 7px; flex: none; background: var(--red); clip-path: polygon(var(--s5) 0, 100% 0, calc(100% - var(--s5)) 100%, 0 100%); }
.timeline p { font-size: var(--fs-body); line-height: var(--lh-body); }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; width: 100%; }
.about-cards .panel { height: 100%; gap: 12px; }

@media (max-width: 860px) {
  .about-steps, .about-history { gap: 24px; }
  .steps { grid-template-columns: 1fr; }
  .steps-note { margin-top: -8px; }
  .step { padding: 16px; }
  .step-n { font-size: 44px; }
  .step h3 { font-size: 24px; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .tl-year { font-size: 30px; }
  .about-cards { grid-template-columns: 1fr; }
}

/* Galerie */
.gallery-page { padding-block: 56px 96px; display: grid; gap: 40px; }
.gallery-head { max-width: 640px; }
.gallery-head h1 { font-size: var(--fs-h1); line-height: 1.05; }
.g-grid { --row: 250px; display: flex; flex-wrap: wrap; gap: 10px; }
.g-item { position: relative; margin: 0; flex: var(--r) 1 calc(var(--r) * var(--row)); aspect-ratio: var(--r); min-width: 0; }
.g-item[hidden] { display: none; }
.g-grid.laid .g-item { flex: none; aspect-ratio: auto; }   /* site.js sets exact sizes so every row fills the width */
.g-grid.laid .g-item.row-end { flex-grow: 1; }
.g-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: -16px; }
.g-filter[hidden] { display: none; }
.g-chip {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 12px; border: 0; cursor: pointer;
  background: var(--indigo); color: var(--cream); font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2;
  transition: background .15s, color .15s;
}
.g-chip::before { content: ""; width: 12px; height: 5px; background: var(--red); clip-path: polygon(var(--s5) 0, 100% 0, calc(100% - var(--s5)) 100%, 0 100%); flex: none; }
.g-chip:first-child::before { display: none; }
.g-chip:hover { background: var(--red); color: var(--cream); }
.g-chip:hover::before { background: var(--navy); }
.g-chip[aria-pressed="true"] { background: var(--cream); color: var(--navy); }
.g-chip[aria-pressed="true"]::before { background: var(--red); }
.g-chip:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.g-open { display: block; width: 100%; height: 100%; background: var(--indigo); }
.g-open img { display: block; width: 100%; height: 100%; object-fit: cover; transition: filter .2s; }
.g-open:hover img, .g-open:focus-visible img { filter: brightness(.82); }
.g-open:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.g-item figcaption { position: absolute; left: 8px; right: 8px; bottom: 8px; pointer-events: none; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.tag {
  pointer-events: auto; display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 8px;
  background: var(--navy); color: var(--cream); font-size: 14px; font-weight: 700; line-height: 1.2; text-decoration: none;
  transition: background .15s, color .15s;
}
.tag::before { content: ""; width: 10px; height: 4px; background: var(--red); clip-path: polygon(var(--s5) 0, 100% 0, calc(100% - var(--s5)) 100%, 0 100%); flex: none; }
a.tag:hover { background: var(--red); color: var(--cream); }
a.tag:hover::before { background: var(--navy); }
a.tag:focus-visible { outline: 2px solid var(--cream); outline-offset: 1px; }

html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #03033d; color: var(--cream); }
.lb[hidden] { display: none; }
.lb-top { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 16px; }
.lb-count { margin-right: auto; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lb-btn { width: 48px; height: 48px; border: 0; padding: 0; display: grid; place-items: center; background: var(--navy); color: var(--cream); cursor: pointer; transition: background .15s, color .15s; }
.lb-btn:hover { background: var(--red); color: var(--cream); }
.lb-btn:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.lb-btn svg { width: 18px; height: 18px; display: block; }
.lb-zoom .minus, .lb[data-zoomed] .lb-zoom .plus { display: none; }
.lb[data-zoomed] .lb-zoom .minus { display: inline; }
.lb-stage { position: relative; overflow: hidden; touch-action: none; }
.lb-img {
  position: absolute; inset: 0; margin: auto; max-width: calc(100% - 144px); max-height: 100%;
  transition: transform .2s ease; cursor: zoom-in; user-select: none; -webkit-user-select: none;
}
.lb[data-zoomed] .lb-img { cursor: grab; }
.lb[data-dragging] .lb-img { cursor: grabbing; transition: none; }
.lb-nav { position: absolute; top: 50%; translate: 0 -50%; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-nav::before { content: ""; width: 14px; height: 18px; background: currentColor; -webkit-mask: var(--i-arrow) center / contain no-repeat; mask: var(--i-arrow) center / contain no-repeat; }
.lb-prev::before { transform: scaleX(-1); }
.lb-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; padding: 12px 16px 16px; min-height: 64px; text-align: center; }
.lb-cap { font-size: 18px; line-height: 1.3; }
.lb .tag { background: var(--indigo); }

@media (max-width: 860px) {
  .gallery-page { padding-block: 32px 56px; gap: 24px; }
  .gallery-head h1 { font-size: 32px; }
  .g-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }   /* phones: even square tiles */
  .g-grid .g-item, .g-grid.laid .g-item { aspect-ratio: 1; width: auto !important; height: auto !important; }
  .g-filter { gap: 6px; margin: 0 calc(-1 * var(--gutter)) -8px; padding-inline: var(--gutter); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }  /* one swipeable row on phones */
  .g-filter::-webkit-scrollbar { display: none; }
  .g-chip { white-space: nowrap; flex: none; }
  .g-chip { font-size: 14px; padding: 5px 10px; }
  .g-item figcaption { left: 4px; right: 4px; bottom: 4px; }
  .g-item .tag { font-size: 12px; padding: 3px 6px; }
  .g-item .tags li:nth-child(n+2) { display: none; }   /* one tag per thumbnail on phones; all of them in the viewer */
  .lb-img { max-width: 100%; }
  .lb-nav { top: auto; bottom: 12px; translate: none; }
  .lb-prev { left: 16px; } .lb-next { right: 16px; }
  .lb-bottom { padding-inline: 76px; min-height: 72px; }
  .lb-cap { font-size: 16px; }
}

/* Kontakt – poptávkový formulář */
.contact-page { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; padding-block: 56px 96px; color: var(--cream); }
.contact-head { display: grid; gap: 12px; margin-bottom: 32px; }
.contact-head h1 { font-size: var(--fs-h1); line-height: 1.05; }
.contact-head p { font-size: var(--fs-body); line-height: var(--lh-body); max-width: 60ch; }
.quote { display: grid; gap: 22px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 6px; align-content: start; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend, .field .label { font-weight: 700; font-size: 18px; padding: 0; }
.req { font-weight: 400; font-size: 14px; color: var(--periwinkle); }
.hint { font-size: var(--fs-small); line-height: 1.35; color: var(--periwinkle); margin-top: 2px; }
.quote input[type=text], .quote input[type=email], .quote input[type=tel], .quote textarea {
  width: 100%; border: 0; border-bottom: 3px solid var(--indigo); background: var(--cream); color: var(--navy);
  font: inherit; font-size: 18px; line-height: 1.3; padding: 10px 12px; border-radius: 0;
}
.quote textarea { resize: vertical; min-height: 160px; }
.quote input:focus-visible, .quote textarea:focus-visible { outline: 3px solid var(--red); outline-offset: 0; border-bottom-color: var(--red); }
.quote [aria-invalid="true"] { border-bottom-color: var(--red); background: #ffe9e4; }
.field legend { margin-bottom: 8px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { position: relative; cursor: pointer; }
.check input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.check span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--indigo); font-size: 16px; font-weight: 700; transition: background .15s, color .15s; }
.check span::before { content: ""; width: 12px; height: 12px; border: 2px solid currentColor; flex: none; }
.check:hover span { background: var(--red); color: var(--cream); }
.check input:checked + span { background: var(--cream); color: var(--navy); }
.check input:checked + span::before { background: var(--red); border-color: var(--red); }
.check input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.field .photo-btn { position: relative; justify-self: start; cursor: pointer; background: var(--indigo); padding: 8px 16px; font-size: 20px; }
.photo-btn:hover { background: var(--red); color: var(--cream); }
.photo-btn:hover::after { background: var(--cream); }
.photo-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.photo-btn:focus-within { outline: 3px solid var(--red); outline-offset: 2px; }
.thumbs { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs:empty { display: none; }
.thumbs li { position: relative; width: 96px; height: 96px; background: var(--indigo); }
.thumbs li.raw { display: grid; place-items: center; padding: 8px; font-size: 12px; line-height: 1.2; text-align: center; word-break: break-all; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border: 0; padding: 7px; background: var(--navy); color: var(--cream); cursor: pointer; }
.thumbs button:hover { background: var(--red); color: var(--cream); }
.thumbs button svg { width: 100%; height: 100%; display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gdpr { font-size: 14px; color: var(--periwinkle); }
.send-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.send { background: var(--red); color: var(--cream); border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 20px; padding: 10px 20px; }
.send::after { background: var(--cream); }
.send:hover { background: var(--cream); color: var(--navy); }
.send:hover::after { background: var(--navy); }
.send[disabled] { opacity: .6; cursor: progress; }
.form-msg { font-size: 16px; line-height: 22px; font-weight: 700; color: #ffb4a3; max-width: 46ch; }
.form-msg:empty { display: none; }
.form-msg.info { color: var(--periwinkle); }
.sent { display: none; scroll-margin-top: 140px; }
.quote input, .quote textarea { scroll-margin-top: 160px; }
.sent:target, .sent.show { display: block; }
.contact-main:has(.sent:target) .quote, .contact-main.done .quote { display: none; }
.contact-card { position: sticky; top: 24px; }
.contact-card .panel { gap: 14px; }
.contact-card h2 { font-size: 28px; }
.c-row { display: flex; gap: 12px; align-items: flex-start; font-size: 18px; line-height: 24px; }
.c-row a { color: inherit; font-weight: 700; }
.c-row img { flex: none; }

@media (max-width: 860px) {
  .contact-page { grid-template-columns: 1fr; gap: 40px; padding-block: 32px 56px; }
  .contact-head h1 { font-size: 32px; }
  .row2 { grid-template-columns: 1fr; }
  .contact-card { position: relative; top: auto; }
  .check span { font-size: 14px; }
}

/* ---------- Shared refinements ---------- */
@media (max-width: 860px) {
  :root { --fs-body: 17px; --fs-h1: 32px; --fs-section: 30px; --fs-h2: 28px; --fs-h3: 24px; }
}

/* Skip link: first thing a keyboard user reaches, hidden until focused. */
.skip {
  position: absolute; left: 12px; top: -100px; z-index: 100; padding: 10px 16px;
  background: var(--red); color: var(--cream); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* "Kontakt" in the top bar is the one call to action of the site: a cream block in the brand's 37° slant instead of a dash,
   red on hover. The block is the ::before skewed, so the edges stay at exactly 37° whatever the height. */
.nav-top .navlink.cta { margin-left: 14px; padding: 2px 18px 1px; color: var(--navy); }
.nav-top .navlink.cta::before {
  position: absolute; inset: 0; grid-area: auto; justify-self: stretch; align-self: stretch; width: auto; height: auto; clip-path: none;
  background: var(--cream); transform: skewX(-37deg); transition: background-color .15s ease;
}
.nav-top .navlink.cta span { padding-left: 0; }
.nav-top .navlink.cta:hover, .nav-top .navlink.cta:focus-visible, .nav-top .navlink.cta[aria-current="page"] { color: var(--cream); }
.nav-top .navlink.cta:hover::before, .nav-top .navlink.cta:focus-visible::before { width: auto; background: var(--red); }
.nav-top .navlink.cta[aria-current="page"]::before { width: auto; background: var(--red); }

/* Home product cards: the whole card is the link, the button shows where it goes. */
.product .btn::before { content: ""; position: absolute; inset: 0; z-index: 3; }
.product:hover .btn, .product:focus-within .btn { background: var(--indigo); }
.product .btn:focus-visible { outline: none; }
.product:focus-within { outline: 3px solid var(--red); outline-offset: 2px; }

/* Phone and e-mail in the footer are links, styled like the text around them. */
.contacts .row a { text-decoration: none; }
.contacts .row a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Gallery before the first photos are added */
.gallery-empty { max-width: 720px; }
.gallery-empty .panel { gap: 14px; padding: 32px; }
.gallery-empty h1 { font-size: var(--fs-h1); line-height: 1.05; }

/* Not found page */
.soon h1 { font-size: var(--fs-h1); line-height: 1.05; }
@media (max-width: 860px) { .partner-list { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: 28px 40px; } .partner-list img { max-width: 140px; } }

@media (max-width: 480px) { .nav-right { gap: 8px; } .nav-top .wrap { padding-inline: 12px; } }
@media (max-width: 399px) { .nav-top .logo svg + svg { display: none; } }   /* very narrow phones: the D mark alone */
@media (max-width: 360px) { .partner-list { gap: 24px; } .partner-list img { max-width: 120px; } }
