/***** GLOBAL *****/

/* tokens */
:root {
    --main-color: #1c1615; /* tmavé plochy: pätička, CTA boxy; červená značky je --accent-color #be2b22 */
    --main-text-color: #ffffff;
    --second-color: #ffffff;
    --second-text-color: #1c1615;
    --third-color: #f9f9f9;
    --third-text-color: #1c1615;
    --hero-color: #f9f9f9; /* vrch stránky (hero a hlavičky podstránok), jemne sivá */
    --hero-gradient: linear-gradient(120deg, #303030 0%, #1c1c1c 60%, #090909 100%);
    --accent-color: #be2b22;
    --accent-text-color: #ffffff;
    --accent-ink: #a3241c; /* tmavší akcent pre text na bielom (kontrast 7 : 1) */
    --accent-light: #ec9d97; /* akcent na tmavom pozadí (kontrast 7,5 : 1 na --main-color) */

    --body-color: #ffffff;
    --text-color: #57504e;
    --heading-color: #1c1615;
    --muted-color: #6f6866;
    --success-color: #146c34;
    --success-bg: #e7f6ec;
    --error-color: #a12121;
    --error-bg: #fdecec;
    --border-color: rgba(28, 22, 21, 0.11);
    --overlay: linear-gradient(90deg, rgba(20, 15, 14, 0.84) 0%, rgba(20, 15, 14, 0.5) 55%, rgba(20, 15, 14, 0.2) 100%);

    --body-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --heading-font: var(--body-font);

    --radius-sm: 4px;
    --radius: 6px;
    --radius-lg: 10px;
    --radius-pill: 4px;
    --radius-btn: 5px;
    --radius-icon: 4px;
    --shadow: 0 18px 44px rgba(28, 22, 21, 0.1);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --header-height: 106px;
    --section-space: clamp(72px, 9vw, 120px);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
    font-family: var(--body-font);
    font-size: 17px;
    line-height: 1.68;
    color: var(--text-color);
    background: var(--body-color);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .heading {
    font-family: var(--heading-font);
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 4vw, 3.125rem); }
h2 { font-size: clamp(1.875rem, 3vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); }

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: var(--accent-color);
    color: var(--accent-text-color);
}

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

.container {
    padding-left: 25px;
    padding-right: 25px;
}

main section {
    padding: var(--section-space) 0;
}

.lead {
    font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
    line-height: 1.55;
    font-weight: 400;
    color: var(--heading-color);
}

/* skip link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 2000;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    background: var(--main-color);
    color: var(--main-text-color);
}

.skip-link:focus {
    top: 16px;
}

/* eyebrow – štvorček ako dlaždica */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-ink);
}

.eyebrow::before {
    content: "";
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background: currentColor; /* farba podľa textu, viditeľná aj na červenom */
}

.eyebrow.light {
    color: var(--main-text-color);
}

/* zvýraznené slovo v nadpise: <span class="t-color">…</span> */
.t-color {
    color: var(--accent-color);
}

/* text link – bez šípky, podčiarknutý */
.text-link {
    font-weight: 600;
    color: var(--heading-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
    text-underline-offset: 4px;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.text-link:hover {
    color: var(--accent-ink);
    text-decoration-color: currentColor;
}

/* buttons – bez ikon, paddingy v em, pri hoveri prebehne lesk (--btn-shine) */
.t-btn {
    --btn-shine: rgba(255, 255, 255, 0.42);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    padding: 0.95em 1.85em;
    border: 1px solid transparent;
    border-radius: var(--radius-btn);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.t-btn::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    width: 45%;
    background: linear-gradient(105deg, transparent 0%, var(--btn-shine) 50%, transparent 100%);
    transform: translateX(-130%) skewX(-20deg);
    pointer-events: none;
}

.t-btn:hover::before {
    transform: translateX(260%) skewX(-20deg);
    transition: transform 0.75s var(--ease);
}

.t-btn:active {
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.18);
}

/* červené */
.t-btn.theme {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--accent-text-color);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--accent-color) 22%, transparent);
}

.t-btn.theme:hover {
    background: color-mix(in srgb, var(--accent-color) 88%, black);
    border-color: color-mix(in srgb, var(--accent-color) 88%, black);
    box-shadow: 0 10px 26px color-mix(in srgb, var(--accent-color) 32%, transparent);
}

/* biele (na tmavom) */
.t-btn.theme2 {
    --btn-shine: color-mix(in srgb, var(--accent-color) 18%, transparent);
    background: var(--second-color);
    border-color: var(--second-color);
    color: var(--second-text-color);
}

.t-btn.theme2:hover {
    background: var(--third-color);
}

/* čierne */
.t-btn.theme3 {
    --btn-shine: rgba(255, 255, 255, 0.24);
    background: var(--heading-color);
    border-color: var(--heading-color);
    color: var(--main-text-color);
}

.t-btn.theme3:hover {
    background: color-mix(in srgb, var(--heading-color) 86%, white);
    border-color: color-mix(in srgb, var(--heading-color) 86%, white);
}

/* obrys (na tmavom) */
.t-btn.outline {
    --btn-shine: rgba(255, 255, 255, 0.22);
    border-color: color-mix(in srgb, var(--main-text-color) 55%, transparent);
    color: var(--main-text-color);
}

.t-btn.outline:hover {
    background: color-mix(in srgb, var(--main-text-color) 10%, transparent);
    border-color: var(--main-text-color);
}

@media (prefers-reduced-motion: reduce) {
    .t-btn::before {
        display: none;
    }
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* check list */
.check-list {
    display: grid;
    gap: 12px;
    margin: 24px 0 32px;
}

.check-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.check-list svg {
    flex: none;
    width: 24px;
    height: 24px;
    padding: 4px;
    border-radius: var(--radius-icon);
    background: var(--accent-color);
    color: var(--accent-text-color);
    margin-top: 2px;
}

/* section head */
.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(36px, 4vw, 56px);
}

.section-head .heading {
    margin-bottom: 0;
    max-width: 720px;
}

.section-head > .text {
    max-width: 440px;
}

.section-head.center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-head.center .text {
    max-width: 620px;
    margin-top: 6px;
}

/* image placeholder (kým fotka nie je dodaná) */
.media-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    min-height: 200px;
    background:
        radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--second-color) 70%, transparent), transparent 60%),
        linear-gradient(135deg, color-mix(in srgb, var(--main-color) 5%, var(--third-color)), color-mix(in srgb, var(--main-color) 12%, var(--third-color)));
    color: var(--muted-color);
}

.media-placeholder svg {
    width: 30px;
    height: 30px;
    opacity: 0.55;
}

.media-placeholder .code {
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--second-color) 75%, transparent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

/* animations */
@media (prefers-reduced-motion: no-preference) {
    .js [data-animate] {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity 0.8s var(--ease) var(--delay, 0s), transform 0.8s var(--ease) var(--delay, 0s);
    }

    .js [data-animate="zoom"] {
        transform: scale(0.96);
    }

    .js [data-animate].is-visible {
        opacity: 1;
        transform: none;
    }

    .load-in {
        animation: load-in 0.9s var(--ease) both;
    }

    .load-in:nth-child(2) { animation-delay: 0.1s; }
    .load-in:nth-child(3) { animation-delay: 0.2s; }
    .load-in:nth-child(4) { animation-delay: 0.3s; }
    .load-in:nth-child(5) { animation-delay: 0.4s; }
}

@keyframes load-in {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 16px;
    }

    .heading br {
        display: none;
    }
}

/***** HEADER *****/

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding-top: 14px;
    pointer-events: none;
}

/* biela lišta na šírku containeru */
.header .bar {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto; /* menu vpravo */
    align-items: center;
    gap: 24px;
    min-height: calc(var(--header-height) - 14px);
    padding: 0 20px 0 34px;
    border-radius: var(--radius-lg);
    background: var(--second-color);
    box-shadow: 0 6px 24px rgba(28, 22, 21, 0.06);
    color: var(--heading-color);
    pointer-events: auto;
    transition: box-shadow 0.3s ease;
}

.header.is-scrolled .bar {
    box-shadow: 0 12px 34px rgba(28, 22, 21, 0.13);
}

/* logo */
.header .logo {
    display: inline-flex;
    align-items: center;
}

.header .logo .image {
    height: 42px;
    width: auto;
}

/* navigation */
.header .navigation > ul {
    display: flex;
    justify-content: flex-end;
    gap: 2px;
}

.header .navigation .link {
    display: block;
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--heading-color);
    transition: color 0.3s ease;
}

.header .navigation .link:hover,
.header .navigation .link[aria-current="page"],
.header .has-mega.is-open > .link {
    color: var(--accent-ink);
}

/* megamenu */
.header .navigation {
    align-self: stretch;
}

.header .navigation > ul {
    height: 100%;
}

.header .navigation > ul > li {
    display: flex;
    align-items: center;
}

.header .navigation .has-mega .link {
    padding-right: 4px;
}

.header .mega-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-right: 6px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: none;
    color: var(--heading-color);
}

.header .mega-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 0.35s var(--ease);
}

.header .has-mega.is-open .mega-toggle svg {
    transform: rotate(180deg);
}

.header .mega {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 30px 34px 34px;
    border-radius: var(--radius-lg);
    background: var(--second-color);
    box-shadow: 0 30px 60px rgba(28, 22, 21, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.35s var(--ease), visibility 0.25s;
}

.header .has-mega.is-open .mega,
html:not(.js) .header .has-mega:hover .mega {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.header .mega::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 12px; /* mostík, aby hover nevypadol v medzere */
}

.header .mega .container {
    max-width: none;
    padding: 0;
}

.header .mega .inner {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
}

.header .mega .services .eyebrow {
    margin: 0 0 12px 10px;
}

.header .mega .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 20px;
}

.header .mega .item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px;
    border-radius: var(--radius);
    transition: background-color 0.3s ease;
}

.header .mega .item:hover,
.header .mega .item[aria-current="page"] {
    background: var(--third-color);
}

.header .mega .image {
    flex: none;
    width: 76px;
    height: 64px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--third-color);
}

.header .mega .image img,
.header .mega .image .media-placeholder {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.header .mega .all .image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    color: var(--accent-text-color);
    transition: background-color 0.3s ease;
}

.header .mega .all .image svg {
    width: 24px;
    height: 24px;
}

.header .mega .all:hover .image {
    background: var(--main-color);
}

.header .mega .item:hover .image img {
    transform: scale(1.08);
}

.header .mega .body {
    flex: 1;
    min-width: 0;
}

.header .mega .title {
    display: block;
    margin-bottom: 2px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--heading-color);
    transition: color 0.3s ease;
}

.header .mega .item:hover .title {
    color: var(--accent-ink);
}

.header .mega .text {
    display: block;
    font-size: 14px;
    line-height: 1.4;
    color: var(--muted-color);
}

.header .mega .banner {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100%;
    padding: 28px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(0deg, rgba(20, 15, 14, 0.96) 0%, rgba(20, 15, 14, 0.82) 55%, rgba(20, 15, 14, 0.62) 100%), var(--background, none) center / cover no-repeat, var(--main-color);
    color: color-mix(in srgb, var(--main-text-color) 82%, transparent);
}

.header .mega .banner .title {
    margin-bottom: 8px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--main-text-color);
}

.header .mega .banner .text {
    margin-bottom: 16px;
    font-size: 16px;
    color: inherit;
}

.header .mega .banner .phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 20px;
    font-weight: 600;
    color: var(--main-text-color);
}

.header .mega .banner .phone svg {
    width: 20px;
    height: 20px;
    color: var(--accent-light);
}

.header .mega .banner .phone:hover {
    color: var(--accent-light);
}

/* actions */
.header .actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    grid-column: 3;
}

.header .actions .t-btn {
    padding: 0.7em 1.35em;
    box-shadow: none;
}

.header .toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--accent-color);
    color: var(--accent-text-color);
}

/* offcanvas */
.header .offcanvas {
    pointer-events: auto;
    --bs-offcanvas-width: min(420px, 100vw);
    background: var(--second-color);
    color: var(--heading-color);
}

.header .offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--header-height);
    padding: 14px 25px;
    border-bottom: 1px solid var(--border-color);
}

.header .offcanvas-header .logo {
    display: inline-flex;
    align-items: center;
}

.header .offcanvas-header .logo .image {
    width: auto;
    height: 28px;
}

.header .offcanvas .close {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-left: auto;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--border-color);
    color: inherit;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header .offcanvas .close:hover {
    background: var(--accent-color);
    color: var(--accent-text-color);
}

.header .offcanvas-body {
    padding: 8px 25px 24px;
}

.header .offcanvas .links > li {
    border-bottom: 1px solid var(--border-color);
}

.header .offcanvas .top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.header .offcanvas .link {
    flex: 1;
    display: block;
    padding: 11px 0;
    font-size: 19px;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: inherit;
}

.header .offcanvas .link:hover,
.header .offcanvas .link[aria-current="page"] {
    color: var(--accent-ink);
}

.header .offcanvas .sub-toggle {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--third-color);
    color: inherit;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header .offcanvas .sub-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.35s var(--ease);
}

.header .offcanvas .sub-toggle[aria-expanded="true"] {
    background: var(--accent-color);
    color: var(--accent-text-color);
}

.header .offcanvas .sub-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.header .offcanvas .sub {
    display: grid;
    margin: 0 0 16px 2px;
    padding-left: 16px;
    border-left: 2px solid var(--accent-color);
}

.header .offcanvas .sub a {
    display: block;
    padding: 8px 0;
    font-size: 16px;
    line-height: 1.35;
    color: color-mix(in srgb, var(--heading-color) 72%, transparent);
    transition: color 0.2s ease;
}

.header .offcanvas .sub a:hover,
.header .offcanvas .sub a[aria-current="page"] {
    color: var(--accent-ink);
}

.header .offcanvas-footer {
    display: grid;
    gap: 14px;
    padding: 16px 25px calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-color);
    background: var(--hero-color);
}

.header .offcanvas .contacts {
    display: grid;
    gap: 8px;
}

.header .offcanvas .contact {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    line-height: 1.3;
    color: inherit;
}

.header .offcanvas .contact small {
    display: block;
    font-size: 13px;
    color: color-mix(in srgb, var(--heading-color) 60%, transparent);
}

.header .offcanvas .contact .icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--accent-color) 10%, transparent);
    color: var(--accent-ink);
}

.header .offcanvas .contact svg {
    width: 15px;
    height: 15px;
}

@media (prefers-reduced-motion: reduce) {
    .header .offcanvas .sub-toggle svg,
    .header .mega-toggle svg,
    .header .mega {
        transition: none;
    }

    .header .mega {
        transform: none;
    }
}

@media (max-width: 767.98px) {
    .header {
        padding-top: 10px;
    }

    .header .bar {
        min-height: 70px;
        padding: 0 12px 0 20px;
    }

    .header .logo .image {
        height: 32px;
    }

    .header .toggle {
        width: 46px;
        height: 46px;
    }
}

/***** COMPONENTS *****/

/* page hero (podstránky) – obrázok na pravej polovici, celá výška až za header */
.page-hero {
    position: relative;
    overflow: clip;
    display: flex;
    align-items: center;
    min-height: clamp(520px, 62vh, 680px);
    padding: calc(var(--header-height) + 48px) 0 clamp(56px, 6vw, 88px);
    background: var(--hero-gradient);
    color: var(--main-text-color);
}

.page-hero > .container {
    position: relative;
    z-index: 1;
}

.page-hero .media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: -100%; /* dvojnásobná dráha umožní obrázku zostať sticky počas odchodu bannera */
    width: 50%;
    background: var(--third-color);
}

.page-hero .media .photo,
.page-hero .media .media-placeholder {
    position: sticky;
    top: 0;
    display: flex;
    width: 100%;
    height: 50%;
    object-fit: cover;
}

.page-hero .content {
    max-width: 600px;
    padding-right: 32px;
}

.page-hero .heading {
    color: inherit;
    margin-bottom: 18px;
    font-size: clamp(2.5rem, 4.6vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.page-hero .text {
    max-width: 640px;
    font-size: clamp(17px, 1.4vw, 19px);
    color: var(--main-text-color);
}

/* service card */
.service-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    background: var(--third-color);
    overflow: hidden;
    transition: box-shadow 0.4s ease, transform 0.4s var(--ease);
}

.service-card:hover {
    box-shadow: var(--shadow);
}

.service-card .image {
    position: relative;
    overflow: hidden;
}

.service-card .image::before {
    content: "";
    display: block;
    padding-top: calc(75% + 15px); /* 4:3 + 15 px */
}

.service-card .image img,
.service-card .image .media-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.service-card:hover .image img {
    transform: scale(1.05);
}

.service-card .body {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 40px 28px 28px;
}

.service-card .icon {
    position: absolute;
    top: -28px;
    left: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: var(--accent-color);
    color: var(--accent-text-color);
    border: 4px solid var(--third-color);
}

.service-card .icon svg {
    width: 22px;
    height: 22px;
}

.service-card .title {
    margin-bottom: 10px;
}

.service-card .title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.service-card .more {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 16px;
    font-weight: 600;
    color: var(--heading-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
    text-underline-offset: 4px;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.service-card:hover .more {
    color: var(--accent-ink);
    text-decoration-color: currentColor;
}

/* project card (realizácie) */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--third-color);
}

.project-card .image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.project-card .image img,
.project-card .image .media-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.project-card:hover .image img {
    transform: scale(1.05);
}

.project-card .body {
    flex: 1;
    padding: 24px 26px 28px;
    border-bottom: 3px solid transparent;
    transition: border-color 0.3s ease;
}

.project-card:hover .body {
    border-color: var(--accent-color);
}

.project-card .meta {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-ink);
}

.project-card .title {
    margin-bottom: 8px;
    font-size: 21px;
}

.project-card .title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.project-card:hover .title {
    color: var(--accent-ink);
}

.project-card .text {
    font-size: 16px;
}

/* process */
.process-section {
    background: var(--third-color);
}

.process-section .steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.process-section .step {
    position: relative;
    text-align: center;
}

.process-section .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 40px;
    left: calc(50% + 54px);
    right: calc(-50% + 54px);
    border-top: 2px dashed color-mix(in srgb, var(--accent-color) 40%, transparent);
}

.process-section .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-bottom: 22px;
    border-radius: var(--radius-sm);
    background: var(--second-color);
    color: var(--accent-ink);
    box-shadow: var(--shadow);
}

.process-section .icon svg {
    width: 28px;
    height: 28px;
}

.process-section .title {
    margin-bottom: 8px;
    font-size: 20px;
}

.process-section .text {
    font-size: 16px;
}

/* photo grid (galéria s lightboxom) */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.photo-grid .item {
    margin: 0;
}

.photo-grid a,
.photo-grid .media-placeholder {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
}

.photo-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.photo-grid a:hover img {
    transform: scale(1.05);
}

.photo-grid .zoom {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--second-color);
    color: var(--heading-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-grid .zoom svg {
    width: 18px;
    height: 18px;
}

.photo-grid a:hover .zoom,
.photo-grid a:focus-visible .zoom {
    opacity: 1;
}

.photo-grid .caption {
    margin-top: 12px;
    font-size: 15px;
    color: var(--muted-color);
}

/* faq */
.faq-list {
    --bs-accordion-bg: transparent;
    --bs-accordion-border-color: var(--border-color);
    --bs-accordion-btn-focus-box-shadow: none;
    --bs-accordion-active-bg: transparent;
    --bs-accordion-active-color: var(--heading-color);
    --bs-accordion-btn-padding-x: 0;
    --bs-accordion-body-padding-x: 0;
}

.faq-list .item {
    border-width: 0 0 1px;
    border-radius: 0 !important;
}

.faq-list .question {
    margin: 0;
}

.faq-list .accordion-button {
    padding: 22px 0;
    font-size: 19px;
    font-weight: 500;
    color: var(--heading-color);
}

.faq-list .accordion-button:not(.collapsed) {
    color: var(--accent-ink);
}

.faq-list .answer {
    padding-top: 0;
    padding-bottom: 24px;
}

/* cta – fotka cez celú šírku, prilepená k pätičke */
.cta-section {
    position: relative;
    padding: clamp(88px, 11vw, 160px) 0;
    background: var(--overlay), var(--background, none) center / cover no-repeat fixed, color-mix(in srgb, var(--main-text-color) 8%, var(--main-color));
    color: var(--main-text-color);
}

.cta-section .placeholder-code {
    position: absolute;
    right: 20px;
    top: 20px;
    padding: 3px 10px;
    background: color-mix(in srgb, var(--main-text-color) 12%, transparent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.cta-section::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--accent-color);
}

.cta-section .box {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}

.cta-section .content {
    max-width: 640px;
}

.cta-section .heading {
    color: inherit;
    margin-bottom: 14px;
    font-size: clamp(2rem, 3.4vw, 3.125rem);
}

.cta-section .text {
    color: color-mix(in srgb, var(--main-text-color) 86%, transparent);
}

/* contact form */
.contact-form .form-label {
    font-weight: 600;
    color: var(--heading-color);
}

.contact-form .form-control,
.contact-form .form-select {
    min-height: 54px;
    padding: 12px 16px;
    border-color: var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 16px;
    color: var(--heading-color);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color) 22%, transparent);
}

.contact-form .form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.contact-form .trap {
    position: absolute;
    left: -9999px;
}

.contact-form .notice {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 24px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.contact-form .notice.success {
    background: var(--success-bg);
    color: var(--success-color);
}

.contact-form .notice.error {
    background: var(--error-bg);
    color: var(--error-color);
}

@media (max-width: 1199.98px) {
    .process-section .steps {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 48px;
    }

    .process-section .step::after {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-hero {
        display: block;
        min-height: 0;
        padding-bottom: 0;
    }

    .page-hero .content {
        padding-right: 0;
    }

    .page-hero .media {
        position: relative;
        bottom: auto;
        width: 100%;
        margin-top: 40px;
        aspect-ratio: 16 / 10;
    }

    .page-hero .media .photo,
    .page-hero .media .media-placeholder {
        position: static;
        height: 100%;
    }

    .cta-section {
        background-attachment: scroll;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-hero .media {
        bottom: 0;
    }

    .page-hero .media .photo,
    .page-hero .media .media-placeholder {
        position: static;
        height: 100%;
    }
}

@media (max-width: 767.98px) {
    .process-section .steps {
        grid-template-columns: 1fr;
        row-gap: 28px;
    }

    .process-section .step {
        display: grid;
        grid-template-columns: 64px 1fr;
        column-gap: 18px;
        text-align: left;
    }

    .process-section .icon {
        grid-row: span 2;
        width: 64px;
        height: 64px;
        margin-bottom: 0;
    }

    .process-section .icon svg {
        width: 24px;
        height: 24px;
    }

    .process-section .title {
        margin-bottom: 4px;
    }

    .page-hero {
        padding-top: calc(var(--header-height) + 32px);
    }
}

@media (max-width: 575.98px) {
    .photo-grid {
        grid-template-columns: 1fr;
    }
}

/***** HOME *****/

/* hero – fotografia vpravo, tmavé pozadie a biely text vľavo */
.home-page .hero-section {
    position: relative;
    overflow: clip;
    display: flex;
    align-items: center;
    min-height: min(calc(100svh - 160px), 820px); /* pod hero vykukne tmavý pás benefitov */
    padding: calc(var(--header-height) + 40px) 0 clamp(56px, 6vw, 88px);
    background: var(--hero-gradient);
    color: var(--main-text-color);
}

.home-page .hero-section > .container {
    position: relative;
    z-index: 1;
}

.home-page .hero-section .eyebrow {
    margin-bottom: 20px;
    font-size: 12px;
    letter-spacing: 0.16em;
    color: var(--main-text-color);
}

.home-page .hero-section .eyebrow::before {
    width: 7px;
    height: 7px;
}

.home-page .hero-section .content {
    max-width: 640px;
    padding-right: 32px;
}

.home-page .hero-section .heading {
    color: inherit;
    margin-bottom: 22px;
    font-size: clamp(2rem, 4.3vw, 3.875rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.home-page .hero-section .heading .t-color {
    color: inherit;
}

.home-page .hero-section .text {
    max-width: 540px;
    font-size: 16px;
    color: var(--main-text-color);
    margin-bottom: 32px;
}

.home-page .hero-section .media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: -100%;
    width: 50%;
}

.home-page .hero-section .media .frame {
    position: sticky;
    top: 0;
    height: 50%;
}

.home-page .hero-section .media .photo,
.home-page .hero-section .media .media-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* posuvné okienko v obrázku (Bootstrap carousel) */
.home-page .hero-section .window {
    position: absolute;
    left: clamp(24px, 4vw, 56px);
    bottom: clamp(24px, 4vw, 56px);
    z-index: 2;
    width: min(340px, calc(100% - 48px));
    padding: 20px 22px 16px;
    border-radius: var(--radius-lg);
    background: var(--second-color);
    box-shadow: var(--shadow);
}

.home-page .hero-section .window .carousel-inner {
    overflow: hidden;
}

/* fade: nový slide prekryje starý, texty sa neprekrývajú */
.home-page .hero-section .window .carousel-item {
    background: var(--second-color);
}

.home-page .hero-section .window .item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.home-page .hero-section .window .icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-icon);
    background: var(--accent-color);
    color: var(--accent-text-color);
}

.home-page .hero-section .window .icon svg {
    width: 22px;
    height: 22px;
}

.home-page .hero-section .window .title {
    margin: 0 0 2px;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--heading-color);
}

.home-page .hero-section .window .text {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    color: var(--text-color);
}

.home-page .hero-section .window .dots {
    position: static;
    justify-content: flex-start;
    gap: 6px;
    margin: 14px 0 0 64px;
}

.home-page .hero-section .window .dots button {
    width: 18px;
    height: 3px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: var(--heading-color);
    opacity: 0.2;
    transition: width 0.4s var(--ease), opacity 0.4s ease, background-color 0.4s ease;
}

.home-page .hero-section .window .dots button.active {
    width: 32px;
    background: var(--accent-color);
    opacity: 1;
}

/* highlights – 4 výhody pod hero: bez paddingu sekcie, ohraničené boxy až po okraj */
main .home-page .highlights-section {
    padding: 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--second-color);
}

.home-page .highlights-section .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-left: 1px solid var(--border-color);
}

.home-page .highlights-section .item {
    padding: clamp(32px, 3.2vw, 48px) clamp(24px, 2.4vw, 36px);
    border-right: 1px solid var(--border-color);
    transition: background-color 0.35s ease;
}

.home-page .highlights-section .item:hover {
    background: var(--third-color);
}

.home-page .highlights-section .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 22px;
    border-radius: var(--radius-icon);
    background: color-mix(in srgb, var(--accent-color) 10%, transparent);
    color: var(--accent-ink);
    transition: background-color 0.35s ease, color 0.35s ease;
}

.home-page .highlights-section .item:hover .icon {
    background: var(--accent-color);
    color: var(--accent-text-color);
}

.home-page .highlights-section .icon svg {
    width: 23px;
    height: 23px;
}

.home-page .highlights-section .title {
    margin-bottom: 8px;
    font-size: 20px;
}

.home-page .highlights-section .text {
    font-size: 16px;
    line-height: 1.55;
}

/* intro – fotky cez seba */
.home-page .intro-section .stack-images {
    position: relative;
    padding: 0 18% 18% 0;
}

.home-page .intro-section .stack-images .image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.home-page .intro-section .stack-images .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-page .intro-section .stack-images .small {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 42%;
    aspect-ratio: 6 / 7;
    border: 8px solid var(--second-color);
    box-shadow: var(--shadow);
}

.home-page .intro-section .heading,
.about-page .intro-section .heading {
    margin-bottom: 20px;
}

.home-page .intro-section .lead {
    margin-bottom: 18px;
}

/* services – boxy */
.home-page .services-section {
    background: var(--third-color);
}

.home-page .services-section .service-card {
    background: var(--second-color);
    /* Zvislý nástupný posun vytvára v horizontálnom slideri nechcený scroll. */
    transform: none;
}

.home-page .services-section .service-card .icon {
    border-color: var(--second-color);
}

.home-page .services-section .service-card .title {
    font-size: 20px;
}

.home-page .services-section .service-card .text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-size: 16px;
}

.home-page .services-section .help {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    height: 100%;
    padding: clamp(28px, 3vw, 40px);
    border-radius: var(--radius-lg);
    background: var(--main-color);
    color: color-mix(in srgb, var(--main-text-color) 75%, transparent);
}

.home-page .services-section .help .eyebrow {
    color: var(--accent-light);
}

.home-page .services-section .help .title {
    margin-bottom: 14px;
    font-size: clamp(1.75rem, 2.4vw, 2.25rem);
    color: var(--main-text-color);
}

.home-page .services-section .help .text {
    font-size: 16px;
}

.home-page .services-section .help .actions {
    display: grid;
    gap: 18px;
}

.home-page .services-section .help .phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 600;
    color: var(--main-text-color);
}

.home-page .services-section .help .phone svg {
    width: 22px;
    height: 22px;
    color: var(--accent-light);
}

.home-page .services-section .help .phone:hover {
    color: var(--accent-light);
}

/* slider služieb – 2 karty vedľa seba + krokovač */
.home-page .services-section .slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: var(--radius);
}

.home-page .services-section .slider::-webkit-scrollbar {
    display: none;
}

.home-page .services-section .slide {
    flex: 0 0 calc(50% - 12px);
    scroll-snap-align: start;
}

.home-page .services-section .stepper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
}

.home-page .services-section .count {
    flex: none;
    min-width: 64px;
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--heading-color);
}

.home-page .services-section .track {
    position: relative;
    flex: 1;
    height: 2px;
    border-radius: 2px;
    background: var(--border-color);
    overflow: hidden;
}

.home-page .services-section .bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--accent-color);
    transition: width 0.4s var(--ease);
}

.home-page .services-section .arrows {
    display: flex;
    gap: 10px;
}

.home-page .services-section .arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-btn);
    background: var(--second-color);
    color: var(--heading-color);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

.home-page .services-section .arrow:hover:not(:disabled) {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--accent-text-color);
}

.home-page .services-section .arrow:disabled {
    opacity: 0.4;
    cursor: default;
}

.home-page .services-section .arrow svg {
    width: 20px;
    height: 20px;
}

/* benefits bento */
.home-page .benefits-section .bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(230px, auto);
    gap: 16px;
}

.home-page .benefits-section .cell {
    display: flex;
    flex-direction: column;
    padding: 28px;
    border-radius: var(--radius);
    background: var(--third-color);
    transition: background-color 0.4s ease, color 0.4s ease;
}

.home-page .benefits-section .cell.photo {
    grid-column: span 2;
    grid-row: span 2;
    padding: 0;
    overflow: hidden;
}

.home-page .benefits-section .cell.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-page .benefits-section .cell.wide {
    grid-column: span 2;
}

.home-page .benefits-section .cell:not(.photo):hover {
    background: var(--main-color);
    color: color-mix(in srgb, var(--main-text-color) 80%, transparent);
}

.home-page .benefits-section .cell:not(.photo):hover .title {
    color: var(--main-text-color);
}

.home-page .benefits-section .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: auto;
    border-radius: var(--radius-sm);
    background: var(--second-color);
    color: var(--accent-ink);
    transition: background-color 0.4s ease, color 0.4s ease;
}

.home-page .benefits-section .cell:hover .icon {
    background: var(--accent-color);
    color: var(--accent-text-color);
}

.home-page .benefits-section .icon svg {
    width: 23px;
    height: 23px;
}

.home-page .benefits-section .title {
    margin: 28px 0 8px;
    font-size: 21px;
    transition: color 0.4s ease;
}

.home-page .benefits-section .text {
    font-size: 16px;
}

/* work slider */
.home-page .work-section .arrows {
    display: flex;
    gap: 10px;
}

.home-page .work-section .arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--second-color);
    color: var(--heading-color);
    transition: background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}

.home-page .work-section .arrow:hover:not(:disabled) {
    background: var(--main-color);
    color: var(--main-text-color);
}

.home-page .work-section .arrow:disabled {
    opacity: 0.4;
    cursor: default;
}

.home-page .work-section {
    --container: 100%;
}

.home-page .work-section .slider {
    --gutter: calc((100% - var(--container)) / 2 + 25px);
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 0 var(--gutter);
    scroll-padding: 0 var(--gutter);
}

.home-page .work-section .slider::-webkit-scrollbar {
    display: none;
}

.home-page .work-section .slide {
    flex: 0 0 clamp(270px, 30vw, 400px);
    margin: 0;
    scroll-snap-align: start;
}

.home-page .work-section .slide a,
.home-page .work-section .slide .media-placeholder {
    display: block;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    overflow: hidden;
}

.home-page .work-section .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.home-page .work-section .slide a:hover img {
    transform: scale(1.05);
}

.home-page .work-section .caption {
    margin-top: 12px;
    font-size: 15px;
    color: var(--muted-color);
}

/* faq */
.home-page .faq-section {
    background: var(--third-color);
}

.home-page .faq-section .intro {
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.home-page .faq-section .intro .text {
    margin-bottom: 28px;
}

.home-page .faq-section .intro .buttons {
    align-items: center;
    gap: 12px 28px;
}

/* faq – každá otázka samostatná biela karta s tieňom, medzery medzi nimi */
.home-page .faq-section .faq-list {
    display: grid;
    gap: 14px;
}

.home-page .faq-section .faq-list .item {
    border: 0;
    border-radius: var(--radius-lg) !important;
    background: var(--second-color);
    box-shadow: 0 6px 24px rgba(28, 22, 21, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.home-page .faq-section .faq-list .item:hover {
    box-shadow: 0 12px 32px rgba(28, 22, 21, 0.1);
}

.home-page .faq-section .faq-list .accordion-button {
    padding: 22px 26px;
    border-radius: var(--radius-lg) !important;
    box-shadow: none;
}

.home-page .faq-section .faq-list .answer {
    padding: 0 26px 24px;
}

@media (min-width: 576px) { .home-page .work-section { --container: 540px; } }
@media (min-width: 768px) { .home-page .work-section { --container: 720px; } }
@media (min-width: 992px) { .home-page .work-section { --container: 960px; } }
@media (min-width: 1200px) { .home-page .work-section { --container: 1140px; } }
@media (min-width: 1400px) { .home-page .work-section { --container: 1320px; } }

@media (prefers-reduced-motion: reduce) {
    .home-page .services-section .bar {
        transition: none;
    }
}

@media (max-width: 1199.98px) {
    .home-page .benefits-section .bento {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991.98px) {
    .home-page .highlights-section .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-page .highlights-section .item:nth-child(-n + 2) {
        border-bottom: 1px solid var(--border-color);
    }

    .home-page .hero-section {
        display: block;
        min-height: 0;
        padding-bottom: 0;
    }

    .home-page .hero-section .content {
        padding-right: 0;
    }

    .home-page .hero-section .media {
        position: relative;
        bottom: auto;
        width: 100%;
        margin-top: 40px;
        aspect-ratio: 16 / 10;
    }

    .home-page .hero-section .media .frame {
        position: relative;
        height: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .hero-section .media {
        bottom: 0;
    }

    .home-page .hero-section .media .frame {
        position: relative;
        height: 100%;
    }
}

@media (max-width: 767.98px) {
    .home-page .hero-section {
        padding-top: calc(var(--header-height) + 32px);
    }

    .home-page .hero-section .buttons .t-btn {
        flex: 1 1 auto;
    }

    .home-page .work-section .arrows {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .home-page .highlights-section .grid {
        grid-template-columns: 1fr;
    }

    .home-page .highlights-section .item:not(:last-child) {
        border-bottom: 1px solid var(--border-color);
    }

    .home-page .services-section .slide {
        flex-basis: 86%;
    }

    .home-page .services-section .stepper {
        gap: 14px;
    }

    .home-page .services-section .arrow {
        width: 46px;
        height: 46px;
    }

    .home-page .benefits-section .bento {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .home-page .benefits-section .icon {
        margin-bottom: 0;
    }

    .home-page .benefits-section .cell,
    .home-page .benefits-section .cell.wide,
    .home-page .benefits-section .cell.photo {
        grid-column: auto;
        grid-row: auto;
    }

    .home-page .benefits-section .cell {
        min-height: 0;
    }

    .home-page .benefits-section .cell.photo {
        aspect-ratio: 1 / 1;
    }

    .home-page .intro-section .stack-images {
        padding: 0 10% 22% 0;
    }

    .home-page .intro-section .stack-images .small {
        width: 48%;
        border-width: 6px;
    }
}

/***** SERVICES *****/

/* každá služba v samostatnom páse, každá druhá jemne sivá */
main .services-page .list-section {
    padding: 0;
}

.services-page .list-section .item {
    padding: clamp(64px, 8vw, 104px) 0;
}

.services-page .list-section .item:nth-child(even) {
    background: color-mix(in srgb, var(--main-color) 4%, var(--second-color));
}

.services-page .list-section .image {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.services-page .list-section .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.services-page .list-section .image:hover img {
    transform: scale(1.04);
}

.services-page .list-section .content > .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    border-radius: var(--radius-sm);
    background: var(--accent-color);
    color: var(--accent-text-color);
}

.services-page .list-section .title {
    margin-bottom: 14px;
    font-size: clamp(1.75rem, 2.6vw, 2.375rem);
}

.services-page .list-section .title a:hover {
    color: var(--accent-ink);
}

.services-page .list-section .check-list {
    margin: 20px 0 28px;
}

@media (min-width: 992px) {
    .services-page .list-section .item:nth-child(even) .row > :first-child {
        order: 2;
    }
}

/***** SERVICE *****/

.service-page .detail-section .lead {
    margin-bottom: 20px;
}

.service-page .detail-section .subheading {
    margin: 36px 0 0;
    font-size: 24px;
}

.service-page .detail-section .check-list {
    margin-bottom: 0;
}

.service-page .detail-section .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 0;
}

.service-page .detail-section .tags li {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-icon);
    background: var(--third-color);
    font-size: 15px;
    font-weight: 500;
    color: var(--heading-color);
}

.service-page .detail-section .note {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    padding: 28px;
    border-left: 4px solid var(--accent-color);
    border-radius: var(--radius);
    background: var(--third-color);
}

.service-page .detail-section .note .icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--second-color);
    color: var(--accent-ink);
}

.service-page .detail-section .note .title {
    margin-bottom: 8px;
    font-size: 21px;
}

.service-page .detail-section .facts {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    padding: 36px;
    border-radius: var(--radius-lg);
    background: var(--main-color);
    color: color-mix(in srgb, var(--main-text-color) 85%, transparent);
}

.service-page .detail-section .facts .eyebrow {
    color: var(--accent-light);
}

.service-page .detail-section .facts .title {
    margin-bottom: 20px;
    font-size: clamp(1.5rem, 2vw, 1.875rem);
    color: var(--main-text-color);
}

.service-page .detail-section .facts .list {
    display: grid;
    gap: 14px;
    margin-bottom: 28px;
}

.service-page .detail-section .facts .list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-page .detail-section .facts .list svg {
    flex: none;
    width: 20px;
    height: 20px;
    color: var(--accent-light);
}

.service-page .detail-section .facts .phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 18px;
    font-weight: 600;
    color: var(--main-text-color);
}

.service-page .detail-section .facts .phone:hover {
    color: var(--accent-light);
}

.service-page .detail-section .facts .phone svg {
    width: 18px;
}

.service-page .photos-section {
    background: var(--third-color);
}

.service-page .photos-section .photo {
    height: clamp(340px, 38vw, 560px);
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.service-page .photos-section .photo a {
    display: block;
    height: 100%;
}

.service-page .photos-section .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.service-page .photos-section .photo a:hover img {
    transform: scale(1.04);
}

@media (max-width: 767.98px) {
    .service-page .photos-section .photo {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .service-page .detail-section .facts {
        padding: 28px;
    }

    .service-page .detail-section .note {
        flex-direction: column;
        gap: 14px;
    }
}

/***** PROJECTS *****/

.projects-page .list-section .filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: clamp(32px, 4vw, 48px);
}

.projects-page .list-section .filter {
    padding: 0.6em 1.3em;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-btn);
    background: var(--second-color);
    font-size: 16px;
    font-weight: 400;
    color: var(--heading-color);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.projects-page .list-section .filter:hover {
    border-color: var(--heading-color);
}

.projects-page .list-section .filter.active {
    background: var(--main-color);
    border-color: var(--main-color);
    color: var(--main-text-color);
}

/***** PROJECT *****/

.project-page .detail-section .lead {
    margin-bottom: 20px;
}

.project-page .detail-section .subheading {
    margin: 36px 0 0;
    font-size: 24px;
}

.project-page .detail-section .check-list {
    margin-bottom: 0;
}

.project-page .detail-section .facts {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    padding: 36px;
    border-radius: var(--radius-lg);
    background: var(--main-color);
    color: color-mix(in srgb, var(--main-text-color) 70%, transparent);
}

.project-page .detail-section .facts .eyebrow {
    color: var(--accent-light);
}

.project-page .detail-section .facts .data {
    margin-bottom: 28px;
    border-top: 1px solid color-mix(in srgb, var(--main-text-color) 14%, transparent);
}

.project-page .detail-section .facts .row-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--main-text-color) 14%, transparent);
}

.project-page .detail-section .facts dt {
    font-weight: 400;
}

.project-page .detail-section .facts dd {
    margin: 0;
    font-weight: 600;
    color: var(--main-text-color);
}

.project-page .gallery-section {
    background: var(--third-color);
}

@media (max-width: 767.98px) {
    .project-page .detail-section .facts {
        padding: 28px;
    }
}

/***** PRICING *****/

/* zateplenie – prepínač EPS / minerál */
.pricing-page .insulation-section .switch {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 28px;
    padding: 6px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--third-color);
}

.pricing-page .insulation-section .tab {
    padding: 0.7em 1.4em;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    font-size: 16px;
    font-weight: 500;
    color: var(--heading-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pricing-page .insulation-section .tab:hover {
    color: var(--accent-ink);
}

.pricing-page .insulation-section .tab.active {
    background: var(--main-color);
    color: var(--main-text-color);
}

.pricing-page .insulation-section .card {
    height: 100%;
    padding: 32px;
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--third-color);
}

.pricing-page .insulation-section .card .title {
    margin-bottom: 12px;
    font-size: 24px;
}

.pricing-page .insulation-section .card .check-list {
    margin-top: 20px;
}

.pricing-page .insulation-section .table-wrap {
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.pricing-page .insulation-section .notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 28px 0 0;
    padding: 18px 22px;
    border-left: 4px solid var(--accent-color);
    border-radius: var(--radius);
    background: var(--third-color);
    color: var(--heading-color);
}

.pricing-page .insulation-section .notice svg {
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: 3px;
    color: var(--accent-ink);
}

/* tabuľka cien */
.pricing-page .prices {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-variant-numeric: tabular-nums;
}

.pricing-page .prices th,
.pricing-page .prices td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.pricing-page .prices thead th {
    background: var(--third-color);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted-color);
}

.pricing-page .prices tbody th {
    font-weight: 600;
    color: var(--heading-color);
}

.pricing-page .prices .value {
    font-weight: 700;
    color: var(--heading-color);
}

.pricing-page .insulation-section .prices tbody tr:last-child > * {
    border-bottom: 0;
}

/* čo je v cene */
.pricing-page .included-section {
    background: var(--third-color);
}

.pricing-page .included-section .heading {
    margin-bottom: 16px;
}

.pricing-page .included-section .steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 36px;
}

.pricing-page .included-section .step {
    display: flex;
    gap: 16px;
    padding: 22px;
    border-radius: var(--radius);
    background: var(--second-color);
}

.pricing-page .included-section .number {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--accent-color);
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-text-color);
}

.pricing-page .included-section .step .title {
    margin-bottom: 4px;
    font-size: 18px;
}

.pricing-page .included-section .step .text {
    font-size: 16px;
}

.pricing-page .included-section .extras {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    padding: 36px;
    border-radius: var(--radius-lg);
    background: var(--main-color);
    color: color-mix(in srgb, var(--main-text-color) 75%, transparent);
}

.pricing-page .included-section .extras .eyebrow {
    color: var(--accent-light);
}

.pricing-page .included-section .extras .title {
    margin-bottom: 20px;
    font-size: clamp(1.5rem, 2vw, 1.875rem);
    color: var(--main-text-color);
}

.pricing-page .included-section .extras .list {
    margin: 0 0 24px;
    border-top: 1px solid color-mix(in srgb, var(--main-text-color) 14%, transparent);
}

.pricing-page .included-section .extras .list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--main-text-color) 14%, transparent);
}

.pricing-page .included-section .extras .name {
    font-weight: 600;
    color: var(--main-text-color);
}

.pricing-page .included-section .extras .name small {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: color-mix(in srgb, var(--main-text-color) 65%, transparent);
}

.pricing-page .included-section .extras .value {
    flex: none;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
    color: var(--main-text-color);
}

.pricing-page .included-section .extras .text {
    font-size: 16px;
}

/* faktory ceny */
.pricing-page .factors-section .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pricing-page .factors-section .item {
    padding: 32px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.pricing-page .factors-section .item:hover {
    border-color: transparent;
    box-shadow: var(--shadow);
}

.pricing-page .factors-section .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 22px;
    border-radius: var(--radius-sm);
    background: var(--third-color);
    color: var(--accent-ink);
}

.pricing-page .factors-section .title {
    margin-bottom: 8px;
    font-size: 21px;
}

/* modelový výpočet */
.pricing-page .example-section {
    padding-top: 0;
}

.pricing-page .example-section .box {
    padding: clamp(28px, 4vw, 56px);
    border-radius: var(--radius-lg);
    background: var(--third-color);
}

.pricing-page .example-section .head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 40px;
    margin-bottom: 32px;
}

.pricing-page .example-section .head > div {
    max-width: 680px;
}

.pricing-page .example-section .heading {
    margin-bottom: 14px;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.pricing-page .example-section .hint {
    max-width: 340px;
    font-size: 16px;
    color: var(--muted-color);
}

.pricing-page .example-section .calculation {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--second-color);
}

.pricing-page .example-section .calculation th,
.pricing-page .example-section .calculation td {
    padding: 16px 20px;
}

.pricing-page .example-section .calculation td,
.pricing-page .example-section .calculation thead th:not(:first-child) {
    text-align: right;
}

.pricing-page .example-section .calculation thead th {
    background: var(--second-color);
}

.pricing-page .example-section .calculation tfoot th,
.pricing-page .example-section .calculation tfoot td {
    font-weight: 600;
    color: var(--heading-color);
}

.pricing-page .example-section .calculation tfoot .total > * {
    border-bottom: 0;
    background: var(--main-color);
    font-size: 19px;
    font-weight: 700;
    color: var(--main-text-color);
}

.pricing-page .example-section .calculation tfoot tr:last-child > * {
    border-bottom: 0;
}

/* cenník ďalších služieb */
.pricing-page .services-section {
    background: var(--third-color);
}

.pricing-page .services-section .card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 32px;
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--second-color);
}

.pricing-page .services-section .head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.pricing-page .services-section .icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background: var(--accent-color);
    color: var(--accent-text-color);
}

.pricing-page .services-section .title {
    margin: 0;
    font-size: 22px;
}

.pricing-page .services-section .title a:hover {
    color: var(--accent-ink);
}

.pricing-page .services-section .list {
    flex-grow: 1;
    margin: 0 0 22px;
    border-top: 1px solid var(--border-color);
}

.pricing-page .services-section .list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.pricing-page .services-section .name {
    font-weight: 600;
    color: var(--heading-color);
}

.pricing-page .services-section .name small {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: var(--muted-color);
}

.pricing-page .services-section .value {
    flex: none;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
    color: var(--heading-color);
}

.pricing-page .services-section .text-link {
    align-self: flex-start;
}

/* financovanie */
.pricing-page .financing-section .box {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 48px;
    padding: clamp(32px, 5vw, 64px);
    border-radius: var(--radius-lg);
    background: var(--main-color);
    color: color-mix(in srgb, var(--main-text-color) 75%, transparent);
}

.pricing-page .financing-section .heading {
    margin-bottom: 14px;
    color: var(--main-text-color);
}

.pricing-page .financing-section .content .text {
    margin-bottom: 28px;
}

.pricing-page .financing-section .facts {
    display: grid;
    gap: 14px;
}

.pricing-page .financing-section .facts li {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--main-text-color) 6%, transparent);
}

.pricing-page .financing-section .facts .value {
    flex: none;
    min-width: 128px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--main-text-color);
}

.pricing-page .financing-section .facts .label {
    font-size: 16px;
}

/* faq */
.pricing-page .faq-section {
    background: var(--third-color);
}

.pricing-page .faq-section .intro {
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.pricing-page .faq-section .intro .text {
    margin-bottom: 20px;
}

@media (max-width: 991.98px) {
    .pricing-page .included-section .extras,
    .pricing-page .faq-section .intro {
        position: static;
    }

    .pricing-page .factors-section .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-page .financing-section .box {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* modelový výpočet – riadky pod sebou */
    .pricing-page .example-section .calculation thead {
        display: none;
    }

    .pricing-page .example-section .calculation tbody tr {
        display: block;
        padding: 16px 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .pricing-page .example-section .calculation tbody th {
        display: block;
        padding: 0 0 6px;
        border: 0;
        white-space: normal;
    }

    .pricing-page .example-section .calculation tbody td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 3px 0;
        border: 0;
    }

    .pricing-page .example-section .calculation tbody td::before {
        content: attr(data-label);
        font-weight: 400;
        color: var(--muted-color);
    }

    .pricing-page .example-section .calculation tfoot tr {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 4px 12px;
        padding: 14px 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .pricing-page .example-section .calculation tfoot tr.total {
        background: var(--main-color);
    }

    .pricing-page .example-section .calculation tfoot th,
    .pricing-page .example-section .calculation tfoot td {
        padding: 0;
        border: 0;
        white-space: normal;
    }
}

@media (max-width: 767.98px) {
    .pricing-page .included-section .steps,
    .pricing-page .factors-section .grid {
        grid-template-columns: 1fr;
    }

    .pricing-page .insulation-section .card,
    .pricing-page .included-section .extras,
    .pricing-page .services-section .card,
    .pricing-page .factors-section .item {
        padding: 26px;
    }
}

@media (max-width: 575.98px) {
    .pricing-page .insulation-section .switch {
        display: flex;
        flex-wrap: nowrap;
    }

    .pricing-page .insulation-section .tab {
        flex: 1 1 0;
        padding: 0.7em 0.4em;
        white-space: nowrap;
    }

    /* tabuľka cien zateplenia – riadky pod sebou */
    .pricing-page .insulation-section .prices thead {
        display: none;
    }

    .pricing-page .insulation-section .prices tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px 16px;
        padding: 16px 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .pricing-page .insulation-section .prices tbody tr:last-child {
        border-bottom: 0;
    }

    .pricing-page .insulation-section .prices tbody th {
        grid-column: 1 / -1;
        padding: 0 0 4px;
        border: 0;
    }

    .pricing-page .insulation-section .prices tbody td {
        padding: 0;
        border: 0;
    }

    .pricing-page .insulation-section .prices tbody td::before {
        content: attr(data-label);
        display: block;
        font-size: 14px;
        font-weight: 400;
        color: var(--muted-color);
    }

    .pricing-page .included-section .extras .list li,
    .pricing-page .services-section .list li {
        flex-direction: column;
        gap: 4px;
    }

    .pricing-page .included-section .extras .value,
    .pricing-page .services-section .value {
        text-align: left;
    }

    .pricing-page .financing-section .facts li {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}

/***** FINANCING *****/

/* úvod */
.financing-page .intro-section .heading {
    margin-bottom: 18px;
}

.financing-page .intro-section .lead {
    margin-bottom: 16px;
}

.financing-page .intro-section .check-list {
    margin-top: 24px;
}

.financing-page .intro-section .box {
    padding: 36px;
    border-radius: var(--radius-lg);
    background: var(--main-color);
    color: color-mix(in srgb, var(--main-text-color) 75%, transparent);
}

.financing-page .intro-section .facts {
    display: grid;
    gap: 12px;
    margin: 0 0 28px;
}

.financing-page .intro-section .facts li {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--main-text-color) 6%, transparent);
}

.financing-page .intro-section .facts .value {
    flex: none;
    min-width: 116px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--main-text-color);
}

.financing-page .intro-section .facts .label {
    font-size: 16px;
}

.financing-page .intro-section .phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 18px;
    font-weight: 600;
    color: var(--main-text-color);
}

.financing-page .intro-section .phone:hover {
    color: var(--accent-light);
}

.financing-page .intro-section .phone svg {
    width: 18px;
}

/* možnosti */
.financing-page .options-section {
    background: var(--third-color);
}

.financing-page .options-section .card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    padding: 30px;
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--second-color);
}

.financing-page .options-section .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 22px;
    border-radius: var(--radius-sm);
    background: var(--accent-color);
    color: var(--accent-text-color);
}

.financing-page .options-section .title {
    margin-bottom: 16px;
    font-size: 21px;
}

.financing-page .options-section .data {
    flex-grow: 1;
    width: 100%;
}

.financing-page .options-section .check-list {
    width: 100%;
}

.financing-page .options-section .data dt {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted-color);
}

.financing-page .options-section .data dd {
    margin: 2px 0 14px;
    font-size: 16px;
    color: var(--heading-color);
}

.financing-page .options-section .check-list {
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
    font-size: 16px;
}

.financing-page .options-section .notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 32px 0 0;
    padding: 18px 22px;
    border-left: 4px solid var(--accent-color);
    border-radius: var(--radius);
    background: var(--second-color);
    color: var(--heading-color);
}

.financing-page .options-section .notice svg {
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: 3px;
    color: var(--accent-ink);
}

/* úver zo ŠFRB */
.financing-page .loan-section .heading {
    margin-bottom: 16px;
}

.financing-page .loan-section .data {
    margin-top: 28px;
    border-top: 1px solid var(--border-color);
}

.financing-page .loan-section .row-item {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.financing-page .loan-section dt {
    font-weight: 400;
    color: var(--muted-color);
}

.financing-page .loan-section dd {
    margin: 0;
    font-weight: 600;
    color: var(--heading-color);
}

.financing-page .loan-section .documents {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    padding: 36px;
    border-radius: var(--radius-lg);
    background: var(--third-color);
}

.financing-page .loan-section .documents .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 20px;
    border-radius: var(--radius-sm);
    background: var(--second-color);
    color: var(--accent-ink);
}

.financing-page .loan-section .documents .title {
    font-size: 24px;
}

.financing-page .loan-section .documents .check-list {
    margin-bottom: 24px;
}

/* systémové poruchy */
.financing-page .defect-section {
    background: var(--third-color);
}

.financing-page .defect-section .heading {
    margin-bottom: 16px;
}

.financing-page .defect-section .types {
    padding: 36px;
    border-radius: var(--radius-lg);
    background: var(--second-color);
}

.financing-page .defect-section .types .title {
    margin-bottom: 18px;
    font-size: 21px;
}

.financing-page .defect-section .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.financing-page .defect-section .tags li {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-icon);
    background: var(--third-color);
    font-size: 16px;
    font-weight: 500;
    color: var(--heading-color);
}

.financing-page .defect-section .types .text {
    margin: 22px 0 16px;
}

/* postup */
.financing-page .steps-section .steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.financing-page .steps-section .step {
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.financing-page .steps-section .number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: var(--radius-sm);
    background: var(--accent-color);
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-text-color);
}

.financing-page .steps-section .title {
    margin-bottom: 6px;
    font-size: 20px;
}

/* faq */
.financing-page .faq-section {
    background: var(--third-color);
}

.financing-page .faq-section .intro {
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.financing-page .faq-section .intro .text {
    margin-bottom: 20px;
}

@media (max-width: 991.98px) {
    .financing-page .loan-section .documents,
    .financing-page .faq-section .intro {
        position: static;
    }

    .financing-page .steps-section .steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .financing-page .intro-section .box,
    .financing-page .loan-section .documents,
    .financing-page .defect-section .types {
        padding: 28px;
    }

    .financing-page .steps-section .steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .financing-page .loan-section .row-item {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .financing-page .intro-section .facts li {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}

/***** ABOUT *****/

.about-page .intro-section .lead {
    margin-bottom: 18px;
}

.about-page .intro-section .image {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-page .intro-section .image img,
.about-page .intro-section .image .media-placeholder {
    width: 100%;
    aspect-ratio: 6 / 7;
    object-fit: cover;
}

.about-page .benefits-section {
    background: var(--third-color);
}

.about-page .benefits-section .card {
    height: 100%;
    padding: 32px;
    border: 0;
    border-radius: var(--radius);
    background: var(--second-color);
    transition: background-color 0.4s ease, color 0.4s ease;
}

.about-page .benefits-section .card:hover {
    background: var(--main-color);
    color: color-mix(in srgb, var(--main-text-color) 80%, transparent);
}

.about-page .benefits-section .card:hover .title {
    color: var(--main-text-color);
}

.about-page .benefits-section .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 24px;
    border-radius: var(--radius-sm);
    background: var(--third-color);
    color: var(--accent-ink);
    transition: background-color 0.4s ease, color 0.4s ease;
}

.about-page .benefits-section .card:hover .icon {
    background: var(--accent-color);
    color: var(--accent-text-color);
}

.about-page .benefits-section .title {
    margin-bottom: 8px;
    font-size: 21px;
    transition: color 0.4s ease;
}

.about-page .company-section .data {
    margin: 0;
    border-top: 1px solid var(--border-color);
}

.about-page .company-section .row-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
}

.about-page .company-section dt {
    font-weight: 400;
    color: var(--muted-color);
}

.about-page .company-section dd {
    margin: 0;
    font-weight: 600;
    color: var(--heading-color);
}

@media (max-width: 575.98px) {
    .about-page .company-section .row-item {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

/***** FAQ *****/

/* rozloženie – kategórie vľavo (sticky), otázky vpravo */
.faq-page .list-section .layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
    gap: 64px;
}

.faq-page .list-section .aside {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    display: grid;
    gap: 20px;
    max-height: calc(100vh - var(--header-height) - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

/* kategórie */
.faq-page .list-section .categories ul {
    display: grid;
    gap: 4px;
}

.faq-page .list-section .categories .link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 500;
    color: var(--heading-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.faq-page .list-section .categories .link:hover {
    background: var(--third-color);
    color: var(--accent-ink);
}

.faq-page .list-section .categories .link.active {
    background: var(--main-color);
    color: var(--main-text-color);
}

.faq-page .list-section .categories .icon {
    display: inline-flex;
    color: var(--accent-ink);
}

.faq-page .list-section .categories .link.active .icon {
    color: var(--accent-light);
}

.faq-page .list-section .categories .icon svg {
    width: 20px;
    height: 20px;
}

.faq-page .list-section .categories .label {
    flex-grow: 1;
}

.faq-page .list-section .categories .count {
    min-width: 28px;
    padding: 1px 8px;
    border-radius: var(--radius-sm);
    background: var(--third-color);
    font-size: 14px;
    text-align: center;
    color: var(--muted-color);
}

.faq-page .list-section .categories .link.active .count {
    background: color-mix(in srgb, var(--main-text-color) 14%, transparent);
    color: var(--main-text-color);
}

/* nenašli ste odpoveď */
.faq-page .list-section .help {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--main-color);
    color: color-mix(in srgb, var(--main-text-color) 75%, transparent);
}

.faq-page .list-section .help .eyebrow {
    color: var(--accent-light);
}

.faq-page .list-section .help .title {
    margin-bottom: 8px;
    font-size: 22px;
    color: var(--main-text-color);
}

.faq-page .list-section .help .text {
    margin-bottom: 16px;
    font-size: 16px;
}

.faq-page .list-section .help .phone {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 19px;
    font-weight: 600;
    color: var(--main-text-color);
}

.faq-page .list-section .help .phone:hover {
    color: var(--accent-light);
}

.faq-page .list-section .help .phone svg {
    width: 18px;
    color: var(--accent-light);
}

/* skupiny otázok */
.faq-page .list-section .groups {
    display: grid;
    gap: 56px;
}

.faq-page .list-section .group .heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
    font-size: clamp(1.5rem, 2.2vw, 1.875rem);
}

.faq-page .list-section .group .heading .icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    background: var(--accent-color);
    color: var(--accent-text-color);
}

.faq-page .list-section .group .heading .icon svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 1199.98px) {
    .faq-page .list-section .layout {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 40px;
    }
}

@media (max-width: 991.98px) {
    /* kategórie ako vodorovne posuvné štítky, box s kontaktom pod otázkami */
    .faq-page .list-section .aside {
        max-height: none;
        overflow: visible;
    }

    .faq-page .list-section .layout {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 40px;
    }

    .faq-page .list-section .aside {
        display: contents;
    }

    .faq-page .list-section .help {
        order: 3;
    }

    .faq-page .list-section .categories ul {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: thin;
    }

    .faq-page .list-section .categories .link {
        border: 1px solid var(--border-color);
        white-space: nowrap;
    }
}

/***** CONTACT *****/

.contact-page .form-section .info {
    display: grid;
    gap: 18px;
}

.contact-page .form-section .info .heading {
    margin-bottom: 10px;
}

.contact-page .form-section .item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 18px;
    font-weight: 600;
    color: var(--heading-color);
}

.contact-page .form-section a.item:hover {
    color: var(--accent-ink);
}

.contact-page .form-section .item small {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: var(--muted-color);
}

.contact-page .form-section .item .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 54px;
    height: 54px;
    border-radius: var(--radius-sm);
    background: var(--third-color);
    color: var(--accent-ink);
}

.contact-page .form-section .company {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 24px;
    margin: 10px 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--border-color);
}

.contact-page .form-section .company dt {
    font-weight: 400;
    color: var(--muted-color);
}

.contact-page .form-section .company dd {
    margin: 0;
    font-weight: 600;
    color: var(--heading-color);
}

.contact-page .form-section .register {
    font-size: 15px;
    color: var(--muted-color);
}

.contact-page .form-section .box {
    padding: clamp(28px, 4vw, 48px);
    border-radius: var(--radius-lg);
    background: var(--third-color);
}

.contact-page .form-section .box .heading {
    margin-bottom: 10px;
}

.contact-page .form-section .box > .text {
    margin-bottom: 28px;
}

.contact-page .map-section {
    padding-top: 0;
}

.contact-page .map-section .map {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--third-color);
}

.contact-page .map-section iframe {
    display: block;
    width: 100%;
    height: clamp(320px, 40vw, 460px);
    border: 0;
}

/***** 404 *****/

.not-found-page .message-section {
    padding-top: calc(var(--header-height) + 100px);
    text-align: center;
}

.not-found-page .code {
    font-size: clamp(5rem, 14vw, 9rem);
    font-weight: 300;
    line-height: 1;
    color: var(--accent-color);
}

.not-found-page .text {
    margin-bottom: 28px;
}

/***** FOOTER *****/

.footer {
    padding: 88px 0 0;
    background: var(--main-color);
    color: color-mix(in srgb, var(--main-text-color) 72%, transparent);
}

.footer a:hover {
    color: var(--accent-light);
}

/* main */
.footer .logo {
    display: inline-block;
    margin-bottom: 22px;
}

.footer .logo .image {
    height: 32px;
    width: auto;
}

.footer .about .text {
    max-width: 360px;
}

.footer .heading {
    margin-bottom: 18px;
    font-size: 18px;
    font-weight: 500;
    color: var(--main-text-color);
}

/* links */
.footer .links ul {
    display: grid;
    gap: 10px;
}

/* contact */
.footer .contact .items {
    display: grid;
    gap: 14px;
}

.footer .contact .item {
    display: flex;
    gap: 12px;
}

.footer .contact svg {
    flex: none;
    width: 20px;
    color: var(--accent-light);
    margin-top: 3px;
}

/* bottom */
.footer .bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 64px;
    padding: 24px 0;
    border-top: 1px solid color-mix(in srgb, var(--main-text-color) 12%, transparent);
    font-size: 15px;
}

.footer .credit {
    color: var(--main-text-color);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
    text-underline-offset: 4px;
}

.footer .top-link {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--accent-color);
    color: var(--accent-text-color);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
}

.footer .top-link.is-visible {
    opacity: 1;
    visibility: visible;
}

.footer .top-link:hover {
    background: var(--second-color);
    color: var(--accent-ink);
}
