/* ---------- Fonts ---------- */
@font-face {
    font-family: 'Exo 2';
    src: url('res/Exo2-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Exo 2';
    src: url('res/Exo2-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-orange: #f78d11;
    --color-text: #3a3a3a;
    --color-muted: #9a9a9a;
    --color-card-bg: #f6f8f7;
    --color-card-border: #b2b2b2;
    --color-page-bg: #ffffff;
    --card-radius: 7%;
    --max-width: 1200px;
    --header-height: 51px;
}

html,
body {
    overflow-x: hidden;
    font-family: 'Exo 2', 'Montserrat', sans-serif;
    font-weight: 200;
    color: var(--color-text);
    background-color: var(--color-page-bg);
    background-image: url('res/bg_pattern_mixed.png');
    background-repeat: repeat;
    background-size: auto;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ---------- Header / Nav ---------- */
.site-header {
    width: 100%;
    background-color: var(--color-card-bg);
    border-bottom: 1px solid var(--color-card-border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 12px 32px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-logo img {
    height: 22px;
    width: auto;
}

.nav-toggle {
    display: none;
}

.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    padding: 0;
}

.nav-burger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #000;
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-dropdown {
    display: contents;
}

.nav-links {
    display: flex;
    flex: 1;
    gap: 25px;
    justify-content: flex-start;
}

.nav-links a {
    font-size: 24px;
    font-weight: lighter;
    color: #000;
    transition: color 0.15s ease;
}

.nav-links a:hover, .selected {
    color: var(--color-orange)!important;
}

.nav-langs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lang {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: var(--color-card-border);
    opacity: 0.5;
    transition: opacity 0.15s ease;
    border-radius: 5px;
}

.lang--active,
.lang:hover {
    opacity: 1;
}

.lang img {
    position: absolute;
    inset: 1px;
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    object-fit: cover;
    border-radius: 3px;
}

/* ---------- Hero ---------- */
.hero {
    width: 100%;
    height: calc(100vh - var(--header-height));
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1a1a1a;
    border-bottom: 1px solid var(--color-card-border);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Intro ---------- */
.intro {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 32px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.intro-badge {
    position: relative;
    width: 220px;
    height: 220px;
    margin-top: -110px;
    margin-bottom: 32px;
    background-color: var(--color-card-border);
    clip-path: polygon(7% 0, 100% 0, 100% 93%, 93% 100%, 0 100%, 0 7%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.intro-badge::before {
    content: '';
    position: absolute;
    inset: 1px;
    background-color: var(--color-card-bg);
    clip-path: polygon(7% 0, 100% 0, 100% 93%, 93% 100%, 0 100%, 0 7%);
    z-index: 0;
}

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

.intro-badge img {
    width: 100%;
    height: auto;
}

.intro-text {
    font-size: 20px;
    font-weight: 200;
    line-height: 1.6;
    color: #000;
    text-shadow: 0 0 3px #f6f8f7;
}

.accent {
    color: var(--color-orange);
}

/* ---------- Section title ---------- */
.section-title {
    font-family: 'Exo 2', sans-serif;
    font-weight: 800;
    font-size: 54px;
    color: var(--color-card-border);
    text-align: center;
    letter-spacing: 0.5px;
    margin-bottom: 36px;
}

/* ---------- Product kits ---------- */
.product-kit {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kit-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    width: 100%;
    flex-wrap: wrap;
}

.kit-plus {
    font-size: 50px;
    font-weight: 800;
    color: #9a9a9a;
    flex-shrink: 0;
    align-self: center;
}

.kit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    flex: 1 1 160px;
    max-width: 220px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.kit-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--color-card-border);
    clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%, 0 7%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.kit-card::before {
    content: '';
    position: absolute;
    inset: 1px;
    background-color: var(--color-card-bg);
    clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%, 0 7%);
    z-index: 0;
}

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

.kit-card img {
    position: absolute;
    inset: 1px;
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    object-fit: cover;
    clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%, 0 7%);
    z-index: 1;
}

.kit-item figcaption, .partner figcaption {
    font-size: 24px;
    color: #9a9a9a;
    background-color: rgba(179, 179, 179, 0.2);
    text-align: center;
    padding: 6px 12px;
    width: 100%;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
    font-weight: bold;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid var(--color-card-border);
}

/* 13" kit uses only two items – keep them sized similarly to the 10" row */
.kit-row--two .kit-item {
    max-width: 260px;
}

/* ---------- Partners ---------- */
.partners {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.partners-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
    width: 100%;
}

.partner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    flex: 1 1 180px;
    max-width: 220px;
}

.partner-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--color-card-border);
    clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%, 0 7%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.partner-card::before {
    content: '';
    position: absolute;
    inset: 1px;
    background-color: var(--color-card-bg);
    clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%, 0 7%);
    z-index: 0;
}

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

.partner-card img {
    position: absolute;
    inset: 1px;
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    object-fit: cover;
    clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%, 0 7%);
    z-index: 1;
}

/* ---------- Contact ---------- */
.contact {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 32px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-orange);
    color: var(--color-card-bg);
    font-size: 17px;
    font-weight: 800;
    padding: 16px 48px;
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.contact-btn:hover {
    background-color: #e07f08;
    transform: translateY(-1px);
}

/* ---------- Product page ---------- */
.product {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 32px 100px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.product-title {
    font-family: 'Exo 2', sans-serif;
    font-weight: 800;
    font-size: 72px;
    color: var(--color-orange);
    letter-spacing: 0.5px;
    line-height: 1.05;
}

.product-overview {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.product-card {
    position: relative;
    flex: 1 1 60%;
    aspect-ratio: 4 / 3;
    background-color: var(--color-card-border);
    clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%, 0 7%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 1px;
    background-color: var(--color-card-bg);
    clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%, 0 7%);
    z-index: 0;
}

.product-card img {
    position: absolute;
    inset: 1px;
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    object-fit: cover;
    clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%, 0 7%);
    z-index: 1;
}

.product-card--small {
    flex: 1 1 200px;
    max-width: 220px;
    aspect-ratio: 1 / 1;
}

.product-specs {
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0;
    padding-top: 12px;
}

.spec {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 17px;
    font-weight: 200;
    color: #666;
}

.spec-value {
    font-family: 'Exo 2', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--color-orange);
    margin: 0;
}

.product-description {
    font-size: 17px;
    font-weight: 200;
    line-height: 1.6;
    color: #000;
    max-width: 760px;
}

.product-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.product-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.product-actions .contact-btn {
    min-width: 280px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .nav {
        flex-wrap: wrap;
        gap: 0;
        padding: 0;
    }

    .nav-logo {
        display: flex;
        align-items: center;
        padding-left: 20px;
        min-height: 48px;
    }

    .nav-burger {
        display: flex;
        align-items: center;
        margin-left: auto;
        margin-right: 20px;
    }

    .nav-dropdown {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--color-card-bg);
        border-bottom: 1px solid var(--color-card-border);
    }

    .nav-toggle:checked ~ .nav-dropdown {
        display: flex;
    }

    .nav-dropdown .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .nav-links li {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        padding: 0 20px;
        text-align: center;
        border-top: 1px solid var(--color-card-border);
    }

    .nav-dropdown .nav-langs {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        min-height: 48px;
        padding: 0 20px;
        border-top: 1px solid var(--color-card-border);
    }

    .lang {
        width: 26px;
        height: 26px;
    }

    .nav-toggle:checked ~ .nav-burger span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .nav-toggle:checked ~ .nav-burger span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked ~ .nav-burger span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .section-title {
        font-size: 36px;
    }

    .kit-plus {
        display: none;
    }

    .kit-row {
        gap: 12px;
    }

    .kit-item,
    .kit-row--two .kit-item,
    .partner {
        flex: 0 0 calc(50% - 6px);
        max-width: calc(50% - 6px);
    }

    .partners-row {
        gap: 12px;
    }

    .product-kit,
    .partners {
        padding: 24px 20px;
    }

    .contact {
        padding: 24px 20px 60px;
    }

    .intro {
        padding: 0 20px 40px;
    }

    .product {
        padding: 28px 20px 60px;
        gap: 28px;
    }

    .product-title {
        font-size: 48px;
    }

    .product-overview {
        flex-direction: column;
        gap: 24px;
    }

    .product-card {
        flex: 1 1 100%;
        width: 100%;
    }

    .product-specs {
        flex: 1 1 100%;
        width: 100%;
        padding-top: 0;
    }

    .product-gallery {
        gap: 12px;
    }

    .product-card--small {
        flex: 0 0 calc(33.333% - 8px);
        max-width: calc(33.333% - 8px);
    }

    .product-actions .contact-btn {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 560px) {
    .kit-row,
    .partners-row {
        gap: 12px;
    }

    .section-title {
        font-size: 35px;
    }

    .intro-badge {
        width: 50vw;
        height: 50vw;
        margin-top: -25vw;
    }

    .product-kit,
    .partners {
        padding: 16px 14px;
    }

    .contact {
        padding: 16px 14px 40px;
    }

    .intro {
        padding: 0 14px 28px;
    }

    .product {
        padding: 20px 14px 40px;
    }

    .product-title {
        font-size: 36px;
    }

    .product-card--small {
        flex: 0 0 calc(50% - 6px);
        max-width: calc(50% - 6px);
    }
}

/* ---------- Lightbox ---------- */
.product-card--small {
    cursor: pointer;
}

.lightbox {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

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

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: transparent;
    border: none;
    color: #f6f8f7;
    cursor: pointer;
    font-family: 'Exo 2', sans-serif;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 0.6;
}

.lightbox-close {
    top: 20px;
    right: 24px;
    width: 48px;
    height: 48px;
    font-size: 48px;
    font-weight: 200;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 80px;
    font-size: 80px;
    font-weight: 200;
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

@media (max-width: 560px) {
    .lightbox-close {
        top: 8px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 40px;
    }

    .lightbox-prev { left: 4px; }
    .lightbox-next { right: 4px; }

    .lightbox-prev,
    .lightbox-next {
        width: 44px;
        height: 64px;
        font-size: 60px;
    }
}
