/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    --bg-color: #08080a; /* Роскошный угольно-черный графит */
    --card-bg: #101013; /* Карточки глубокого графитового цвета */
    --header-bg: rgba(8, 8, 10, 0.55);
    
    --accent: #d6ae69; /* Благородное золото из логотипа */
    --accent-glow: rgba(214, 174, 105, 0.4);
    --accent-hover: #e1be84; /* Светлое золото из логотипа */
    
    --sage: #81a2a0; /* Изысканный серо-зеленый шалфей из логотипа */
    --sage-glow: rgba(129, 162, 160, 0.2);
    
    --text: #ffffff;
    --text-muted: #8e9bb3;
    
    --border: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(214, 174, 105, 0.2);
    
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
}

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

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.page-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

li {
    list-style: none;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 1.2;
}

.mobile-br {
    display: none;
}

.section-title {
    font-size: 38px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-align: center;
}

.section-title span {
    color: var(--accent);
    background: linear-gradient(135deg, #c5a880 0%, #9e7f56 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header {
    margin-bottom: 50px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #b89353 100%);
    color: #040712;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(197, 168, 128, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 12px;
}

.btn-md {
    padding: 14px 28px;
    font-size: 14px;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
    padding: 16px;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.header.header-scrolled {
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 60px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: var(--transition);
}

.logo-link:hover .logo-img {
    transform: scale(1.03);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.logo-footer {
    display: inline-block;
    margin-bottom: 16px;
}

.logo-footer .logo-img {
    height: 80px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7); /* Всегда светлые по умолчанию на темном Hero */
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

.menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text);
    transition: var(--transition);
}

/* ==========================================================================
   MOBILE MENU
   ========================================================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: var(--transition);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.mobile-link {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
/* ==========================================================================
   HERO STATIC SECTION (NEW)
   ========================================================================== */
.hero-static {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background-color: #000000;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.85; /* Повысили видимость до 85% */
    z-index: 1;
    transition: transform 12s cubic-bezier(0.25, 1, 0.45, 1);
}

.hero-static:hover .hero-bg-image {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 70%, #000000 100%);
    z-index: 2;
}

/* Прожектор сверху (Spotlight) */
.spotlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top, rgba(197, 168, 128, 0.12) 0%, rgba(0, 0, 0, 0) 75%);
    z-index: 2;
    pointer-events: none;
    transition: background 0.7s ease;
}

.triple-panel:hover .spotlight {
    background: radial-gradient(ellipse at top, rgba(197, 168, 128, 0.22) 0%, rgba(0, 0, 0, 0) 80%);
}

.panel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
    transition: opacity 0.7s ease, transform 0.7s ease;
    z-index: 1;
}

.triple-panel:hover .panel-img {
    opacity: 0.8;
    transform: scale(1.04);
}

.panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.6) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Контент внутри панели (появляется при hover) */
.panel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    z-index: 3;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.45, 1), transform 0.5s cubic-bezier(0.25, 1, 0.45, 1);
}

.triple-panel:hover .panel-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
}

.panel-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
}

.panel-title {
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #ffffff;
}

.panel-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    max-width: 280px;
}

/* Центральный заголовок */
.hero-main-title-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    text-align: center;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.45, 1), transform 0.6s cubic-bezier(0.25, 1, 0.45, 1);
    width: 90%;
    max-width: 800px;
}

.hero-main-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    pointer-events: auto;
}

.hero-tagline {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 15px;
}

.hero-title-main {
    font-family: 'Outfit', sans-serif;
    font-size: 82px;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    line-height: 1;
}

.hero-title-main span {
    color: var(--accent);
    background: linear-gradient(135deg, var(--accent) 0%, #b89353 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc-main {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

/* Эффект приглушения центрального заголовка при наведении на любую панель (без полной блокировки) */
.hero-triples:has(.triple-panel:hover) .hero-main-title-wrapper {
    opacity: 0.35;
    transform: translate(-50%, -50%) scale(0.98);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about {
    padding: 100px 0;
    position: relative;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    border-left: 2px solid var(--accent);
    padding-left: 15px;
}

.stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
    display: block;
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: linear-gradient(135deg, #c5a880 0%, #9e7f56 100%);
    color: #040712;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(197, 168, 128, 0.3);
}

.badge-num {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.badge-text {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ==========================================================================
   CATALOG SECTION
   ========================================================================== */
.catalog {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.catalog-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.catalog-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.card-img {
    height: 240px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.catalog-card:hover .card-img img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
}

.card-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.card-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* ==========================================================================
   PORTFOLIO SECTION
   ========================================================================== */
.portfolio {
    padding: 100px 0;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.filter-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 10px 22px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    border-color: var(--accent);
    color: var(--text);
    background: rgba(197, 168, 128, 0.05);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.portfolio-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.portfolio-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-accent);
}

.portfolio-img {
    height: 220px;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-img img {
    transform: scale(1.05);
}

.portfolio-info {
    padding: 20px;
}

.project-tag {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--sage);
    background: var(--sage-glow);
    font-weight: 700;
    letter-spacing: 1.5px;
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(129, 162, 160, 0.3);
    margin-bottom: 12px;
}

.project-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.project-text {
    font-size: 13px;
    color: var(--text-muted);
}

/* ==========================================================================
   CONTACTS SECTION
   ========================================================================== */
.contacts {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid var(--border);
}

.contacts-details {
    padding-right: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 40px;
}

.method-card {
    display: flex;
    gap: 20px;
    align-items: center;
}

.method-icon {
    width: 50px;
    height: 50px;
    border-radius: 50px;
    background: rgba(197, 168, 128, 0.05);
    border: 1px solid var(--border-accent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.method-info {
    display: flex;
    flex-direction: column;
}

.method-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.method-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.contact-form-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
}

.form-title {
    font-size: 24px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px 15px;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(197, 168, 128, 0.1);
}

select.form-input option {
    background-color: var(--card-bg);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    --text: #ffffff;
    --text-muted: #8e9bb3;
    --border: rgba(255, 255, 255, 0.06);
    background-color: #08080a;
    border-top: 1px solid var(--border);
    padding-top: 80px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 15px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-link:hover {
    color: var(--text);
    border-color: var(--accent);
    background: rgba(197, 168, 128, 0.05);
}

.footer-bottom {
    background: #02040a;
    padding: 25px 0;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, #b89353 100%);
    color: #040712;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 20px var(--accent-glow);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    box-shadow: 0 6px 28px rgba(197, 168, 128, 0.7);
    transform: translateY(-3px);
}

[data-theme="light"] .back-to-top {
    box-shadow: 0 4px 20px rgba(197, 168, 128, 0.4);
}

/* ==========================================================================
   MODAL (POPUPS)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 7, 18, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background-color: var(--card-bg);
    border: 1px solid var(--border-accent);
    max-width: 800px;
    width: 90%;
    border-radius: 12px;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition);
    overflow: hidden;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
}

.modal-body {
    padding: 40px;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.modal-img {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.modal-specs-list {
    margin-top: 20px;
}

.modal-spec-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.modal-spec-label {
    color: var(--text-muted);
}

.modal-spec-val {
    font-weight: 600;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .catalog-grid, .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .about-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .btn-header {
        display: none;
    }
    
    .theme-toggle {
        margin-right: 0;
    }
    
    .menu-btn {
        display: flex;
    }
    
    /* Перестроение триптиха в вертикальный стек на мобильных экранах */
    .hero-triples {
        flex-direction: column;
        height: 110vh;
    }
    
    .triple-panel {
        width: 100%;
        height: 33.33%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .triple-panel:hover {
        flex: 1.3;
    }
    
    .hero-main-title-wrapper {
        top: 0;
        transform: translate(-50%, 0);
        height: 100%;
        display: flex;
        flex-direction: column;
        padding-top: 140px;
        padding-bottom: 50px;
    }

    /* Предотвращение выезда заголовка за рамки мобильного экрана */
    .hero-title-main {
        font-size: 38px;
        letter-spacing: 2px;
        line-height: 1.2;
    }
    
    .hero-desc-main {
        font-size: 11px;
        letter-spacing: 1px;
    }
    
    .hero-main-buttons {
        margin-top: auto;
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .hero-main-buttons .btn {
        width: 100%;
    }
    
    .hero-bg-image {
        background-size: cover;
        background-position: 0% center;
    }

    .mobile-br {
        display: block;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 10px 5px 25px 5px;
        margin-top: 30px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .portfolio-grid::-webkit-scrollbar {
        display: none;
    }
    
    .portfolio-card {
        flex: 0 0 80%;
        scroll-snap-align: start;
    }

    .about-badge {
        left: 10px;
        bottom: 10px;
        padding: 12px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .modal-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}

/* Блокировка прокрутки при открытых окнах */
.no-scroll {
    overflow: hidden;
}

/* Анимации при прокрутке */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Задержки для плиток каталога */
.catalog-grid .catalog-card:nth-child(1) { transition-delay: 0.1s; }
.catalog-grid .catalog-card:nth-child(2) { transition-delay: 0.2s; }
.catalog-grid .catalog-card:nth-child(3) { transition-delay: 0.3s; }
.catalog-grid .catalog-card:nth-child(4) { transition-delay: 0.4s; }
.catalog-grid .catalog-card:nth-child(5) { transition-delay: 0.5s; }

/* ==========================================================================
   THEME TOGGLE BUTTON & LIGHT THEME STYLES
   ========================================================================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 10px rgba(214, 174, 105, 0.2);
}

.theme-toggle .icon-sun {
    display: none;
    font-size: 16px;
}

.theme-toggle .icon-moon {
    display: block;
    font-size: 16px;
}

/* Переменные для светлой темы */
[data-theme="light"] {
    --bg-color: #faf9f6;
    --card-bg: #ffffff;
    --header-bg: rgba(246, 248, 250, 0.55);
    
    --text: #1a202c;
    --text-muted: #5e6b7e;
    
    --border: rgba(0, 0, 0, 0.08);
    --border-accent: rgba(214, 174, 105, 0.25);
}

[data-theme="light"] .theme-toggle .icon-sun {
    display: block;
    color: #e1be84;
}

[data-theme="light"] .theme-toggle .icon-moon {
    display: none;
}

/* Фиксация светлого вида для элементов шапки без скролла (на черном Hero) */
.header:not(.header-scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
}

.header:not(.header-scrolled) .nav-link:hover {
    color: var(--accent) !important;
}

.header:not(.header-scrolled) .theme-toggle {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    background: rgba(255, 255, 255, 0.04) !important;
}

/* Темные стили для переключателя тем при скролле в светлой теме */
[data-theme="light"] .header.header-scrolled .theme-toggle {
    color: #1a202c !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    background: rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .header.header-scrolled .theme-toggle:hover {
    color: var(--accent) !important;
    border-color: var(--accent) !important;
    background: rgba(0, 0, 0, 0.05) !important;
}

/* Адаптация элементов для светлой темы */
[data-theme="light"] body {
    color: #1d2129;
    background-image: 
        radial-gradient(at 0% 0%, rgba(214, 174, 105, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(129, 162, 160, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
}

[data-theme="light"] .header.header-scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .header.header-scrolled .nav-link {
    color: #4a5568;
}

[data-theme="light"] .header.header-scrolled .nav-link:hover,
[data-theme="light"] .header.header-scrolled .nav-link.active {
    color: #1a202c;
}

[data-theme="light"] .catalog-card, [data-theme="light"] .portfolio-card {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .catalog-card:hover, [data-theme="light"] .portfolio-card:hover {
    border-color: var(--accent);
}

[data-theme="light"] .portfolio-filters .filter-btn {
    background: rgba(0, 0, 0, 0.05);
    color: #4a5568;
}

[data-theme="light"] .portfolio-filters .filter-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #1a202c;
}

[data-theme="light"] .portfolio-filters .filter-btn.active {
    background: var(--accent);
    color: #040712;
}

[data-theme="light"] .btn-secondary {
    background: #ffffff;
    color: #1a202c;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .btn-secondary:hover {
    background: #f7fafc;
    border-color: var(--accent);
}

[data-theme="light"] .modal {
    background: #ffffff;
    color: #1a202c;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .modal-close {
    color: #1a202c;
}

[data-theme="light"] .modal-close:hover {
    color: var(--accent);
}

[data-theme="light"] .about-badge {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .about-badge .badge-text {
    color: #4a5568;
}

[data-theme="light"] .contact-form-wrapper {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .form-input {
    background: #f7fafc;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #1a202c;
}

[data-theme="light"] .form-input:focus {
    border-color: var(--accent);
    background: #ffffff;
}

[data-theme="light"] .form-label {
    color: #4a5568;
}

[data-theme="light"] .contacts-details .contact-item i {
    background: var(--sage-glow);
    color: var(--sage);
}

[data-theme="light"] .footer {
    background: #08080a; /* футер оставляем глубоким темным для премиальности */
}

/* Оставляем Hero-экран всегда темным, кинематографичным */
.hero-static {
    background-color: #000000;
}

/* Фиксация темных стилей для Hero в светлой теме, чтобы заголовок не сливался */
[data-theme="light"] .hero-title-main {
    color: #ffffff !important;
}

[data-theme="light"] .hero-desc-main {
    color: rgba(255, 255, 255, 0.7) !important;
}

[data-theme="light"] .hero-tagline {
    color: var(--accent) !important;
}

[data-theme="light"] .hero-main-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

[data-theme="light"] .hero-main-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--accent) !important;
}

/* Анимированные лучи прожекторов (проф. equipment) */
.hero-spotlight-left, .hero-spotlight-right {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    opacity: 0.38; /* Оптимальная видимость */
    mix-blend-mode: screen;
    transition: opacity 0.8s ease;
    will-change: transform, opacity;
}

.hero-spotlight-left {
    left: 0;
    clip-path: polygon(0 0, 30% 100%, 65% 100%);
    background: linear-gradient(135deg, rgba(214, 174, 105, 0.55) 0%, rgba(214, 174, 105, 0) 80%);
    animation: swing-left 10s ease-in-out infinite alternate;
    transform-origin: 0 0;
}

.hero-spotlight-right {
    right: 0;
    clip-path: polygon(100% 0, 35% 100%, 70% 100%);
    background: linear-gradient(-135deg, rgba(129, 162, 160, 0.5) 0%, rgba(129, 162, 160, 0) 80%);
    animation: swing-right 10s ease-in-out infinite alternate;
    transform-origin: 100% 0;
}

@keyframes swing-left {
    0% { transform: rotate(-4deg); }
    100% { transform: rotate(4deg); }
}

@keyframes swing-right {
    0% { transform: rotate(4deg); }
    100% { transform: rotate(-4deg); }
}

/* Живой анимированный туман (smoke effect) */
.fog-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

.fog-cloud {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(50px);
    border-radius: 50%;
    will-change: transform, opacity;
}

.fog-cloud-1 {
    top: 15%;
    left: -15%;
    width: 900px;
    height: 600px;
    animation: float-1 28s ease-in-out infinite alternate;
}

.fog-cloud-2 {
    bottom: 5%;
    right: -15%;
    width: 800px;
    height: 600px;
    animation: float-2 34s ease-in-out infinite alternate;
}

.fog-cloud-3 {
    top: 30%;
    left: 40%;
    width: 1100px;
    height: 700px;
    background: radial-gradient(circle, rgba(214, 174, 105, 0.04) 0%, rgba(214, 174, 105, 0) 70%); /* слегка золотистый туман */
    animation: float-3 40s ease-in-out infinite alternate;
}

@keyframes float-1 {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.3; }
    50% { transform: translate(12vw, 4vh) scale(1.15) rotate(45deg); opacity: 0.55; }
    100% { transform: translate(24vw, -4vh) scale(0.9) rotate(90deg); opacity: 0.3; }
}

@keyframes float-2 {
    0% { transform: translate(0, 0) scale(1.1) rotate(0deg); opacity: 0.5; }
    50% { transform: translate(-15vw, -6vh) scale(0.95) rotate(-30deg); opacity: 0.3; }
    100% { transform: translate(-30vw, 3vh) scale(1.2) rotate(-60deg); opacity: 0.5; }
}

@keyframes float-3 {
    0% { transform: translate(-8vw, 3vh) scale(0.9) opacity: 0.2; }
    50% { transform: translate(8vw, -8vh) scale(1.1) opacity: 0.45; }
    100% { transform: translate(-4vw, 1vh) scale(0.95) opacity: 0.2; }
}

/* ==========================================================================
   ADVANTAGES SECTION
   ========================================================================== */
.advantages {
    padding: 100px 0;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.adv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.adv-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px 25px;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease, box-shadow 0.4s ease;
}

.adv-card:hover {
    transform: translateY(-15px);
    border-color: var(--accent);
    box-shadow: 0 15px 30px rgba(214, 174, 105, 0.15);
}

.adv-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(214, 174, 105, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.adv-card:hover .adv-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: rgba(214, 174, 105, 0.2);
}

.adv-icon {
    font-size: 32px;
    color: var(--accent);
}

.adv-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text);
}

.adv-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   CLIENTS SECTION
   ========================================================================== */
.clients {
    padding: 100px 0;
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.clients-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.client-logo {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 25px 40px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
    transition: all 0.4s ease;
    cursor: default;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.client-logo:hover {
    color: var(--text);
    border-color: var(--accent);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(214, 174, 105, 0.2);
    background: linear-gradient(145deg, var(--surface) 0%, rgba(214, 174, 105, 0.05) 100%);
}

/* ==========================================================================
   QR CODE SECTION (Contacts)
   ========================================================================== */
.qr-code-wrapper {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.qr-code-wrapper:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(214, 174, 105, 0.15);
}

.qr-code-img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    padding: 5px;
    background: #fff;
}

.qr-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   RESPONSIVE OVERRIDES FOR NEW SECTIONS
   ========================================================================== */
@media (max-width: 992px) {
    .adv-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .adv-grid {
        grid-template-columns: 1fr;
    }
    
    .clients-grid {
        gap: 15px;
    }
    
    .client-logo {
        padding: 15px 25px;
        font-size: 16px;
        width: 100%;
    }
    
    .qr-code-wrapper {
        flex-direction: column;
        text-align: center;
    }
}
