/* STAVEBNÍ CENTRUM Group – www.stavebni-centrum.cz
   Brand family of pazeni.cz: purple #4F4080, charcoal #25282A, white, greys #F5F5F5 / #E2E6E7,
   Red Hat Display (900) for display type, Red Hat Text for reading.
   Layout: the split stage. A sticky picture column on the left, the reading column on the right. */

@font-face { font-family: 'Red Hat Display'; src: url('/assets/red-hat-display.ttf') format('truetype'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Red Hat Text'; src: url('/assets/red-hat-text.ttf') format('truetype'); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  --bg: #ffffff;
  --surface: #f5f5f5;
  --soft: #e2e6e7;
  --ink: #25282a;
  --muted: #4a4d50;
  --accent: #4f4080;
  --accent-step: #5e5090;
  --accent-light: #d8d3e5;
  --white: #ffffff;

  --margin: clamp(20px, 2.25vw, 32px);
  --stage: 47vw;
  --read-pad: clamp(40px, 4.4vw, 72px);
  --measure: 60ch;

  /* the five sizes */
  --small: 15px;
  --body: clamp(17px, 1.2vw, 19px);
  --lead: clamp(20px, 1.7vw, 25px);
  --head: clamp(30px, 3.1vw, 46px);
  --display: clamp(64px, 11.4vw, 184px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Red Hat Text', Arial, sans-serif; font-size: var(--body); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; height: auto; }
picture { display: block; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 0.07em; }
a, button, summary, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--white); }
strong { font-weight: 700; }

h1, h2 { font-family: 'Red Hat Display', Arial, sans-serif; font-weight: 900; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: var(--head); }
h2 { font-size: var(--head); }
h3 { font-size: var(--lead); font-weight: 400; line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
h4, h5, h6 { font-size: var(--body); font-weight: 700; line-height: 1.35; }
p { max-width: var(--measure); text-wrap: pretty; }
p + p { margin-top: 0.9em; }
.lead { font-size: var(--lead); line-height: 1.42; }
.small { font-size: var(--small); line-height: 1.55; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 30; background: var(--ink); color: var(--white); padding: 14px 18px; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- controls ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 26px; background: var(--accent); color: var(--white); border: 0; border-radius: 0; text-decoration: none; font-size: var(--body); line-height: 1.2; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.button-light { background: var(--white); color: var(--ink); }
.text-link { display: inline-block; padding: 6px 0; text-decoration: underline; text-decoration-color: currentColor; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
.actions { margin-top: 32px; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--ink); }
  .button-light:hover { background: var(--accent-light); }
  .text-link:hover { color: var(--accent); }
  main a:not(.button):hover { color: var(--accent); }
}

/* ---------- the bar ---------- */
.bar { display: flex; align-items: center; gap: 28px; min-height: 96px; padding: 20px 0; }
.brand { flex: 0 0 auto; display: block; }
.brand img { width: auto; height: 30px; }
.menu-toggle { display: none; }
.nav { margin-left: auto; }
.nav > ul { display: flex; align-items: center; gap: 26px; white-space: nowrap; }
.nav a { display: inline-block; padding: 10px 0; font-size: var(--small); text-decoration: none; }
.nav a[aria-current] { text-decoration: underline; }
.nav .has-sub { position: relative; }
.nav .nav-home { display: none; }
.nav .sub { position: absolute; z-index: 20; right: -20px; top: 100%; width: 330px; padding: 12px 20px; background: var(--white); box-shadow: 0 14px 40px rgba(37, 40, 42, 0.14); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out), visibility 0s linear var(--t-ui); }
.nav .sub a { display: block; padding: 9px 0; font-size: var(--small); }
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.bar-action { min-height: 44px; padding: 10px 18px; font-size: var(--small); white-space: nowrap; }

/* language switch: a small menu on wide screens, a row in the folded menu */
.nav .lang-switch > a { font-weight: 700; letter-spacing: 0.02em; }
.nav .lang-list { width: 220px; left: auto; right: -20px; }
.nav .lang-list a { display: flex; gap: 10px; }
.lang-code { display: inline-block; min-width: 26px; font-weight: 700; }
.nav .lang-list a[aria-current] { text-decoration: underline; }
.lang-suggest { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; max-width: none; margin: 0 0 8px; padding: 12px 16px; background: var(--accent-light); font-size: var(--small); }
.lang-suggest a { font-weight: 700; }
.lang-suggest button { min-height: 36px; padding: 4px 0; border: 0; background: none; font-size: var(--small); text-decoration: underline; }
.footer-langs { display: flex; gap: 14px; }
.footer-langs a[aria-current] { font-weight: 700; text-decoration: none; }

/* ---------- the split stage ---------- */
.split { display: grid; grid-template-columns: var(--stage) minmax(0, 1fr); align-items: start; }
.split.is-wide-reading { --stage: 36vw; }
.stage-col { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 20px 0 20px 20px; }
.stage { position: relative; height: 100%; overflow: hidden; background: var(--surface); }
.stage-item { position: absolute; inset: 0; opacity: 0; transition: opacity 700ms var(--ease-soft); }
.stage-item.is-active { opacity: 1; }
.stage-item picture, .stage-item img { width: 100%; height: 100%; }
.stage-item img { object-fit: cover; }
.stage-item.is-object { background: var(--white); }
.stage-item.is-object img { object-fit: contain; padding: 10%; }
.stage-item.is-map { background: var(--soft); }
.stage-item.is-map img { object-fit: cover; }
.reading { min-width: 0; padding: 0 var(--margin) 0 var(--read-pad); }
.inline-media { display: none; }
@media (scripting: none) { .inline-media { display: block; margin: 32px 0; } }

/* ---------- home: hero ---------- */
.hero { position: relative; display: flex; flex-direction: column; min-height: calc(100svh - 96px); padding-bottom: 40px; }
.hero-copy { margin-top: clamp(24px, 13vh - 40px, 18vh); max-width: 30ch; }
.open-now { font-size: var(--small); }
.hero-phone { margin: 6px 0 30px; font-size: var(--lead); font-variant-numeric: tabular-nums; }
.hero-phone a { text-decoration: none; }
.open-now::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 50%; background: var(--soft); vertical-align: 0.02em; }
.open-now.is-open::before { background: #2f8f4e; }
.open-now.is-closed::before { background: #b9bdc0; }
.hero-lead { font-size: var(--lead); line-height: 1.3; margin-bottom: 18px; max-width: 26ch; }
.hero-copy p:not(.hero-lead):not(.open-now):not(.hero-phone) { font-size: var(--body); max-width: 34ch; }
.wordmark { position: relative; margin-top: auto; margin-left: calc(-10vw - var(--read-pad)); font-size: var(--display); line-height: 0.84; letter-spacing: -0.045em; white-space: nowrap; transform-origin: 0 100%; }
.wordmark span { display: block; }

/* ---------- home: intro ---------- */
.intro { max-width: 380px; padding: 64px 0 120px; }
.intro p + p { margin-top: 1.2em; }
.intro-first { font-weight: 700; }
.intro .text-link { margin-top: 4px; }

/* ---------- home: the list of ranges (two-ended rows) ---------- */
.ranges { max-width: 560px; padding-bottom: 180px; }
.ranges h2 { font-size: var(--head); }
.ranges-intro { margin: 22px 0 64px; }
.range-group { padding: 0 0 52px; }
.range-group h3 { font-size: var(--lead); line-height: 1.2; }
.range-group h3 a { text-decoration: none; }
.range-group > p { margin-top: 8px; font-size: var(--small); color: var(--muted); max-width: 46ch; }
.rows { margin-top: 18px; }
.rows > li > a { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; min-height: 38px; padding: 6px 0; text-decoration: none; }
.rows > li > a > span:first-child { transition: transform var(--t-hover) var(--ease-out); }
.row-value { flex: 0 0 auto; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
@media (hover: hover) and (pointer: fine) {
  .rows > li > a:hover > span:first-child { transform: translateX(8px); }
  .rows > li > a:hover { color: var(--accent); }
  .range-group h3 a:hover { color: var(--accent); }
}

/* ---------- home: about (breaks the split) ---------- */
.about { display: grid; grid-template-columns: 34% 1fr; gap: 0; padding: 160px var(--margin) 170px; background: var(--surface); }
.about-facts { grid-row: 1 / span 2; display: grid; gap: 36px; align-content: start; max-width: 300px; }
.about-facts dt { font-weight: 700; }
.about-facts dd { margin-top: 6px; color: var(--muted); }
.about-text { max-width: 56vw; }
.statement { font-size: var(--lead); line-height: 1.42; max-width: 44ch; }
.statement strong { display: block; margin-bottom: 0.6em; font-family: 'Red Hat Display', Arial, sans-serif; font-weight: 900; letter-spacing: -0.02em; line-height: 1.2; }
.about-image { grid-column: 2; margin-top: 80px; width: min(640px, 44vw); aspect-ratio: 16 / 9; overflow: hidden; }
.about-image picture, .about-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- home: practice, one frame whose contents change ---------- */
.practice { display: grid; grid-template-columns: minmax(0, 40vw) 1fr; gap: 6vw; align-items: center; min-height: 100svh; padding: 16vh var(--margin) 20vh; background: var(--bg); }
.frame { position: relative; grid-column: 1; grid-row: 1; aspect-ratio: 4 / 5; }
.practice-text { grid-column: 2; grid-row: 1; }
.frame-item { position: absolute; inset: 0; opacity: 0; transition: opacity 600ms ease; }
.frame-item:first-child, .frame-item.is-current { opacity: 1; }
.frame[data-ready] .frame-item:first-child:not(.is-current) { opacity: 0; }
.frame-item picture, .frame-item img { width: 100%; height: 100%; object-fit: cover; }
.frame-caption { position: absolute; top: calc(100% + 16px); left: 0; font-size: var(--body); }
.practice-text h2 { font-size: var(--head); max-width: 20ch; }
.practice-text .lead { margin-top: 20px; }
.frame-hint { display: none; }

/* ---------- closing: last photograph, text beside ---------- */
.closing { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 90svh; background: var(--ink); color: var(--white); overflow: hidden; }
.closing-photo { position: absolute; inset: 0; }
.closing-photo picture, .closing-photo img { width: 100%; height: 100%; object-fit: cover; }
.closing-photo img, .closing-photo video { filter: brightness(0.62); }
.closing-photo video { width: 100%; height: 100%; object-fit: cover; }
/* a soft shade under the text corner, so busy or bright ground behind the paragraph stays readable */
.closing-photo::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 58% 68% at 74% 74%, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)); pointer-events: none; }
.closing-text { position: relative; grid-column: 2; align-self: end; padding: 0 var(--margin) 12vh 4vw; max-width: 46vw; }
.closing-text h2, .closing-text p:not(.actions) { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }
.closing-text h2 { font-family: 'Red Hat Text', Arial, sans-serif; font-weight: 400; font-size: var(--head); letter-spacing: -0.025em; line-height: 1.12; max-width: 20ch; }
.closing-text p { margin-top: 20px; font-size: var(--body); max-width: 44ch; }
.closing-text .actions { margin-top: 34px; }

/* ---------- testimonials on paper slips ---------- */
.slips { position: relative; overflow: hidden; padding: 120px var(--margin) 0; background: var(--accent-light); min-height: 640px; }
.slips h2 { font-size: var(--head); }
.slip-list { position: relative; display: flex; justify-content: center; align-items: flex-start; margin: 70px auto 0; max-width: 1200px; }
.slip { position: relative; width: 320px; padding: 46px 30px 64px; background: var(--white); clip-path: polygon(0 10px, 5% 0, 10% 10px, 15% 0, 20% 10px, 25% 0, 30% 10px, 35% 0, 40% 10px, 45% 0, 50% 10px, 55% 0, 60% 10px, 65% 0, 70% 10px, 75% 0, 80% 10px, 85% 0, 90% 10px, 95% 0, 100% 10px, 100% calc(100% - 10px), 95% 100%, 90% calc(100% - 10px), 85% 100%, 80% calc(100% - 10px), 75% 100%, 70% calc(100% - 10px), 65% 100%, 60% calc(100% - 10px), 55% 100%, 50% calc(100% - 10px), 45% 100%, 40% calc(100% - 10px), 35% 100%, 30% calc(100% - 10px), 25% 100%, 20% calc(100% - 10px), 15% 100%, 10% calc(100% - 10px), 5% 100%, 0 calc(100% - 10px)); }
.slip:nth-child(1) { width: 340px; min-height: 330px; transform: rotate(-4deg); margin-top: 30px; }
.slip:nth-child(2) { width: 300px; min-height: 380px; transform: rotate(2deg); margin-left: -36px; z-index: 1; }
.slip:nth-child(3) { width: 320px; min-height: 460px; transform: rotate(5deg); margin-left: -36px; margin-top: 70px; z-index: 2; }
.slip blockquote p { font-size: var(--lead); line-height: 1.38; }

/* ---------- brands: names running off both edges ---------- */
.brands { background: var(--bg); }
.band { display: flex; align-items: center; height: 34vh; min-height: 220px; overflow: hidden; background: var(--ink); color: var(--white); }
.band-track { display: flex; flex: 0 0 auto; white-space: nowrap; font-family: 'Red Hat Display', Arial, sans-serif; font-weight: 900; font-size: var(--display); letter-spacing: -0.035em; line-height: 1; }
.band-track span { display: inline-flex; align-items: center; }
.band-track span::after { content: ''; display: inline-block; width: 0.22em; height: 0.22em; margin: 0 0.5em; border-radius: 50%; background: var(--accent-light); }
.band-note { padding: 26px var(--margin) 40px; font-family: 'Red Hat Text', Arial, sans-serif; font-weight: 400; font-size: var(--body); letter-spacing: 0; line-height: 1.5; }

/* ---------- contact strip ---------- */
.contact-strip { padding: 48px 0 110px; background: var(--accent); color: var(--white); overflow: hidden; }
.strip { display: flex; gap: 8px; width: max-content; margin-left: -60px; }
.strip li { height: 150px; flex: 0 0 auto; }
.strip li:nth-child(3n + 1) { width: 112px; }
.strip li:nth-child(3n + 2) { width: 150px; }
.strip li:nth-child(3n) { width: 225px; }
.strip picture, .strip img { width: 100%; height: 100%; object-fit: cover; }
.contact-strip-body { padding: 72px var(--margin) 0; }
.contact-strip h2 { font-size: var(--head); }
.cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 40px; }
.cells li { display: flex; flex-direction: column; gap: 6px; min-height: 176px; padding: 26px 28px; background: var(--accent-step); transition: background-color var(--t-hover) ease; }
.cell-label { font-size: var(--small); }
.cell-value { font-size: var(--lead); line-height: 1.3; text-decoration: none; overflow-wrap: anywhere; }
.cell-note { margin-top: auto; font-size: var(--small); }
.cells a { color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .cells li:hover { background: #6b5d9c; }
  .cells a:hover { text-decoration-color: var(--accent-light); }
}

/* ---------- footer: photograph half, menu half ---------- */
.site-footer { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; background: var(--surface); }
.footer-photo { position: relative; overflow: hidden; }
.footer-photo picture, .footer-photo img { width: 100%; height: 100%; object-fit: cover; }
.footer-menu { display: flex; flex-direction: column; padding: 80px var(--margin) 28px 8vw; }
.footer-menu .brand img { height: 26px; }
.footer-menu nav { margin-top: 64px; }
.footer-menu nav h2, .footer-blocks h2 { font-family: 'Red Hat Text', Arial, sans-serif; font-weight: 400; font-size: var(--small); letter-spacing: 0; line-height: 1.5; color: var(--muted); }
.footer-links { margin-top: 18px; display: grid; gap: 10px; }
.footer-links a { display: inline-block; font-family: 'Red Hat Display', Arial, sans-serif; font-weight: 900; font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -0.03em; line-height: 1.12; text-decoration: none; transition: transform var(--t-hover) var(--ease-out), color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .footer-links:hover a { color: var(--muted); }
  .footer-links a:hover { color: var(--ink); transform: translateX(12px); }
}
.footer-blocks { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; margin-top: 64px; font-size: var(--small); }
.footer-blocks p { margin-top: 8px; }
.footer-blocks .open-now { margin: 12px 0 0; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; max-width: none; margin-top: auto; padding-top: 48px; font-size: var(--small); }
.legal span { display: flex; gap: 20px; }

/* ---------- range pages ---------- */
.range { padding-bottom: 140px; }
.crumbs { margin-top: 12px; font-size: var(--small); }
.crumbs a { text-decoration: underline; }
.range h1 { margin-top: 10px; font-size: clamp(40px, 4.4vw, 66px); max-width: 16ch; }
.range .block { margin-top: 64px; }
.range .block.level-2 { margin-top: 104px; }
.range .block .block { margin-top: 48px; }
.range .block.level-4, .range .block.level-5 { margin-top: 40px; }
.range h2 { font-size: clamp(30px, 2.6vw, 40px); margin-bottom: 22px; }
.range h3 { margin-bottom: 16px; font-family: 'Red Hat Display', Arial, sans-serif; font-weight: 900; letter-spacing: -0.02em; }
.range h4 { margin-bottom: 10px; font-size: var(--lead); font-weight: 400; }
.range p + .table-scroll, .range p + .features, .range .features + .list, .range p + .list { margin-top: 24px; }
.list { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; max-width: var(--measure); }
.list li { position: relative; padding-left: 22px; }
.list li::before { content: ''; position: absolute; left: 0; top: 0.68em; width: 8px; height: 8px; background: var(--accent); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 30px 0; }
.features dt { font-family: 'Red Hat Display', Arial, sans-serif; font-weight: 900; font-size: var(--lead); letter-spacing: -0.02em; }
.features dd { margin-top: 8px; font-size: var(--small); }
.table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; margin-top: 22px; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: var(--small); line-height: 1.4; }
th, td { padding: 11px 14px 11px 0; text-align: left; vertical-align: top; }
tbody tr:nth-child(odd) > * { background: var(--surface); }
tbody th { font-weight: 400; padding-left: 12px; }
tbody tr > td:last-child { padding-right: 12px; }
thead th { font-weight: 700; padding-bottom: 12px; }
.specs { max-width: 620px; }
.specs tbody th { width: 46%; }
.specs-wide thead th { vertical-align: bottom; }
.data-table { margin-top: 30px; }
.data-table figcaption { font-weight: 700; }
.data-table table { min-width: 720px; }
@media (min-width: 1000px) { .data-table table { min-width: 0; } .data-table th, .data-table td { padding-right: 8px; } .data-table thead th { min-width: 0; hyphens: auto; } }
.data-table thead th { font-size: var(--small); font-weight: 700; line-height: 1.3; padding: 0 12px 12px 0; min-width: 72px; }
.data-table tbody th { white-space: nowrap; font-weight: 700; position: sticky; left: 0; }
.data-table tbody tr:nth-child(even) > th { background: var(--bg); }
.data-table td { white-space: pre-line; }
.unit { font-weight: 400; color: var(--muted); white-space: nowrap; }

.callout { margin-top: 56px; padding: 34px 32px 30px; background: var(--surface); max-width: 640px; }
.callout h2 { font-family: 'Red Hat Text', Arial, sans-serif; font-weight: 700; font-size: var(--body); letter-spacing: 0; margin-bottom: 18px; }
.people-short { display: grid; gap: 16px; }
.people-short dt { font-size: var(--small); color: var(--muted); }
.people-short dd { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; font-size: var(--lead); line-height: 1.3; }
.people-short .phone { font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; }
.callout h3 { margin: 30px 0 10px; font-size: var(--body); font-weight: 700; }
.docs li + li { margin-top: 4px; }
.docs a { display: inline-block; padding: 5px 0; }
.callout .text-link { margin-top: 14px; }
.pazeni-link { margin-top: 18px; }

.gallery { margin-top: 28px; }
.gallery figcaption { font-size: var(--lead); margin-bottom: 14px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb { display: block; width: 150px; height: 112px; padding: 0; border: 0; background: var(--surface); overflow: hidden; transition: opacity var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.thumb picture, .thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:active { transform: scale(0.97); }
.thumb[aria-pressed='true'] { outline: 3px solid var(--accent); outline-offset: 3px; }
.gallery-top { margin-top: 30px; }
@media (hover: hover) and (pointer: fine) { .thumbs:hover .thumb:not(:hover) { opacity: 0.7; } }

.logos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.logos li { width: 160px; padding: 16px; background: var(--white); }
.logos img { width: 100%; height: auto; mix-blend-mode: multiply; }

.film { margin-top: 28px; max-width: 640px; }
.film-link { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.film-link picture, .film-link img, .film iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.film-play { position: absolute; left: 0; bottom: 0; display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 14px 20px; background: var(--accent); color: var(--white); font-size: var(--small); transition: background-color var(--t-hover) ease; }
.film-play::before { content: ''; width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent currentColor; }
.film figcaption { margin-top: 12px; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .film-link:hover .film-play { background: var(--ink); } }

/* pipe-plug finder */
.finder { margin-top: 64px; padding: 36px 32px 34px; background: var(--accent); color: var(--white); max-width: 680px; }
.finder h2 { font-size: clamp(30px, 2.6vw, 40px); margin-bottom: 14px; }
.finder-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; margin-top: 26px; }
.finder-form label { grid-column: 1 / -1; font-size: var(--small); }
.finder-input { display: flex; align-items: center; background: var(--white); color: var(--ink); }
.finder-input input { width: 100%; min-height: 56px; padding: 12px 16px; border: 0; background: transparent; font-size: var(--lead); font-variant-numeric: tabular-nums; }
.finder-input span { padding-right: 16px; color: var(--muted); }
.finder .button { background: var(--ink); min-height: 56px; }
.finder-result { margin-top: 22px; }
.finder-result:empty { display: none; }
.finder-result p { font-size: var(--lead); line-height: 1.35; }
.finder-result ul { margin-top: 14px; }
.finder-result li { display: flex; justify-content: space-between; gap: 18px; padding: 9px 12px; background: var(--accent-step); font-variant-numeric: tabular-nums; }
.finder-result li + li { margin-top: 4px; }
.finder-result a { color: var(--white); }
.finder-types { margin-top: 22px; }
.finder-types a { display: flex; justify-content: space-between; gap: 20px; padding: 7px 0; font-size: var(--small); text-decoration: none; color: var(--white); }
.finder-types .row-value { color: var(--accent-light); }
@media (hover: hover) and (pointer: fine) { .finder-types a:hover { text-decoration: underline; } .finder .button:hover { background: var(--white); color: var(--ink); } }

/* sortiment */
.range-list { margin-top: 56px; display: grid; gap: 4px; max-width: 640px; }
.range-card > a { display: grid; gap: 6px; padding: 22px 0 24px; text-decoration: none; }
.range-name { font-family: 'Red Hat Display', Arial, sans-serif; font-weight: 900; font-size: clamp(26px, 2.4vw, 36px); letter-spacing: -0.03em; line-height: 1.1; transition: transform var(--t-hover) var(--ease-out), color var(--t-hover) ease; }
.range-text { color: var(--muted); max-width: 52ch; }
@media (hover: hover) and (pointer: fine) { .range-card > a:hover .range-name { transform: translateX(10px); color: var(--accent); } }

/* kontakt */
.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; margin-top: 44px; max-width: 640px; }
.details h2 { font-family: 'Red Hat Text', Arial, sans-serif; font-weight: 700; font-size: var(--body); letter-spacing: 0; margin-bottom: 8px; }
.details p { font-size: var(--body); }
.details .open-now { margin: 12px 0 0; }
.map-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 28px; }
.map-credit { margin-top: 6px; color: var(--muted); }
.form-section { margin-top: 90px; }
.form-section > p { margin-bottom: 30px; }
.contact-form { max-width: 640px; }
.contact-form label, .contact-form legend { display: block; margin: 22px 0 8px; font-size: var(--small); font-weight: 700; padding: 0; }
.contact-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.form-pair legend { grid-column: 1 / -1; }
.hint { display: block; margin-top: 6px; font-size: var(--small); color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea { display: block; width: 100%; min-height: 56px; padding: 14px 16px; border: 0; border-radius: 0; background: var(--surface); font-size: var(--body); transition: background-color var(--t-hover) ease; }
.contact-form textarea { min-height: 180px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { background: var(--soft); }
.contact-form [aria-invalid='true'] { background: #f6e3e3; }
.contact-form .small { margin-top: 18px; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 18px; font-size: var(--body); }
.form-status.is-error { color: #a12a2a; }
.form-status.is-ok { color: #23683a; }
.departments { margin-top: 110px; }
.departments > p { margin-bottom: 8px; }
.dept { margin-top: 26px; max-width: 680px; }
.dept h3 { font-size: var(--lead); margin-bottom: 4px; }
.rows.people { margin-top: 0; }
.people li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 24px; align-items: baseline; padding: 7px 0; font-size: var(--small); line-height: 1.45; }
.people li + li { border-top: 0; }
.people .person { display: block; }
.people .row-value { text-align: right; line-height: 1.45; }
.people .row-value a { white-space: nowrap; }
/* The department pictures belong to the stage only; inline they would break up the list. */
.dept .inline-media { display: none; }
.people a { text-decoration: none; }
.people a:hover { text-decoration: underline; }
.not-found { min-height: 60vh; padding-top: 10vh; }
.plain { padding: 0 var(--margin); }

/* ---------- the bar folds into a menu when its links do not fit (site.js measures) ---------- */
.bar.is-folded { flex-wrap: wrap; gap: 12px 20px; }
.bar.is-folded .menu-toggle { display: inline-flex; align-items: center; margin-left: auto; min-height: 44px; padding: 8px 4px; border: 0; background: none; font-size: var(--small); text-decoration: underline; }
.bar.is-folded .bar-action { order: 2; }
.bar.is-folded .nav { order: 3; flex: 1 0 100%; margin: 0; display: none; }
.bar.is-folded .nav.is-open { display: block; }
.bar.is-folded .nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 16px; white-space: normal; }
.bar.is-folded .nav a { display: block; padding: 12px 0; font-size: var(--lead); }
.bar.is-folded .nav .sub { position: static; width: auto; padding: 0 0 8px 16px; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
.bar.is-folded .nav .sub a { font-size: var(--body); padding: 10px 0; }
.bar.is-folded .nav .nav-home { display: block; }
.bar.is-folded .nav .lang-switch > a { display: none; }
.bar.is-folded .nav .lang-list { display: flex; flex-wrap: wrap; gap: 4px 18px; width: auto; padding: 8px 0 0; }
.bar.is-folded .nav .lang-list a { font-size: var(--body); }
@media (scripting: none) {
  .bar.is-folded .menu-toggle { display: none; }
  .bar.is-folded .nav { display: block; }
}

/* ---------- phones and tablets ---------- */
@media (max-width: 999px) {
  :root { --read-pad: var(--margin); }
  .split { display: flex; flex-direction: column; align-items: stretch; }
  .reading > main { min-width: 0; }
  .reading { display: contents; }
  .reading > .bar { order: -1; padding: 12px var(--margin); min-height: 64px; }
  .bar.is-folded { gap: 10px 12px; }
  .brand img { height: 21px; }
  .bar-action { min-height: 44px; padding: 10px 12px; }
  .reading > main { padding: 0 var(--margin); }
  .stage-col { position: relative; height: auto; padding: 0 12px; }
  .stage { height: 58svh; min-height: 320px; }
  .range-page .stage, .sortiment-page .stage, .kontakt-page .stage { height: 46svh; min-height: 280px; }
  .stage-item:not(.is-first) { display: none; }
  .stage-item.is-first { opacity: 1; }
  .inline-media { display: block; margin: 20px 0 8px; }
  .inline-media.is-object { background: var(--white); padding: 16px; }
  .inline-media.is-object img { max-height: 340px; width: auto; margin: 0 auto; }
  .inline-media:not(.is-object) img { max-height: 70svh; width: 100%; object-fit: cover; }
  .hero { min-height: 0; padding: 0 0 48px; margin-top: -9vw; }
  /* the wordmark overlaps the foot of the home picture: fade that edge to white so the letters keep their contrast */
  .split-home .stage::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 12vw; background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8)); pointer-events: none; }
  .hero-copy { order: 2; margin-top: 26px; max-width: none; }
  :root { --display: 18.4vw; }
  .wordmark { order: 1; margin-left: 0; line-height: 0.84; }
  .intro { max-width: 78%; padding: 56px 0 88px; }
  .ranges { padding-bottom: 96px; }
  .ranges-intro { margin-bottom: 44px; }
  .rows > li > a { min-height: 44px; padding: 10px 0; }
  .about { display: flex; flex-direction: column; padding: 88px var(--margin) 96px; }
  .about-text { order: -1; }
  .about-image { width: 100%; margin-top: 44px; }
  .about-text { max-width: none; }
  .about-facts { grid-template-columns: 1fr 1fr; gap: 24px 16px; margin-top: 44px; max-width: none; }
  .practice { display: block; min-height: 0; padding: 88px var(--margin) 110px; }
  .frame { width: 72vw; margin: 0 auto; cursor: pointer; }
  .frame-caption { left: 0; right: 0; text-align: center; }
  .practice-text { margin-top: 0; }
  .practice-text { margin-bottom: 48px; }
  .practice-text h2 { max-width: none; }
  .closing { display: block; min-height: 0; background: var(--ink); }
  .closing-photo { position: relative; height: 70svh; }
  .closing-photo img { filter: none; }
  .closing-photo::after { content: none; }
  .closing-text { max-width: none; padding: 44px var(--margin) 64px; }
  .closing-text h2, .closing-text p:not(.actions) { text-shadow: none; }
  .closing-text h2 { font-size: var(--lead); line-height: 1.25; }
  .slips { padding: 88px var(--margin) 40px; min-height: 0; }
  .slip-list { display: block; margin-top: 44px; }
  .slip { width: 78%; min-height: 0 !important; margin: -32px 0 0 !important; padding: 40px 24px 52px; }
  .slip:nth-child(1) { margin-top: 0 !important; transform: rotate(-2.5deg); }
  .slip:nth-child(2) { margin-left: auto !important; transform: rotate(2deg); }
  .slip:nth-child(3) { transform: rotate(-3deg); }
  .band { height: 22vh; min-height: 140px; }
  .band-track { font-size: var(--display); }
  .band-note { padding: 20px var(--margin) 30px; }
  .contact-strip { min-height: 0; padding: 32px 0 64px; }
  .strip { display: grid; grid-template-columns: 2fr 3fr 2fr; width: auto; margin: 0; padding: 0 12px; }
  .strip li { width: auto !important; height: 96px; }
  .strip li:nth-child(n + 7) { display: none; }
  .contact-strip-body { padding-top: 48px; }
  .cells { grid-template-columns: 1fr; }
  .cells li { min-height: 0; padding: 22px 20px; }
  .cell-note { margin-top: 10px; }
  .site-footer { display: block; min-height: 0; }
  .footer-photo { height: 50svh; }
  .footer-menu { padding: 44px var(--margin) 28px; }
  .footer-menu nav { margin-top: 40px; }
  .footer-links a { font-size: var(--head); }
  .footer-blocks { grid-template-columns: 1fr; gap: 28px; margin-top: 44px; }
  .legal { padding-top: 40px; }
  .range { padding-bottom: 90px; }
  .range h1 { font-size: clamp(30px, 8.4vw, 44px); }
  .range h2 { font-size: 26px; }
  .range h1.is-long { font-size: clamp(26px, 6.9vw, 40px); }
  .features { grid-template-columns: 1fr; }
  .callout { padding: 26px 20px; margin-left: calc(-1 * var(--margin) + 12px); margin-right: calc(-1 * var(--margin) + 12px); }
  .thumbs { display: grid; grid-template-columns: 1fr 1fr; }
  .thumbs li:first-child:nth-last-child(odd), .thumbs li:first-child:nth-last-child(odd) ~ li:last-child { grid-column: span 1; }
  .thumb { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .finder { padding: 28px 20px; margin-left: calc(-1 * var(--margin) + 12px); margin-right: calc(-1 * var(--margin) + 12px); }
  .finder-form { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr; gap: 24px; }
  .form-pair { grid-template-columns: 1fr; }
  .contact-form .button { width: 100%; }
  .people li { grid-template-columns: 1fr; }
  .people .row-value { text-align: left; }
  .people .row-value br { display: none; }
  .people .row-value br + a { margin-left: 14px; }
}


/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy > * { animation: rise var(--t-reveal) var(--ease-out) both; }
  .js .hero-copy > :nth-child(2) { animation-delay: 80ms; }
  .js .hero-copy > :nth-child(3) { animation-delay: 160ms; }
  .js .hero-copy > :nth-child(4) { animation-delay: 240ms; }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-reveal].d1 { transition-delay: 70ms; }
  .js [data-reveal].d2 { transition-delay: 140ms; }
  .js [data-reveal].d3 { transition-delay: 210ms; }
  .js [data-reveal].d4 { transition-delay: 280ms; }
  .band-track { animation: marquee 40s linear infinite; }
  .stage-item.is-active img { animation: settle 9s var(--ease-soft) both; }
  .closing-photo img { transform-origin: 50% 60%; }
  @supports (animation-timeline: view()) {
    .wordmark { animation: shrink linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    .closing-photo img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .footer-photo img { animation: grow linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
  }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes settle { from { transform: scale(1.05); } to { transform: none; } }
@keyframes shrink { to { transform: scale(0.94); } }
@keyframes drift { from { transform: scale(1.08) translateY(-3%); } to { transform: scale(1.08) translateY(3%); } }
@keyframes grow { from { transform: scale(1.12); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .stage-item, .frame-item { transition-duration: 1ms; }
}

@media print {
  .stage-col, .bar, .contact-strip, .footer-photo, .closing-photo, .band { display: none; }
  .split { display: block; }
}
.nav .lang-switch > a::after { content: ''; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; border-bottom-width: 0; vertical-align: 2px; }
/* Long compounds (German above all) may not fit a heading line: hyphenate them, never overflow. */
h1, h2, h3, h4, .range-name, .footer-links a, .features dt { overflow-wrap: break-word; }
:lang(de) h1, :lang(de) h2, :lang(de) h3, :lang(de) .range-name, :lang(de) .footer-links a, :lang(de) .features dt { hyphens: auto; }
:lang(pl) h1, :lang(pl) h2 { hyphens: auto; }
/* Long page titles (some translations run to 40 characters) step down so they stay on two lines. */
.range h1.is-long { font-size: clamp(30px, 3.6vw, 52px); max-width: 24ch; }

.m-sklad-stavebni-chemie-palety{object-position:58% 50%}
.m-ramove-bedneni-vnitrni-roh-sten{object-position:62% 50%}
.m-pazici-boxy-vykop-v-lese{object-position:45% 50%}
.m-pazici-boxy-s-rozperami-na-plose{object-position:25% 50%}
