/* ==========================================================================
   AGROPOISTENIE — dizajnový systém
   Paleta: zelená #033d2e · žltá #fed027 · biela · bledozelená #b1efbb · krémová #fff4d6
   Typografia: Montserrat (nadpisy) · Source Sans 3 (text)
   ========================================================================== */

:root {
    --green: #033d2e;
    --green-2: #0b5741;
    --green-3: #12745a;
    --mint: #b1efbb;
    --mint-soft: #e3f8e7;
    --cream: #fff4d6;
    --cream-soft: #fffaf0;
    --yellow: #fed027;
    --yellow-d: #eec111;
    --white: #fff;
    --bg: #fbfaf4;
    --ink: #10241c;
    --muted: #55665e;
    --line: #e6e8de;
    --line-dark: rgba(255, 255, 255, .14);

    /* „… Fallback" je systémové písmo roztiahnuté na šírku daného rezu – kým sa
       stiahne pravé písmo, text sa nepreskladá. Definícia je v fonts.css. */
    --font-head: "Montserrat", "Montserrat Fallback", "Segoe UI", sans-serif;
    --font-body: "Source Sans 3", "Source Sans 3 Fallback", "Segoe UI", sans-serif;

    --r-s: 10px;
    --r-m: 16px;
    --r-l: 26px;
    --r-photo: 6px 56px 6px 56px;

    --shadow-s: 0 2px 10px rgba(3, 61, 46, .06);
    --shadow-m: 0 10px 34px rgba(3, 61, 46, .10);
    --shadow-l: 0 24px 60px rgba(3, 61, 46, .16);

    --container: 1200px;
    --topbar-h: 40px;
    --header-h: 84px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html:focus-within { scroll-behavior: smooth; } }
body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
/* Filter v includes/media.php dopĺňa každému obrázku width a height (kvôli tomu,
   aby obsah pri načítaní nepodskakoval). Bez height:auto by prehliadač bral výšku
   z atribútu doslova a obrázok by sa pri zúžení natiahol do výšky.
   Pravidlá, ktoré výšku nastavujú samy (hero, karty, fotky tímu), majú vyššiu
   špecificitu, takže sa ich to netýka. */
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
fieldset { border: 0; min-width: 0; }
legend { padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.18; color: var(--green); font-weight: 700; }
strong { font-weight: 600; }
::selection { background: var(--yellow); color: var(--green); }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }

.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
.container--narrow { width: min(860px, 100% - 48px); margin-inline: auto; }

/* ---------- typografické atómy ---------- */
.kicker {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-head); font-size: 12.5px; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase; color: var(--green-3);
    margin-bottom: 18px;
}
.kicker::before {
    content: ""; width: 26px; height: 2px; background: var(--yellow); border-radius: 2px;
}
.kicker--light { color: var(--mint); }

.h-xl { font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; letter-spacing: -.015em; }
.h-l  { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.01em; }
.h-m  { font-size: clamp(22px, 2.4vw, 28px); }

/* isolation drží podčiarknutie (z-index: -1) nad pozadím sekcie aj potom,
   čo animácii .reveal skončí transform a zanikne jej stacking context */
.mark-y { position: relative; white-space: nowrap; isolation: isolate; }
.mark-y::after {
    content: ""; position: absolute; left: -2px; right: -4px; bottom: .06em; height: .34em;
    background: var(--yellow); z-index: -1; border-radius: 3px; transform: skewX(-8deg);
}
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 640px; }

/* ---------- tlačidlá ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--font-head); font-weight: 700; font-size: 15.5px;
    padding: 15px 30px; border-radius: 999px; cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
    white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; transition: transform .25s ease; }
.btn:hover svg { transform: translateX(4px); }

.btn--primary { background: var(--yellow); color: var(--green); }
.btn--primary:hover { background: var(--yellow-d); }

.btn--dark { background: var(--green); color: var(--white); }
.btn--dark:hover { background: var(--green-2); }

.btn--outline { border: 2px solid var(--green); color: var(--green); background: transparent; }
.btn--outline:hover { background: var(--green); color: var(--white); }

.btn--outline-light { border: 2px solid rgba(255, 255, 255, .55); color: var(--white); background: transparent; }
.btn--outline-light:hover { border-color: var(--white); background: var(--white); color: var(--green); }

.btn--sm { padding: 11px 22px; font-size: 14px; }

/* ---------- hlavička ako celok (lišta + menu ostávajú prilepené hore) ---------- */
.sitehead { position: sticky; top: 0; z-index: 65; }

/* ---------- horný mikropanel ---------- */
.topbar { background: var(--green); color: rgba(255, 255, 255, .88); font-size: 14px; height: var(--topbar-h); position: relative; z-index: 1;
    overflow: hidden; transition: height .3s ease, opacity .25s ease; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.topbar__group { display: flex; align-items: center; gap: 22px; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; transition: color .2s; }
.topbar a:hover { color: var(--yellow); }
/* ikona je vysoká celý riadok (1em), text len po výšku verzálok – bez tohto posunu
   sedí ikona opticky nižšie než text, lebo presahuje pod účiarku */
.topbar svg { width: 14px; height: 14px; opacity: .8; transform: translateY(-1px); }
.topbar__zone { font-weight: 600; color: var(--yellow); }
.topbar__claim { font-weight: 600; }
.topbar__claim svg { color: var(--yellow); opacity: 1; }

/* prepínač jazykov – anglická verzia sa zatiaľ pripravuje, preto je nekliknuteľná */
.langsw { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: 999px;
    background: rgba(255, 255, 255, .1); }
.langsw__opt {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-head); font-weight: 700; font-size: 11.5px; letter-spacing: .06em;
    line-height: 1; padding: 4px 9px; border-radius: 999px; color: rgba(255, 255, 255, .82);
    transition: background .2s ease, color .2s ease;
}
/* vlajočka je farebná – nesmie zdediť rozmer ani posun jednofarebných ikon lišty */
.langsw .langflag {
    width: 17px; height: 11.5px; flex: none; border-radius: 2px; opacity: 1; transform: none;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .18);
}
.langsw__opt.is-soon .langflag { filter: grayscale(.55); }
.topbar a.langsw__opt:hover { background: rgba(255, 255, 255, .12); color: var(--yellow); }
.langsw__opt.is-active { background: var(--yellow); color: var(--green); }
.langsw__opt.is-soon { opacity: .45; cursor: default; }
/* pod ~880 px sa telefón a e-mail do lišty nezmestia (ostávajú v pätičke aj na Kontakte) */
@media (max-width: 880px) {
    .topbar__group--links { display: none; }
    .topbar__group--actions { flex: 1; justify-content: space-between; }
}

/* ---------- hlavička ---------- */
.header {
    position: relative; z-index: 1;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s ease;
}
.sitehead.is-scrolled .header { box-shadow: 0 6px 24px rgba(3, 61, 46, .10); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.header__logo { display: inline-flex; align-items: center; min-height: 44px; }
.header__logo img { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__link {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-head); font-size: 14.5px; font-weight: 600; color: var(--ink);
    padding: 12px 14px; border-radius: 10px; cursor: pointer;
    transition: color .2s, background .2s; white-space: nowrap;
}
.nav__link:hover, .nav__item:hover > .nav__link, .nav__link.is-active { color: var(--green); background: var(--mint-soft); }
.nav__link.is-active { box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 10px 10px 4px 4px; }
.nav__caret { width: 13px; height: 13px; transition: transform .25s; }
.nav__item:hover .nav__caret, .nav__item.is-open .nav__caret { transform: rotate(180deg); }

.dropdown {
    position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
    min-width: 330px; background: var(--white); border-radius: var(--r-m);
    border: 1px solid var(--line); box-shadow: var(--shadow-l);
    padding: 10px; opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
    z-index: 40;
}
.dropdown::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav__item:hover .dropdown, .nav__item.is-open .dropdown {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
}
.dropdown a { display: block; padding: 12px 14px; border-radius: 10px; transition: background .18s; }
.dropdown a:hover { background: var(--mint-soft); }
.dropdown a:hover .dropdown__t { color: var(--green-3); }
.dropdown__t { display: block; font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--green); transition: color .18s; }
.dropdown__d { display: block; font-size: 13.5px; color: var(--muted); margin-top: 1px; }

.header__cta { display: flex; align-items: center; gap: 14px; }

.burger { display: none; width: 46px; height: 46px; border-radius: 12px; position: relative; z-index: 70; }
.burger span {
    position: absolute; left: 12px; right: 12px; height: 2.5px; border-radius: 2px;
    background: var(--green); transition: transform .3s ease, opacity .2s, top .3s ease;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 29px; }
.burger.is-open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* mobilné menu */
.mnav {
    display: none; position: fixed; inset: 0; z-index: 60;
    /* obsah nesmie skončiť pod domovským indikátorom iPhonu */
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--white); padding: 150px 28px 40px; overflow-y: auto;
    transform: translateX(100%); transition: transform .35s cubic-bezier(.22,.8,.3,1);
}
.mnav.is-open { transform: translateX(0); }
.mnav__group { border-bottom: 1px solid var(--line); }
.mnav__toggle, .mnav__solo {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--green);
    padding: 17px 4px; text-align: left;
}
.mnav__toggle svg { width: 16px; height: 16px; transition: transform .25s; }
.mnav__group.is-open .mnav__toggle svg { transform: rotate(180deg); }
.mnav__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.mnav__group.is-open .mnav__sub { grid-template-rows: 1fr; }
.mnav__sub-in { overflow: hidden; }
.mnav__sub a { display: block; padding: 11px 16px; font-size: 15.5px; color: var(--muted); }
.mnav__sub a:last-child { margin-bottom: 12px; }
.mnav__cta { margin-top: 28px; display: grid; gap: 12px; }
/* Prepínač jazykov v mobilnom menu – v hornej lište sa na úzkych displejoch skryje.
   Sedí pod sociálnymi sieťami, bez popisku aj bez oddeľovacej čiary, a je väčší
   než v hornej lište, kde musí šetriť miestom. */
.mnav__lang { display: none; align-items: center; justify-content: center; margin-top: 18px; }
.mnav__lang .langsw { background: var(--mint-soft); gap: 4px; padding: 4px; }
.mnav__lang .langsw__opt { font-size: 14px; padding: 9px 16px; gap: 8px; }
.mnav__lang .langsw .langflag { width: 22px; height: 15px; }
.mnav__lang .langsw__opt { color: var(--green-3); }
.mnav__lang .langsw__opt.is-active { background: var(--green); color: var(--white); }
/* na úzkych displejoch by lišta s prepínačom pretiekla – prepínač sa presunie do mobilného menu */
@media (max-width: 560px) {
    .topbar .langsw { display: none; }
    .mnav__lang { display: flex; }
}
.mnav__social { display: flex; justify-content: center; gap: 12px; margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.mnav__social a {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--green);
    display: grid; place-items: center; transition: background .2s, border-color .2s, color .2s;
}
.mnav__social a:hover { background: var(--yellow); border-color: var(--yellow); }
.mnav__social svg { width: 18px; height: 18px; }
.seemore__row { flex-wrap: wrap; }
.seemore { white-space: nowrap; }
.seemore__arrow { width: 17px; height: 17px; flex: none; }

/* ---------- hero ---------- */
.hero { position: relative; color: var(--white); overflow: hidden; background: var(--green); }
.hero__media { position: absolute; inset: 0; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* dve vrstvy videa pre plynulé zacyklenie (prelínanie 2 s) */
.hero__media .hero__video { position: absolute; inset: 0; opacity: 0; transition: opacity 2s linear; }
.hero__media .hero__video.is-front { opacity: 1; }
.hero__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(78deg, rgba(2, 38, 28, .88) 0%, rgba(2, 38, 28, .62) 44%, rgba(2, 38, 28, .18) 100%);
}
.hero__in { position: relative; z-index: 2; padding: clamp(90px, 13vh, 170px) 0 0; }
/* Slider má na stránke len jeden <h1> (kvôli SEO), ostatné snímky sú <h2> –
   bielu farbu preto potrebujú obidva, inak by zdedili zelenú zo základných nadpisov. */
.hero h1, .hero .hero__slide .h-xl { color: var(--white); max-width: 720px; }
.hero .lead { color: rgba(255, 255, 255, .85); margin-top: 22px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }

.hero__slides { position: relative; min-height: 250px; }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease, visibility .6s; }
.hero__slide.is-active { position: relative; opacity: 1; visibility: visible; transform: none; }
.hero__tag {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
    padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.hero__tag svg { width: 15px; height: 15px; color: var(--yellow); }

.hero__nav { display: flex; align-items: center; gap: 18px; margin: 48px 0 0; }
.hero__dots { display: flex; gap: 8px; }
/* Prúžok zostáva tenký kvôli vzhľadu, dotyková plocha je však celých 44 px –
   rieši to neviditeľný presah cez ::before, nie zväčšenie samotného prúžka. */
.hero__dot { width: 34px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .3); position: relative; cursor: pointer; transition: background .2s; }
.hero__dot::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
.hero__dot .p { border-radius: 4px; }
.hero__dot .p { position: absolute; inset: 0; background: var(--yellow); transform: scaleX(0); transform-origin: left; border-radius: 4px; }
.hero__dot.is-active .p { animation: dotfill var(--slide-dur, 6.5s) linear forwards; }
@keyframes dotfill { to { transform: scaleX(1); } }
.hero__count { font-family: var(--font-head); font-size: 13px; letter-spacing: .12em; color: rgba(255,255,255,.7); }

.hero__stats {
    position: relative; z-index: 2; margin-top: clamp(48px, 7vh, 84px);
    border-top: 1px solid rgba(255, 255, 255, .18);
    background: linear-gradient(0deg, rgba(2, 30, 22, .55), rgba(2, 30, 22, .25));
}
.hero__stats-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 28px; border-left: 1px solid rgba(255, 255, 255, .14); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__n { font-family: var(--font-head); font-weight: 800; font-size: clamp(26px, 2.6vw, 36px); color: var(--yellow); }
.stat__l { font-size: 14.5px; color: rgba(255, 255, 255, .82); margin-top: 2px; }

/* hero rozcestník na kalkulácie (nahrádza počítadlá v slideri) */
.hero__calc {
    position: relative; z-index: 2; margin-top: clamp(40px, 6vh, 72px);
    border-top: 1px solid rgba(255, 255, 255, .18);
    background: linear-gradient(0deg, rgba(2, 30, 22, .58), rgba(2, 30, 22, .28));
}
.hero__calc-in { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; padding: 22px 0; }
.hero__calc-label { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; transition: opacity .2s; }
.hero__calc-label:hover { opacity: .82; }
.hero__calc-label:hover .hero__calc-label-title { text-decoration: underline; }
.hero__calc-label svg { width: 20px; height: 20px; color: var(--yellow); flex-shrink: 0; }
.hero__calc-label-text { display: flex; flex-direction: column; gap: 2px; }
.hero__calc-label-title { font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.hero__calc-label-sub { font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .72); }
.hero__calc-opts { display: flex; gap: 12px; flex-wrap: wrap; margin-left: auto; }
.hero__calc-opts a {
    display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; border-radius: 999px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
    color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 15px;
    transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.hero__calc-opts a svg { width: 19px; height: 19px; color: var(--yellow); transition: color .2s; }
.hero__calc-opts a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--green); transform: translateY(-2px); }
.hero__calc-opts a:hover svg { color: var(--green); }

/* samostatný pruh s počítadlami (presunuté zo slidera) */
.statsband { background: var(--green); color: #fff; }
.statsband__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.statsband .stat { border-left-color: rgba(255, 255, 255, .16); }

/* ---------- sekcie ---------- */
.section { padding: clamp(72px, 9vw, 116px) 0; }
.section--cream { background: var(--cream-soft); border-block: 1px solid #f3ecd8; }
.section--mint { background: var(--mint-soft); border-block: 1px solid #d8f0dc; }
.section--dark { background: var(--green); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--pattern {
    background-image: repeating-linear-gradient(-52deg, transparent 0 26px, rgba(3, 61, 46, .028) 26px 27px);
}
.section__head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .lead { margin-inline: auto; }
.section__head .lead { margin-top: 16px; }
.section__split { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__split .lead { margin-top: 16px; }

/* ---------- karty benefitov ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.benefit {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m);
    padding: 30px 26px; position: relative; overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.benefit::before {
    content: ""; position: absolute; top: 0; left: 26px; width: 44px; height: 4px;
    background: var(--yellow); border-radius: 0 0 4px 4px; transition: width .3s ease;
}
.benefit:hover { border-color: var(--green-3); background: var(--cream-soft); }
.benefit:hover::before { width: 72px; }
.benefit__ico {
    width: 54px; height: 54px; border-radius: 14px; background: var(--mint-soft);
    display: grid; place-items: center; color: var(--green-3); margin-bottom: 20px;
    transform: rotate(0deg); will-change: transform;
}
.benefit__ico svg { width: 27px; height: 27px; }
.benefit h3 { font-size: 18.5px; margin-bottom: 10px; }
.benefit p { font-size: 15.5px; color: var(--muted); }

/* ---------- tímová sekcia na hlavnej ---------- */
.teamintro { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 5vw, 72px); align-items: center; margin-bottom: clamp(48px, 6vw, 72px); }
.teamintro__media { position: relative; }
.teamintro__media img { border-radius: var(--r-photo); box-shadow: var(--shadow-l); aspect-ratio: 4 / 3.1; object-fit: cover; width: 100%; }
.teamintro__badge {
    position: absolute; right: -18px; bottom: -22px; background: var(--green); color: var(--white);
    border-radius: var(--r-m); padding: 20px 24px; box-shadow: var(--shadow-l); max-width: 240px;
}
.teamintro__badge .n { font-family: var(--font-head); font-weight: 800; font-size: 30px; color: var(--yellow); }
.teamintro__badge .l { font-size: 14px; opacity: .9; line-height: 1.4; }
.teamintro__body .lead { margin: 18px 0 26px; }
.teamintro__points { display: grid; gap: 13px; margin-bottom: 30px; }
.teamintro__points li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; }
.teamintro__points svg { width: 21px; height: 21px; color: var(--green-3); flex: none; margin-top: 3px; }

/* ---------- kalkulačky – karty ---------- */
.calcgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.calccard {
    position: relative; border-radius: var(--r-l); overflow: hidden; min-height: 430px;
    display: flex; align-items: flex-end; color: var(--white);
    box-shadow: var(--shadow-s); transition: transform .35s ease, box-shadow .35s ease;
    cursor: pointer;
}
.calccard:hover { transform: translateY(-8px); box-shadow: var(--shadow-l); }
/* border-radius: inherit na deťoch – orezanie rodičom (overflow:hidden) sa počas
   .reveal transformu robí až po kompozícii a rohy na pár snímok preblikli */
.calccard img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    border-radius: inherit; backface-visibility: hidden; transition: transform .6s ease;
}
.calccard:hover img { transform: scale(1.06); }
.calccard::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    background: linear-gradient(8deg, rgba(2, 34, 25, .92) 0%, rgba(2, 34, 25, .38) 52%, rgba(2, 34, 25, .05) 100%);
    transition: background .35s;
}
.calccard__body { position: relative; z-index: 2; padding: 30px 28px; width: 100%; }
.calccard__tag {
    display: inline-block; background: var(--yellow); color: var(--green);
    font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
    padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}
.calccard h3 { color: var(--white); font-size: 24px; margin-bottom: 8px; }
.calccard p { font-size: 15.5px; color: rgba(255, 255, 255, .85); margin-bottom: 18px; }
.calccard__go { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--yellow); }
.calccard__go svg { width: 17px; height: 17px; transition: transform .3s; }
.calccard:hover .calccard__go svg { transform: translateX(5px); }

/* ---------- video sekcie ---------- */
.videoblock { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.videoblock--flip .videoblock__media { order: 2; }
.videoblock__media { position: relative; }
.videoframe {
    position: relative; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 4 / 3;
    background: var(--green); box-shadow: var(--shadow-l); cursor: pointer;
}
.videoframe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .3s, transform .5s ease; }
.videoframe:hover img { opacity: .68; transform: scale(1.03); }
.videoframe__play {
    position: absolute; inset: 0; display: grid; place-items: center; z-index: 2;
}
.videoframe__btn {
    width: 88px; height: 88px; border-radius: 50%; background: var(--yellow); color: var(--green);
    display: grid; place-items: center; box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
    transition: transform .25s ease, background .2s;
}
.videoframe:hover .videoframe__btn { transform: scale(1.08); background: var(--yellow-d); }
.videoframe__btn svg { width: 32px; height: 32px; margin-left: 4px; }
.videoframe__note {
    position: absolute; left: 22px; bottom: 18px; z-index: 2;
    font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
    color: rgba(255, 255, 255, .75);
    display: flex; align-items: center; gap: 8px;
}
.videoframe__note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.videoblock__body .lead { margin: 18px 0 26px; }
.videoblock__list { display: grid; gap: 14px; margin-bottom: 30px; }
.videoblock__list li { display: flex; gap: 12px; font-size: 16.5px; align-items: flex-start; }
.videoblock__list svg { width: 21px; height: 21px; color: var(--green-3); flex: none; margin-top: 3px; }
.videoblock__list li > span { flex: 1; min-width: 0; }

/* ---------- produkty ---------- */
.products { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.product {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m);
    padding: 28px 22px; text-align: left; position: relative;
    transition: transform .3s ease, box-shadow .3s ease, background .3s;
    display: flex; flex-direction: column; gap: 14px; cursor: pointer;
}
.product:hover { border-color: var(--green-3); background: var(--cream-soft); }
.product__ico { width: 52px; height: 52px; border-radius: 13px; background: var(--cream); color: var(--green); display: grid; place-items: center; transform: rotate(0deg); will-change: transform; }
.product__ico svg { width: 26px; height: 26px; }
.product h3 { font-size: clamp(20px, 1.5vw, 23px); }
.product p { font-size: 14.5px; color: var(--muted); flex: 1; }
.product__go { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head); font-weight: 700; font-size: 13.5px; color: var(--green-3); }
.product__go svg { width: 15px; height: 15px; transition: transform .25s; }
.product:hover .product__go svg { transform: translateX(4px); }

/* ---------- referencie ---------- */
.quotes { position: relative; }
.quotes__viewport { overflow: hidden; margin-inline: -6px; padding: 6px; }
.quotes__track { display: flex; column-gap: 24px; transition: transform .55s cubic-bezier(.22,.8,.3,1); }
.quotes__track > * { flex: none; width: calc((100% - 48px) / 3); }
.quote {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m);
    padding: 32px 30px; display: flex; flex-direction: column; gap: 18px;
    box-shadow: var(--shadow-s);
}
.quote__mark { display: block; width: 34px; height: 34px; color: var(--yellow); }
.quote__mark svg { width: 100%; height: 100%; }
.quote p { font-size: 16.5px; flex: 1; }
.quote footer { border-top: 1px solid var(--line); padding-top: 16px; }
.quote .n { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--green); }
.quote .c { font-size: 14px; color: var(--muted); }
.quotes__nav { display: flex; gap: 12px; }
.qbtn {
    width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--green);
    color: var(--green); display: grid; place-items: center; transition: background .2s, color .2s;
}
.qbtn:hover { background: var(--green); color: var(--white); }
.qbtn svg { width: 19px; height: 19px; }
.qbtn:disabled { opacity: .3; cursor: default; }
.qbtn:disabled:hover { background: none; color: var(--green); }

/* marquee klientov */
.clients { padding: 34px 0; border-top: 1px solid var(--line); }
.clients__label { text-align: center; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: 22px; }
.marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 64px; width: max-content; animation: marquee 38s linear infinite; align-items: center; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__item { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: #97a49d; white-space: nowrap; transition: color .2s; }
.marquee__item:hover { color: var(--green); }

/* ---------- aktuality ---------- */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.newscard {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease; cursor: pointer; display: flex; flex-direction: column;
}
.newscard:hover { border-color: var(--green-3); }
.newscard__img { aspect-ratio: 16 / 9.5; overflow: hidden; position: relative; }
.newscard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.newscard:hover .newscard__img img { transform: scale(1.05); }
.newscard__body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.newscard__meta { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--muted); }
.newscard__cat { background: var(--mint-soft); color: var(--green-3); font-weight: 600; padding: 3px 11px; border-radius: 999px; font-size: 12.5px; }
.newscard h3 { font-size: 19px; }
.newscard p { font-size: 15px; color: var(--muted); flex: 1; }

/* ---------- CTA pás ---------- */
.ctaband { position: relative; overflow: hidden; background: var(--green); color: var(--white); }
.ctaband::before {
    content: ""; position: absolute; inset: 0;
    background-image: repeating-linear-gradient(-52deg, transparent 0 34px, rgba(255, 255, 255, .04) 34px 35px);
}
.ctaband__in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 36px; padding: clamp(56px, 7vw, 88px) 0; flex-wrap: wrap; }
.ctaband h2 { color: var(--white); max-width: 560px; }
.ctaband p { color: rgba(255, 255, 255, .8); margin-top: 12px; max-width: 520px; font-size: 18px; }
.ctaband__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- podstránkový hero ---------- */
.phero { position: relative; background: var(--green); color: var(--white); overflow: hidden; }
.phero__media { position: absolute; inset: 0; }
.phero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.phero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(80deg, rgba(2, 34, 25, .92), rgba(2, 34, 25, .45)); }
.phero__in { position: relative; z-index: 2; padding: clamp(64px, 8vw, 110px) 0; }
.phero h1 { color: var(--white); max-width: 760px; }
.phero .lead { color: rgba(255, 255, 255, .84); margin-top: 18px; }
.phero__crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: rgba(255, 255, 255, .65); margin-bottom: 22px; flex-wrap: wrap; }
.phero__crumbs a:hover { color: var(--yellow); }
.phero__crumbs svg { width: 13px; height: 13px; opacity: .6; }

/* ---------- formuláre ---------- */
.formcard {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l);
    box-shadow: var(--shadow-m); padding: clamp(28px, 4vw, 48px);
}
.form__section { margin-bottom: 38px; }
.form__section:last-of-type { margin-bottom: 0; }
.form__legend {
    display: flex; align-items: center; gap: 14px;
    font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--green);
    margin-bottom: 24px; width: 100%;
}
.form__legend .num {
    width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--yellow);
    display: grid; place-items: center; font-size: 16px; color: var(--green);
}
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.form__grid .span2 { grid-column: span 2; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 8px; }
.field label .req { color: #c92f2f; }
.field .hint { font-size: 13.5px; color: var(--muted); margin-top: 7px; line-height: 1.45; }
.input, .select, .textarea {
    width: 100%; border: 1.5px solid #d8dcd2; border-radius: var(--r-s);
    padding: 13px 16px; background: var(--white); font-size: 16px;
    transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 130px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: #b9c0b2; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green-3); box-shadow: 0 0 0 4px rgba(18, 116, 90, .12); }
.input.is-error, .select.is-error { border-color: #c92f2f; box-shadow: 0 0 0 4px rgba(201, 47, 47, .1); }
.field__error { display: none; font-size: 13.5px; color: #c92f2f; margin-top: 7px; font-weight: 600; }
.field.has-error .field__error { display: block; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2310241c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; cursor: pointer; }
/* nepoužiteľný výber (napr. kategória pri druhu zvierat, ktorý sa ďalej nečlení) – spolu s poľom
   vybledne aj jeho popisok a hviezdička, aby pole nepôsobilo ako nevyplnená povinná položka */
.select:disabled { opacity: .5; cursor: not-allowed; }
.field:has(.select:disabled) label, .field:has(.select:disabled) .hint { opacity: .55; }

.input-unit { position: relative; }
.input-unit .unit {
    position: absolute; right: 6px; top: 6px; bottom: 6px; display: flex; align-items: center;
    padding: 0 14px; background: var(--cream); border-radius: 7px;
    font-family: var(--font-head); font-weight: 700; font-size: 13.5px; color: var(--green); pointer-events: none;
}
.input-unit .input { padding-right: 88px; }

/* checkboxy a rádiá ako dlaždice */
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
/* najdlhšie/osamotené riziko (napr. "Nový osev...") natiahnuté na celú šírku riadku namiesto voľného miesta vedľa neho */
.choice--wide { grid-column: 1 / -1; }
/* flex-column namiesto height:100% na .choice__box – v gridovom riadku so susedom, ktorý má
   pod sebou aj .choice__note (vysvetlenie nedostupného rizika), by percentuálna výška oproti
   ešte nedopočítanej výške riadku spôsobovala pretekanie textu do susedných riadkov mriežky */
.choice { position: relative; display: flex; flex-direction: column; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice__box {
    display: flex; align-items: center; gap: 12px; border: 1.5px solid #d8dcd2; border-radius: var(--r-s);
    padding: 14px 16px; font-size: 15.5px; font-weight: 600; cursor: pointer; background: var(--white);
    transition: border-color .2s, background .2s, box-shadow .2s;
    flex: 1;
}
.choice:hover .choice__box { border-color: var(--green-3); }
.choice input:focus-visible + .choice__box { outline: 3px solid var(--yellow); outline-offset: 2px; }
.choice input:checked + .choice__box { border-color: var(--green); background: var(--mint-soft); box-shadow: inset 0 0 0 1px var(--green); }
.choice__mark {
    width: 22px; height: 22px; flex: none; border: 2px solid #c3c9bc; border-radius: 6px;
    display: grid; place-items: center; color: transparent; transition: all .2s; background: var(--white);
}
.choice--radio .choice__mark { border-radius: 50%; }
.choice input:checked + .choice__box .choice__mark { background: var(--green); border-color: var(--green); color: var(--yellow); }
.choice__mark svg { width: 13px; height: 13px; }

/* riziko bez sadzby pre zvolenú položku – viditeľné, ale nevyberateľné, s vysvetlením prečo */
.choice input:disabled { cursor: not-allowed; }
.choice.is-off .choice__box { cursor: not-allowed; opacity: .55; }
.choice.is-off:hover .choice__box { border-color: #d8dcd2; }
.choice__note {
    /* takmer celá šírka dlaždice namiesto zarovnania pod text (padding-left) – s krátkym
       textom by úzky stĺpec zbytočne lámal aj krátku vetu do viacerých riadkov */
    display: none; font-size: 12.5px; color: var(--muted); line-height: 1.4; margin-top: 7px;
}
.choice.is-off [data-risk-note] { display: block; }

/* riziko zahrnuté v zastrešujúcom krytí – zaškrtnuté, ale zamknuté (nie „nedostupné“),
   preto si na rozdiel od .is-off drží zelený vzhľad vybranej dlaždice, len stlmený */
.choice.is-locked .choice__box { cursor: default; opacity: .7; }
.choice.is-locked:hover .choice__box { border-color: var(--green); }
.choice.is-locked .choice__note--lock { display: block; }
/* pri zamknutom riziku je jeho vlastná dostupnosť bezpredmetná – kryje ho zastrešujúce
   poistenie, takže hláška o nedostupnosti by protirečila zaškrtnutej dlaždici */
.choice.is-locked [data-risk-note] { display: none; }
/* zamknuté riziko nemá prekrývať dlaždicu neviditeľným inputom – kurzor by klamal, že sa dá kliknúť */
.choice.is-locked input { pointer-events: none; }

.form__foot { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 30px; }
.form__gdpr { font-size: 13.5px; color: var(--muted); max-width: 460px; }
.form__gdpr a { color: var(--green-3); font-weight: 600; text-decoration: underline; }

/* RENOMIA – detailná sekcia (mriežka faktov) + kompaktný pruh */
.renomia-logo { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); padding: 22px 26px; margin-bottom: 16px; display: flex; align-items: center; justify-content: center; }
.renomia-logo img { max-height: 56px; width: auto; object-fit: contain; }
.renomia-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.renomia-fact { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); padding: 24px 22px; }
.renomia-fact .n { font-family: var(--font-head); font-weight: 800; font-size: clamp(28px, 3vw, 38px); color: var(--green); line-height: 1; }
.renomia-fact .l { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.renomia-strip { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; background: var(--cream-soft); border: 1px solid var(--line); border-left: 4px solid var(--yellow); border-radius: var(--r-m); padding: 26px 30px; }
.renomia-strip__body { flex: 1 1 340px; }
.renomia-strip__tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .03em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.renomia-strip__tag svg { width: 17px; height: 17px; color: var(--green-3); }
.renomia-strip__body p { font-size: 15px; color: var(--ink); line-height: 1.6; }
.renomia-strip__body strong { color: var(--green); }
.renomia-strip .btn { flex: none; }

/* karty typov zodpovednosti – 5 kariet: 3 hore + 2 vycentrované dole */
.liabgrid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.liabcard { flex: 1 1 300px; max-width: 360px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); padding: 26px 26px 28px; transition: border-color .3s; }
.liabcard:hover { border-color: var(--green-3); }
.liabcard__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.liabcard__num { font-family: var(--font-head); font-weight: 800; font-size: 26px; color: var(--line); letter-spacing: .02em; }
.liabcard__ico {
    width: 50px; height: 50px; border-radius: 13px; background: var(--cream); color: var(--green); display: grid; place-items: center;
    transform: rotate(0deg); will-change: transform;
    transition: background .3s, transform .4s cubic-bezier(.22,.8,.3,1);
}
.liabcard__ico svg { width: 25px; height: 25px; }
.liabcard:hover .liabcard__ico { background: var(--yellow); transform: rotate(-6deg); }
.liabcard:hover .liabcard__num { color: var(--green-3); }
.liabcard h3 { font-size: 18.5px; margin-bottom: 8px; }
.liabcard p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* placeholder odznak na obrázku (napr. ilustračná prípadová štúdia) */
.split__media { position: relative; }
.ph-badge { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; background: rgba(16, 36, 28, .82); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .01em; padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(2px); }

/* ---------- kalkulačka: kroky + košík ---------- */
.calcstep[hidden] { display: none; }
.calcstep__bar { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.calcstep__badge { display: inline-flex; align-items: center; font-family: var(--font-head); font-weight: 700; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--green); background: var(--mint-soft, #eaf5ef); border-radius: 999px; padding: 6px 13px; }
.calcstep__name { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--muted); }
.calcstep__actions { margin-top: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 28px; }
.calcstep__actions [data-add-item] svg, .calcstep__actions [data-next] svg { width: 17px; height: 17px; }

/* „Pridať ďalšiu položku" stojí hneď vedľa žltého „Pokračovať" a dedilo by po .btn posun ikony
   doprava – ten však znamená „ideme ďalej", čo je práve úloha suseda, nie pridávania položky.
   Namiesto posunu sa „+" pootočí a rozsvieti sa pod ním mätový krúžok (cez spread box-shadow,
   nie padding – padding na <svg> prehliadače škálujú nespoľahlivo). Vzniká tak rovnaký pocit
   „tlačidlo ožilo" ako pri primárnom tlačidle, ale iným gestom, takže sa navzájom nemýlia. */
.calcstep__actions [data-add-item] { color: var(--green-3); transition: color .2s ease; }
.calcstep__actions [data-add-item] svg {
    border-radius: 50%;
    transition: transform .35s cubic-bezier(.22, .8, .3, 1), box-shadow .25s ease, background .25s ease;
}
.calcstep__actions [data-add-item]:hover { color: var(--green); }
.calcstep__actions [data-add-item]:hover svg,
.calcstep__actions [data-add-item]:focus-visible svg {
    /* 90° – „+" vyzerá po otočení rovnako, takže je vidieť samotný pohyb, nie zmenený tvar */
    transform: rotate(90deg);
    background: var(--mint-soft);
    box-shadow: 0 0 0 6px var(--mint-soft);
}

.cart { margin-top: 30px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--cream-soft); padding: 18px 20px; }
.cart__head { display: flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--green); margin-bottom: 12px; }
.cart__head svg { width: 17px; height: 17px; color: var(--green-3); }
.cart__list { display: grid; gap: 10px; }
/* rovnaký panel ako košík, ale tesne pred odoslaním na konci kroku 2 – fieldset nad ním
   je vždy :last-of-type (v kroku 2 je len jeden), takže má margin-bottom:0 a odsadenie
   zhora treba dorobiť tu */
.cart--summary { margin: 38px 0 0; }
/* Na úzkom displeji sa nadpis zhrnutia nezmestí vedľa počtu položiek. Nadpis preto dostane
   zvyšok riadku (zalomí sa v sebe, nie pred ikonu) a počet sa odsunie na vlastný riadok
   vpravo – bez nowrap by sa rozpadlo aj samotné „1 položka" na dva riadky. */
.cart--summary .cart__head { flex-wrap: wrap; }
.cart--summary .cart__head > span:first-of-type { flex: 1 1 12ch; min-width: 0; }
.cart__count { margin-left: auto; white-space: nowrap; font-family: var(--font-body); font-weight: 600; font-size: 13px; color: var(--muted); }
.cartrow { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.cartrow__info { flex: 1 1 auto; min-width: 0; }
.cartrow__title { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--ink); }
.cartrow__detail { font-size: 13px; color: var(--muted); margin-top: 2px; word-break: break-word; }
.cartrow__remove { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--muted); font-size: 19px; line-height: 1; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.cartrow__remove:hover { background: #fdeaea; border-color: #f2c4c4; color: #c0392b; }

.form__foot--split { justify-content: space-between; }
.form__foot--split .form__foot-main { display: flex; align-items: center; justify-content: flex-end; gap: 22px; flex-wrap: wrap; flex: 1 1 auto; }
.form__foot--split .form__gdpr { max-width: 380px; }

/* zvýraznená poznámka vo formulári */
.notebox {
    display: flex; gap: 16px; align-items: flex-start;
    background: var(--cream-soft); border: 1px solid #f0e5c4; border-left: 4px solid var(--yellow);
    border-radius: 0 var(--r-s) var(--r-s) 0; padding: 18px 22px; margin-bottom: 26px;
}
.notebox__ico { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--yellow); color: var(--green); display: grid; place-items: center; }
.notebox__ico svg { width: 18px; height: 18px; }
.notebox p { font-size: 15.5px; color: #33443c; line-height: 1.55; }

/* úspešné odoslanie */
.form__success { display: none; text-align: center; padding: clamp(40px, 6vw, 80px) 20px; }
.form__success.is-visible { display: block; }
.form__success .ico {
    width: 92px; height: 92px; margin: 0 auto 28px; border-radius: 50%;
    background: var(--mint-soft); color: var(--green-3); display: grid; place-items: center;
}
.form__success .ico svg { width: 44px; height: 44px; }
.form__success h3 { font-size: 28px; margin-bottom: 14px; }
.form__success p { color: var(--muted); max-width: 480px; margin: 0 auto 30px; }
.form__success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* vygenerovaná ponuka pod formulárom */
.qres { text-align: left; max-width: 720px; margin: 0 auto; }
.qres__head { text-align: center; margin-bottom: 28px; }
.qres__ref {
    display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
    color: var(--green-3); background: var(--mint-soft); padding: 5px 12px; border-radius: 20px; margin-bottom: 12px;
}
.qres__head h3 { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 8px; }
.qres__head p { margin: 0 auto; font-size: 15px; }

.qres__offers { display: grid; gap: 12px; margin-bottom: 32px; }
.qoffer {
    display: grid; grid-template-columns: 132px 1fr auto; gap: 16px; align-items: center;
    border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 20px; background: var(--white);
}
.qoffer--best { border: 2px solid var(--green); box-shadow: var(--shadow-s); }
.qoffer__logo img { width: 100%; height: auto; max-height: 56px; object-fit: contain; object-position: left center; }
.qoffer__logo span { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--green); }
.qoffer__name { font-family: var(--font-head); font-weight: 700; font-size: 15.5px; color: var(--green); }
.qoffer__badge {
    display: inline-block; margin-top: 6px; margin-right: 6px; background: var(--yellow); color: var(--green);
    font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
}
/* vysvetlenie nekrytého rizika patrí k danej ponuke – preto cez celú šírku jej karty */
.qoffer__missing {
    grid-column: 1 / -1; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line);
    font-size: 13px; color: var(--muted); line-height: 1.5;
}
.qoffer__price { text-align: right; white-space: nowrap; }
.qoffer__price strong { display: block; font-family: var(--font-head); font-size: 24px; color: var(--green); }
.qoffer__price span { font-size: 12.5px; color: var(--muted); }

.qres__items { border: 1px solid var(--line); border-radius: var(--r-m); padding: 22px 24px; margin-bottom: 24px; }
.qres__items h4 { font-size: 16px; margin-bottom: 14px; }
.qres__items ul { display: grid; gap: 2px; }
.qres__items li {
    display: flex; justify-content: space-between; gap: 18px; align-items: flex-start;
    padding: 11px 0; border-bottom: 1px solid var(--line);
}
.qres__item-t { font-weight: 600; font-size: 15px; }
.qres__item-t span { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 2px; }
.qres__item-v { text-align: right; font-weight: 700; white-space: nowrap; }
.qres__item-v span { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.qres__total { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; }
.qres__total span { font-weight: 600; color: var(--green); }
.qres__total strong { font-family: var(--font-head); font-size: 19px; color: var(--green); }

/* výzva na okamžitý kontakt nad blokom špecialistu */
.qres__cta {
    background: #fff9e0; border-left: 4px solid var(--yellow); border-radius: 0 var(--r-m) var(--r-m) 0;
    padding: 18px 22px; margin-bottom: 16px;
}
.qres__cta-t { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--green); margin-bottom: 5px; }
.qres__cta p { font-size: 14.5px; color: #4a5a55; margin: 0; }

.qres__person { background: var(--green); color: var(--white); border-radius: var(--r-m); padding: 24px 26px; }
.qres__person--photo { display: flex; gap: 18px; align-items: center; }
.qres__person-avatar { width: 68px; height: 68px; flex: none; border-radius: 50%; object-fit: cover; border: 2px solid var(--yellow); }
.qres__person-l { font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--yellow); font-weight: 700; margin-bottom: 8px; }
.qres__person-n { font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.qres__person-p { font-size: 14px; opacity: .8; margin-bottom: 14px; }
.qres__person-c { display: flex; gap: 20px; flex-wrap: wrap; }
.qres__person-c a { color: var(--yellow); font-weight: 600; }
.qres__note { font-size: 12.5px; color: var(--muted); margin: 18px auto 0; max-width: none; }

@media (max-width: 640px) {
    .qoffer { grid-template-columns: 1fr auto; }
    .qoffer__logo { grid-column: 1 / -1; max-width: 132px; }
    .qres__items li { flex-direction: column; gap: 4px; }
    .qres__item-v { text-align: left; }
}

/* layout kalkulačky */
.calclayout { display: grid; grid-template-columns: 1fr 350px; gap: 36px; align-items: flex-start; }
.calcaside { position: sticky; top: calc(var(--noticebar-h, 0px) + var(--topbar-h) + var(--header-h) + 24px); display: grid; gap: 24px; }
.asidecard { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); padding: 28px; box-shadow: var(--shadow-s); }
.asidecard h3 { font-size: 18px; margin-bottom: 18px; }
.steps { display: grid; gap: 0; }
.steps li { display: flex; gap: 16px; position: relative; padding-bottom: 22px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--line); }
.steps li:last-child::before { display: none; }
.steps .n {
    width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--cream);
    font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--green);
    display: grid; place-items: center; position: relative; z-index: 1;
}
.steps .t { font-weight: 600; font-size: 15.5px; }
.steps .d { font-size: 14px; color: var(--muted); }
.asidecard a svg { width: 17px; height: 17px; flex: none; }
.asidecard--dark { background: var(--green); border-color: var(--green); color: var(--white); }
.asidecard--dark h3 { color: var(--white); }
.asidecard--dark p { color: rgba(255,255,255,.82); font-size: 15px; }

/* prepínač kalkulačiek */
.calcswitch { margin-bottom: 38px; }
.calcswitch__label {
    display: block; margin-bottom: 14px; font-family: var(--font-head);
    font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-3);
}
/* segmentový prepínač cez celú šírku – tri rovnaké diely, aby výber typu poistenia nešlo prehliadnuť */
.calctabs {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px;
    border-radius: var(--r-l); background: var(--mint-soft);
    border: 1.5px solid #cceed4; box-shadow: var(--shadow-s);
}
.calctab {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    font-family: var(--font-head); font-weight: 700; font-size: 17px;
    padding: 20px 18px; border-radius: calc(var(--r-l) - 8px); border: 1.5px solid transparent;
    background: transparent; color: var(--green); text-align: center; transition: all .2s;
}
.calctab svg { width: 24px; height: 24px; flex: none; color: var(--green-3); transition: color .2s, transform .2s; }
.calctab:hover { background: var(--white); border-color: #cceed4; }
.calctab:hover svg { transform: scale(1.1); }
.calctab.is-active {
    background: var(--green); border-color: var(--green); color: var(--white);
}
.calctab.is-active svg { color: var(--yellow); }

/* ---------- tím ---------- */
.teamgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.member {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m);
    overflow: hidden; transition: transform .3s, box-shadow .3s;
}
.member:hover { border-color: var(--green-3); }
.member__photo { aspect-ratio: 1 / .95; background: linear-gradient(160deg, var(--mint-soft), var(--cream)); display: grid; place-items: center; position: relative; }
.member__init { font-family: var(--font-head); font-weight: 800; font-size: 40px; color: var(--green-3); opacity: .55; }
.member__photo .ph-note { position: absolute; bottom: 10px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--green-3); opacity: .6; font-weight: 600; }
.member__body { padding: 20px 22px 24px; }
.member h3 { font-size: 17px; }
.member__office { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--green-3); background: var(--mint-soft, #eaf5ef); border-radius: 999px; padding: 4px 11px 4px 9px; margin-bottom: 10px; }
.member__office svg { width: 13px; height: 13px; color: var(--green-3); }
.member .pos { font-size: 13.5px; color: var(--muted); margin: 3px 0 14px; min-height: 40px; }
.member__links { display: grid; gap: 7px; }
.member__links a { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--green-3); font-weight: 600; transition: color .2s, transform .3s cubic-bezier(.22,.8,.3,1); }
.member__links a:hover { color: var(--green); transform: translateX(3px); }
.member__links svg { width: 15px; height: 15px; flex: none; }

/* ---------- kontakty ---------- */
.officegroup { margin-top: 40px; }
.officegroup:first-of-type { margin-top: 4px; }
.officegroup__title { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 21px; font-weight: 700; color: var(--green); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--line); }
.officegroup__title svg { width: 20px; height: 20px; color: var(--yellow); flex: none; }
.officegroup__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.contactgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.office { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); padding: 30px 28px; transition: transform .3s, box-shadow .3s; }
.office:hover { border-color: var(--green-3); background: var(--cream-soft); }
.office--hq { background: var(--green); border-color: var(--green); color: var(--white); }
.office--hq h3 { color: var(--yellow); }
.office h3 { font-size: 18px; margin-bottom: 12px; }
.office p { font-size: 15.5px; color: var(--muted); }
.office--hq p { color: rgba(255, 255, 255, .85); }
.office a { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 600; color: var(--green-3); }
.office--hq a { color: var(--yellow); }
.office svg { width: 16px; height: 16px; }

.contactperson {
    display: flex; gap: 20px; align-items: center; background: var(--white);
    border: 1px solid var(--line); border-radius: var(--r-m); padding: 24px;
}
.contactperson__info { min-width: 0; }
.contactperson__avatar {
    width: 72px; height: 72px; flex: none; border-radius: 50%;
    background: linear-gradient(150deg, var(--mint-soft), var(--cream));
    display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--green-3);
    transition: background .35s ease, color .35s ease; overflow: hidden;
}
.contactperson__avatar img { width: 100%; height: 100%; object-fit: cover; }
/* hover: iniciálky zožltnú pri hoveri na box; mail/telefón sa posunú len pri hoveri na daný odkaz */
.contactperson:hover .contactperson__avatar { background: var(--yellow); color: var(--green); }
.contactperson__links a { transition: color .2s ease, transform .3s cubic-bezier(.22,.8,.3,1); }
.contactperson__links a:hover { transform: translateY(-3px); }

/* Odľahčená podoba menovky – bez vlastného rámika.
   Platí všade vnútri kariet (.asidecard, .formcard), aby nevznikal box v boxe,
   a dá sa vyžiadať aj explicitne cez variant 'plain'. */
.personlist { display: grid; }
.contactperson--plain,
.asidecard .contactperson,
.formcard .contactperson {
    background: none; border: 0; border-radius: 0; padding: 14px 0; gap: 16px; overflow: visible;
}
.contactperson--plain::after,
.asidecard .contactperson::after,
.formcard .contactperson::after { display: none; }

.contactperson--plain:first-child,
.asidecard .contactperson:first-child,
.formcard .contactperson:first-child { padding-top: 0; }
.contactperson--plain:last-child,
.asidecard .contactperson:last-child,
.formcard .contactperson:last-child { padding-bottom: 0; }

.contactperson--plain + .contactperson--plain,
.asidecard .contactperson + .contactperson,
.formcard .contactperson + .contactperson { border-top: 1px solid var(--line); }

.contactperson--plain:hover,
.asidecard .contactperson:hover,
.formcard .contactperson:hover { background: none; }

.contactperson--plain .contactperson__avatar,
.asidecard .contactperson__avatar,
.formcard .contactperson__avatar { width: 52px; height: 52px; font-size: 17px; }

.contactperson--plain .n,
.asidecard .contactperson .n,
.formcard .contactperson .n { font-size: 15.5px; }

.contactperson--plain .contactperson__links,
.asidecard .contactperson__links,
.formcard .contactperson__links { flex-direction: column; gap: 3px; }

.contactperson--plain .contactperson__links a,
.asidecard .contactperson__links a,
.formcard .contactperson__links a { font-size: 14px; }

/* v tmavej karte sa menovka prispôsobí farebne */
.asidecard--dark .contactperson .n { color: var(--white); }
.asidecard--dark .contactperson .p { color: rgba(255, 255, 255, .7); }
.asidecard--dark .contactperson + .contactperson { border-top-color: var(--line-dark); }
.asidecard--dark .contactperson__links a { color: var(--yellow); }
.contactperson .n { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--green); }
.contactperson .p { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.contactperson__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.contactperson__links a { display: inline-flex; gap: 7px; align-items: center; font-size: 14.5px; font-weight: 600; color: var(--green-3); }
.contactperson__links a:hover { color: var(--green); }
.contactperson__links svg { width: 15px; height: 15px; }

.mapph {
    border-radius: var(--r-l); overflow: hidden; position: relative; min-height: 380px;
    background: linear-gradient(150deg, var(--mint-soft), var(--cream));
    display: grid; place-items: center; border: 1px solid var(--line);
}
.mapph__inner { text-align: center; color: var(--green-3); padding: 30px; }
.mapph__inner svg { width: 54px; height: 54px; margin: 0 auto 14px; opacity: .7; }
.mapph__inner .t { font-family: var(--font-head); font-weight: 700; }
.mapph__inner .d { font-size: 14px; opacity: .75; }

/* ---------- interaktívna mapa pobočiek (Leaflet, stránka Kontakt) ---------- */
.mapblock { display: grid; gap: 16px; }
.map {
    height: 560px; border-radius: var(--r-l); overflow: hidden;
    border: 1px solid var(--line); box-shadow: var(--shadow-s);
    background: var(--mint-soft); z-index: 0;   /* nech dlaždice nezachádzajú nad sticky hlavičku */
}
.map__noscript {
    height: 100%; display: grid; place-items: center; gap: 10px; text-align: center;
    padding: 30px; color: var(--green-3); font-weight: 600;
}
.map__noscript svg { width: 44px; height: 44px; opacity: .7; }

.map__hint {
    position: absolute; inset: 0; z-index: 500; width: 100%; border: 0;
    display: grid; place-items: center; cursor: pointer;
    background: rgba(3, 61, 46, .32); color: var(--white);
    font-family: var(--font-head); font-weight: 700; font-size: 15px;
}
.map { position: relative; }

.map__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.map__legend-item {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--green);
}
.map__legend-item i { width: 14px; height: 14px; border-radius: 50%; flex: none; border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--line); }
.map__legend-item--main i    { background: var(--yellow); }
.map__legend-item--branch i  { background: var(--green); }
.map__legend-item--partner i { background: var(--green-3); }
.map__legend-hint { font-size: 14px; color: var(--muted); margin-left: auto; }

/* špendlík – kvapka otočená o 45°, farba podľa druhu bodu */
.mappin__dot {
    display: block; width: 26px; height: 26px; margin: 2px;
    border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
    border: 2px solid var(--white); box-shadow: 0 4px 10px rgba(3, 61, 46, .35);
    position: relative;
}
.mappin__dot::after {
    content: ""; position: absolute; inset: 0; margin: auto;
    width: 8px; height: 8px; border-radius: 50%;
}
.mappin--main .mappin__dot    { background: var(--yellow); }
.mappin--main .mappin__dot::after    { background: var(--green); }
.mappin--branch .mappin__dot  { background: var(--green); }
.mappin--branch .mappin__dot::after  { background: var(--yellow); }
.mappin--partner .mappin__dot { background: var(--green-3); }
.mappin--partner .mappin__dot::after { background: var(--white); }
.leaflet-marker-icon.mappin { transition: transform .18s ease; }
.leaflet-marker-icon.mappin:hover { transform: translateY(-3px); }

/* bublina s kontaktom */
.leaflet-popup-content-wrapper { border-radius: var(--r-m); box-shadow: var(--shadow-m); overflow: hidden; }
.leaflet-popup-content { margin: 0; font-family: var(--font-body); }
.leaflet-container a.leaflet-popup-close-button {
    z-index: 2; top: 8px; right: 8px; width: 28px; height: 28px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--green);
    font-size: 18px; line-height: 1; box-shadow: 0 2px 8px rgba(3, 61, 46, .18);
}
.leaflet-container a.leaflet-popup-close-button:hover { background: var(--white); color: var(--green-3); }
.mappop__media { position: relative; background: var(--mint-soft); }
.mappop__media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
/* prechod do tmava dole, aby bol popisok aj zatvárací krížik čitateľný na svetlej fotografii */
.mappop__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(3, 61, 46, 0) 45%, rgba(3, 61, 46, .45) 100%);
}
.mappop__media .mappop__badge {
    position: absolute; left: 14px; bottom: 12px; z-index: 1; margin: 0;
}
.mappop__body { padding: 14px 18px 16px; }
/* bez fotografie je popisok v hornom rade spolu so zatváracím krížikom */
.mappop__body > .mappop__badge { max-width: calc(100% - 30px); }
.mappop__badge {
    display: inline-block; background: var(--cream); border: 1px solid var(--yellow);
    color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; padding: 3px 9px; border-radius: 999px; margin-bottom: 8px;
}
.mappop h4 { font-family: var(--font-head); font-size: 17px; color: var(--green); margin: 0 0 4px; }
.mappop__addr { color: var(--muted); font-size: 14px; margin: 0 0 10px; line-height: 1.45; }
.mappop__links { display: grid; gap: 6px; }
.mappop__links a { color: var(--green-3); font-weight: 600; font-size: 14px; text-decoration: none; }
.mappop__links a:hover { text-decoration: underline; }

/* ovládacie prvky Leafletu zladené s webom */
.leaflet-container { font-family: var(--font-body); }
.leaflet-bar a { color: var(--green); }
.leaflet-control-attribution { font-size: 11px; background: rgba(255, 255, 255, .82); }

@media (max-width: 1000px) {
    .map { height: 440px; }
}
@media (max-width: 720px) {
    /* nižší rám by neuniesol bublinu s fotografiou */
    .map { height: 430px; }
    .map__legend-hint { margin-left: 0; width: 100%; }
}

/* ---------- obsahové stránky ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 44px 0 18px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 21px; margin: 32px 0 12px; }
.prose p { margin-bottom: 16px; color: #33443c; }
.prose ul { margin: 18px 0 22px; display: grid; gap: 10px; }
.prose ul li { display: flex; gap: 12px; align-items: flex-start; }
.prose ul li::before {
    content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%;
    background: var(--yellow); margin-top: 9px; box-shadow: 0 0 0 3px rgba(254, 208, 39, .25);
}
.prose a { color: var(--green-3); font-weight: 600; text-decoration: underline; }

/* риziká — chips */
.risks { display: flex; flex-wrap: wrap; gap: 10px; }
.risk {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--white); border: 1px solid var(--line); border-radius: 999px;
    padding: 10px 18px; font-size: 15px; font-weight: 600; color: var(--ink);
    transition: border-color .2s, background .2s;
}
.risk:hover { border-color: var(--green-3); background: var(--mint-soft); }
.risk svg { width: 17px; height: 17px; color: var(--green-3); }

/* dvojstĺpec s obrázkom */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.split__media img, .split__media video { border-radius: var(--r-photo); box-shadow: var(--shadow-l); width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; object-position: center; display: block; }
.split--flip .split__media { order: 2; }

/* číselné výhody */
.numlist { counter-reset: nm; display: grid; gap: 0; }
.numlist > li { counter-increment: nm; display: flex; gap: 26px; padding: 30px 0; border-top: 1px solid var(--line); }
.numlist > li:last-child { border-bottom: 1px solid var(--line); }
.numlist > li::before {
    content: "0" counter(nm); font-family: var(--font-head); font-weight: 800;
    font-size: 30px; color: transparent; -webkit-text-stroke: 1.5px var(--green-3);
    flex: none; width: 64px; line-height: 1.1; padding-top: 2px;
}
.numlist h3 { font-size: 19px; margin-bottom: 6px; }
.numlist p { color: var(--muted); font-size: 16px; max-width: 640px; }

/* ==========================================================================
   POSTUP V KROKOCH – vodorovná dráha so spojnicami
   ========================================================================== */
.steptrack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.steptrack__item {
    position: relative; background: var(--white); border: 1px solid var(--line);
    border-radius: var(--r-m); padding: 30px 26px 24px; overflow: hidden;
    display: flex; flex-direction: column;
    transition: border-color .3s ease, background .3s ease;
}
/* spojnica medzi krokmi */
.steptrack__item::before {
    content: ""; position: absolute; top: 56px; right: -20px; width: 20px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--green-3) 0 5px, transparent 5px 10px);
    opacity: .45; z-index: 1;
}
.steptrack__item--last::before { display: none; }
/* žltý akcent zdola pri nadídení */
.steptrack__item::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: var(--yellow); transform: scaleX(0); transform-origin: left;
    transition: transform .5s cubic-bezier(.22, .8, .3, 1);
}
.steptrack__item:hover { border-color: var(--green-3); background: var(--cream-soft); }
.steptrack__item:hover::after { transform: scaleX(1); }

.steptrack__num {
    position: absolute; top: 8px; right: 16px;
    font-family: var(--font-head); font-weight: 800; font-size: 62px; line-height: 1;
    color: transparent; -webkit-text-stroke: 1.5px var(--green-3);
    opacity: .16; user-select: none; transition: opacity .3s ease;
}
.steptrack__item:hover .steptrack__num { opacity: .3; }

.steptrack__ico {
    width: 52px; height: 52px; border-radius: 14px; background: var(--mint-soft);
    color: var(--green-3); display: grid; place-items: center; margin-bottom: 18px;
    position: relative; z-index: 2; transform: rotate(0deg); will-change: transform;
    transition: background .3s ease, color .3s ease, transform .4s cubic-bezier(.22,.8,.3,1);
}
.steptrack__ico svg { width: 25px; height: 25px; }
.steptrack__item:hover .steptrack__ico { background: var(--yellow); color: var(--green); transform: rotate(-6deg); }

.steptrack h3 { font-size: 18px; margin-bottom: 9px; position: relative; z-index: 2; }
.steptrack p { font-size: 15px; color: var(--muted); flex: 1; margin-bottom: 18px; }
.steptrack__meta {
    display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
    background: var(--mint-soft); color: var(--green-3); border-radius: 999px;
    padding: 6px 13px; font-family: var(--font-head); font-weight: 700; font-size: 12.5px;
    transition: background .3s ease;
}
.steptrack__meta svg { width: 14px; height: 14px; }
.steptrack__item:hover .steptrack__meta { background: var(--white); }

/* fakty v mriežke (výhody) */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.facts--3col { grid-template-columns: repeat(3, 1fr); }
.fact { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); padding: 26px 24px; transition: transform .3s, box-shadow .3s; }
.fact:hover { border-color: var(--green-3); background: var(--cream-soft); }
.fact svg { width: 30px; height: 30px; color: var(--green-3); margin-bottom: 16px; transform: translateY(0) rotate(0deg); will-change: transform; }
.fact h3 { font-size: 16.5px; margin-bottom: 6px; }
.fact p { font-size: 14.5px; color: var(--muted); }

/* ---------- pätička ---------- */
.footer { background: var(--green); color: rgba(255, 255, 255, .82); position: relative; overflow: hidden; }
.footer::before {
    content: ""; position: absolute; inset: 0;
    background-image: repeating-linear-gradient(-52deg, transparent 0 34px, rgba(255, 255, 255, .025) 34px 35px);
    pointer-events: none;
}
.footer__main { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; padding: clamp(56px, 7vw, 84px) 0 48px; }
.footer__brand img { height: 52px; width: auto; margin-bottom: 22px; }
.footer__brand p { font-size: 15px; max-width: 300px; }
.footer__social { display: flex; gap: 12px; margin-top: 24px; }
.footer__social a {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark);
    display: grid; place-items: center; transition: background .2s, border-color .2s, color .2s;
}
.footer__social a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--green); }
.footer__social svg { width: 18px; height: 18px; }
.footer h4 { color: var(--white); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 22px; }
.footer__links { display: grid; gap: 12px; }
.footer__links a { font-size: 15.5px; transition: color .2s; display: inline-flex; align-items: center; gap: 8px; }
.footer__links a:hover { color: var(--yellow); }
.footer__contact { display: grid; gap: 14px; font-size: 15.5px; }
.footer__contact a { display: flex; gap: 12px; align-items: flex-start; transition: color .2s; }
.footer__contact a:hover { color: var(--yellow); }
.footer__contact svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: var(--yellow); }
.footer__nbs { position: relative; padding: 24px 0; font-size: 13px; color: rgba(255, 255, 255, .55); display: grid; gap: 10px; max-width: 1000px; line-height: 1.6; }
.footer__nbs a { color: rgba(255, 255, 255, .8); text-decoration: underline; }
.footer__nbs a:hover { color: var(--yellow); }

/* právne odkazy stoja samostatne, aby bolo zjavné, že sú klikateľné */
.footer__legal { position: relative; display: flex; flex-wrap: wrap; gap: 10px; padding: 24px 0 4px; border-top: 1px solid var(--line-dark); }
.footer__legal a {
    display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px;
    border: 1px solid var(--line-dark); font-size: 13.5px; font-weight: 600;
    color: rgba(255, 255, 255, .82); transition: background .2s, border-color .2s, color .2s;
}
.footer__legal a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--green); }
.footer__legal-soon {
    display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px;
    border: 1px dashed var(--line-dark); font-size: 13.5px; font-weight: 600;
    color: rgba(255, 255, 255, .4); cursor: default;
}

.footer__bottom { position: relative; border-top: 1px solid var(--line-dark); margin-top: 4px; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 14px; color: rgba(255, 255, 255, .62); }
.footer__author a { color: var(--white); font-weight: 500; font-family: var(--font-head); transition: color .2s; }
.footer__author a:hover { color: var(--yellow); }

/* ==========================================================================
   HOVER AKCENT KARIET – žltá linka sa vykreslí zľava, bez tieňa a poskakovania
   ========================================================================== */
.benefit, .product, .fact, .member, .office, .newscard, .contactperson, .quote, .liabcard {
    position: relative; overflow: hidden;
}
.benefit::after, .product::after, .fact::after, .member::after,
.office::after, .newscard::after, .contactperson::after, .quote::after, .liabcard::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: var(--yellow); border-radius: 3px 3px 0 0;
    transform: scaleX(0); transform-origin: left center;
    transition: transform .5s cubic-bezier(.22, .8, .3, 1);
}
.benefit:hover::after, .product:hover::after, .fact:hover::after, .member:hover::after,
.office:hover::after, .newscard:hover::after, .contactperson:hover::after, .quote:hover::after,
.liabcard:hover::after {
    transform: scaleX(1);
}
.contactperson, .quote { transition: border-color .35s ease, background .35s ease; }
.contactperson:hover, .quote:hover { border-color: var(--green-3); }
.office--hq::after { background: var(--yellow); }
.office--hq:hover { background: var(--green-2); border-color: var(--green-2); }

/* ikonka v karte jemne ožije */
.fact svg, .benefit__ico, .product__ico { transition: transform .4s cubic-bezier(.22,.8,.3,1), background .3s; }
.fact:hover svg { transform: translateY(-3px) rotate(-6deg); }
.benefit:hover .benefit__ico { background: var(--yellow); transform: rotate(-6deg); }
.product:hover .product__ico { background: var(--yellow); transform: rotate(-6deg); }
.member:hover .member__photo { background: linear-gradient(160deg, var(--mint), var(--cream)); }

/* promo karta „Kariéra“ v mriežke tímu – rovnaký box, iný obsah */
.member--join { display: flex; flex-direction: column; text-decoration: none; }
.member--join .member__photo--join { background: linear-gradient(160deg, var(--green), var(--green-3)); }
.member--join:hover .member__photo--join { background: linear-gradient(160deg, var(--green-3), var(--green-2)); }
.member__joinico { width: 54px; height: 54px; opacity: .92; }

/* webkamera náhľad (gimmick na kartičke Kariéra) */
.member__webcam { display: grid; place-items: center; position: relative; cursor: pointer; width: 100%; border: 0; padding: 0; overflow: hidden; color: #fff; }
.member__cameraico { width: 54px; height: 54px; color: var(--yellow); opacity: .95; transition: transform .3s cubic-bezier(.22,.8,.3,1), opacity .2s; }
.member__webcam:hover .member__cameraico { transform: scale(1.08); opacity: 1; }
.member__webcam-hint { position: absolute; bottom: 12px; left: 0; right: 0; font-family: var(--font-head); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,.75); }
.member__webcam-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; transition: opacity .25s; background: #000; }
.member__webcam.is-live .member__webcam-video { opacity: 1; }
.member__webcam.is-live .member__cameraico,
.member__webcam.is-live .member__webcam-hint { opacity: 0; }
.member__webcam-close {
    position: absolute; top: 10px; right: 10px; z-index: 3;
    width: 34px; height: 34px; border-radius: 999px;
    background: rgba(0,0,0,.55); color: #fff; display: none; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,.3);
}
.member__webcam.is-live .member__webcam-close { display: inline-flex; }
.member__webcam-close svg { width: 18px; height: 18px; }
.member__webcam.has-error .member__cameraico { color: #ff9c9c; }
.member__webcam.has-error .member__webcam-hint { color: #ffc9c9; }
.member__office--join { background: var(--yellow); color: var(--green); }
.member__office--join svg { color: var(--green); }
.member__joinlink { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; color: var(--green-3); transition: transform .3s cubic-bezier(.22,.8,.3,1); }
.member__joinlink svg { width: 15px; height: 15px; }
.member--join:hover .member__joinlink { transform: translateX(3px); }

/* tlačidlá – lesk namiesto zväčšovania tieňa.
   Sklon lesku je zapečený v samotnom prechode a pseudoprvok zámerne nemá `transform`:
   pri transformovanom potomkovi viaceré prehliadače neorežú obsah podľa zaobleného rohu
   (orežú ho len podľa pravouhlého rámu), takže na koncoch tlačidla prebliskla biela. */
.btn--primary, .btn--dark { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after, .btn--dark::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
    background: linear-gradient(115deg, transparent 12%, rgba(255, 255, 255, .45) 50%, transparent 88%);
    transition: left .55s cubic-bezier(.3, .7, .4, 1);
}
.btn--primary:hover::after, .btn--dark:hover::after { left: 130%; }

/* ==========================================================================
   POBOČKY (stránka Kontakt)
   ========================================================================== */
.offices { display: grid; gap: 22px; }
.offices--main { grid-template-columns: 1fr 1fr; margin-bottom: 22px; }
.offices--rest { grid-template-columns: repeat(3, 1fr); }

.office__badge {
    display: inline-block; background: var(--yellow); color: var(--green);
    font-family: var(--font-head); font-weight: 700; font-size: 11.5px;
    letter-spacing: .09em; text-transform: uppercase; padding: 5px 12px;
    border-radius: 999px; margin-bottom: 14px;
}
/* hlavná pobočka má fotografiu budovy vedľa údajov */
.office--main { padding: 0; display: grid; grid-template-columns: 210px 1fr; align-items: stretch; overflow: hidden; }
.office--main .office__info { padding: 32px 30px; display: flex; flex-direction: column; justify-content: center; }
.office__photo { position: relative; background: linear-gradient(155deg, var(--mint-soft), var(--cream)); min-height: 100%; }
.office__photo img { width: 100%; height: 100%; object-fit: cover; }
.office__photo-ph {
    position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px;
    padding: 18px; text-align: center; font-size: 11.5px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: var(--green-3); opacity: .62;
}
.office__photo-ph svg { width: 30px; height: 30px; }
.office--main h3 { font-size: 25px; }
.office__addr { margin-bottom: 16px; }
.office--main .office__addr { font-size: 16.5px; }
.office__links { display: grid; gap: 8px; }
.office__links a {
    display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px;
    color: var(--green-3); transition: color .2s, transform .3s cubic-bezier(.22,.8,.3,1);
    width: fit-content; margin: 0;
}
.office__links a:hover { color: var(--green); transform: translateX(3px); }
.office--main .office__links a { font-size: 16px; }

/* fakturačné údaje a sociálne siete v bočnom paneli */
.asidecard--muted { background: var(--cream-soft); border-color: #f0e5c4; }
.billing { display: grid; gap: 2px; font-size: 15px; }
.billing dt { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.billing dt:first-child { margin-top: 0; }
.billing dd { color: var(--ink); }
.sociallinks { display: grid; gap: 4px; }
.sociallinks a {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
    font-weight: 600; font-size: 15px; color: var(--green-3);
    transition: background .2s, color .2s;
}
.sociallinks a:hover { background: var(--mint-soft); color: var(--green); }
.sociallinks svg { width: 18px; height: 18px; flex: none; }

/* sociálne siete vedľa seba (Kontakt – box „Sledujte nás") */
.sociallinks--row { display: flex; gap: 10px; }
.sociallinks--row a { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 7px; justify-content: center; text-align: center; padding: 15px 8px; background: var(--mint-soft); border-radius: 12px; font-size: 13px; }
.sociallinks--row a:hover { background: var(--green); color: #fff; }
.sociallinks--row svg { width: 20px; height: 20px; }

/* Kontakt: formulár roztiahnutý na výšku bočného panela, tlačidlo dole */
.calclayout--contact .formcard { align-self: stretch; display: flex; flex-direction: column; }
.calclayout--contact .form__body { flex: 1; display: flex; flex-direction: column; }
.calclayout--contact .form__section { flex: 1; display: flex; flex-direction: column; }
.calclayout--contact .form__grid { flex: 1; grid-template-rows: auto auto 1fr; }
.calclayout--contact .form__grid .span2 { display: flex; flex-direction: column; }
.calclayout--contact .textarea { flex: 1; min-height: 150px; }
.calclayout--contact .form__foot { margin-top: auto; border-top: 0; padding-top: 24px; }

/* ==========================================================================
   VSUVKA S KONTAKTOM NA KONATEĽA (prekrýva obsah aj CTA pás)
   ========================================================================== */
/* Vsuvka nesmie pôsobiť ako samostatná sekcia – pozadie preberá po tej
   predchádzajúcej, takže návštevník nevidí žiadny predel. Viditeľná je len karta.
   Odstup je riešený paddingom (nie marginom), aby ho pozadie pokrylo. */
/* Sekcia nad vsuvkou nemá pridávať vlastný spodný odstup navyše – vzdialenosť
   od obsahu ku karte tak zodpovedá vzdialenosti od karty k obsahu pod ňou. */
.section:has(+ .helpbox),
main:has(+ .helpbox) > .section:last-of-type { padding-bottom: clamp(56px, 7vw, 88px); }

.helpbox {
    --overlap: 112px;             /* o koľko karta presahuje do nasledujúceho bloku */
    --surface: var(--bg);         /* farba prevzatá z predchádzajúcej sekcie */
    position: relative; z-index: 3;
    padding-top: 0;
    /* pozadie siaha len po miesto prekrytia – spodná časť je priehľadná,
       aby cez ňu presvital nasledujúci blok a karta ho reálne prekrývala */
    background: linear-gradient(to bottom,
        var(--surface) calc(100% - var(--overlap)),
        transparent    calc(100% - var(--overlap)));
}
.section--mint + .helpbox,
main:has(> .section--mint:last-of-type) + .helpbox { --surface: var(--mint-soft); }

.section--cream + .helpbox,
main:has(> .section--cream:last-of-type) + .helpbox { --surface: var(--cream-soft); }

.section--dark + .helpbox,
main:has(> .section--dark:last-of-type) + .helpbox { --surface: var(--green); }

/* vzorovaná sekcia – k farbe sa pridá aj jej rastrovanie */
.section--pattern + .helpbox,
main:has(> .section--pattern:last-of-type) + .helpbox {
    background:
        repeating-linear-gradient(-52deg, transparent 0 26px, rgba(3, 61, 46, .028) 26px 27px) top / 100% calc(100% - var(--overlap)) no-repeat,
        linear-gradient(to bottom, var(--surface) calc(100% - var(--overlap)), transparent calc(100% - var(--overlap)));
}

/* deliaca linka sekcie by prezradila predel – pri nadväzujúcej vsuvke ju vypneme */
.section--mint:has(+ .helpbox),
.section--cream:has(+ .helpbox) { border-bottom: 0; }
.helpbox__card {
    display: grid; grid-template-columns: 132px 1fr auto; gap: clamp(22px, 3vw, 40px);
    align-items: center; background: var(--white); border: 1px solid var(--line);
    border-radius: var(--r-l); padding: clamp(24px, 3vw, 38px) clamp(24px, 3.5vw, 44px);
    box-shadow: 0 22px 60px rgba(3, 61, 46, .14);
    position: relative; overflow: hidden;
}
.helpbox__card::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--yellow);
}
.helpbox__portrait {
    width: 132px; height: 132px; border-radius: 50%; flex: none; position: relative;
    background: linear-gradient(155deg, var(--mint-soft), var(--cream));
    display: grid; place-items: center; overflow: hidden;
}
.helpbox__portrait img { width: 100%; height: 100%; object-fit: cover; }
.helpbox__initials { font-family: var(--font-head); font-weight: 800; font-size: 38px; color: var(--green-3); opacity: .6; }
.helpbox__phnote {
    position: absolute; bottom: 14px; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase;
    color: var(--green-3); opacity: .65; font-weight: 700;
}
.helpbox__body { position: relative; }
.helpbox__mark { position: absolute; left: -6px; top: -14px; width: 34px; height: 34px; color: var(--yellow); opacity: .5; }
.helpbox__quote {
    font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.6; color: #2a3b34;
    font-style: italic; margin-bottom: 16px; position: relative;
}
.helpbox__sign { display: flex; flex-direction: column; }
.helpbox__name { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--green); }
.helpbox__role { font-size: 14px; color: var(--muted); }
.helpbox__actions { display: grid; gap: 12px; justify-items: stretch; }
.helpbox__mail {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-weight: 600; font-size: 14.5px; color: var(--green-3); transition: color .2s;
}
.helpbox__mail:hover { color: var(--green); }
.helpbox__mail svg { width: 16px; height: 16px; }

/* nasledujúci blok sa posunie pod vsuvku, aby ju karta prekrývala v polovici */
.helpbox + .ctaband { margin-top: -112px; padding-top: 112px; }
.helpbox + .footer  { margin-top: -112px; padding-top: 132px; }

/* ==========================================================================
   VIDEO REFERENCIE
   ========================================================================== */
/* Dve video referencie vedľa seba – video hore, text pod ním */
.quotes__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.quote--video { display: flex; flex-direction: column; gap: 22px; padding: 0; overflow: hidden; }
.quote--video > div:last-child { padding: 0 30px 30px; display: flex; flex-direction: column; flex: 1; }
.quote--video .quote__mark { margin-bottom: 14px; }
.quote--video p { flex: 1; }
.quote__video {
    position: relative; overflow: hidden; aspect-ratio: 4 / 3;
    background: var(--green); cursor: pointer; width: 100%;
}
.quote__video--16-9 { aspect-ratio: 16 / 9; }
.quote__video img { width: 100%; height: 100%; object-fit: cover; opacity: .68; transition: opacity .35s, transform .5s ease; will-change: transform; backface-visibility: hidden; }
.quote__video:hover img { opacity: .85; transform: scale(1.05); }
.quote__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.quote__play {
    position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; border: 0; background: none; width: 100%; cursor: pointer;
}
.quote__play span {
    width: 62px; height: 62px; border-radius: 50%; background: var(--yellow); color: var(--green);
    display: grid; place-items: center; transition: transform .25s ease, background .2s;
}
.quote__video:hover .quote__play span { transform: scale(1.1); }
.quote__play svg { width: 24px; height: 24px; margin-left: 3px; }
.quote__badge {
    position: absolute; left: 12px; top: 12px; z-index: 2; background: rgba(3, 61, 46, .85);
    color: var(--white); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    padding: 5px 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
}
.quote__badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
.quote__badge-text { margin-right: -.08em; line-height: 1; }

/* ==========================================================================
   KLIENTSKY PÁS – dlaždice s logami klientov
   ========================================================================== */
.clientwall { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.clientwall__item {
    display: grid; place-items: center; text-align: center; min-height: 92px; padding: 18px 14px;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m);
    font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: #8b978f;
    text-decoration: none;
    transition: color .3s, border-color .3s, background .3s, transform .3s;
    position: relative; overflow: hidden;
}
.clientwall__item::before {
    content: ""; position: absolute; inset: 0; background: var(--cream-soft);
    transform: translateY(101%); transition: transform .4s cubic-bezier(.22,.8,.3,1);
}
.clientwall__item span { position: relative; z-index: 1; }
/* logá majú rôzne farebnosti – v odtieňoch sivej pôsobí stena pokojne a farbu dostane
   až logo pod kurzorom, aby bolo jasné, na ktorý podnik sa práve pozerám */
.clientwall__item img {
    position: relative; z-index: 1;
    max-width: 100%; max-height: 56px; width: auto; height: auto; object-fit: contain;
    filter: grayscale(1) contrast(1.05); opacity: .9;
    transition: filter .3s, opacity .3s, transform .3s;
}
.clientwall__item:hover { color: var(--green); border-color: var(--green-3); }
.clientwall__item:hover::before { transform: translateY(0); }
.clientwall__item:hover img { filter: none; opacity: 1; }
a.clientwall__item:hover img { transform: scale(1.04); }
a.clientwall__item:focus-visible { outline: 2px solid var(--green-3); outline-offset: 3px; }

/* ==========================================================================
   AKTUALITY
   ========================================================================== */
.featured { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-bottom: 44px; }
.featured .featcard { min-height: 340px; }
.featcard {
    position: relative; border-radius: var(--r-l); overflow: hidden; min-height: 380px;
    display: flex; align-items: flex-end; color: var(--white); cursor: pointer;
    border: 1px solid var(--line);
}
.featcard img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    border-radius: inherit; backface-visibility: hidden; transition: transform .6s ease;
}
.featcard:hover img { transform: scale(1.05); }
.featcard::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    background: linear-gradient(6deg, rgba(2, 34, 25, .94) 6%, rgba(2, 34, 25, .48) 55%, rgba(2, 34, 25, .08) 100%);
}
.featcard__body { position: relative; z-index: 2; padding: 32px 30px; width: 100%; }
.featcard__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.featcard h3 { color: var(--white); font-size: clamp(20px, 2vw, 25px); margin-bottom: 8px; }
.featcard p { color: rgba(255, 255, 255, .84); font-size: 15.5px; margin-bottom: 16px; }
.featcard__go { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--yellow); }
.featcard__go svg { width: 17px; height: 17px; transition: transform .3s; }
.featcard:hover .featcard__go svg { transform: translateX(5px); }
.badge-main {
    background: var(--yellow); color: var(--green); font-family: var(--font-head); font-weight: 700;
    font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}
.badge-cat {
    background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); color: var(--white);
    font-size: 12.5px; font-weight: 600; padding: 4px 12px; border-radius: 999px;
}
.badge-date { font-size: 13.5px; color: rgba(255, 255, 255, .78); }

/* filtre */
.filters { display: flex; flex-wrap: wrap; gap: 22px 34px; align-items: flex-end; margin-bottom: 34px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.filters__group { display: flex; flex-direction: column; gap: 10px; }
.filters__label { font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.filters__row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px;
    border: 1.5px solid var(--line); background: var(--white); font-size: 14.5px; font-weight: 600;
    color: var(--muted); transition: all .22s ease; cursor: pointer;
}
.chip svg { width: 15px; height: 15px; }
.chip:hover { border-color: var(--green-3); color: var(--green); }
.chip.is-active { background: var(--green); border-color: var(--green); color: var(--white); }
.chip.is-active svg { color: var(--yellow); }
.filters__count { margin-left: auto; font-size: 14.5px; color: var(--muted); }

.newscard__flags { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; z-index: 2; }
.flag {
    display: inline-flex; align-items: center; gap: 5px; background: rgba(3, 61, 46, .84); color: var(--white);
    font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; letter-spacing: .05em;
}
.flag svg { width: 12px; height: 12px; color: var(--yellow); }

.emptystate { text-align: center; padding: 70px 20px; color: var(--muted); }
.emptystate svg { width: 46px; height: 46px; margin: 0 auto 16px; color: var(--green-3); opacity: .5; }

/* stránkovanie */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.pager a, .pager span {
    min-width: 46px; height: 46px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line);
    display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-head);
    font-weight: 700; font-size: 15px; color: var(--muted); background: var(--white); transition: all .2s;
}
.pager a:hover { border-color: var(--green-3); color: var(--green); }
.pager .is-current { background: var(--green); border-color: var(--green); color: var(--white); }
.pager svg { width: 17px; height: 17px; }
.pager__gap { border: 0; background: none; color: var(--muted); min-width: 20px; padding: 0; }

/* ==========================================================================
   DETAIL AKTUALITY
   ========================================================================== */
.articlelayout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 4vw, 56px); align-items: start; }
.article { max-width: 800px; min-width: 0; }

/* bočný panel článku */
.artaside { min-width: 0; align-self: stretch; }
.artaside__sticky {
    position: sticky; top: calc(var(--noticebar-h, 0px) + var(--topbar-h) + var(--header-h) + 20px);
    display: grid; gap: 18px;
}
/* panel vyšší ako okno: scrolluje sa spolu s článkom a zastaví sa na svojom konci */
.artaside__sticky.is-tall { top: calc(100vh - var(--aside-h, 0px) - 20px); }
.artaside__card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); padding: 24px 22px; }
.artaside__h {
    font-size: 12.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 16px;
}
.artaside__nav { display: grid; gap: 4px; }
.artaside__nav a {
    display: flex; align-items: center; gap: 13px; padding: 11px 12px; border-radius: 12px;
    transition: background .22s ease;
}
.artaside__nav a:hover { background: var(--cream-soft); }
.artaside__ico {
    width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--mint-soft);
    color: var(--green-3); display: grid; place-items: center; transform: rotate(0deg); will-change: transform;
    transition: background .25s ease, color .25s ease, transform .35s cubic-bezier(.22,.8,.3,1);
}
.artaside__ico svg { width: 19px; height: 19px; }
.artaside__nav a:hover .artaside__ico { background: var(--yellow); color: var(--green); transform: rotate(-6deg); }
.artaside__nav strong { display: block; font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--green); }
.artaside__nav em { display: block; font-style: normal; font-size: 13px; color: var(--muted); }

.artaside__card--cta { background: var(--green); border-color: var(--green); }
.artaside__card--cta .artaside__h { color: var(--yellow); }
.artaside__card--cta p { color: rgba(255, 255, 255, .82); font-size: 14.5px; margin-bottom: 18px; }
.artaside__card--cta .btn { width: 100%; }
.article__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.article__cat { background: var(--mint-soft); color: var(--green-3); font-weight: 700; font-size: 13px; padding: 5px 14px; border-radius: 999px; }
.article__date { font-size: 14.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.article__date svg { width: 15px; height: 15px; }
.article__lead {
    font-size: clamp(18px, 1.8vw, 21px); line-height: 1.6; color: #2a3b34; font-weight: 600;
    padding: 22px 26px; background: var(--cream-soft); border-left: 4px solid var(--yellow);
    border-radius: 0 var(--r-m) var(--r-m) 0; margin-bottom: 34px;
}
.article__hero { margin-bottom: 40px; }
.article__hero img { width: 100%; border-radius: var(--r-l); aspect-ratio: 16 / 8.5; object-fit: cover; }
.article__body { font-size: 17.5px; line-height: 1.75; }
.article__body p { margin-bottom: 18px; color: #33443c; }
.article__body h2 { font-size: clamp(23px, 2.4vw, 29px); margin: 40px 0 16px; }
.article__body h3 { font-size: 20px; margin: 30px 0 12px; }
.article__body ul, .article__body ol { margin: 18px 0 24px; display: grid; gap: 10px; }
.article__body ul li { display: flex; gap: 12px; align-items: flex-start; }
.article__body ul li::before {
    content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow);
    margin-top: 10px; box-shadow: 0 0 0 3px rgba(254, 208, 39, .25);
}
.article__body ol { counter-reset: ol; }
.article__body ol li { counter-increment: ol; display: flex; gap: 12px; }
.article__body ol li::before {
    content: counter(ol) "."; font-family: var(--font-head); font-weight: 700; color: var(--green-3); flex: none;
}
.article__body a { color: var(--green-3); font-weight: 600; text-decoration: underline; }
.article__body blockquote {
    border-left: 4px solid var(--yellow); padding: 6px 0 6px 22px; margin: 26px 0;
    font-style: italic; color: #2a3b34;
}
.article__body img { border-radius: var(--r-m); margin: 24px 0; }

.article__share { display: flex; align-items: center; gap: 14px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.article__share span { font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--green); }
.sharebtn {
    width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center;
    color: var(--muted); transition: all .2s;
}
.sharebtn:hover { border-color: var(--green-3); color: var(--green); background: var(--mint-soft); }
.sharebtn svg { width: 17px; height: 17px; }

/* navigácia medzi článkami */
.artnav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.artnav__item {
    display: flex; align-items: center; gap: 18px; padding: 16px 20px; border: 1px solid var(--line);
    border-radius: var(--r-m); background: var(--white); overflow: hidden;
    transition: border-color .3s, background .3s;
}
.artnav__thumb {
    width: 88px; height: 66px; flex: none; border-radius: var(--r-s); overflow: hidden; background: var(--mint-soft);
}
.artnav__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.22,.8,.3,1); }
.artnav__item:hover .artnav__thumb img { transform: scale(1.07); }
.artnav__body { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
.artnav__item:hover { border-color: var(--green-3); background: var(--cream-soft); }
.artnav__dir { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.artnav__dir svg { width: 14px; height: 14px; }
.artnav__t { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--green); }
.artnav__item--next { text-align: right; }
.artnav__item--next .artnav__dir { justify-content: flex-end; }

/* ==========================================================================
   FOTOGALÉRIA + LIGHTBOX
   ========================================================================== */
.gallery { display: grid; gap: 12px; margin: 34px 0; }
.gallery[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
.gallery[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.gallery[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }
.gallery__item {
    position: relative; border-radius: var(--r-s); overflow: hidden; aspect-ratio: 4 / 3;
    cursor: pointer; border: 0; padding: 0; background: var(--mint-soft); display: block; width: 100%;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery__item::after {
    content: ""; position: absolute; inset: 0; background: rgba(3, 61, 46, 0); transition: background .3s;
}
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item:hover::after { background: rgba(3, 61, 46, .22); }
.gallery__zoom {
    position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
    background: var(--yellow); color: var(--green); display: grid; place-items: center;
    opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.gallery__item:hover .gallery__zoom { opacity: 1; transform: none; }
.gallery__zoom svg { width: 16px; height: 16px; }

.lightbox {
    position: fixed; inset: 0; z-index: 200; background: rgba(2, 20, 15, .95);
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    display: none; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .3s ease;
}
.lightbox.is-open { display: flex; }
.lightbox.is-visible { opacity: 1; }
.lightbox__img { max-width: min(1100px, 92vw); max-height: 82vh; object-fit: contain; border-radius: 6px; user-select: none; }
.lightbox__close, .lightbox__nav {
    position: absolute; width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .08); color: var(--white); display: grid; place-items: center;
    transition: background .2s, border-color .2s; cursor: pointer;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--yellow); color: var(--green); border-color: var(--yellow); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__nav--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__close svg, .lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__counter {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
    color: rgba(255, 255, 255, .8); font-family: var(--font-head); font-size: 14px; letter-spacing: .1em;
}

/* ==========================================================================
   CITÁCIA S PODPISOM (kariéra)
   ========================================================================== */
.pullquote {
    position: relative; background: var(--green); color: var(--white); border-radius: var(--r-l);
    padding: clamp(34px, 4.5vw, 58px); overflow: hidden;
    display: grid; grid-template-columns: 1fr auto; gap: clamp(28px, 4vw, 54px); align-items: center;
}
.pullquote::before {
    content: ""; position: absolute; inset: 0;
    background-image: repeating-linear-gradient(-52deg, transparent 0 34px, rgba(255, 255, 255, .045) 34px 35px);
}
.pullquote__in { position: relative; z-index: 1; }
.pullquote__mark { display: block; width: 46px; height: 46px; color: var(--yellow); opacity: .85; margin-bottom: 18px; }
.pullquote__mark svg { width: 100%; height: 100%; }
.pullquote__text { font-size: clamp(19px, 2.1vw, 26px); line-height: 1.5; font-weight: 600; font-family: var(--font-head); }
.pullquote__foot { display: flex; align-items: center; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
.pullquote__who { display: flex; flex-direction: column; }
.pullquote__name { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--white); }
.pullquote__role { font-size: 14.5px; color: rgba(255, 255, 255, .72); }
.signature {
    font-family: "Allura", cursive; font-size: clamp(38px, 4.4vw, 52px); line-height: 1;
    color: var(--yellow); white-space: nowrap; flex: none; padding-bottom: .12em;
    transform: rotate(-3deg); transform-origin: left center;
}
.pullquote__side { position: relative; z-index: 1; display: grid; gap: 12px; }

/* ==========================================================================
   ROZCESTNÍKY
   ========================================================================== */
.hubgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
/* varianta s 5 kartami – prvý riadok 3, druhý riadok 2 vycentrované (na 6-stĺpcovom rastri) */
.hubgrid--5 { grid-template-columns: repeat(6, 1fr); }
.hubgrid--5 > *:nth-child(1) { grid-column: 1 / span 2; }
.hubgrid--5 > *:nth-child(2) { grid-column: 3 / span 2; }
.hubgrid--5 > *:nth-child(3) { grid-column: 5 / span 2; }
.hubgrid--5 > *:nth-child(4) { grid-column: 2 / span 2; }
.hubgrid--5 > *:nth-child(5) { grid-column: 4 / span 2; }
@media (max-width: 980px) {
    .hubgrid--5 { grid-template-columns: repeat(2, 1fr); }
    .hubgrid--5 > * { grid-column: auto !important; }
}
@media (max-width: 560px) {
    .hubgrid--5 { grid-template-columns: 1fr; }
}
.hubcard {
    display: flex; flex-direction: column; gap: 14px; padding: 32px 28px; background: var(--white);
    border: 1px solid var(--line); border-radius: var(--r-m); position: relative; overflow: hidden;
    transition: border-color .3s, background .3s;
}
.hubcard::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--yellow);
    transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.22,.8,.3,1);
}
.hubcard:hover { border-color: var(--green-3); background: var(--cream-soft); }
.hubcard:hover::after { transform: scaleX(1); }
.hubcard__ico { width: 54px; height: 54px; border-radius: 14px; background: var(--mint-soft); color: var(--green-3); display: grid; place-items: center; transform: rotate(0deg); will-change: transform; transition: background .3s, transform .4s cubic-bezier(.22,.8,.3,1); }
.hubcard:hover .hubcard__ico { background: var(--yellow); color: var(--green); transform: rotate(-6deg); }
.hubcard__ico svg { width: 27px; height: 27px; }
.hubcard h3 { font-size: 19px; }
.hubcard p { font-size: 15px; color: var(--muted); flex: 1; }
.hubcard__go { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--green-3); }
.hubcard__go svg { width: 16px; height: 16px; transition: transform .25s; }
.hubcard:hover .hubcard__go svg { transform: translateX(4px); }

/* ==========================================================================
   404
   ========================================================================== */
.err { text-align: center; padding: clamp(70px, 10vw, 130px) 0; }
.err__code {
    font-family: var(--font-head); font-weight: 800; font-size: clamp(90px, 17vw, 190px); line-height: .9;
    color: transparent; -webkit-text-stroke: 2.5px var(--green-3); opacity: .32; letter-spacing: -.03em;
    margin-bottom: -.12em; user-select: none;
}
.err h1 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 16px; }
.err p { max-width: 540px; margin: 0 auto 34px; color: var(--muted); font-size: 18px; }
.err__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.err__links { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; max-width: 780px; margin-inline: auto; text-align: left; }

/* ---------- toast ---------- */
.toast {
    position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); transform: translate(-50%, 16px);
    background: var(--green); color: var(--white); font-family: var(--font-head);
    font-weight: 600; font-size: 14.5px; padding: 14px 26px; border-radius: 999px;
    box-shadow: var(--shadow-l); opacity: 0; pointer-events: none; z-index: 100;
    transition: opacity .3s ease, transform .3s ease; max-width: calc(100vw - 40px); text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- animácie pri scrolle ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.16,.8,.3,1), transform .7s cubic-bezier(.16,.8,.3,1); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
    .hero__media video { display: none; }
}

/* ---------- responzivita ---------- */
@media (max-width: 1120px) {
    .benefits, .facts { grid-template-columns: repeat(2, 1fr); }
    .products { grid-template-columns: repeat(3, 1fr); }
    .teamgrid { grid-template-columns: repeat(3, 1fr); }
    .calclayout { grid-template-columns: 1fr; }
    .calcaside { position: static; grid-template-columns: 1fr 1fr; order: -1; }
}
/* Pri 1024 px (tablet naležato) sa plná navigácia aj tlačidlo „Vypočítať poistné"
   do hlavičky nezmestili a pretekali o 11 px cez pravý okraj – stránka sa dala
   posúvať do strán. Hlavička preto prepína na mobilné menu už od 1080 px.
   Ostatné rozloženie zostáva nezmenené, mení sa naozaj len hlavička. */
@media (max-width: 1080px) {
    .nav, .header__cta .btn--outline, .header__cta .btn--primary { display: none; }
    .burger { display: block; }
    .mnav { display: block; }
}

@media (max-width: 980px) {
    .nav, .header__cta .btn--outline, .header__cta .btn--primary { display: none; }
    .burger { display: block; }
    .mnav { display: block; }
    .teamintro, .videoblock, .split { grid-template-columns: 1fr; }
    .videoblock--flip .videoblock__media, .split--flip .split__media { order: 0; }
    .calcgrid, .news, .contactgrid { grid-template-columns: 1fr 1fr; }
    .quotes__track > * { width: calc((100% - 24px) / 2); }
    .hero__stats-in, .statsband__grid { grid-template-columns: repeat(2, 1fr); }
    .stat { padding: 20px 22px; }
    .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
    .hero__calc-in { gap: 16px; }
    .hero__calc-opts { margin-left: 0; width: 100%; }
    .footer__main { grid-template-columns: 1fr 1fr; gap: 40px; }
    .teamintro__badge { right: 10px; bottom: -18px; }
    .quotes__pair { grid-template-columns: 1fr; }
    .offices--rest { grid-template-columns: 1fr 1fr; }
    .steptrack { grid-template-columns: 1fr 1fr; }
    .articlelayout { grid-template-columns: 1fr; }
    .article { max-width: none; }
    .artaside { align-self: auto; }
    .artaside__sticky { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
    .steptrack__item:nth-child(2)::before { display: none; }
    .featured { grid-template-columns: 1fr; }
    .clientwall { grid-template-columns: repeat(3, 1fr); }
    .helpbox__card { grid-template-columns: 96px 1fr; }
    .helpbox__portrait { width: 96px; height: 96px; }
    .helpbox__initials { font-size: 28px; }
    .helpbox__phnote { display: none; }
    .helpbox__actions { grid-column: span 2; grid-auto-flow: column; justify-content: start; align-items: center; gap: 20px; }
    .pullquote { grid-template-columns: 1fr; }
    .gallery[data-cols="4"] { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
    body { font-size: 16px; }
    .mark-y { white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone;
        background-image: linear-gradient(0deg, var(--yellow) 0 .26em, transparent .26em);
        background-repeat: no-repeat; background-size: 100% 100%; }
    .mark-y::after { display: none; }
    .container { width: calc(100% - 40px); }
    .seemore__row { flex-wrap: nowrap; }
    .seemore { white-space: normal; text-align: right; flex: 1 1 auto; min-width: 0; }
    .topbar__nbs { display: none; }
    /* nahlásenie udalosti doľava, prepínač jazyka doprava */
    .topbar__group--actions { gap: 12px; }
    /* zelená lišta sa pri scrollovaní schová, aby na malom displeji nezaberala miesto */
    .sitehead.is-collapsed .topbar { height: 0; opacity: 0; }
    .header__logo img { height: 40px; }
    .calcgrid, .news, .products, .teamgrid, .contactgrid, .facts, .benefits, .form__grid { grid-template-columns: 1fr; }
    /* na mobile ostáva pred formulárom len "Ako to funguje", kontakt na špecialistu ide až za formulár */
    .calcaside { display: contents; }
    .calcaside .asidecard:not(.asidecard--dark) { order: -1; }
    .calcaside .asidecard--dark { order: 1; }
    /* na mobile sa tri možnosti nezmestia vedľa seba – prepínač ide pod seba */
    .calctabs { grid-template-columns: 1fr; border-radius: var(--r-m); }
    .calctab { border-radius: var(--r-s); padding: 16px; font-size: 16px; }
    .quotes__track > * { width: 100%; }
    .form__grid .span2 { grid-column: auto; }
    .calccard { min-height: 340px; }
    .hero__slides { min-height: 300px; }
    .section__split { flex-direction: column; align-items: flex-start; }
    .numlist > li { flex-direction: column; gap: 10px; }
    .footer__main { grid-template-columns: 1fr; }
    .form__foot { flex-direction: column; align-items: stretch; }
    .calcstep__actions { flex-direction: column-reverse; align-items: stretch; }
    .calcstep__actions .btn { width: 100%; }
    .form__foot--split .form__foot-main { flex-direction: column; align-items: stretch; }
    .form__foot--split .btn { width: 100%; }
    .form__foot .btn { width: 100%; }
    .teamintro__badge { position: static; margin-top: 18px; max-width: none; }
    .clientwall { grid-template-columns: repeat(2, 1fr); }
    .steptrack { grid-template-columns: 1fr; }
    .artaside__sticky { grid-template-columns: 1fr; }
    .steptrack__item::before { top: auto; bottom: -20px; right: auto; left: 42px; width: 2px; height: 20px;
        background: repeating-linear-gradient(180deg, var(--green-3) 0 5px, transparent 5px 10px); }
    .steptrack__item:nth-child(2)::before { display: block; }
    .offices--main, .offices--rest { grid-template-columns: 1fr; }
    .office--main { grid-template-columns: 1fr; }
    .office__photo { min-height: 170px; }
    .office--main .office__info { padding: 26px 24px; }
    .footer__legal { gap: 8px; }
    .footer__legal a { font-size: 13px; padding: 7px 13px; }
    .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
    .signature { font-size: 34px; }
    .clientwall__item { min-height: 76px; font-size: 13px; }
    .clientwall__item img { max-height: 44px; }
    .helpbox__card { grid-template-columns: 1fr; text-align: center; padding-top: 30px; }
    .helpbox__card::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 5px; }
    .helpbox__portrait { margin-inline: auto; }
    .helpbox__mark { display: none; }
    .helpbox__sign { align-items: center; }
    .helpbox__actions { grid-column: auto; grid-auto-flow: row; justify-content: stretch; }
    .helpbox__actions .btn { width: 100%; }
    .helpbox { --overlap: 90px; }
    .helpbox + .ctaband { margin-top: -90px; padding-top: 90px; }
    .helpbox + .footer  { margin-top: -90px; padding-top: 108px; }
    .artnav { grid-template-columns: 1fr; }
    .artnav__item--next { text-align: left; }
    .artnav__item--next .artnav__dir { justify-content: flex-start; }
    .artnav__item--next { flex-direction: row-reverse; }
    .gallery[data-cols="3"], .gallery[data-cols="4"] { grid-template-columns: repeat(2, 1fr); }
    .lightbox__nav--prev { left: 10px; }
    .lightbox__nav--next { right: 10px; }
    .lightbox__close { top: 14px; right: 14px; }
    .filters { gap: 18px; }
    .filters__count { margin-left: 0; width: 100%; }
}

/* ---------- ppfacts (Výhody prestupu na stránke Spolupráce) ---------- */
.ppfacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ppfact {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l);
    padding: 32px 28px 26px; position: relative; overflow: hidden;
    transition: border-color .2s, transform .3s cubic-bezier(.22,.8,.3,1), box-shadow .3s;
}
.ppfact::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 4px;
    background: var(--yellow); transform: scaleX(0); transform-origin: left;
    transition: transform .5s cubic-bezier(.22,.8,.3,1);
}
.ppfact:hover { border-color: var(--green-3); transform: translateY(-3px); box-shadow: var(--shadow-m); }
.ppfact:hover::after { transform: scaleX(1); }
.ppfact__n {
    font-family: var(--font-head); font-weight: 800; font-size: clamp(36px, 3.4vw, 46px);
    color: var(--green); line-height: 1; display: flex; align-items: baseline; gap: 4px;
}
.ppfact__n span { font-size: 20px; color: var(--green-3); font-weight: 700; }
.ppfact__n svg { width: 40px; height: 40px; color: var(--green-3); }
.ppfact__l { font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--green-3); margin: 16px 0 10px; }
.ppfact p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
@media (max-width: 980px) { .ppfacts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ppfacts { grid-template-columns: 1fr; } }

/* ---------- crosslink (prepojenie medzi podstránkami) ---------- */
.crosslink {
    display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center;
    background: linear-gradient(120deg, var(--mint-soft), var(--cream-soft));
    border: 1px solid var(--line); border-left: 6px solid var(--yellow);
    border-radius: var(--r-l); padding: 28px 32px; text-decoration: none;
    transition: border-color .2s, transform .3s cubic-bezier(.22,.8,.3,1), box-shadow .3s;
}
.crosslink:hover { border-color: var(--green-3); transform: translateY(-2px); box-shadow: var(--shadow-m); }
.crosslink__ico { width: 56px; height: 56px; border-radius: 16px; background: var(--white); display: grid; place-items: center; color: var(--green-3); flex: none; }
.crosslink__ico svg { width: 28px; height: 28px; }
.crosslink__kicker { display: block; font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--green-3); margin-bottom: 6px; }
.crosslink__body h3 { font-size: 22px; margin-bottom: 6px; }
.crosslink__body p { color: var(--muted); font-size: 15px; max-width: 640px; }
.crosslink__go { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--green); background: var(--yellow); padding: 12px 20px; border-radius: 999px; flex: none; transition: transform .2s; }
.crosslink__go svg { width: 17px; height: 17px; }
.crosslink:hover .crosslink__go { transform: translateX(3px); }
@media (max-width: 780px) {
    .crosslink { grid-template-columns: 1fr; text-align: left; padding: 24px; }
    .crosslink__go { justify-self: start; }
}

/* ---------- benefitgrid (Výhody spolupráce – „Čo získate") ---------- */
.benefitgrid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.benefitgrid__intro { position: sticky; top: calc(var(--noticebar-h, 0px) + var(--header-h) + 24px); }
.benefitgrid__intro .lead { color: var(--muted); }
.benefitgrid__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.benefitgrid__metaitem { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); padding: 20px 22px; }
.benefitgrid__metaitem .n { font-family: var(--font-head); font-weight: 800; font-size: 32px; color: var(--green); line-height: 1; }
.benefitgrid__metaitem .l { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

.benefitgrid__list { display: grid; gap: 18px; counter-reset: bnum; }
.benefitcard {
    position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l);
    padding: 32px 34px 30px 108px; overflow: hidden;
    transition: border-color .2s, transform .3s cubic-bezier(.22,.8,.3,1), box-shadow .3s;
}
.benefitcard:hover { border-color: var(--green-3); transform: translateY(-2px); box-shadow: var(--shadow-m); }
.benefitcard::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--yellow);
    border-radius: var(--r-l) 0 0 var(--r-l);
}
.benefitcard__num {
    position: absolute; top: 26px; left: 28px;
    font-family: var(--font-head); font-weight: 800; font-size: 40px; color: var(--yellow);
    line-height: 1;
}
.benefitcard__ico {
    position: absolute; top: 70px; left: 28px;
    width: 44px; height: 44px; border-radius: 12px; background: var(--mint-soft);
    display: grid; place-items: center; color: var(--green-3);
}
.benefitcard__ico svg { width: 24px; height: 24px; }
.benefitcard h3 { font-size: 21px; margin-bottom: 8px; color: var(--green); }
.benefitcard p { color: var(--muted); font-size: 15.5px; line-height: 1.65; }

@media (max-width: 980px) {
    .benefitgrid { grid-template-columns: 1fr; gap: 32px; }
    .benefitgrid__intro { position: static; }
    .benefitgrid__meta { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .benefitcard { padding: 90px 24px 24px; }
    .benefitcard__num { top: 22px; left: 22px; }
    .benefitcard__ico { top: 22px; left: auto; right: 22px; }
    .benefitcard::before { width: 4px; }
}

/* ---------- partneri (zväzy, komory, združenia) ---------- */
.partners__head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.partners__head .kicker { justify-content: center; }
.partners__title { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 12px; }
.partners__lead { color: var(--muted); font-size: 15.5px; }
.partners__grid {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px;
}
.partners__item {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m);
    padding: 22px 18px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px;
    min-height: 150px; text-align: center; transition: border-color .2s, transform .3s cubic-bezier(.22,.8,.3,1), box-shadow .3s;
}
.partners__item:hover { border-color: var(--green-3); transform: translateY(-3px); box-shadow: var(--shadow-m); }
.partners__item img { max-height: 62px; max-width: 100%; width: auto; object-fit: contain; flex: 1; }
.partners__name {
    font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .02em; color: var(--muted); line-height: 1.3;
    flex: 1; display: flex; align-items: center; justify-content: center;
}

/* footer variant – členské „štítky" zväzov a komôr */
.footer__partners {
    margin-top: 16px; padding: 28px 0;
    border-top: 1px solid rgba(255,255,255,.1);
}
.footer h4.footer__partners-title {
    font-family: var(--font-head); font-weight: 700; font-size: 16px;
    color: rgba(255,255,255,.88); margin-bottom: 16px;
    letter-spacing: -.005em; text-transform: none;
}
.footer__partners-list {
    display: flex; flex-wrap: wrap; gap: 8px 10px;
}
.footer__partners-list li {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px 7px 12px;
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: 999px;
    font-family: var(--font-head); font-weight: 600; font-size: 12.5px; letter-spacing: .01em;
    color: rgba(255,255,255,.82);
    transition: background .2s, border-color .2s, color .2s;
}
.footer__partners-list li:hover { background: rgba(255,255,255,.09); border-color: rgba(254,208,39,.4); color: #fff; }
.footer__partners-list li::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); opacity: .85; flex: none;
}

@media (max-width: 780px) {
    .footer__partners-title { font-size: 15.5px; margin-bottom: 14px; }
    .footer__partners-list li { padding: 6px 12px 6px 10px; font-size: 12px; }
}

@media (max-width: 980px) {
    .partners__grid { grid-template-columns: repeat(3, 1fr); }
    .footer__partners-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
    .partners__grid { grid-template-columns: repeat(2, 1fr); }
    .footer__partners-grid { grid-template-columns: repeat(2, 1fr); }
    .partners__item { min-height: 130px; }
}

/* stredne krátke viewporty (napr. MacBook 13" ~900 px) – zmenšíme hlavne horný padding a medzeru pred panelom, aby sa všetko zmestilo bez zjavnej kompresie */
@media (max-height: 900px) and (min-width: 981px) {
    .hero__in { padding-top: clamp(64px, 9vh, 120px); }
    .hero__calc { margin-top: clamp(28px, 4vh, 48px); }
}
/* krátke viewporty (MacBook 13" 800 px) – ešte menší horný padding a medzery */
@media (max-height: 820px) and (min-width: 981px) {
    .hero__in { padding-top: 52px; }
    .hero__nav { margin-top: 36px; }
    .hero__calc { margin-top: 24px; }
}

/* ---------- antispam: honeypot ----------
   Pole musí zostať v HTML (bot ho číta a vyplní), ale používateľ ho nesmie
   vidieť ani doň omylom natrafiť tabulátorom. Preto sa neskrýva cez
   display:none – to niektoré boty rozpoznajú a pole preskočia. */
.hp {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- lišta so súhlasom s cookies ----------
   Sedí dole a nezakrýva navigáciu ani informačnú lištu. Na mobile zaberá
   celú šírku a rešpektuje bezpečnú zónu iPhonu (home indicator). */
.cc {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9000;                 /* nad všetkým vrátane popupu – súhlas má prednosť */
    padding: 0 16px calc(16px + env(safe-area-inset-bottom));
    display: flex;
    justify-content: center;
    pointer-events: none;
}
.cc__panel {
    pointer-events: auto;
    width: 100%;
    max-width: 1120px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-m);
    box-shadow: 0 10px 44px rgba(3, 61, 46, .22);
    padding: 16px 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px 26px;
    align-items: center;
    transform: translateY(14px);
    opacity: 0;
    transition: transform .22s ease, opacity .22s ease;
}
.cc.is-open .cc__panel { transform: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    .cc__panel { transition: none; transform: none; }
}

.cc__title {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 700;
    color: var(--green);
    margin: 0 0 3px;
}
/* Zámerne bez max-width – text má vyplniť celý svoj stĺpec.
   S obmedzením šírky vznikala medzi textom a tlačidlami prázdna diera. */
.cc__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
}
.cc__text a { color: var(--green-3); font-weight: 600; text-decoration: underline; }

/* Atribút hidden musí prebiť vlastné display pravidlá. Bez tohto sa nielen
   zobrazujú skryté časti, ale hlavne: prekrytie na celú obrazovku (popup,
   cookie lišta) zostane neviditeľne roztiahnuté cez stránku a zachytáva
   všetky kliknutia – web potom vyzerá funkčne, ale nedá sa na nič kliknúť. */
.cc [hidden],
.cc[hidden],
.popup[hidden] { display: none !important; }

.cc__cats {
    margin-top: 12px;
    display: grid;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}
.cc__cat {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}
.cc__cat input { margin-top: 3px; flex: none; width: 17px; height: 17px; accent-color: var(--green); }
.cc__cat input:disabled { cursor: not-allowed; }
.cc__cat strong { display: block; color: var(--ink); font-size: 14.5px; margin-bottom: 2px; }
.cc__cat span span { color: var(--muted); }

/* Tlačidlá vedľa seba, nie pod sebou – lišta je vďaka tomu o polovicu nižšia
   a neprekrýva obsah stránky. Odkaz na podrobné nastavenie je v texte lišty. */
.cc__actions {
    display: grid;
    /* rovnaké stĺpce zámerne – prijatie a odmietnutie musia byť rovnako výrazné,
       inak by kratší text spravil z odmietnutia menšie a menej nápadné tlačidlo */
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
    align-content: center;
    min-width: 360px;
}
.cc__actions .cc__btn--save { grid-column: 1 / -1; }

/* Odmietnutie musí byť rovnako nápadné ako prijatie – rovnaká veľkosť aj váha,
   líši sa len farbou, aby bola stránka čitateľná. */
.cc__btn { width: 100%; justify-content: center; white-space: nowrap; gap: 8px; }
/* Rovnaký štýl ako tlačidlo „Viac o spoločnosti" na úvodnej stránke (.btn--outline).
   Veľkosť aj váha zostávajú rovnaké ako pri prijatí – líši sa len výplň. */
.cc__btn--reject { border: 2px solid var(--green); color: var(--green); background: transparent; }
.cc__btn--reject:hover { background: var(--green); color: var(--white); }
/* Odkaz na podrobné nastavenie je súčasťou textu lišty, preto sa musí správať
   ako text – rovnaká veľkosť písma aj účiarka, len zvýraznený. */
.cc__link {
    display: inline;
    background: none;
    border: 0;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    font-weight: 700;
    color: var(--green-3);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}
.cc__link:hover { color: var(--green); }

@media (max-width: 860px) {
    .cc { padding: 0 10px calc(10px + env(safe-area-inset-bottom)); }
    .cc__actions { min-width: 0; }
    .cc__panel { grid-template-columns: 1fr; padding: 16px 16px 18px; }
}

/* ---------- cookie lišta na telefónoch ----------
   Na mobile sa lišta správa ako spodný panel: sedí na hrane obrazovky, text sa
   dá rolovať a tlačidlá zostávajú vždy viditeľné. Predtým bola v rozbalenom
   stave vysoká 80 % obrazovky a tlačidlo „Uložiť voľbu" skončilo pod ohybom
   vnútri rolovania – používateľ nemal ako voľbu potvrdiť. */
@media (max-width: 700px) {
    .cc { padding: 0; }

    .cc__panel {
        display: flex;
        flex-direction: column;
        /* z desktopovej mriežky sa dedí align-items: center – vo flex stĺpci by
           deti zmrštil na šírku obsahu a pás s tlačidlami by nebol cez celú šírku */
        align-items: stretch;
        max-width: none;
        max-height: 85dvh;
        padding: 0;
        border: 0;
        border-top: 1px solid var(--line);
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -8px 40px rgba(3, 61, 46, .26);
        gap: 0;
        transform: translateY(100%);
        opacity: 1;
    }
    .cc.is-open .cc__panel { transform: none; }

    /* text a kategórie sa rolujú, tlačidlá nie */
    .cc__main {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 20px 18px 4px;
    }
    .cc__title { font-size: 17px; margin-bottom: 6px; }
    .cc__text { font-size: 14.5px; line-height: 1.55; }

    /* odkaz zostáva v texte, ale má väčšiu dotykovú plochu */
    .cc__link { display: inline-block; padding: 4px 0; }

    .cc__cats { margin-top: 14px; padding-top: 14px; gap: 14px; }
    .cc__cat { font-size: 13.5px; }
    .cc__cat strong { font-size: 14px; }

    /* pás s tlačidlami sedí na spodku panela a neroluje spolu s textom */
    .cc__actions {
        flex: none;
        /* „Prijať a zavrieť" má výrazne dlhší text než „Odmietnuť" – rovnaké
           stĺpce by prvému nechali priúzko a druhému zbytočne veľa miesta.
           Pomer 1.4 : 1 zodpovedá dĺžke textov, prominencia oboch zostáva
           rovnaká (rovnaká výška, rám aj váha písma). */
        grid-template-columns: 1.4fr 1fr;
        padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--line);
        background: var(--white);
        gap: 10px;
    }
    /* Základné tlačidlo má 30 px odsadenia po stranách – na polovičnej šírke
       telefónu sa doň „Prijať a zavrieť" nezmestí a text sa oreže. */
    .cc__btn { padding: 13px 12px; font-size: 15px; gap: 6px; }
    .cc__btn svg { width: 16px; height: 16px; }
}

/* Na najužších displejoch sa dve tlačidlá vedľa seba už nezmestia čitateľne */
@media (max-width: 340px) {
    .cc__actions { grid-template-columns: 1fr; }
}

/* ---------- tabuľka v právnych textoch (zoznam cookies) ---------- */
.tablescroll { overflow-x: auto; margin: 14px 0 26px; -webkit-overflow-scrolling: touch; }
.ctable {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: 14.5px;
}
.ctable th,
.ctable td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.ctable th {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    color: var(--green);
    background: var(--mint-soft);
    white-space: nowrap;
}
.ctable code {
    font-size: 13px;
    background: var(--bg);
    padding: 2px 6px;
    border-radius: 5px;
    white-space: nowrap;
}

/* ---------- <picture> okolo obrázkov ----------
   Obálku <picture> dopĺňa filter v includes/media.php kvôli WebP verziám.
   display:contents zaistí, že sa v rozložení správa, akoby tam vôbec nebola –
   obrázok tak zostáva priamym prvkom flex/grid rodiča a nič sa nerozsype.
   Pozor: selektory typu `.rodic > img` prestanú po obalení platiť, tie treba
   písať ako `.rodic img`. */
picture { display: contents; }

/* ---------- informačná lišta (Obsah → Oznamy) ----------
   Farby nastavuje administrácia, preto sú v atribúte style priamo na prvku.
   Lišta je prvý prvok v .sitehead, takže sa posúva spolu s hlavičkou.
   Jej výšku meria main.js a zapisuje do --noticebar-h, aby o nej vedeli
   sticky bočné panely. */
.noticebar { position: relative; z-index: 2; font-size: 14px; line-height: 1.4; }
.noticebar__in {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 40px;
    padding-top: 8px;
    padding-bottom: 8px;
}
.noticebar__text { margin: 0; text-align: center; }
.noticebar__link {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-left: 6px;
    white-space: nowrap;
}
.noticebar__link:hover { opacity: .8; }
.noticebar__close {
    flex: none;
    background: none;
    border: 0;
    color: inherit;
    opacity: .7;
    cursor: pointer;
    /* dotykový cieľ 44 × 44 px aj pri malej ikone */
    width: 44px;
    height: 44px;
    margin: -8px -12px -8px 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity .2s;
}
.noticebar__close:hover { opacity: 1; }
.noticebar__close svg { width: 17px; height: 17px; }

@media (max-width: 700px) {
    .noticebar { font-size: 13.5px; }
    .noticebar__in { gap: 6px; }
}

/* ---------- vyskakovacie okno (Obsah → Oznamy) ---------- */
.popup {
    position: fixed;
    inset: 0;
    z-index: 8000;               /* pod cookie lištou (9000) – súhlas má prednosť */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 20, 15, .62);
    opacity: 0;
    transition: opacity .25s ease;
}
.popup__box {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    background: var(--white);
    border-radius: var(--r-m);
    box-shadow: 0 24px 70px rgba(3, 61, 46, .34);
    transform: translateY(18px) scale(.98);
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
}
.popup.is-open .popup__backdrop { opacity: 1; }
.popup.is-open .popup__box { transform: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    .popup__backdrop, .popup__box { transition: none; }
}

.popup__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    color: var(--green);
    cursor: pointer;
    box-shadow: var(--shadow-s);
    transition: background .2s;
}
.popup__close:hover { background: var(--white); }
.popup__close svg { width: 18px; height: 18px; }

.popup__media { line-height: 0; }
.popup__media img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--r-m) var(--r-m) 0 0;
}
.popup__body { padding: 26px 28px 28px; }
.popup__title {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 800;
    color: var(--green);
    margin: 0 0 10px;
    line-height: 1.25;
    /* miesto pre zatvárací krížik – bez obrázka sedí priamo nad nadpisom */
    padding-right: 38px;
}
.popup__media + .popup__body .popup__title { padding-right: 0; }
.popup__text { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.popup__btn { margin-top: 20px; }

@media (max-width: 560px) {
    .popup { padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); align-items: flex-end; }
    .popup__box { max-height: 88dvh; }
    .popup__body { padding: 22px 20px 24px; }
    .popup__title { font-size: 20px; }
    .popup__btn { width: 100%; justify-content: center; }
}

/* ---------- hover na dotykových zariadeniach (hover-zamrznutie) ----------
   Na mobile a tablete `:hover` po klepnutí zostane visieť, kým používateľ
   neklepne inam – karta tak zostane nadvihnutá alebo ikona pootočená.
   Ruší sa preto len samotný posun; zmena farby zostáva, tá neprekáža.
   Zoznam je odvodený zo všetkých pravidiel, ktoré na :hover menia transform. */
@media (hover: none) {
    .btn:hover svg,
    .nav__item:hover .nav__caret,
    .nav__item:hover .dropdown,
    .hero__calc-opts a:hover,
    .calccard:hover,
    .calccard:hover img,
    .calccard:hover .calccard__go svg,
    .videoframe:hover img,
    .videoframe:hover .videoframe__btn,
    .product:hover .product__go svg,
    .newscard:hover .newscard__img img,
    .liabcard:hover .liabcard__ico,
    .calcstep__actions [data-add-item]:hover svg,
    .calctab:hover svg,
    .member__links a:hover,
    .contactperson__links a:hover,
    .leaflet-marker-icon.mappin:hover,
    .steptrack__item:hover::after,
    .steptrack__item:hover .steptrack__ico,
    .benefit:hover::after,
    .product:hover::after,
    .fact:hover::after,
    .member:hover::after,
    .office:hover::after,
    .newscard:hover::after,
    .contactperson:hover::after,
    .quote:hover::after,
    .liabcard:hover::after,
    .fact:hover svg,
    .benefit:hover .benefit__ico,
    .product:hover .product__ico,
    .member__webcam:hover .member__cameraico,
    .member--join:hover .member__joinlink,
    .office__links a:hover,
    .quote__video:hover img,
    .quote__video:hover .quote__play span,
    .clientwall__item:hover::before,
    a.clientwall__item:hover img,
    .featcard:hover img,
    .featcard:hover .featcard__go svg,
    .artaside__nav a:hover .artaside__ico,
    .artnav__item:hover .artnav__thumb img,
    .gallery__item:hover img,
    .gallery__item:hover .gallery__zoom,
    .hubcard:hover::after,
    .hubcard:hover .hubcard__ico,
    .hubcard:hover .hubcard__go svg,
    .ppfact:hover,
    .ppfact:hover::after,
    .crosslink:hover,
    .crosslink:hover .crosslink__go,
    .benefitcard:hover,
    .partners__item:hover {
        transform: none;
    }
}

/* ---------- mobilné úpravy (pripomienky 4. 9. 2026) ---------- */

/* Trojica čísel na stránke Kariéra („20+ rokov na trhu" a spol.).
   Počet stĺpcov bol pôvodne v atribúte style, čo prebilo médiá dotazy a na mobile
   sa čísla tlačili do troch úzkych stĺpcov. Teraz je to trieda, takže sa dá zalomiť. */
.statrow { grid-template-columns: repeat(3, 1fr); }
.statrow .stat { padding: 0 22px; border-left: 1px solid var(--line); }
.statrow .stat:first-child { padding-left: 0; border-left: 0; }

@media (max-width: 700px) {
    /* Všetky tri vedľa seba. Pôvodne mal prvý stĺpec nulové odsadenie zľava
       a ostatné plné, takže čísla nesedeli v jednej osi – to bola tá výhrada.
       Teraz majú rovnaké odsadenie a obsah je v každom stĺpci na stred. */
    .statrow { grid-template-columns: repeat(3, 1fr); gap: 0; }
    .statrow .stat { padding: 0 8px; text-align: center; border-left: 1px solid var(--line); }
    .statrow .stat:first-child { padding-left: 8px; border-left: 0; }
    .statrow .stat__n { font-size: clamp(24px, 7vw, 32px); }
    .statrow .stat__l { font-size: 12.5px; line-height: 1.3; }
}

@media (max-width: 380px) {
    .statrow .stat { padding: 0 5px; }
    .statrow .stat:first-child { padding-left: 5px; }
    .statrow .stat__l { font-size: 11.5px; }
}

/* Karta „Rýchly kontakt" na stránke Kontakt sa vypisuje dvakrát – hore nad
   pobočkami a v bočnom paneli pri formulári. Vždy je viditeľná práve jedna:
   na mobile chce mať človek telefón hneď navrchu, na počítači patrí k formuláru.
   Presunúť jednu inštanciu cez order sa nedá, sú v rôznych sekciách stránky. */
.rychlykontakt--mobil { display: none; }

@media (max-width: 980px) {
    .rychlykontakt--mobil { display: block; margin-bottom: 30px; }
    .rychlykontakt--aside { display: none; }
}

/* Tri odkazy na kalkulačky v hero („Plodiny", „Zvieratá", „Stroje").
   Na mobile sa pri pôvodnom flex-wrap lámali do dvoch riadkov. Teraz sú tri
   rovnaké stĺpce, ktoré sa vždy zmestia vedľa seba: menšie odsadenie, menšie
   písmo a od 400 px sa skryje ikona, aby zostal priestor na text. */
@media (max-width: 700px) {
    .hero__calc-opts {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .hero__calc-opts a {
        justify-content: center;
        gap: 6px;
        padding: 11px 6px;
        font-size: 14px;
        white-space: nowrap;
    }
    .hero__calc-opts a svg { width: 17px; height: 17px; }
}

@media (max-width: 400px) {
    .hero__calc-opts { gap: 6px; }
    .hero__calc-opts a { padding: 11px 4px; font-size: 13.5px; }
    .hero__calc-opts a svg { display: none; }
}

/* Pätička na mobile: logo, popis a kontakt na stred cez celú šírku,
   „Produkty" a „Rýchle odkazy" vedľa seba v dvoch stĺpcoch. Zvislé zoznamy
   odkazov pod sebou naťahovali pätičku do nezmyselnej dĺžky. */
@media (max-width: 700px) {
    .footer__main {
        grid-template-columns: 1fr 1fr;
        gap: 34px 24px;
        text-align: center;
    }
    .footer__brand,
    .footer__col--kontakt { grid-column: 1 / -1; }

    .footer__brand img { margin-inline: auto; }
    .footer__brand p { max-width: 42ch; margin-inline: auto; }
    .footer__social { justify-content: center; }

    /* .footer__links je grid – na vodorovné zarovnanie slúži justify-items,
       align-items by riadky centroval zvisle a nič viditeľné by nespravil */
    .footer__col--produkty .footer__links,
    .footer__col--odkazy .footer__links { justify-items: center; }

    /* Kontakt zostáva zarovnaný doľava – adresa na tri riadky sa na stred číta
       zle. Nad ním je predel rovnaký ako nad blokom „Sme súčasťou", aby sa
       oddelil od vycentrovanej hornej časti pätičky. */
    .footer__col--kontakt {
        text-align: left;
        margin-top: 6px;
        padding-top: 30px;
        border-top: 1px solid rgba(255, 255, 255, .1);
    }
    .footer__col--kontakt h4 { text-align: left; }
    .footer__contact a { justify-content: flex-start; text-align: left; }
}

@media (max-width: 420px) {
    /* dlhšie názvy sa v úzkom stĺpci zalomia – radšej menšie písmo a tesnejší
       riadok než vrátiť sa k jednému stĺpcu cez celú šírku */
    .footer__main { gap: 30px 16px; }
    .footer__links { gap: 10px; }
    .footer__links a { font-size: 14.5px; line-height: 1.35; }
}

/* Karty členov tímu na mobile: fotografia vľavo, údaje vpravo.
   Zvislá karta mala cez 500 px na výšku a na jednu obrazovku sa zmestil jeden
   človek. Vodorovná menovka je asi o dve tretiny nižšia. */
@media (max-width: 700px) {
    .member { display: flex; align-items: stretch; }

    .member__photo {
        flex: none;
        width: 116px;
        aspect-ratio: 1 / 1;
        align-self: stretch;
        height: auto;
    }
    .member__init { font-size: 30px; }
    /* popisok „Miesto pre fotografiu" sa do úzkej fotky nezmestí */
    .member__photo .ph-note { display: none; }

    .member__body {
        flex: 1;
        min-width: 0;
        padding: 14px 16px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .member__office { margin-bottom: 6px; padding: 3px 9px 3px 7px; font-size: 11px; }
    .member h3 { font-size: 16px; line-height: 1.25; }
    /* pevná výška slúžila na zarovnanie kariet v mriežke – vo vodorovnej menovke
       by len robila prázdne miesto */
    .member .pos { min-height: 0; margin: 2px 0 10px; font-size: 13px; }
    .member__links { gap: 5px; }
    .member__links a { font-size: 13.5px; }
    .member__links svg { width: 14px; height: 14px; }

    /* promo karta „Staňte sa súčasťou tímu" musí ísť do riadku tiež,
       inak by v zozname vyčnievala ako jediná vysoká */
    .member--join { flex-direction: row; }
    .member--join .member__photo--join { width: 116px; }
    .member__joinico { width: 38px; height: 38px; }
}

@media (max-width: 380px) {
    .member__photo, .member--join .member__photo--join { width: 96px; }
    .member__body { padding: 12px 13px; }
    .member__links a { font-size: 13px; }
}

/* Menovky v „Kontakty podľa pobočiek" sú vodorovné už od začiatku, na mobile
   im však stačí menej miesta – nižší avatar a tesnejšie odsadenie ich zrovná
   s kartami tímu. Variantu --plain (vnútri bočných kariet) sa to netýka,
   tá vlastný rámik ani odsadenie nemá. */
@media (max-width: 700px) {
    .officegroup__grid { grid-template-columns: 1fr; gap: 12px; }

    .officegroup__grid .contactperson { padding: 16px; gap: 14px; }
    .officegroup__grid .contactperson__avatar { width: 58px; height: 58px; font-size: 18px; }
    .officegroup__grid .contactperson .n { font-size: 15.5px; line-height: 1.25; }
    .officegroup__grid .contactperson .p { font-size: 13px; }
    .officegroup__grid .contactperson__links { gap: 4px; }
    .officegroup__grid .contactperson__links a { font-size: 13.5px; }
    .officegroup__grid .contactperson__links svg { width: 14px; height: 14px; }
}

/* Tlačidlo vpravo od nadpisu podstránky (produktové stránky).
   Na širokých displejoch stojí v jednom riadku s nadpisom a je zarovnané
   na jeho účiaru; na užších sa presunie pod nadpis, aby sa nezúžil text. */
.phero__head--action {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 32px;
    flex-wrap: wrap;
}
.phero__head--action .h-l { margin: 0; }
.phero__actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; margin-bottom: 6px; }
.phero__action { flex: none; }

@media (max-width: 1000px) {
    /* dve tlačidlá vedľa nadpisu už uberajú z jeho šírky – radšej pod neho */
    .phero__head--action { display: block; }
    .phero__actions { margin: 20px 0 0; }
}

@media (max-width: 420px) {
    /* na úzkych displejoch pod seba cez celú šírku – dlhý text sa inak láme krivo */
    .phero__actions { display: grid; gap: 10px; }
    .phero__action { display: flex; width: 100%; justify-content: center; text-align: center; }
}

/* Tlačidlá v hero pod seba – na stránkach, kde má prvé tlačidlo dlhý text
   („Informovať sa o možnosti poistenia"). Vedľa seba by zabrali priveľa šírky
   a odtlačili nadpis. Šírku určuje to dlhšie z nich, aby boli obe rovnaké.

   Dvojica pod sebou je vyššia než samotný nadpis, takže by pri zarovnaní na jeho
   účiaru vznikla nad nadpisom prázdna medzera. Preto je na týchto stránkach v ľavom
   stĺpci nadpis aj s podnadpisom – ten dá stĺpcu dosť výšky a tlačidlá môžu zostať
   vpravo. Pod 1000 px sa hlavička aj tak láme pod seba (pravidlo vyššie). */
/* nadpis vždy hneď pod kickerom – aj keď je stĺpec s tlačidlami vyšší */
.phero__head--stack { align-items: stretch; }
.phero__head--stack .phero__headmain { flex: 1 1 420px; }
.phero__head--stack .phero__actions { align-self: flex-end; }
.phero__head--stack .lead { margin-top: 18px; }
.phero__actions--stack {
    display: grid;
    justify-items: stretch;
    gap: 10px;
    width: max-content;      /* šírku určuje dlhšie tlačidlo */
    max-width: 100%;         /* na úzkych displejoch sa text radšej zalomí */
}
