* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== НАВБАР ===== */
.navbar {
    background: white;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: black;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.nav-links a {
    text-decoration: none;
    color: black;
    margin-left: 20px;
    padding: 8px 16px;
    border-radius: 15px;
    transition: background 0.2s;
}

.nav-links a:hover {
    background: #f0f0f0;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
main {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.clouds-hero {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 100%;
    background: white;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hero-container {
    max-width: 1000px;
    width: 100%;
    position: relative;
    z-index: 10;
    animation: none; /* Убрали анимацию появления */
}

/* ===== БЭЙДЖ ===== */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0f2f5;
    padding: 8px 20px;
    border-radius: 25px;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.badge-icon {
    font-size: 1.1rem;
}

/* ===== ЗАГОЛОВОК ===== */
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* ===== КАРТОЧКИ — СТАТИЧНЫЕ ===== */
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.content-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    /* Убрали hover-эффект */
    transition: none;
}

.content-card.highlight {
    background: #f8f9ff;
    border-color: #667eea;
}

/* Иконки — без анимации */
.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    /* Убрали анимацию bounce */
    animation: none;
}

.hero-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    margin: 0;
}

/* ===== КНОПКИ — СТАТИЧНЫЕ ===== */
.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    background: #667eea;
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    /* Убрали hover-эффект */
    transition: none;
    cursor: pointer;
}

.btn-icon {
    width: 20px;
    height: 20px;
    /* Убрали анимацию движения */
    transition: none;
}

/* ===== ФУТЕР ===== */
.site-footer {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    background: white;
    padding: 2rem 0 0 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0 2rem;
}

.footer-section p {
    line-height: 1.6;
    color: black;
    text-align: center;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: black;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding: 10px;
    margin-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: black;
}

/* ============================================
   МОБИЛЬНАЯ АДАПТАЦИЯ
   ============================================ */

/* Планшеты (до 1024px) */
@media screen and (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .clouds-hero {
        padding: 3rem 1.5rem;
    }
}

/* Мобильные устройства (до 768px) */
@media screen and (max-width: 768px) {
    main {
        padding: 1rem;
    }

    .navbar {
        padding: 12px 15px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .logo {
        font-size: 20px;
        text-align: center;
    }

    .nav-links {
        justify-content: center;
        gap: 4px;
        flex-wrap: wrap;
    }

    .nav-links a {
        margin: 0;
        padding: 5px 10px;
        font-size: 14px;
        border-radius: 12px;
    }

    .clouds-hero {
        padding: 2rem 1rem;
        border-radius: 15px;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }

    .hero-badge {
        font-size: 1rem;
        padding: 6px 16px;
        margin-bottom: 1.5rem;
    }

    .hero-content {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .content-card {
        padding: 1.5rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .card-icon {
        font-size: 2rem;
    }

    .hero-actions {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }

    .btn-primary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .footer-container {
        padding: 0 1rem;
        gap: 1.5rem;
    }

    .footer-section h3 {
        font-size: 1.3rem;
    }

    .footer-section p {
        font-size: 14px;
    }

    .footer-bottom {
        font-size: 13px;
        padding: 8px;
    }
}

/* Маленькие телефоны (до 480px) */
@media screen and (max-width: 480px) {
    main {
        padding: 0.5rem;
    }

    .navbar {
        padding: 8px 10px;
    }

    .logo {
        font-size: 18px;
    }

    .nav-links a {
        padding: 4px 8px;
        font-size: 12px;
        border-radius: 10px;
    }

    .clouds-hero {
        padding: 1.5rem 0.8rem;
        border-radius: 12px;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .hero-badge {
        font-size: 0.9rem;
        padding: 4px 14px;
    }

    .content-card {
        padding: 1rem;
        border-radius: 12px;
    }

    .card-icon {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .hero-text {
        font-size: 0.9rem;
    }

    .btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
        max-width: 100%;
        border-radius: 25px;
    }

    .footer-container {
        padding: 0 0.8rem;
        gap: 1rem;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

    .footer-section p {
        font-size: 13px;
    }

    .footer-bottom {
        font-size: 12px;
        padding: 6px;
    }
}

/* Очень маленькие телефоны (до 360px) */
@media screen and (max-width: 360px) {
    .logo {
        font-size: 16px;
    }

    .nav-links a {
        font-size: 11px;
        padding: 3px 6px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 4px 10px;
    }

    .content-card {
        padding: 0.8rem;
    }

    .hero-text {
        font-size: 0.85rem;
    }

    .btn-primary {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
}

/* Альбомный режим на телефонах */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .navbar {
        padding: 6px 12px;
        flex-direction: row;
    }

    .logo {
        font-size: 16px;
    }

    .nav-links a {
        padding: 4px 8px;
        font-size: 12px;
    }

    .clouds-hero {
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-content {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .content-card {
        padding: 1rem;
    }

    .hero-text {
        font-size: 0.9rem;
    }

    .btn-primary {
        padding: 8px 20px;
        font-size: 0.85rem;
    }

    .footer-container {
        padding: 0 1rem;
        gap: 1rem;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

    .footer-section p {
        font-size: 12px;
    }

    .footer-bottom {
        font-size: 12px;
        padding: 6px;
    }
}

/* ============================================
   ДОПОЛНИТЕЛЬНЫЕ УЛУЧШЕНИЯ
   ============================================ */

/* Безопасная зона для iPhone с вырезом */
@supports (padding: max(0px)) {
    @media screen and (max-width: 480px) {
        .navbar {
            padding-top: env(safe-area-inset-top, 10px);
            padding-left: env(safe-area-inset-left, 10px);
            padding-right: env(safe-area-inset-right, 10px);
        }
        .footer-container {
            padding-bottom: env(safe-area-inset-bottom, 10px);
        }
    }
}

/* Увеличение области касания для мобильных */
@media (hover: none) and (pointer: coarse) {
    .btn-primary,
    .nav-links a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Убираем выделение на мобильных */
* {
    -webkit-tap-highlight-color: transparent;
}

/* ============================================
   АДАПТАЦИЯ ДЛЯ ТЁМНОЙ ТЕМЫ
   ============================================ */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a2e;
    }

    .navbar,
    .clouds-hero,
    .content-card,
    .site-footer {
        background: #16213e;
    }

    .logo,
    .hero-title,
    .hero-badge,
    .hero-text,
    .footer-section h3,
    .footer-section p,
    .footer-bottom {
        color: #e0e0e0;
    }

    .nav-links a {
        color: #e0e0e0;
    }

    .nav-links a:hover {
        background: #1a2a4a;
    }

    .clouds-hero {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .hero-badge {
        background: #1a2a4a;
        color: #e0e0e0;
    }

    .gradient-text {
        background: linear-gradient(135deg, #8ab4f8 0%, #a78bfa 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

    .content-card {
        border-color: #2a3a5a;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    .content-card.highlight {
        background: #1a2a4a;
        border-color: #667eea;
    }

    .hero-text {
        color: #ccc;
    }

    .btn-primary {
        background: #667eea;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }

    .footer-bottom {
        border-top-color: rgba(255, 255, 255, 0.1);
    }
}