/* ==========================================================================
   chiller.sk – základné štýly

   Samostatná implementácia vychádzajúca z vizuálnej identity Techniwel.
   Bez externých knižníc a CDN – všetko je lokálne.

   Tento súbor obsahuje spoločné, komponentové a desktopové štýly.
   Všetky media queries sú v responsive.css.

   Obsah:
     1. fonts
     2. tokens
     3. base
     4. layout
     5. typography
     6. buttons
     7. header
     8. dropdown
     9. mobile nav
    10. breadcrumb
    11. masthead
    12. page intro
    13. grids
    14. cards
    15. content blocks
    16. product detail
    17. tables
    18. downloads
    19. projects
    20. faq
    21. forms
    22. contact
    23. footer
    24. error page
    25. helpers
   ========================================================================== */

/* fonts */
@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;
}
/* END fonts */

/* tokens */
:root {
    /* Značková zelená Techniwel */
    --brand: #0F9F4D;
    --brand-dark: #0C8641;
    --brand-light: #6EE7A0;
    --brand-tint: rgba(15, 159, 77, .1);

    /* Chladná modrá – doplnková farba webu o chladení vody */
    --accent: #1E7FB8;
    --accent-dark: #176796;
    --accent-light: #7CC6ED;
    --accent-tint: rgba(30, 127, 184, .1);

    --ink: #10131A;
    --ink-soft: #2A2F38;
    --muted: #5B616C;
    --muted-light: #9AA0AA;
    --line: #E1E5EA;
    --surface: #FFFFFF;
    --surface-alt: #F4F6F8;
    --page: #FAFBFC;
    --danger: #C0392B;
    --success: #0F7A3D;

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

    --container: 1260px;
    --gutter: 1.5rem;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 3px rgba(16, 19, 26, .06);
    --shadow: 0 4px 18px rgba(16, 19, 26, .08);
    --shadow-lg: 0 18px 44px rgba(16, 19, 26, .14);
    --block-space: clamp(3rem, 6vw, 5.5rem);
}
/* END tokens */

/* 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(--ink);
    background: var(--page);
    overflow-x: hidden;
}

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

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

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

strong { font-weight: 600; }

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

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

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

/* layout */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

.page-section { padding-block: var(--block-space); }
.page-section-tight { padding-block: clamp(2rem, 4vw, 3.25rem); }
.page-section-light { background: var(--surface); }

.section-heading { max-width: 46rem; margin-bottom: 2.5rem; }
.section-heading-center { margin-inline: auto; text-align: center; }
.section-heading > :last-child { margin-bottom: 0; }
/* END layout */

/* typography */
h1, h2, h3, h4 {
    margin: 0 0 .75rem;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.012em;
}
h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); }
h2 { font-size: clamp(1.55rem, 3.1vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.4rem); }
h4 { font-size: 1.125rem; }

.eyebrow {
    margin: 0 0 .625rem;
    font-size: .75rem; font-weight: 600; letter-spacing: .16em;
    text-transform: uppercase; color: var(--accent-dark);
}
.eyebrow-light { color: var(--accent-light); }

.intro-text { font-size: 1.0625rem; color: var(--muted); }

.heading-medium { font-size: 1.375rem; }
.heading-small { font-size: 1.1875rem; }

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

/* Dlaždica pod ikonou – opakuje sa vo výhodách aj v aplikáciách */
.icon-badge {
    display: grid; place-items: center; flex-shrink: 0;
    width: 2.875rem; height: 2.875rem;
    background: var(--accent-tint); color: var(--accent-dark);
    border-radius: var(--radius);
}
.icon-badge .icon { width: 1.5rem; height: 1.5rem; }

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

/* buttons */
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .8125rem 1.625rem;
    font: inherit; font-size: .9375rem; font-weight: 500;
    border: 1px solid transparent; border-radius: var(--radius);
    cursor: pointer; text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.button:hover { text-decoration: none; }

.button-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.button-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

.button-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.button-dark:hover { background: var(--ink-soft); border-color: var(--ink-soft); color: #fff; }

.button-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.button-outline:hover { border-color: var(--accent); color: var(--accent-dark); }

/* Svetlý variant pre tmavé sekcie (masthead, kontaktný pás) */
.button-light { background: transparent; border-color: rgba(255, 255, 255, .4); color: #fff; }
.button-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

.button-block { width: 100%; }
.button-small { padding: .5625rem 1.0625rem; font-size: .875rem; }

.button-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.button-row-center { justify-content: center; }
/* END buttons */

/* header */
.site-header { position: relative; z-index: 50; background: var(--surface); }

.utility-bar {
    background: var(--ink); color: rgba(255, 255, 255, .8);
    font-size: .8125rem;
}
.utility-bar-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem 1.5rem; flex-wrap: wrap;
    padding-block: .5625rem;
}
.utility-claim {
    margin: 0;
    letter-spacing: .06em; text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
}
.utility-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.utility-link { display: inline-flex; align-items: center; gap: .4rem; color: #fff; }
.utility-link:hover { color: var(--accent-light); text-decoration: none; }

.main-nav { position: relative; border-bottom: 1px solid var(--line); }
.main-nav-inner { display: flex; align-items: center; gap: 1.5rem; padding-block: 1rem; }

.brand-logo { display: inline-flex; flex-shrink: 0; }
.brand-logo img { width: 166px; height: 48px; object-fit: contain; }

.nav-list {
    display: flex; align-items: center; gap: .25rem;
    margin: 0 0 0 auto; padding: 0; list-style: none;
}
.nav-item { position: relative; margin: 0; }
.nav-item-action { margin-left: .75rem; }

.nav-link {
    display: flex; align-items: center; gap: .35rem;
    padding: .5rem .75rem;
    font-size: .9375rem; font-weight: 500; color: var(--ink);
    border-bottom: 2px solid transparent;
    transition: color .18s ease, border-color .18s ease;
}
.nav-link:hover, .nav-link.is-active {
    color: var(--accent-dark); border-bottom-color: var(--accent);
    text-decoration: none;
}

.nav-toggle {
    display: none; margin-left: auto;
    width: 44px; height: 44px; padding: 10px;
    background: none; border: 0; cursor: pointer;
}
.nav-toggle span {
    display: block; height: 2px; margin: 4px 0;
    background: var(--ink); border-radius: 2px;
}
/* END header */

/* dropdown */
.nav-item.has-dropdown { position: static; }

.has-dropdown > .nav-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-dropdown:hover > .nav-link,
.has-dropdown:focus-within > .nav-link {
    color: var(--accent-dark); border-bottom-color: var(--accent);
}
.has-dropdown:hover > .nav-link::after,
.has-dropdown:focus-within > .nav-link::after { transform: translateY(1px) rotate(-135deg); }

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

.dropdown-inner {
    display: grid; grid-template-columns: 1fr 20rem;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    padding-block: 1.875rem;
}
.dropdown-label {
    margin: 0 0 1rem;
    font-size: .75rem; font-weight: 600; letter-spacing: .14em;
    text-transform: uppercase; color: var(--muted-light);
}
.dropdown-list { display: grid; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.dropdown-list-split { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
/* Odkazy v riadku majú rovnakú výšku aj pri dvojriadkovom názve radu. */
.dropdown-list li { display: grid; margin: 0; }

.dropdown-link {
    display: flex; flex-wrap: wrap; align-items: center; align-content: center;
    gap: .25rem .75rem; padding: .6875rem .875rem;
    color: var(--ink);
    border-left: 2px solid transparent; border-radius: 0 var(--radius) var(--radius) 0;
    transition: background-color .16s ease, border-color .16s ease;
}
.dropdown-link:hover, .dropdown-link.is-active {
    background: var(--surface-alt); border-left-color: var(--accent);
    color: var(--ink); text-decoration: none;
}
.dropdown-link-icon {
    display: grid; place-items: center; flex-shrink: 0;
    width: 2.25rem; height: 2.25rem;
    background: var(--accent-tint); color: var(--accent-dark);
    border-radius: var(--radius-sm);
}
.dropdown-link-icon .icon { width: 1.125rem; height: 1.125rem; }
.dropdown-link-name { flex: 1 1 auto; font-size: .9375rem; font-weight: 500; line-height: 1.35; }
.dropdown-link-meta { flex: 1 0 100%; font-size: .8125rem; color: var(--muted); }

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

.dropdown-preview {
    padding-left: clamp(1.5rem, 3vw, 2.5rem);
    border-left: 1px solid var(--line);
}
.preview-panel { display: none; }
.preview-panel.is-active { display: block; animation: preview-in .2s ease; }

@keyframes preview-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

.preview-media {
    margin-bottom: 1rem; aspect-ratio: 4 / 3; overflow: hidden;
    background: var(--surface-alt); border-radius: var(--radius);
}
.preview-media picture { display: block; width: 100%; height: 100%; }
.preview-media img { width: 100%; height: 100%; padding: .75rem; object-fit: contain; }
.preview-icon {
    display: grid; place-items: center;
    width: 2.875rem; height: 2.875rem; margin-bottom: 1rem;
    background: var(--accent-tint); color: var(--accent-dark);
    border-radius: var(--radius);
}
.preview-icon .icon { width: 1.5rem; height: 1.5rem; }
.preview-title {
    margin: 0 0 .4rem;
    font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; line-height: 1.3;
}
.preview-text {
    display: -webkit-box; overflow: hidden;
    margin: 0 0 .875rem;
    font-size: .875rem; color: var(--muted);
    -webkit-line-clamp: 4; -webkit-box-orient: vertical;
}
.preview-cta {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .875rem; font-weight: 500; color: var(--accent-dark);
}
/* END dropdown */

/* mobile nav */
.mobile-nav-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(16, 19, 26, .5); }

.mobile-nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
    display: flex; flex-direction: column;
    width: min(340px, 88vw); overflow-y: auto;
    background: var(--surface);
    transform: translateX(100%);
    transition: transform .25s ease;
}
.mobile-nav.is-open { transform: translateX(0); }

.mobile-nav-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.125rem 1.25rem; border-bottom: 1px solid var(--line);
}
.mobile-nav-head .brand-logo img { width: 143px; height: 41px; }
.mobile-nav-close {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    background: none; border: 0; color: var(--ink); cursor: pointer;
}

.mobile-nav-list { flex: 1; margin: 0; padding: .5rem 0; list-style: none; }
.mobile-nav-list > li { margin: 0; border-bottom: 1px solid var(--surface-alt); }

.mobile-nav-link, .mobile-nav-toggle {
    display: flex; align-items: center; justify-content: space-between;
    gap: .5rem; width: 100%; padding: .875rem 1.25rem;
    font: inherit; font-size: 1rem; font-weight: 500; text-align: left;
    color: var(--ink); background: none; border: 0; cursor: pointer;
}
.mobile-nav-link:hover, .mobile-nav-toggle:hover { color: var(--accent-dark); text-decoration: none; }
.mobile-nav-toggle .icon { transition: transform .2s ease; }
.mobile-nav-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.mobile-nav-sub { margin: 0; padding: 0 0 .5rem; list-style: none; background: var(--surface-alt); }
.mobile-nav-sub li { margin: 0; }
.mobile-nav-sub a {
    display: block; padding: .6875rem 1.25rem .6875rem 2rem;
    font-size: .9375rem; color: var(--muted);
}
.mobile-nav-sub a:hover { color: var(--accent-dark); text-decoration: none; }

.mobile-nav-foot {
    display: flex; flex-direction: column; gap: .75rem;
    padding: 1.25rem; border-top: 1px solid var(--line);
}
.mobile-nav-contact { color: var(--ink); font-size: .9375rem; }
/* END mobile nav */

/* breadcrumb */
.breadcrumb-bar { background: var(--surface); border-bottom: 1px solid var(--line); }
.breadcrumb-list {
    display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
    margin: 0; padding: .8125rem 0; list-style: none;
    font-size: .8125rem;
}
.breadcrumb-item { display: flex; align-items: center; gap: .4rem; margin: 0; }
.breadcrumb-item a { color: var(--muted); }
.breadcrumb-item a:hover { color: var(--accent-dark); }
.breadcrumb-item [aria-current] { color: var(--ink); font-weight: 600; }
.breadcrumb-divider { color: var(--muted-light); }
/* END breadcrumb */

/* masthead */
.masthead {
    position: relative; overflow: hidden;
    padding-block: clamp(2.75rem, 5vw, 4.25rem);
    background: var(--ink) 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;
}
/* Tmavý prechod drží text čitateľný a odkrýva fotografiu vpravo. */
.masthead::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(104deg,
        rgba(16, 19, 26, .96) 0%,
        rgba(16, 19, 26, .9) 48%,
        rgba(16, 19, 26, .6) 100%);
}
/* Chladný modrý nádych za jednotkou */
.masthead::after {
    content: ''; position: absolute; top: -22%; right: -6%;
    width: 40rem; aspect-ratio: 1; pointer-events: none;
    background: radial-gradient(circle, rgba(30, 127, 184, .34), rgba(30, 127, 184, 0) 64%);
}
.masthead-inner { position: relative; }
.masthead-grid {
    display: grid; grid-template-columns: 1.12fr .88fr;
    gap: clamp(2rem, 4vw, 3.5rem); align-items: center;
}

.masthead-eyebrow {
    display: inline-flex; align-items: center;
    margin: 0 0 1.125rem; padding: .4375rem 1rem;
    font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent-light);
    background: rgba(30, 127, 184, .16);
    border: 1px solid rgba(124, 198, 237, .35); border-radius: 100px;
}
.masthead-title {
    margin: 0 0 1.125rem;
    font-size: clamp(2.1rem, 4.8vw, 3.35rem); font-weight: 700;
    line-height: 1.07; letter-spacing: -.02em;
}
.masthead-title-accent { display: block; color: var(--accent-light); }
.masthead-lead {
    max-width: 56ch; margin-bottom: 1.875rem;
    font-size: 1.0625rem; line-height: 1.7; color: rgba(255, 255, 255, .78);
}
.masthead-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Čísla katalógu pod tlačidlami – oddelené tenkou linkou */
.masthead-stats {
    display: flex; flex-wrap: wrap; gap: 1.25rem clamp(1.5rem, 3vw, 2.75rem);
    margin: 2.25rem 0 0; padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, .16);
}
.masthead-stat { margin: 0; }
.masthead-stat-value {
    margin: 0;
    font-family: var(--font-display); font-size: clamp(1.5rem, 2.8vw, 2.125rem);
    font-weight: 600; line-height: 1.1; color: #fff;
}
.masthead-stat-unit { margin-left: .2em; font-size: .55em; color: var(--accent-light); }
.masthead-stat-label {
    max-width: 24ch; margin: .3rem 0 0;
    font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
    line-height: 1.4; color: rgba(255, 255, 255, .55);
}

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

/* Pás služieb pod hlavným panelom */
.masthead-services {
    display: grid; grid-template-columns: repeat(4, 1fr);
    margin: clamp(2.5rem, 5vw, 3.25rem) 0 0;
    padding: clamp(1.5rem, 3vw, 1.875rem) 0 0;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, .14);
}
.masthead-services li { display: flex; margin: 0; }
.masthead-service {
    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);
}
.masthead-services li + li .masthead-service {
    padding-left: 1.25rem; border-left: 1px solid rgba(255, 255, 255, .12);
}
.masthead-service:hover { color: #fff; text-decoration: none; }
.masthead-service-icon {
    display: grid; place-items: center; flex-shrink: 0;
    width: 2.5rem; height: 2.5rem;
    background: rgba(30, 127, 184, .2); color: var(--accent-light);
    border-radius: var(--radius);
    transition: background-color .18s ease;
}
.masthead-service:hover .masthead-service-icon { background: rgba(30, 127, 184, .34); }
.masthead-service-icon .icon { width: 1.25rem; height: 1.25rem; }
/* END masthead */

/* page intro */
.page-intro {
    padding-block: clamp(2.25rem, 4.5vw, 3.5rem);
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
    border-bottom: 1px solid var(--line);
}
.page-intro h1 { max-width: 24ch; }
.page-intro .intro-text { max-width: 62ch; }

.page-intro-meta {
    display: flex; flex-wrap: wrap; gap: .5rem;
    margin: 1.25rem 0 0; padding: 0; list-style: none;
}
.page-intro-meta li {
    margin: 0; padding: .375rem .875rem;
    font-size: .8125rem; font-weight: 500; color: var(--ink-soft);
    background: var(--surface); border: 1px solid var(--line); border-radius: 100px;
}
/* END page intro */

/* grids */
.card-grid { display: grid; gap: var(--gutter); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
/* END grids */

/* cards */
.product-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.product-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.product-card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.product-card-media picture { display: block; width: 100%; height: 100%; }
.product-card-media img { width: 100%; height: 100%; padding: .75rem; object-fit: contain; }
.product-card-body {
    display: flex; flex-direction: column; flex: 1; gap: .5rem;
    padding: 1.25rem;
    border-top: 1px solid var(--line);
}
.product-card-title { margin: 0; font-size: 1.0625rem; line-height: 1.3; }
.product-card-title a { color: var(--ink); }
.product-card-title a:hover { color: var(--accent-dark); text-decoration: none; }
.product-card-meta { margin: 0; font-size: .875rem; color: var(--muted); }
.product-card-power {
    align-self: flex-start; margin-top: auto; padding: .25rem .6875rem;
    font-size: .75rem; font-weight: 600; letter-spacing: .03em;
    background: var(--brand-tint); color: var(--brand-dark);
    border-radius: 100px;
}

/* Karta výkonového radu */
.series-card {
    position: relative;
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.series-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.series-card-media {
    aspect-ratio: 16 / 10; overflow: hidden;
    background: var(--surface-alt); border-bottom: 1px solid var(--line);
}
.series-card-media picture { display: block; width: 100%; height: 100%; }
.series-card-media img {
    width: 100%; height: 100%; padding: 1rem; object-fit: contain;
    transition: transform .3s ease;
}
.series-card:hover .series-card-media img { transform: scale(1.04); }
.series-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.series-card-plain .series-card-body { padding: 1.625rem; }
.series-card-title { margin: 0; font-size: 1.0625rem; line-height: 1.35; }
.series-card-title a { color: var(--ink); }
.series-card-title a:hover { color: var(--accent-dark); text-decoration: none; }
/* Celá karta je klikateľná – odkaz v nadpise sa roztiahne cez kartu. */
.series-card-link::after { content: ''; position: absolute; inset: 0; }
.series-card-range {
    margin: .5rem 0 .25rem;
    font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
    color: var(--accent-dark);
}
.series-card-count { margin: 0; font-size: .8125rem; color: var(--muted); }
.series-card-intro { margin: .75rem 0 0; font-size: .9375rem; color: var(--muted); }
.series-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(--accent-dark);
}
.series-card-cta .icon { transition: transform .18s ease; }
.series-card:hover .series-card-cta .icon { transform: translateX(3px); }

/* Karta výhody */
.feature-card {
    display: flex; flex-direction: column;
    padding: 1.75rem;
    background: var(--surface); border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    transition: box-shadow .2s ease;
}
.feature-card:hover { box-shadow: var(--shadow); }
.feature-card .icon-badge { margin-bottom: 1.125rem; }
.feature-card h3 { margin-bottom: .5rem; font-size: 1.125rem; }
.feature-card p { margin: 0; font-size: .9375rem; color: var(--muted); }
.feature-card .arrow-link { margin-top: auto; padding-top: 1rem; }

/* Karta oblasti použitia */
.application-card {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.1875rem 1.375rem;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.application-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.application-card .icon-badge { width: 2.625rem; height: 2.625rem; }
.application-card .icon-badge .icon { width: 1.375rem; height: 1.375rem; }
.application-card-text { margin: 0; font-size: .9375rem; font-weight: 500; line-height: 1.45; }
/* END cards */

/* content blocks */
.text-media {
    display: grid; grid-template-columns: 1.05fr .95fr;
    gap: clamp(2rem, 4vw, 3.5rem); align-items: center;
}
.text-media-top { align-items: start; }

.article-body { max-width: 70ch; }
.article-body h2 { margin-top: 2.5rem; }
.article-body h3 { margin-top: 1.75rem; }
.article-body > :first-child { margin-top: 0; }

.framed-image { margin: 0; }
.framed-image picture { display: block; }
.framed-image img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.framed-image-caption { margin-top: .875rem; font-size: .8125rem; color: var(--muted); }

/* Chladiaci okruh – očíslované kroky s ikonami */
.circuit {
    padding: clamp(1.5rem, 3vw, 2rem);
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}
.circuit-label {
    margin: 0 0 1.5rem;
    font-size: .75rem; font-weight: 600; letter-spacing: .14em;
    text-transform: uppercase; color: var(--muted-light);
}
.circuit-list { margin: 0; padding: 0; list-style: none; counter-reset: circuit; }
.circuit-step {
    position: relative;
    display: grid; grid-template-columns: 2.875rem 1fr; gap: 1rem; align-items: start;
    margin: 0; padding-bottom: 1.75rem; counter-increment: circuit;
}
.circuit-step:last-child { padding-bottom: 0; }
/* Spojnica naznačuje, že kroky tvoria uzavretý cyklus. */
.circuit-step:not(:last-child)::before {
    content: ''; position: absolute; top: 3.375rem; bottom: .375rem; left: 1.4375rem;
    width: 2px; margin-left: -1px; background: var(--line);
}
.circuit-icon {
    position: relative;
    display: grid; place-items: center;
    width: 2.875rem; height: 2.875rem;
    background: var(--accent-tint); color: var(--accent-dark);
    border-radius: 50%;
}
.circuit-icon .icon { width: 1.375rem; height: 1.375rem; }
.circuit-icon::after {
    content: counter(circuit);
    position: absolute; top: -.25rem; right: -.25rem;
    display: grid; place-items: center;
    width: 1.25rem; height: 1.25rem;
    font-family: var(--font-display); font-size: .6875rem; font-weight: 600;
    background: var(--accent); color: #fff;
    border: 2px solid var(--surface); border-radius: 50%;
}
.circuit-name {
    display: block; margin-bottom: .15rem;
    font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; line-height: 1.3;
}
.circuit-text { display: block; font-size: .9375rem; color: var(--muted); }

.tick-list { margin: 0; padding: 0; list-style: none; }
.tick-list li { position: relative; margin-bottom: .6rem; padding-left: 1.625rem; }
.tick-list li::before {
    content: ''; position: absolute; top: .5em; left: .1875rem;
    width: .625rem; height: .625rem;
    background: var(--accent-tint);
    border: 2px solid var(--accent); border-radius: 50%;
}

.callout {
    padding: clamp(1.375rem, 3vw, 1.875rem);
    background: var(--surface); border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
}
.callout .heading-small { margin-bottom: 1rem; }

.model-block { margin-bottom: 3rem; }
.model-block:last-child { margin-bottom: 0; }
.model-block .heading-medium { margin-bottom: 1rem; }
/* END content blocks */

/* product detail */
.product-detail { padding-block: clamp(2rem, 4vw, 3.25rem); background: var(--surface); }
.product-detail-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 3.5rem); align-items: start;
}

.product-gallery-main {
    overflow: hidden;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}
.product-gallery-main img { width: 100%; height: auto; object-fit: contain; }
.product-gallery-thumbs {
    display: flex; flex-wrap: wrap; gap: .625rem;
    margin-top: .75rem; padding: 0; list-style: none;
}
.product-gallery-thumbs li { margin: 0; }
.product-gallery-thumb {
    width: 76px; height: 76px; padding: 4px; overflow: hidden;
    background: var(--surface); border: 2px solid var(--line);
    border-radius: var(--radius-sm); cursor: pointer;
}
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-gallery-thumb.is-active { border-color: var(--accent); }

.product-detail-title { margin-bottom: .625rem; }
.product-detail-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.product-detail-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.tag {
    padding: .3125rem .75rem;
    font-size: .8125rem; font-weight: 500; color: var(--ink-soft);
    background: var(--surface-alt); border: 1px solid var(--line); border-radius: 100px;
}
.tag-primary {
    font-weight: 600; color: var(--brand-dark);
    background: var(--brand-tint); border-color: transparent;
}
/* END product detail */

/* tables */
.table-scroll { overflow-x: auto; }

.data-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.data-table caption {
    padding-bottom: .5rem; text-align: left;
    font-size: .8125rem; color: var(--muted);
}
.data-table th, .data-table td {
    padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--line);
}
.data-table th { width: 45%; font-weight: 500; color: var(--muted); background: var(--surface-alt); }
.data-table td { font-weight: 600; }
.data-table tr:last-child th, .data-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%; font-weight: 500; background: var(--surface); }
.model-table thead th { background: var(--surface-alt); color: var(--ink-soft); font-weight: 600; }
/* END tables */

/* downloads */
.download-list { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.download-list li { margin: 0; }

.download-item {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.0625rem 1.25rem;
    color: var(--ink);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.download-item:hover {
    color: var(--ink); border-color: var(--accent);
    box-shadow: var(--shadow-sm); text-decoration: none;
}
.download-icon { flex-shrink: 0; width: 1.75rem; height: 1.75rem; color: var(--accent); }
.download-body { flex: 1 1 auto; min-width: 0; }
.download-name { font-size: .9375rem; font-weight: 500; }
.download-meta { font-size: .8125rem; color: var(--muted); }
.download-action {
    flex-shrink: 0; color: var(--muted-light);
    transition: color .2s ease, transform .2s ease;
}
.download-item:hover .download-action { color: var(--accent); transform: translateY(2px); }
/* END downloads */

/* projects */
.project-card {
    margin: 0; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.project-card picture { display: block; }
.project-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.project-card-caption { padding: 1rem 1.25rem; font-size: .9375rem; font-weight: 500; }
/* END projects */

/* faq */
.faq-list { display: grid; gap: .75rem; max-width: 54rem; margin-inline: auto; }
.faq-item {
    overflow: hidden;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    transition: border-color .25s ease, box-shadow .25s ease;
}
.faq-question {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.0625rem 1.25rem;
    font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600;
    list-style: none; cursor: pointer;
    transition: background-color .18s ease;
}
.faq-question:hover { background: var(--surface-alt); }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
    content: ''; flex-shrink: 0;
    width: .55em; height: .55em;
    border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
    transform: rotate(45deg) translateY(-2px);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.faq-answer { padding: 0 1.25rem 1.25rem; color: var(--muted); }
.faq-answer > span { display: block; }

/* Bez JavaScriptu drží stav natívny atribút open – otázky fungujú, len bez animácie. */
.faq-list:not(.faq-list-enhanced) .faq-item[open] { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.faq-list:not(.faq-list-enhanced) .faq-item[open] .faq-question::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-list-enhanced .faq-answer {
    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-list-enhanced .faq-answer > span { overflow: hidden; }
.faq-list-enhanced .faq-item.is-open { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.faq-list-enhanced .faq-item.is-open .faq-answer { grid-template-rows: 1fr; padding-bottom: 1.25rem; }
.faq-list-enhanced .faq-item.is-open .faq-question::after { transform: rotate(-135deg) translateY(-2px); }
.faq-list-enhanced .faq-item.is-open .faq-question:hover { background: transparent; }
/* END faq */

/* forms */
.form-panel {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.form-panel-title { margin-bottom: .5rem; }
.form-panel-intro { margin-bottom: 1.5rem; color: var(--muted); }

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

.form-field { display: flex; flex-direction: column; margin-bottom: 1rem; }
.form-label { margin-bottom: .375rem; font-size: .875rem; font-weight: 500; }

.form-input {
    width: 100%; padding: .78125rem 1rem;
    font: inherit; font-size: .9375rem; color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.form-input::placeholder { color: var(--muted-light); }
.form-input:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(30, 127, 184, .16);
}
.form-input[readonly] { background: var(--surface-alt); color: var(--muted); }
.form-input.is-invalid { border-color: var(--danger); }
.form-input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(192, 57, 43, .15); }
.form-textarea { min-height: 140px; resize: vertical; }

.form-error { display: block; margin-top: .3rem; font-size: .8125rem; color: var(--danger); }
.form-error:empty { display: none; }

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

.required-mark { color: var(--danger); }
.form-note { margin: .75rem 0 0; font-size: .8125rem; color: var(--muted); }

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

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

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

.contact-band {
    position: relative;
    padding-block: clamp(2.75rem, 5vw, 4rem);
    background: var(--ink) 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;
}
.contact-band::before { content: ''; position: absolute; inset: 0; background: rgba(16, 19, 26, .74); }
.contact-band-inner {
    position: relative;
    display: grid; grid-template-columns: 1.4fr .6fr;
    gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
}
.contact-band-text p { color: rgba(255, 255, 255, .82); }
.contact-band-title { margin-bottom: .75rem; }
.contact-band-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; }
/* END contact */

/* footer */
.site-footer {
    padding-block: clamp(2.5rem, 5vw, 3.75rem) 1.5rem;
    background: var(--ink); color: rgba(255, 255, 255, .75);
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 2rem; }

.footer-tagline { margin-top: 1rem; max-width: 32ch; font-size: .875rem; }
.footer-heading {
    margin: 0 0 1rem;
    font-family: var(--font-body); font-size: .8125rem; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase; color: #fff;
}
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { font-size: .875rem; color: rgba(255, 255, 255, .75); }
.footer-links a:hover { color: var(--accent-light); }

.footer-contact { font-style: normal; font-size: .875rem; }
.footer-contact p { margin-bottom: .75rem; }
.footer-contact a { color: rgba(255, 255, 255, .75); }
.footer-contact a:hover { color: var(--accent-light); }
.footer-ids { font-size: .8125rem; color: rgba(255, 255, 255, .55); }

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

/* services */
.service-image { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
/* END services */

/* error page */
.error-page { padding-block: clamp(3rem, 8vw, 5.5rem); text-align: center; }
.error-code {
    margin: 0;
    font-family: var(--font-display); font-size: clamp(4rem, 13vw, 7.5rem);
    line-height: 1; color: var(--accent);
}
.error-text { max-width: 52ch; margin-inline: auto; margin-bottom: 2rem; }
.error-series { max-width: 56rem; margin-inline: auto; margin-top: 3rem; text-align: left; }
/* END error page */

/* helpers */
/* Pri otvorenom mobilnom menu sa stránka pod ním neposúva. */
.is-menu-open { overflow: hidden; }

.space-top-2 { margin-top: 1.5rem; }
.space-top-3 { margin-top: 2rem; }
.text-center { text-align: center; }
.visually-hidden {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; white-space: nowrap; border: 0; clip: rect(0 0 0 0);
}
/* END helpers */
