:root {
    --color-bg-light: #f4f6f8;      
    --color-surface: #ffffff;       
    --color-text-dark: #1a1a1a;     
    --color-text-medium: #525252;   
    --color-graphite: #3d3d3d;      
    --color-border: #e0e0e0;        
    --color-accent-hover: #007bff;  
}

/* CSS Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; scroll-behavior: smooth; font-smoothing: antialiased; -webkit-font-smoothing: antialiased; }
body {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.mono { font-family: 'JetBrains Mono', monospace; }

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

.content-wrapper {
    flex: 1;
    text-align: center;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* =============== ХЕДЕР V2 =============== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background-color: transparent; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.header--scrolled {
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}
.header-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.8rem;
    color: var(--color-text-medium);
    opacity: 0;
    transform: translateY(-15px);
    transition: all 0.3s ease;
    pointer-events: none;
}
.header--scrolled .header-top-bar { opacity: 1; transform: translateY(0); pointer-events: auto; }
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    padding: 20px 0;
    transition: padding 0.3s ease;
}
.header--scrolled .header-container { padding: 15px 0; }
.logo {
    font-family: 'Turbo', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--color-graphite);
    font-weight: 400;
}
.nav .nav-list {
    display: flex;
    gap: 40px;
    list-style: none;
    font-size: 0.95rem;
    font-weight: 500;
}
.nav-list a {
    color: var(--color-text-medium);
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
    white-space: nowrap;
}
.nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 2px;
    width: 0;
    background-color: var(--color-accent-hover);
    border-radius: 2px;
    transition: width 0.3s ease-out;
}
.nav-list a:hover { color: var(--color-graphite); }
.nav-list a:hover::after { width: 100%; }

/* =============== СЕТКА КАРТОЧЕК ДЛЯ ОСНОВНОГО КАТАЛОГА (ОДНА КОЛОНКА ВСЕГДА) =============== */
.features-grid {
    display: grid;
    gap: 48px; /* Увеличенный отступ между высокими карточками */
    margin: 40px auto 60px;
    max-width: 1200px;
    /* ГЛАВНОЕ: всегда одна колонка для основного каталога */
    grid-template-columns: 1fr;
}

/* =============== КАРТОЧКА ТОВАРА ДЛЯ ОСНОВНОГО КАТАЛОГА (Картинка слева, Текст справа) =============== */
.product-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    text-align: left;
    padding: 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Внутренняя сетка карточки каталога */
    display: grid;
    grid-template-columns: 250px 1fr; 
    gap: 32px;
    align-items: start;
    height: 100%;
}

.image-wrapper {
    width: 250px;
    height: 250px;
    background-color: #ffffff;
    border-radius: 12px; 
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Контейнер с текстом */
.content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-graphite);
    margin: 0;
}

.content p {
    color: var(--color-text-medium);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.content ul {
    color: var(--color-text-medium);
    font-size: 1rem;
    line-height: 1.7;
    padding-left: 20px;
    margin: 0;
}
.content li strong {
    color: var(--color-graphite);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

/* Адаптив для мобильных (в каталоге): картинка сверху */
@media (max-width: 899px) {
    .product-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        text-align: center;
        gap: 24px;
        padding: 24px;
    }
    .image-wrapper {
        width: 200px; 
        height: 200px;
        justify-self: center;
    }
    .content {
        text-align: left;
    }
}

/* =============== ОПТИЧЕСКАЯ ПОДСИСТЕМА (КЛАСС ДЛЯ ВТОРОЙ СЕТКИ) =============== */
.optics-section .product-card {
    /* Здесь можно задать специфичные отступы только для оптики, если понадобится */
}

/* =============== АККОРДЕОНЫ (Свернуть/Развернуть) =============== */
.system-accordion {
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background-color: var(--color-surface);
    padding: 0;
    margin-bottom: 32px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.system-accordion[open] {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.accordion-title {
    display: block;
    width: 100%;
    padding: 24px 32px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-graphite);
    cursor: pointer;
    background: linear-gradient(to bottom, #fafafa, #f0f2f5);
    border: none;
    outline: none;
    position: relative;
    margin: 0;
    transition: color 0.2s;
}

/* Стрелочка справа */
.accordion-title::after {
    content: '▾';
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    color: var(--color-text-medium);
}

/* Поворачиваем стрелку при открытии */
.system-accordion[open] .accordion-title::after {
    transform: translateY(-50%) rotate(0deg);
}

/* Убираем стандартную треугольную стрелочку браузера слева */
.system-accordion summary::-webkit-details-marker { display: none; }
.system-accordion summary::marker { display: none; }

/* Анимация высоты контента (важно для плавности) */
.system-accordion > div {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 32px;
}

/* Когда открываем — разрешаем контенту раскрыться */
.system-accordion[open] > div {
    max-height: 5000px; /* Большое число, чтобы влезло всё содержимое */
    padding-top: 24px;
    padding-bottom: 32px;
    transition: max-height 0.6s ease-in;
}

/* Отступ первой карточки внутри открытого блока */
.system-accordion[open] .product-card:first-child {
    margin-top: 0;
}

/* =============== ФОРМА И ФУТЕР =============== */
h1 { 
    font-size: clamp(2rem, 5vw, 3rem); 
    font-weight: 600; 
    margin-bottom: 16px; 
    line-height: 1.1; 
    color: var(--color-graphite); 
}
.notify-form { 
    display: flex; 
    gap: 12px; 
    margin-bottom: 40px; 
    align-items: stretch; 
    flex-direction: column; 
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 420px) { 
    .notify-form { 
        flex-direction: row; 
    } 
}
.notify-form input { 
    flex: 1; 
    background-color: var(--color-surface); 
    border: 1px solid var(--color-border); 
    color: var(--color-text-dark); 
    padding: 16px 20px; 
    border-radius: 8px; 
    font-size: 1rem; 
    transition: border-color 0.2s;
}
.notify-form input:focus { 
    outline: none; 
    border-color: var(--color-accent-hover); 
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1); 
}
.notify-form button { 
    flex-shrink: 0; 
    background-color: var(--color-graphite); 
    color: #fff; 
    border: none; 
    padding: 0 32px; 
    font-weight: 600; 
    font-size: 1rem; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.notify-form button:hover:not(:disabled) { 
    background-color: #000; 
    transform: translateY(-1px); 
}
.form-status { 
    height: 20px; 
    margin-top: 8px; 
    font-size: 0.85rem; 
    font-style: italic; 
}
.form-status.success { color: #28a745; }
.form-status.error { color: #dc3545; }
.footer { 
    border-top: 1px solid var(--color-border); 
    padding-top: 32px; 
    color: var(--color-text-medium); 
    font-size: 0.9rem;
    flex-shrink: 0;
}
.contact-line { margin-top: 4px; }
.visually-hidden { 
    position: absolute !important; 
    width: 1px; 
    height: 1px; 
    overflow: hidden; 
    clip: rect(1px, 1px, 1px, 1px); 
    white-space: nowrap; 
} 


/* ######################################################################## */
/* ############### НОВЫЕ ПРАВИЛА СПЕЦИАЛЬНО ДЛЯ ЦОД ####################### */
/* ######################################################################## */

/* Внешняя обертка страницы: делит экран пополам (левая и правая секции) */
.two-columns-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Внутренняя сетка внутри каждой секции — строго ОДИН столбец карточек */
.column-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr;
}

/* Карточка товара ВНУТРИ этих секций. 
   Переопределяет поведение стандартного .product-card:
   Картинка СВЕРХУ, текст СНИЗУ. Используем отдельный класс solution-card. */
.solution-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    text-align: left;
    padding: 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* Меняем внутреннюю сетку этой конкретной карточки на одну колонку */
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
    justify-items: center;
    text-align: center;
}

/* Обертка изображения фиксированного размера 150x150 */
.solution-image-wrapper {
    width: 150px;
    height: 150px;
    background-color: #ffffff;
    border-radius: 12px; 
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Само изображение */
.solution-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Контейнер с текстом под картинкой */
.solution-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    width: 100%;
}

.solution-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-graphite);
    margin: 0;
    text-align: left;
}

.solution-content p {
    color: var(--color-text-medium);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    text-align: left;
}

.solution-content ul {
    color: var(--color-text-medium);
    font-size: 1rem;
    line-height: 1.7;
    padding-left: 20px;
    margin: 12px 0 0 0;
    text-align: left;
}

.solution-content li strong {
    color: var(--color-graphite);
}

/* Эффект при наведении на нашу новую карточку */
.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

/* Адаптив: на планшетах и меньше внешние колонки уходят вниз друг под друга */
@media (max-width: 992px) {
    .two-columns-layout {
        grid-template-columns: 1fr;
    }
}