/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary:        #0b5080;
    --primary-dark:   #083c61;
    --primary-light:  #1672a8;
    --primary-glow:   rgba(11, 80, 128, 0.2);
    --accent:         #f5a523;
    --accent-dark:    #d48e10;
    --accent-light:   #ffc04d;
    --accent-glow:    rgba(245, 165, 35, 0.32);
    --dark:           #09192b;
    --gray-900:       #1a2b3c;
    --gray-700:       #3a4f64;
    --gray-500:       #637d96;
    --gray-300:       #b5c7d7;
    --gray-200:       #d8e5ee;
    --gray-100:       #eef4f9;
    --white:          #ffffff;
    --success:        #22c55e;

    --grad-primary:   linear-gradient(135deg, #0b5080, #1672a8);
    --grad-accent:    linear-gradient(135deg, #f5a523, #ffc04d);
    --grad-dark:      linear-gradient(160deg, #09192b 0%, #162639 100%);
    --grad-hero:      linear-gradient(145deg, rgba(7,20,38,0.93) 0%, rgba(11,80,128,0.72) 100%);

    --shadow-sm:      0 2px 8px  rgba(11, 80, 128, 0.08);
    --shadow-md:      0 6px 24px rgba(11, 80, 128, 0.14);
    --shadow-lg:      0 18px 50px rgba(11, 80, 128, 0.18);
    --shadow-accent:  0 8px 28px rgba(245, 165, 35, 0.38);

    --radius:         12px;
    --radius-lg:      20px;
    --radius-pill:    100px;

    --header-h:       80px;

    --transition:     0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul { list-style: none; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ SCROLL REVEAL ============ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal--d1 { transition-delay: 0.1s; }
.reveal--d2 { transition-delay: 0.2s; }
.reveal--d3 { transition-delay: 0.3s; }
.reveal--d4 { transition-delay: 0.4s; }
.reveal--d5 { transition-delay: 0.5s; }

/* ============ TYPOGRAPHY ============ */
.section__title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.12;
    letter-spacing: -0.5px;
}
.section__title--left { text-align: left; }

.section__title::after {
    content: '';
    display: block;
    width: 52px;
    height: 4px;
    background: var(--grad-accent);
    border-radius: 100px;
    margin: 14px auto 0;
}
.section__title--left::after { margin-left: 0; }

.section__subtitle {
    text-align: center;
    color: var(--gray-500);
    font-size: 17px;
    margin-bottom: 52px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 15px;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
    letter-spacing: 0.2px;
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
    transform: skewX(-20deg);
    transition: left 0.55s ease;
    pointer-events: none;
}
.btn:hover::before { left: 160%; }

.btn--primary {
    background: var(--grad-accent);
    color: var(--dark);
    border-color: transparent;
    box-shadow: var(--shadow-accent);
}
.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(245, 165, 35, 0.48);
}
.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.55);
}
.btn--outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.btn--block { width: 100%; }

/* ============ HEADER ============ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--gray-200);
    z-index: 100;
    transition: all var(--transition);
}
.header.scrolled {
    box-shadow: var(--shadow-md);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 22px;
    color: var(--primary);
}
.logo__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--grad-primary);
    color: white;
    border-radius: 12px;
    font-weight: 800;
    font-size: 19px;
    box-shadow: 0 4px 14px var(--primary-glow);
    position: relative;
}
.logo__icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255,255,255,0.18) 0%, transparent 60%);
}

.nav__list {
    display: flex;
    gap: 28px;
    align-items: center;
}
.nav__link {
    color: var(--gray-700);
    font-weight: 600;
    font-size: 15px;
    transition: color var(--transition);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}
.nav__link:hover { color: var(--primary); }
.nav__link::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-accent);
    border-radius: 100px;
    transition: width var(--transition);
}
.nav__link:hover::after { width: 100%; }

/* Dropdown — common */
.nav__item--dropdown { position: relative; }
.caret {
    font-size: 10px;
    transition: transform var(--transition);
    margin-left: 4px;
}
.nav__dropdown { list-style: none; }
.nav__dropdown li { display: block; }

/* Desktop dropdown */
@media (min-width: 769px) {
    .nav__dropdown {
        position: absolute;
        top: calc(100% + 14px);
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        min-width: 320px;
        background: var(--white);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--gray-200);
        padding: 10px;
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
        z-index: 110;
    }
    .nav__dropdown::before {
        content: '';
        position: absolute;
        top: -16px; left: 0; right: 0;
        height: 16px;
    }
    .nav__item--dropdown:hover .nav__dropdown,
    .nav__item--dropdown.open .nav__dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
    .nav__item--dropdown:hover .caret,
    .nav__item--dropdown.open .caret {
        transform: rotate(180deg);
    }
    .nav__dropdown a {
        display: block;
        padding: 10px 14px;
        border-radius: var(--radius);
        font-size: 14px;
        font-weight: 500;
        color: var(--gray-700);
        transition: all var(--transition);
    }
    .nav__dropdown a:hover {
        background: var(--gray-100);
        color: var(--primary);
        transform: translateX(4px);
    }
}

.header__right {
    display: flex;
    align-items: center;
    gap: 18px;
}
.header__phones {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}
.header__phone-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 15px;
    transition: color var(--transition);
    white-space: nowrap;
}
.header__phone-link:hover { color: var(--accent); }

.header__messengers {
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-msg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    flex-shrink: 0;
    background: var(--gray-100);
}
.header-msg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.header-msg:hover,
.header-msg:active {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.nav__contact { display: none; }

.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    position: relative;
    z-index: 110;
}
.burger span {
    display: block;
    height: 2.5px;
    background: var(--dark);
    border-radius: 2px;
    transition: all var(--transition);
}
.burger span:nth-child(1) { width: 100%; }
.burger span:nth-child(2) { width: 70%; }
.burger span:nth-child(3) { width: 100%; }

.nav__overlay {
    display: none;
    position: fixed;
    top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: rgba(9,25,43,0.62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    transition: opacity var(--transition);
}
.nav__overlay.active {
    display: block;
    opacity: 1;
}

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: var(--header-h);
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
    background: url('img/Background.jpg') center/cover no-repeat;
    z-index: 0;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background: var(--grad-hero);
    z-index: 1;
}
.hero__overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
    background-size: 34px 34px;
}

/* Floating decorative rings */
.hero__ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.07);
    pointer-events: none;
    z-index: 1;
    animation: heroFloat 9s ease-in-out infinite;
}
.hero__ring--1 {
    width: 440px; height: 440px;
    top: 8%; right: 6%;
    animation-delay: 0s;
}
.hero__ring--2 {
    width: 290px; height: 290px;
    top: 14%; right: 12%;
    border-color: rgba(245,165,35,0.13);
    animation-delay: 1.2s;
}
.hero__ring--3 {
    width: 160px; height: 160px;
    top: 22%; right: 21%;
    border-color: rgba(255,255,255,0.05);
    animation-delay: 2.4s;
}
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-18px); }
}

.hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 60px;
    padding-bottom: 100px;
}
.hero__content { max-width: 700px; }

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245,165,35,0.15);
    color: var(--accent-light);
    border: 1px solid rgba(245,165,35,0.38);
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 26px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}
.hero__badge::before {
    content: '★';
    font-size: 10px;
    color: var(--accent);
}

.hero__title {
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}
.hero__title em {
    font-style: normal;
    color: var(--accent-light);
}

.hero__subtitle {
    font-size: clamp(18px, 2.25vw, 22px);
    margin-bottom: 42px;
    opacity: 0.92;
    max-width: 620px;
    line-height: 1.6;
}
.hero__features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    margin-bottom: 46px;
}
.hero__feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 17px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.12);
    border-radius: 14px;
}
.hero__feature span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--grad-accent);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
    color: var(--dark);
    flex-shrink: 0;
}
.hero__feature span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--grad-accent);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    color: var(--dark);
    flex-shrink: 0;
}
.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.45);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    animation: scrollPulse 2.2s ease-in-out infinite;
}
.hero__scroll::after {
    content: '';
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
}
@keyframes scrollPulse {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.45; }
    50%       { transform: translateX(-50%) translateY(9px); opacity: 0.7; }
}

/* Wave at the bottom of hero */
.hero__wave {
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    z-index: 3;
    line-height: 0;
    pointer-events: none;
}
.hero__wave svg { display: block; width: 100%; }

/* ============ CATALOG ============ */
.catalog { padding: 96px 0 80px; }

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 24px;
    counter-reset: card-counter;
}

.category-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    counter-increment: card-counter;
}
/* Number badge */
.category-card::before {
    content: counter(card-counter, decimal-leading-zero);
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--grad-accent);
    color: var(--dark);
    font-size: 11px;
    font-weight: 800;
    z-index: 3;
    line-height: 30px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(245,165,35,0.4);
    letter-spacing: 0;
}
/* Bottom accent bar */
.category-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-accent);
    transform: scaleX(0);
    transition: transform var(--transition);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.category-card:hover::after { transform: scaleX(1); }

.category-card__image {
    position: relative;
    aspect-ratio: 4/3;
    background: #fff;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}
.category-card:hover .category-card__image img { transform: scale(1.07); }

.category-card__body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.category-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}
.category-card__desc {
    color: var(--gray-500);
    font-size: 14px;
    line-height: 1.55;
    flex: 1;
}
.category-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--gray-200);
}
.category-card__count {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 500;
}
.category-card__link {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.category-card__link .arrow {
    display: inline-block;
    transition: transform var(--transition);
}
.category-card:hover .category-card__link { color: var(--accent-dark); }
.category-card:hover .category-card__link .arrow { transform: translateX(4px); }

/* Catalog page (category.html) */
.catalog--page { padding: 60px 0 80px; }
.catalog-page__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.catalog-page__count {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-500);
}
.catalog__products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    gap: 24px;
}

/* Category page: one column, horizontal card layout */
.catalog--page .catalog__products {
    grid-template-columns: 1fr;
    gap: 32px;
}
.catalog--page .product:hover { transform: none; }
.product__main {
    display: flex;
}
.catalog--page .product__image {
    width: 300px;
    flex-shrink: 0;
    aspect-ratio: auto;
    height: 260px;
}
.catalog--page .product__body {
    padding: 28px 32px;
    flex: 1;
}
.catalog--page .product__title { font-size: 22px; }

/* Stages block inside product card */
.product__stages {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--gray-200);
}
.card-stage__block {
    padding: 22px 28px;
    border-right: 1px solid var(--gray-200);
}
.card-stage__block:last-child { border-right: none; }
.card-stage__title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary);
    margin-bottom: 14px;
}
.card-stage__lines { display: flex; flex-direction: column; gap: 4px; }
.card-stage__line {
    font-size: 15px;
    color: var(--gray-700);
    line-height: 1.7;
}

/* Stage gallery thumbnails */
.stage-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}
.stage-gallery__thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
}
.stage-gallery__thumb:hover {
    border-color: var(--primary);
    transform: scale(1.07);
}

/* Image lightbox */
.img-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.img-lightbox.active { display: flex; }
.img-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.88);
    cursor: pointer;
}
.img-lightbox__img {
    position: relative;
    max-width: 88vw;
    max-height: 84vh;
    object-fit: contain;
    border-radius: 10px;
    z-index: 1;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.img-lightbox__close {
    position: absolute;
    top: 16px; right: 20px;
    font-size: 42px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.img-lightbox__close:hover { opacity: 1; }
.img-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 56px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
    opacity: 0.7;
    transition: opacity 0.2s;
    line-height: 1;
    padding: 0 16px;
    user-select: none;
}
.img-lightbox__nav:hover { opacity: 1; }
.img-lightbox__prev { left: 0; }
.img-lightbox__next { right: 0; }

/* ============ PAGE HERO (category page) ============ */
.page-hero {
    background: linear-gradient(135deg, var(--gray-100) 0%, #d8eaf6 100%);
    padding: calc(var(--header-h) + 44px) 0 52px;
    border-bottom: 1px solid var(--gray-200);
}
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--gray-500);
}
.breadcrumbs a {
    color: var(--gray-500);
    transition: color var(--transition);
}
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs__sep { color: var(--gray-300); }
.breadcrumbs__current {
    color: var(--dark);
    font-weight: 600;
}
.page-hero__inner {
    display: flex;
    align-items: center;
    gap: 24px;
}
.page-hero__icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    background: var(--grad-primary);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    flex-shrink: 0;
}
.page-hero__title {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.2;
    letter-spacing: -0.3px;
}
.page-hero__desc {
    color: var(--gray-700);
    font-size: 16px;
    max-width: 700px;
}

/* ============ CTA ============ */
.cta {
    background: var(--grad-primary);
    color: var(--white);
    padding: 72px 0;
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 28px 28px;
}
.cta__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    position: relative;
}
.cta__title {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}
.cta__text {
    color: rgba(255,255,255,0.85);
    font-size: 16px;
    max-width: 520px;
}
.cta__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.btn--outline-dark {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.45);
}
.btn--outline-dark:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

/* ============ PRODUCT CARD ============ */
.product {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.product:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.product__image {
    position: relative;
    aspect-ratio: 4/3;
    background: #fff;
    overflow: hidden;
}
.product__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}
.product:hover .product__image img { transform: scale(1.06); }

.product__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--gray-500);
    background: linear-gradient(135deg, #cfe0ef, #b2cfe4);
}
.product__placeholder-icon {
    font-size: 64px;
    margin-bottom: 8px;
    opacity: 0.5;
}
.product__placeholder-text {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.65;
}
.product__badge {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--grad-accent);
    color: var(--dark);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(245,165,35,0.32);
}
.product__body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product__category {
    font-size: 12px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}
.product__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.3;
}
.product__desc {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 16px;
    flex: 1;
    line-height: 1.55;
}
.product__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}
.product__price {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.product__price-from {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
    display: block;
    margin-bottom: 2px;
}
.product__btn {
    padding: 10px 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 14px;
    transition: all var(--transition);
}
.product__btn:hover {
    background: var(--grad-accent);
    color: var(--dark);
    box-shadow: var(--shadow-accent);
}

.product__btn--calculate {
    width: 100%;
    padding: 12px 20px;
    margin: 0;
}

/* ---- Contact modal redesign ---- */
.contact-modal {
    max-width: 440px;
    overflow: hidden;
    padding: 0 !important;
}

.contact-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    color: rgba(255,255,255,0.7) !important;
    z-index: 3;
}
.contact-modal__close:hover {
    background: rgba(255,255,255,0.15) !important;
    color: #fff !important;
}

.contact-modal__hero {
    background: var(--grad-primary);
    padding: 36px 32px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.contact-modal__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 0%, rgba(255,255,255,0.10) 0%, transparent 60%);
    pointer-events: none;
}

.contact-modal__hero-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    backdrop-filter: blur(4px);
}

.contact-modal__title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.2;
}

.contact-modal__subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin-bottom: 16px;
}

.contact-modal__badge {
    display: inline-block;
    background: var(--grad-accent);
    color: var(--dark);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.3px;
}

.contact-modal__body {
    padding: 24px 24px 20px;
}

.contact-modal__list {
    display: grid;
    gap: 8px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 14px;
    background: var(--gray-50);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border: 1.5px solid var(--gray-200);
}
.contact-link:hover {
    background: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11,80,128,0.10);
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.contact-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}

.contact-icon--phone    { background: none; }
.contact-icon--viber    { background: none; }
.contact-icon--telegram { background: none; }
.contact-icon--whatsapp { background: none; }
.contact-icon--email    { background: none; }

.contact-label {
    flex: 1;
    min-width: 0;
}
.contact-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--dark);
    line-height: 1.2;
}
.contact-value {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-arrow {
    font-size: 20px;
    color: var(--gray-400);
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}
.contact-link:hover .contact-arrow {
    transform: translateX(4px);
    color: var(--primary);
}

.contact-modal__hours {
    text-align: center;
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
    font-size: 16px;
}

/* ============ ABOUT ============ */
.about {
    padding: 100px 0;
    background: var(--gray-100);
    position: relative;
    overflow: hidden;
}
.about::before {
    content: '';
    position: absolute;
    top: -140px; right: -140px;
    width: 520px; height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(11,80,128,0.055) 0%, transparent 70%);
    pointer-events: none;
}
.about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
}
.about__text {
    font-size: 17px;
    color: var(--gray-700);
    margin-bottom: 16px;
    line-height: 1.75;
}
.about__list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.about__list li {
    font-size: 15px;
    color: var(--dark);
    font-weight: 500;
    padding-left: 26px;
    position: relative;
    line-height: 1.5;
}
.about__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 800;
    font-size: 14px;
}

.about__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.stat {
    background: var(--white);
    padding: 32px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.stat::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-accent);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.stat:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.stat__num {
    font-size: 44px;
    font-weight: 800;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1;
}
.stat__label {
    color: var(--gray-500);
    font-size: 14px;
    font-weight: 500;
}

/* ============ CONTACTS ============ */
.contacts {
    padding: 100px 0;
    background: var(--grad-dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.contacts::before {
    content: '';
    position: absolute;
    top: -25%; right: -5%;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(245,166,35,0.1) 0%, transparent 60%);
    pointer-events: none;
}
.contacts::after {
    content: '';
    position: absolute;
    bottom: -20%; left: -8%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(11,80,128,0.28) 0%, transparent 60%);
    pointer-events: none;
}
.contacts .container { position: relative; z-index: 1; }
.contacts .section__title { color: var(--white); }
.contacts .section__title::after { background: var(--grad-accent); }
.contacts .section__subtitle { color: rgba(255,255,255,0.7); }

.contacts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 22px;
    margin-top: 44px;
}

.contact-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 34px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: var(--white);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
a.contact-card:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-9px);
    border-color: rgba(245,165,35,0.55);
    box-shadow: 0 28px 56px rgba(0,0,0,0.28);
}

.contact-card__icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--grad-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 10px;
    box-shadow: 0 10px 26px rgba(245,166,35,0.38);
}
.contact-card__title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: rgba(255,255,255,0.5);
    margin: 0;
}
.contact-card__value {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.3px;
    word-break: break-word;
}
.contact-card__hint {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    margin-top: 2px;
}

.contact-card--messengers { gap: 12px; }
.messenger-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
}
.messenger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 14px;
    color: var(--white);
    transition: all var(--transition);
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
}
.messenger-btn:hover {
    transform: translateY(-2px);
    color: var(--white);
}
.messenger-btn__icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: contain;
    background: var(--white);
    display: block;
    flex-shrink: 0;
}
.messenger-btn--viber:hover    { background: #7360f2; border-color: #7360f2; box-shadow: 0 4px 18px rgba(115,96,242,0.42); }
.messenger-btn--telegram:hover { background: #0088cc; border-color: #0088cc; box-shadow: 0 4px 18px rgba(0,136,204,0.42); }
.messenger-btn--whatsapp:hover { background: #25d366; border-color: #25d366; box-shadow: 0 4px 18px rgba(37,211,102,0.42); }

/* ============ FOOTER ============ */
.footer {
    background: #07111e;
    color: var(--gray-300);
    padding: 64px 0 0;
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-accent);
}
.footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 44px;
}
.footer .logo { color: var(--white); margin-bottom: 16px; }
.footer__text {
    color: rgba(255,255,255,0.4);
    font-size: 15px;
    max-width: 300px;
    line-height: 1.65;
}
.footer__title {
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer__list a {
    color: rgba(255,255,255,0.4);
    font-size: 15px;
    transition: color var(--transition);
}
.footer__list a:hover { color: var(--accent); }
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 22px 0;
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.28);
}

/* ============ MODAL ============ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    align-items: center;
    justify-content: center;
}
.modal.active { display: flex; }
.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7,17,30,0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.modal__dialog {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: calc(100% - 32px);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    box-shadow: 0 32px 80px rgba(0,0,0,0.42);
    z-index: 1;
    animation: modalIn 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal__close {
    position: absolute;
    top: 12px; right: 16px;
    width: 36px; height: 36px;
    font-size: 26px;
    color: var(--gray-500);
    border-radius: 50%;
    transition: all var(--transition);
    z-index: 2;
    line-height: 1;
}
.modal__close:hover {
    background: var(--gray-100);
    color: var(--dark);
}
.modal__content { padding: 0; }
.modal__image {
    aspect-ratio: 16/10;
    background: #fff;
    position: relative;
    overflow: hidden;
}
.modal__image img { width: 100%; height: 100%; object-fit: contain; }
.modal__body { padding: 28px; }
.modal__category {
    font-size: 12px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}
.modal__title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--dark);
    letter-spacing: -0.3px;
}
.modal__desc {
    color: var(--gray-700);
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.65;
}
.modal__features {
    background: var(--gray-100);
    padding: 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    border-left: 3px solid var(--accent);
}
.modal__features li {
    padding: 5px 0;
    color: var(--gray-700);
    font-size: 15px;
}
.modal__price {
    font-size: 34px;
    font-weight: 800;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}
.modal__price-from {
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 500;
    -webkit-text-fill-color: var(--gray-500);
}
.modal__actions { display: flex; gap: 12px; flex-wrap: wrap; }


/* ============ MEDIA QUERIES ============ */
@media (max-width: 1024px) {
    .about__inner { grid-template-columns: 1fr; gap: 40px; }
    .footer__inner { grid-template-columns: 1fr 1fr; }
    .hero__ring { display: none; }
}

@media (max-width: 768px) {
    :root { --header-h: 70px; }

    .header__phones { display: none; }
    .header__right { gap: 10px; }
    .header__messengers { gap: 6px; }
    .header-msg { width: 36px; height: 36px; }
    .burger { display: flex; }

    .nav {
        position: fixed;
        top: var(--header-h); right: -100%;
        width: 85%;
        max-width: 360px;
        height: calc(100vh - var(--header-h));
        background: var(--white);
        flex-direction: column;
        padding: 16px 24px 32px;
        box-shadow: -12px 0 44px rgba(0,0,0,0.2);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 101;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav.active { right: 0; }
    .nav__list {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        margin-bottom: 32px;
        padding: 0;
        list-style: none;
    }
    .nav__list > li {
        border-bottom: 1px solid var(--gray-200);
        width: 100%;
    }
    .nav__list > li:last-of-type { border-bottom: none; }
    .nav__link {
        display: flex;
        width: 100%;
        padding: 16px 4px;
        font-size: 17px;
        font-weight: 600;
        color: var(--dark);
        text-align: left;
        justify-content: space-between;
        align-items: center;
        background: none;
        border: none;
        cursor: pointer;
        font-family: inherit;
    }
    .nav__link::after { display: none; }
    .nav__contact {
        display: block;
        padding-top: 24px;
        border-top: 2px solid var(--gray-200);
    }
    .nav__phone {
        display: block;
        color: var(--primary);
        font-weight: 800;
        font-size: 22px;
    }

    /* Mobile dropdown — accordion */
    .nav__item--dropdown { position: static; }
    .nav__dropdown {
        background: var(--gray-100);
        border-radius: var(--radius);
        padding: 0 8px;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.25s ease, margin 0.25s ease;
    }
    .nav__item--dropdown.open .nav__dropdown {
        max-height: 700px;
        padding: 8px;
        margin: 0 0 16px;
    }
    .nav__item--dropdown.open .caret { transform: rotate(180deg); }
    .nav__dropdown li { width: 100%; border: none; }
    .nav__dropdown a {
        display: block;
        width: 100%;
        padding: 12px 14px;
        font-size: 15px;
        font-weight: 500;
        color: var(--gray-700);
        border-radius: var(--radius);
        transition: background var(--transition), color var(--transition);
    }
    .nav__dropdown a:hover,
    .nav__dropdown a:active {
        background: var(--white);
        color: var(--primary);
    }

    .hero { min-height: 55vh; }
    .hero__scroll { display: none; }
    .hero__features { gap: 10px 20px; }
    .hero__buttons { flex-direction: column; align-items: stretch; }
    .hero__buttons .btn { width: 100%; }

    .catalog, .about, .contacts { padding: 70px 0; }
    .catalog--page { padding: 30px 0 60px; }

    .catalog__products { grid-template-columns: 1fr; gap: 16px; }

    .footer__inner { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }

    .page-hero__inner { gap: 16px; }
    .page-hero__icon { width: 60px; height: 60px; font-size: 32px; }

    .cta__inner { flex-direction: column; align-items: flex-start; }
    .cta__actions { width: 100%; }
    .cta__actions .btn { flex: 1; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .header__messengers { gap: 5px; }
    .header-msg { width: 32px; height: 32px; }

    .section__title { font-size: 26px; }
    .about__stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat { padding: 24px 14px; }
    .stat__num { font-size: 36px; }
    .product__image { aspect-ratio: 16/10; }
    .catalog__products { grid-template-columns: 1fr; }
    .product__main { flex-direction: column; }
    .catalog--page .product__image { width: 100%; height: auto; aspect-ratio: 16/9; }
    .catalog--page .product__body { padding: 20px; }
    .catalog--page .product__title { font-size: 18px; }
    .product__stages { grid-template-columns: 1fr; }
    .card-stage__block { border-right: none; border-top: 1px solid var(--gray-200); }
    .modal__body { padding: 20px; }
    .modal__title { font-size: 22px; }
    .modal__price { font-size: 28px; }
    .hero__title { font-size: 30px; }
    .categories-grid { grid-template-columns: 1fr; }

    .contact-modal__hero { padding: 28px 20px 24px; }
    .contact-modal__body { padding: 16px 16px 14px; }
    .contact-modal__title { font-size: 20px; }
    .contact-icon { width: 40px; height: 40px; border-radius: 10px; }
}

/* Burger animation */
.burger.active span:nth-child(1) { transform: translateY(8.75px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-8.75px) rotate(-45deg); }

/* ============ WORKS GALLERY ============ */
.works-section {
    padding: 60px 0 80px;
}

/* Block (photo / video) */
.works-block {
    margin-bottom: 56px;
}
.works-block:last-of-type {
    margin-bottom: 0;
}

.works-block__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}
.works-block__title svg {
    color: var(--primary);
    flex-shrink: 0;
}
.works-block__title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--gray-100);
    border-radius: 2px;
}

/* ─── Photo grid (desktop) ─── */
.works-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 14px;
}

/* ─── Video grid ─── */
.works-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: 18px;
}

/* ─── Common card ─── */
.work-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
    background: var(--gray-100);
}

.work-item--video {
    aspect-ratio: 16/9;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.work-item:hover img {
    transform: scale(1.05);
}

.work-item__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(9,25,43,0.88) 0%, transparent 45%);
    display: flex;
    align-items: flex-end;
    padding: 14px 16px;
    opacity: 0;
    transition: opacity 0.25s;
}

.work-item:hover .work-item__overlay {
    opacity: 1;
}

.work-item--video .work-item__overlay {
    opacity: 1;
}

.work-item__overlay span {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
}

/* ─── Video play button ─── */
.work-item__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.work-item__play svg {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 3px 10px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}

.work-item--video:hover .work-item__play svg {
    transform: scale(1.12);
}

/* ─── Scroll hint (mobile only) ─── */
.works-scroll-hint {
    display: none;
    text-align: center;
    color: var(--gray-400);
    font-size: 13px;
    margin-top: 10px;
    letter-spacing: .02em;
}

/* ─── Empty state ─── */
.works-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-500);
}
.works-empty__icon { font-size: 56px; margin-bottom: 16px; }
.works-empty__text { font-size: 18px; font-weight: 500; }

/* ─── Lightbox ─── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.lightbox.active { display: flex; }

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 14, 26, 0.93);
    backdrop-filter: blur(6px);
}

.lightbox__inner {
    position: relative;
    z-index: 1;
    max-width: min(92vw, 1100px);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.lightbox__img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius);
    display: block;
}

.lightbox__video-wrap {
    display: none;
    width: min(92vw, 960px);
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
}
.lightbox__video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.lightbox__caption {
    color: rgba(255,255,255,0.75);
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    max-width: 100%;
}

.lightbox__close {
    position: fixed;
    top: 18px;
    right: 22px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}
.lightbox__close:hover { background: rgba(255,255,255,0.22); }

.lightbox__prev,
.lightbox__next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(255,255,255,0.22); }

.nav__link--active { color: var(--primary) !important; }

/* ─── Mobile ─── */
@media (max-width: 768px) {
    .works-section { padding: 36px 0 56px; }
    .works-block { margin-bottom: 44px; }

    /* Photo gallery → horizontal slider */
    .works-photos-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 10px;
        /* Bleed to container edges so cards touch screen sides */
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 4px;
    }
    .works-photos-grid::-webkit-scrollbar { display: none; }

    .works-photos-grid .work-item {
        flex: 0 0 78vw;
        max-width: 300px;
        scroll-snap-align: start;
    }

    /* Make overlay always visible on touch (no hover) */
    .works-photos-grid .work-item .work-item__overlay { opacity: 1; }

    .works-scroll-hint { display: block; }

    .works-videos-grid { gap: 12px; }

    .lightbox__prev { left: 6px; }
    .lightbox__next { right: 6px; }
    .lightbox__video-wrap { width: 96vw; }
}

/* ============ WORK STAGES ============ */
.work-stages {
    padding: 80px 0;
    background: var(--gray-100);
}

.work-stages__title {
    text-align: center;
    margin-bottom: 48px;
}

.work-stages__grid {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.stage-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* Alternate layout: 1st stage - image left, 2nd stage - image right, etc. */
.stage-item:nth-child(even) > .stage-item__image {
    grid-column: 2;
    grid-row: 1;
}
.stage-item:nth-child(even) > .stage-item__content {
    grid-column: 1;
    grid-row: 1;
    text-align: right;
}

.stage-item__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-md);
}

.stage-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stage-item__content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.stage-item__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}

.stage-item__text {
    font-size: 16px;
    color: var(--gray-700);
    line-height: 1.75;
    margin-bottom: 12px;
}
.stage-item__text:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .work-stages { padding: 60px 0; }
    .work-stages__title { margin-bottom: 32px; }
    .work-stages__grid { gap: 36px; }
    .stage-item {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .stage-item:nth-child(even) > .stage-item__image,
    .stage-item:nth-child(even) > .stage-item__content {
        grid-column: 1;
        grid-row: auto;
    }
    .stage-item:nth-child(even) > .stage-item__content {
        text-align: left;
    }
    .stage-item__title { font-size: 18px; }
}

.hidden { display: none !important; }

/* ============ COOKIE BANNER ============ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--dark);
    border-top: 3px solid var(--accent);
    padding: 18px 0;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.28);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.cookie-banner__text {
    flex: 1;
    min-width: 200px;
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    line-height: 1.55;
}
.cookie-banner__text a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition);
}
.cookie-banner__text a:hover { color: var(--accent-light); }
.cookie-banner__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.cookie-banner__accept {
    background: var(--accent);
    color: var(--dark);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    white-space: nowrap;
}
.cookie-banner__accept:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}
.cookie-banner__details {
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255,255,255,0.18);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}
.cookie-banner__details:hover {
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}

@media (max-width: 600px) {
    .cookie-banner__inner { flex-direction: column; align-items: stretch; }
    .cookie-banner__actions { justify-content: stretch; }
    .cookie-banner__accept, .cookie-banner__details { flex: 1; text-align: center; justify-content: center; }
}

/* ============ FAQ ============ */
.faq {
    padding: 100px 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}
.faq::before {
    content: '';
    position: absolute;
    bottom: -120px; left: -120px;
    width: 480px; height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(11,80,128,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.faq::after {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 360px; height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,165,35,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.faq__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 20px;
    margin-top: 48px;
    position: relative;
    z-index: 1;
}

.faq__item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}
.faq__item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.faq__question {
    width: 100%;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    text-align: left;
    background: var(--white);
    cursor: pointer;
    transition: background var(--transition);
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
}
.faq__question:hover {
    background: var(--gray-100);
}
.faq__question[aria-expanded="true"] {
    background: var(--gray-100);
}

.faq__question-text {
    flex: 1;
    line-height: 1.5;
}

.faq__icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
    font-weight: 800;
    font-size: 18px;
    transition: transform var(--transition);
}
.faq__question[aria-expanded="true"] .faq__icon {
    transform: rotate(45deg);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition), padding var(--transition);
}
.faq__question[aria-expanded="true"] ~ .faq__answer {
    max-height: 500px;
}

.faq__answer p {
    padding: 0 24px 24px;
    color: var(--gray-700);
    font-size: 15px;
    line-height: 1.75;
    margin: 0;
}

/* ============ PRIVACY PAGE ============ */
.privacy-page {
    padding: 60px 0 100px;
}
.privacy-page h1 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}
.privacy-page .updated {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 48px;
}
.privacy-page h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin: 40px 0 14px;
}
.privacy-page p {
    color: var(--gray-700);
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 14px;
}
.privacy-page ul {
    margin: 0 0 14px 20px;
    color: var(--gray-700);
    font-size: 16px;
    line-height: 1.8;
}
.privacy-page table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    margin-bottom: 24px;
}
.privacy-page th {
    background: var(--gray-100);
    color: var(--dark);
    font-weight: 700;
    padding: 12px 16px;
    text-align: left;
    border: 1px solid var(--gray-200);
}
.privacy-page td {
    padding: 10px 16px;
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    vertical-align: top;
}
.privacy-page tr:nth-child(even) td { background: var(--gray-100); }
.privacy-page a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}
@media (max-width: 600px) {
    .privacy-page h1 { font-size: 26px; }
    .privacy-page h2 { font-size: 18px; }
    .privacy-page table { font-size: 13px; }
    .privacy-page th, .privacy-page td { padding: 8px 10px; }
}
