/* JMD Labs v17: štýly stránky (vo v16 vložené v <head>, teraz v súbore). Kit Taste Skill 2.5.1 sa nemení,
   toto sú len úpravy stránky. Obrázky sú relatívne k assets/page/. Krivka pohybu: --ease-out. */

/* ================================================================ základ */
:root { --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --padt: clamp(80px, 10vh, 136px); --padb: clamp(80px, 10vh, 136px); }
.nav__logo img { display: block; height: 40px; width: auto; }
@media (max-width: 639px) { .nav__logo img { height: 32px; } }
@media (min-width: 640px) and (max-width: 1279px) { .hero .btn-row > .btn--secondary { margin-left: calc(-1 * var(--s-2)); } }

/* sekcie majú výšku podľa obsahu (kit ich inak drží na celú obrazovku); úvod a živý postup nie */
main > :is(section, .section):not(.hero):not(#postup.is-live) { height: auto; min-height: 0; }
main > :is(section, .section):not(.hero) > :is(.wrap, .container) { height: auto; }
main > #postup[data-moment]:not(.is-live) { min-height: 0; }
main > .hero { height: clamp(600px, 100svh, 1000px); }
@media (max-width: 1023px), (max-height: 600px) { main > .hero { height: auto; min-height: 0; } }

/* jemné nábehy [data-rv] (assets/page/page.js pridá html.rv a .is-in, raz); bez skriptu je všetko vidno */
html.rv [data-rv] { opacity: 0; translate: 0 18px; transition: opacity 600ms var(--ease-out), translate 700ms var(--ease-out); transition-delay: var(--rv-d, 0ms); }
html.rv [data-rv].is-in { opacity: 1; translate: none; }

/* ================================================================ úvod (bez zmeny oproti v16) */
@keyframes v8-rise { from { opacity: 0; translate: 0 28px; scale: .985; } }
@keyframes v8-fade { from { opacity: 0; } }
html.m-enter:not(.m-enter-done, [data-motion="off"]) .hero[data-enter]:not(.is-entering, .is-entered, .is-still) .hero__media { opacity: 0; }
@media screen and (prefers-reduced-motion: no-preference) {
  html.m-enter .hero[data-enter]:is(.is-entering, .is-entered):not(.is-still) .hero__media,
  html.m-enter.m-enter-done .hero[data-enter]:not(.is-still) .hero__media { animation: v8-rise 900ms var(--ease-out) 300ms both; }
}
.hero__media { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-lg, 20px); background: url(../brand/streaks.jpg) center / cover no-repeat; }
.hero__media::before { content: ""; position: absolute; inset: -25%; z-index: -1; pointer-events: none; will-change: transform;
  background: radial-gradient(60% 50% at 70% 35%, rgb(255 255 255 / .45), transparent 70%);
  animation: v8-drift 16s ease-in-out infinite alternate; }
@keyframes v8-drift { to { transform: translate3d(7%, -6%, 0) rotate(8deg); } }
.hero__media::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgb(255 250 246 / .25), rgb(255 250 246 / .05)); opacity: .3; mix-blend-mode: overlay; }

/* tlačidlá a karty pod myšou (do 300 ms) */
@media (hover: hover) and (pointer: fine) {
  html:not([data-motion="off"]) .btn--primary:hover { background: color-mix(in oklab, var(--action) 88%, #000); box-shadow: 0 10px 24px -12px rgb(255 91 31 / .6); }
}

/* ================================================================ S2 služby: 3 karty so živou ukážkou */
#sluzby .panel { --p-h: 300px; }
@media (max-width: 639px) { #sluzby .panel { --p-h: 240px; } }
@media (min-width: 1600px) { #sluzby .panel { --p-h: 340px; } }
@media (min-width: 2200px) { #sluzby .panel { --p-h: 400px; } }
.sluzby__data { max-width: 64em; margin: var(--s-7) 0 0; font-size: 18px; line-height: 1.6; color: var(--p-ink); text-wrap: pretty; }
.sluzby__data .link { margin-left: .35em; white-space: nowrap; }
#sluzby .sluzba > p { text-wrap: balance; }   /* krátke dvojriadkové vety bez osamelého slova na konci */
@media (max-width: 1279px) { #sluzby .sluzby__grid { row-gap: 40px; } }
@media (max-width: 639px) { .sluzby__data { font-size: 17px; margin-top: var(--s-6); } }

/* karta 3: zmenšený „Týdenní přehled“ z v16 na teplom pozadí (glow ako reporting vo v16) */
#sluzby .panel--rp { display: grid; place-items: center; background: #f4ede7; container: rp / inline-size; }
#sluzby .panel--rp::before { display: none; }
.rp__glow { position: absolute; z-index: 0; left: 4%; top: 2%; width: 150%; aspect-ratio: 1.8; pointer-events: none;
  background: url(../brand/glow-orb.jpg) center / 100% 100% no-repeat; transform-origin: 70% 60%; will-change: transform;
  animation: v10-breathe 18s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
@keyframes v10-breathe { from { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); } to { transform: translate3d(-3%, 2%, 0) scale(1.07) rotate(-4deg); } }
.rp__grain { position: absolute; z-index: 0; inset: 0; pointer-events: none; background: url(../brand/grain.png) 0 0 / 256px 256px repeat; opacity: .3; mix-blend-mode: overlay; }
.rp { position: relative; z-index: 1; margin: 0; width: min(100% - 48px, 360px); display: grid; gap: 12px; padding: 16px;
  border-radius: 14px; background: rgb(255 255 255 / .96); box-shadow: 0 1px 0 rgb(255 255 255 / .8) inset, 0 24px 56px -28px rgb(60 20 5 / .5);
  font: 400 13px/1.35 var(--font-text); color: var(--p-ink); text-align: left; }
.rp__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.rp__title { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; }
.rp__chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 99px; background: #f2f2f0; font-size: 11.5px; color: var(--p-muted); white-space: nowrap; }
.rp__chip i { width: 6px; height: 6px; border-radius: 50%; background: #1f9d55; }
.rp__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rp__kpi { display: grid; gap: 2px; min-width: 0; padding: 8px 10px; border-radius: 10px; background: #f6f4f1; }
.rp__kpi small { font-size: 11.5px; color: var(--p-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp__kpi b { font-weight: 600; font-size: 21px; line-height: 1.1; letter-spacing: -0.02em; }
.rp__kpi.is-warn b { color: #b83a0b; }
.rp__chart { display: flex; align-items: flex-end; gap: 6px; height: 64px; border-bottom: 1px solid var(--line); }
.rp__chart i { flex: 1; height: calc(var(--h) * 100%); border-radius: 4px 4px 1px 1px; background: #e9e4de; transform-origin: bottom; }
.rp__chart i.is-now { background: var(--p-accent); }
.rp__alert { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: #fff3ec; color: #5a2309; font-size: 12.5px; line-height: 1.4; }
.rp__dot { flex: none; width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--p-accent); }
/* stĺpce grafu vyrastú, keď sa karta prvýkrát objaví */
html.rv .sluzba .rp__chart i { transition: transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms + 300ms); }
html.rv .sluzba:not(.is-in) .rp__chart i { transform: scaleY(.08); }
.rp__chart i:nth-child(2) { --i: 1 } .rp__chart i:nth-child(3) { --i: 2 } .rp__chart i:nth-child(4) { --i: 3 } .rp__chart i:nth-child(5) { --i: 4 }
.rp__chart i:nth-child(6) { --i: 5 } .rp__chart i:nth-child(7) { --i: 6 } .rp__chart i:nth-child(8) { --i: 7 }
@container rp (max-width: 400px) {
  .rp__chip-more { display: none; }
  .rp { width: calc(100% - 32px); }
  .rp__kpi { padding-inline: 8px; }
  .rp__kpi small { font-size: 11px; }
}
@container rp (min-width: 560px) { .rp { width: 400px; gap: 14px; padding: 18px; } .rp__chart { height: 76px; } }
@media (max-width: 639px) {
  .rp { gap: 10px; padding: 14px; }
  .rp__kpi { padding: 7px 9px; }
  .rp__kpi b { font-size: 19px; }
  .rp__chart { height: 44px; }
  .rp__alert { padding: 7px 9px; }
}

/* ================================================================ S3 referencie: nadpis a odvetvie vľavo, Předtím → Potom vpravo
   (kontrola dizajnu 5. 12.: bez štítkov, dve zóny namiesto štyroch, na mobile o 300 px kratšie) */
#reference .section-head .ref__sub { color: var(--p-muted); }
.refs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ref { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 6px; align-items: start;
  padding: clamp(22px, 2.2vw, 30px) clamp(22px, 2.5vw, 36px); border-radius: var(--r-lg, 20px); background: var(--p-bg, #fff); }
.ref__nadpis { grid-column: 1 / span 5; grid-row: 1; margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -0.02em;
  font-size: clamp(20px, .55vw + 14px, 24px); line-height: 1.25; text-wrap: balance; }
.ref__odvetvi { grid-column: 1 / span 5; grid-row: 2; margin: 0; font-size: 16px; line-height: 1.4; color: var(--p-muted); }
.ref__zmena { grid-column: 6 / -1; grid-row: 1 / span 2; display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); column-gap: 16px; align-items: start; }
.ref__k { display: block; margin-bottom: 6px; font-size: 15px; line-height: 22px; color: var(--p-muted); }
.ref__ted .ref__k { color: var(--p-ink); font-weight: 500; }
.ref__zmena p { margin: 0; font-size: 16px; line-height: 1.5; }
.ref__pred p { color: color-mix(in oklab, var(--p-ink) 66%, #fff); }
.ref__ted p { color: var(--p-ink); }
/* šípka z „Předtím“ do „Potom“: pri prvom zobrazení riadku sa čiara nakreslí (raz), hrot dobehne a „Potom“ sa ukáže po nej */
.ref__sipka { position: relative; height: 22px; color: var(--p-accent); }
.ref__sipka::before { content: ""; position: absolute; left: 0; right: 2px; top: 50%; height: 2px; margin-top: -1px; border-radius: 1px;
  background: color-mix(in oklab, var(--p-ink) 45%, #fff); transform-origin: left center;
  transition: transform 650ms var(--ease-out) 250ms, background-color 200ms ease; }
.ref__sipka::after { content: ""; position: absolute; right: 1px; top: 50%; width: 8px; height: 8px; margin-top: -4px; box-sizing: border-box;
  border: solid currentColor; border-width: 1.5px 1.5px 0 0; rotate: 45deg; transition: opacity 200ms ease 750ms, translate 300ms var(--ease-out) 750ms; }
html.rv .ref:not(.is-in) .ref__sipka::before { transform: scaleX(0); }
html.rv .ref:not(.is-in) .ref__sipka::after { opacity: 0; translate: -10px 0; }
@media (min-width: 640px) {
  .ref__ted { transition: opacity 450ms var(--ease-out) 750ms, translate 600ms var(--ease-out) 750ms; }
  html.rv .ref:not(.is-in) .ref__ted { opacity: 0; translate: 12px 0; }
}
/* riadok nie je odkaz: pod myšou sa nedvíha, len čiara jemne zmení farbu */
@media (hover: hover) and (pointer: fine) { .ref:hover .ref__sipka::before { background-color: var(--p-accent); } }
@media (max-width: 1279px) {
  .ref__nadpis, .ref__odvetvi { grid-column: 1 / -1; }
  .ref__zmena { grid-column: 1 / -1; grid-row: 3; margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); }
}
@media (max-width: 639px) {
  .ref { grid-template-columns: minmax(0, 1fr); }
  .ref__zmena { grid-template-columns: 62px minmax(0, 1fr); column-gap: 12px; row-gap: 10px; margin-top: 12px; padding-top: 12px; }
  .ref__pred, .ref__ted { display: contents; }
  .ref__k { margin: 0; line-height: 24px; }
  .ref__sipka { display: none; }
}

/* ================================================================ S4 postup (pinned-chapters, 3 kroky) */
main #postup.is-live .mo-pc__visuals { aspect-ratio: auto; height: clamp(380px, 62svh, 620px); max-height: none; }
main #postup.is-live .mo-pc__visual--lit { aspect-ratio: auto; }
#postup:not(.is-live) .mo-pc__visual--lit { aspect-ratio: auto; height: auto; padding: clamp(20px, 3vw, 36px); }
#postup:not(.is-live) .mo-pc__visual--lit > .ui { max-width: 100%; }
@media (min-width: 640px) and (max-width: 1023px) { #postup:not(.is-live) .mo-pc__step { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
@media (max-width: 1023px) { #postup:not(.is-live) .mo-pc__visual--lit > .ui { width: 100%; } }
.ui-checks__foot, .ui-toggles__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; padding: 12px 16px 6px; box-shadow: inset 0 1px 0 var(--u-line); }
.ui-checks__note { font-size: 13px; line-height: 18px; color: var(--u-muted); }
/* úzky telefón: počítadlo „2 z 5 zapnuto" sa do hlavičky nezmestí; položky checklistu ostanú na jednom riadku (prečiarknutie je jedna čiara) */
@media (max-width: 479px) {
  #postup:not(.is-live) .mo-pc__visual--lit { padding: 20px 12px; }
  #postup .ui-toggles [data-tg-count] { display: none; }
  #postup .ui-checks__head { gap: 8px; }
  #postup .ui-checks__head .ui-title, #postup .ui-check__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ================================================================ S5 záruka (tmavý pás, word-highlight, orb) */
#zaruka { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(112px, 16vh, 200px); }
#zaruka .wrap { position: relative; }
/* výrok o stupeň väčší než H2 (58 px pri 1440, 36 px pri 390) */
#zaruka .mo-wh__text { font-size: max(34px, calc(var(--t-h2) * 1.22)); line-height: 1.12; max-width: 15em; }
#zaruka .mo-wh__text strong { font-weight: inherit; color: var(--accent); }   /* bez JS: zvýraznené slová rovno v akcente; s JS farbu riadia .mo-w */
.zaruka__orb { position: absolute; z-index: -2; top: 50%; right: max(-6vw, -120px); width: clamp(420px, 46vw, 820px); aspect-ratio: 1; translate: 0 -50%; pointer-events: none;
  background: url(../brand/slit-orb.jpg) center / 100% 100% no-repeat; will-change: transform;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  animation: v10-orb 20s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
@keyframes v10-orb { from { transform: scale(1) rotate(0deg); } to { transform: scale(1.06) rotate(3deg); } }
.zaruka__grain { position: absolute; z-index: -1; inset: 0; pointer-events: none; background: url(../brand/grain.png) 0 0 / 256px 256px repeat; opacity: .22; mix-blend-mode: overlay; }
@media (min-width: 1024px) {
  #zaruka .mo-wh__text { max-width: 62%; }
  #zaruka .wrap { min-height: clamp(360px, 40vw, 640px); display: flex; flex-direction: column; justify-content: center; }
}
@media (max-width: 1023px) {
  main > #zaruka { padding-bottom: min(60vw, 460px); }
  .zaruka__orb { top: auto; bottom: max(-24vw, -170px); right: max(-8vw, -60px); translate: none; width: min(84vw, 600px); }
}

/* ================================================================ S6 o Jakubovi (bez zmeny oproti v16) */
.tym-x { row-gap: 0; }
.tym-x__head { margin-bottom: var(--s-6); }
.tym-x__foto { margin: 0; }
.tym-x__cap { display: flex; flex-direction: column; gap: 2px; margin-top: var(--s-4); }
.tym-x__cap strong { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--t-h3); line-height: 1.2; }
.tym-x__cap span, .tym-x__sign span, .tym-x__who, .tym-x__rows span, .tym-x__facts span { color: var(--p-muted); }
.tym-x__text > * { margin: 0; }
.tym-x__text > * + * { margin-top: var(--s-5); }
.tym-x__note { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: clamp(24px, 1.2vw + 13px, 32px); line-height: 1.28; }
.tym-x__body { font-size: var(--t-lead); line-height: 1.5; color: color-mix(in oklab, var(--ink) 82%, transparent); max-width: 56ch; }
.tym-x__sign { display: flex; flex-direction: column; gap: 2px; padding-top: var(--s-2); }
.tym-x__sign strong { font-weight: 500; }
.tym-x__rows { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.tym-x__rows li { display: grid; gap: 4px; padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.tym-x__rows strong { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--t-card); line-height: 1.3; }
.tym-x__rows span { max-width: 54ch; }
.tym-x__quote { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: clamp(30px, 2.2vw + 12px, 46px); line-height: 1.16; text-wrap: balance; }
.tym-x__quote::before { content: "\201E"; color: var(--p-accent); }
.tym-x__quote::after { content: "\201C"; color: var(--p-accent); }
.tym-x__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5) var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.tym-x .tym-x__facts { margin-top: var(--s-7); }
.tym-x__facts div { display: grid; gap: 4px; align-content: start; }
.tym-x__facts strong { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: clamp(21px, .6vw + 15px, 26px); line-height: 1.25; }
.tym-x__facts span { font-size: clamp(16px, .25vw + 14.5px, 19px); line-height: 1.5; }
.tym-x__who { font-size: var(--t-lead); }
@media (min-width: 720px) {
  .tym-x { grid-template-rows: auto 1fr; }
  .tym-x__head { grid-column: 6 / span 7; grid-row: 1; }
  .tym-x__foto { grid-column: 1 / span 5; grid-row: 1 / span 2; }
  .tym-x__text { grid-column: 6 / span 7; grid-row: 2; }
}
@media (min-width: 1024px) { .tym-x__head, .tym-x__text { grid-column: 6 / span 7; } .tym-x__foto { grid-column: 1 / span 4; } .tym-x__quote { max-width: 18em; } }
@media (max-width: 719px) {
  .tym-x__foto { margin-bottom: var(--s-6); }
  .tym-x__foto .tym__foto { aspect-ratio: 1 / 1; border-radius: 14px; }
  .tym-x__foto .tym__foto img { object-position: 50% 12%; }
}
@media (max-width: 1023px) { .tym-x__facts { grid-template-columns: 1fr; gap: var(--s-4); } }
.tym__foto { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg, 20px); overflow: hidden; isolation: isolate;
  background: radial-gradient(75% 75% at 102% 55%, rgb(255 120 60 / .26), transparent 70%), radial-gradient(95% 85% at 38% 30%, #f0eeea, #d6d3ce 100%); }
.tym__foto:not(:has(img))::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: url(../brand/grain.png) 0 0 / 256px 256px repeat; opacity: .25; mix-blend-mode: overlay; }
.tym__foto[data-initial]:not(:has(img))::before { content: attr(data-initial); position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(72px, 9vw, 140px); letter-spacing: -0.04em; color: rgb(13 13 13 / .16); }
.tym__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

/* ================================================================ S7 otázky: zbalené <details> (vlastná trieda .qa, nie .faq,
   lebo system.js každé .faq details natrvalo otvorí) */
#faq .section-head { margin-bottom: var(--s-6); }
#faq .section-head .faq__sub { color: var(--p-muted); }
.qa__item { border-bottom: 1px solid var(--line-strong); scroll-margin-top: 8px; }
.qa__item:first-child { border-top: 1px solid var(--line-strong); }
.qa__q { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: 68px; padding: 16px 0; cursor: pointer; list-style: none;
  font: 500 20px/1.35 var(--font-text); letter-spacing: -0.01em; color: var(--p-ink); -webkit-tap-highlight-color: transparent; }
.qa__q::-webkit-details-marker { display: none; }
.qa__q::marker { content: ""; }
.qa__q:focus-visible { outline: 2px solid var(--action); outline-offset: 4px; border-radius: 4px; }
/* plus sa pri otvorení otočí a zmení na mínus */
.qa__ikona { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; color: var(--p-ink); box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: rotate 240ms var(--ease-out), background-color 200ms ease, color 200ms ease, box-shadow 200ms ease; }
.qa__ikona::before, .qa__ikona::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; border-radius: 1px; background: currentColor;
  transition: rotate 240ms var(--ease-out), opacity 200ms ease; }
.qa__ikona::after { rotate: 90deg; }
.qa__item[open] .qa__ikona { rotate: 180deg; background: var(--p-ink); color: #fff; box-shadow: none; }
.qa__item[open] .qa__ikona::after { rotate: 0deg; }
@media (hover: hover) and (pointer: fine) {
  .qa__q:hover .qa__ikona { background: #fff; }
  .qa__item[open] .qa__q:hover .qa__ikona { background: #2a2a2a; }
}
/* odpoveď sa zjaví (priehľadnosť a 7 px), výška sa neanimuje */
.qa__a { padding: 0 56px 24px 0; }
.qa__a p { margin: 0; max-width: 58ch; font-size: 17px; line-height: 1.6; color: color-mix(in oklab, var(--p-ink) 84%, transparent); }
.qa__a a { color: var(--p-ink); text-decoration: underline; text-underline-offset: 3px; }
@keyframes qa-in { from { opacity: 0; translate: 0 -7px; } }
.qa__item[open] .qa__a { animation: qa-in 240ms var(--ease-out); }
.faq__dalsi { margin-top: var(--s-2); }
@media (max-width: 1023px) { .qa { margin-top: var(--s-6); } }
@media (max-width: 639px) {
  .qa__q { min-height: 60px; font-size: 18px; }
  .qa__a { padding-right: 0; }
  .faq__dalsi { display: none; }
}

/* ================================================================ S8 kontakt: teplý panel s horizontom + formulár */
#contact-form .kontakt__grid { row-gap: var(--s-6); }
.kontakt__panel { position: relative; isolation: isolate; overflow: hidden; align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-5);
  border-radius: var(--r-lg, 20px); background: #f4ede7; padding: clamp(28px, 3.2vw, 48px) clamp(28px, 3.2vw, 48px) clamp(150px, 12vw, 176px); }
.kontakt__panel::before { content: ""; position: absolute; z-index: -2; left: -50%; right: -50%; bottom: -44px; aspect-ratio: 2400 / 760; pointer-events: none;
  background: url(../brand/horizon.jpg) center bottom / 100% 100% no-repeat; transform-origin: 60% 100%; will-change: transform;
  animation: v10-rise 14s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
.kontakt__panel::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: url(../brand/grain.png) 0 0 / 256px 256px repeat; opacity: .35; mix-blend-mode: overlay; }
@keyframes v10-rise { from { transform: translate3d(0, 4%, 0) scale(1.02); } to { transform: translate3d(0, -3%, 0) scale(1.06); } }
.kontakt__panel h2 { max-width: 12em; margin: 0; }
.kontakt__lead { margin: 0; max-width: 30em; font-size: 20px; line-height: 30px; color: var(--p-ink); }
.kontakt__meet { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font-size: 17px; line-height: 1.4; color: var(--p-ink); }
.kontakt__meet .meet { display: inline-flex; align-items: center; gap: 8px; }
.kontakt__mail { margin: 0; font-size: 20px; line-height: 1.4; }
.kontakt__mail a { font-weight: 500; color: var(--p-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: color-mix(in oklab, var(--p-ink) 35%, transparent); transition: text-decoration-color 160ms ease; }
.kontakt__mail a:hover { text-decoration-color: currentColor; }
@media (max-width: 639px) {
  .kontakt__panel { padding: 28px 24px 150px; }
  .kontakt__panel::before { left: -90%; right: -90%; bottom: -36px; }
  .kontakt__lead { font-size: 18px; line-height: 28px; }
  .kontakt__mail { font-size: 18px; }
}
/* formulár: markup a správanie bez zmeny, len veľkosti písma */
#contact-form .form { gap: var(--s-5) var(--s-4); }
#contact-form .field { font-size: 16px; line-height: 24px; font-weight: 500; }
#contact-form .field :is(input, textarea) { height: 48px; font-size: 17px; }
#contact-form .field textarea { height: auto; min-height: 132px; line-height: 1.5; }
#contact-form .field:has(textarea) { grid-column: 1 / -1; }
#contact-form .form .btn--primary { height: 52px; padding-inline: 24px; font-size: 17px; }
#contact-form .field__error, #contact-form .form__status { font-size: 15px; }
.field__opt { font-weight: 400; color: var(--p-muted); }
.kontakt__hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form > .kontakt__err { grid-column: 1 / -1; }
.kontakt__err { padding: 12px 14px; border-radius: 12px; background: #fff3ec; color: #5a2309; font-size: 15px; line-height: 1.5; }
.kontakt__err[hidden] { display: none; }
.kontakt__err a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.kontakt__info { color: var(--p-muted); }
#contact-form .kontakt__info { font-size: 15px; line-height: 22px; }
.kontakt__info a { color: var(--p-ink); text-decoration: underline; text-underline-offset: 3px; }
.kontakt__ok { display: grid; gap: var(--s-4); justify-items: start; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg, 20px); background: var(--p-surface, #f2f2f0); outline: none; }
.kontakt__ok[hidden] { display: none; }
.kontakt__ok h3 { font-size: var(--t-h3, 26px); margin: 0; }
.kontakt__ok p { margin: 0; max-width: 46ch; font-size: var(--t-lead, 19px); }
.kontakt__ok [data-ok-email] { font-weight: 600; overflow-wrap: anywhere; }
.kontakt__check { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--p-accent); }
.kontakt__check svg { width: 28px; height: 28px; fill: none; stroke: #0d0d0d; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 0; }
.kontakt__again { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: 16px; color: var(--p-ink); text-decoration: underline; text-underline-offset: 3px; }
@keyframes v16-in { from { opacity: 0; translate: 0 14px; } }
@keyframes v16-check { from { stroke-dashoffset: 24; } }
@media (prefers-reduced-motion: no-preference) {
  .kontakt__ok.is-shown { animation: v16-in 500ms var(--ease-out) both; }
  .kontakt__ok.is-shown .kontakt__check svg { animation: v16-check 520ms var(--ease-out) 180ms both; }
}
.form button[aria-busy="true"] { opacity: .7; cursor: progress; }
@media (max-width: 639px) { #contact-form .field :is(input, textarea) { font-size: 16px; } #contact-form .form .btn--primary { width: 100%; } }

/* ================================================================ pätička: logo s rohmi, odkazy 18 px, firma a právne 16 px */
.footer.pata { border-top: 0; padding: 0 0 calc(var(--s-7) + var(--bar, 0px)); }
.pata__hlava { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5) var(--s-7); padding-top: clamp(40px, 4.4vw, 64px); border-top: 1px solid var(--line); }
.pata__logo { display: inline-flex; border-radius: 4px; }
.close__logo { display: block; height: clamp(36px, 1.14vw + 31.5px, 48px); width: auto; aspect-ratio: 545 / 136.8; margin: 0; overflow: visible; }
.close__c { transition: transform 900ms var(--ease-out) 150ms; }
html.rv .close__logo:not(.is-in) .close__c--tl { transform: translate(-46px, -28px); }
html.rv .close__logo:not(.is-in) .close__c--br { transform: translate(46px, 28px); }
.pata__nav.footer__nav { margin: 0; padding: 0; border: 0; gap: 4px var(--s-7); font-size: 18px; line-height: 28px; font-weight: 500; }
.pata__nav a { color: var(--p-ink); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; transition: text-decoration-color 160ms ease; }
.pata__nav a:hover { color: var(--p-ink); text-decoration-color: currentColor; }
.pata .footer__legal { align-items: baseline; margin-top: clamp(28px, 3vw, 40px); padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: 16px; line-height: 24px; color: var(--p-muted); }
.footer__firma { margin: 0; max-width: 62ch; font-size: 16px; line-height: 24px; color: var(--p-muted); }
.footer__pravni { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-5); font-size: 16px; line-height: 24px; }
.footer__pravni :is(a, .cc-odkaz) { color: var(--p-ink); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color 160ms ease; }
.footer__pravni .cc-odkaz { min-height: 44px; font-size: 16px; }
.footer__pravni :is(a, .cc-odkaz):hover { text-decoration-color: currentColor; }
@media (max-width: 639px) {
  .pata__hlava { flex-direction: column; align-items: flex-start; }
  .pata__nav.footer__nav { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 0 var(--s-4); }
  .footer__pravni { flex-direction: column; align-items: flex-start; }
}

/* mobilný pruh s tlačidlom sa skryje, kým je na obrazovke formulár (assets/page/v17.js pridá html.is-form-in) */
@media (max-width: 639px) {
  html.is-form-in body > nav.actionbar { transform: translateY(100%); visibility: hidden; transition: transform 240ms var(--ease), visibility 0s 240ms; }
}

/* ================================================================ chýbajúci údaj v náhľade (pred spustením nesmie ostať) */
.todo-in { display: inline-block; padding: 0 6px; border: 1px dashed #ff5b1f; border-radius: 6px; background: #fff6f1; color: #b83a0b; font-size: .9em; font-weight: 500; }

/* ================================================================ veľké obrazovky */
@media (min-width: 1600px) {
  :root { --container: 1440px; --t-body: 17px; --t-lead: 20px; --t-card: 19px; --t-h3: 26px; --t-h2: 54px; --t-h1: 82px; --ly-scale: 1.14; }
  .nav__logo img { height: 44px; }
  .hero__lead { font-size: 21px; }
}
@media (min-width: 2200px) {
  :root { --container: 1720px; --t-small: 15px; --t-body: 18px; --t-lead: 22px; --t-card: 20px; --t-h3: 28px; --t-h2: 62px; --t-h1: 96px; --ly-scale: 1.32; }
  .nav__logo img { height: 48px; }
  .hero__lead { font-size: 23px; }
}

/* ================================================================ obmedzený pohyb: len prelínanie, obsah stojí
   (assets/page/boot.js nechá skriptom pohyb zapnutý; tu CSS ruší posuny, zväčšenia a slučky) */
@media (prefers-reduced-motion: reduce) {
  html.rv [data-rv] { translate: none; transition: opacity 450ms ease-out var(--rv-d, 0ms) !important; }
  html.m-enter .hero[data-enter]:is(.is-entering, .is-entered):not(.is-still) .hero__media,
  html.m-enter.m-enter-done .hero[data-enter]:not(.is-still) .hero__media { animation: v8-fade 700ms ease-out 200ms both !important; }
  .hero[data-enter] .m-w__in, .hero.is-entering :is(.hero__lead, .btn-row > *) { transform: none !important; translate: none !important; }
  .hero.is-entering h1 { animation: v8-fade 500ms ease-out both !important; }
  html.m-enter:not(.m-enter-done, [data-motion="off"]) .hero[data-enter]:not(.is-entering, .is-entered) :is(h1, .hero__lead, .btn-row) { opacity: 0; }
  .hero__media::before { animation: none !important; }
  .rp__glow, .zaruka__orb, .kontakt__panel::before { animation: none !important; }
  .rp__chart i { transition: none !important; transform: none !important; }
  .ref__sipka::before, .ref__sipka::after { transition: background-color 200ms ease !important; }
  html.rv .ref:not(.is-in) .ref__ted { translate: none; }
  html.rv .ref:not(.is-in) .ref__sipka::before { transform: none; }
  html.rv .ref:not(.is-in) .ref__sipka::after { opacity: 1; translate: none; }
  .qa__item[open] .qa__a { animation: v8-fade 200ms ease-out; }
  .qa__ikona, .qa__ikona::before, .qa__ikona::after { transition: background-color 150ms ease, color 150ms ease, opacity 150ms ease; }
  .qa__item[open] .qa__ikona { rotate: none; }
  .qa__item[open] .qa__ikona::after { rotate: 90deg; opacity: 0; }
  .close__c { transition: none !important; transform: none !important; }
  /* postup ostáva pripnutý, kroky a obrázky sa len prelínajú */
  @media (min-width: 1024px) and (min-height: 640px) {
    main > #postup[data-moment].is-live { height: calc(2 * 100svh); }
    main #postup[data-moment].is-live > .mo-pc__grid { position: sticky; top: 0; height: 100svh; }
  }
  main #postup.is-live .mo-pc__visual { transition: opacity 300ms ease !important; transform: none !important; }
  main #postup.is-live .mo-pc__step p { transition: opacity 300ms ease !important; }
  /* záruka: slová sa rozsvecujú len zmenou farby */
  #zaruka .mo-wh__text .mo-w { color: color-mix(in oklab, var(--ink) 50%, var(--bg)); transition: color 160ms ease !important; }
  #zaruka .mo-wh__text .mo-w.is-on { color: var(--ink); }
  #zaruka .mo-wh__text strong .mo-w { color: color-mix(in oklab, var(--ink) 50%, var(--bg)); }
  #zaruka .mo-wh__text strong .mo-w.is-on { color: var(--accent); }
}

/* ================================================================ opravy po nezávislej kontrole (5. 12. 2026) */
/* služby: nadpisy kariet v nadpisovom písme ako nadpisy referencií; pauza diagramu v oboch kartách vpravo hore */
#sluzby .sluzba > h3 { font: 400 clamp(20px, .55vw + 14px, 24px)/1.25 var(--font-display); letter-spacing: -0.02em; text-wrap: balance; }
#sluzby .dg-pause { top: 12px !important; bottom: auto !important; }
.sluzby__data .link { margin-left: 0; }

/* postup: kit dáva v 640–1279 px každému .wrap flex: 1 0 auto, mriežka by sa natiahla na dve obrazovky a nepripla by sa */
main > #postup.is-live > .mo-pc__grid { flex: none; }
/* bublina „Doporučení“ dole, aby nezakrývala zvýraznenú vetu; list má spodný okraj */
#postup .ui-doc__note { top: auto !important; bottom: 20px; }
#postup .ui-doc__page { border-bottom: 1px solid var(--u-border); border-radius: var(--u-r2); }
/* panel ukážok má svetlo ako panely služieb */
main #postup .mo-pc__visual--lit { background-color: var(--ground-bg); background-image:
  radial-gradient(70% 90% at 12% 0%, color-mix(in oklab, var(--ground-surface) 92%, white), transparent 70%),
  radial-gradient(60% 80% at 100% 100%, color-mix(in oklab, var(--ground-accent) 34%, var(--ground-bg)), transparent 72%),
  radial-gradient(50% 60% at 85% 10%, color-mix(in oklab, var(--ground-surface) 60%, transparent), transparent 70%); }
@media (min-width: 1280px) and (min-height: 820px) { main #postup.is-live .mo-pc__visual--lit > .ui { scale: 1.16; } }

/* fokus nesmie skončiť pod hlavičkou ani pod mobilným pruhom (WCAG 2.4.11); skoky na sekcie ostávajú tam, kde boli */
html { scroll-padding-top: calc(var(--nav, 72px) + 16px); }
@media (max-width: 639px) { html { scroll-padding-bottom: calc(var(--bar, 64px) + 16px); } }
main > section[id] { scroll-margin-top: calc(-1 * (var(--nav, 72px) + 16px)); }
/* obrys fokusu na sivom a teplom podklade má kontrast aspoň 3 : 1 */
#faq :focus-visible, .kontakt__panel :focus-visible { outline-color: var(--p-ink); }

/* boot.js nechá pri obmedzenom pohybe bežať slučku pošty v úvode, preto jej tlačidlo pauzy ostáva viditeľné (WCAG 2.2.2) */
@media (prefers-reduced-motion: reduce) { html[data-os-reduce] .hero button.ui-pause.ui-pause { display: grid; } }

/* mobil: kit pridáva každej sekcii dole výšku pruhu (--bar), rezervu pre pruh má už pätička */
@media (max-width: 639px) { main > .section:not(.hero) { padding-bottom: var(--padb); } }

/* dotykové plochy aspoň 44 px bez zmeny vzhľadu */
.kontakt__mail a { display: inline-block; padding-block: 10px; margin-block: -10px; }
@media (pointer: coarse) {
  :is(.kontakt__info, .sluzby__data) a, .faq__dalsi, .pata__nav a, .footer__pravni :is(a, button) { padding-block: 10px; margin-block: -10px; }
  .pata__logo { padding-block: 4px; margin-block: -4px; }
}

