
/* ===== ЛЕНДИНГ (главная страница) ===== */
.landing {
    max-width: 1300px;
    margin: 0 auto;
    background: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero */
.hero {
    padding: 100px 0;
    text-align: center;
    color: #fff;
    position: relative;
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.5);
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.95;
}
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}
.btn-primary {
    background-color: #0659b8;
    color: white;
}
.btn-primary:hover {
    background-color: #044794;
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* Секции общие */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: #00386e;
}

.features {
    padding: 40px 0;  /* уменьшил отступ сверху и снизу */
    background: transparent; /* убираем серый фон */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #00386e; /* синий фон */
    padding: 32px 24px;
    border-radius: 24px;
    text-align: center;
    transition: transform 0.2s;
    color: white; /* весь текст внутри белый */
}
.feature-card:hover {
    transform: translateY(-5px);
}
.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}
.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: white;
}
.feature-card p {
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
}

/* Дорожная карта */
.roadmap {
    padding: 80px 0;
}
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}
.roadmap-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    transition: all 0.2s;
    position: relative;
}
.roadmap-item:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.roadmap-icon {
    font-size: 40px;
    margin-bottom: 16px;
}
.roadmap-item h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #00386e;
}
.roadmap-item p {
    color: #475569;
    margin-bottom: 16px;
}
.roadmap-badge {
    background: #e2e8f0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e293b;
    display: inline-block;
}

/* Преимущества */
.advantages {
    background: #ffffff;
    padding: 80px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    text-align: center;
}
.advantage-item h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #00386e;
}
.advantage-item p {
    color: #475569;
    line-height: 1.5;
}

/* Инвестор секция */
.investor {
    background-image: url('images/4_traced.png');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 80px 0;
    text-align: center;
    color: white;
}
.investor .section-title {
    color: white;
}
.investor-text {
    max-width: 700px;
    margin: 0 auto 32px;
    font-size: 1.1rem;
    color: white;
}
.investor-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
/* Кнопки внутри инвестора переопределим */
.investor .btn-outline {
    border-color: white;
    color: white;
}
.investor .btn-outline:hover {
    background: rgba(255,255,255,0.2);
}
.investor .btn-primary {
    background-color: #0659b8;
}

/* Подвал */
.site-footer {
    background-color: #00386e;
    color: #ffffff;
    text-align: center;
    padding: 32px 20px;
    font-size: 14px;
    line-height: 1.6;
}
.site-footer p {
    margin: 8px 0;
}
.footer-tech {
    font-size: 12px;
    letter-spacing: 1px;
    margin-top: 12px;
    opacity: 0.8;
}
/* Двухколоночная сетка для главного контента */
.main-content-grid {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    margin-bottom: 60px;
    flex-direction: row; /* По умолчанию в ряд на десктопе */
}

.features-col {
    flex: 2; /* Плитки занимают 2/3 ширины */
    min-width: 0;
}

.updates-col {
    flex: 1; /* Обновления занимают 1/3 ширины */
    min-width: 0;
}
/* Стили для списка обновлений */
.updates-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.updates-section .section-title {
    font-size: 1.8rem;
    margin-bottom: 24px;
    text-align: left;
}
.updates-list {
    flex: 1;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 8px;
}
.update-item {
    border-bottom: 1px solid #eef2f6;
    padding: 16px 0;
}
.update-item:last-child {
    border-bottom: none;
}
.update-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #00386e;
    margin-bottom: 6px;
}
.update-meta {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 8px;
}
.update-content {
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.5;
    white-space: pre-wrap;
}
.updates-loading, .updates-empty, .updates-error {
    text-align: center;
    color: #64748b;
    padding: 20px;
}

/* Адаптив: на узких экранах колонки в столбик, плитки по 2 в ряд */
@media (max-width: 768px) {
    /* Жестко запрещаем горизонтальный скролл на уровне страницы */
    html, body {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    .landing {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    .container {
        padding: 0 16px !important; /* Чуть уменьшили боковые отступы */
    }

    .main-content-grid {
        flex-direction: column !important;
    }
    .updates-col {
        margin-top: 40px;
    }
    .updates-list {
        max-height: 400px;
    }

    /* НОВОЕ: Переопределяем все сетки так, чтобы они не распирали экран */
    .features-grid,
    .roadmap-grid,
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Ровно 2 колонки */
        gap: 15px !important;
        min-width: 0 !important; /* Разрешаем сжиматься */
    }
    
    .feature-card {
        padding: 16px 12px;
        min-width: 0 !important;
    }
    .feature-card h3 {
        font-size: 1.1rem;
    }
    .feature-icon {
        font-size: 32px;
        margin-bottom: 10px;
    }

    /* Для совсем узких телефонов (до 480px) делаем по 1 колонке */
    @media (max-width: 480px) {
        .features-grid,
        .roadmap-grid,
        .advantages-grid {
            grid-template-columns: 1fr !important;
        }
    }
}

/* Адаптив шапки для главной и privacy */
@media (max-width: 768px) {
  .site-header {
    padding: 0 12px !important; /* уменьшаем боковые отступы */
  }
  .header-right {
    gap: 8px !important;        /* уменьшаем расстояние между элементами */
  }
  
  /* Скрываем текст у кнопки "в личный кабинет", оставляем иконку */
  .lk-link-btn .btn-text-full {
    display: none !important;
  }
  .lk-link-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px !important;          /* ← убираем асимметрию отступов */
    min-width: 36px;
    min-height: 36px;
    gap: 0 !important;
    box-sizing: border-box !important; /* чтобы padding не увеличивал размер */
  }
  .lk-link-btn svg {
    display: block !important;         /* убираем лишние отступы вокруг SVG */
    margin: 0 !important;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
}

/* Мобильный адаптив заголовков */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }
    .hero-subtitle {
        font-size: 1rem !important;
    }
    .section-title {
        font-size: 1.8rem !important;
        margin-bottom: 32px !important;
    }
    .hero {
        padding: 60px 0 !important;
    }
    .features, .roadmap, .advantages, .investor {
        padding: 40px 0 !important;
    }
}