/* =========================================================
   ORMONT - main.css
   1. CSS premenné
   2. Reset a základ
   3. Layout utility
   4. Typografia
   5. Tlačidlá
   6. Header a navigácia
   7. Hero
   8. Sekcie
   9. Karty
   10. Formuláre
   11. Footer
   12. Responzivita
   13. Prístupnosť
========================================================= */


/* =========================================================
   1. CSS premenné
========================================================= */

:root {
    --color-primary: #50ac25;
    --color-primary-dark: #265f10;
    --color-primary-soft: #eaf7e4;


    --color-button-primary: var(--color-primary-dark);
    --color-button-primary-hover: #2b6514;

    --color-secondary: #0f5f73;
    --color-secondary-dark: #093947;
    --color-secondary-soft: #e5f2f4;

    --color-bg: #f7f9f5;
    --color-surface: #ffffff;
    --color-surface-soft: #eef5ea;

    --color-text: #172017;
    --color-muted: #5f6f5d;
    --color-border: #d8e3d4;

    --color-white: #ffffff;
    --color-black: #000000;

    --shadow-soft: 0 12px 30px rgb(23 32 23 / 0.08);
    --shadow-medium: 0 18px 45px rgb(23 32 23 / 0.12);

    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.25rem;

    --container: 1200px;

    --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --header-height: 5rem;
}


/* =========================================================
   2. Reset a základ
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-base);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: var(--color-primary-dark);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--color-secondary);
}

p,
ul,
ol {
    margin-top: 0;
}

p:last-child,
ul:last-child,
ol:last-child {
    margin-bottom: 0;
}

.form-error {
    margin: .35rem 0 0;
    color: #b42318;
    font-size: .9rem;
    line-height: 1.4;
}

.form input[aria-invalid="true"],
.form select[aria-invalid="true"],
.form textarea[aria-invalid="true"] {
    border-color: #b42318;
    box-shadow: 0 0 0 3px rgba(180, 35, 24, .12);
}

/* =========================================================
   3. Layout utility
========================================================= */

.container {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

.section {
    padding-block: clamp(2rem, 6vw, 4rem);
}

.section-soft {
    background: var(--color-surface-soft);
}

.split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}


/* =========================================================
   4. Typografia
========================================================= */

h1,
h2,
h3 {
    margin-top: 0;
    line-height: 1.15;
    color: var(--color-text);
}

h1 {
    max-width: 12ch;
    margin-bottom: 1rem;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -0.05em;
}

h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: -0.035em;
}

h3 {
    margin-bottom: 0.65rem;
    font-size: 1.2rem;
}

.eyebrow {
    margin-bottom: 0.75rem;
    color: var(--color-primary-dark);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: clamp(0.7rem, 2vw, .85rem);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 2rem;
}

.section-heading p {
    color: var(--color-muted);
    font-size: 1.05rem;
}


/* =========================================================
   5. Tlačidlá
========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.75rem 1.15rem;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--color-button-primary);
    color: var(--color-white);
    border-color: var(--color-button-primary);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--color-button-primary-hover);
    border-color: var(--color-button-primary-hover);
    color: var(--color-white);
}

.btn-secondary {
    background: var(--color-secondary-dark);
    color: var(--color-white);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    color: var(--color-white);
        border-color: var(--color-primary);
}


/* =========================================================
   6. Header a navigácia
========================================================= */

.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.topbar {
    background: var(--color-primary-dark);
    color: var(--color-white);
    font-size: 0.9rem;
}

.topbar__inner {
    display: flex;
    justify-content: flex-end;
    gap: 1.25rem;
    padding-block: 0.45rem;
    font-size: 0.875rem;
    font-weight: 700;
}

.topbar a {
    color: var(--color-white);
    text-decoration: none;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: var(--header-height);
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    width: clamp(5rem, 19vw, 10rem);
}

.site-nav {
    display: flex;
    align-items: center;
}

.nav-toggle {
    display: none;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-list a {
    color: var(--color-text);
    font-weight: 700;
    text-decoration: none;
}

.nav-list a:hover,
.nav-list a.is-active {
    color: var(--color-primary-dark);
}


/* =========================================================
   7. Hero
========================================================= */

.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(3rem, 7vw, 6rem);
    background:
        radial-gradient(circle at top left, rgb(80 172 37 / 0.12), transparent 32rem),
        linear-gradient(135deg, #ffffff 0%, #eef5ea 100%);
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.hero-wave-bg {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    height: 510px;
    overflow: hidden;
    pointer-events: none;
    opacity: .12;
    animation: heroWaveFloat 7s ease-in-out infinite alternate;
}

.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;

    --wave-width: 1200px;

    background-repeat: repeat-x;
    background-size: var(--wave-width) 100%;
    background-position-x: 0;
    will-change: background-position;
}

.hero-wave--front {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 110 C100 70 200 70 300 110 S500 150 600 110 S800 70 900 110 S1100 150 1200 110 V1540 H0 Z' fill='%230f5f73' fill-opacity='.6'/%3E%3C/svg%3E");
    animation: heroWaveMove 14s linear infinite;
}

.hero-wave--back {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 125 C100 95 200 95 300 125 S500 155 600 125 S800 95 900 125 S1100 155 1200 125 V1540 H0 Z' fill='%2350ac25' fill-opacity='0.5'/%3E%3C/svg%3E");
    animation: heroWaveMoveReverse 19s linear infinite;
}

@keyframes heroWaveMove {
    from {
        background-position-x: 0;
    }

    to {
        background-position-x: -1200px;
    }
}

@keyframes heroWaveMoveReverse {
    from {
        background-position-x: -1200px;
    }

    to {
        background-position-x: 0;
    }
}

/* @keyframes heroWaveFloat {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-10px);
    }
} */

@media (max-width: 900px) {
    .hero-wave {
        height: 166%;
    }

    .hero-wave-bg {
        height: 1010px;
    }
}

@media (max-width: 800px) {
    .hero-wave-bg {
        height: 860px;
    }
}

@media (max-width: 700px) {
    .hero-wave-bg {
        height: 800px;
    }
}

@media (max-width: 600px) {
    .hero-wave-bg {
        height: 700px;
    }
}

.hero__text {
    max-width: 58ch;
    margin-bottom: 1.5rem;
    color: var(--color-muted);
    font-size: 1.15rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.hero__media {
    border-radius: var(--radius-lg);
    overflow: clip;
    box-shadow: var(--shadow-medium);
    background: var(--color-surface);
}

.hero__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.section-subblock {
    margin-top: 2.5rem;
}

.section-subblock h3 {
    margin-bottom: 0.5rem;
}

.section-subblock>p {
    max-width: 720px;
    color: var(--color-muted);
    margin-bottom: 1.25rem;
}

.link-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.link-card {
    position: relative;
    display: block;
    padding: 1rem 3rem 1rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    background: var(--color-surface);
    color: var(--color-text);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.link-card::after {
    content: "→";
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--color-primary-dark);
    font-weight: 900;
    font-size: 1.15rem;
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
}

.link-card:hover::after,
.link-card:focus-visible::after {
    transform: translateX(3px);
    color: var(--color-secondary);
}

.link-card:hover,
.link-card:focus-visible {
    transform: translateY(-2px);
    border-color: var(--color-primary);
    box-shadow: 0 0.75rem 1.5rem rgba(23, 32, 23, 0.08);
}

.link-card strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--color-secondary-dark);
}

.link-card span {
    display: block;
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.feature-callout {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--color-secondary-soft), var(--color-primary-soft));
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.feature-callout>div {
    display: grid;
    gap: 2rem;
}

.feature-callout h3 {
    margin-bottom: 0.5rem;
}

.feature-callout p {
    margin: 0;
    color: var(--color-muted);
    max-width: 760px;
}

@media (max-width: 900px) {
    .link-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-callout {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .link-card-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   8. Sekcie
========================================================= */

.check-list {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 2rem;
    font-weight: 700;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    background: var(--color-primary);
}

.cta-section {
    padding-block: clamp(3rem, 6vw, 5rem);
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: var(--radius-lg);
    background: var(--color-secondary-dark);
    color: var(--color-white);
}

.cta-box h2,
.cta-box p {
    color: inherit;
}

.cta-box p {
    max-width: 58ch;
    opacity: 0.9;
}


/* =========================================================
   9. Karty
========================================================= */

.product-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: clip;
    box-shadow: var(--shadow-soft);
}

.product-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.product-card__content {
    padding: 1.25rem;
}

.product-card p {
    color: var(--color-muted);
}

.product-card-link {
    display: block;
    color: var(--color-text);
    text-decoration: none;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.product-card-link:hover,
.product-card-link:focus-visible {
    transform: translateY(-2px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-medium);
    color: var(--color-text);
}

.product-card-link h3 {
    color: var(--color-text);
}

.product-card__link {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--color-primary-dark);
    font-weight: 800;
    /* text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em; */
}

.product-card-link:hover .product-card__link,
.product-card-link:focus-visible .product-card__link {
    color: var(--color-secondary);
}

/* =========================================================
   10. Formuláre
========================================================= */

.form {
    display: grid;
    gap: 1rem;
}

.form-field {
    display: grid;
    gap: 0.4rem;
}

.form-field label {
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    color: var(--color-text);
}

textarea {
    min-height: 9rem;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgb(80 172 37 / 0.25);
    border-color: var(--color-primary);
}

.form-inline {
    display: flex;
    gap: 0.75rem;
    align-items: end;
}

.form-inline .form-field {
    flex: 1;
}
/* posunutie pozície formulára po odoslaní */
/* #formular {
    scroll-margin-top: unset;
} */
/* =========================================================
   breadcrumbs
========================================================= */
.product-hero__breadcrumbs {
    margin-bottom: 3.5rem;
}

.breadcrumbs {
    margin: 0;
    font-size: .9rem;
    color: rgba(7, 29, 22, .75);
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    color: var(--color-muted, #6b7280);
}

.breadcrumbs a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: .18em;
}

.breadcrumbs [aria-current="page"] {
    color: var(--color-text, #071d16);
    font-weight: 700;
}


/* =========================================================
   11. Footer
========================================================= */

.site-footer {
    padding-block: 3rem 1.25rem;
    background: #111a12;
    color: rgb(255 255 255 / 0.82);
}

.site-footer a {
    color: var(--color-white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 0.8fr 0.9fr;
    gap: 2rem;
    justify-items: start;
}



.footer-title {
    margin-bottom: 0.75rem;
    color: var(--color-white);
    font-size: 1rem;
    letter-spacing: 0;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgb(255 255 255 / 0.16);
    font-size: 0.9rem;
}

.footer-links {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.footer-bottom-text {
    display: flex;
    justify-content: space-between;  
}
.footer-bottom-text a {
    text-decoration: none;
}
/* =========================================================
   Galéria produktov
========================================================= */
.product-gallery {
    columns: 3 260px;
    column-gap: 1rem;
}

.product-gallery__item {
    break-inside: avoid;
    margin: 0 0 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.product-gallery__button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.product-gallery__button img {
    width: 100%;
    height: auto;
    display: block;
}

.product-gallery__item figcaption {
    padding: 0.75rem 0.9rem;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.product-gallery-block+.product-gallery-block {
    margin-top: 3rem;
}

.product-gallery-block h3 {
    margin-bottom: 1rem;
}

.section-heading--small {
    margin-bottom: 1.5rem;
}

.section-heading--small h3 {
    margin-bottom: 0.5rem;
}

/* =========================================================
   Lightbox galérie produktov
========================================================= */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgb(0 0 0 / 0.86);
}

.gallery-lightbox.is-open {
    display: flex;
}

.gallery-lightbox__figure {
    max-width: min(1100px, 100%);
    max-height: 90vh;
    margin: 0;
    color: white;
}

.gallery-lightbox__img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    margin-inline: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 70px rgb(0 0 0 / 0.4);
}

.gallery-lightbox__caption {
    margin-top: 0.75rem;
    text-align: center;
    color: rgb(255 255 255 / 0.9);
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
    position: absolute;
    border: 0;
    background: rgb(255 255 255 / 0.12);
    color: white;
    cursor: pointer;
}

.gallery-lightbox__close {
    top: 1rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    font-size: 2rem;
    line-height: 1;
}

.gallery-lightbox__nav {
    top: 50%;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    transform: translateY(-50%);
    font-size: 2.4rem;
    line-height: 1;
}

.gallery-lightbox__nav--prev {
    left: 1rem;
}

.gallery-lightbox__nav--next {
    right: 1rem;
}

@media (max-width: 700px) {
    .gallery-lightbox__nav {
        top: auto;
        bottom: 1rem;
        transform: none;
    }

    .gallery-lightbox__figure {
        max-height: 82vh;
    }

    .gallery-lightbox__img {
        max-height: 70vh;
    }
}

/* =========================================================
   Product marquee
========================================================= */

.product-marquee {
    --marquee-gap: 1rem;

    position: relative;
    bottom: -44px;
    width: 100%;
    overflow: hidden;
    margin-inline: auto;
    padding-block: .25rem;
    mask-image: linear-gradient(90deg,
            transparent,
            #000 8%,
            #000 92%,
            transparent);
}

.product-marquee__track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: productMarqueeTrack 60s linear infinite alternate-reverse;
}

.product-marquee__group {
    display: flex;
    align-items: center;
    gap: var(--marquee-gap);
    flex-shrink: 0;
    padding-right: var(--marquee-gap);
}

.product-marquee__card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.4rem;
    padding: .25rem 1.5rem;
    border-radius: 999px;
    color: var(--color-text);
    font-size: clamp(.875rem, 2vw, 1.3rem);
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    opacity: .55;
    /* box-shadow:
        inset 0 0 0 1px #347a18,
        3px 4px 10px -5px rgb(0 0 0 / .75);
    background: rgb(255 255 255 / .35); */
    transition:
        opacity .2s ease,
        background-color .2s ease,
        transform .2s ease;
    font-family: monospace;
}

.product-marquee__card:hover,
.product-marquee__card:focus-visible {
    opacity: 1;
    /* background: rgb(255 255 255 / .75); */
    transform: translateY(-1px);
}

.product-marquee__card:focus-visible {
    outline: 3px solid rgb(52 122 24 / .35);
    outline-offset: 4px;
}

.product-marquee:hover .product-marquee__track {
    animation-play-state: paused;
}

@keyframes productMarqueeTrack {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (max-width: 900px) {
    .product-marquee {
        bottom: -33px;
    }
}

@media (max-width: 620px) {
    .product-marquee {
        bottom: -25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-marquee {
        overflow-x: auto;
        mask-image: none;
    }

    .product-marquee__track {
        animation: none;
    }

    .product-marquee__group[aria-hidden="true"] {
        display: none;
    }
}

/* =========================================================
   Subpage hero
========================================================= */
.subpage-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: clamp(430px, 48vw, 530px);
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgb(234 245 232 / .95), rgb(248 252 247 / .95));
}

.subpage-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: max(-22rem, 0vw);
    top: 59%;
    width: 93vw;
    /* height: min(34rem, 44vw); */
    border-radius: 0 999px 999px 0;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgb(52 122 24 / .11), rgb(10 54 71 / .08));
    height: 100%;
}

.subpage-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -8rem;
    top: 1rem;
    width: 34rem;
    height: 34rem;
    opacity: .22;
    background-image:
        linear-gradient(rgb(52 122 24 / .22) 1px, transparent 1px),
        linear-gradient(90deg, rgb(52 122 24 / .22) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(circle, #000 0 45%, transparent 72%);
}

.subpage-hero__inner {
    max-width: 760px;
}

.subpage-hero h1 {
    max-width: 13ch;
}

@media (max-width: 700px) {
    .subpage-hero {
        min-height: auto;
        padding: 4rem 0;
        align-items: flex-start;
    }

    .subpage-hero::after {
        right: -18rem;
        top: 0;
        opacity: .12;
    }

    .subpage-hero h1 {
        max-width: 12ch;
    }
}

@media (max-width: 480px) {
    .subpage-hero {
        padding: 3.5rem 0;
    }

    .subpage-hero::after {
        right: -22rem;
        opacity: .10;
    }

    .subpage-hero .hero__actions {
        margin-top: 1.25rem;
    }
}

/* =========================================================
   Prehľad produktov
========================================================= */

.page-hero {
    padding-block: clamp(3rem, 7vw, 5.5rem);
    background:
        radial-gradient(circle at top left, rgb(80 172 37 / 0.12), transparent 30rem),
        linear-gradient(135deg, #ffffff 0%, #eef5ea 100%);
}

.page-hero__inner {
    max-width: 850px;
}

.page-hero h1 {
    max-width: 13ch;
    margin-bottom: 1rem;
}

.page-hero__text {
    max-width: 64ch;
    color: var(--color-muted);
    font-size: 1.15rem;
}

.product-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.product-card--featured {
    grid-column: span 2;
}

.product-card--link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.product-card--link:hover,
.product-card--link:focus-visible {
    transform: translateY(-2px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-medium);
    color: var(--color-text);
}

.product-card__more {
    display: inline-flex;
    margin-top: auto;
    color: var(--color-primary-dark);
    font-weight: 700;
}

.product-card--link:hover .product-card__more,
.product-card--link:focus-visible .product-card__more {
    text-decoration: underline;
}

.product-card--link:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--color-primary), transparent 35%);
    outline-offset: 4px;
}

@media (max-width: 900px) {
    h1 {
        max-width: 20ch;
    }

    .product-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card--featured {
        grid-column: span 2;
    }
}

@media (max-width: 620px) {
    .product-list-grid {
        grid-template-columns: 1fr;
    }

    .product-card--featured {
        grid-column: auto;
    }
}

/* =========================================================
   Služby
========================================================= */

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.process-card {
    position: relative;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.process-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    min-height: 2.5rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: var(--color-primary-soft);
    color: var(--color-primary-dark);
    font-weight: 900;
}

.process-card h3 {
    margin-bottom: 0.6rem;
}

.process-card p {
    color: var(--color-muted);
}

.mini-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.mini-card {
    display: block;
    padding: 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    color: var(--color-text);
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.mini-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-primary);
    color: var(--color-text);
    box-shadow: var(--shadow-medium);
}

.mini-card h3 {
    color: var(--color-primary-dark);
}

.mini-card p {
    color: var(--color-muted);
}

@media (max-width: 900px) {

    .process-grid,
    .mini-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {

    .process-grid,
    .mini-card-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   5 krokov
========================================================= */

.process {
    position: relative;
    overflow: hidden;
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: 2rem;
    background:
        radial-gradient(circle at top left, rgb(80 172 37 / 0.22), transparent 22rem),
        linear-gradient(135deg, #0f2f4a 0%, var(--color-secondary-dark) 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-medium);
}

.process::after {
    content: "";
    position: absolute;
    right: -6rem;
    bottom: -6rem;
    width: 16rem;
    height: 16rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.08);
    pointer-events: none;
}

.process__heading {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    max-width: none;
}

.process__heading-text {
    max-width: 760px;
}

.process__heading-logo {
    flex: 0 0 auto;
    width: clamp(4.5rem, 8vw, 7rem);
    opacity: .9;
}

.process .eyebrow,
.process h2,
.process h3,
.process p {
    color: var(--color-white);
}

.process .eyebrow {
    opacity: 0.9;
}

.process__heading p {
    max-width: 64ch;
    opacity: 0.88;
}

.process__heading-logo img {
    width: 100%;
    height: auto;
}

@media (max-width: 700px) {
    .process__heading {
        gap: 1rem;
    }

    .process__heading-logo {
        width: 4.5rem;
        opacity: .55;
    }
}

@media (max-width: 520px) {
    .process__heading-logo {
        display: none;
    }
}

.steps {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 2rem;
}

.step {
    min-width: 0;
    padding: 1rem;
    border: 1px solid rgb(255 255 255 / 0.18);
    border-radius: 1.125rem;
    background: rgb(255 255 255 / 0.12);
}

.step strong {
    display: inline-grid;
    place-items: center;
    width: 2.125rem;
    height: 2.125rem;
    margin-bottom: 0.7rem;
    border-radius: 999px;
    background: var(--color-white);
    color: var(--color-primary-dark);
    font-weight: 900;
}

.step h3 {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.step p {
    font-size: 0.95rem;
    opacity: 0.88;
}

@media (max-width: 1200px) {
    .steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

/* =========================================================
   Kontakt
========================================================= */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.contact-main {
    min-width: 0;
}

.contact-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.contact-card {
    padding: 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.contact-card h3 {
    margin-bottom: 0.75rem;
}

.contact-card address {
    font-style: normal;
}

.contact-card__note {
    margin-top: 0.5rem;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.contact-aside {
    display: grid;
    gap: 1rem;
    position: sticky;
    top: 1rem;
}

.company-data {
    display: grid;
    gap: 0.85rem;
    margin: 0;
}

.company-data div {
    display: grid;
    gap: 0.15rem;
}

.company-data dt {
    color: var(--color-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.company-data dd {
    margin: 0;
    color: var(--color-text);
    font-weight: 800;
}

.map-card {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.map-card iframe {
    display: block;
    width: 100%;
    min-height: 420px;
    border: 0;
}

.map-link-wrap {
    margin-top: 1rem;
}

/* =========================================================
   12. Responzivita
========================================================= */

@media (max-width: 900px) {

    .hero__inner,
    .split {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-div-firm {
        grid-area: footerFirm;
    }

    .footer-div-contact {
        grid-area: footerContact;
    }

    .footer-div-firm-data {
        grid-area: footerFirmData;
    }

    .footer-div-social {
        grid-area: footerSocial;
    }

    .footer-div-legal {
        grid-area: footerLegal;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "footerFirm footerFirm"
            "footerContact footerFirmData"
            "footerSocial footerLegal";
        justify-items: start;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-aside {
        position: static;
    }

    .contact-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .topbar__inner {
        justify-content: center;
        flex-wrap: wrap;
    }

    .header-main {
        min-height: 4.5rem;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.6rem 0.9rem;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-sm);
        background: var(--color-white);
        color: var(--color-text);
        font-weight: 700;
    }

    .nav-list {
        display: none;
        position: absolute;
        inset-inline: 1rem;
        top: 7.2rem;
        z-index: 20;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.75rem;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        background: var(--color-white);
        box-shadow: var(--shadow-soft);
    }

    .nav-list.is-open {
        display: flex;
    }

    .nav-list a {
        display: block;
        padding: 0.75rem;
    }

    .cta-box {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .topbar__inner {
        justify-content: center;
        gap: 0.75rem;
        font-size: 0.8rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .form-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-div-firm {
        grid-area: footerFirm;
    }

    .footer-div-contact {
        grid-area: footerContact;
    }

    .footer-div-firm-data {
        grid-area: footerFirmData;
    }

    .footer-div-social {
        grid-area: footerSocial;
    }

    .footer-div-legal {
        grid-area: footerLegal;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "footerFirm footerFirm"
            "footerContact footerFirmData"
            "footerSocial footerLegal";
        justify-items: start;
    }

    .contact-card-grid {
        grid-template-columns: 1fr;
    }

    .map-card iframe {
        min-height: 320px;
    }
}

@media (max-width: 400px) {
    .footer-grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "footerFirm"
            "footerContact"
            "footerFirmData"
            "footerSocial"
            "footerLegal";
    }

    .footer-div-contact,
    .footer-div-firm-data,
    .footer-div-social,
    .footer-div-legal {
        width: 100%;
        text-align: center;
    }

    .footer-links {
        justify-items: center;
    }
}

/* =========================================================
   13. Prístupnosť
========================================================= */

.skip-link {
    position: absolute;
    left: 1rem;
    top: 1rem;
    z-index: 999;
    padding: 0.75rem 1rem;
    background: var(--color-white);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid rgb(133 126 16);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* =========================================================
   Produktové stránky
========================================================= */

.product-hero {
    padding-block: clamp(3rem, 7vw, 6rem);
    background:
        radial-gradient(circle at top left, rgb(80 172 37 / 0.12), transparent 32rem),
        linear-gradient(135deg, #ffffff 0%, #eef5ea 100%);
}

.product-hero__inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.content-main {
    max-width: 760px;
}

.content-main h2 {
    margin-top: 2.5rem;
}

.content-main h2:first-child {
    margin-top: 0;
}

.content-main h3 {
    margin-top: 1.75rem;
}

.content-aside {
    display: grid;
    gap: 1rem;
    position: sticky;
    top: 1rem;
}

.info-card {
    padding: .85rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.info-card h2 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    letter-spacing: 0;
}

.download-list {
    display: grid;
    gap: 0.75rem;
    margin: 0 0 1rem 0;
    padding-left: 1.1rem;
}

.download-list a {
    display: inline-grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    max-width: 100%;
}

.download-list img {
    flex: 0 0 auto;
}

.file-type {
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 900px) {

    .product-hero__inner,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .content-aside {
        position: static;
    }
}

/* =========================================================
   Cenová ponuka
========================================================= */

.inquiry-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.inquiry-main {
    min-width: 0;
}

.inquiry-aside {
    display: grid;
    gap: 1rem;
    position: sticky;
    top: 1rem;
}

.inquiry-form {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

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

.form-help,
.form-note {
    color: var(--color-muted);
    font-size: 0.95rem;
}

.form-help {
    margin-top: 0.15rem;
}

.form-note {
    margin: 0;
}

.checkbox-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
}

.checkbox-field input {
    width: 1.1rem;
    min-height: auto;
    margin-top: 0.2rem;
    accent-color: var(--color-primary);
}

.checkbox-field label {
    font-weight: 700;
}

.form-alert {
    margin-bottom: 1rem;
    padding: 1rem 1.15rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.form-alert ul {
    margin: 0.5rem 0 0;
}

.form-alert--success {
    border-color: rgb(80 172 37 / 0.45);
    background: rgb(80 172 37 / 0.10);
}

.form-alert--error {
    border-color: rgb(180 40 40 / 0.35);
    background: rgb(180 40 40 / 0.08);
}

.inquiry-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 900px) {
    .inquiry-layout {
        grid-template-columns: 1fr;
    }

    .inquiry-aside {
        position: static;
    }
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   13. Právne informačné stránky a 404
========================================================= */

.legal-hero h1,
.not-found-hero h1 {
    max-width: 14ch;
}

.legal-layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.35fr) 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.legal-aside {
    position: sticky;
    top: 1.5rem;
}

.legal-content {
    display: grid;
    gap: 1rem;
}

.legal-content--single {
    max-width: 920px;
}

.legal-card,
.not-found-grid .info-card {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.legal-card h2 {
    font-size: clamp(1.35rem, 3vw, 1.9rem);
}

.legal-card p:last-child,
.not-found-grid .info-card p:last-child {
    margin-bottom: 0;
}

.legal-card a,
.checkbox-field a {
    color: var(--color-primary-dark);
    font-weight: 800;
    text-underline-offset: .18em;
}

.legal-nav a {
    color: var(--color-text);
    font-weight: 700;
}

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

@media (max-width: 900px) {
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-aside {
        position: static;
    }
}

@media (max-width: 620px) {
    .not-found-grid {
        grid-template-columns: 1fr;
    }
}
