/* ======== GENERAL & VARIABLES ======== */
:root {
    --bg-color: #1a1a1d;
    --text-color: #f5f5f7;
    --accent-color: #ffa726; /* Янтарный */
    --accent-hover: #ffb74d;
    --glass-bg: rgba(20, 20, 22, 0.6);
    --glass-border: rgba(255, 255, 255, 0.15);
    --blur-effect: blur(15px);
    --font-main: 'Manrope', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
    text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.7);
}

/* ======== HEADER ======== */

/* style.css */
body.no-scroll {
    overflow: hidden;
}
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: background-color 0.3s, backdrop-filter 0.3s;
}

.header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
}

.header__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-color);
    text-decoration: none;
}

.header__menu {
    display: flex;
    list-style: none;
    gap: 35px;
}

.header__menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.header__menu a:hover {
    color: var(--accent-color);
}

.header__contact a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    border: 1px solid var(--accent-color);
    padding: 8px 16px;
    border-radius: 20px;
    transition: background-color 0.3s, color 0.3s;
}

.header__contact a:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

@media (max-width: 992px) {
    .header__nav {
        /* Изменяем расположение элементов в навбаре */
        justify-content: space-between;
    }

    /* Скрываем десктопное меню и телефон навигации */
    .header__menu,
    .header__contact {
        display: none;
    }

    .burger {
    display: flex;
    flex-direction: column;
    justify-content: space-around; /* Равномерно распределяет спаны */
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 200;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 1px;
    /* Убедитесь, что transition есть */
    transition: transform 0.3s ease, opacity 0.3s ease;
    /* Установите origin для вращения */
    transform-origin: center; 
}

/* Анимация крестика для бургера */
.burger.active span:nth-child(1) {
    /* Сдвигаем на половину высоты бургера (11.5px), затем поворачиваем */
    transform: translateY(11.5px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    /* Средний span просто исчезает */
    opacity: 0;
}

.burger.active span:nth-child(3) {
    /* Сдвигаем вверх, затем поворачиваем */
    transform: translateY(-11.5px) rotate(-45deg);
}
}

/* Стили мобильного меню */
.mobile-menu {
    position: fixed;
    top: 45px;
    left: 0;
    width: 100%;
    height: calc(100vh - 45px);
    

    background: #141416; /* Используйте ваш основной тёмный цвет, например, из переменной --dark-bg */
    
    border-top: 1px solid var(--glass-border);
    z-index: 99;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Состояние, когда меню активно */
.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu__list {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 20px;
    gap: 15px;
}

.mobile-menu__list a {
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    text-decoration: none;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
}

.mobile-menu__list a:hover {
    color: var(--accent-color); /* Предполагается, что у вас есть такая переменная */
}

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
}

/* ======== HERO SECTION ======== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero__video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-color: #000;
}

.hero__video-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5); /* Затемнение видео для читаемости текста */
    z-index: -1;
}

.hero__video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__content {
    max-width: 700px;
    padding: 40px;
    text-align: center;
    margin: 0 auto;
    
    /* LIQUID GLASS EFFECT */
    background: var(--glass-bg);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.hero__content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero__content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn {
    background-color: var(--accent-color);
    color: var(--bg-color);
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
}
.advantages {
    padding: 120px 0;
    position: relative;
    overflow: hidden;

    background-color: #1a1a1d;

    background-image:
        /* Верхний слой: Блик света */
            radial-gradient(ellipse 50% 80% at 50% -20%, rgba(255, 255, 255, 0.07), transparent 50%),
                /* Нижний слой: Диагональные линии */
            repeating-linear-gradient(-45deg, transparent, transparent 159px, rgba(255, 255, 255, 0.03) 159px, rgba(255, 255, 255, 0.03) 160px);

    animation: lightSweep 15s ease-in-out infinite;
}

@keyframes lightSweep {
    0% { background-position: -100% 0, 0 0; }
    50% { background-position: 100% 0, 0 0; }
    100% { background-position: -100% 0, 0 0; }
}

.advantages .section-title {
    font-size: 3rem;
    margin-bottom: 80px;
    line-height: 1.3;
    color: #fff;
    position: relative;
    z-index: 1;

}

.advantages__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}

.advantage-card {
    background-color: #1a1a1d;
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}

.advantage-card.is-visible { opacity: 1; transform: translateY(0); }
.advantage-card:nth-child(2) { transition-delay: 0.1s; }
.advantage-card:nth-child(3) { transition-delay: 0.2s; }
.advantage-card:nth-child(4) { transition-delay: 0.3s; }

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.advantage-card__icon { margin-bottom: 20px; }
.advantage-card__icon svg { width: 40px; height: 40px; color: var(--accent-color); }
.advantage-card h3 { font-size: 1.5rem; color: #fff; margin-bottom: 10px; }
.advantage-card p { color: #a1a1a6; font-size: 1rem; line-height: 1.6; }

/* Адаптивность для этого блока */
@media (max-width: 992px) {
    .advantages__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .advantages .section-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .advantages__grid { grid-template-columns: 1fr; }
}

/* ======== CALCULATOR TEASER ======== */
.calculator-teaser {
    padding: 100px 0;
    background-color: #222225;
}
.calculator-teaser__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: var(--bg-color);
    padding: 50px;
    border-radius: 20px;
}
.input-group { margin-bottom: 30px; }
.input-group label { display: block; margin-bottom: 15px; font-size: 1.1rem; }
.slider { width: 100%; cursor: pointer; accent-color: var(--accent-color); }
.calculator-teaser__outputs p { font-size: 1.1rem; }
.output-prices { display: flex; gap: 30px; margin: 20px 0; }
.price-item {
    background: #2c2c2f;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    flex-grow: 1;
}
.price-item.premium { background: linear-gradient(145deg, #444, #222); }
.price-item span { display: block; font-size: 1rem; opacity: 0.7; }
.price-item strong { display: block; font-size: 1.8rem; font-weight: 700; color: var(--accent-color); }
.btn-secondary { color: var(--accent-color); text-decoration: none; font-weight: 500; }
.btn-secondary:hover { text-decoration: underline; }

/* ======== PROJECTS SLIDER ======== */
.projects { padding: 100px 0; }
.swiper.projects-slider {
    width: 100%;
    height: 500px;
    border-radius: 16px;
}
.swiper-slide {
    position: relative;
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.swiper-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.swiper-slide:hover img { transform: scale(1.05); }
.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px 20px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}
.swiper-button-next, .swiper-button-prev { color: var(--accent-color); }
.swiper-pagination-bullet-active { background-color: var(--accent-color); }

/* ======== FOOTER ======== */
.footer {
    text-align: center;
    padding: 40px 0;
    margin-top: 50px;
    border-top: 1px solid var(--glass-border);
}

/* ======== MEDIA QUERIES (ADAPTIVE) ======== */
@media (max-width: 992px) {
    .header__menu, .header__contact { display: none; }
    .burger { display: block; }
    .burger span {
        display: block;
        width: 25px;
        height: 2px;
        background-color: var(--text-color);
        margin: 5px 0;
        transition: all 0.3s;
    }
    .advantages__grid { grid-template-columns: 1fr 1fr; }
    .calculator-teaser__content { grid-template-columns: 1fr; }
    .hero__content h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .advantages__grid { grid-template-columns: 1fr; }
    .swiper.projects-slider { height: 400px; }
}

/* ======== HERO SLIDER (НОВЫЕ СТИЛИ) ======== */

/* Убираем старые стили для .hero__content, так как они теперь будут другими */
.hero__content {
    /* Эти свойства больше не нужны, так как фон теперь на слайде */
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    /* Позиционируем по центру */
    position: relative;
    z-index: 2;
}

/* Основной контейнер слайдера */
.hero {
    height: 100vh;
    overflow: hidden;
    position: relative;
    display: flex; /* Убираем, если был */
    align-items: stretch; /* Убираем, если был */
}

.hero-slider {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Важно для parallax */
}

/* Фон для каждого слайда */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1); /* Начальный зум для анимации */
    transition: transform 7s ease-out; /* Плавный зум-аут */
}

/* Затемнение фона для читаемости */
.slide-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

/* Анимация фона для активного слайда */
.swiper-slide-active .slide-bg {
    transform: scale(1);
}


/* Анимация появления текста */
.hero__content h1, .hero__content p, .hero__content .btn {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.swiper-slide-active .hero__content h1 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.swiper-slide-active .hero__content p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.swiper-slide-active .hero__content div { /* Для кнопки */
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.9s;
}


/* Абстрактные фигуры */
.abstract-shape {
    position: absolute;
    z-index: 1;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 15s ease-in-out infinite;
}

/* Разные формы и их анимации */
.shape-1 { /* Круг */
    width: 200px;
    height: 200px;
    border-radius: 50%;
    top: 20%;
    left: 15%;
}

.shape-2 { /* Круг побольше */
    width: 400px;
    height: 400px;
    border-radius: 50%;
    top: 50%;
    right: 5%;
    animation-duration: 20s;
    animation-delay: -5s;
}

.shape-3 { /* Прямоугольник */
    width: 250px;
    height: 250px;
    top: 15%;
    right: 15%;
    transform: rotate(45deg);
    animation: float-rotate 25s ease-in-out infinite;
}

.shape-4 { /* Маленький круг */
    width: 100px;
    height: 100px;
    border-radius: 50%;
    bottom: 15%;
    left: 25%;
    animation-duration: 12s;
}


/* Анимация плавного "плавания" */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(20deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes float-rotate {
    0% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(25px) rotate(65deg); }
    100% { transform: translateY(0px) rotate(45deg); }
}

/* Стили для пагинации (точки) */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: var(--accent-color);
}
/* ======== CONFIGURATOR ======== */
.configurator {
    padding: 120px 0;
    background-color: #000;
}

.configurator__header {
    text-align: center;
    margin-bottom: 60px;
}

.configurator .section-title {
    font-size: 3rem;
    margin-bottom: 10px;
}

.configurator .section-subtitle {
    font-size: 1.2rem;
    color: #a1a1a6;
    max-width: 600px;
    margin: 0 auto;
}

.configurator__body {
    background-color: #1a1a1d;
    border-radius: 24px;
    padding: 50px;
    position: relative;
    transition: height 0.4s ease; /* Добавили плавность */
}

.config-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.config-step.active {
    display: block;
}

.step-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

/* Стили для Шага 1 */
.dimensions-step {
    display: flex;
    align-items: flex-start; /* Изменили для лучшего выравнивания */
    justify-content: space-between;
    gap: 40px;
}

.dimensions-controls {
    flex-basis: 45%;
}

.dimensions-preview {
    flex-basis: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: sticky; /* Делаем превью "липким" */
    top: 120px;
}


/* Скрытие стрелок в полях ввода чисел */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}

/* Сегментированный переключатель форм */
.shape-selector {
    display: flex;
    background-color: #2c2c2f;
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 30px;
}
.shape-btn {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    background-color: transparent;
    color: #a1a1a6;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.shape-btn.active {
    background-color: #444;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Группы полей для разных форм */
.dims-group {
    display: none;
    animation: fadeIn 0.4s;
}
.dims-group.active {
    display: block;
}
.dims-group-note {
    font-size: 0.9rem;
    color: #a1a1a6;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.4;
}
.input-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 15px;
}

.dimensions-controls .input-group {
    flex-grow: 1;
}

.dimensions-controls label {
    font-size: 1rem;
    color: #a1a1a6;
    margin-bottom: 10px;
    display: block;
    text-align: center;
}
.dimensions-controls input {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    background: #2c2c2f;
    border: 1px solid #444;
    border-radius: 12px;
    padding: 15px 10px;
    width: 100%;
    text-align: center;
}

/* Обновление превью */
#preview-area {
    width: 100%;
    height: 250px;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}
#preview-area svg {
    max-width: 100%;
    max-height: 100%;
    fill: var(--accent-color);
    transition: all 0.3s ease;
}
.preview-summary {
    margin-top: 20px;
    font-size: 2rem;
    font-weight: 700;
}

/* Навигация */
.configurator__navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding: 0 50px;
}
.step-indicator {
    color: #a1a1a6;
    font-weight: 500;
}
.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Стили для текста (A, B, C, D) внутри SVG */
#preview-area svg text {
    font-family: var(--font-main);
    font-size: 2px; /* Размер подбирается под viewBox SVG */
    font-weight: 700;
    fill: #FFF; /* Цвет текста, контрастный фону фигуры */
    text-anchor: middle;
    dominant-baseline: middle;
}


.timeline-story {
    /* height: 400vh; */ /* <-- ЭТА СТРОКА БОЛЬШЕ НЕ НУЖНА */
    background-color: #000;
    position: relative; /* Оставьте это, нужно для корректной работы */
}

/* 2. УБЕДИТЕСЬ, ЧТО У ВНУТРЕННЕГО КОНТЕЙНЕРА ВЫСОТА 100VH */
.timeline-sticky-container {
    position: sticky; /* Эта строка теперь не так важна, но пусть будет */
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}




.timeline-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 3. ВСЕ СЦЕНЫ ИЗНАЧАЛЬНО ПОЛНОСТЬЮ ПРОЗРАЧНЫ */
.scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; /* <-- ВСЕ ПРОЗРАЧНЫ */
}

/* Фоновые изображения для каждой сцены */
#scene-summer { background-image: url('img/leto.jpg');     opacity: 1;}
#scene-autumn { background-image: url('img/osen.jpg'); }
#scene-winter { background-image: url('img/zima.jpg'); }
#scene-spring { background-image: url('img/vesna.jpg'); }
#scene-final { background-image: url('img/final.jpg'); }


/* Стили для текста */
.timeline-header, .timeline-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
}
.timeline-header {
    align-self: flex-start;
    padding-top: 120px;
    opacity: 1;
    transition: opacity 0.5s;
}
.timeline-footer {
    align-self: flex-end;
    padding-bottom: 120px;
    opacity: 0; /* Появится в конце */
    transition: opacity 0.5s;
}
.timeline-footer h3 { font-size: 2.5rem; }
.timeline-footer p { font-size: 1.2rem; color: #FFF; }

/* Контейнер для текста сезонов */
.season-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* Чтобы не мешал кликам, если что */
}

/* Стили для текста одного сезона */
.season-text {
    position: absolute;
    color: #fff;
    text-align: center;
    max-width: 600px;
    opacity: 0; /* Все тексты изначально полностью прозрачны */
    /* Начальное положение для анимации "появления снизу" */
    transform: translateY(30px);

}

.season-text h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.season-text p {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Стили для элегантной финальной анимации текста */
.timeline-footer {
    bottom: 120px; /* Положение финального текста */
    opacity: 1; /* ВАЖНО: Родительский блок должен быть видимым */
}

.final-text-line {
    overflow: hidden; /* Это "маска", из-за которой текст будет появляться */
    padding: 2px 0; /* Небольшой отступ */
}

/* Прячем сами строки (h3 и p) за пределами "маски" */
.final-text-line > * {
    transform: translateY(110%);
}

/* style.css */

/* ======== TOP BAR ======== */
.top-bar {
    /* ЗАДАЕМ ФИКСИРОВАННОЕ ПОЛОЖЕНИЕ */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 101; /* Выше основного хедера */

    height: 45px;
    padding: 0 20px;

    /* ЭФФЕКТ СТЕКЛА ПРИСУТСТВУЕТ ВСЕГДА */
    background: rgba(20, 20, 22, 0.6);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    border-bottom: 1px solid var(--glass-border);
}

.top-bar .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar__socials {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar__socials a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease, transform 0.3s ease;
}

.top-bar__socials a:hover {
    color: #fff;
    transform: scale(1.1);
}

.top-bar__cta a {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid transparent;
    transition: background-color 0.3s ease;
}

.top-bar__cta a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* style.css */

/* Внутри .top-bar .container display: flex; и justify-content: space-between; уже есть,
   поэтому он разделит .top-bar__info и .top-bar__actions по краям */

.top-bar__info,
.top-bar__actions {
    display: flex;
    align-items: center;
    gap: 30px; /* Расстояние между группами элементов */
}

.top-bar__address {
    display: flex;
    align-items: center;
    gap: 8px; /* Расстояние между иконкой и текстом адреса */
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-bar__address:hover {
    color: #fff;
}

.top-bar__address svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0; /* Чтобы иконка не сжималась */
}

/* Обновляем стили для иконок соцсетей */
.top-bar__socials a svg {
    width: 20px;
    height: 20px;
    stroke: rgba(255, 255, 255, 0.8); /* Используем stroke для контурных иконок */
    fill: none; /* Убираем заливку */
    transition: stroke 0.3s ease;
}

.top-bar__socials a:hover svg {
    stroke: #fff;
}
/* ======== HEADER ======== */
.header {
    /* ТАКЖЕ ФИКСИРУЕМ, НО НИЖЕ ТОП-БАРА */
    position: fixed;
    top: 40px; /* На высоте топ-бара */
    left: 0;
    width: 100%;
    z-index: 100;

    padding: 20px 0;

    /* ИЗНАЧАЛЬНО ПОЛНОСТЬЮ ПРОЗРАЧНЫЙ */
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid transparent; /* Прозрачная граница для плавного появления */

    /* Плавный переход для всех нужных свойств */
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
}

/* СТИЛИ ПРИ ПРОКРУТКЕ (добавляются через JS) */
.header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    border-color: var(--glass-border); /* Проявляем границу */
    padding: 15px 0;
}


/* Адаптивность для топ-бара */
@media (max-width: 768px) {
    .top-bar {
        /* Высота может быть уменьшена для экономии места на маленьких экранах */
        height: 40px;
        padding: 0 15px;
    }

    .top-bar .container {
        /* Распределяем элементы по краям */
        justify-content: space-between;
    }

    /* Скрываем адрес и иконки соцсетей, оставляя только кнопку CTA */
    .top-bar__info {
        display: none;
    }

    .top-bar__socials {
        display: none;
    }

    /* Адаптируем кнопку "Заказать звонок" */
    .top-bar__cta a {
        font-size: 12px;
        padding: 6px 12px;
    }

   
    .top-bar__info {
        gap: 15px;
    }
    .top-bar__address span {
        display: none;
    }
    .top-bar__socials {
        display: none;
    }
    .top-bar__cta a {
        font-size: 12px;
    } 
}



/* style.css */

/* ======== Product Details Section ======== */
.product-details {
    padding: 120px 0;
    background-color: var(--bg-color);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.detail-card {
    background-color: #111113;
    border-radius: 24px;
    padding: 60px;
    min-height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden; /* Важно для карточек с фоном */
    position: relative;
    border: 1px solid var(--glass-border);

    /* Анимация появления */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Стили для карточек, где есть фоновое изображение */
.detail-card--visual-bg {
    justify-content: flex-end; /* Текст прижимается к низу */
    padding: 40px;
}

.detail-visual-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    z-index: 1;
}

.detail-card:hover .detail-visual-background {
    transform: scale(1.05); /* Красивый эффект при наведении */
}

/* Градиент поверх картинки для читаемости текста */
.detail-card--visual-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
    z-index: 2;
    background: linear-gradient(to top, rgba(17, 17, 19, 0.95), transparent);
}


.detail-content {
    position: relative;
    z-index: 3;
}

.detail-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 20px;
}

.detail-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #a1a1a6;
    max-width: 450px;
}

.detail-visual {
    margin-top: 40px;
    text-align: center;
}

.detail-visual img {
    max-width: 80%;
    height: auto;
    opacity: 0.7;
}

/* Адаптивность */
@media (max-width: 992px) {
    .details-grid {
        grid-template-columns: 1fr; /* Карточки встают друг под другом */
    }
    .detail-card {
        padding: 40px;
        min-height: auto;
    }
    .detail-title {
        font-size: 2.2rem;
    }
}



/* style.css */

/* ======== Cinematic Testimonial Section ======== */
.cinematic-testimonial {
    position: relative; /* Необходимо для позиционирования оверлея */
    padding: 160px 0;
    color: #fff;

    /* САМОЕ ВАЖНОЕ: ФОН */
    /* Замените на вашу самую красивую фотографию проекта */
    background-image: url('https://images.pexels.com/photos/208821/pexels-photo-208821.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2');
    background-size: cover;
    background-position: center;
    /* Этот эффект создает параллакс при скролле */
    background-attachment: fixed;
}

/* Оверлей для затемнения фона, чтобы текст был читаемым */
.cinematic-testimonial::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 17, 19, 0.7);
    z-index: 1;
}

/* Контейнер для контента, который будет поверх оверлея */
.testimonial-container {
    position: relative;
    z-index: 2;
    max-width: 900px; /* Немного уже основного, для фокуса */
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;

    /* Анимация появления контента */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Класс для JS, который будет делать блок видимым */
.testimonial-container.is-visible {
    opacity: 1;
    transform: translateY(0);
}


.testimonial-quote {
    font-size: 2.8rem;
    font-weight: 400; /* Более легкий шрифт для элегантности */
    line-height: 1.4;
    margin: 0 0 30px;
    font-style: italic;
    border: none;
    padding: 0;
}

.testimonial-author {
    font-size: 1.2rem;
    font-style: normal;
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: 50px;
}

.testimonial-details {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.detail-item {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
}

/* Декоративный разделитель */
.detail-item:not(:first-child)::before {
    content: '•';
    position: absolute;
    left: -18px;
    color: var(--accent-color);
}


.testimonial-cta {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: color 0.3s;
}

.testimonial-cta:hover {
    color: #fff;
}

/* Адаптивность */
@media (max-width: 768px) {
    .cinematic-testimonial {
        padding: 100px 0;
        /* На мобильных параллакс часто работает плохо, можно отключить */
        background-attachment: scroll;
    }
    .testimonial-quote {
        font-size: 1.8rem;
    }
    .testimonial-author {
        font-size: 1rem;
    }
    .testimonial-details {
        flex-direction: column;
        gap: 10px;
    }
    .detail-item:not(:first-child)::before {
        display: none; /* Убираем разделители на мобильных */
    }
}


/* style.css */

/* ======== Philosophy Section ======== */
.philosophy {
    padding: 50px 0;
}
.philosophy-header {
    text-align: center;
    margin-bottom: 60px;
}
.philosophy-header .section-subtitle {
    max-width: 500px;
    margin: 15px auto 0;
    color: #a1a1a6;
}

.philosophy-grid {
    display: grid;
    /* This is the key: auto-fit and minmax will automatically make the grid responsive */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    min-height: 600px;
    transition: grid-template-columns 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.philosophy-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.philosophy-card:not(.active) {
    transform: scale(0.98);
}
.philosophy-card:not(.active):hover {
    transform: scale(1);
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s ease, opacity 0.7s ease;
}
.philosophy-card::after { /* Затемняющий оверлей */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 17, 19, 0.7);
    transition: background 0.7s ease;
}
.philosophy-card:hover::after {
    background: rgba(17, 17, 19, 0.6);
}
.philosophy-card.active::after {
    background: rgba(17, 17, 19, 0.85);
}

.card-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    transition: opacity 0.5s ease;
}

.card-content {
    position: absolute;
    z-index: 2;
    bottom: 40px;
    left: 40px;
    right: 40px;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s 0.2s ease, transform 0.5s 0.2s ease;
}
.content-icon {
    margin-bottom: 20px;
    color: var(--accent-color);
}
.content-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #a1a1a6;
}

/* Логика отображения при активном состоянии */
.philosophy-card.active .card-title {
    opacity: 0;
    pointer-events: none;
}
.philosophy-card.active .card-content {
    opacity: 1;
    transform: translateY(0);
}

.philosophy-card .content-description {
	color: #FFF;
}
/* Адаптивность */
@media (max-width: 992px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        min-height: auto;
    }
    
    .philosophy-card {
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
        padding-bottom: 20px;
    }

    .card-background {
        position: static;
        height: 200px;
    }
    
    .philosophy-card::after {
        display: none; /* Убираем затемняющий оверлей на мобильных */
    }

    .card-title {
        position: static; /* Отключаем абсолютное позиционирование */
        transform: none;
        opacity: 1; /* Делаем заголовок всегда видимым */
        margin-top: 20px;
    }

    .card-content {
        position: static; /* Отключаем абсолютное позиционирование */
        opacity: 1; /* Делаем контент всегда видимым */
        transform: none;
        padding: 20px;
    }

    /* Убираем стили для активного состояния, так как на мобильных
       весь контент должен быть виден сразу */
    .philosophy-card.active .card-title,
    .philosophy-card.active .card-content {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .card-title {
        position: static;
        transform: none;
        font-size: 2rem;
        padding-top: 20px;
        text-align: center;
    }

    .card-content {
        position: static;
        transform: none;
        opacity: 1; /* Make content always visible on mobile */
        padding: 20px;
        text-align: center;
    }

    /* Since content is always visible, we don't need the active class styling */
    .philosophy-card.active .card-title {
        opacity: 1;
    }
    
    .philosophy-card.active .card-content {
        opacity: 1;
    }
    
    .philosophy-card::after {
        /* We can remove the overly on mobile for better visibility */
        display: none;
    }

    .philosophy-card:not(.active) {
        transform: scale(1);
    }
    .philosophy-card.active {
        height: 400px;
    }
    .card-title {
        font-size: 2rem;
    }
    .card-content {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }
}
  /* FOOTER */
        .site-footer {
            background-color: #111113;
            color: #a1a1a6;
            padding: 80px 0 20px;
        }
        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 40px;
            margin-bottom: 40px;
        }
        .footer-logo {
            font-size: 2rem;
            font-weight: 800;
            color: #f5f5f7;
            text-decoration: none;
            margin-bottom: 20px;
            display: inline-block;
        }
        .footer-tagline {
            font-size: 0.9rem;
            line-height: 1.6;
            max-width: 300px;
        }
        .footer-title {
            font-size: 1.2rem;
            color: #f5f5f7;
            margin-bottom: 20px;
            font-weight: 700;
        }
        .footer-links {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .footer-links li a,
        .footer-contact-info li a {
            color: #a1a1a6;
            text-decoration: none;
            transition: color 0.3s;
            font-size: 0.95rem;
            line-height: 2.2;
        }
        .footer-links li a:hover,
        .footer-contact-info li a:hover {
            color: #fff;
        }
        .footer-contact-info {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .footer-contact-info li {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }
        .footer-contact-info svg {
            margin-right: 10px;
            flex-shrink: 0;
        }
        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding-top: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .footer-socials a {
            color: #a1a1a6;
            text-decoration: none;
            margin-left: 20px;
            transition: color 0.3s;
        }
        .footer-socials a:hover {
            color: #fff;
        }
        .footer-innovation-ar .ar-preview {
            display: flex;
            align-items: center;
            gap: 15px;
            background: rgba(255, 255, 255, 0.05);
            padding: 15px;
            border-radius: 12px;
        }
        .ar-qr-code svg {
            width: 50px;
            height: 50px;
            color: #ffa726;
        }
        .ar-text {
            font-size: 0.8rem;
        }
        .ar-text p {
            margin: 0;
        }

        /* RESPONSIVE */
        @media (max-width: 992px) {
            .footer-grid { grid-template-columns: 1fr; gap: 30px; }
            .footer-bottom { flex-direction: column; text-align: center; }
            .footer-socials { margin-top: 20px; }
        }
        @media (max-width: 768px) {
            .page-section { padding: 80px 0; }
        }

/* ======== СТИЛИ ДЛЯ СВЕТЛОЙ ТЕМЫ ======== */
body.light-theme {
    --bg-color: #f5f5f7;
    --text-color: #1a1a1d;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.1);
}
body.light-theme .site-footer {
    background-color: #e5e5ea;
    color: #555;
    border-top-color: rgba(0, 0, 0, 0.1);
}
body.light-theme .footer-title,
body.light-theme .footer-logo,
body.light-theme .footer-links a:hover,
body.light-theme .footer-contact-info a:hover {
    color: #1a1a1d;
}
body.light-theme .footer-links a,
body.light-theme .footer-contact-info a {
    color: #555;
}
body.light-theme .footer-bottom {
    border-top-color: rgba(0, 0, 0, 0.1);
}


.about-hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}
.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-background::after { /* Затемнение для читаемости */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 17, 19, 0.6);
}
.about-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}
.about-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.8);
}
/* Стили для десктопа */
.founder-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Увеличим левую колонку для фото */
    gap: 80px;
    align-items: center;
}

.founder-photo img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    display: block;
}

/* Стили для мобильных */
@media (max-width: 992px) {
    .founder-grid {
        /* Меняем на Flexbox для удобства управления порядком на мобильных */
        display: flex;
        flex-direction: column; /* Элементы будут идти друг под другом */
        gap: 40px; /* Уменьшаем отступ между блоками */
    }

    .founder-text .section-title {
        /* Выравниваем заголовок по центру на мобильных */
        text-align: center !important;
    }
}

.production-process { padding: 20px 0; }
.process-scroller { display: flex; gap: 30px; padding: 40px 0; overflow-x: auto; /* Включаем горизонтальный скролл */ scrollbar-width: none; /* Firefox */ }
.process-scroller::-webkit-scrollbar { display: none; /* Chrome, Safari */ }
.process-scroller .process-step:first-child { margin-left: calc((100vw - 1240px) / 2 + 20px); } /* Начальный отступ */
.process-scroller .process-step:last-child { margin-right: calc((100vw - 1240px) / 2 + 20px); } /* Конечный отступ */
.process-step { background: #1a1a1d; padding: 40px; border-radius: 24px; border: 1px solid var(--glass-border); }
.step-number { font-size: 2rem; font-weight: 700; color: var(--accent-color); margin-bottom: 20px; }
.process-step h4 { font-size: 1.3rem; color: #fff; margin-bottom: 15px; }
.process-step p { color: #a1a1a6; }
/* style.css */

/* ======== Assortment Section ======== */
.assortment {
    padding: 120px 0px 100px 0px;
}

.assortment-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 80px;
    align-items: flex-start;
}

/* Стили для навигации слева */
.assortment-nav {
    position: sticky; /* <<-- Ключевое свойство для "прилипания" */
    top: 120px; /* Отступ от верха, чтобы не перекрывать хедер */
}
.nav-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
}
.nav-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
}
.nav-list li {
    margin-bottom: 10px;
}
.nav-button {
    background: none;
    border: none;
    padding: 10px 0;
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 500;
    color: #555; /* Неактивные пункты приглушены */
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}
.nav-button::before { /* Декоративная линия для активного пункта */
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.nav-button.active {
    color: #fff;
}
.nav-button.active::before {
    transform: scaleX(1);
}
.nav-description {
    color: #a1a1a6;
    line-height: 1.6;
}

/* Стили для визуальных карточек справа */
.assortment-visuals {
    position: relative;
    min-height: 70vh;
}
.visual-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Прижимаем контент к низу */

    /* Анимация появления */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s;
}
.visual-card.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}
.about .card-content {
    padding: 40px;
    position: relative;
    background: linear-gradient(180deg, transparent 0%, rgba(17, 17, 19, 0.8) 50%, rgba(17, 17, 19, 1) 100%);
}
.about .card-content h4 {
    font-size: 2rem;
    margin-bottom: 15px;
}
.about .card-content p {
    font-size: 1.1rem;
    color: #a1a1a6;
    line-height: 1.6;
    max-width: 500px;
    margin-bottom: 30px;
}
.about .card-content a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
}

/* Адаптивность */
@media (max-width: 992px) {
    .assortment-layout {
        grid-template-columns: 1fr; /* Все в одну колонку */
    }
    .assortment-nav {
        position: static; /* Отключаем "прилипание" */
        margin-bottom: 40px;
    }
}

.comparison-section {
    padding: 120px 0;
    background-color: #000; /* Черный фон для премиальности */
    color: #f5f5f7;
    border-top: 1px solid #222;
}

/* Стили для слайдера */
.comparison-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 9; /* Сохраняем пропорции изображения */
    cursor: e-resize;
    user-select: none;
}

.comparison-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Важно для обрезки изображения */
}

.comparison-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    position: absolute; /* Для корректного отображения внутри родителя */
}

/* Изображение "ДО" (старое дерево) будет менять свою ширину */
.before-image {
    width: 50%; /* Начальное положение - посредине */
}

.image-label {
    position: absolute;
    bottom: 20px;
    background-color: rgba(0,0,0,0.6);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
}
.after-image .image-label { right: 20px; }
.before-image .image-label { left: 20px; }

/* Стили для ползунка */
.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background-color: #fff;
    transform: translateX(-50%);
    cursor: e-resize;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    z-index: 10;
}

.handle-arrow {
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: absolute; /* Позиционируем абсолютно относительно линии */
    top: 50%;
    margin-top: -20px; /* Вертикальное центрирование */
}
.left-arrow { transform: translateX(-50%); left: 0;}
.right-arrow { transform: translateX(50%); right: 0; }
.left-arrow::after, .right-arrow::after {
    content: '';
    border: solid #1a1a1d;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 4px;
}
.left-arrow::after { transform: rotate(135deg); margin-left: 5px; }
.right-arrow::after { transform: rotate(-45deg); margin-right: 5px; }


/* Стили для текстового сравнения */
.comparison-text {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 60px auto 0;
    gap: 40px;
}
.text-column { flex-basis: 48%; }
.text-column h3 { font-size: 1.8rem; margin-bottom: 20px; }
.text-column ul { list-style: none; padding: 0; }
.text-column li { margin-bottom: 15px; font-size: 1.1rem; line-height: 1.6; }




/*

    CONTACTS

 */


/* Секция 1: Приветственный экран */
.contact-hero {
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #111;
}
.contact-hero-content {
    max-width: 800px;
    padding: 20px;
}
.contact-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.contact-hero p {
    font-size: 1.2rem;
    color: #a1a1a6;
    line-height: 1.6;
}

/* Секция 2: Основная информация */
.contact-main {
    background-color: #000;
    padding: 100px 0;
}
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.info-block {
    background-color: #1a1a1d;
    padding: 40px;
    border-radius: 16px;
}
.contact-details h3, .contact-form-container h3 {
    font-size: 1.8rem; margin-bottom: 20px;
}
.contact-details p, .contact-details ul { margin-bottom: 20px; }
.contact-details ul { list-style: none; padding: 0; }
.contact-details a { color: var(--accent-color, #ffa726); text-decoration: none; }
.contact-map { padding: 0; overflow: hidden; }

/* Форма */
.contact-form-container { grid-column: 1 / -1; } /* Растягиваем на всю ширину */
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; margin-bottom: 8px; color: #a1a1a6; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    background-color: #2c2c2f;
    border: 1px solid #444;
    border-radius: 8px;
    color: #f5f5f7;
    font-size: 1rem;
}
.contact-form .btn { margin-top: 10px; }

/* Секция 3: Отделы */
.contact-departments { margin-top: 100px; }
.departments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
@media (max-width: 992px) {
    .departments-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
.department-card {
    border: 1px solid #2c2c2f;
    padding: 30px;
    border-radius: 16px;
    transition: background-color 0.3s;
}
.department-card:hover { background-color: #1a1a1d; }
.department-card h4 { font-size: 1.5rem; margin-bottom: 10px; }
.department-card p { color: #a1a1a6; margin-bottom: 20px; }
.department-card a { color: var(--accent-color, #ffa726); text-decoration: none; font-weight: 500; }


/* Главный контейнер секции для создания пространства для скролла */
.text-reveal-section {
    height: 250vh; /* Длина скролла для анимации */
    background-color: #000;
}

/* Контейнер, который будет "липким" */
.text-reveal-sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: grid; /* Используем гриды для простого центрирования */
    place-items: center;
}

/* Стили для фоновых изображений */
.background-images, .text-mask {
    /* Располагаем все элементы в одной ячейке грида, чтобы они были друг над другом */
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
}

.bg-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
}

/* --- ИЗМЕНЕНИЕ 1: Затемняем и размываем фон с природой --- */
#nature-bg {
    filter: brightness(0.6) blur(3px);
    transform: scale(1.1); /* Слегка увеличим, чтобы скрыть размытые края */
}

/* Изначально фон с террасой полностью скрыт с помощью clip-path */
#terrace-bg {
    clip-path: inset(0 100% 0 0); /* Обрезаем всё, кроме левого края (который 0px) */
}

/* Стили для текста-маски */
.text-mask {
    display: grid;
    place-items: center;
    /* В качестве фона для текста-маски мы используем то же изображение с террасой */
    background-image: url('URL_ФОТО_ТЕРРАСЫ.jpg');
    background-size: cover;
    background-position: center;

    /* МАГИЯ: Обрезаем фон по контуру текста */
    background-clip: text;
    -webkit-background-clip: text; /* Префикс для Safari/Chrome */

    /* Делаем сам текст прозрачным, чтобы был виден фон под ним */
    color: transparent;
}

.text-mask h1 {
    font-size: 15vw; /* Размер текста зависит от ширины экрана */
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    line-height: 1;
}

/* --- ИЗМЕНЕНИЕ 2: Применяем эффект "жидкого стекла" к блоку с текстом --- */
.intro-text {
    /* Располагаем его в той же ячейке грида, что и всё остальное */
    grid-area: 1 / 1;
    z-index: 3; /* Убедимся, что он выше фоновых картинок */
    color: #fff;
    text-align: center;
    align-self: center; /* Вертикальное центрирование */
    max-width: 700px;

}

.intro-text h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.intro-text p {
    font-size: 1.2rem;
    color: #a1a1a6;
}

/* Filters */
.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 60px 0;
}
.filter-btn {
    background: #2c2c2f;
    border: 1px solid var(--glass-border);
    color: #a1a1a6;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}
.filter-btn:hover {
    background: #444;
    color: #fff;
}
.filter-btn.active {
    background: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
}

/* Inspiration Grid (для Masonry потребуется немного JS) */
.inspiration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}
.inspiration-card {
    background: #1a1a1d;
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.inspiration-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.card-link {
    text-decoration: none;
    color: inherit;
}
.card-image-wrapper img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.card-text-content {
    padding: 25px;
}
.card-category {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}
.card-title {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 15px;
}
.card-excerpt {
    color: #a1a1a6;
    line-height: 1.6;
}

/* style.css */

/* ======== Immersive Hero Section ======== */
.immersive-hero {
    position: relative; /* Родитель для всех слоев */
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Важно, чтобы фигуры не вылезали */
}

/* Слой 1: Фоновое видео */
.hero-video-background {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
   
}
.hero-video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Слой 2: Стеклянные панели */
.glass-layers {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 2;
}
.glass-pane {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    will-change: transform; /* Оптимизация для анимации */
}
/* Размеры и положение разных панелей */
.pane-1 {
    width: 300px; height: 400px;
    top: 10%; left: 15%;
    border-radius: 24px;
    animation: drift 20s ease-in-out infinite alternate;
}
.pane-2 {
    width: 250px; height: 250px;
    bottom: 15%; right: 20%;
    border-radius: 32px;
    animation: drift 25s 3s ease-in-out infinite alternate;
}
.pane-3 {
    width: 150px; height: 200px;
    top: 25%; right: 10%;
    border-radius: 16px;
    animation: drift 18s 1s ease-in-out infinite alternate;
}

/* Та самая "жидкая" форма */
.liquid-blob {
    width: 600px; height: 600px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.7;
    animation: liquid-move 30s ease-in-out infinite;
}
/* Анимация дрейфа для панелей */
@keyframes drift {
    from { transform: translateY(-20px) translateX(-10px) rotate(-5deg); }
    to { transform: translateY(20px) translateX(10px) rotate(5deg); }
}
/* Анимация изменения формы для "жидкого" блоба (из прошлой шапки) */
@keyframes liquid-move {
    0% { border-radius: 47% 53% 70% 30% / 30% 43% 57% 70%; }
    50% { border-radius: 67% 33% 45% 55% / 50% 61% 39% 50%; }
    100% { border-radius: 47% 53% 70% 30% / 30% 43% 57% 70%; }
}

/* Слой 3: Контент */
.hero-content-container {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
}
.hero-title-main {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.hero-subtitle-main {
    font-size: 1.2rem;
    max-width: 550px;
    margin: 20px auto 40px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}




:root {
            --bg-color: #1a1a1d;
            --bg-secondary: #111113;
            --text-color: #f5f5f7;
            --text-muted: #a1a1a6;
            --accent-color: #ffa726;
            --glass-bg: rgba(20, 20, 22, 0.6);
            --glass-border: rgba(255, 255, 255, 0.1);
            --blur-effect: blur(15px);
            --font-main: 'Manrope', sans-serif;
        }

        /* Общие стили секций */
        .page-section { padding: 120px 0; position: relative; }
        .section-title { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 700; text-align: center; margin-bottom: 20px; line-height: 1.2; }
        .section-subtitle { font-size: 1.25rem; color: var(--text-muted); max-width: 800px; margin: 0 auto 80px; text-align: center; font-weight: 400; }
        .container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

        /* HERO SECTION */
        .montazh-hero {
            height: 90vh;
            display: flex;
            align-items: center;
            position: relative;
            overflow: hidden;
            text-align: center;
        }
        .hero-background {
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            z-index: 1;
        }
        .hero-background::after {
            content: '';
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: linear-gradient(to top, rgba(17, 17, 19, 1) 0%, rgba(17, 17, 19, 0.5) 50%, rgba(17, 17, 19, 0.2) 100%);
        }
        .hero-background video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .hero-content {
            position: relative;
            z-index: 2;
        }
        .hero-title {
            font-size: clamp(2.5rem, 6vw, 5rem);
            font-weight: 800;
            line-height: 1.1;
            text-shadow: 0 5px 25px rgba(0,0,0,0.5);
        }
        .hero-subtitle {
            font-size: 1.5rem;
            color: var(--text-muted);
            font-weight: 400;
            max-width: 750px;
            margin: 20px auto 0;
        }
        
        /* FOUNDATION SECTION */
        .foundation-section { background-color: var(--bg-secondary); }
        .foundation-banner {
            height: 400px;
            background: url('img/img/1.JPG') no-repeat center center/cover;
            border-radius: 24px;
            margin-bottom: 80px;
            display: flex;
            align-items: center;
            padding: 40px;
            position: relative;
            overflow: hidden;
        }
        .foundation-banner::before {
            content: '';
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(0, 0, 0, 0.5);
        }
        .banner-content { position: relative; z-index: 1; color: var(--text-color); max-width: 600px; text-align: left; }
        .banner-content h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; margin-bottom: 15px; }
        .banner-content p { font-size: 1.1rem; line-height: 1.6; color: rgba(255, 255, 255, 0.8); }
        .foundation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
        .foundation-card { background-color: var(--bg-color); border: 1px solid var(--glass-border); border-radius: 24px; padding: 40px; transition: transform 0.3s, box-shadow 0.3s; }
        .foundation-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.25); }
        .foundation-card h3 { font-size: 1.8rem; margin-bottom: 15px; color: var(--text-color); }
        .foundation-card p { color: var(--text-muted); font-size: 1rem; line-height: 1.7; }

        /* PROCESS SCROLLER */
        .process-section { background-color: #000; }
        .process-scroller { display: flex; gap: 30px; padding: 40px 0; overflow-x: auto; scrollbar-width: none; }
        .process-scroller::-webkit-scrollbar { display: none; }
        .process-scroller .process-step:first-child { margin-left: calc((100vw - 1240px) / 2 + 20px); }
        .process-scroller .process-step:last-child { margin-right: calc((100vw - 1240px) / 2 + 20px); }
        .process-step { background: var(--bg-color); padding: 40px; border-radius: 24px; border: 1px solid var(--glass-border); height: auto; transition: background-color 0.3s; }
        .process-step:hover { background-color: #2a2a2d; }
        .step-number { font-size: 2.5rem; font-weight: 800; color: var(--accent-color); margin-bottom: 20px; line-height: 1; }
        .process-step h4 { font-size: 1.5rem; color: #fff; margin-bottom: 15px; }
        .process-step p { color: var(--text-muted); }
        .process-image { width: 100%; height: 200px; object-fit: cover; border-radius: 12px; margin-bottom: 20px; }

        /* COMPONENTS SECTION */
        .components-section { background-color: var(--bg-secondary); }
        .components-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; }
        .components-visual { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
        .component-image-block { position: relative; border-radius: 24px; overflow: hidden; transition: transform 0.3s; }
        .component-image-block:hover { transform: scale(1.03); }
        .component-image { width: 100%; height: 100%; object-fit: cover; display: block; }
        .image-label { position: absolute; bottom: 0; left: 0; width: 100%; padding: 15px; background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0)); color: var(--text-color); font-size: 1.1rem; font-weight: 500; }
        .component-item { padding: 25px; border-radius: 16px; margin-bottom: 20px; border: 1px solid transparent; transition: background-color 0.3s, border-color 0.3s; }
        .component-item:hover { background-color: var(--bg-color); border-color: var(--glass-border); }
        .component-item h4 { font-size: 1.5rem; color: #fff; margin-bottom: 8px; }
        .component-item p { color: var(--text-muted); }

        /* CTA SECTION */
        .cta-section { background: linear-gradient(rgba(17,17,19,0.8), rgba(17,17,19,0.8)), url('img/3.jpg') center/cover; background-attachment: fixed; text-align: center; }
        .cta-section p { font-size: 1.25rem; }
        .btn { background-color: var(--accent-color); color: var(--bg-color); padding: 15px 35px; border-radius: 30px; text-decoration: none; font-weight: 700; display: inline-block; transition: background-color 0.3s, transform 0.3s; border: none; font-size: 1.1rem; }
        .btn:hover { background-color: #ffb74d; transform: translateY(-3px); }
        
        /* RESPONSIVE */
        @media (max-width: 992px) {
            .foundation-grid { grid-template-columns: 1fr; }
            .components-grid { grid-template-columns: 1fr; }
            .components-visual { order: -1; margin-bottom: 40px; }
            .footer-grid { grid-template-columns: 1fr; gap: 30px; }
            .foundation-banner { height: 300px; padding: 30px; }
            .banner-content { text-align: center; }
        }
        @media (max-width: 768px) {
            .page-section { padding: 80px 0; }
            .process-scroller .process-step:first-child { margin-left: 20px; }
            .process-scroller .process-step:last-child { margin-right: 20px; }
            .footer-bottom { flex-direction: column; text-align: center; }
            .footer-socials { margin-top: 20px; }
        }

        /* ANIMATION */
        .fade-in { opacity: 0; transform: translateY(30px); }


/* HERO SECTION - Стили, скопированные со страницы "Монтаж" */
.montazh-hero {
    height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-background {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(17, 17, 19, 1) 0%, rgba(17, 17, 19, 0.5) 50%, rgba(17, 17, 19, 0.2) 100%);
}

.hero-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 750px;
    margin: 20px auto 0;
}