.vozhyk-page {
    width: min(1200px, calc(100vw - 2rem));
    margin: 2rem auto;
}

.vozhyk-hero {
    min-height: min(720px, calc(100vh - 118px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 4rem);
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--space-border);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(6, 22, 24, 0.92), rgba(8, 8, 8, 0.96) 52%, rgba(26, 24, 12, 0.82)),
        url("/static/images/background.png") center / cover;
    overflow: hidden;
    position: relative;
}

.vozhyk-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(88, 214, 166, 0.88), rgba(255, 211, 105, 0.72), transparent);
}

.vozhyk-hero-copy,
.vozhyk-device {
    position: relative;
    z-index: 1;
}

.vozhyk-kicker {
    margin-bottom: 0.8rem;
    color: #58d6a6;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.vozhyk-hero h1 {
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: 0.86;
    letter-spacing: 0.02em;
    margin-bottom: 1.25rem;
}

.vozhyk-lead {
    max-width: 680px;
    color: #f2f5f3;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    line-height: 1.45;
    margin-bottom: 1rem;
}

.vozhyk-version-note {
    max-width: 640px;
    color: #ffd369;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.vozhyk-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.vozhyk-text-link {
    color: #ffd369;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    text-decoration: none;
}

.vozhyk-text-link:hover,
.vozhyk-text-link:focus {
    color: #fff;
}

.vozhyk-device {
    justify-self: center;
    margin: 0;
    width: min(100%, 360px);
}

.vozhyk-device img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.5);
}

.vozhyk-demo {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(260px, 0.78fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: center;
    margin-top: 1.5rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--space-border);
    border-radius: 14px;
    background: rgba(10, 10, 10, 0.88);
}

.vozhyk-demo h2,
.vozhyk-card h2 {
    font-family: 'Barlow Condensed', Arial, sans-serif;
    letter-spacing: 0.05em;
}

.vozhyk-demo p {
    color: #d8d8d8;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.vozhyk-video-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.vozhyk-video-frame {
    width: 100%;
    aspect-ratio: 9 / 16;
    max-height: 560px;
    justify-self: center;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #050505;
}

.vozhyk-video-frame iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.vozhyk-main-copy {
    margin: 1.5rem 0 0;
    max-width: none;
}

.vozhyk-attachment {
    margin-top: 1.5rem;
    padding: clamp(1.2rem, 2.4vw, 1.8rem);
    border: 1px solid var(--space-border);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 22%),
        linear-gradient(135deg, rgba(8, 12, 12, 0.96), rgba(7, 18, 16, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 42px rgba(0, 0, 0, 0.28);
}

.vozhyk-attachment-copy {
    display: grid;
    grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 2.5rem);
    align-items: start;
    margin-bottom: 1.15rem;
}

.vozhyk-attachment h2 {
    font-family: 'Barlow Condensed', Arial, sans-serif;
    letter-spacing: 0.05em;
    margin-bottom: 0;
}

.vozhyk-attachment p {
    color: #d8d8d8;
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 0;
}

.vozhyk-attachment-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 620px;
}

.vozhyk-attachment-thumb {
    position: relative;
    display: block;
    width: 100%;
    padding: 0.45rem;
    color: #f3f3f3;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(8, 8, 8, 0.74);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.035),
        0 10px 22px rgba(0, 0, 0, 0.26);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.vozhyk-attachment-thumb::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(255, 211, 105, 0.16);
    border-radius: 5px;
    pointer-events: none;
}

.vozhyk-attachment-thumb:hover,
.vozhyk-attachment-thumb:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(88, 214, 166, 0.54);
    background: rgba(13, 18, 17, 0.9);
    outline: none;
}

.vozhyk-thumb-image {
    display: block;
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #050505;
}

.vozhyk-thumb-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.95) contrast(1.04);
}

.vozhyk-thumb-label {
    display: block;
    position: relative;
    z-index: 1;
    margin-top: 0.55rem;
    color: #f2f2f2;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.05;
    text-transform: uppercase;
}

.vozhyk-photo-modal .modal-content {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: #050505;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.68);
}

.vozhyk-photo-modal .modal-header {
    align-items: flex-start;
    border-bottom-color: rgba(255, 255, 255, 0.12);
    padding: 1rem 1.25rem;
}

.vozhyk-modal-kicker {
    margin: 0 0 0.25rem;
    color: #58d6a6;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.vozhyk-photo-modal .modal-title {
    color: #ffffff;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: 1.45rem;
    letter-spacing: 0.05em;
    line-height: 1;
}

.vozhyk-photo-modal .modal-body {
    padding: 1rem;
}

.vozhyk-photo-modal img {
    display: block;
    width: min(100%, 920px);
    max-height: min(74vh, 900px);
    margin: 0 auto;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #030303;
}

.vozhyk-photo-modal #picatinnyModalCaption {
    max-width: 920px;
    margin: 0.85rem auto 0;
    color: #cfcfcf;
    font-size: 0.98rem;
    line-height: 1.55;
}

.vozhyk-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.vozhyk-card {
    min-height: 236px;
    padding: 1.25rem;
    border: 1px solid var(--space-border);
    border-radius: 8px;
    background: rgba(12, 12, 12, 0.9);
}

.vozhyk-card i {
    color: #ffd369;
    font-size: 1.45rem;
    margin-bottom: 1rem;
}

.vozhyk-card p {
    color: #d8d8d8;
    line-height: 1.6;
}

@media (max-width: 980px) {
    .vozhyk-hero,
    .vozhyk-demo {
        grid-template-columns: 1fr;
    }

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

    .vozhyk-attachment-copy {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .vozhyk-attachment-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: 100%;
        overflow-x: visible;
        padding-bottom: 0;
    }

    .vozhyk-video-stack {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

@media (max-width: 620px) {
    .vozhyk-page {
        width: min(100vw - 1rem, 1200px);
        margin-top: 1rem;
    }

    .vozhyk-hero h1 {
        font-size: clamp(3rem, 18vw, 4.5rem);
    }

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

    .vozhyk-attachment-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow-x: visible;
    }

    .vozhyk-attachment-thumb {
        padding: 0.32rem;
    }

    .vozhyk-thumb-label {
        font-size: 0.76rem;
        letter-spacing: 0.04em;
    }

    .vozhyk-video-stack {
        grid-template-columns: 1fr;
    }
}
