/* ==========================================================================
   chladenie-vody.sk – základné štýly
   Samostatná implementácia vychádzajúca z vizuálnej identity Techniwel.
   Bez externých knižníc, bez CDN – všetko lokálne.

   Tento súbor obsahuje spoločné, komponentové a desktopové štýly.
   Všetky bodové zlomy (media queries podľa šírky) sú v responsive.css.
   ========================================================================== */

/* --------------------------------------------------------------- 1. Fonty */
@font-face {
    font-family: 'ClashGrotesk';
    src: url('../fonts/ClashGrotesk-Variable.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* Poppins – latin + latin-ext (slovenská diakritika je v latin-ext) */
@font-face {
    font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('../fonts/pxiEyp8kv8JHgFVrJJfecnFHGPc.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212;
}
@font-face {
    font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('../fonts/pxiEyp8kv8JHgFVrJJnecnFHGPezSQ.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+1E00-1EFF, U+2020, U+20A0-20AB, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap;
    src: url('../fonts/pxiByp8kv8JHgFVrLGT9Z1xlFd2JQEk.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212;
}
@font-face {
    font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap;
    src: url('../fonts/pxiByp8kv8JHgFVrLGT9Z1JlFd2JQEl8qw.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+1E00-1EFF, U+2020, U+20A0-20AB, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
    src: url('../fonts/pxiByp8kv8JHgFVrLEj6Z1xlFd2JQEk.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212;
}
@font-face {
    font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
    src: url('../fonts/pxiByp8kv8JHgFVrLEj6Z1JlFd2JQEl8qw.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+1E00-1EFF, U+2020, U+20A0-20AB, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap;
    src: url('../fonts/pxiByp8kv8JHgFVrLCz7Z1xlFd2JQEk.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212;
}
@font-face {
    font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap;
    src: url('../fonts/pxiByp8kv8JHgFVrLCz7Z1JlFd2JQEl8qw.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+1E00-1EFF, U+2020, U+20A0-20AB, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* -------------------------------------------------------- 2. Design tokeny */
:root {
    --primary: #0F9F4D;
    --primary-dark: #0C8641;
    /* Svetlý odtieň značkovej zelenej – používa sa na tmavých podkladoch. */
    --primary-light: #6EE7A0;
    --black: #10131A;
    --grey-900: #2A2F38;
    --grey-600: #5B616C;
    --grey-400: #9AA0AA;
    --grey-200: #E4E6EA;
    --grey-100: #F1F2F4;
    --bg: #F8F8F8;
    --white: #FFFFFF;
    --danger: #C0392B;
    --success: #0F7A3D;

    --font-body: 'Poppins', system-ui, -apple-system, sans-serif;
    --font-head: 'ClashGrotesk', 'Poppins', system-ui, sans-serif;

    --wrap: 1240px;
    --gap: 1.5rem;
    --radius: 8px;
    --radius-lg: 14px;
    --shadow: 0 2px 12px rgba(16, 19, 26, .07);
    --shadow-lg: 0 12px 32px rgba(16, 19, 26, .12);
    --section-y: clamp(3rem, 6vw, 5.5rem);
}

/* ---------------------------------------------------------------- 3. Base */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--black);
    background: var(--bg);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 .75rem;
    letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

img, picture, svg { max-width: 100%; }
img { height: auto; display: block; }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: .35rem; }

strong { font-weight: 600; }

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

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 999;
    background: var(--black); color: #fff; padding: .75rem 1.25rem;
}
.skip-link:focus { left: 0; }

.kicker {
    font-size: .8125rem; font-weight: 600; letter-spacing: .12em;
    text-transform: uppercase; color: var(--primary); margin: 0 0 .5rem;
}
.kicker--light { color: var(--primary-light); }

.lead { font-size: 1.125rem; color: var(--grey-600); }

/* Ikony – veľkosť riadi CSS, farbu dedia cez currentColor */
.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.icon--xs { width: 1rem; height: 1rem; }
.icon--lg { width: 1.5rem; height: 1.5rem; }

/* Štvorcová dlaždica pod ikonu – opakuje sa vo výhodách, službách aj menu */
.icon-tile {
    display: grid; place-items: center; flex-shrink: 0;
    width: 3rem; height: 3rem;
    background: rgba(15, 159, 77, .1); color: var(--primary-dark);
    border-radius: var(--radius);
}
.icon-tile .icon { width: 1.5rem; height: 1.5rem; }

/* Odkaz so šípkou, ktorá sa pri prejdení myšou posunie */
.link-arrow {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .875rem; font-weight: 500;
}
.link-arrow .icon { transition: transform .18s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2rem, 4vw, 3.5rem); }
.section--white { background: var(--white); }
.section__head { max-width: 780px; margin-bottom: 2.5rem; }
.section__head--center { margin-inline: auto; text-align: center; }

/* ------------------------------------------------------------ 4. Tlačidlá */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .875rem 1.75rem;
    font: inherit; font-weight: 500; font-size: .9375rem;
    border: 2px solid transparent; border-radius: var(--radius);
    cursor: pointer; text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn--dark { background: var(--black); border-color: var(--black); color: #fff; }
.btn--dark:hover { background: var(--grey-900); border-color: var(--grey-900); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--grey-200); color: var(--black); }
.btn--ghost:hover { border-color: var(--black); color: var(--black); }
/* Svetlý variant obrysového tlačidla pre tmavé sekcie (hero, CTA). */
.btn--outline-light { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.btn--block { width: 100%; }
.btn--sm { padding: .625rem 1.125rem; font-size: .875rem; }

/* Skupina tlačidiel pod textom sekcie */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }
.actions--center { justify-content: center; }

/* ------------------------------------------------------------ 5. Hlavička */
.site-header { background: var(--white); position: relative; z-index: 50; }

.topbar { background: var(--black); color: #fff; font-size: .875rem; }
.topbar__inner { display: flex; gap: 1.5rem; align-items: center; padding-block: .625rem; flex-wrap: wrap; }
.topbar__link { display: inline-flex; align-items: center; gap: .45rem; color: #fff; }
.topbar__link:hover { color: #fff; opacity: .8; text-decoration: none; }

.mainnav { position: relative; border-bottom: 1px solid rgba(16, 19, 26, .1); }
.mainnav__inner { display: flex; align-items: center; gap: 1.5rem; padding-block: 1.125rem; }
.logo { display: inline-flex; flex-shrink: 0; }
.logo img { width: 166px; height: 48px; object-fit: contain; }

.mainnav__list {
    display: flex; align-items: center; gap: .125rem;
    margin: 0 0 0 auto; padding: 0; list-style: none;
}
.mainnav__item { position: relative; margin: 0; }
.mainnav__item--cta { margin-left: .625rem; }
.mainnav__link {
    display: flex; align-items: center; gap: .35rem;
    padding: .5rem .75rem; border-radius: var(--radius);
    font-size: .9375rem; font-weight: 500; color: var(--black);
    transition: color .18s ease, background-color .18s ease;
}
.mainnav__link:hover, .mainnav__link.is-active { color: var(--primary); text-decoration: none; }

/* Mega menu – rozbaľovacie menu na plnú šírku hlavičky */
.mainnav__item.has-mega { position: static; }

.has-mega > .mainnav__link::after {
    content: ''; display: block; flex-shrink: 0;
    width: .4em; height: .4em;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .2s ease;
}
.has-mega:hover > .mainnav__link,
.has-mega:focus-within > .mainnav__link { color: var(--primary); background: var(--grey-100); }
.has-mega:hover > .mainnav__link::after,
.has-mega:focus-within > .mainnav__link::after { transform: translateY(1px) rotate(-135deg); }

.mega {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
    background: var(--white);
    border-bottom: 1px solid var(--grey-200);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-mega:hover > .mega,
.has-mega:focus-within > .mega { opacity: 1; visibility: visible; transform: translateY(0); }

.mega__inner {
    display: grid; grid-template-columns: 1fr 21rem;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    padding-block: 2rem;
}
.mega__label {
    font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--grey-400); margin: 0 0 1rem;
}
.mega__list { display: grid; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.mega__list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
/* Odkazy v riadku majú rovnakú výšku, aj keď je názov radu dvojriadkový. */
.mega__list li { display: grid; margin: 0; }

.mega__link {
    display: flex; flex-wrap: wrap; align-items: center; align-content: center;
    gap: .25rem .75rem; padding: .7rem .875rem;
    border: 1px solid transparent; border-radius: var(--radius);
    color: var(--black);
    transition: background-color .16s ease, border-color .16s ease;
}
.mega__link:hover, .mega__link.is-active {
    background: var(--grey-100); border-color: var(--grey-200);
    color: var(--black); text-decoration: none;
}
.mega__link-icon {
    display: grid; place-items: center; flex-shrink: 0;
    width: 2.25rem; height: 2.25rem; border-radius: var(--radius);
    background: rgba(15, 159, 77, .1); color: var(--primary-dark);
}
.mega__link-icon .icon { width: 1.125rem; height: 1.125rem; }
.mega__link-name { flex: 1 1 auto; font-size: .9375rem; font-weight: 500; line-height: 1.35; }
.mega__link-meta { flex: 1 0 100%; font-size: .8125rem; color: var(--grey-600); }

.mega__all {
    display: inline-flex; align-items: center; gap: .4rem;
    margin-top: 1.25rem; font-size: .875rem; font-weight: 500;
}
.mega__all .icon { transition: transform .18s ease; }
.mega__all:hover .icon { transform: translateX(3px); }

.mega__preview {
    padding-left: clamp(1.5rem, 3vw, 2.5rem);
    border-left: 1px solid var(--grey-200);
}
.mega__panel { display: none; }
.mega__panel.is-active { display: block; animation: mega-in .2s ease; }
@keyframes mega-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}
.mega__panel-media {
    aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 1rem;
    background: var(--grey-100); border-radius: var(--radius-lg);
}
.mega__panel-media picture { display: block; width: 100%; height: 100%; }
.mega__panel-media img { width: 100%; height: 100%; object-fit: contain; padding: .75rem; }
.mega__panel-icon {
    display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1rem;
    background: rgba(15, 159, 77, .1); color: var(--primary-dark);
    border-radius: var(--radius);
}
.mega__panel-icon .icon { width: 1.5rem; height: 1.5rem; }
.mega__panel-title {
    font-family: var(--font-head); font-weight: 600; font-size: 1.0625rem;
    line-height: 1.3; margin: 0 0 .4rem;
}
.mega__panel-text {
    font-size: .875rem; color: var(--grey-600); margin: 0 0 .875rem;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.mega__panel-cta {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .875rem; font-weight: 500; color: var(--primary);
}

.burger {
    display: none; margin-left: auto;
    width: 44px; height: 44px; padding: 10px;
    background: none; border: 0; cursor: pointer;
}
.burger span {
    display: block; height: 2px; margin: 4px 0;
    background: var(--black); border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}

/* Mobilná zásuvka */
.drawer-overlay {
    position: fixed; inset: 0; z-index: 90;
    background: rgba(16, 19, 26, .5);
}
.drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
    width: min(340px, 88vw);
    display: flex; flex-direction: column;
    background: var(--white);
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); }
.drawer__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem; border-bottom: 1px solid var(--grey-200);
}
.drawer__head .logo img { width: 143px; height: 41px; }
.drawer__close {
    width: 40px; height: 40px; display: grid; place-items: center;
    background: none; border: 0; color: var(--black); cursor: pointer;
}
.drawer__list { list-style: none; margin: 0; padding: .5rem 0; flex: 1; }
.drawer__list > li { margin: 0; border-bottom: 1px solid var(--grey-100); }
.drawer__link, .drawer__toggle {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    padding: .9rem 1.25rem; gap: .5rem;
    font: inherit; font-size: 1rem; font-weight: 500; text-align: left;
    color: var(--black); background: none; border: 0; cursor: pointer;
}
.drawer__link:hover, .drawer__toggle:hover { color: var(--primary); text-decoration: none; }
.drawer__toggle svg { transition: transform .2s ease; flex-shrink: 0; }
.drawer__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.drawer__sub { list-style: none; margin: 0; padding: 0 0 .5rem; background: var(--grey-100); }
.drawer__sub li { margin: 0; }
.drawer__sub a { display: block; padding: .7rem 1.25rem .7rem 2rem; font-size: .9375rem; color: var(--grey-600); }
.drawer__sub a:hover { color: var(--primary); text-decoration: none; }
.drawer__foot {
    display: flex; flex-direction: column; gap: .75rem;
    padding: 1.25rem; border-top: 1px solid var(--grey-200);
}
.drawer__contact { color: var(--black); font-size: .9375rem; }

/* ------------------------------------------------------- 6. Omrvinky */
.breadcrumbs { background: var(--white); border-bottom: 1px solid var(--grey-200); }
.breadcrumbs__list {
    display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
    margin: 0; padding: .875rem 0; list-style: none;
    font-size: .8125rem;
}
.breadcrumbs__item { display: flex; align-items: center; gap: .4rem; margin: 0; }
.breadcrumbs__item a { color: var(--grey-600); }
.breadcrumbs__item a:hover { color: var(--primary); }
.breadcrumbs__item [aria-current] { color: var(--black); font-weight: 600; }
.breadcrumbs__sep { color: var(--grey-400); }

/* ------------------------------------------------------------- 7. Hero */
.hero {
    position: relative; overflow: hidden;
    background: var(--black) url('../img/cta-pozadie.jpg') center / cover no-repeat;
    background-image: image-set(url('../img/cta-pozadie.webp') type('image/webp'),
                                url('../img/cta-pozadie.jpg') type('image/jpeg'));
    color: #fff;
    padding-block: clamp(2.75rem, 5vw, 4.5rem);
}
/* Tmavý prechod drží text čitateľný a odkrýva fotografiu vpravo. */
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(100deg,
        rgba(16, 19, 26, .95) 0%,
        rgba(16, 19, 26, .9) 45%,
        rgba(16, 19, 26, .62) 100%);
}
/* Zelený nádych v značkovej farbe za produktom */
.hero::after {
    content: ''; position: absolute; top: -25%; right: -8%;
    width: 42rem; aspect-ratio: 1; pointer-events: none;
    background: radial-gradient(circle, rgba(15, 159, 77, .3), rgba(15, 159, 77, 0) 62%);
}
.hero__inner { position: relative; }
.hero__grid {
    display: grid; grid-template-columns: 1.15fr .85fr;
    gap: clamp(2rem, 4vw, 3.5rem); align-items: center;
}

.hero__kicker {
    display: inline-flex; align-items: center;
    margin: 0 0 1.25rem; padding: .45rem 1rem;
    font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--primary-light);
    background: rgba(15, 159, 77, .14);
    border: 1px solid rgba(110, 231, 160, .35); border-radius: 100px;
}
.hero__title {
    font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.06;
    letter-spacing: -.015em; text-transform: uppercase;
    margin: 0 0 1.25rem;
}
.hero__title-accent { color: var(--primary-light); }
.hero__lead {
    font-size: 1.0625rem; line-height: 1.7; max-width: 58ch;
    color: rgba(255, 255, 255, .78); margin-bottom: 2rem;
}

.hero__stats { display: flex; flex-wrap: wrap; gap: 1.25rem clamp(1.75rem, 4vw, 3rem); margin-bottom: 2rem; }
.hero__stat { margin: 0; }
.hero__stat-value {
    font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 600;
    line-height: 1.1; color: #fff; margin: 0;
}
.hero__stat-unit { margin-left: .2em; font-size: .55em; color: var(--primary-light); }
.hero__stat-label {
    margin: .35rem 0 0; max-width: 26ch;
    font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
    line-height: 1.4; color: rgba(255, 255, 255, .55);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Jednotka je svetlá fotografia – nesie ju biela karta s popiskom. */
.hero__media {
    margin: 0; max-width: 26rem; margin-inline: auto;
    background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.hero__media picture { display: block; }
.hero__media img { width: 100%; padding: 1.25rem 1.25rem 0; }
.hero__media-caption {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .625rem;
    padding: 1rem 1.25rem; margin-top: 1rem;
    border-top: 1px solid var(--grey-200); color: var(--black);
}
.hero__media-name { font-family: var(--font-head); font-weight: 600; font-size: 1.0625rem; }
.hero__media-meta { font-size: .875rem; color: var(--grey-600); }

/* Pás služieb pod hero – rýchle odkazy na súvisiace stránky */
.hero__features {
    display: grid; grid-template-columns: repeat(4, 1fr);
    list-style: none; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
    padding: clamp(1.5rem, 3vw, 2rem) 0 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero__features li { display: flex; margin: 0; }
.hero__feature {
    display: flex; align-items: center; gap: .75rem; flex: 1;
    padding-right: 1rem;
    font-size: .9375rem; font-weight: 500; line-height: 1.35;
    color: rgba(255, 255, 255, .85);
}
.hero__features li + li .hero__feature { padding-left: 1.25rem; border-left: 1px solid rgba(255, 255, 255, .12); }
.hero__feature:hover { color: #fff; text-decoration: none; }
.hero__feature-icon {
    display: grid; place-items: center; flex-shrink: 0;
    width: 2.5rem; height: 2.5rem; border-radius: var(--radius);
    background: rgba(15, 159, 77, .18); color: var(--primary-light);
    transition: background-color .18s ease;
}
.hero__feature:hover .hero__feature-icon { background: rgba(15, 159, 77, .32); }
.hero__feature-icon .icon { width: 1.25rem; height: 1.25rem; }

/* --------------------------------------------------------- 8. Mriežky */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------------------------------------------------------- 9. Karty */
.card {
    display: flex; flex-direction: column;
    background: var(--white); border: 1px solid var(--grey-200);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-lg); border-color: var(--grey-400); transform: translateY(-2px); }
.card__media { background: var(--white); aspect-ratio: 4 / 3; overflow: hidden; }
.card__media picture { display: block; width: 100%; height: 100%; }
.card__media img { width: 100%; height: 100%; object-fit: contain; padding: .75rem; }
.card__body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; gap: .5rem; }
.card__title { font-size: 1.0625rem; margin: 0; line-height: 1.3; }
.card__title a { color: var(--black); }
.card__title a:hover { color: var(--primary); text-decoration: none; }
.card__meta { font-size: .875rem; color: var(--grey-600); margin: 0; }
.card__tag {
    align-self: flex-start; margin-top: auto; padding: .25rem .625rem;
    font-size: .75rem; font-weight: 600; letter-spacing: .03em;
    background: rgba(15, 159, 77, .1); color: var(--primary-dark);
    border-radius: 100px;
}

/* Karta kategórie */
.cat-card { padding: 1.75rem; }
.cat-card__count { font-size: .8125rem; color: var(--grey-600); }
.cat-card__range {
    font-family: var(--font-head); font-size: 1.375rem; font-weight: 600;
    color: var(--primary); margin: .25rem 0 .75rem;
}
.cat-card__intro { font-size: .9375rem; color: var(--grey-600); margin-top: .75rem; }

/* Variant s náhľadom jednotky – používa sa v prehľadoch radov */
.cat-card--media { position: relative; padding: 0; }
.cat-card--media .cat-card__media {
    aspect-ratio: 16 / 10; overflow: hidden;
    background: var(--grey-100); border-bottom: 1px solid var(--grey-200);
}
.cat-card--media .cat-card__media picture { display: block; width: 100%; height: 100%; }
.cat-card--media .cat-card__media img {
    width: 100%; height: 100%; object-fit: contain; padding: 1rem;
    transition: transform .3s ease;
}
.cat-card--media:hover .cat-card__media img { transform: scale(1.04); }
.cat-card--media .cat-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.cat-card--media .cat-card__range { font-size: 1.25rem; margin: .35rem 0 .25rem; }
/* Celá karta je klikateľná – odkaz v nadpise sa roztiahne cez kartu. */
.cat-card__link::after { content: ''; position: absolute; inset: 0; }
.cat-card__cta {
    display: inline-flex; align-items: center; gap: .4rem;
    margin-top: auto; padding-top: 1.25rem;
    font-size: .875rem; font-weight: 500; color: var(--primary);
}
.cat-card__cta .icon { transition: transform .18s ease; }
.cat-card--media:hover .cat-card__cta .icon { transform: translateX(3px); }

/* Karta výhody */
.benefit {
    display: flex; flex-direction: column; padding: 1.75rem;
    background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius-lg);
    transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.benefit:hover { box-shadow: var(--shadow); border-color: var(--grey-400); transform: translateY(-2px); }
.benefit__icon { margin-bottom: 1.125rem; }
.benefit h3 { font-size: 1.125rem; margin-bottom: .5rem; }
.benefit p { font-size: .9375rem; color: var(--grey-600); margin: 0; }
.benefit .link-arrow { margin-top: auto; padding-top: 1rem; }

/* Karta oblasti použitia */
.use-card {
    display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem;
    background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius-lg);
    transition: box-shadow .2s ease, border-color .2s ease;
}
.use-card:hover { box-shadow: var(--shadow); border-color: var(--primary); }
.use-card .icon-tile { width: 2.75rem; height: 2.75rem; }
.use-card .icon-tile .icon { width: 1.375rem; height: 1.375rem; }
.use-card__text { margin: 0; font-size: .9375rem; font-weight: 500; line-height: 1.45; }

/* --------------------------------------------------- 10. Obsahové bloky */

/* Dvojstĺpec text + vizuál. Zlom je v responsive.css. */
.split {
    display: grid; grid-template-columns: 1.05fr .95fr;
    gap: clamp(2rem, 4vw, 3.5rem); align-items: center;
}
.split--top { align-items: start; }

/* Orámovaný obrázok s popiskom */
.media-frame { position: relative; margin: 0; }
.media-frame__img {
    width: 100%; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.media-frame__caption {
    margin-top: .875rem; font-size: .8125rem; color: var(--grey-600);
}

/* Chladiaci cyklus – očíslované kroky s ikonami */
.cycle {
    background: var(--white); border: 1px solid var(--grey-200);
    border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2rem);
}
.cycle__label {
    font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--grey-400); margin: 0 0 1.5rem;
}
.cycle__list { list-style: none; margin: 0; padding: 0; counter-reset: cycle; }
.cycle__step {
    position: relative; display: grid; grid-template-columns: 3rem 1fr;
    gap: 1rem; align-items: start;
    margin: 0; padding-bottom: 1.75rem; counter-increment: cycle;
}
.cycle__step:last-child { padding-bottom: 0; }
/* Spojnica naznačuje, že kroky tvoria uzavretý cyklus. */
.cycle__step:not(:last-child)::before {
    content: ''; position: absolute; left: 1.5rem; top: 3.5rem; bottom: .375rem;
    width: 2px; margin-left: -1px; background: var(--grey-200);
}
.cycle__icon {
    position: relative; display: grid; place-items: center;
    width: 3rem; height: 3rem; border-radius: 50%;
    background: rgba(15, 159, 77, .1); color: var(--primary-dark);
}
.cycle__icon .icon { width: 1.375rem; height: 1.375rem; }
.cycle__icon::after {
    content: counter(cycle);
    position: absolute; top: -.25rem; right: -.25rem;
    width: 1.25rem; height: 1.25rem; display: grid; place-items: center;
    font-family: var(--font-head); font-size: .6875rem; font-weight: 600;
    background: var(--primary); color: #fff;
    border: 2px solid var(--white); border-radius: 50%;
}
.cycle__name {
    display: block; font-family: var(--font-head); font-weight: 600;
    font-size: 1.0625rem; line-height: 1.3; margin-bottom: .15rem;
}
.cycle__text { display: block; font-size: .9375rem; color: var(--grey-600); }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 1.25rem; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding-left: 1.75rem; margin-bottom: .6rem; }
.checklist li::before {
    content: ''; position: absolute; left: .25rem; top: .55em;
    width: .5rem; height: .5rem; background: var(--primary);
    border-radius: 50%;
}

/* ---------------------------------------------- 11. Produktová stránka */
.product { padding-block: clamp(2rem, 4vw, 3.5rem); background: var(--white); }
.product__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }

.gallery__main {
    background: var(--white); border: 1px solid var(--grey-200);
    border-radius: var(--radius-lg); overflow: hidden;
}
.gallery__main img { width: 100%; height: auto; object-fit: contain; }
.gallery__thumbs { display: flex; gap: .625rem; margin-top: .75rem; flex-wrap: wrap; padding: 0; list-style: none; }
.gallery__thumbs li { margin: 0; }
.gallery__thumb {
    width: 76px; height: 76px; padding: 4px;
    background: var(--white); border: 2px solid var(--grey-200);
    border-radius: var(--radius); cursor: pointer; overflow: hidden;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumb.is-active { border-color: var(--primary); }

.product__title { margin-bottom: .5rem; }
.product__badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.badge {
    padding: .35rem .75rem; font-size: .8125rem; font-weight: 500;
    background: var(--grey-100); border-radius: 100px; color: var(--grey-900);
}
.badge--primary { background: rgba(15, 159, 77, .1); color: var(--primary-dark); font-weight: 600; }
.product__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Tabuľka parametrov */
.spec-table-wrap { overflow-x: auto; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.spec-table caption { text-align: left; font-size: .8125rem; color: var(--grey-600); padding-bottom: .5rem; }
.spec-table th, .spec-table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--grey-200); }
.spec-table th { width: 45%; font-weight: 500; color: var(--grey-600); background: var(--grey-100); }
.spec-table td { font-weight: 600; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

/* Prehľad modelov v rade – riadkové záhlavie nesie názov modelu. */
.model-table th[scope="row"] { width: 55%; background: var(--white); font-weight: 500; }

/* -------------------------------------------------------- 12. Dokumenty */
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.doc-list li { margin: 0; }
.doc {
    display: flex; align-items: center; gap: 1rem; padding: 1.125rem 1.25rem;
    background: var(--white); border: 1px solid var(--grey-200);
    border-radius: var(--radius); color: var(--black);
    transition: box-shadow .2s ease, border-color .2s ease;
}
.doc:hover { border-color: var(--primary); box-shadow: var(--shadow); text-decoration: none; color: var(--black); }
.doc__icon { flex-shrink: 0; width: 1.75rem; height: 1.75rem; color: var(--primary); }
.doc__body { flex: 1 1 auto; min-width: 0; }
.doc__action { flex-shrink: 0; color: var(--grey-400); transition: color .2s ease, transform .2s ease; }
.doc:hover .doc__action { color: var(--primary); transform: translateY(2px); }
.doc__name { font-weight: 500; font-size: .9375rem; }
.doc__meta { font-size: .8125rem; color: var(--grey-600); }

/* ------------------------------------------------------- 13. Referencie */
.ref-item { margin: 0; background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius-lg); overflow: hidden; }
.ref-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ref-item__caption { padding: 1rem 1.25rem; font-weight: 500; font-size: .9375rem; }

/* -------------------------------------------------------------- 14. FAQ */
.faq { display: grid; gap: .75rem; max-width: 860px; margin-inline: auto; }
.faq__item {
    background: var(--white); border: 1px solid var(--grey-200);
    border-radius: var(--radius); overflow: hidden;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.faq__q {
    padding: 1.125rem 1.25rem; cursor: pointer; list-style: none;
    font-family: var(--font-head); font-weight: 600; font-size: 1.0625rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    transition: background-color .18s ease;
}
.faq__q:hover { background: var(--grey-100); }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
    content: ''; flex-shrink: 0;
    width: .55em; height: .55em;
    border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
    transform: rotate(45deg) translateY(-2px);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.faq__a { padding: 0 1.25rem 1.25rem; color: var(--grey-600); }
.faq__a > span { display: block; }

/* Bez JavaScriptu drží stav natívny atribút open – otázky fungujú, len bez animácie. */
.faq:not(.faq--enhanced) .faq__item[open] { border-color: var(--primary); box-shadow: var(--shadow); }
.faq:not(.faq--enhanced) .faq__item[open] .faq__q::after { transform: rotate(-135deg) translateY(-2px); }

/*
   So skriptom sú všetky <details> otvorené a stav drží trieda is-open.
   Výška odpovede sa animuje cez mriežku (0fr → 1fr), takže sa nikde
   nepočíta pevná výška a rozbalenie funguje pri ľubovoľnej dĺžke textu.
*/
.faq--enhanced .faq__a {
    display: grid; grid-template-rows: 0fr; padding-bottom: 0;
    transition: grid-template-rows .3s cubic-bezier(.4, 0, .2, 1),
                padding-bottom .3s cubic-bezier(.4, 0, .2, 1);
}
/* Orezanie umožní riadku zmenšiť sa pod výšku obsahu až na nulu. */
.faq--enhanced .faq__a > span { overflow: hidden; }
.faq--enhanced .faq__item.is-open { border-color: var(--primary); box-shadow: var(--shadow); }
.faq--enhanced .faq__item.is-open .faq__a { grid-template-rows: 1fr; padding-bottom: 1.25rem; }
.faq--enhanced .faq__item.is-open .faq__q::after { transform: rotate(-135deg) translateY(-2px); }
.faq--enhanced .faq__item.is-open .faq__q:hover { background: transparent; }

/* --------------------------------------------------------- 15. Formulár */
.formbox {
    background: var(--white); border: 1px solid var(--grey-200);
    border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem);
}
.formbox__title { margin-bottom: .5rem; }
.formbox__lead { color: var(--grey-600); margin-bottom: 1.5rem; }

.form__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

.field { margin-bottom: 1rem; display: flex; flex-direction: column; }
.field__label { font-size: .875rem; font-weight: 500; margin-bottom: .375rem; }
.field__input {
    width: 100%; padding: .8125rem 1rem;
    font: inherit; font-size: .9375rem; color: var(--black);
    background: var(--white);
    border: 1px solid var(--grey-200); border-radius: var(--radius);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.field__input::placeholder { color: var(--grey-400); }
.field__input:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 159, 77, .15);
}
.field__input[readonly] { background: var(--grey-100); color: var(--grey-600); }
.field__input--area { resize: vertical; min-height: 140px; }
.field__input.is-invalid { border-color: var(--danger); }
.field__input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(192, 57, 43, .15); }

.field__error { display: block; min-height: 0; font-size: .8125rem; color: var(--danger); margin-top: .3rem; }
.field__error:empty { display: none; }

.req { color: var(--danger); }

.field--check { margin-top: .5rem; }
.check { display: flex; align-items: flex-start; gap: .625rem; font-size: .875rem; cursor: pointer; }
.check input { margin-top: .25rem; width: 1.05rem; height: 1.05rem; accent-color: var(--primary); flex-shrink: 0; }

.form__note { font-size: .8125rem; color: var(--grey-600); margin: .75rem 0 0; }

/* Honeypot – skryté pre používateľa, viditeľné pre boty */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert {
    padding: 1rem 1.25rem; border-radius: var(--radius);
    margin-bottom: 1.5rem; font-size: .9375rem;
    border: 1px solid transparent;
}
.alert--success { background: rgba(15, 122, 61, .08); border-color: rgba(15, 122, 61, .3); color: var(--success); }
.alert--error   { background: rgba(192, 57, 43, .07); border-color: rgba(192, 57, 43, .3); color: var(--danger); }

.notice {
    padding: 1rem 1.25rem; border-left: 3px solid var(--grey-400);
    background: var(--grey-100); border-radius: var(--radius);
    font-size: .9375rem; color: var(--grey-600);
}

/* -------------------------------------------------------- 16. Kontakt */
.contact__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.contact-info { background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius-lg); padding: 1.75rem; }
.contact-info dl { margin: 0; display: grid; gap: .875rem; }
.contact-info dt { font-size: .8125rem; color: var(--grey-600); text-transform: uppercase; letter-spacing: .06em; }
.contact-info dd { margin: .15rem 0 0; font-weight: 500; }

/* ------------------------------------------------------------ 17. CTA */
.cta {
    position: relative;
    background: var(--black) url('../img/cta-pozadie.jpg') center / cover no-repeat;
    background-image: image-set(url('../img/cta-pozadie.webp') type('image/webp'),
                                url('../img/cta-pozadie.jpg') type('image/jpeg'));
    color: #fff; text-align: center;
    padding-block: clamp(3rem, 6vw, 5rem);
}
.cta::before { content: ''; position: absolute; inset: 0; background: rgba(16, 19, 26, .68); }
.cta__inner { position: relative; max-width: 640px; }
.cta__title {
    font-family: var(--font-head); font-weight: 600; line-height: 1.15;
    font-size: clamp(1.75rem, 4vw, 2.75rem); margin: 0 0 .75rem;
}
.cta__text { color: rgba(255, 255, 255, .85); margin-bottom: 1.75rem; }
.cta__phone { margin: 1.25rem 0 0; font-size: .9375rem; color: rgba(255, 255, 255, .8); }
.cta__phone a { color: #fff; font-weight: 500; }

/* --------------------------------------------------------- 18. Pätička */
.site-footer { background: var(--black); color: rgba(255, 255, 255, .75); padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: 2rem; }

.footer__tagline { margin-top: 1rem; font-size: .875rem; max-width: 30ch; }
.footer__heading {
    font-family: var(--font-body); font-size: .8125rem; font-weight: 600;
    letter-spacing: .08em; color: #fff; margin: 0 0 1rem;
}
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li { margin-bottom: .55rem; }
.footer__links a { color: rgba(255, 255, 255, .75); font-size: .875rem; }
.footer__links a:hover { color: #fff; }
.footer__contact { font-style: normal; font-size: .875rem; }
.footer__contact a { color: rgba(255, 255, 255, .75); }
.footer__contact a:hover { color: #fff; }
.footer__contact p { margin-bottom: .75rem; }
.footer__ids { color: rgba(255, 255, 255, .55); font-size: .8125rem; }

.footer__bottom {
    display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between;
    margin-top: 2.5rem; padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .8125rem; color: rgba(255, 255, 255, .55);
}
.footer__bottom a { color: rgba(255, 255, 255, .75); }

/* ---------------------------------------------------- 19. Služby */
.service__media {
    width: 100%; aspect-ratio: 2 / 1; object-fit: cover;
    border-radius: var(--radius-lg);
}

/* ------------------------------------------------------------ 20. 404 */
.err { text-align: center; padding-block: clamp(3rem, 8vw, 6rem); }
.err__code { font-family: var(--font-head); font-size: clamp(4rem, 14vw, 8rem); line-height: 1; color: var(--primary); margin: 0; }
.err__lead { max-width: 52ch; margin-inline: auto; }
.err__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 2rem; }
.err__series { max-width: 900px; margin-inline: auto; margin-top: 3rem; text-align: left; }

/* ------------------------------------------------------- 21. Pomocné */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1.5rem; }
.mb-3 { margin-bottom: 3rem; }
.text-center { text-align: center; }
/* Nadpis nižšej úrovne dôležitosti, ktorý musí zostať sémanticky h2/h3. */
.title-sm { font-size: 1.25rem; }
.title-xs { font-size: 1.125rem; }
.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
