/*
Theme Name: Septiky-Žumpy.cz by Pencilino
Theme URI: https://www.septiky-zumpy.cz
Author: Digitalka
Description: Vlastní šablona pro Septiky, žumpy, jímky, garáže s.r.o. Rozložení drží šablona, texty, obrázky, ceny a kontakty se upravují přímo na webu přes Pencilino. Menu a novinky ve WordPressu, poptávkový formulář, URL 1:1 se starým webem a přesměrování.
Version: 2.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: septiky
*/


@font-face { font-family: "Geist"; font-weight: 400; font-display: swap; src: url(assets/fonts/Geist-Regular.woff2) format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 500; font-display: swap; src: url(assets/fonts/Geist-Medium.woff2) format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 600; font-display: swap; src: url(assets/fonts/Geist-SemiBold.woff2) format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 700; font-display: swap; src: url(assets/fonts/Geist-Bold.woff2) format("woff2"); }

:root {
  --bg: #ffffff;
  --bg-soft: #f6f5f3;
  --line: #e8e4e0;
  --line-strong: #d6d1cc;
  --ink: #2f2f2f;
  --ink-2: #4f4b48;
  --ink-3: #6b6764;
  --accent: #bf4a10;
  --accent-hover: #a33a00;
  --accent-soft: #fdf0e8;
  --accent-ink: #a33a00;
  --drop: #3f6fa8;
  --dark: #2f2f2f;
  --ok: #18794e;
  --err: #c0341d;

  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1160px;
  --section: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.site img { display: block; max-width: 100%; height: auto; }
/* Base element styles only inside the theme wrapper (zero extra specificity), so
   they never leak into WordPress / Pencilino overlays such as the media modal. */
:where(.site) a { color: var(--accent); text-decoration: none; }
:where(.site) a:hover { text-decoration: underline; text-underline-offset: .2em; }
:where(.site) :is(h1, h2, h3) { color: var(--ink); margin: 0; font-weight: 600; text-wrap: balance; }
:where(.site) h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.038em; }
:where(.site) h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -.032em; }
:where(.site) h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -.015em; }
:where(.site) p { margin: 0 0 1em; text-wrap: pretty; }
:where(.site) p:last-child { margin-bottom: 0; }
:where(.site) :is(strong, b) { color: var(--ink); font-weight: 600; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.fine { font-size: .9rem; color: var(--ink-3); max-width: 70ch; }
/* WordPress core class (admin bar, media modal, Pencilino UI) */
.screen-reader-text { border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { clip-path: none; height: auto; width: auto; display: block; left: 5px; top: 5px; padding: 15px 23px 14px; z-index: 100000; background: #f1f1f1; color: #21759b; font-size: .875rem; font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 60; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 2 * 20px); margin-inline: auto; }

.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico-lg { width: 24px; height: 24px; color: var(--accent); }

/* ---------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 500 1rem/1 var(--font); letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--bg); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-soft { background: var(--accent-soft); color: var(--accent-ink); }
.btn-soft:hover { background: #fbe2d3; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- nav */

.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { display: block; width: 34px; height: 22px; overflow: hidden; }
.brand-mark img { width: 34px; height: auto; }
.brand-name { font-weight: 600; font-size: 1.05rem; letter-spacing: -.02em; }
.brand-name span { color: var(--ink-3); font-weight: 500; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { color: var(--ink-2); font-size: .95rem; font-weight: 500; padding: 8px 12px; border-radius: 999px; }
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); text-decoration: none; }
.nav-links a[aria-current] { color: var(--ink); background: var(--bg-soft); }
.nav-toggle { display: none; }

/* ---------- hero */

.hero { padding-block: clamp(48px, 8vw, 104px) var(--section); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { max-width: 11ch; }
.hero .lead { margin-top: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-facts { list-style: none; padding: 0; margin: 44px 0 0; display: flex; flex-wrap: wrap; gap: 8px 32px; color: var(--ink-3); font-size: .95rem; }
.hero-media { margin: 0; }
.hero-media img, .figure-frame img { width: 100%; border-radius: 24px; border: 1px solid var(--line); }

/* ---------- sections */

.section { padding-block: var(--section); }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .lead { margin-top: 18px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.split-top { align-items: start; }
.split .lead { margin-top: 18px; margin-bottom: 1.4em; }
.figure-frame { margin: 0; }
.figure-white img { background: #fff; padding: clamp(16px, 3vw, 36px); }

/* ---------- comparison */

.compare-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 1.2rem; font-weight: 600; letter-spacing: -.015em; color: var(--ink); width: 27%; padding-block: 22px; background: var(--bg-soft); }
.compare thead td { background: var(--bg-soft); }
.compare tbody th { font-weight: 500; color: var(--ink-3); font-size: .95rem; width: 19%; }
.compare-price b { display: block; font-size: 1.35rem; letter-spacing: -.02em; }
.compare-price span { font-size: .9rem; color: var(--ink-3); }
.compare-act td { border-bottom: 0; padding-block: 18px 22px; }

.compare-cards { display: none; gap: 12px; }
.pcard { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 20px; }
.pcard header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pcard h3 { font-size: 1.4rem; letter-spacing: -.02em; }
.pcard header p { margin: 0; font-size: .9rem; color: var(--ink-3); }
.pcard header strong { font-size: 1.1rem; }
.pcard-does { margin: 6px 0 16px; font-size: .95rem; }
.pcard dl { margin: 0 0 14px; }
.pcard dl div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.pcard dt { color: var(--ink-3); }
.pcard dd { margin: 0; color: var(--ink); }

.uses { margin-top: clamp(56px, 7vw, 88px); }
.uses h3 { font-size: 1.4rem; margin-bottom: 20px; }
.uses ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; border-top: 1px solid var(--line); }
.uses li { border-bottom: 1px solid var(--line); }
.use {
  display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-items: center;
  width: 100%; padding: 18px 4px; background: none; border: 0; text-align: left; cursor: pointer;
  font: inherit; color: var(--ink-2);
}
.use strong { grid-column: 1; font-size: 1.05rem; letter-spacing: -.01em; }
.use span { grid-column: 1; font-size: .95rem; color: var(--ink-3); margin-top: 2px; }
.use::after {
  content: "Poptat"; grid-column: 2; grid-row: 1 / span 2;
  font-size: .9rem; font-weight: 500; color: var(--accent);
  opacity: 0; transform: translateX(-4px); transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.use:hover::after, .use:focus-visible::after { opacity: 1; transform: none; }
.use:hover strong { color: var(--accent); }

/* ---------- points */

.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.points li { display: flex; gap: 14px; align-items: flex-start; }
.points .ico-lg { margin-top: 2px; }
.points strong { display: block; font-size: 1.05rem; letter-spacing: -.01em; }
.points p { margin: 4px 0 0; font-size: .95rem; color: var(--ink-3); }

/* ---------- price list */

.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--bg-soft); border-radius: 999px; margin-bottom: 40px; }
.tabs button {
  border: 0; background: transparent; color: var(--ink-2); cursor: pointer;
  font: 500 .95rem/1 var(--font); padding: 11px 18px; border-radius: 999px; min-height: 42px;
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(47, 47, 47, .08), 0 2px 8px rgba(47, 47, 47, .06); }
.panel:focus-visible { outline-offset: 10px; }
.panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; align-items: start; }
.panel > .fine { margin-top: 24px; }

.prices { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.prices caption { text-align: left; font-size: 1.15rem; font-weight: 600; color: var(--ink); letter-spacing: -.015em; padding-bottom: 14px; }
.prices thead th { text-align: left; font-size: .8rem; font-weight: 500; color: var(--ink-3); padding: 0 8px 10px 0; border-bottom: 1px solid var(--line-strong); }
.prices th, .prices td { padding: 12px 8px 12px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.prices tbody th { text-align: left; font-weight: 600; color: var(--ink); white-space: nowrap; }
.prices-3 tbody th, .prices-plain tbody th { white-space: normal; font-weight: 500; }
.prices .vol { color: var(--ink-2); white-space: nowrap; }
.prices .price b { display: block; font-weight: 500; white-space: nowrap; }
.prices .price span { display: block; font-size: .82rem; color: var(--ink-3); white-space: nowrap; }
.prices td.act { text-align: right; padding-right: 0; width: 1%; }
.prices td.act .ask {
  background: none; border: 0; cursor: pointer; white-space: nowrap;
  font: 500 .9rem/1 var(--font); color: var(--accent);
  padding: 8px 12px; border-radius: 999px; min-height: 36px;
  transition: background-color .2s var(--ease);
}
.prices td.act .ask:hover { background: var(--accent-soft); }
.prices tbody tr { transition: background-color .2s var(--ease); }
.prices tbody tr:hover, .prices tbody tr.is-picked { background: var(--bg-soft); }

.sk-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(48px, 6vw, 72px); }
.sk-gallery figure { margin: 0; }
.sk-gallery img { border-radius: var(--radius); border: 1px solid var(--line); }
.sk-gallery figcaption { margin-top: 10px; font-size: .9rem; color: var(--ink-3); }
.sk-gallery figcaption b { margin-right: 6px; }

/* ---------- garages */

.specs { margin: 0 0 24px; border-top: 1px solid var(--line-strong); }
.specs div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--ink-3); font-size: .95rem; }
.specs dd { margin: 0; color: var(--ink); }
.price-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.price-row p { margin: 0; }
.price-row strong { font-size: 1.6rem; letter-spacing: -.02em; }

/* ---------- about */

.quote { margin: 0; padding: clamp(28px, 4vw, 44px); background: var(--bg-soft); border-radius: var(--radius); }
.quote p { font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.45; color: var(--ink); letter-spacing: -.015em; }
.quote footer { margin-top: 20px; display: flex; flex-direction: column; font-size: .95rem; }
.quote footer span { color: var(--ink-3); }

/* ---------- contact + form */

.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
.contact-info .lead { margin-top: 18px; }
.contact-phone { display: inline-block; margin-top: 28px; font-size: clamp(1.9rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.contact-phone:hover { color: var(--accent); text-decoration: none; }
.contact-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }

.form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 3.4vw, 40px); container-type: inline-size; }
/* Two fields side by side only when the form is wide enough for full select labels. */
@container (max-width: 520px) { .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; min-width: 0; }
.field label { font-size: .9rem; font-weight: 500; color: var(--ink); }
.field .opt { color: var(--ink-3); font-weight: 400; margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--font); color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 12px 14px; min-height: 48px; caret-color: var(--accent);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .6s var(--ease);
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2369717b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
}
.field textarea { resize: vertical; min-height: 96px; }
.field ::placeholder { color: #6b737c; opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b9c0c8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field.flash input, .field.flash select { background-color: var(--accent-soft); }
.field .err { display: none; color: var(--err); font-size: .85rem; }
.field.invalid input { border-color: var(--err); }
.field.invalid input:focus { box-shadow: 0 0 0 4px #fbe9e6; }
.field.invalid .err { display: block; }
.field-check { margin: 4px 0 20px; }
.consent-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; font-weight: 400; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.consent-check input { width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; padding: 0; flex: none; accent-color: var(--accent); cursor: pointer; }
.field.invalid .consent-check { color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn-block { margin-top: 8px; min-height: 52px; font-size: 1.05rem; }
.form-note { margin: 14px 0 0; font-size: .85rem; color: var(--ink-3); text-align: center; }
.form-status { margin: 10px 0 0; font-size: .95rem; text-align: center; min-height: 1.4em; }
.form-status.err { color: var(--err); }

.form-done { display: none; text-align: center; padding: clamp(32px, 6vw, 72px) 8px; outline: none; }
.form.sent .form-fields { display: none; }
.form.sent .form-done { display: block; animation: rise .5s var(--ease) both; }
.done-ico { width: 56px; height: 56px; margin: 0 auto 20px; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.done-ico path { stroke-dasharray: 32; stroke-dashoffset: 32; animation: draw .5s .25s var(--ease) forwards; }
.form-done h3 { font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: 10px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- footer */

.foot { background: var(--bg-soft); border-top: 1px solid var(--line); padding-block: 72px 40px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.2fr .9fr 1.1fr 1fr; gap: 40px; }
.foot-brand { font-weight: 600; font-size: 1.05rem; letter-spacing: -.02em; color: var(--ink); }
.foot-brand span { color: var(--ink-3); font-weight: 500; }
.foot-addr { margin-top: 16px; }
.foot-h { font-size: .82rem; font-weight: 500; color: var(--ink-3); margin-bottom: 12px; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-links a { color: var(--ink); }
.foot-phone { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.foot-eu { display: flex; align-items: center; gap: 28px; margin-top: 48px; padding: 24px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.foot-eu img { width: 100%; max-width: 420px; flex: none; }
.foot-eu p { margin: 0; font-size: .88rem; line-height: 1.55; color: var(--ink-2); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--ink-3); }

/* ---------- subpages */

.page-head { padding-block: clamp(32px, 5vw, 64px) clamp(8px, 2vw, 16px); }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); line-height: 1.05; letter-spacing: -.035em; max-width: 20ch; }
.page-head .lead { margin-top: 18px; }
.crumbs ol { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .9rem; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--line-strong); }
.crumbs a { color: var(--ink-2); }
.crumbs [aria-current] { color: var(--ink-3); }

.section-tight { padding-block: clamp(28px, 4vw, 48px); }
.section-tight + .section-tight { padding-top: 0; }
main > .section-tight:last-of-type { padding-bottom: var(--section); }
.h-small { font-size: 1.35rem; line-height: 1.3; letter-spacing: -.018em; margin: 0 0 18px; }
* + .h-small { margin-top: 44px; }

.prose > * { max-width: 760px; }
.prose > * + * { margin-top: 1em; }
.prose p { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.2; letter-spacing: -.025em; margin-top: 2em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.8em; }
.prose h4 { color: var(--ink); font-size: 1.05rem; margin: 1.6em 0 0; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--ink-3); }
.prose img { border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose td, .prose th { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose a:not(.more) { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); text-underline-offset: .2em; }
.prose a:hover { text-decoration-color: currentColor; }
.prose.legal h2 { font-size: 1.35rem; letter-spacing: -.015em; margin-top: 40px; }
.article-img { margin: 0 0 32px; }
.prose .note { padding: 16px 20px; background: var(--accent-soft); border-radius: var(--radius-sm); color: var(--ink); font-size: .95rem; }
.article-img img { border: 1px solid var(--line); max-height: 420px; width: auto; }

.cats { display: grid; gap: 0; }
.cats > .cat { max-width: 860px; }
.cat { padding-block: 32px; border-top: 1px solid var(--line); }
.cat:first-child { border-top: 0; padding-top: 0; }
.cat h2 { font-size: clamp(1.45rem, 2.2vw, 1.75rem); letter-spacing: -.022em; margin: 0 0 12px; }
.cat h2 a { color: var(--ink); text-decoration: none; }
.cat h2 a:hover { color: var(--accent); }
.cat > * + * { margin-top: .8em; }
.cat::after { content: ""; display: block; clear: both; }
.cat img { float: right; width: 160px; margin: 0 0 16px 32px; border-radius: 0; }
.more { font-weight: 500; }
.more::after { content: " →"; }

.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.product-media { margin: 0; display: grid; place-items: center; aspect-ratio: 1; padding: clamp(16px, 3vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: 24px; }
.product-media img { width: auto; max-width: 100%; max-height: 100%; }
.product-media figcaption { align-self: end; font-size: .85rem; color: var(--ink-3); }
.product-media-empty { background: var(--bg-soft); color: var(--ink-3); font-size: .95rem; }
.product-info { display: grid; gap: 24px; }
.spec-list { margin: 0; border-top: 1px solid var(--line-strong); }
.spec-list div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { color: var(--ink-3); }
.spec-list dt::first-letter { text-transform: uppercase; }
.spec-list dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.spec-list .spec-sub { padding-bottom: 4px; border-bottom: 0; }
.spec-list .spec-sub dt { color: var(--ink); font-weight: 500; }
.spec-list .spec-sub + div, .spec-list .spec-sub ~ div:not(.spec-sub) dt { padding-left: 0; }
.product-price p { margin: 0; }
.product-price b { font-size: clamp(1.8rem, 3vw, 2.3rem); letter-spacing: -.03em; font-weight: 600; }
.product-price span { color: var(--ink-3); }
.product-price .muted { margin-top: 2px; font-size: .95rem; }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.files a { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); font-size: .95rem; transition: border-color .2s var(--ease); }
.files a:hover { border-color: var(--ink); text-decoration: none; }
.files .ico { color: var(--accent); }

.product-note { padding: clamp(24px, 3vw, 36px); background: var(--bg-soft); border-radius: 24px; }
.product-note ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; padding: 24px 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 16px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: .95rem; }
.steps strong { display: block; font-size: 1.05rem; letter-spacing: -.01em; margin-bottom: 6px; }
.steps p { margin: 0; font-size: .95rem; }

.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; color: var(--ink); font-weight: 500; font-size: 1.05rem; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; flex: none; margin-right: 4px; border-right: 1.6px solid var(--ink-3); border-bottom: 1.6px solid var(--ink-3); transform: translateY(-3px) rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { margin: 0 0 20px; max-width: 70ch; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); font-size: .95rem; white-space: nowrap; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.chips a:hover { border-color: var(--ink); text-decoration: none; }

.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.subnav a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); font-size: .95rem; font-weight: 500; }
.subnav a:hover { color: var(--ink); text-decoration: none; }
.subnav a[aria-current] { background: var(--ink); color: #fff; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink-2); transition: border-color .2s var(--ease), transform .3s var(--ease); }
.card:hover { border-color: var(--line-strong); text-decoration: none; }
.card-media { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 16px; background: #fff; border-bottom: 1px solid var(--line); }
.card-media img { width: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.card-noimg { width: 100%; height: 100%; background: var(--bg-soft); border-radius: var(--radius-sm); }
.card-body { display: grid; gap: 4px; padding: 16px 18px 18px; }
.card-body strong { font-size: 1.05rem; letter-spacing: -.01em; }
.card:hover strong { color: var(--accent); }
.card-price { font-size: .9rem; color: var(--ink-3); }
.card-price b { font-weight: 500; }
.cards-list { grid-template-columns: 1fr; max-width: 860px; }
.card-row { flex-direction: row; }
.card-row .card-media { width: 180px; flex: none; aspect-ratio: 1; border-bottom: 0; border-right: 1px solid var(--line); }
.card-row .card-body { align-content: center; gap: 8px; }
.card-row .muted { font-size: .95rem; }

.regions { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.map { width: 100%; height: auto; }
.map .kraj path { fill: var(--accent-soft); stroke: #fff; stroke-width: 1.5; transition: fill .2s var(--ease); }
.map a:hover .kraj path, .map a:focus .kraj path { fill: var(--accent); }
.map .kraj_title { font: 500 12px var(--font); fill: var(--ink); pointer-events: none; }
.map a:hover .kraj_title, .map a:focus .kraj_title { fill: #fff; }
.region-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.region-list li { break-inside: avoid; border-bottom: 1px solid var(--line); }
.region-list a { display: block; padding: 10px 0; color: var(--ink); }

.contact-page { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.contact-page .contact-phone { margin-top: 0; }
.contact-page .contact-phone a { color: inherit; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.photo-grid figure { margin: 0; }
.photo-grid a { display: grid; place-items: center; aspect-ratio: 1; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.photo-grid img { max-height: 100%; width: auto; }
.photo-grid figcaption { margin-top: 10px; font-size: .9rem; color: var(--ink-3); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(47, 47, 47, .8); }
.lightbox img { max-height: 86vh; width: auto; margin: auto; border-radius: var(--radius); background: #fff; }
.lightbox button { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font-size: 1.4rem; cursor: pointer; }

.consent { position: fixed; z-index: 70; left: 16px; right: 16px; bottom: 16px; }
.consent-inner { max-width: 760px; margin: 0 auto; display: flex; gap: 20px; align-items: center; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 32px rgba(47, 47, 47, .12); font-size: .92rem; }
.consent-h { color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.consent-actions { display: flex; gap: 8px; flex: none; }

/* ---------- about + products overview */

.section-band { padding-block: clamp(56px, 7vw, 88px); }
.section-band + .section-band { border-top: 1px solid var(--line); }
.section-band.section-soft, .section-band.section-soft + .section-band { border-top: 0; }
.band-head { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 40px; }
.band-head h2, .band-title, .facts h2, .garage-band h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); line-height: 1.1; letter-spacing: -.03em; }
.band-title { margin-bottom: 36px; }
.band-lead { margin: -24px 0 40px; max-width: 36em; }

.intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.intro-text p { max-width: 34em; }
.quote-card { margin: 0; padding: clamp(24px, 3vw, 36px); background: var(--bg-soft); border-radius: 24px; }
.quote-card blockquote { margin: 0; }
.quote-card blockquote p { font-size: clamp(1.15rem, 1.7vw, 1.38rem); line-height: 1.45; color: var(--ink); letter-spacing: -.015em; }
.quote-card figcaption { margin-top: 22px; display: flex; flex-direction: column; font-size: .95rem; }
.quote-card figcaption span { color: var(--ink-3); }

.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 28px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink-2); font-size: .95rem; transition: border-color .2s var(--ease); }
a.tile:hover { border-color: var(--ink); text-decoration: none; }
.tile strong { font-size: 1.25rem; letter-spacing: -.015em; }
a.tile:hover strong { color: var(--accent); }
.tile-n { font-size: .8rem; font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; }
.tile-cta { margin-top: auto; font-weight: 500; color: var(--accent); }
.tile-cta.muted { color: var(--ink-3); font-weight: 400; }
.note-bar { margin: 16px 0 0; padding: 22px 28px; background: var(--bg-soft); border-radius: 16px; display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: baseline; }

.why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.why li { display: flex; flex-direction: column; gap: 10px; font-size: .95rem; }
.why strong { font-size: 1.1rem; letter-spacing: -.01em; }
.why .ico-lg { width: 28px; height: 28px; }
.regions-strip { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line-strong); }
.regions-strip > p { margin-bottom: 14px; font-size: .95rem; }
.section-soft .chips a { background: #fff; }

.facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 64px); }
.facts > div > p { margin-top: 16px; max-width: 28em; }
.fact-list { margin: 0; border-top: 1px solid var(--line-strong); }
.fact-list div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fact-list dt { color: var(--ink-3); }
.fact-list dd { margin: 0; color: var(--ink); }

.eu-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.eu-cards article { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; font-size: .95rem; }
.eu-cards img { max-width: 420px; }
.eu-cards strong { font-size: 1.1rem; }
.eu-cards .more { margin-top: auto; }
.pill { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .82rem; font-weight: 500; }

.stats { margin: 0; padding-top: 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stats dt { font-size: .82rem; color: var(--ink-3); }
.stats dd { margin: 4px 0 0; font-size: 1.4rem; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.stats dd span { font-size: .95rem; font-weight: 400; color: var(--ink-3); }

.use-groups { display: grid; gap: 48px; }
.use-group { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.use-group h2 { font-size: 1.4rem; line-height: 1.25; letter-spacing: -.02em; }
.use-group .muted { margin-top: 8px; font-size: .95rem; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.use-card { gap: 10px; padding: 22px; font-size: .95rem; }
.use-card .ico-lg { width: 26px; height: 26px; }
.use-card strong { font-size: 1.12rem; letter-spacing: -.015em; color: var(--ink); }
.use-card .card-price { margin-top: auto; padding-top: 6px; }

.series { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.series article { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.series img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; padding: 16px; background: #fff; border-bottom: 1px solid var(--line); }
.series-body { padding: 28px; display: grid; gap: 16px; }
.series-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; }
.series-head h3 { font-size: 1.5rem; letter-spacing: -.02em; }
.series-head span { font-size: .95rem; }
.props { list-style: none; margin: 48px 0 0; padding: 32px 0 0; border-top: 1px solid var(--line-strong); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.props strong { display: block; }
.props span { font-size: .95rem; }

.detail-rows { border-bottom: 1px solid var(--line); }
.detail-row { display: grid; grid-template-columns: 18rem minmax(0, 1fr); gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); }
.detail-row h3 { font-size: 1.35rem; letter-spacing: -.02em; }
.detail-row h3 a { color: var(--ink); }
.detail-row h3 a:hover { color: var(--accent); text-decoration: none; }

.garage-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.garage-band img { padding: clamp(16px, 3vw, 32px); background: #fff; }
.garage-band > div { padding: clamp(24px, 4vw, 40px); display: grid; gap: 14px; justify-items: start; }
.garage-band p { margin: 0; }
.garage-price { font-size: 1.5rem; letter-spacing: -.02em; }

/* ---------- garages */

.page-head-split .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 64px); align-items: center; }
.page-head-split { padding-bottom: clamp(40px, 6vw, 72px); }
.page-head-media { margin: 0; }
.head-price { margin: 28px 0 0; }
.head-price strong { font-size: clamp(1.6rem, 2.6vw, 1.9rem); letter-spacing: -.03em; }
.page-head-split .hero-cta { margin-top: 24px; }
.band-sub { margin-top: 10px; max-width: 34em; }

.size-toggle { display: inline-flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.size-toggle button { border: 0; border-radius: 999px; padding: 10px 18px; min-height: 42px; font: 500 .95rem/1 var(--font); cursor: pointer; background: transparent; color: var(--ink-2); transition: background-color .2s var(--ease), color .2s var(--ease); }
.size-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.variants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.variants[hidden], .dims[hidden] { display: none; }
.variant { display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 3vw, 32px); background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.variant-main { border-color: var(--accent); }
.variant-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.variant-head h3 { font-size: 1.6rem; letter-spacing: -.02em; }
.variant-head span { font-size: .88rem; font-weight: 500; color: var(--ink-3); }
.variant-main .variant-head span { color: var(--accent); }
.variant-price { margin: 0; }
.variant-price strong { font-size: clamp(1.8rem, 3vw, 2.1rem); letter-spacing: -.03em; }
.variant-price .muted { font-size: .95rem; }
.checks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.checks li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.checks li::before { content: ""; width: 14px; height: 8px; flex: none; margin: 0 2px 4px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.checks li.off { color: #8a929b; }
.checks li.off::before { height: 0; margin-bottom: 0; border-left: 0; border-bottom-color: #aab0b7; transform: none; }
.variant .btn { margin-top: auto; }
#provedeni .fine { margin-top: 24px; }

.dims { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 64px); align-items: center; }
.dims-media { margin: 0; }
.dims .band-title { margin-bottom: 8px; }
.dims .spec-list { margin: 24px 0; }

.tech { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.tech li { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .95rem; }
.tech strong { font-size: 1.12rem; letter-spacing: -.01em; }
.uses-bar { margin-top: 40px; padding: 24px 28px; background: var(--bg-soft); border-radius: 16px; }
.uses-bar > p { margin-bottom: 12px; font-size: .95rem; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: #fff; color: var(--ink); font-size: .95rem; }
.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.section-soft .steps li { background: #fff; }

/* ---------- motion: hero on load, sections on scroll (CSS only) */

@keyframes hero-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes hero-img { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes reveal { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: hero-in .8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .hero-media { animation: hero-img 1s var(--ease) .12s both; }
  .panel:not([hidden]) { animation: fade .35s var(--ease); }
  .sk-gallery img, .figure-frame img { transition: transform .5s var(--ease); }
  .sk-gallery figure:hover img { transform: translateY(-3px); }

  @supports (animation-timeline: view()) {
    .section-head, .compare-wrap, .pcard, .uses, .split > *, .tabs, .panel-grid > *, .sk-gallery > *, .contact > *, .foot-eu, .cards > li, .cat, .photo-grid > *, .steps > li, .tiles > li, .why > li, .detail-row, .series > article, .eu-cards > article, .variant, .tech > li {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 22%;
    }
  }
}

/* ---------- responsive */

@media (max-width: 960px) {
  .nav-inner { gap: 12px; }
  .nav-phone { margin-left: auto; }
  .nav-toggle {
    display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; padding: 0;
    background: none; border: 0; border-radius: 999px; cursor: pointer;
  }
  .nav-toggle:hover { background: var(--bg-soft); }
  .nav-toggle i { display: block; width: 18px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease); }
  .nav-toggle[aria-expanded="true"] i:first-of-type { transform: translateY(3.3px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] i:last-of-type { transform: translateY(-3.3px) rotate(-45deg); }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    display: none; flex-direction: column; gap: 0; padding: 8px 12px 16px;
    background: #fff; border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
  .nav.menu-open { border-bottom-color: var(--line); }

  .hero-inner, .split, .contact, .panel-grid, .product, .regions { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .intro, .facts, .eu-cards, .use-group, .detail-row, .series, .garage-band, .page-head-split .wrap, .variants, .dims { grid-template-columns: minmax(0, 1fr); }
  .tech, .steps-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .use-group, .detail-row { gap: 16px; }
  .tiles, .why, .stats, .props, .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid, .contact-page { grid-template-columns: 1fr 1fr; }
  .product-media { max-width: 560px; }
  .foot-eu { flex-direction: column; align-items: flex-start; }
  .hero-media { max-width: 520px; }
  .split-rev > .figure-frame { order: 2; }
  .sk-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand-name { display: none; }
  .nav-phone { padding: 0 14px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-facts { flex-direction: column; gap: 8px; }
  .hero-media img, .figure-frame img { border-radius: 18px; }

  .compare-wrap { display: none; }
  .compare-cards { display: grid; }

  .uses ul, .points { grid-template-columns: 1fr; }
  .use::after { opacity: 1; transform: none; }
  .tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: 1 0 auto; white-space: nowrap; padding-inline: 12px; font-size: .9rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .specs div { grid-template-columns: 1fr; gap: 2px; }
  .prices td.act .ask { padding-inline: 6px; }
  .foot-grid, .contact-page { grid-template-columns: 1fr; gap: 32px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-media { padding: 10px; }
  .card-body { padding: 12px 12px 14px; }
  .card-row { flex-direction: column; }
  .card-row .card-media { width: auto; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--line); }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .region-list { columns: 1; }
  .steps { grid-template-columns: 1fr; }
  .tiles, .why, .props, .cards-3, .tech, .steps-3 { grid-template-columns: minmax(0, 1fr); }
  .fact-list div { grid-template-columns: 6.5rem minmax(0, 1fr); }
  .consent-inner { flex-direction: column; align-items: stretch; }
  .consent-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* =====================================================================
   Old-site colors and news posts
   ===================================================================== */

/* Dark footer in the old site's colors */
.foot { background: var(--dark); border-top: 0; color: #cfcac5; }
.foot .foot-h { color: #a9a39e; }
.foot a { color: #fff; }
.foot .foot-links a { color: #fff; }
.foot a:hover { color: #ff8a4c; }
.foot .foot-brand { color: #fff; }
.foot .foot-brand span { color: #a9a39e; }
.foot .foot-phone { color: #fff; }
.foot .brand-mark img { filter: brightness(0) invert(1); }
.foot .foot-eu { background: #fff; border-color: transparent; }
.foot .foot-bottom { border-top-color: #4a4643; color: #a9a39e; }

/* Orange touches from the old site */
.hero h1 em, .page-head h1 em { font-style: normal; color: var(--accent); }
.nav-links a[aria-current] { color: var(--ink); background: var(--accent-soft); }
.crumbs a:hover { color: var(--accent); }

/* News posts: block editor content inside .entry-article .prose */
.entry .wp-block-image { margin: 0; }
.entry .wp-block-image img { height: auto; border-radius: var(--radius); }
.entry .wp-element-caption { margin-top: 10px; font-size: .9rem; color: var(--ink-3); }
.entry .prose > * + * { margin-top: 1em; }
.entry .prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.2; letter-spacing: -.025em; margin-top: 2em; }
.entry .prose h3 { font-size: 1.2rem; margin-top: 1.8em; }
.entry .prose h4 { color: var(--ink); font-size: 1.05rem; margin-top: 1.6em; }
.entry .prose .note { padding: 16px 20px; background: var(--accent-soft); border-radius: var(--radius-sm); color: var(--ink); font-size: .95rem; }

/* =====================================================================
   Pencilino theme parts
   ===================================================================== */

/* Image slots: a fixed frame per field (aspect ratio from fields.json); any replacement image is cropped or contained. */
.frame { display: block; width: 100%; overflow: hidden; }
.frame img, .site .frame img { width: 100%; height: 100%; max-width: none; object-position: 50% 50%; }
.frame-cover img { object-fit: cover; }
.frame-contain img { object-fit: contain; }
.hero-media .frame, .figure-frame .frame { border-radius: 24px; border: 1px solid var(--line); background: #fff; }
.figure-white .frame { padding: clamp(16px, 3vw, 36px); box-sizing: border-box; }
.sk-gallery .frame { border-radius: var(--radius); border: 1px solid var(--line); }
.product-media .frame { max-width: 100%; max-height: 100%; }
.card-media .frame { height: 100%; }
.page-head-media .frame, .dims-media .frame { background: transparent; }
.series .frame { border-bottom: 1px solid var(--line); background: #fff; }
.series .frame img { padding: 16px; box-sizing: border-box; }
.garage-band .frame { padding: clamp(16px, 3vw, 32px); box-sizing: border-box; }
.photo-grid .frame { height: 100%; }
.eu-logo { max-width: 420px; }
.prose-img { margin: 0; max-width: 520px; }
.prose-img .frame { border-radius: var(--radius); }
.brand-mark .brand-logo { width: 34px; height: auto !important; max-width: none; }

/* Rich text fields (Pencilino wraps them in div.pencil-richtext) */
.pencil-richtext > * + * { margin-top: 1em; }
.pencil-richtext > :first-child { margin-top: 0; }
.pencil-richtext p { margin: 0; }
.pencil-richtext ul, .pencil-richtext ol { margin: 0; padding-left: 1.3em; }
.pencil-richtext li + li { margin-top: .35em; }
.prose > .pencil-richtext + h2, .prose > .pencil-richtext + h3, .prose > .pencil-richtext + h4 { margin-top: 2em; }
.prose > h2 + .pencil-richtext, .prose > h3 + .pencil-richtext { margin-top: .8em; }
.why .pencil-richtext p { font-size: .95rem; }
.faq details > .pencil-richtext { margin: 0 0 20px; max-width: 70ch; }
.faq details > .pencil-richtext p { margin: 0; }
.note.pencil-richtext, .pencil-richtext.note { padding: 16px 20px; background: var(--accent-soft); border-radius: var(--radius-sm); color: var(--ink); font-size: .95rem; }
.intro-text > .pencil-richtext + .pencil-richtext { margin-top: 1em; }

/* Home: Žumpa / Septik / ČOV cards on every screen size */
.pcards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pcards-grid .pcard { display: flex; flex-direction: column; }
.pcards-grid .pcard .btn { margin-top: auto; }
.price-row-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Tiles and use cards: the title is the link, the whole card reacts */
.tile { position: relative; }
.tile .tile-cta { margin-top: auto; font-weight: 500; color: var(--accent); }
.tile a.tile-cta::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.tile:has(a.tile-cta):hover { border-color: var(--ink); }
.tile:has(a.tile-cta):hover strong { color: var(--accent); }
.use-card { position: relative; }
.use-card .use-card-link { color: var(--ink); text-decoration: none; }
.use-card .use-card-link::after { content: ""; position: absolute; inset: 0; }
.use-card:hover { border-color: var(--ink); }
.use-card:hover .use-card-link { color: var(--accent); }

/* Header: the WordPress-managed menu region sits where the nav was */
.nav-menu-region { margin-left: auto; }
.nav-menu-region .nav-links { margin-left: 0; }
.foot .pencil-managed-region .foot-links a { color: #fff; }
.not-found-home { margin-top: 24px; }
.subnav { margin-bottom: 36px; }

@media (max-width: 960px) {
  .pcards-grid { grid-template-columns: minmax(0, 1fr); }
  .nav-menu-region { margin-left: 0; }
}
