/* ---------- Fonts ---------- */
@font-face {
    font-family: 'Montserrat';
    src: url('res/fonts/Montserrat-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('res/fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('res/fonts/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --color-orange: #ff3900;
    --color-text: #f7f7f7;
    --color-muted: #c9cbcf;
    --color-card-bg: #525356;
    --color-card-border: #c9cbcf;
    --color-page-bg: #24262d;
    --color-footer-bg: #c9cbcf;
    --card-radius: 7%;
    --max-width: 1200px;
    --header-height: 51px;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
    font-family: 'Montserrat', 'Montserrat', sans-serif;
    font-weight: 300;
    color: var(--color-text);
    background-color: var(--color-page-bg);
    background-image: url('res/bg_pattern_mixed_dark.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: var(--color-text);
    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: 18px;
    font-weight: 500;
    color: var(--color-text);
    transition: color 0.15s ease;
}

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

.has-submenu {
    position: relative;
}

.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (min-width: 861px) {
    .submenu {
        position: absolute;
        top: 100%;
        left: 0;
        display: none;
        flex-direction: column;
        min-width: 180px;
        padding: 8px 0;
        background-color: var(--color-card-bg);
        border: 1px solid var(--color-card-border);
        z-index: 20;
    }

    .has-submenu:hover .submenu,
    .has-submenu:focus-within .submenu {
        display: flex;
    }

    .submenu li {
        padding: 0;
    }

    .submenu a {
        display: block;
        padding: 8px 16px;
        font-size: 16px;
        white-space: nowrap;
    }
}

.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: var(--color-card-border);
    border-bottom: 3px 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--standalone {
    padding-top: 40px;
}

.intro--standalone .intro-text {
    text-shadow: none;
}

.intro-badge {
    position: relative;
    width: 220px;
    height: 220px;
    margin-top: 50px;
    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: var(--color-text);
    /* text-shadow: 0 0 3px #f6f8f7; */
}

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

/* Icon-led benefit list under the intro paragraph */
.intro-benefits {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 28px;
    width: 100%;
    text-align: left;
}

.intro-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.5;
    color: var(--color-text);
}

.intro-benefits img {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    object-fit: contain;
    align-self: center;
}

.intro-benefits strong {
    font-weight: 800;
}

/* ---------- Linktree ---------- */
.linktree {
    max-width: 460px;
    margin: 0 auto;
    padding: 48px 24px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.linktree-badge {
    margin-top: 0;
    flex-shrink: 0;
}

.linktree-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.linktree-btn {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    text-align: center;
    word-break: break-word;
}

@media (max-width: 560px) {
    .linktree {
        padding: 32px 20px 48px;
        gap: 32px;
    }

    .linktree-badge {
        width: 50vw;
        height: 50vw;
    }
}

/* ---------- Contact card (digital business card) ---------- */
.vcard-page {
    background-color: var(--color-text);
    background-image:
        linear-gradient(to right, rgba(247, 247, 247, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(247, 247, 247, 0.035) 1px, transparent 1px);
    background-size: 120px 120px;
}

.vcard {
    max-width: 700px;
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    padding: 48px 24px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.vcard-card {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 40px 36px;
    background-color: var(--color-card-border);
    color: var(--color-card-bg);
    clip-path: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px);
}

.vcard-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(247, 247, 247, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(247, 247, 247, 0.05) 1px, transparent 1px);
    background-size: 84px 84px;
    pointer-events: none;
}

.vcard-logo,
.vcard-body {
    position: relative;
    z-index: 1;
}

.vcard-logo {
    flex: 0 0 36%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.vcard-logo-mark {
    width: 100%;
    max-width: 240px;
}

.vcard-logo-word {
    width: 86%;
    max-width: 206px;
}

.vcard-body {
    flex: 1 1 auto;
    min-width: 0;
    border-left: 3px solid var(--color-orange);
    padding-left: 32px;
}

.vcard-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.vcard-role {
    margin-top: 12px;
    font-weight: 500;
    font-size: 17px;
    line-height: 1.5;
    color: var(--color-footer-bg);
}

.vcard-contacts {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vcard-contact {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 18px;
    font-weight: 500;
    color: var(--color-card-bg);
    transition: color 0.15s ease;
}

.vcard-contact:hover {
    color: var(--color-orange);
}

.vcard-contact-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-orange);
    border-radius: 50%;
    color: var(--color-orange);
}

.vcard-contact-icon svg {
    width: 19px;
    height: 19px;
}

.vcard-contact-text {
    min-width: 0;
    word-break: break-word;
}

.vcard-save {
    width: 100%;
    gap: 12px;
    padding-left: 24px;
    padding-right: 24px;
    text-align: center;
}

.vcard-save svg {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
}

.vcard-socials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
}

.vcard-social {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    background-color: var(--color-card-border);
    color: var(--color-card-bg);
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
    transition: color 0.15s ease, transform 0.15s ease;
}

.vcard-social svg {
    width: 28px;
    height: 28px;
}

.vcard-social:hover {
    color: var(--color-orange);
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .vcard {
        padding: 32px 20px 48px;
        gap: 20px;
    }

    .vcard-card {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        padding: 28px 24px 32px;
    }

    .vcard-logo {
        flex: 0 0 auto;
    }

    .vcard-logo {
        gap: 16px;
    }

    .vcard-logo-mark {
        max-width: 190px;
    }

    .vcard-logo-word {
        max-width: 164px;
    }

    .vcard-body {
        border-left: none;
        border-top: 3px solid var(--color-orange);
        padding-left: 0;
        padding-top: 24px;
    }

    .vcard-name {
        font-size: 28px;
    }

    .vcard-role {
        font-size: 16px;
    }

    .vcard-contacts {
        margin-top: 28px;
    }

    .vcard-contact {
        font-size: 16px;
        gap: 14px;
    }

    .vcard-contact-icon {
        width: 36px;
        height: 36px;
    }

    .vcard-socials {
        gap: 12px;
    }

    .vcard-social {
        height: 56px;
    }
}

/* ---------- Section title ---------- */
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 54px;
    text-align: center;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--color-card-border);
    width: 100%;
    text-align: left;
    background-color: rgba(179, 179, 179, 0.2);
    padding: 12px 30px;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px)
}

/* ---------- Product kits ---------- */
.product-kit {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 12px 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: var(--color-card-border);
    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;
    line-height: 1.2;
    color: var(--color-orange);
    background-color: rgba(179, 179, 179, 0.2);
    text-align: center;
    padding: 6px 12px;
    width: 100%;
    min-height: calc(24px * 1.2 * 3.2 + 8px);
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
    font-weight: 800;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid var(--color-card-border);
}

.partner-card, .partner-card::before, .partner-card > img, .intro-badge, .intro-badge::before {
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%)!important;
}

.partner figcaption {
    color: var(--color-text);
    background-color: transparent;
    border-bottom-width: 0;
}

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

/* Category listing: three larger cards per row, each with a description */
.kit-row--three {
    gap: 20px;
    align-items: stretch;
}

.kit-row--three .kit-item {
    flex: 0 0 calc((100% - 40px) / 3);
    max-width: calc((100% - 40px) / 3);
    align-items: stretch;
}

/* Title reads left-aligned on the wider category cards, and the description
   continues the card surface below it — so the caption drops its chamfer and
   the description carries it instead. */
.kit-row--three figcaption {
    text-align: left;
    justify-content: flex-start;
    min-height: 0;
    clip-path: none;
    border-bottom: none;
    padding: 18px 12px 6px;
}

.kit-desc {
    width: 100%;
    /* grows to fill the tallest card in the row, so every card ends at the
       same height and shorter texts simply gain space below them */
    flex: 1 1 auto;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.5;
    color: var(--color-text);
    text-align: left;
    background-color: rgba(179, 179, 179, 0.2);
    padding: 12px 12px 18px;
    border-bottom: 1px solid var(--color-card-border);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
    transition: background-color 0.15s ease;
}

/* Hover (class applied by kit-hover.js) tints the whole card surface,
   not just the title bar. */
.kit-item.is-hovered figcaption,
.kit-item.is-hovered .kit-desc,
.kit-item.is-hovered .kit-card::before {
    background-color: rgba(179, 179, 179, 0.4);
}

/* ---------- 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: 12px;
    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-text);
    font-size: 18px;
    font-weight: 500;
    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: var(--color-orange);
    transform: translateY(-1px);
    cursor: pointer;
}

/* ---------- 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: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 48px;
    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 50%;
    aspect-ratio: 1;
    background-color: var(--color-card-border);
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
    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(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
    z-index: 0;
}

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

.product-card--small {
    /* 7 across the gallery width, accounting for the 6 gaps between them */
    flex: 0 0 calc((100% - 6 * 8px) / 7);
    max-width: calc((100% - 6 * 8px) / 7);
    aspect-ratio: 1 / 1;
}

.product-media {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.product-media > .product-card {
    flex: initial;
    width: 100%;
}

.product-buy-btn {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* ---------- Tech characteristics table ---------- */
.spec-table {
    position: relative;
    width: 100%;
    background-color: var(--color-card-border);
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

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

.spec-table-inner {
    position: relative;
    z-index: 1;
    padding: 28px 30px 24px;
}

.spec-table-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-card-border);
    margin-bottom: 18px;
}

.spec-table-grid {
    width: 100%;
    border-collapse: collapse;
}

.spec-table-grid th,
.spec-table-grid td {
    font-size: 15px;
    line-height: 1.45;
    text-align: left;
    vertical-align: middle;
    padding: 12px 0;
    border-top: 1px solid rgba(73, 73, 76, 0.18);
}

.spec-table-grid tr:first-child th,
.spec-table-grid tr:first-child td {
    border-top: none;
}

.spec-table-grid th {
    width: 52%;
    font-weight: 300;
    color: var(--color-card-border);
    padding-right: 16px;
}

.spec-table-grid td {
    font-weight: 300;
    color: var(--color-text);
}

.spec-row--accent th,
.spec-row--accent td {
    color: var(--color-orange);
    font-weight: 500;
}

.spec-check {
    width: 26px;
    height: 26px;
    color: var(--color-orange);
    display: block;
}

.product-info {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.product-specs {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin: 0;
    padding: 0;
    width: 100%;
}

.spec {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 12px;
}

/* Icon-led specs: fixed 96px icon with the text centred against it.
   align-self on both siblings centres them relative to each other without
   disturbing the baseline alignment used by label/value specs elsewhere. */
.spec img {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    object-fit: contain;
    align-self: center;
}

.spec img ~ .spec-value {
    align-self: center;
    font-size: 20px;
    line-height: 1.3;
}

.spec-label {
    font-size: 17px;
    font-weight: 200;
    color: var(--color-text);
}

.spec-value {
    font-family: 'Montserrat', 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: var(--color-text);
}

.product-gallery {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--color-card-border) transparent;
    -webkit-overflow-scrolling: touch;
}

.product-gallery::-webkit-scrollbar {
    height: 6px;
}

.product-gallery::-webkit-scrollbar-track {
    background: transparent;
}

.product-gallery::-webkit-scrollbar-thumb {
    background-color: var(--color-card-border);
    border-radius: 3px;
}

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

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

/* ---------- FAQ ---------- */
.faq {
    max-width: 980px;
    margin: 0 auto;
    padding: 40px 32px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 12px;
}

/* Same cut-corner frame as the spec table: a dark card with the light
   ::before sitting one pixel inside it. */
.faq-item {
    position: relative;
    width: 100%;
    background-color: var(--color-card-border);
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

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

.faq-question {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
    color: var(--color-card-border);
    padding: 20px 26px;
    transition: color 0.15s ease;
}

.faq-item.is-open .faq-question {
    color: var(--color-orange);
}

/* Hover only where there is a real pointer: on touch it would stick after a
   tap and read as if the answer were still open. */
@media (hover: hover) {
    .faq-question:hover {
        color: var(--color-orange);
    }
}

.faq-question:focus-visible {
    outline: 2px solid var(--color-orange);
    outline-offset: -6px;
}

.faq-arrow {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    color: var(--color-orange);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.is-open .faq-arrow {
    transform: rotate(180deg);
}

/* 0fr -> 1fr animates the answer open without measuring its height in JS. */
.faq-answer {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.is-open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer-inner {
    overflow: hidden;
    /* Keeps a folded answer out of the tab order and away from screen
       readers, but only once the closing animation has finished. */
    visibility: hidden;
    transition: visibility 0s linear 0.35s;
}

.faq-item.is-open .faq-answer-inner {
    visibility: visible;
    transition-delay: 0s;
}

.faq-answer-body {
    padding: 0 26px 22px;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-text);
}

.faq-answer-body p + p {
    margin-top: 12px;
}

.faq-more {
    margin-top: 32px;
    font-size: 17px;
    font-weight: 300;
    text-align: center;
    color: var(--color-text);
}

.faq-more a {
    color: var(--color-orange);
    font-weight: 500;
    border-bottom: 1px solid var(--color-orange);
}

@media (prefers-reduced-motion: reduce) {
    .faq-answer,
    .faq-arrow {
        transition: none;
    }

    .faq-answer-inner {
        transition-delay: 0s;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    /* A 16:9 video inside a full-height portrait hero crops away ~70% of the
       frame. Size the hero by aspect ratio instead so most of the shot shows,
       clamped so landscape phones never exceed the viewport. */
    .hero {
        height: auto;
        aspect-ratio: 4 / 3;
        max-height: calc(100vh - var(--header-height));
        max-height: calc(100dvh - var(--header-height));
    }

    .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-links .has-submenu {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        padding: 0;
    }

    .nav-links .has-submenu > a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        padding: 0 20px;
    }

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

    /* Top-level entries read as headings; the product categories nested
       under "Продукти" stay at normal weight. */
    .nav-links > li > a {
        font-weight: 800;
    }

    .submenu a {
        font-weight: 300;
    }


    .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,
    .kit-row--three .kit-item,
    .partner {
        flex: 0 0 calc(50% - 6px);
        max-width: calc(50% - 6px);
    }

    .kit-row--three {
        gap: 12px;
    }

    .kit-desc {
        font-size: 13px;
        padding-top: 8px;
    }

    .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: 36px;
    }

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

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

    /* Flatten both columns so their children can be reordered against each other */
    .product-media,
    .product-info {
        display: contents;
    }

    .product-title {
        order: -1;
    }

    .spec-table {
        order: 1;
    }

    .product-specs {
        gap: 14px;
    }

    .product-gallery {
        gap: 6px;
    }

    .spec-table-inner {
        padding: 22px 20px 18px;
    }

    .spec-table-title {
        font-size: 19px;
    }

    .spec-table-grid th,
    .spec-table-grid td {
        font-size: 14px;
        padding: 10px 0;
    }

    .spec-table-grid th {
        width: 50%;
        padding-right: 12px;
    }

    /* 5 across on tablet-width screens, the rest scroll */
    .product-card--small {
        flex: 0 0 calc((100% - 4 * 6px) / 5);
        max-width: calc((100% - 4 * 6px) / 5);
    }

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

/* ---------- 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: var(--color-card-bg);
    cursor: pointer;
    font-family: 'Montserrat', 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;
    }
}

/* ---------- Footer ---------- */
.site-footer {
    background-color: var(--color-footer-bg);
    border-top: 2px solid var(--color-text);
    margin-top: 64px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 32px;
}

/* Row 1: title */
.footer-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 54px;
    color: var(--color-card-bg);
    letter-spacing: 0.04em;
    margin-bottom: 32px;
    text-align: center;
}

/* Row 2: three columns */
.footer-columns {
    display: grid;
    grid-template-columns: 25% 1fr 33%;
    gap: 40px;
    align-items: start;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

/* Column 1: logo */
.footer-col--logo {
    align-items: flex-start;
    justify-content: center;
}

.footer-logo {
    display: block;
    position: relative;
    width: 100%;
}

.footer-logo-base {
    display: block;
    width: 100%;
    height: auto;
}

.footer-logo-color {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: logo-pulse 5s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* Column 2: form + email */
.footer-col--form {
    gap: 12px;
}

.footer-form-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-card-bg);
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.footer-email {
    margin-top: 12px;
}

#footer-submit-btn {
    border-width: 0;
}

/* Column 3: social icons */
.footer-col--socials {}

.footer-socials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
}

.footer-social-link {
    color: var(--color-footer-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, border-color 0.15s ease;
    aspect-ratio: 1;
    clip-path: polygon(15% 0, 100% 0, 100% 85%, 85% 100%, 0 100%, 0 15%);
    background-color: var(--color-card-bg);
}

.footer-social-link svg {
    width: 36px;
    height: 36px;
}

.footer-social-link:hover {
    color: var(--color-orange);
    border-color: var(--color-orange);
}

.footer-input {
    background: var(--color-text);
    color: var(--color-footer-bg);
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 300;
    padding: 16px 20px;
    outline: none;
    transition: border-color 0.15s ease;
    width: 100%;
    border-width: 0;
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px)
}

.footer-input::placeholder {
    color: var(--color-muted);
}

.footer-input:focus {
    border-color: var(--color-orange);
}

.footer-submit {
    background: var(--color-orange);
    border: none;
    color: var(--color-page-bg);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    padding: 12px 18px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
}

.footer-submit:hover {
    background: var(--color-orange);
}

.footer-success {
    color: var(--color-orange);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 0;
}

@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-socials {
        justify-content: flex-start;
    }
}


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

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

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

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

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

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

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

    .faq-question {
        font-size: 17px;
        padding: 16px 18px;
    }

    .faq-arrow {
        width: 22px;
        height: 22px;
    }

    .faq-answer-body {
        padding: 0 18px 18px;
        font-size: 16px;
    }

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

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

    /* 4 across on phones, the rest scroll */
    .product-card--small {
        flex: 0 0 calc((100% - 3 * 6px) / 4);
        max-width: calc((100% - 3 * 6px) / 4);
    }

    .footer-inner {
        max-width: var(--max-width);
        margin: 0 auto;
        padding: 20px 20px;
    }

    .kit-item figcaption, .partner figcaption {
        font-size: 16px;
    }
}

@media (max-width: 375px) {
    .footer-columns {
        display: block;
    }

    .footer-col {
        margin-bottom: 15px;
    }

    .footer-title {
        font-size: 32px;
    }

    .kit-item figcaption, .partner figcaption {
        font-size: 16px;
    }
}
/* ---------- Cookie consent ---------- */
.consent {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 999; /* below .lightbox */
    max-width: 620px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    padding: 18px 22px;
    background-color: var(--color-card-bg);
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.5;
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
    /* Animated in by CSS rather than JS: requestAnimationFrame does not fire in
       a background tab, which would leave the banner invisible but still
       covering the page. No fill-mode, so whenever the animation is not running
       the element falls back to its own style, which is fully visible. */
    animation: consent-in 0.2s ease;
}

@keyframes consent-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.consent--out {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.consent-text {
    flex: 1 1 260px;
    margin: 0;
    font-weight: 300;
}

.consent-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.consent-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: none;
    cursor: pointer;
    padding: 11px 22px;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.consent-accept {
    background-color: var(--color-orange);
    color: var(--color-page-bg);
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
}

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

.consent-decline {
    background-color: transparent;
    color: var(--color-muted);
    padding-left: 4px;
    padding-right: 4px;
}

.consent-decline:hover {
    color: var(--color-text);
}

@media (max-width: 640px) {
    .consent {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 16px 18px;
        font-size: 13px;
    }

    .consent-actions {
        width: 100%;
        justify-content: space-between;
    }

    .consent-accept {
        flex: 1;
    }
}

/* Respect a reduced-motion preference: appear without sliding. */
@media (prefers-reduced-motion: reduce) {
    .consent {
        animation: none;
    }

    .consent--out {
        transition: none;
    }
}

.footer-bottom {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(82, 83, 86, 0.25);
    text-align: center;
}

.footer-cookies {
    background: none;
    border: none;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--color-card-bg);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 0.15s ease;
}

.footer-cookies:hover {
    color: var(--color-orange);
}
