/* --- ОБЩИЕ СТИЛИ И ПЕРЕМЕННЫЕ --- */
:root {
    --primary-color: #0c4dce; /* Глубокий синий из презентации */
    --secondary-color: #d1dbf0; /* Светлее синий */
    --dark-color: #1a1a1a;
    --light-color: #f7f7f7;
    --text-color: #333;
    --white-color: #ffffff;
    --header-height: 70px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; line-height: 1.6; color: var(--text-color); background-color: var(--white-color); }
a { text-decoration: none; color: var(--secondary-color); }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 600; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.content-section { padding: 80px 10%; text-align: center; }
.section-title { font-size: 2.5rem; margin-bottom: 20px; }
.section-subtitle { font-size: 1.2rem; max-width: 800px; margin: 0 auto 40px auto; color: #666; }
.subsection-title { font-size: 1.8rem; margin-top: 50px; margin-bottom: 30px; }
.bg-light { background-color: var(--light-color); }
.bg-dark { background-color: var(--primary-color); color: var(--white-color); }
.bg-dark .section-subtitle, .bg-dark a { color: var(--light-color); }

/* --- НАВИГАЦИЯ --- */
.header { background-color: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid #eee; position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; }
.navbar { display: flex; justify-content: space-between; align-items: center; height: var(--header-height); padding: 0 5%; }
.nav-logo { font-size: 1.5rem; color: var(--primary-color); font-weight: 700; }
.nav-menu { display: flex; gap: 25px; }
.nav-link { color: var(--text-color); font-weight: 600; transition: color 0.3s ease; }
.nav-link:hover { color: var(--primary-color); }
.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--text-color); transition: all 0.3s ease-in-out; }

/* --- ГЛАВНЫЙ ЭКРАН --- */
.hero { height: 100vh; display: flex; justify-content: center; align-items: center; color: var(--white-color); text-align: center; position: relative; overflow: hidden; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('../img/hero-bg.jpg'); background-size: cover; background-position: center center; z-index: -2; }
.hero::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: -1; }
.hero-content h1 { font-size: 5rem; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero-subtitle { font-size: 1.5rem; margin-bottom: 20px; }
.hero-year { font-size: 1.2rem; font-weight: 700; border: 2px solid white; display: inline-block; padding: 5px 15px; margin-bottom: 30px; }
.cta-button { display: inline-block; padding: 15px 30px; background-color: var(--primary-color); color: var(--white-color); border-radius: 5px; font-weight: 600; font-size: 1.1rem; transition: background-color 0.3s, transform 0.3s; }
.cta-button:hover { background-color: var(--primary-color); transform: translateY(-3px); }

/* --- ГАЛЕРЕЯ РЫНКА --- */
.gallery-grid {
    display: grid;
    /* Устанавливаем gap (отступ) такой же, как у другой сетки, для единообразия */
    gap: 30px; 
    margin-top: 40px;
    /* По умолчанию (для мобильных) - 1 колонка. Это правило теперь общее для обеих сеток */
    grid-template-columns: repeat(2, 1fr);
}
.gallery-grid img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 100%;
    /* Выравниваем высоту изображений */
    height: 220px; 
    object-fit: cover;
}

/* --- ПРЕИМУЩЕСТВА --- */
.advantages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.advantage-card { padding: 30px; background: #fff; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; }
.advantage-card:hover { transform: translateY(-10px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.advantage-card i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 15px; }
.advantage-card h3 { font-size: 1.3rem; margin-bottom: 10px; }

/* НОВЫЕ СТИЛИ ДЛЯ РАЗДЕЛА КОНЦЕПЦИИ (СЛАЙД 6) */
.concept-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    align-items: center;
    text-align: left;
    margin-top: 40px;
}

.concept-text ul li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.concept-text ul li:not(:last-child) {
    margin-bottom: 30px;
}

.concept-text i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 5px;
    width: 30px; /* Фиксированная ширина для идеального выравнивания текста */
    text-align: center;
}

.concept-text h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.concept-image img {
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}


/* --- ПАРАЛЛАКС-СЕКЦИИ --- */
.parallax-section { min-height: 800px; background-attachment: fixed; background-position: center; background-repeat: no-repeat; background-size: cover; }

/* --- ПЛАТФОРМА (КОНФИГУРАТОР) - ОБНОВЛЕННЫЕ СТИЛИ --- */
.tabs-container {
    max-width: 1000px;
    margin: 40px auto 0;
}

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px; /* Отступ от контента ниже */
}

.tab-button {
    padding: 12px 25px;
    border: none;
    background: #ddd;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
    flex-grow: 1;
}

.tab-button.active {
    background: var(--primary-color);
    color: white;
}

/* Новая сетка для контента под табами */
.config-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.config-image-wrapper img {
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: opacity 0.4s ease-in-out;
}

#specs-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
#specs-table th, #specs-table td { padding: 15px; text-align: left; border-bottom: 1px solid #eee; }
#specs-table th { background: var(--primary-color); color: white; }
#specs-table td:first-child { font-weight: 600; }

/* --- ПРИМЕНЕНИЕ - ОБНОВЛЕННЫЕ СТИЛИ СЕТКИ --- */
.applications-grid {
    display: grid;
    gap: 30px;
    /* По умолчанию (для мобильных) - 1 колонка */
    grid-template-columns: repeat(2, 1fr);
}

.app-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: left;
    display: flex;
    flex-direction: column;
}
.app-card img { width: 100%; height: 200px; object-fit: cover; }
.app-card-content { padding: 25px; flex-grow: 1; }
.app-card-content h4 { font-size: 1.3rem; margin-bottom: 10px; }

/* --- СРАВНЕНИЕ --- */
.table-wrapper { overflow-x: auto; padding-bottom: 15px; }
.table-wrapper table { width: 100%; min-width: 1000px; border-collapse: collapse; background: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.table-wrapper th, .table-wrapper td { padding: 15px; text-align: center; border: 1px solid #ddd; }
.table-wrapper th { background: var(--primary-color); color: white; }
.table-wrapper .highlight { background-color: #e3f2fd; font-weight: bold; color: var(--primary-color); }
.table-note { margin-top: 15px; font-style: italic; color: #666; font-size: 0.9rem; }

/* --- СТАТУС ПРОЕКТА (ИНТЕРАКТИВНЫЙ ТАЙМЛАЙН) --- */
.timeline { position: relative; max-width: 1600px; margin: 40px auto; }
.timeline::after { content: ''; position: absolute; width: 4px; background-color: var(--primary-color); top: 0; bottom: 0; left: 50%; margin-left: -2px; }
.timeline-item { padding: 10px 40px; position: relative; width: 50%; }
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }
.timeline-dot { position: absolute; width: 20px; height: 20px; right: -10px; background-color: white; border: 4px solid var(--primary-color); top: 25px; border-radius: 50%; z-index: 1; }
.timeline-item:nth-child(even) .timeline-dot { left: -10px; }
.timeline-content { padding: 20px; background-color: #fff; border-radius: 6px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); cursor: pointer; transition: transform 0.3s; }
.timeline-content:hover { transform: scale(1.02); }
.timeline-content h3 { display: flex; align-items: center; gap: 10px; }
.timeline-item:nth-child(odd) h3 { flex-direction: row-reverse; }
.timeline-images { max-height: 0; overflow: hidden; transition: max-height 0.5s ease-out, margin-top 0.5s ease-out; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.timeline-content.expanded .timeline-images { max-height: fit-content; margin-top: 20px; }
.timeline-content.expanded i { transform: rotate(45deg); }
.timeline-images img { border-radius: 5px; }
.timeline-content i { transition: transform 0.4s ease; color: var(--secondary-color); }
.timeline-images img {
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
.timeline-images img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
/* --- КОМАНДА --- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 40px; }
.team-card { padding: 30px; border-radius: 10px; background: var(--white-color); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.team-card img { width: 240px; height: 240px; border-radius: 50%; margin: 0 auto 20px; object-fit: cover; }
.team-card h3 { font-size: 1.4rem; margin-bottom: 5px; }
.team-card span { color: var(--secondary-color); font-weight: 600; display: block; margin-bottom: 15px; }
.partners-logos { display: flex; justify-content: center; align-items: center; gap: 40px; filter: grayscale(1); }
.partners-logos img { height: 60px; }

/* --- КОНТАКТЫ --- */
/* Старые стили для .contact-info теперь применяются к .contact-details и .contact-info внутри сетки */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* НОВЫЕ СТИЛИ для сетки */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.contact-details {
    text-align: left;
}

.contact-info {
    display: flex;
    flex-direction: column; /* Теперь контакты идут в столбик */
    align-items: flex-start; /* Выравнивание по левому краю */
    gap: 20px;
    margin-top: 20px; /* Небольшой отступ от текста выше */
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
}
.contact-item i {
    font-size: 2rem;
}

/* НОВЫЕ СТИЛИ для видео */
.video-wrapper {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

/* --- ПОДВАЛ --- */
.footer { padding: 20px; text-align: center; background-color: var(--dark-color); color: #aaa; }

/* --- АДАПТИВНОСТЬ --- */
@media(min-width: 1024px) {
    .applications-grid,
    .gallery-grid {
        /* 3 колонки на десктопах */
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width: 1362px) {
	.advantages-grid { grid-template-columns: repeat(2, 1fr);}
}

@media(max-width: 1024px) {
	.concept-grid {
		grid-template-columns: repeat(1, 1fr);
	}
}

@media(max-width: 680px) {
	.advantages-grid { grid-template-columns: repeat(1, 1fr);}
}

@media(max-width: 992px) {
	.nav-menu { position: fixed; left: -100%; top: var(--header-height); flex-direction: column; background-color: #fff; width: 100%; text-align: center; transition: 0.3s; box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05); }
    .nav-menu.active { left: 0; }
    .nav-item { padding: 1.5rem 0; }
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .tabs-container { grid-template-columns: 1fr; }
    .config-image-wrapper { order: -1; margin-bottom: 20px; }
	.contact-grid {
        grid-template-columns: 1fr; /* Колонки встают друг под друга */
        text-align: center;
    }
    .contact-details {
        text-align: center;
    }
    .contact-info {
        align-items: center; /* Центрируем контакты на мобильных */
    }
    .video-wrapper {
        margin-top: 40px; /* Отступ для видео, когда оно снизу */
    }
}

@media(max-width: 768px) {
    
    .section-title { font-size: 2rem; }
    .hero-content h1 { font-size: 3rem; }
    .hero-content p { font-size: 1.2rem; }
    .timeline::after { left: 20px; }
    .timeline-item { width: 100%; padding-left: 50px; padding-right: 10px; }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) { left: 0; text-align: left; }
    .timeline-dot, .timeline-item:nth-child(even) .timeline-dot { left: 10px; }
    .timeline-item:nth-child(odd) h3 { flex-direction: row; }
    .contact-info { flex-direction: column; gap: 20px; }
	.applications-grid,
    .gallery-grid {
        /* 2 колонки на планшетах */
        grid-template-columns: repeat(2, 1fr);
    }
	.config-content-grid {
        grid-template-columns: 1fr; /* Колонки встают друг под друга */
    }
    .config-image-wrapper {
        order: -1; /* Изображение будет сверху таблицы */
        margin-bottom: 20px;
    }
}

@media(max-width: 480px) {
	.content-section { padding: 20px 4%; text-align: center; }
	.parallax-section { min-height: 400px; background-attachment: fixed; background-position: center; background-repeat: no-repeat; background-size: 200%; }
	.applications-grid,
    .gallery-grid {
        /* 2 колонки на планшетах */
        grid-template-columns: repeat(1, 1fr);
    }
	#specs-table th, #specs-table td { padding: 6px; }
}

/* --- LIGHTBOX (MODAL) --- */
.lightbox {
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    transform: scale(0.7);
    transition: transform 0.4s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #ccc;
}