* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    color: #111;
}

.hero {
    min-height: 100vh;
    padding: clamp(0.75rem, 2.2vw, 1.25rem);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #DD5714;
    background: linear-gradient(315deg, #DD5714, #EDBE7D);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.02);
    filter: saturate(1.05) contrast(1.05);
}

.hero-bg__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(80% 80% at 20% 10%, rgba(237, 190, 125, 0.35), rgba(237, 190, 125, 0) 60%),
        linear-gradient(315deg, rgba(221, 87, 20, 0.55), rgba(237, 190, 125, 0.35));
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg__video {
        display: none;
    }
}

.card {
    height: 50%;
    max-width: 1500px;
    width: 88%;
    min-height: 70vh;
    margin: 0 auto;
    border-radius: 16px;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.46);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.38);
    box-shadow:
        0 28px 65px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(221, 87, 20, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(237, 190, 125, 0.22), rgba(237, 190, 125, 0) 55%),
        radial-gradient(120% 80% at 100% 100%, rgba(221, 87, 20, 0.14), rgba(221, 87, 20, 0) 60%);
    pointer-events: none;
    z-index: 0;
}

.card>* {
    position: relative;
    z-index: 1;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem clamp(1rem, 2.2vw, 2rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    gap: 1rem;
}

.logo {
    height: 60px;
}

nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

nav button {
    border: none;
    margin-left: 0;
    font-weight: 900;
    font-family: "nexa-rust-sans-black-2", sans-serif;
    color: #1a4d2e;
    cursor: pointer;
    background: none;
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.25s ease, color 0.25s ease;
}

nav button:hover {
    border-bottom-color: white;
}

.slider-wrap {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.slider-arrow {
    display: none;
}

.slider {
    display: flex;
    width: 300%;
    flex: 1;
    min-height: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    justify-content: center;
    align-items: stretch;
}

.slide {
    flex: 0 0 33.333%;
    width: 33.333%;
    min-width: 33.333%;
    display: flex;
    min-height: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0 clamp(1rem, 3.2vw, 3rem);
    box-sizing: border-box;
    gap: 2rem;
}

.text {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 560px;
    min-height: 0;
    overflow-y: auto;
}

.text h2 {
    font-family: "nexa-rust-sans-black-2", sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: #1a4d2e;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-align: left;
}

.text p {
    margin: 0 0 0.75rem 0;
    color: #333;
    line-height: 1.6;
    font-size: 1rem;
}

.image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    width: 100%;
    max-width: 650px;
    height: 400px;
    overflow: hidden;
}

.image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.dots {
    text-align: center;
    padding: 20px;
}

.dot {
    height: 10px;
    width: 10px;
    background: #ddd;
    display: inline-block;
    border-radius: 50%;
    margin: 5px;
    cursor: pointer;
}

.dot.active {
    background: #1a4d2e;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(26, 77, 46, 0.5);
}

.slide-kontakt-wrap {
    margin-top: 1.25rem;
}

.slide-kontakt-wrap .kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 3rem;
    align-items: start;
}

.slide-kontakt-wrap .kontakt-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.slide-kontakt-wrap .kontakt-block {
    background: none;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
    margin-top: -1.5rem;
}

.slide-kontakt-wrap .kontakt-block h3 {
    margin-bottom: 0.4rem;
}

.slide-kontakt-wrap .kontakt-block p {
    margin: 0 0 0.2rem 0;
    font-size: 0.9rem;
}

.kontakt-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;

}

.kontakt-link:first-of-type {
    margin-top: 0.5rem !important;
}

.kontakt-icon {
    flex-shrink: 0;
    color: #1a4d2e;
    opacity: 0.85;
    margin-top: 0.2rem;
}

.kontakt-highlight .kontakt-link a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1a4d2e;
    text-decoration: none;
}

.kontakt-highlight .kontakt-link a:hover {
    text-decoration: underline;
}

.kontakt-link--site {
    margin-top: 0.75rem !important;
}

.kontakt-link--site a {
    font-weight: 600;
    color: #1a4d2e;
    text-decoration: none;
    font-size: 0.95rem;
}

.kontakt-link--site a:hover {
    text-decoration: underline;
}

@media (min-width: 701px) and (max-width: 1024px) {
    nav button {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }

    .card {
        width: 94%;
    }

    .slider {
        align-items: flex-start;
    }

    .slide {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 0 1.5rem 0.5rem;
        gap: 0.75rem;
        min-height: auto;
    }

    .slide-kontakt-wrap .kontakt-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1rem 1.5rem;
    }

    .slide-kontakt-wrap .kontakt-grid>.kontakt-block:first-child {
        grid-column: 1;
    }

    .slide-kontakt-wrap .kontakt-grid>.kontakt-col {
        grid-column: 2 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem 1.5rem;
    }

    .text {
        max-width: none;
    }

    .image {
        flex: none;
        width: 100%;
        max-width: none;
        height: 360px;
        max-height: 360px;
        border-radius: 10px;
    }

    .image img {
        object-fit: cover;
        object-position: center;
    }

    .kontakt-icon svg {
        width: 14px;
        height: 14px;
    }

    .slide-kontakt-wrap .kontakt-link {
        gap: 0.25rem;
    }

    .slide-kontakt-wrap .kontakt-link:first-of-type {
        margin-top: 0.4rem !important;
    }

    .slide-kontakt-wrap .kontakt-block .kontakt-link {
        margin-bottom: 0.2rem;
    }
}

@media (max-width: 700px) {
    .slide--podjetje .slide-kontakt-wrap .kontakt-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "podjetje skladisce"
            "podjetje kontakt";
        gap: 0.65rem 0.85rem;
        align-items: start;
    }

    .slide--podjetje .slide-kontakt-wrap .kontakt-col {
        display: contents;
    }

    .slide--podjetje .slide-kontakt-wrap .kontakt-grid>.kontakt-block:first-child {
        grid-area: podjetje;
    }

    .slide--podjetje .slide-kontakt-wrap .kontakt-grid>.kontakt-col>.kontakt-block:first-child {
        grid-area: skladisce;
    }

    .slide--podjetje .slide-kontakt-wrap .kontakt-grid>.kontakt-col>.kontakt-block.kontakt-highlight {
        grid-area: kontakt;
    }

    .slide-kontakt-wrap .kontakt-block {
        margin-top: -1rem;
    }

    .slide--podjetje .slide-kontakt-wrap .kontakt-block h3 {
        font-size: 0.62rem;
        margin-bottom: 0.35rem;
    }

    .slide--podjetje .slide-kontakt-wrap .kontakt-block p {
        font-size: 0.72rem;
        margin-bottom: 0.18rem;
        line-height: 1.35;
    }

    .slide--podjetje .slide-kontakt-wrap .kontakt-highlight .kontakt-link a {
        font-size: 0.72rem;
    }

    .card {
        width: 96vw;
        min-height: auto;
        height: auto;
    }

    header {
        padding: 0.75rem 0.9rem;
        gap: 0.5rem;
    }

    .logo {
        height: 42px;
    }

    nav {
        display: none;
    }

    .slider {
        flex: 0 0 auto;
        align-items: flex-start;
    }

    .slider-arrow {
        display: flex;
        position: static;
        width: 40px;
        height: 40px;
        border: none;
        color: #1a4d2e;
        cursor: pointer;
        background: transparent;
    }

    .slider-arrow:hover {
        color: #fff;
        transform: scale(1.05);
        background: transparent;
    }

    .slider-arrow:active {
        transform: scale(0.98);
    }

    .slider-arrow svg {
        flex-shrink: 0;
    }

    .slider-wrap {
        overflow-y: visible;
        min-height: 0;
    }

    .slide {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 0.75rem 0.9rem 0.5rem;
        gap: 0.5rem;
        min-height: auto;
    }

    .text {
        max-width: none;
        overflow-y: visible;
    }

    .text h2 {
        font-size: 1.1rem;
        line-height: 1.25;
    }

    .text p {
        font-size: 0.8rem;
        line-height: 1.5;
        margin-bottom: 0.5rem;
    }

    .slide-kontakt-wrap .kontakt-block h3 {
        font-size: 0.7rem;
    }

    .slide-kontakt-wrap .kontakt-block p {
        font-size: 0.78rem;
    }

    .kontakt-highlight .kontakt-link a {
        font-size: 0.82rem;
    }

    .kontakt-icon svg {
        width: 12px;
        height: 12px;
    }

    .slide-kontakt-wrap .kontakt-link {
        gap: 0.2rem;
    }

    .slide-kontakt-wrap .kontakt-link:first-of-type {
        margin-top: 0.35rem !important;
    }

    .slide-kontakt-wrap .kontakt-block .kontakt-link {
        margin-bottom: 0.12rem;
    }

    .image {
        flex: none;
        width: 100%;
        height: 200px;
        max-height: 200px;
        border-radius: 8px;
        overflow: hidden;
    }

    .image img {
        object-fit: cover;
        object-position: center;
    }

    .dots {
        padding: 10px 6px;
    }

    .dot {
        width: 8px;
        height: 8px;
        margin: 4px;
    }
}

@media (max-width: 420px) {
    .hero {
        padding: 0.6rem;
    }

    .card {
        border-radius: 14px;
    }

    .text p {
        line-height: 1.65;
    }
}

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

.kontakt-block h3 {
    font-family: "nexa-rust-sans-black-2", sans-serif;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    color: #1a4d2e;
}

.kontakt-block p {
    margin: 0 0 0.35rem 0;
    font-size: 0.95rem;
    color: #333;
}

.kontakt-highlight a {
    font-size: 1.05rem;
    font-weight: 500;
    color: #1a4d2e;
    text-decoration: none;
}

.kontakt-highlight a:hover {
    text-decoration: underline;
}