/* ========================================
   QДОМ LANDING PAGE - СТРУКТУРИРОВАННЫЕ СТИЛИ
   ======================================== */

/* ========================================
   1. CSS ПЕРЕМЕННЫЕ
   ======================================== */
:root {
    /* Основные цвета */
    --primary-bg: #ffffff;
    --primary-text: #1f2937;
    --secondary-text: #4b5563;
    
    /* Серые акценты */
    --primary-color: #374151;
    --secondary-color: #6b7280;
    --light-color: #f9fafb;
    --hover-color: #1f2937;
    
    /* Серые элементы */
    --header-bg: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    --footer-bg: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    --border-color: #d1d5db;
    --light-gray: #f3f4f6;
    --medium-gray: #6b7280;
    
    /* Кнопки */
    --btn-primary: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    --btn-secondary: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    --btn-danger: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    --btn-success: linear-gradient(135deg, #059669 0%, #10b981 100%);
    
    /* Формы */
    --form-bg: #ffffff;
    --form-border: #d1d5db;
    --form-focus: #3b82f6;
    --form-error: #dc2626;
    --form-success: #059669;
    
    /* Тени */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Размеры */
    --border-radius: 6px;
    --border-radius-lg: 20px;
    --section-padding: 50px 0;
    --section-padding-mobile: 30px 0;
    --container-max-width: 1200px;
    --header-height: 60px;
    --header-height-mobile: 50px;
}

/* ========================================
   2. БАЗОВЫЕ СТИЛИ
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.landing-page {
    margin: 0;
    padding: 0;
}

/* ========================================
   3. ШРИФТЫ
   ======================================== */
@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Fallback шрифты для предотвращения моргания */
body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--primary-text);
    background-color: var(--primary-bg);
    font-display: swap;
}

/* ========================================
   4. КОНТЕЙНЕР И УТИЛИТЫ
   ======================================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }
.hidden { display: none; }

/* Утилитарные классы для скрытия элементов */
.hide-mobile { display: block; }
.hide-desktop { display: block; }

@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
}

@media (min-width: 769px) {
    .hide-desktop { display: none !important; }
}

/* ========================================
   5. ШАПКА САЙТА
   ======================================== */
.header {
    background: var(--header-bg);
    height: var(--header-height);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    position: relative;
    z-index: 1001;
}

.logo {
    height: 40px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1002;
}

.logo a {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.logo img {
    height: 100%;
    width: auto;
    transition: opacity 0.3s ease;
}

/* Навигация */
.nav {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1002;
    margin-right: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

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

/* Логотипы */
.logo-desktop { display: block; }
.logo-mobile { display: none; }

/* Десктопные стили - скрываем мобильное меню */
@media (min-width: 769px) {
    .nav-mobile-toggle {
        display: none !important;
    }
    
    .nav-mobile {
        display: none !important;
    }
    
    .nav-mobile-menu {
        display: none !important;
    }
    
    .nav-mobile-item {
        display: none !important;
    }
    
    .nav-mobile-link {
        display: none !important;
    }
}

/* ========================================
   6. ОСНОВНОЙ КОНТЕНТ
   ======================================== */
    .main-content {
    margin-top: var(--header-height);
        margin-bottom: 0;
    padding: 0;
    flex: 1;
}

/* ========================================
   7. СЕКЦИИ (ОБЩИЕ СТИЛИ)
   ======================================== */
section {
    padding: var(--section-padding);
    position: relative;
}

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

.section-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
        position: relative;
    text-align: center;
}

/* Размеры заголовков в зависимости от тега */
h1.section-title {
    font-size: 3rem;
}

h2.section-title {
    font-size: 2.5rem;
}

h3.section-title {
    font-size: 2rem;
}

h4.section-title {
    font-size: 1.5rem;
}

h5.section-title {
    font-size: 1.25rem;
}

h6.section-title {
    font-size: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
}

.section-description {
    font-size: 1.2rem;
    color: var(--secondary-text);
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================
   8. КАРТОЧКИ (ОБЩИЕ СТИЛИ)
   ======================================== */
    .card {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.card-small {
    padding: 25px;
}

.card-large {
    padding: 40px;
}

/* ========================================
   9. СПИСКИ (ОБЩИЕ СТИЛИ)
   ======================================== */
.list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-item {
    padding: 12px 0;
    padding-left: 18px;
    border-bottom: 1px solid var(--light-gray);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--secondary-text);
    position: relative;
}

.list-item:before {
    content: '▸';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item-small {
    padding: 6px 0;
    padding-left: 18px;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--secondary-text);
    position: relative;
}

.list-item-small:before {
    content: '▸';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* ========================================
   10. ИЗОБРАЖЕНИЯ (ОБЩИЕ СТИЛИ)
   ======================================== */
.image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    background: #ffffff;
    padding: 20px;
}

/* ========================================
   11.1 КАРУСЕЛЬ СКРИНОВ
   ======================================== */
.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #f8f9fa 0%, #eef1f5 100%);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.carousel-track {
    display: flex;
    transition: transform 0.45s ease;
    will-change: transform;
    transform: translateZ(0); /* форс аппаратного ускорения, снижает субпиксельные артефакты */
}

.carousel-slide {
    min-width: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.carousel-image {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    padding: 0;
    background: transparent;
    box-shadow: none;
    filter: drop-shadow(0 10px 24px rgba(0,0,0,0.08));
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    opacity: 0.9;
}

.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }

.carousel-dots {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-dot.active {
    background: var(--primary-color);
    transform: scale(1.15);
}

.image-hero {
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
}

/* ========================================
   11. КНОПКИ
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 40px;
    padding: 0 16px;
    background: var(--btn-primary);
    color: #ffffff;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary { background: var(--btn-primary); }
.btn-secondary { background: var(--btn-secondary); }
.btn-block { width: 100%; height: 50px; font-size: 1.1rem; font-weight: 600; }
.btn-large { min-width: 240px; height: 50px; font-size: 1.1rem; font-weight: 600; padding: 0 30px; }

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

/* ========================================
   12. ФОРМЫ
   ======================================== */
.form-group {
    margin-bottom: 20px;
    position: relative; /* Для абсолютного позиционирования сообщений об ошибках */
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-text);
    font-size: 0.95rem;
}

.required {
    color: #e74c3c;
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    background: var(--form-bg);
    color: var(--primary-text);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--form-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: var(--border-color);
}

.form-input.error {
    border-color: #e74c3c;
}

.form-actions {
    margin-top: 10px;
    text-align: center;
}

/* Кастомные стили для чекбокса */
.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-row input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background-color: #ffffff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s ease;
}

.checkbox-row input[type="checkbox"]:hover {
    border-color: var(--primary-color);
}

.checkbox-row input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-row input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-row input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.checkbox-text {
    color: var(--secondary-text);
    user-select: none;
}

/* Специальное поле телефона */
.input-with-icon {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--primary-bg);
    transition: all 0.3s ease;
}

.input-with-icon:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--light-color);
}

.input-with-icon .form-input {
    border: none !important;
    padding: 12px 15px;
    background: transparent;
    flex: 1;
    box-shadow: none !important;
    outline: none !important;
    min-width: 0;
        width: 100%;
    }
    
.input-with-icon .form-input:focus {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 100%;
    color: var(--medium-gray);
    flex-shrink: 0;
    font-weight: 500;
}

.input-divider {
    width: 1px;
    height: 30px;
    background-color: var(--border-color);
    margin: 0 5px;
    flex-shrink: 0;
}

/* ========================================
   13. ИКОНКИ И НОМЕРА
   ======================================== */
.icon {
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.icon-large {
    width: 60px;
    height: 60px;
    font-size: 2.5rem;
}

.icon-small {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
}

/* ========================================
   14. ВЫДЕЛЕНИЕ ТЕКСТА
   ======================================== */
.highlight {
    color: var(--primary-color);
    font-weight: 600;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(155, 89, 182, 0.1) 100%);
    padding: 2px 6px;
    border-radius: 4px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

/* ========================================
   15. ФУТЕР
   ======================================== */
.footer {
    background: var(--footer-bg);
    color: var(--medium-gray);
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
        font-size: 12px;
    border-top: 1px solid var(--border-color);
    font-weight: 700;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--medium-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* ========================================
   16. СПЕЦИФИЧНЫЕ СЕКЦИИ
   ======================================== */

/* Hero секция */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
    /* padding: 60px 0; */
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: calc(-1 * var(--header-height));
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e9ecef" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 30px;
    line-height: 1.3;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--secondary-text);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/* Секции с фонами */
.features-section,
.communications-section,
.system-advantages-section,
.max-messenger-section {
    background: #ffffff;
}


.advantages-section,
.audience-section,
.registration-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
}

/* Сетки контента */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

/* Выравнивание карточек по верхнему краю для секции возможностей */
.features-section .content-grid {
    align-items: start;
}

/* Специальное выравнивание для блока контактов */
.registration-section .content-grid {
    align-items: start;
}

.content-grid-single {
    display: flex;
        flex-direction: column;
    gap: 30px;
}

/* Сравнительные блоки */
.comparison-block {
    padding: 30px;
    border-radius: 15px;
    border: 2px solid;
    position: relative;
}

.comparison-block.negative {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
    border-color: #e8eaed;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.2);
}

.comparison-block.positive {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
    border-color: #e8eaed;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.comparison-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Элементы MAX мессенджера */
.max-messenger-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.max-messenger-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: left;
}

.max-messenger-description {
    font-size: 1rem;
    color: var(--secondary-text);
    line-height: 1.6;
    margin: 0;
}

.max-messenger-features {
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.max-features-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: left;
}

.max-messenger-status {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.status-text {
    font-size: 0.95rem;
    color: var(--secondary-text);
    line-height: 1.5;
    margin: 0;
}

/* Контейнер только для изображения MAX */
.max-image-only {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.max-image-only .max-messenger-description {
    text-align: center;
    font-size: 1rem;
    color: var(--secondary-text);
    line-height: 1.5;
    margin: 0;
    width: 100%;
}

.max-image {
    width: 80%;
    height: auto;
    max-width: 250px;
}

/* Контейнер для надписи МАХ */
.max-label-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.max-label {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    letter-spacing: 3px;
    line-height: 1;
}

/* Элементы аудитории */
.audience-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.audience-text {
    flex: 1;
}

.audience-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-align: left;
}

.audience-description {
    font-size: 0.95rem;
    color: var(--secondary-text);
    line-height: 1.5;
    margin: 0;
}

/* Элементы преимуществ системы */
.system-advantage-item {
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.system-advantage-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-align: left;
}

.system-advantage-description {
    font-size: 0.95rem;
    color: var(--secondary-text);
    line-height: 1.5;
    margin: 0;
}

/* Типы коммуникаций */
.communication-type {
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.communication-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

/* Компактные карточки контактов в блоке регистрации */
.contact-cards-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Специальные стили для контактов в карточке */
.contact-cards-list .list-item {
    padding: 8px 0;
    padding-left: 18px;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--secondary-text);
    position: relative;
    background: none;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.3s ease;
}

.contact-cards-list .list-item:before {
    content: '▸';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.contact-cards-list .list-item:last-child {
    border-bottom: none;
}

.contact-cards-list .list-item .highlight {
    color: var(--primary-color);
    font-weight: 600;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(155, 89, 182, 0.1) 100%);
    padding: 2px 6px;
    border-radius: 4px;
    border-left: 3px solid var(--primary-color);
    margin-right: 8px;
    transition: all 0.3s ease;
}

/* Старые стили для совместимости (если где-то еще используются) */
.contact-item-small {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-title-small {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
    text-align: left;
}

.contact-info-small {
    font-size: 0.85rem;
    color: var(--secondary-text);
    line-height: 1.4;
    margin: 0;
}

/* Форма регистрации */
.registration-form-container {
    background: #ffffff;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.registration-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.registration-form-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.registration-form {
    display: flex;
        flex-direction: column;
    gap: 20px;
    }
    
.registration-form .form-group {
        margin-bottom: 0;
}

.registration-form .captcha-row {
    display: flex;
    align-items: center;
        gap: 12px;
}

.registration-form .captcha-expression {
        padding: 10px 12px;
    background: #f2f2f5;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    min-width: 90px;
    text-align: center;
}

.registration-form .honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.registration-form .form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 6px;
}

.registration-form .form-input {
        width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: 'Manrope', sans-serif;
    color: #000000;
}

.registration-form .form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--light-color);
}

.registration-form textarea.form-input {
    min-height: 100px;
    resize: vertical;
}

/* Информация о регистрации */
/* Информационный блок регистрации */
.registration-info {
    display: flex;
        flex-direction: column;
    gap: 30px;
}

.info-card {
    background: #ffffff;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.info-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.registration-steps {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.step {
    display: flex;
    align-items: center;
    gap: 20px;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.step-description {
    font-size: 0.95rem;
    color: var(--secondary-text);
    line-height: 1.5;
    margin: 0;
}

/* ========================================
   17. МОБИЛЬНАЯ ВЕРСИЯ
   ======================================== */
@media (max-width: 768px) {
    :root {
        --section-padding: var(--section-padding-mobile);
        --header-height: var(--header-height-mobile);
    }
    
    .main-content {
        margin-top: var(--header-height-mobile);
    }
    
    /* Шапка */
    .header {
        height: var(--header-height-mobile);
    }
    
    .header-content {
        padding: 0 15px;
        display: grid;
        grid-template-columns: 40px 1fr 40px;
        align-items: center;
        position: relative;
    }
    
    .header-content::before {
        content: '';
        width: 40px;
        height: 1px;
        grid-column: 1;
    }
    
    .logo {
        height: 35px;
        grid-column: 2;
        justify-self: center;
        z-index: 1002;
    }
    
    .nav {
        position: absolute;
        right: 15px;
        margin-right: 0;
        grid-column: 3;
        justify-self: end;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-mobile-toggle {
        display: none !important;
    }
    
    .nav-mobile {
        display: none !important;
    }
    
    /* Логотипы */
    .logo-desktop { display: none; }
    .logo-mobile { display: block; }
    
    /* Hero секция */
    .hero-section {
        padding: 40px 0;
        min-height: auto;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-main-image {
        transform: none;
    }
    
    /* Секции */
    h1.section-title {
        font-size: 2.5rem;
    }
    
    h2.section-title {
        font-size: 2rem;
    }
    
    h3.section-title {
        font-size: 1.8rem;
    }
    
    h4.section-title {
        font-size: 1.5rem;
    }
    
    h5.section-title {
        font-size: 1.25rem;
    }
    
    h6.section-title {
        font-size: 1rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    /* Сетки */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Порядок элементов на мобильных: сначала текст, затем изображение */
    .content-grid > .content-grid-single { grid-row: 2; }
    .content-grid > .hero-image { grid-row: 1; }
    
    /* Явно фиксируем порядок в hero-секции */
    .hero-section .hero-content > .hero-text { grid-row: 1; }
    .hero-section .hero-content > .hero-image { grid-row: 2; }
    
    .content-grid-single {
        gap: 20px;
    }
    
    /* Карточки */
    .card {
        padding: 30px;
    }
    
    .card-small {
        padding: 20px;
    }
    
    /* Сравнительные блоки */
    .comparison-block {
    padding: 20px;
    }
    
    /* Элементы аудитории */
    .audience-item {
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
        gap: 15px;
    }
    
    .audience-title {
        text-align: left;
    }
    
    .audience-description {
        text-align: left;
    }
    
    .audience-text {
        text-align: left;
    }
    
    .icon-large {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    /* Форма регистрации */
    .registration-form-container,
    .info-card {
        padding: 30px;
    }
    
    .registration-steps {
        gap: 20px;
    }
    
    .step {
    gap: 15px;
        align-items: flex-start;
        flex-direction: column;
    }
    
    .step-content {
        text-align: left;
    }
    
    .icon-small {
        align-self: flex-start;
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    /* Центрирование элементов в карточке "Что происходит после регистрации?" */
    .registration-section .info-card { text-align: center; }
    .registration-section .registration-steps { align-items: center; }
    .registration-section .step { align-items: center; }
    .registration-section .step .icon { align-self: center; }
    .registration-section .step-content { text-align: center; }
    
    /* Плейсхолдер поля "Дополнительная информация" */
    #message::placeholder { font-size: 0.8rem; }
    #message::-webkit-input-placeholder { font-size: 0.8rem; }
    
    /* Подвал */
    .footer {
        height: auto;
        padding: 10px 20px;
        font-size: 11px;
    }
    .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    /* Изображения */
    .image {
        padding: 10px;
        border-radius: 10px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        width: 70vw;
        max-width: 70vw;
    }
    /* Карусель (мобила) */
    .carousel-slide { padding: 10px; }
    .carousel-image { max-height: 300px; padding: 0; background: transparent; box-shadow: none; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.08)); }
    .carousel { background: transparent; border: none; box-shadow: none; }
    .carousel-arrow { width: 32px; height: 32px; }
    .carousel-dots { margin-top: 6px; }

    /* Скрыть изображения на мобильной в секциях преимуществ и аудитории */
    #advantages .hero-image { display: none !important; }
    #audience .hero-image { display: none !important; }

    /* Уменьшить расстояние между заголовком и карточками в скрытых-изображениях секциях */
    #advantages .section-header { margin-bottom: 20px; }
    #audience .section-header { margin-bottom: 20px; }
    #advantages .content-grid { gap: 20px; }
    #audience .content-grid { gap: 20px; }
    
    /* Кнопки */
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    gap: 15px;
    }

    .hero-actions .btn {
    width: 100%;
        max-width: 300px;
        min-width: auto;
    }
    
    /* Переупорядочивание элементов в блоке Планы развития (MAX) */
    .max-messenger-section .container { display: flex; flex-direction: column; }
    .max-messenger-section .content-grid { display: contents; }
    .max-messenger-section .content-grid-single { display: contents; }
    .max-messenger-section .section-header { order: 0; }
    .max-messenger-section .max-image-only { order: 1; }
    .max-messenger-section .max-label-container { order: 2; }
    .max-messenger-section .max-messenger-features { order: 3; }
    .max-messenger-section .max-messenger-status { order: 4; }
    
    /* Спейсинг в блоке Планы развития (MAX) */
    .max-messenger-section .section-header { margin-bottom: 12px; }
    .max-messenger-section .section-header .section-title { margin-bottom: 10px; }
    .max-messenger-section .max-messenger-status { margin-top: 28px; }
    
    /* MAX мессенджер */
    .max-messenger-info {
        gap: 20px;
    }
    
    .max-messenger-title {
        font-size: 1.3rem;
    }
    
    .max-messenger-features {
        padding: 20px;
    }
    
    .max-messenger-status {
        padding: 15px;
    }
    
    /* MAX описание в контейнере изображения */
    .max-image-only .max-messenger-description {
        font-size: 0.9rem;
        width: 100%;
    }
    
    /* MAX изображение */
    .max-image {
        width: 70vw;
        max-width: 70vw;
    }
    
    .max-label-container {
        min-height: 100px;
    }
    
    .max-label {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    h1.section-title {
        font-size: 1.8rem;
    }
    
    h2.section-title {
        font-size: 1.6rem;
    }
    
    h3.section-title {
        font-size: 1.4rem;
    }
    
    h4.section-title {
        font-size: 1.2rem;
    }
    
    h5.section-title {
        font-size: 1rem;
    }
    
    h6.section-title {
        font-size: 0.8rem;
    }
    
    .card,
    .registration-form-container,
    .info-card {
        padding: 20px;
    }
}

/* ========================================
   18. АНИМАЦИИ
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Анимация для карточек */
.card,
.audience-item,
.system-advantage-item,
.communication-type {
    transition: all 0.3s ease;
}

/* Анимация для кнопок */
.btn {
    transition: all 0.3s ease;
}

/* Анимация для изображений */
.image {
    transition: transform 0.3s ease;
}

/* ========================================
   19. СООБЩЕНИЯ И ОШИБКИ
   ======================================== */
.error-message {
    color: #e74c3c;
    font-size: 0.75rem;
    margin-top: 2px;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    padding: 1px 0;
    line-height: 1.2;
}

.form-input.error + .error-message {
    display: block;
}

/* Для поля телефона с иконкой */
.input-with-icon.error + .error-message {
    display: block;
}

/* Для поля телефона внутри контейнера */
.form-group .error-message {
    display: block;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.success-message.show {
    display: block;
    animation: messageSlideIn 0.5s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}