/* style.css — Ультра-современный дизайн для АО НВФ «ГРИФОН» */

/* ---------- RESET & GLOBAL ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #060b14;
    color: #f0f3f8;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #060b14;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #D4AF37, #8B7332);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #D4AF37;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- ПРОГРЕСС БАР ПРИ СКРОЛЛЕ ---------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #D4AF37, #F5E7B2, #D4AF37);
    background-size: 200% 100%;
    animation: shimmerBar 2s infinite linear;
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}
@keyframes shimmerBar {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---------- АНИМИРОВАННЫЙ ФОН (МНОГОСЛОЙНЫЙ) ---------- */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 15% 25%, rgba(15, 30, 55, 0.9), transparent 50%),
        radial-gradient(ellipse at 85% 75%, rgba(10, 20, 40, 0.8), transparent 50%),
        radial-gradient(ellipse at 50% 50%, #060b14, #020408);
    z-index: -3;
}

/* Плавающие ореолы (градиентные пятна) */
.animated-bg::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.04) 0%, transparent 35%),
        radial-gradient(circle at 40% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 70% 60%, rgba(212, 175, 55, 0.03) 0%, transparent 40%);
    animation: breatheGlow 8s ease-in-out infinite alternate;
    z-index: -1;
}
@keyframes breatheGlow {
    0% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.6; transform: scale(0.95); }
}

/* Canvas для частиц */
#particlesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* ---------- СВЕЧЕНИЕ ЗА КУРСОРОМ ---------- */
.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

/* ---------- TYPOGRAPHY ---------- */
.accent {
    background: linear-gradient(135deg, #F5E7B2, #D4AF37);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-subtitle {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #D4AF37;
    margin-bottom: 0.75rem;
    position: relative;
}
.section-subtitle::before,
.section-subtitle::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #D4AF37);
    vertical-align: middle;
    margin: 0 12px;
}
.section-subtitle::after {
    background: linear-gradient(90deg, #D4AF37, transparent);
}
.section-header h2 {
    font-size: 2.4rem;
    margin-bottom: 0.75rem;
}
.section-header p {
    color: #9aa9c1;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ---------- СТЕКЛЯННЫЕ КАРТОЧКИ (glassmorphism) ---------- */
.glass {
    background: rgba(15, 25, 45, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.glass:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.08);
}

/* ---------- HEADER & NAVIGATION ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(6, 11, 20, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    padding: 0.6rem 0;
    transition: background 0.3s ease;
}
.site-header.scrolled {
    background: rgba(6, 11, 20, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    position: relative;
}
.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #D4AF37, #8B7332);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}
.logo-icon i,
.logo-img {
    font-size: 1.8rem;
    color: #0B1A2E;
    position: relative;
    z-index: 1;
}
.logo-img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: brightness(0) invert(0.07);
}
.logo-img {
    font-size: 1.8rem;
    color: #0B1A2E;
    position: relative;
    z-index: 1;
}
.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}
.logo-text .accent {
    font-weight: 800;
}
.header-contacts {
    display: flex;
    gap: 20px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #E9D59B;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: color 0.2s, transform 0.2s;
}
.contact-item:hover {
    color: #D4AF37;
    transform: translateY(-1px);
}
.contact-item i {
    font-size: 0.9rem;
}
.burger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 4px;
}
.burger-menu span {
    width: 25px;
    height: 2px;
    background: #D4AF37;
    transition: 0.3s ease;
    border-radius: 2px;
}
.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.burger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}
.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
.main-nav {
    margin-top: 0.8rem;
}
.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.nav-link {
    color: #CDD9F4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    font-size: 0.85rem;
    letter-spacing: 1px;
    position: relative;
    padding: 4px 0;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #D4AF37, #F5E7B2);
    transition: width 0.3s ease;
    border-radius: 2px;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}
.nav-link:hover {
    color: #D4AF37;
}
.nav-link.active {
    color: #D4AF37;
}

/* ---------- HERO ---------- */
.hero-section {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
    animation: heroPulse 6s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes heroPulse {
    0% { transform: scale(1) rotate(0deg); opacity: 0.5; }
    100% { transform: scale(1.1) rotate(3deg); opacity: 1; }
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}
.hero-badge {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    display: inline-block;
    padding: 0.4rem 1.5rem;
    border-radius: 40px;
    font-size: 0.75rem;
    color: #F5E7B2;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInDown 0.8s ease forwards;
}
@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}
.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
.hero-description {
    font-size: 1.1rem;
    color: #BCC7E0;
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}
.btn {
    padding: 0.85rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.3s ease,
                background 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary {
    background: linear-gradient(135deg, #D4AF37, #A8852A);
    color: #0E1727;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.btn-primary:hover::before {
    left: 100%;
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4);
}
.btn-outline {
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: #F5E7B2;
    background: rgba(212, 175, 55, 0.05);
    backdrop-filter: blur(5px);
}
.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s ease;
}
.btn-outline:hover::before {
    left: 100%;
}
.btn-outline:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.8);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}
.stat-item {
    text-align: center;
    position: relative;
}
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}
@media (max-width: 768px) {
    .stat-item:not(:last-child)::after {
        display: none;
    }
}
.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: #D4AF37;
    display: block;
    line-height: 1;
    margin-bottom: 0.3rem;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}
.stat-label {
    font-size: 0.8rem;
    color: #9aa9c1;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2.5s ease-in-out infinite;
    z-index: 2;
}
.scroll-indicator a {
    color: rgba(212, 175, 55, 0.6);
    font-size: 1.3rem;
    transition: color 0.2s, transform 0.2s;
    display: block;
}
.scroll-indicator a:hover {
    color: #D4AF37;
    transform: scale(1.2);
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(12px); }
}

/* ---------- АНИМАЦИЯ ПЕЧАТАЮЩЕГОСЯ ТЕКСТА ---------- */
.typing-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}
.typing-text {
    border-right: 2px solid #D4AF37;
    overflow: hidden;
    font-size: 1.05rem;
    color: #D4AF37;
    font-weight: 500;
    letter-spacing: 3px;
    white-space: nowrap;
    margin: 0;
    animation: blinkCursor 0.8s step-end infinite;
    max-width: fit-content;
}
@keyframes blinkCursor {
    0%, 100% { border-color: #D4AF37; }
    50% { border-color: transparent; }
}

/* ---------- COOKIE CONSENT ---------- */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: rgba(6, 11, 20, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    padding: 0;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
}
.cookie-consent.show {
    transform: translateY(0);
}
.cookie-consent-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    position: relative;
}
.cookie-consent-text {
    flex: 1;
    min-width: 280px;
}
.cookie-consent-text h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: #E9D59B;
}
.cookie-consent-text p {
    font-size: 0.82rem;
    color: #9aa9c1;
    line-height: 1.5;
}
.cookie-consent-text a {
    color: #D4AF37;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cookie-consent-text a:hover {
    color: #F5E7B2;
}
.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}
.cookie-options {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}
.cookie-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #CDD9F4;
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-left: 26px;
}
.cookie-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.05);
    transition: all 0.2s ease;
}
.cookie-checkbox:hover .checkmark {
    border-color: rgba(212, 175, 55, 0.6);
}
.cookie-checkbox input:checked ~ .checkmark {
    background: #D4AF37;
    border-color: #D4AF37;
}
.cookie-checkbox input:checked ~ .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #0B1A2E;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.cookie-checkbox.disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.cookie-checkbox.disabled .checkmark {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.2);
}
.cookie-checkbox.disabled input:checked ~ .checkmark::after {
    border-color: #0B1A2E;
}
.cookie-buttons {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.btn-small {
    padding: 0.5rem 1.2rem;
    font-size: 0.78rem;
}
.cookie-close {
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    background: none;
    border: none;
    color: #6a7a9a;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}
.cookie-close:hover {
    color: #D4AF37;
}
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 1.2rem 16px;
    }
    .cookie-consent-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .cookie-options {
        justify-content: center;
    }
    .cookie-buttons {
        justify-content: center;
    }
    .cookie-close {
        top: 0.4rem;
        right: 0.8rem;
    }
}

/* ---------- ПРОДУКЦИЯ ---------- */
.products-section {
    padding: 100px 0;
    position: relative;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 30px;
}
.product-card {
    background: rgba(15, 25, 45, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.4s ease,
                box-shadow 0.5s ease;
    border: 1px solid rgba(212, 175, 55, 0.15);
    position: relative;
}
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.product-card:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 40px rgba(212, 175, 55, 0.05);
}
.product-card:hover::before {
    opacity: 1;
}
.product-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 30% 40%, rgba(15,30,55,0.8), rgba(6,11,20,0.9));
}
.product-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, transparent, rgba(15, 25, 45, 0.9));
    pointer-events: none;
    z-index: 2;
}
/* Градиентные подложки для карточек */
.product-image--bgs { background: radial-gradient(ellipse at 40% 30%, rgba(212,175,55,0.12), transparent 60%), radial-gradient(ellipse at 70% 70%, rgba(30,60,120,0.3), transparent 50%), radial-gradient(ellipse at 30% 40%, rgba(15,30,55,0.8), rgba(6,11,20,0.9)); }
.product-image--sug { background: radial-gradient(ellipse at 60% 40%, rgba(212,175,55,0.10), transparent 55%), radial-gradient(ellipse at 30% 70%, rgba(100,200,255,0.10), transparent 45%), radial-gradient(ellipse at 30% 40%, rgba(15,30,55,0.8), rgba(6,11,20,0.9)); }
.product-image--ship { background: radial-gradient(ellipse at 50% 30%, rgba(212,175,55,0.10), transparent 50%), radial-gradient(ellipse at 40% 80%, rgba(0,100,180,0.15), transparent 50%), radial-gradient(ellipse at 30% 40%, rgba(15,30,55,0.8), rgba(6,11,20,0.9)); }
.product-image--oil { background: radial-gradient(ellipse at 50% 30%, rgba(212,175,55,0.08), transparent 50%), radial-gradient(ellipse at 50% 80%, rgba(50,30,10,0.3), transparent 50%), radial-gradient(ellipse at 30% 40%, rgba(15,30,55,0.8), rgba(6,11,20,0.9)); }
.product-image-icon {
    position: relative;
    z-index: 1;
    width: 80px;
    height: 80px;
    transition: transform 0.5s ease;
}
.product-card:hover .product-image-icon {
    transform: scale(1.15) translateY(-4px);
}
.product-image-label {
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(212,175,55,0.4);
    z-index: 3;
}
.product-image img {
    display: none;
}
.product-info {
    padding: 1.5rem;
    position: relative;
}
.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #E9D59B;
    transition: color 0.3s;
}
.product-card:hover .product-info h3 {
    color: #F5E7B2;
}
.product-info p {
    font-size: 0.85rem;
    color: #BCC7E0;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}
.product-link {
    color: #D4AF37;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: gap 0.3s, color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.product-link:hover {
    color: #F5E7B2;
    gap: 10px;
}

/* ---------- ПОПАП ПРОДУКТА ---------- */
.product-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 6, 12, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1099;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    cursor: pointer;
}
.product-overlay.active {
    opacity: 1;
    visibility: visible;
}

.product-card.expanded {
    position: fixed;
    z-index: 1100;
    width: 560px;
    max-width: 92vw;
    max-height: 88vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    overflow-y: auto;
    cursor: default;
    padding: 0;
}
.product-card.expanded::before { opacity: 1; }
.product-card.expanded .product-image { height: 200px; border-radius: 24px 24px 0 0; }
.product-card.expanded .product-image img { display: none; }
.product-card.expanded .product-info { display: none; }
.product-card.expanded .product-link { display: none; }

.product-detail {
    display: none;
    padding: 0 2rem 2rem;
    opacity: 0;
    animation: detailFadeIn 0.5s ease 0.3s forwards;
}
.product-card.expanded .product-detail {
    display: block;
}
@keyframes detailFadeIn {
    to { opacity: 1; }
}
.product-detail-body h4 {
    font-size: 1.25rem;
    color: #E9D59B;
    margin-bottom: 1rem;
}
.product-detail-body p {
    color: #CDD9F4;
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}
.product-detail-meta {
    font-size: 0.78rem !important;
    color: #6a7a9a !important;
    letter-spacing: 0.5px;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}
.product-detail-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #D4AF37;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 5;
}
.product-detail-close:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #D4AF37;
    transform: scale(1.1);
}

/* ---------- МОДАЛ СХЕМЫ ПРОЕЗДА ---------- */
.map-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.map-modal.active {
    opacity: 1;
    visibility: visible;
}
.map-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(3, 6, 12, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}
.map-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 88vh;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: #0a0f1a;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.map-modal.active .map-modal-content {
    transform: scale(1);
}
.map-modal-content img {
    display: block;
    max-width: 90vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
}
.map-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #D4AF37;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}
.map-modal-close:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #D4AF37;
    transform: scale(1.1);
}
@media (max-width: 600px) {
    .product-card.expanded { width: 96vw; max-height: 92vh; }
    .product-detail { padding: 0 1.2rem 1.5rem; }
    .product-card.expanded .product-image { height: 160px; }
}

/* ---------- ПРЕИМУЩЕСТВА ---------- */
.advantages-section {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3), rgba(0,0,0,0.15));
    position: relative;
}
.advantages-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.15), transparent);
}
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 30px;
}
.advantage-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(15, 25, 45, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 28px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(212, 175, 55, 0.12);
    position: relative;
    overflow: hidden;
}
.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.05), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.advantage-card:hover::before {
    opacity: 1;
}
.advantage-card:hover {
    background: rgba(15, 25, 45, 0.6);
    border-color: rgba(212, 175, 55, 0.35);
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}
.advantage-card i {
    font-size: 2.8rem;
    color: #D4AF37;
    margin-bottom: 1.2rem;
    display: inline-block;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.2));
}
.advantage-card:hover i {
    transform: scale(1.15) translateY(-3px);
}
.advantage-card h3 {
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}
.advantage-card p {
    font-size: 0.85rem;
    color: #CDD9F4;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ---------- ПАРТНЁРЫ (БЕСКОНЕЧНАЯ ПРОКРУТКА) ---------- */
.partners-section {
    padding: 100px 0;
    overflow: hidden;
    position: relative;
}
.scroll-row {
    display: flex;
    gap: 24px;
    align-items: stretch;
}
.scroll-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.scroll-col--40 { flex: 0 0 calc(40% - 12px); }
.scroll-col--60 { flex: 0 0 calc(60% - 12px); }
.scroll-block-title {
    font-size: 0.78rem;
    color: #9aa9c1;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    padding-left: 4px;
    flex-shrink: 0;
}
.scroll-wrap {
    overflow: hidden;
    flex: 1;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.scroll-track {
    display: flex;
    gap: 24px;
    width: fit-content;
    animation: scrollMarquee 30s linear infinite;
}
.scroll-col--40 .scroll-track { animation-duration: 25s; }
.scroll-col--60 .scroll-track {
    animation-duration: 40s;
    animation-direction: reverse;
}
.scroll-wrap:hover .scroll-track {
    animation-play-state: paused;
}
@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.partner-logo {
    flex: 0 0 140px;
    text-align: center;
    padding: 0.8rem;
    background: rgba(15, 25, 45, 0.3);
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.08);
    transition: all 0.3s ease;
}
.partner-logo:hover {
    background: rgba(15, 25, 45, 0.6);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
.partner-logo img {
    max-width: 100%;
    height: 48px;
    object-fit: contain;
    filter: grayscale(0.3) brightness(0.8);
    transition: filter 0.4s ease, transform 0.4s ease;
}
.partner-logo:hover img {
    filter: grayscale(0) brightness(1);
    transform: scale(1.05);
}

@media (max-width: 900px) {
    .scroll-row { flex-direction: column; }
    .scroll-col--40,
    .scroll-col--60 { flex: 1 1 100%; }
    .scroll-col--40 { margin-bottom: 0; }
}

/* ---------- КОНТАКТЫ ---------- */
.contacts-section {
    padding: 100px 0;
    position: relative;
}
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}
.contacts-info {
    background: rgba(15, 25, 45, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 28px;
    padding: 2.5rem;
    border: 1px solid rgba(212, 175, 55, 0.12);
}
.contact-card {
    display: flex;
    gap: 20px;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.06);
    transition: transform 0.3s ease, padding-left 0.3s ease;
}
.contact-card:last-child {
    border-bottom: none;
}
.contact-card:hover {
    transform: translateX(6px);
    padding-left: 6px;
}
.contact-card i {
    font-size: 1.5rem;
    color: #D4AF37;
    margin-top: 0.2rem;
    min-width: 30px;
    text-align: center;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.2));
}
.contact-card h4 {
    margin-bottom: 0.3rem;
    font-size: 1rem;
}
.contact-card p {
    color: #BCC7E0;
    font-size: 0.9rem;
    line-height: 1.6;
}
.contact-card a {
    color: #CDD9F4;
    text-decoration: none;
    transition: color 0.2s;
}
.contact-card a:hover {
    color: #D4AF37;
}
.contacts-map {
    height: 100%;
    min-height: 400px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contacts-map:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(212, 175, 55, 0.05);
}
.contacts-map iframe,
.contacts-map #map {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 28px;
}
.contacts-map #map {
    position: relative;
    z-index: 1;
}

/* ---------- ФУТЕР ---------- */
.site-footer {
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    padding: 3rem 0;
    background: rgba(3, 6, 12, 0.8);
    position: relative;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.1rem;
}
.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
}
.footer-logo .logo-img {
    width: 30px;
    height: 30px;
}
.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-links a {
    color: #6a7a9a;
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.2s;
    position: relative;
}
.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #D4AF37;
    transition: width 0.2s ease;
}
.footer-links a:hover {
    color: #D4AF37;
}
.footer-links a:hover::after {
    width: 100%;
}
.footer-copy p {
    color: #6a7a9a;
    font-size: 0.82rem;
}
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.12), transparent);
    margin: 1.2rem 0;
}
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-start;
}
.footer-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    flex: 1;
}
.footer-contact-group {
    min-width: 220px;
}
.footer-contact-group h4 {
    font-size: 0.85rem;
    color: #E9D59B;
    margin-bottom: 0.6rem;
}
.footer-contact-group p {
    color: #6a7a9a;
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.footer-contact-group p i {
    width: 14px;
    font-size: 0.75rem;
    color: rgba(212, 175, 55, 0.5);
}
.footer-contact-group a {
    color: #9aa9c1;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-contact-group a:hover {
    color: #D4AF37;
}
.footer-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: center;
}
.footer-actions .btn {
    gap: 8px;
    white-space: nowrap;
}
.footer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* ---------- КНОПКА НАВЕРХ ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(15, 25, 45, 0.9), rgba(6, 11, 20, 0.9));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #D4AF37;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(15, 25, 45, 0.9));
    border-color: #D4AF37;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

/* ---------- АДАПТИВНОСТЬ ---------- */
@media (max-width: 1200px) {
    .hero-content h1 { font-size: 3rem; }
    .section-header h2 { font-size: 2rem; }
}
@media (max-width: 992px) {
    .hero-content h1 { font-size: 2.5rem; }
    .contacts-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 2rem; }
    .section-header h2 { font-size: 1.8rem; }
    .stat-item:not(:last-child)::after { display: none; }
    .contacts-map { min-height: 300px; }
}
@media (max-width: 768px) {
    .burger-menu { display: flex; z-index: 10; }
    .site-header { padding: 0.5rem 0; }
    .main-nav {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    opacity 0.3s ease;
        opacity: 0;
    }
    .main-nav.active {
        max-height: 400px;
        opacity: 1;
    }
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        padding: 1rem 0;
    }
    .header-inner { flex-wrap: wrap; }
    .header-contacts { order: 3; width: 100%; justify-content: center; gap: 15px; }
    .header-contacts .contact-item span { font-size: 0.8rem; }
    .products-grid { grid-template-columns: 1fr; }
    .product-card { max-width: 400px; margin: 0 auto; }
    .hero-section { padding: 80px 0 50px; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-description { font-size: 1rem; }
    .hero-stats { gap: 1.5rem; margin-top: 3rem; }
    .stat-number { font-size: 2.2rem; }
    .advantages-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .contacts-info { padding: 1.5rem; }
    .back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; }
}
@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.8rem; }
    .hero-badge { font-size: 0.65rem; padding: 0.3rem 1rem; }
    .btn { padding: 0.7rem 1.5rem; font-size: 0.85rem; }
    .section-header h2 { font-size: 1.5rem; }
    .section-subtitle { font-size: 0.65rem; }
    .section-subtitle::before,
    .section-subtitle::after { width: 15px; margin: 0 8px; }
    .advantages-grid { grid-template-columns: 1fr; }
    .partner-logo { flex: 0 0 120px; }
    .contacts-map { min-height: 250px; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-logo { justify-content: center; }
    .footer-contacts { flex-direction: column; gap: 1.5rem; }
    .footer-contact-group { text-align: center; }
    .footer-contact-group p { justify-content: center; }
    .footer-bottom { flex-direction: column; align-items: center; }
    .footer-actions { align-items: center; }
    .footer-meta { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
    .back-to-top { bottom: 15px; right: 15px; width: 40px; height: 40px; font-size: 1rem; }
}