/* Общие стили и переменные - Atlas 3D Brand System v2 */
:root {
    /* Base Colors */
    --color-base-dark: #0B1220;
    --color-light: #F5F7FA;
    --color-neutral: #A8B2C1;

    /* Accent Colors */
    --color-primary: #2F6BFF;
    --color-secondary: #16C7A7;

    /* Legacy compatibility */
    --color-accent: #2F6BFF;
    --color-text: #F5F7FA;
    --color-text-light: #A8B2C1;
    --color-bg: #F5F7FA;
    --color-bg-dark: #0B1220;

    /* Glow & Effects */
    --glow-primary: rgba(47, 107, 255, 0.4);
    --glow-secondary: rgba(22, 199, 167, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);

    /* Typography - Brand System */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

    --transition: all 0.3s ease;
    --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--color-bg-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loader Animation */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.logo-animation {
    margin-bottom: 20px;
}

.logo-text {
    font-family: var(--font-secondary);
    font-size: 36px;
    font-weight: 700;
    fill: var(--color-accent);
    animation: pulse 2s infinite;
}

.loader-circle {
    stroke: var(--color-accent);
    stroke-dasharray: 345;
    stroke-dashoffset: 345;
    animation: drawCircle 2s ease-in-out infinite;
}

@keyframes drawCircle {

    0%,
    100% {
        stroke-dashoffset: 345;
    }

    50% {
        stroke-dashoffset: 0;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.loader-text {
    color: var(--color-secondary);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Иконка перехода в админку (слева) */
.admin-entry {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-base-dark);
    color: var(--color-primary);
    font-family: var(--font-secondary);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(47, 107, 255, 0.4);
    border-left: none;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.admin-entry:hover {
    background: rgba(47, 107, 255, 0.15);
    color: var(--color-light);
    width: 42px;
    border-color: var(--color-primary);
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 20px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-secondary);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-secondary);
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--color-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-secondary);
    transition: var(--transition);
}

.lang-switcher {
    background: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-secondary);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.lang-switcher:hover {
    background: var(--color-accent);
    color: #ffffff;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-bg-dark);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Gradient mesh overlay on hero */
.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(11, 18, 32, 0.45) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 50%, rgba(47, 107, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(22, 199, 167, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(47, 107, 255, 0.08) 0%, transparent 40%);
}

#heroModel {
    width: 100%;
    height: 100%;
    --poster-color: transparent;
    background-color: transparent;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-secondary);
    pointer-events: none;
}

.hero-title {
    font-family: var(--font-secondary);
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--color-light) 0%, var(--color-secondary) 50%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.7));
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.8s 0.4s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.8s 0.6s forwards;
    pointer-events: auto;
}

.btn {
    padding: 15px 40px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent), #1a4fd4);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(47, 107, 255, 0.5);
    filter: brightness(1.1);
}

.btn-secondary {
    background: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
}

.btn-secondary:hover {
    background: var(--color-secondary);
    color: var(--color-primary);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--color-accent);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
}

.dark-section {
    background: var(--color-bg-dark);
    color: var(--color-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-secondary);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.title-decoration {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
    margin: 0 auto;
    border-radius: 2px;
}

/* Section wave dividers */
.section-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 5;
}

.section-divider svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.section-divider .shape-fill {
    fill: var(--color-bg-dark);
}

.lead-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    color: var(--color-text-light);
}

.dark-section .lead-text {
    color: rgba(255, 255, 255, 0.8);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    will-change: transform;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(47, 107, 255, 0.3), transparent 40%, transparent 60%, rgba(22, 199, 167, 0.3));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(47, 107, 255, 0.6), rgba(22, 199, 167, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(47, 107, 255, 0.3);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(47, 107, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.feature-card:hover::before,
.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    font-size: 54px;
    margin-bottom: 24px;
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) translateY(-5px);
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    font-weight: 700;
    color: var(--color-light);
    letter-spacing: -0.5px;
}

.feature-card p {
    color: var(--color-neutral);
    font-size: 15px;
    line-height: 1.6;
}

/* Product Showcase */
.product-showcase {
    margin-top: 50px;
}

.showcase-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
    align-items: center;
}

.interactive-demo {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 60px;
    text-align: center;
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.demo-placeholder {
    color: var(--color-secondary);
}

.rotation-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(360deg);
    }
}

.showcase-info h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

/* Carousel */
.product-carousel {
    margin-top: 50px;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    font-size: 18px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

/* Configurator */
.configurator-demo {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 10px;
    margin: 50px 0;
}

.configurator-demo h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
}

.configurator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.product-viewer {
    background: white;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.viewer-canvas {
    width: 100%;
    aspect-ratio: 1;
    position: relative;
}

.product-layers {
    width: 100%;
    height: 100%;
    position: relative;
}

.product-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.configurator-controls {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.control-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--color-secondary);
}

.color-picker {
    display: flex;
    gap: 10px;
}

.color-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.color-btn:hover {
    border-color: var(--color-accent);
    transform: scale(1.1);
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-btn {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    color: var(--color-secondary);
    cursor: pointer;
    border-radius: 5px;
    transition: var(--transition);
    text-align: left;
}

.option-btn:hover,
.option-btn.active {
    border-color: var(--color-accent);
    background: rgba(212, 175, 55, 0.2);
}

/* Service Features */
.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--color-accent);
}

.feature-item h4 {
    font-size: 20px;
    margin-bottom: 15px;
}

/* Gallery */
.designers-showcase {
    margin-top: 50px;
}

.tour-embed {
    margin-bottom: 50px;
}

.tour-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
}

.tour-container iframe {
    width: 100%;
    height: 100%;
}

.tour-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 10px;
    pointer-events: none;
    opacity: 1;
    transition: var(--transition);
}

.tour-container:hover .tour-overlay {
    opacity: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    padding: 30px;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* Services Cards */
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--color-text);
    will-change: transform;
}

.dark-section .service-card {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-secondary);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(47, 107, 255, 0.15), 0 0 0 1px rgba(47, 107, 255, 0.2);
    border-color: rgba(47, 107, 255, 0.25);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover .service-icon {
    transform: scale(1.2);
}

.service-card h4 {
    font-size: 22px;
    margin-bottom: 15px;
}

/* CTA Block */
.cta-block {
    text-align: center;
    margin-top: 60px;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: 32px;
    margin-bottom: 20px;
}

.contact-methods {
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 18px;
}

.contact-icon {
    font-size: 24px;
}

/* Forms */
.contact-form,
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: var(--font-primary);
    font-size: 16px;
    transition: var(--transition);
}

.form-group select {
    color-scheme: dark;
}

.form-group select option {
    background-color: var(--color-bg-dark);
    color: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.checkbox-group a {
    color: var(--color-accent);
}

.btn-full {
    width: 100%;
}

/* Footer */
.footer {
    background: var(--color-bg-dark);
    color: var(--color-secondary);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--color-accent);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Modal — в стилистике сайта (тёмная тема) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 18, 32, 0.85);
    backdrop-filter: blur(8px);
    transition: opacity 0.25s ease;
}

.modal-content {
    position: relative;
    background: white;
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    z-index: 1;
    animation: modalAppear 0.3s ease;
}

/* Модальное окно заявки — тёмный блок в стиле сайта */
.modal-content--request {
    background: var(--color-bg-dark);
    border: 1px solid rgba(47, 107, 255, 0.35);
    border-radius: 16px;
    padding: 48px 40px 40px;
    max-width: 480px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.modal-content--request .modal-title {
    font-family: var(--font-secondary);
    font-size: 26px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.modal-content--request .modal-subtitle {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 28px;
    line-height: 1.5;
}

.modal-content--request .modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--color-text-light);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}

.modal-content--request .modal-close:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(47, 107, 255, 0.4);
}

/* Форма внутри модалки заявки */
.request-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.request-form .form-group {
    margin: 0;
}

.request-form .form-group input,
.request-form .form-group select,
.request-form .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-primary);
    font-size: 15px;
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    transition: var(--transition);
}

.request-form .form-group input::placeholder,
.request-form .form-group textarea::placeholder {
    color: var(--color-text-light);
    opacity: 0.8;
}

.request-form .form-group input:focus,
.request-form .form-group select:focus,
.request-form .form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.15);
}

.request-form .form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23A8B2C1' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    color-scheme: dark;
}

.request-form .form-group select option {
    background-color: #0F172A;
    /* Slate 900 */
    color: #F8FAFC;
    /* Slate 50 */
}

.request-form .form-group textarea {
    resize: vertical;
    min-height: 88px;
}

.request-form .checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.5;
}

.request-form .checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--color-accent);
}

.request-form .checkbox-group a {
    color: var(--color-accent);
    text-decoration: none;
}

.request-form .checkbox-group a:hover {
    text-decoration: underline;
}

.request-form-submit {
    margin-top: 8px;
    padding: 16px 24px;
    font-size: 14px;
    border-radius: 10px;
}

@media (max-width: 560px) {
    .modal-content--request {
        padding: 40px 24px 32px;
        margin: 0 16px;
    }

    .modal-content--request .modal-title {
        font-size: 22px;
    }

    .request-form .form-group input,
    .request-form .form-group select,
    .request-form .form-group textarea {
        padding: 12px 16px;
        font-size: 16px;
    }
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-content h3 {
    margin-bottom: 30px;
    font-size: 28px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: var(--color-text);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--color-accent);
}

/* Юридические документы (Политика, Оферта, Соглашение, Cookies) */
.legal-section {
    padding: 60px 0 80px;
    background: var(--color-bg-dark);
    color: var(--color-text-light);
}

.legal-container {
    max-width: 720px;
    margin: 0 auto;
}

.legal-title {
    font-family: var(--font-secondary);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.legal-updated {
    font-size: 14px;
    color: var(--color-text-light);
    opacity: 0.9;
    margin-bottom: 32px;
}

.legal-content {
    font-size: 15px;
    line-height: 1.75;
}

.legal-content h3 {
    font-family: var(--font-secondary);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-top: 28px;
    margin-bottom: 12px;
}

.legal-content h3:first-child {
    margin-top: 0;
}

.legal-content p {
    margin-bottom: 14px;
}

.legal-content ul {
    margin: 10px 0 14px 20px;
}

.legal-content li {
    margin-bottom: 6px;
}

.legal-content a {
    color: var(--color-accent);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.consent-text a {
    color: var(--color-accent);
}

/* Страницы юридических документов (privacy, offer, terms, cookies) */
.legal-page {
    padding-top: 0;
}

.legal-header {
    background: var(--color-bg-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
}

.legal-logo {
    font-family: var(--font-secondary);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.legal-logo:hover {
    color: var(--color-accent);
}

.legal-footer {
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: var(--color-text-light);
    font-size: 14px;
}

.legal-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
    margin-bottom: 16px;
}

.legal-footer-nav a {
    color: var(--color-accent);
    text-decoration: none;
}

.legal-footer-nav a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }

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

    .showcase-item,
    .configurator-container,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .gallery-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 40px;
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section {
        padding: 60px 0;
    }

    .features-grid,
    .service-features,
    .services-list {
        grid-template-columns: 1fr;
    }

    .carousel-btn {
        padding: 10px 15px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

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

    .btn {
        padding: 12px 30px;
        font-size: 12px;
    }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger children */
.reveal-stagger>* {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.revealed>*:nth-child(1) {
    transition-delay: 0s;
}

.reveal-stagger.revealed>*:nth-child(2) {
    transition-delay: 0.1s;
}

.reveal-stagger.revealed>*:nth-child(3) {
    transition-delay: 0.2s;
}

.reveal-stagger.revealed>*:nth-child(4) {
    transition-delay: 0.3s;
}

.reveal-stagger.revealed>*:nth-child(5) {
    transition-delay: 0.4s;
}

.reveal-stagger.revealed>*:nth-child(6) {
    transition-delay: 0.5s;
}

.reveal-stagger.revealed>* {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   STATS / COUNTER SECTION
   ============================================ */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--color-bg-dark) 0%, #0f1a2e 50%, var(--color-bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(47, 107, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 30px;
}

.stat-value {
    font-family: var(--font-secondary);
    font-size: 56px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 16px;
    color: var(--color-neutral);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10002;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    max-width: 360px;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    background: linear-gradient(135deg, rgba(22, 199, 167, 0.9), rgba(16, 160, 133, 0.9));
}

.toast-error {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.9), rgba(200, 50, 60, 0.9));
}

.toast-info {
    background: linear-gradient(135deg, rgba(47, 107, 255, 0.9), rgba(26, 79, 212, 0.9));
}

/* ============================================
   NAV ACTIVE INDICATOR
   ============================================ */
.nav-link.active {
    color: var(--color-primary);
}

.nav-link.active::after {
    width: 100%;
}

/* ============================================
   FEATURE ITEM ENHANCEMENTS
   ============================================ */
.feature-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.feature-item:hover {
    transform: translateY(-4px);
    border-left-color: var(--color-secondary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ============================================
   GALLERY ITEM ENHANCEMENTS
   ============================================ */
.gallery-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* ============================================
   PERFORMANCE: content-visibility for off-screen
   ============================================ */
.section {
    content-visibility: auto;
    contain-intrinsic-size: auto 800px;
}