/* ==========================================================================
   1. СИСТЕМНЫЕ НАСТРОЙКИ И ЦВЕТОВАЯ ПАЛИТРА (ИТ-тема бренда «Low-Code»)
   ========================================================================== */
:root {
    --bg-main: #0f172a;        /* Глубокий темно-синий ИТ-фон */
    --bg-card: #1e293b;        /* Цвет блоков и карточек */
    --accent-purple: #a855f7;  /* Прогрессивный фиолетовый неон */
    --accent-cyan: #06b6d4;    /* Вспомогательный технологичный циан */
    --text-white: #ffffff;     /* Белый для контрастных заголовков */
    --text-gray: #94a3b8;      /* Светло-серый для удобного чтения текста */
    --font-base: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-base);
    background-color: var(--bg-main);
    color: var(--text-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 15px; /* Равномерные внешние отступы */
}

/* ==========================================================================
   2. ШАПКА И НАВИГАЦИЯ (Mobile First)
   ========================================================================== */
.header {
    background-color: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid #334155;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.header-container {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: 0.5px;
}

/* Кнопка Бургера (управляется через JS) */
.burger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.burger-icon span {
    width: 26px;
    height: 3px;
    background-color: var(--text-white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Анимация иконки при открытии */
.burger-icon.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.burger-icon.open span:nth-child(2) {
    opacity: 0;
}
.burger-icon.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Выпадающее мобильное меню */
.main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #0f172a;
    padding: 20px;
    gap: 15px;
    border-top: 1px solid #334155;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
}

.main-nav.show {
    display: flex; /* Показ через класс на JS */
}

.nav-link {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    padding: 6px 0;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-cyan);
}

.tg-link {
    text-decoration: none;
    color: var(--text-white);
    background-color: #0284c7;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
}

.tg-link:hover {
    background-color: #0369a1;
}

/* ==========================================================================
   3. ИЕРАРХИЯ ШРИФТОВ, ЗАГОЛОВКИ И СТРУКТУРНЫЕ БЛОКИ
   ========================================================================== */
.hero-section {
    text-align: center;
    padding: 40px 10px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(24px, 5vw, 38px);
    color: var(--text-white);
    line-height: 1.3;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: clamp(14px, 3vw, 17px);
    color: var(--text-gray);
    max-width: 750px;
    margin: 10px auto 0 auto;
}

.section-title {
    font-size: clamp(20px, 4vw, 28px);
    color: var(--text-white);
    margin-bottom: 25px;
    text-align: center;
}

.content-block {
    margin-bottom: 50px;
}

/* Сетки карточек (Равномерное свободное пространство) */
.info-grid, .use-cases-grid, .benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.info-card, .benefit-card, .step-card, .step-vertical-card {
    background-color: var(--bg-card);
    padding: 30px; /* Равномерный "воздух" в однотипных блоках */
    border-radius: 12px;
    border: 1px solid #334155;
    position: relative;
}

.info-card h2, .info-card h3, .benefit-card h3, .step-card h3, .step-vertical-card h3 {
    color: var(--text-white);
    margin-bottom: 12px;
    font-size: 20px;
}

.accent-box {
    background: linear-gradient(135deg, rgba(168,85,247,0.1), rgba(6,182,212,0.1));
    border-left: 4px solid var(--accent-purple);
    padding: 30px;
    border-radius: 0 12px 12px 0;
}

.accent-box strong {
    color: var(--text-white);
}

.badge {
    display: inline-block;
    background-color: rgba(6, 182, 212, 0.15);
    color: var(--accent-cyan);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.benefit-num {
    font-size: 32px;
    font-weight: 900;
    color: rgba(168, 85, 247, 0.3);
    margin-bottom: 5px;
}

/* ==========================================================================
   4. ЧИСТАЯ CSS-АНИМАЦИЯ ДЛЯ ИНСТРУКЦИИ
   ========================================================================== */
.instruction-track {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.step-num {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    color: var(--text-white);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 10px;
}

.step-1 { animation-delay: 0.2s; }
.step-2 { animation-delay: 0.5s; }
.step-3 { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   5. ОТЗЫВЫ И ШАГИ ЗАПУСКА
   ========================================================================== */
.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.review-card {
    background-color: var(--bg-main);
    border: 1px dashed #4b5563;
    padding: 30px;
    border-radius: 12px;
}

.review-text {
    font-style: italic;
    color: var(--text-white);
    margin-bottom: 15px;
}

.review-author {
    display: block;
    color: var(--accent-purple);
    font-size: 14px;
    font-weight: 600;
}

.steps-vertical {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-vertical-card {
    border-left: 4px solid var(--accent-cyan);
}

.step-v-num {
    font-size: 13px;
    font-weight: bold;
    color: var(--accent-cyan);
    text-transform: uppercase;
    margin-bottom: 5px;
}

/* ==========================================================================
   6. КАРТОЧКА ТОВАРА
   ========================================================================== */
.product-container {
    max-width: 550px;
    margin: 0 auto;
}

.product-card {
    background-color: var(--bg-card);
    border: 1px solid #334155;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.product-image-placeholder {
    height: 200px;
    background-color: #0b0f19;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #334155;
}

.product-info {
    padding: 30px;
}

.product-badge {
    display: inline-block;
    background-color: rgba(168, 85, 247, 0.2);
    color: var(--accent-purple);
    font-size: 11px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.product-title {
    color: var(--text-white);
    font-size: 22px;
    margin-bottom: 12px;
}

.product-description {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 25px;
}

.product-price {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 25px;
}

.product-price span {
    font-size: 15px;
    color: var(--text-gray);
    font-weight: normal;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    border: none;
    cursor: pointer;
    width: 100%;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple), #9333ea);
    color: var(--text-white);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

/* ==========================================================================
   7. ПОДВАЛ И АДАПТИВНОСТЬ ПОД РАЗРЕШЕНИЕ 1280x720
   ========================================================================== */
.footer {
    background-color: #0f172a;
    border-top: 1px solid #334155;
    color: var(--text-gray);
    text-align: center;
    padding: 25px;
    font-size: 14px;
    margin-top: auto;
}

@media (min-width: 768px) {
    .burger-icon {
        display: none; /* Скрываем бургер на десктопе */
    }

    .header-container {
        max-width: 1280px;
        margin: 0 auto;
        padding: 15px 25px;
        flex-wrap: nowrap;
    }

    .main-nav {
        display: flex !important;
        flex-direction: row;
        position: static;
        width: auto;
        padding: 0;
        box-shadow: none;
        border: none;
        gap: 25px;
        align-items: center;
        flex-wrap: nowrap;
    }

    .info-grid, .reviews-grid, .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .instruction-track {
        flex-direction: row;
        gap: 25px;
    }

    .step-card {
        flex: 1;
    }
}

@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}