:root {
  /* Farebné kanály — téma (varianta B) prepisuje len tieto */
  --ink-rgb: 18 22 15;
  --paper-rgb: 244 247 236;
  --accent-rgb: 134 188 37;
  --accent-deep: 63 107 10;
  --accent-hi: 230 245 200;
  --accent-edge: 210 240 160;
  --accent-a: 150 204 50;
  --accent-b: 120 176 30;
  --accent-hover: #95CC31;
  --on-accent: #12160F;
  --field-a: 160 214 196;
  --field-b: 222 234 130;
  --glass-hi: 248 251 241;
  --glass-lo: 236 243 224;
  --sheen: 252 253 248;
  --edge: 250 252 245;
  --tint-a: 190 222 120;
  --tint-b: 150 200 170;
  --soft-a: 225 237 200;
  --soft-b: 210 230 170;
  --solid-a: 244 248 236;
  --solid-b: 232 240 218;
  --solid-c: 228 238 210;
  --shadow-rgb: 46 70 20;
  --solid: #EEF3E4;
  --solid-tint: #DCEBC0;
  --logo-grey: #5F665A;
  --invalid: #B4452A;
  --error: #9A3A22;
  --call-bg: 214 234 186;
  --scrim: 10 16 8;
  --hero-hl: #B5E36A;
  --hero-eyebrow: #CDEB9C;
  --video-filter: hue-rotate(78deg) saturate(.85);
  --call-ink: #2E5A0B;

  --bg: #E6EBDD;
  --paper: #F4F7EC;           /* najsvetlejší tón webu — namiesto čistej bielej */
  --ink: #12160F;
  --ink-2: #2A3224;
  --muted: #4F5849;
  --line: rgb(var(--ink-rgb) / .1);
  --accent: #86BC25;
  --accent-ink: #3F6B0A;
  --accent-soft: #E1EDC8;

  /* Liquid glass */
  --glass: linear-gradient(140deg, rgb(var(--glass-hi) / .66), rgb(var(--glass-lo) / .38));
  --glass-tint: linear-gradient(140deg, rgb(var(--tint-a) / .46), rgb(var(--tint-b) / .26));
  --glass-soft: linear-gradient(140deg, rgb(var(--soft-a) / .72), rgb(var(--soft-b) / .42));
  --glass-edge: rgb(var(--edge) / .72);
  --glass-blur: blur(22px) saturate(1.7);
  --glass-shadow:
    inset 0 1px 0 rgb(var(--sheen) / .95),
    inset 1px 0 0 rgb(var(--sheen) / .5),
    inset 0 -1px 0 rgb(var(--ink-rgb) / .06),
    0 1px 2px rgb(var(--ink-rgb) / .05),
    0 22px 44px -26px rgb(var(--shadow-rgb) / .38);

  --r: 28px;
  --gap: 14px;
  --pad: clamp(22px, 3vw, 40px);
  --wrap: 1280px;
  --gutter: clamp(16px, 3vw, 32px);

  --dur-fast: .15s;
  --dur-base: .18s;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.16, 1, .30, 1);
  --ease-inout: cubic-bezier(.76, 0, .24, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink); position: relative; isolation: isolate;
  font: 400 1.0625rem/1.6 "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* Farebné pole pod sklom — statické, scrolluje so stránkou, nula JS */
body::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42vw 42vw at 88% 3%,  rgb(var(--accent-rgb) / .55), transparent 70%),
    radial-gradient(34vw 34vw at 4% 12%,  rgb(var(--field-a) / .60), transparent 70%),
    radial-gradient(46vw 46vw at 96% 30%, rgb(var(--field-b) / .55), transparent 70%),
    radial-gradient(40vw 40vw at 2% 46%,  rgb(var(--accent-rgb) / .40), transparent 70%),
    radial-gradient(44vw 44vw at 92% 62%, rgb(var(--field-a) / .55), transparent 70%),
    radial-gradient(40vw 40vw at 6% 78%,  rgb(var(--field-b) / .50), transparent 70%),
    radial-gradient(46vw 46vw at 80% 96%, rgb(var(--accent-rgb) / .45), transparent 70%);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
p { margin: 0; }
address { font-style: normal; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* ---------- Sklo — spoločný základ ---------- */
.tile, .nav .nav__in, .section--glass, .step, .faq details, .consent, .menu {
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
}

/* ---------- Tlačidlá ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font: 500 1rem/1 inherit; font-family: inherit; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color var(--dur-base) ease, color var(--dur-base) ease, box-shadow var(--dur-base) ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn--green { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 1px 0 rgb(var(--accent-hi) / .7), 0 8px 20px -10px rgb(var(--accent-deep) / .6); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--ghost, .btn--line { background: rgb(var(--glass-hi) / .35); color: var(--ink); box-shadow: inset 0 0 0 1px rgb(var(--ink-rgb) / .16); }
@media (hover: hover) and (pointer: fine) {
  .btn--green:hover { background: var(--accent-hover); }
  .btn--dark:hover { background: var(--ink-2); }
  .btn--ghost:hover, .btn--line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
}
.link-arrow { font-weight: 500; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; align-self: flex-start; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Eyebrow / hlavičky sekcií ---------- */
.eyebrow {
  display: flex; align-items: center; gap: .7em;
  font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink);
}
.section { padding-block: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding-top: var(--gap); }
.section--near { padding-top: clamp(36px, 4.5vw, 56px); }
.geo-answer { max-width: 760px; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.geo-answer strong { color: var(--ink); font-weight: 500; }
.sec-head { max-width: 780px; margin-bottom: clamp(28px, 4vw, 48px); display: grid; gap: 18px; }
.sec-head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }

/* ---------- Navigácia ---------- */
.nav { position: sticky; top: 0; z-index: 40; padding-top: 10px; }
.nav__in { display: flex; align-items: center; gap: 14px; }
.nav .nav__in {
  border-radius: 999px; padding-block: 8px; max-width: calc(var(--wrap) - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter));
  padding-inline: 10px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; padding-left: 6px; }
.logo__mark { width: 34px; height: 34px; }
.logo__word { font-size: 1.35rem; font-weight: 500; letter-spacing: -.03em; color: var(--logo-grey); }
.logo__word b { font-weight: 700; color: var(--accent-ink); }
.logo--light .logo__word { color: rgb(var(--paper-rgb) / .75); }
.logo--light .logo__word b { color: var(--accent); }
.nav__tel { background: rgb(var(--call-bg) / .75); color: var(--call-ink); box-shadow: inset 0 0 0 1px rgb(46 90 11 / .22); font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .nav__tel:hover { background: rgb(var(--call-bg)); box-shadow: inset 0 0 0 1px rgb(46 90 11 / .45); } }
.nav__links { display: flex; gap: 4px; }
.nav__links a { text-decoration: none; font-size: .9375rem; font-weight: 500; padding: 10px 14px; border-radius: 999px; transition: background-color var(--dur-base) ease; }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { background: rgb(var(--ink-rgb) / .06); } }
.nav__burger { display: none; }
.menu { display: none; }

@media (max-width: 1080px) {
  .nav__links, .nav__tel { display: none; }
}
@media (max-width: 767px) {
  .nav__cta { display: none; }
  .nav__burger {
    display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; border-radius: 999px;
    border: 0; background: var(--ink); cursor: pointer; transition: transform 160ms var(--ease-out);
  }
  .nav__burger:active { transform: scale(.95); }
  .nav__burger span { display: block; width: 18px; height: 2px; background: var(--paper); border-radius: 2px; transition: transform 200ms var(--ease-out); }
  .nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .menu {
    position: absolute; top: 100%; left: var(--gutter); right: var(--gutter);
    display: grid; gap: 4px; margin-top: 8px; padding: 12px; border-radius: 24px;
    background: linear-gradient(140deg, rgb(var(--solid-a) / .9), rgb(var(--solid-b) / .78));
    transform-origin: top right; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
  }
  .menu[hidden] { display: grid; opacity: 0; transform: scale(.96) translateY(-6px); pointer-events: none; visibility: hidden; transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out), visibility 0s 150ms; }
  .menu a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 1.25rem; font-weight: 500; padding: 12px 14px; border-radius: 14px; }
  .menu a:not(.btn):active { background: rgb(var(--ink-rgb) / .06); }
  .menu .btn { margin-top: 8px; }
}

/* ---------- Bento základ ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.tile {
  position: relative; border-radius: var(--r); padding: var(--pad);
  display: flex; flex-direction: column; gap: 18px; text-decoration: none; color: inherit; overflow: hidden;
}
/* Zrkadlový odlesk v ľavom hornom rohu — to, čo robí zo skla „liquid" */
.tile::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(120% 60% at 0% 0%, rgb(var(--sheen) / .55), transparent 55%),
    radial-gradient(80% 40% at 100% 100%, rgb(var(--sheen) / .18), transparent 60%);
}
.tile > * { position: relative; }
.tile--tint { background: var(--glass-tint); }
.tile--green { color: var(--on-accent); background: linear-gradient(140deg, rgb(var(--accent-a) / .92), rgb(var(--accent-b) / .82)); border-color: rgb(var(--accent-edge) / .7); }
.tile--soft { background: var(--glass-soft); }
.tile--green .eyebrow { color: inherit; opacity: .85; }
.tile__arrow { position: absolute !important; right: var(--pad); bottom: calc(var(--pad) - 6px); font-size: 1.8rem; line-height: 1; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  a.tile { transition: transform 200ms var(--ease-out); }
  a.tile:hover { transform: translateY(-3px); }
  a.tile:hover .tile__arrow { transform: translate(3px, 3px); }
  a.contact__tel:hover .tile__arrow { transform: translate(3px, -3px); }
}

/* ---------- Hero ---------- */
.hero { padding-top: 18px; }
.bento--hero { grid-template-rows: auto auto auto; }
.hero__main { grid-column: 1 / span 8; grid-row: 1 / span 3; justify-content: flex-end; gap: 26px; min-height: min(640px, calc(100svh - 120px)); padding-top: clamp(40px, 6vw, 80px); }
.hero__mark { position: absolute !important; right: clamp(24px, 5vw, 64px); top: clamp(28px, 5vw, 64px); width: clamp(120px, 17vw, 240px); height: auto; overflow: visible; }
.hero__mark path { fill: none; stroke: var(--accent); stroke-width: 18; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 10px 18px rgb(var(--accent-deep) / .35)); }
@media (prefers-reduced-motion: no-preference) {
  .hero__mark path { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1.1s .35s var(--ease-soft) forwards; }
}
/* Hero s videom (varianta B) — oheň v slučke, tmavý scrim zľava/zdola, svetlý text */
.hero__main--video { background: rgb(var(--scrim)); color: var(--paper); border-color: rgb(var(--accent-hi) / .22); }
.tile > .hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media video { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; filter: var(--video-filter); }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(var(--scrim) / .9) 0%, rgb(var(--scrim) / .66) 40%, rgb(var(--scrim) / .14) 78%),
    linear-gradient(0deg, rgb(var(--scrim) / .7) 0%, transparent 55%);
}
.hero__main--video .hero__mark { display: none; }
.hero__main--video .eyebrow { color: var(--hero-eyebrow); }
.hero__main--video h1 { color: var(--paper); text-shadow: 0 2px 28px rgb(var(--scrim) / .45); }
.hero__main--video .hl { color: var(--hero-hl); }
.hero__main--video .hero__lead { color: rgb(var(--paper-rgb) / .88); }
.hero__main--video .btn--line {
  color: var(--paper); background: rgb(var(--paper-rgb) / .08); box-shadow: inset 0 0 0 1px rgb(var(--paper-rgb) / .38);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
@media (hover: hover) and (pointer: fine) {
  .hero__main--video .btn--line:hover { box-shadow: inset 0 0 0 1px var(--paper); }
}
.hero__main h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; }
.hl { color: var(--accent-ink); }
.hero__lead { max-width: 560px; color: var(--ink-2); font-size: clamp(1.02rem, 1.3vw, 1.15rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__check { grid-column: 9 / span 4; }
.hero__stat { grid-column: 9 / span 4; }
.hero__who { grid-column: 9 / span 4; padding-right: 72px; }
.stat__big { font-size: clamp(2.6rem, 4vw, 3.4rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.stat__txt { font-size: .96rem; line-height: 1.5; }
.who__list { font-size: 1.12rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.35; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.checks li { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-weight: 500; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks svg, .fcta svg, .form__ok svg { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--accent); padding: 4px; }
.checks path, .fcta__main path, .form__ok path { fill: none; stroke: var(--on-accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.reveal-lines > span { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.reveal-lines > span > span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .reveal-lines > span > span { animation: line-up .9s var(--ease-soft) both; }
  .reveal-lines > span:nth-child(2) > span { animation-delay: .08s; }
  .reveal-lines > span:nth-child(3) > span { animation-delay: .16s; }
  .checks path { stroke-dasharray: 22; stroke-dashoffset: 22; animation: draw .5s var(--ease-out) forwards; }
  .checks li:nth-child(1) path { animation-delay: .55s; }
  .checks li:nth-child(2) path { animation-delay: .75s; }
  .checks li:nth-child(3) path { animation-delay: .95s; }
  .checks li:nth-child(4) path { animation-delay: 1.15s; }
  .checks li:nth-child(5) path { animation-delay: 1.35s; }
}
@keyframes line-up { from { transform: translateY(118%); } to { transform: translateY(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Marquee zákonov ---------- */
.laws { margin-top: var(--gap); overflow: hidden; }
.marquee { --mgap: 2.4rem; display: flex; gap: var(--mgap); overflow: hidden; padding-block: 22px; border-block: 1px solid var(--line); }
.marquee__track { display: flex; align-items: center; gap: var(--mgap); flex-shrink: 0; font-weight: 500; font-size: 1.02rem; white-space: nowrap; color: var(--muted); }
.marquee__track i { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: marquee 42s linear infinite; }
  .marquee.is-paused .marquee__track, .marquee:hover .marquee__track { animation-play-state: paused; }
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-100% - var(--mgap))); } }

/* ---------- Služby ---------- */
.svc { gap: 20px; }
.svc--opp { grid-column: 1 / span 6; }
.svc--bozp { grid-column: 7 / span 6; }
.svc--koord { grid-column: 1 / span 5; }
.svc--docs { grid-column: 6 / span 7; }
.svc__top { display: grid; gap: 18px; }
.svc h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.svc > p { max-width: 520px; color: var(--ink-2); }
.svc__tag {
  align-self: flex-start; justify-self: start; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  padding: 6px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
}
.svc__tag--dark { background: var(--ink); color: var(--paper); }
.svc__roles { list-style: none; margin: 0 0 6px; padding: 0; display: grid; }
.svc__roles li { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); }
.svc__roles strong { font-weight: 700; font-size: 1.06rem; }
.svc__roles span { font-size: .95rem; color: var(--muted); line-height: 1.5; }
.svc .btn { margin-top: auto; align-self: flex-start; }
.svc--koord .link-arrow { margin-top: auto; }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li {
  padding: 10px 16px; border-radius: 999px; font-weight: 500; font-size: .95rem;
  background: rgb(var(--glass-hi) / .6); box-shadow: inset 0 1px 0 rgb(var(--sheen) / .9), 0 1px 2px rgb(var(--ink-rgb) / .05);
}

/* ---------- Pre koho ---------- */
.who { grid-column: span 3; gap: 10px; }
.who h3 { font-size: 1.3rem; }
.who h3::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 4px; background: var(--accent); margin-bottom: 18px; }
.who p { color: var(--muted); font-size: .96rem; line-height: 1.5; }

/* ---------- Postup (sklenený pás) ---------- */
.section--glass {
  margin-top: clamp(64px, 9vw, 120px); padding-block: clamp(64px, 9vw, 120px);
  border-radius: clamp(28px, 4vw, 48px); margin-inline: clamp(8px, 1.2vw, 16px);
  background: var(--glass-tint);
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.step { position: relative; overflow: hidden; border-radius: 24px; padding: 28px; display: grid; align-content: start; gap: 12px; }
.step::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, #F7A23B, var(--accent));
}
.step::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(90% 70% at 0% 0%, rgb(var(--accent-rgb) / .16), transparent 70%);
}
.step__n, .step h3 { transition: transform 200ms var(--ease-out), color 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .step { transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
  .step::before { transition: transform 200ms var(--ease-out); }
  .step::after { transition: opacity 200ms ease; }
  .step:hover { transform: translateY(-6px); box-shadow: var(--glass-shadow), 0 26px 40px -24px rgb(var(--shadow-rgb) / .5); }
  .step:hover::before { transform: scaleX(1); }
  .step:hover::after { opacity: 1; }
  .step:hover .step__n { transform: translateX(6px) scale(1.08); color: var(--accent); }
  .step:hover h3 { transform: translateX(6px); }
}
.step__n { font-size: 3.2rem; font-weight: 400; line-height: 1; color: var(--accent-ink); letter-spacing: -.04em; margin-bottom: 26px; }
.step h3 { font-size: 1.3rem; }
.step p { color: var(--muted); font-size: .96rem; line-height: 1.55; }

/* ---------- O nás ---------- */
.about__txt { grid-column: 1 / span 8; gap: 20px; }
.about__txt h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); max-width: 640px; }
.about__txt p:not(.eyebrow) { max-width: 660px; color: var(--muted); }
.about__facts { grid-column: 9 / span 4; justify-content: center; }
.facts { margin: 0; display: grid; }
.facts div { padding: 16px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.facts div:first-child { border-top: 0; }
.facts dt { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; }

/* O nás s fotkou technika — sklenená vizitka nad fotkou */
.about__photo { grid-column: 8 / span 5; margin: 0; padding: 0; min-height: 540px; justify-content: flex-end; background: var(--solid-tint); }
.about__photo > img, .about__photo > .photo-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento--about:has(.about__photo) .about__txt { grid-column: 1 / span 7; justify-content: center; }
.photo-ph {
  display: grid; place-items: center; padding: 32px 32px 180px; text-align: center; color: var(--muted); font-weight: 500;
  background:
    radial-gradient(70% 55% at 50% 30%, rgb(var(--accent-rgb) / .22), transparent 70%),
    repeating-linear-gradient(135deg, rgb(var(--ink-rgb) / .035) 0 12px, transparent 12px 24px);
}
.photo-ph small { display: block; margin-top: 6px; font-weight: 400; font-size: .85rem; }
.about__card {
  position: relative; margin: 14px; padding: 20px 22px; border-radius: 20px; display: grid; gap: 4px;
  background: linear-gradient(140deg, rgb(var(--glass-hi) / .72), rgb(var(--glass-lo) / .5));
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow);
}
.about__name { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.about__role { font-size: .9rem; color: var(--muted); }
.facts--mini { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.facts--mini div { padding: 0; border: 0; }
.facts--mini dd { font-size: 1.02rem; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.sec-head--side { position: sticky; top: 110px; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 22px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 64px 22px 26px; position: relative;
  font-weight: 500; font-size: 1.08rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 999px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%233F6B0A' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 200ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 26px 24px; color: var(--muted); }

/* ---------- Kontakt ---------- */
.contact__form { grid-column: 1 / span 7; grid-row: 1 / span 3; gap: 24px; }
.contact__form h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); max-width: 560px; }
.contact__tel { grid-column: 8 / span 5; min-height: 190px; justify-content: space-between; }
.tel__num { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.contact__info { grid-column: 8 / span 5; gap: 10px; }
.contact__info address { font-size: 1.25rem; font-weight: 500; line-height: 1.35; }
.contact__info .link-arrow { margin-top: 8px; }
.contact__legal { grid-column: 8 / span 5; gap: 10px; }

.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: .88rem; color: var(--ink-2); font-weight: 500; }
.form input:not([type="checkbox"]), .form textarea {
  width: 100%; font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink); background: rgb(var(--glass-hi) / .6);
  border: 1px solid rgb(var(--ink-rgb) / .12); border-radius: 14px; padding: 14px 16px; min-height: 52px;
  box-shadow: inset 0 1px 2px rgb(var(--ink-rgb) / .06);
  transition: border-color var(--dur-base) ease, background-color var(--dur-base) ease;
}
.form textarea { resize: vertical; min-height: 110px; }
.form input::placeholder, .form textarea::placeholder { color: #7A8274; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent-ink); background: rgb(var(--glass-hi) / .85); }
.form [aria-invalid="true"] { border-color: var(--invalid); }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: .88rem; color: var(--ink-2); font-weight: 500; margin-bottom: 8px; padding: 0; }
.chips label { display: inline-flex; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  padding: 10px 16px; border-radius: 999px; font-size: .95rem; font-weight: 500; color: var(--ink);
  background: rgb(var(--glass-hi) / .45); box-shadow: inset 0 0 0 1px rgb(var(--ink-rgb) / .16);
  transition: background-color var(--dur-base) ease, box-shadow var(--dur-base) ease, transform 160ms var(--ease-out);
}
.chips label:active span { transform: scale(.97); }
.chips input:checked + span { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 1px 0 rgb(var(--accent-hi) / .7); }
.chips input:focus-visible + span { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.form__err { color: var(--error); font-size: .95rem; font-weight: 500; }
.form__note { font-size: .82rem; color: var(--muted); }
.form__ok { display: grid; gap: 12px; justify-items: start; padding-top: 8px; }
.form__ok[hidden] { display: none; }
.form__ok svg { width: 48px; height: 48px; border-radius: 14px; padding: 8px; }
.form__ok h3 { font-size: 1.8rem; }
.form__ok p { color: var(--ink-2); }

/* ---------- Pätička (s tlmeným ohňom v pozadí) ---------- */
.foot {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: clamp(64px, 9vw, 120px); background: var(--ink); color: rgb(var(--paper-rgb) / .8);
  padding-block: 32px calc(20px + env(safe-area-inset-bottom));
}
.foot__media { position: absolute; inset: 0; z-index: -1; }
.foot__media video { width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; opacity: .26; mix-blend-mode: screen; filter: var(--video-filter); }
.foot__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--ink) 0%, rgb(var(--ink-rgb) / .35) 45%, rgb(var(--ink-rgb) / .7) 100%);
}
.foot__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: center; }
.foot__brand { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.foot__claim { font-size: .9rem; line-height: 1.5; max-width: 340px; }
.foot__nap { font-style: normal; font-size: .95rem; line-height: 1.7; }
.foot__nap strong { color: var(--paper); font-weight: 700; }
.foot__nap a, .foot__bottom a { text-decoration-color: rgb(var(--paper-rgb) / .35); text-underline-offset: 3px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .92rem; align-items: center; }
.foot__links a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .foot__links a:hover, .foot__nap a:hover { color: var(--paper); } }
.foot__bottom {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: .82rem; color: rgb(var(--paper-rgb) / .55); padding-top: 16px; border-top: 1px solid rgb(var(--paper-rgb) / .12);
}
.foot__bottom a { color: rgb(var(--paper-rgb) / .8); font-weight: 500; }

/* ---------- Floating CTA s pulzom ---------- */
.fcta {
  position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; gap: 10px; align-items: center;
  transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out);
}
.fcta.is-hidden, body.has-consent .fcta { opacity: 0; transform: translateY(16px); pointer-events: none; }
.fcta a {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500;
  min-height: 56px; border-radius: 999px; transition: transform 160ms var(--ease-out), background-color var(--dur-base) ease;
  -webkit-tap-highlight-color: transparent;
}
.fcta a:active { transform: scale(.97); }
.fcta__tel {
  width: 56px; justify-content: center; color: var(--call-ink);
  background: linear-gradient(140deg, rgb(var(--call-bg) / .92), rgb(var(--call-bg) / .7)); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow);
}
.fcta__tel svg { width: 22px; height: 22px; background: none; padding: 0; }
.fcta__tel path { fill: none; stroke: var(--call-ink); stroke-width: 1.9; stroke-linejoin: round; }
.fcta__label { display: none; }
.fcta__main { position: relative; padding: 0 24px 0 12px; background: var(--accent); color: var(--on-accent); box-shadow: inset 0 1px 0 rgb(var(--accent-hi) / .8), 0 12px 34px -10px rgb(var(--accent-deep) / .7); }
.fcta__main svg { width: 32px; height: 32px; background: var(--ink); border-radius: 999px; padding: 6px; }
.fcta__main path { stroke: var(--accent); }
.fcta__pulse { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .fcta__pulse::before, .fcta__pulse::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 2px var(--accent);
    opacity: 0; animation: pulse 2.8s var(--ease-out) infinite;
  }
  .fcta__pulse::after { animation-delay: .5s; }
  .fcta.is-hidden .fcta__pulse::before, .fcta.is-hidden .fcta__pulse::after,
  body.has-consent .fcta__pulse::before, body.has-consent .fcta__pulse::after,
  .fcta.is-calm .fcta__pulse::before, .fcta.is-calm .fcta__pulse::after { animation: none; }
}
@keyframes pulse {
  0%   { opacity: .7; transform: scale(1); }
  70%  { opacity: 0;  transform: scale(1.18, 1.5); }
  100% { opacity: 0;  transform: scale(1.18, 1.5); }
}
@media (hover: hover) and (pointer: fine) {
  .fcta__main:hover { background: var(--accent-hover); }
  .fcta__tel:hover { background: rgb(var(--call-bg)); }
}

/* ---------- Cookie lišta ---------- */
.consent {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; max-width: 400px; padding: 20px; border-radius: 22px;
  background: linear-gradient(140deg, rgb(var(--solid-a) / .88), rgb(var(--solid-b) / .74));
  display: grid; gap: 14px; font-size: .92rem; line-height: 1.5;
  transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out);
}
.consent[hidden] { display: none; }
@supports (transition-behavior: allow-discrete) {
  .consent { @starting-style { opacity: 0; transform: translateY(16px); } }
}
.consent__btns { display: flex; gap: 8px; justify-content: flex-end; }

/* ---------- Scroll reveal (len s JS) ---------- */
.js [data-reveal], .js [data-reveal-group] > * {
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s ease, transform .9s var(--ease-soft);
}
.js [data-reveal].is-in, .js [data-reveal-group].is-in > * { opacity: 1; transform: none; }
.js [data-reveal-group] > :nth-child(1) { transition-delay: .05s; }
.js [data-reveal-group] > :nth-child(2) { transition-delay: .15s; }
.js [data-reveal-group] > :nth-child(3) { transition-delay: .25s; }
.js [data-reveal-group] > :nth-child(4) { transition-delay: .35s; }
.js [data-reveal-group] > :nth-child(n+5) { transition-delay: .45s; }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .hero__main { grid-column: 1 / -1; grid-row: auto; min-height: 0; }
  .hero__check { grid-column: 1 / span 6; grid-row: span 2; }
  .hero__stat { grid-column: 7 / span 6; }
  .hero__who { grid-column: 7 / span 6; }
  .svc--koord, .svc--docs { grid-column: span 6; }
  .who { grid-column: span 6; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about__txt { grid-column: 1 / span 7; }
  .about__facts { grid-column: 8 / span 5; }
  .about__photo { grid-column: 8 / span 5; min-height: 460px; }
  .contact__form { grid-column: 1 / -1; grid-row: auto; }
  .contact__tel, .contact__info, .contact__legal { grid-column: span 4; }
  .contact__tel { min-height: 0; }
}

/* ---------- Mobil ---------- */
@media (max-width: 767px) {
  :root { --gap: 10px; --r: 22px; --glass-blur: blur(14px) saturate(1.6); }
  html { scroll-padding-top: 76px; }
  .bento > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .bento--who > * { grid-column: span 6 !important; padding: 18px; gap: 8px; }
  .who h3 { font-size: 1.08rem; }
  .who h3::before { margin-bottom: 12px; }
  .who p { font-size: .88rem; }
  .hero__main { padding-top: 132px; }
  .hero__mark { width: 92px; top: 26px; right: 26px; }
  .hero__main--video { padding-top: 220px; }
  .hero__media video { object-position: 50% 30%; }
  .hero__media::after { background: linear-gradient(0deg, rgb(var(--scrim) / .94) 0%, rgb(var(--scrim) / .78) 48%, rgb(var(--scrim) / .15) 82%, transparent 100%); }
  .about__photo { min-height: 480px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .steps { grid-template-columns: 1fr; }
  .step__n { margin-bottom: 10px; font-size: 2.4rem; }
  .faq-grid { grid-template-columns: 1fr; }
  .sec-head--side { position: static; }
  .faq summary { padding: 18px 58px 18px 20px; font-size: 1rem; }
  .faq__a { padding: 0 20px 20px; }
  .form__row { grid-template-columns: 1fr; }
  .foot__in { grid-template-columns: 1fr; gap: 18px; }
  .foot { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }

  /* Floating CTA → sklenená spodná lišta s dvoma tlačidlami */
  .fcta {
    left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); gap: 8px;
    padding: 6px; border-radius: 999px;
    background: linear-gradient(140deg, rgb(var(--solid-a) / .78), rgb(var(--solid-c) / .62));
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow);
  }
  .fcta a { min-height: 52px; white-space: nowrap; font-size: .98rem; }
  .fcta__main { gap: 8px; }
  .fcta__tel { width: auto; flex: 0 0 auto; padding: 0 18px; box-shadow: inset 0 0 0 1px rgb(46 90 11 / .2); border: 0; background: rgb(var(--call-bg)); color: var(--call-ink); font-weight: 700; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .fcta__label { display: inline; }
  .fcta__main { flex: 1; justify-content: center; padding: 0 16px; box-shadow: inset 0 1px 0 rgb(var(--accent-hi) / .8); }
  .fcta__main svg { width: 28px; height: 28px; }
  .consent { left: 10px; right: 10px; max-width: none; bottom: calc(10px + env(safe-area-inset-bottom)); }
}

/* ---------- Bez podpory skla / znížená priehľadnosť → pevné plochy ---------- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .tile, .nav .nav__in, .section--glass, .step, .faq details, .consent, .menu, .fcta__tel { background-color: var(--solid); }
}
@media (prefers-reduced-transparency: reduce) {
  .tile, .nav .nav__in, .step, .faq details, .consent, .menu, .fcta__tel { background: var(--solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .tile--tint, .section--glass { background: var(--solid-tint); }
  .tile--soft { background: var(--accent-soft); }
  .tile--green { background: var(--accent); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-reveal], .js [data-reveal-group] > * { opacity: 1; transform: none; }
}

/* ---------- Prepínač farebných verzií (len náhľad pre klienta) ---------- */
.theme-switch {
  position: fixed; left: 20px; bottom: 20px; z-index: 55; display: flex; align-items: center; gap: 10px;
  padding: 8px 10px 8px 16px; border-radius: 999px; font-size: .8rem; font-weight: 500; color: var(--ink-2);
  background: linear-gradient(140deg, rgb(var(--glass-hi) / .85), rgb(var(--glass-lo) / .7));
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.theme-switch[hidden] { display: none; }
.theme-switch__label { letter-spacing: .02em; }
.theme-switch__opts { display: flex; gap: 6px; }
.theme-switch button {
  position: relative; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--sw); box-shadow: inset 0 0 0 2px rgb(var(--paper-rgb) / .7), 0 1px 3px rgb(var(--ink-rgb) / .2);
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.theme-switch button:active { transform: scale(.92); }
.theme-switch button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px rgb(var(--paper-rgb) / .9), 0 0 0 2px var(--ink); }
@media (hover: hover) and (pointer: fine) { .theme-switch button:hover { transform: scale(1.08); } }
.theme-switch button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* jemný prechod farieb pri prepnutí, nie pri načítaní */
html.theme-anim body, html.theme-anim .tile, html.theme-anim .btn, html.theme-anim .foot { transition: background-color 300ms ease, color 300ms ease; }
@media (max-width: 767px) {
  .theme-switch { left: auto; right: 4px; bottom: auto; top: 42%; flex-direction: column; padding: 6px; gap: 0; }
  .theme-switch__opts { flex-direction: column; }
  .theme-switch button { width: 26px; height: 26px; }
  .theme-switch__label { display: none; }
  body.has-consent .theme-switch { opacity: 0; pointer-events: none; }
}

/* Farba štvorca v logu — téma ju môže odlíšiť od akcentu (napr. tmavá pod žltou fajkou) */
.logo__mark rect { fill: var(--logo-mark, var(--accent)); }
