/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Цвета - упрощенная палитра */
    --primary: #6366F1;
    --primary-light: #818CF8;
    --secondary: #10B981;
    --accent: #F59E0B;
    --bg: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-card: #FFFFFF;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --border: #E5E7EB;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

    /* Типография */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Размеры */
    --container-max-width: 1200px;
    --border-radius: 8px;
    --border-radius-large: 12px;
    --transition: all 0.2s ease;
}

/* Базовые стили */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    /* КРИТИЧЕСКИЕ РАЗМЕРЫ ДЛЯ ПРЕДОТВРАЩЕНИЯ CLS */
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Предотвращаем скачки при загрузке */
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.btn--primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn--primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

.btn--outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border);
}

.btn--outline:hover {
    background: var(--bg-light);
    border-color: var(--primary);
}

.btn--danger {
    background: #DC2626;
    color: white;
    border-color: #DC2626;
}

.btn--danger:hover {
    background: #B91C1C;
    border-color: #B91C1C;
}

.btn--large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn--small {
    padding: 6px 12px;
    font-size: 12px;
}

.btn--card {
    width: 100%;
    justify-content: center;
    background: var(--primary);
    color: white;
    font-weight: var(--font-weight-medium);
    padding: 12px 20px;
    font-size: 14px;
}

.btn--card:hover {
    background: var(--primary-light);
}

.btn--banner {
    background: var(--accent);
    color: white;
    padding: 10px 0;
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    border-radius: 6px;
}

.btn--banner:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Заголовки и секции */
.section-header {
    text-align: center;
    margin-bottom: 28px;
}

.section-tag {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: var(--font-weight-medium);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: clamp(18px, 4vw, 28px);
    font-weight: var(--font-weight-bold);
    margin-bottom: 10px;
    color: var(--text-primary);
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo__icon {
    width: 28px;
    height: 28px;
    border-radius: var(--border-radius);
    object-fit: contain;
    object-position: center;
}

.logo__text {
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.logo__accent {
    color: var(--primary);
}

/* Шапка */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 10px 0;
    /* ФИКСИРОВАННАЯ ВЫСОТА ДЛЯ ПРЕДОТВРАЩЕНИЯ CLS */
    height: 70px;
}

.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    /* Фиксируем высоту контента */
    height: 50px;
}

.nav {
    display: flex;
    gap: 24px;
}

.nav__link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: var(--transition);
    font-size: 14px;
}

.nav__link:hover {
    color: var(--primary);
}

.header__actions {
    display: flex;
    gap: 12px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 3px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Главный экран */
.hero {
    padding: 60px 0 40px;
    margin-top: 70px;
    background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 100%);
    /* МИНИМАЛЬНАЯ ВЫСОТА ДЛЯ ПРЕДОТВРАЩЕНИЯ CLS */
    min-height: 600px;
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    /* Фиксируем минимальную высоту контента */
    min-height: 500px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    color: var(--primary);
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: var(--font-weight-medium);
    margin-bottom: 16px;
    box-shadow: var(--shadow-light);
}

.hero__title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero__accent {
    color: var(--primary);
}

.hero__description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.currency {
    color: var(--primary);
}

/* Простая визуализация героя */
.hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 240px;
}

.floating-shield {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: var(--shadow);
}

/* Контейнер телефона без заголовка */
.phone-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    /* РЕЗЕРВИРУЕМ МЕСТО ДЛЯ ПРЕДОТВРАЩЕНИЯ CLS */
    min-height: 450px;
}

/* Переключатель устройств */
.device-switcher {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 8px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    gap: 16px;
}

.device-option {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.device-option .device-icon {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.device-option .device-label {
    font-size: 13px;
    font-weight: 600;
}

/* Стили для ползунка */
.toggle-container {
    position: relative;
}

.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: relative;
    display: block;
    width: 50px;
    height: 28px;
    background: #E5E7EB;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-slider:hover {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.toggle-button {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.toggle-input:checked+.toggle-slider {
    background: #6B7280;
}

.toggle-input:checked+.toggle-slider .toggle-button {
    transform: translateX(22px);
}

.toggle-input:focus+.toggle-slider {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 0 4px rgba(99, 102, 241, 0.2);
}

/* Активное состояние устройств */
.device-switcher.android-active .device-option:last-child {
    color: var(--primary);
}

.device-switcher.ios-active .device-option:first-child {
    color: var(--primary);
}

/* iPhone 16 имитация - оптимальный размер для ПК */
.phone-mockup {
    width: 200px;
    height: 400px;
    background: #1d1d1f;
    border-radius: 30px;
    padding: 6px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    transition: all 0.3s ease;
}

/* Android мокап - черный стиль */
.android-mockup {
    background: #1d1d1f;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* iPhone экран */
.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Android экран */
.android-screen {
    background: #000;
    border-radius: 20px;
    width: 100%;
    height: 100%;
}

/* iPhone notch */
.phone-notch {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background: #1d1d1f;
    border-radius: 10px;
    z-index: 10;
}

.phone-notch::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: #333;
    border-radius: 50%;
}

/* iPhone home indicator */
.phone-home-indicator {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    z-index: 10;
}

/* Видео контейнер в iPhone - полный экран с небольшими отступами */
.phone-video-container {
    position: absolute;
    top: 0;
    left: 2px;
    width: calc(100% - 4px);
    height: 100%;
    border-radius: 22px;
    overflow: hidden;
    z-index: 1;
    /* Градиентный фон вместо poster */
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
}

.phone-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    /* Скрываем видео до загрузки */
    opacity: 0;
    transition: opacity 0.3s ease;
    background: transparent;
}

.phone-video.loaded {
    opacity: 1;
}

/* Android статус бар */
.android-status-bar {
    position: absolute;
    top: 36px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 20px);
    height: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    color: white;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
}

.status-left .time {
    font-weight: 500;
}

.status-right {
    display: flex;
    gap: 4px;
    align-items: center;
}

/* Android навигационная панель */
.android-nav-bar {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 20px);
    height: 32px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.nav-btn {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Android уведомление - Material Design стиль - компактная версия для ПК */
.android-notification {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 16px);
    max-width: 240px;
    background: rgba(33, 33, 33, 0.95);
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.android-notification.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px) scale(0.95);
    pointer-events: none;
}

.android-notification-header {
    padding: 10px 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.android-app-icon {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}

.android-app-info {
    flex: 1;
}

.android-app-name {
    font-size: 12px;
    font-weight: 500;
    color: #FFFFFF;
    font-family: 'Roboto', sans-serif;
    line-height: 1.2;
}

.android-notification-time {
    font-size: 10px;
    color: #B0B0B0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.2;
}

.android-notification-body {
    padding: 6px 12px 8px;
}

.android-notification-title {
    font-size: 12px;
    font-weight: 500;
    color: #FFFFFF;
    font-family: 'Roboto', sans-serif;
    line-height: 1.25;
    margin-bottom: 3px;
}

.android-notification-text {
    font-size: 11px;
    color: #E0E0E0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.3;
}

.android-notification-actions {
    padding: 0 12px 8px;
    display: flex;
    gap: 6px;
}

.android-action {
    flex: 1;
    padding: 5px 6px;
    border: none;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    min-height: 24px;
}

.android-action:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

.android-action:active {
    transform: scale(0.98);
}

.android-action--primary {
    background: #2196F3;
    color: white;
}

.android-action--primary:hover {
    background: #1976D2;
}

.android-action--primary:active {
    background: #1565C0;
}

/* Промо баннер упрощенный и компактный */
.promo-banner {
    background: var(--accent);
    padding: 12px 0;
    color: white;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.banner__content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.banner__text {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: var(--font-weight-medium);
}

.banner__text i {
    font-size: 14px;
}

/* Упрощенный и компактный таймер */
.countdown-timer {
    display: flex;
    gap: 8px;
    align-items: center;
}

.timer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 4px 8px;
    min-width: 36px;
}

.timer-value {
    font-size: 13px;
    font-weight: var(--font-weight-bold);
    line-height: 1;
}

.timer-label {
    font-size: 9px;
    opacity: 0.9;
    margin-top: 1px;
}

/* Тарифы компактнее */
.pricing {
    padding: 40px 0;
    background: var(--bg-light);
    /* МИНИМАЛЬНАЯ ВЫСОТА ДЛЯ ПРЕДОТВРАЩЕНИЯ CLS */
    min-height: 800px;
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--border-radius-large);
    padding: 14px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.pricing-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.pricing-card--popular {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.pricing-card__badge {
    position: absolute;
    top: -8px;
    right: 20px;
    background: var(--accent);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
}

.pricing-card__icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 16px;
    color: white;
}

.pricing-card__title {
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 8px;
}

.pricing-card__price {
    margin-bottom: 12px;
}

.price-old {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 12px;
    margin-right: 4px;
}

.price {
    font-size: 22px;
    font-weight: var(--font-weight-bold);
    color: var(--primary);
}

.price-period {
    color: var(--text-secondary);
    font-size: 12px;
}

/* Простой список возможностей */
.pricing-card__features {
    list-style: none;
    margin-bottom: 16px;
    text-align: left;
}

.pricing-card__features li {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 0;
    color: var(--text-secondary);
    font-size: 12px;
}

.pricing-card__features li i {
    color: var(--secondary);
    font-size: 10px;
    width: 14px;
    text-align: center;
}

/* Призыв к действию в тарифах */
.pricing-cta {
    margin-top: 32px;
    text-align: center;
    display: flex;
    justify-content: center;
}

.cta-content {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    padding: 24px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow);
}

.cta-title {
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 12px;
    color: var(--text-primary);
}

.cta-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.cta-subdescription {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.4;
    padding: 12px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary);
}

/* Остальные секции компактнее */
.how-to {
    padding: 40px 0;
    /* МИНИМАЛЬНАЯ ВЫСОТА ДЛЯ ПРЕДОТВРАЩЕНИЯ CLS */
    min-height: 400px;
}

.how-to__steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

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

.step__number {
    width: 28px;
    height: 28px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: var(--font-weight-bold);
    color: white;
    flex-shrink: 0;
}

.step__title {
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
}

.video-preview {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--border-radius-large);
    padding: 24px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.video-preview:hover {
    box-shadow: var(--shadow);
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: var(--primary);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    transition: var(--transition);
    cursor: pointer;
    z-index: 3;
}

.video-play-button:hover {
    border-color: rgba(99, 102, 241, 0.8);
    box-shadow: 0 0 8px 0 rgba(99, 102, 241, 0.5);
}

.video-title {
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
}

/* Тестовый период компактнее */
.test-period {
    padding: 40px 0;
    background: var(--bg-light);
    text-align: center;
}

.test-content {
    max-width: 450px;
    margin: 0 auto;
}

.test-title {
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 8px;
}

.test-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* Преимущества компактнее */
.features {
    padding: 40px 0;
    background: var(--bg-light);
    /* МИНИМАЛЬНАЯ ВЫСОТА ДЛЯ ПРЕДОТВРАЩЕНИЯ CLS */
    min-height: 600px;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.feature {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--border-radius-large);
    padding: 14px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.feature:hover {
    box-shadow: var(--shadow);
}

.feature__icon {
    width: 36px;
    height: 36px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 16px;
    color: var(--primary);
}

.feature__title {
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 4px;
}

.feature__description {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.3;
}

/* Футер компактнее */
.footer {
    padding: 40px 0 20px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    /* МИНИМАЛЬНАЯ ВЫСОТА ДЛЯ ПРЕДОТВРАЩЕНИЯ CLS */
    min-height: 300px;
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 20px;
}

.footer__brand {
    max-width: 320px;
}

.footer__description {
    color: var(--text-secondary);
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.4;
}

.footer__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.footer__title {
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 10px;
}

.footer__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer__list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    transition: var(--transition);
}

.footer__list a:hover {
    color: var(--primary);
}

.footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    gap: 8px;
}

.footer__copyright-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 16px;
}

.footer__copyright {
    color: var(--text-muted);
    font-size: 11px;
}

.footer__legal {
    display: flex;
    gap: 12px;
}

.footer__legal a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    transition: var(--transition);
}

.footer__legal a:hover {
    color: var(--primary);
}

/* Социальные сети в футере */
.footer__social {
    display: flex;
    gap: 12px;
    margin: 16px 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-link--telegram:hover {
    background: #0088cc;
    border-color: #0088cc;
    color: white;
}

.social-link--youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
    color: white;
}

.social-link--instagram:hover {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
    border-color: #e1306c;
    color: white;
}

.social-link--tiktok:hover {
    background: #000000;
    border-color: #000000;
    color: white;
}

.social-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* Контакты в футере */
.footer__contact {
    margin-top: 20px;
}

.footer__contact p {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--text-primary);
}

.footer__email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.footer__email:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateX(2px);
}

/* Дисклеймер в футере */
.footer__disclaimer {
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 12px;
    text-align: center;
}

.disclaimer-email {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.disclaimer-email:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Адаптивность для мобильных - ещё компактнее */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border: 1px solid var(--border);
        border-radius: var(--border-radius);
        padding: 16px;
        box-shadow: var(--shadow);
        flex-direction: column;
        gap: 16px;
    }

    .nav--open {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero {
        padding: 50px 0 30px;
        margin-top: 60px;
    }

    .hero__content {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .hero__actions {
        justify-content: center;
        gap: 12px;
    }

    /* Убираем floating-shield на мобильных */
    .floating-shield {
        display: none;
    }

    .hero__visual {
        height: auto;
        padding: 20px 0;
    }

    /* Мобильная версия телефона */
    .phone-mockup {
        width: 260px;
        height: 520px;
        border-radius: 42px;
        padding: 10px;
    }

    .phone-screen {
        border-radius: 32px;
    }

    .phone-notch {
        width: 108px;
        height: 26px;
        border-radius: 13px;
        top: 10px;
    }

    .phone-notch::before {
        width: 7px;
        height: 7px;
        left: 26px;
    }

    .phone-home-indicator {
        width: 132px;
        height: 4px;
        bottom: 10px;
    }

    .section-header {
        margin-bottom: 24px;
    }

    .pricing__grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        gap: 16px;
    }

    .pricing-card {
        padding: 16px;
    }

    .how-to__steps {
        gap: 16px;
    }

    .features__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer__content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer__links {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .footer__social {
        gap: 10px;
        justify-content: center;
    }

    .footer__disclaimer {
        font-size: 9px;
        margin-bottom: 8px;
        line-height: 1.4;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

    .social-link svg {
        width: 18px;
        height: 18px;
    }

    .footer__disclaimer {
        font-size: 10px;
        margin-bottom: 10px;
    }

    .footer__copyright-row {
        flex-direction: column !important;
        gap: 8px !important;
    }

    /* На мобильных всегда показываем цвета соцсетей */
    .social-link--telegram {
        background: #0088cc;
        border-color: #0088cc;
        color: white;
    }

    .social-link--youtube {
        background: #ff0000;
        border-color: #ff0000;
        color: white;
    }

    .social-link--instagram {
        background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
        border-color: #e1306c;
        color: white;
    }

    .social-link--tiktok {
        background: #000000;
        border-color: #000000;
        color: white;
    }

    /* МОБИЛЬНЫЕ СТИЛИ ДЛЯ ШАПКИ И ЭЛЕМЕНТОВ */
    .logo__text {
        font-size: 18px;
        white-space: nowrap;
    }

    .btn--small {
        padding: 6px 10px;
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100px;
    }

    .header__content {
        padding: 12px 0;
        gap: 10px;
    }

    .header__actions {
        flex-shrink: 0;
    }

    /* Анимированный эмоджи подарка */
    .gift-emoji {
        display: inline-block;
        animation: giftShake 2s ease-in-out infinite;
        margin-right: 4px;
    }

    @keyframes giftShake {

        0%,
        100% {
            transform: rotate(0deg);
        }

        25% {
            transform: rotate(-8deg) scale(1.1);
        }

        75% {
            transform: rotate(8deg) scale(1.1);
        }
    }

    .social-link--tiktok {
        background: #000000;
        border-color: #000000;
        color: white;
    }

    /* iOS уведомление на мобильных */
    .ios-notification {
        width: calc(100% - 16px);
        top: 24px;
        border-radius: 18px;
    }

    .notification-header {
        padding: 10px 14px 0;
    }

    .app-icon {
        width: auto;
        height: auto;
        font-size: 14px;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        color: #FF9500;
    }

    .app-name {
        font-size: 13px;
    }

    .notification-time {
        font-size: 11px;
    }

    .notification-body {
        padding: 6px 14px 10px;
    }

    .notification-title {
        font-size: 13px;
    }

    .notification-text {
        font-size: 12px;
    }

    .notification-actions {
        padding: 0 14px 10px;
    }

    .notification-action {
        padding: 8px 10px;
        font-size: 13px;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .hero {
        padding: 40px 0 25px;
        margin-top: 60px;
    }

    .section-header {
        margin-bottom: 20px;
    }

    .pricing,
    .how-to,
    .features {
        padding: 30px 0;
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .btn--large {
        width: 100%;
        max-width: 240px;
        padding: 10px 20px;
        font-size: 13px;
        font-weight: var(--font-weight-medium);
    }

    .btn--card {
        padding: 10px 16px;
        font-size: 13px;
        font-weight: var(--font-weight-medium);
    }

    .btn--small {
        padding: 6px 12px;
        font-size: 12px;
    }

    .logo__text {
        font-size: 16px;
        white-space: nowrap;
    }

    .btn--small {
        padding: 4px 8px;
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 75px;
    }

    .header__content {
        padding: 10px 0;
        gap: 8px;
    }

    .header__actions {
        flex-shrink: 0;
    }

    .pricing-card {
        padding: 14px;
    }

    .feature {
        padding: 14px;
    }

    /* Увеличенный телефон на маленьких экранах для инструкций */
    .phone-mockup {
        width: 240px;
        height: 480px;
        border-radius: 36px;
        padding: 8px;
    }

    .phone-screen {
        border-radius: 28px;
    }

    .phone-notch {
        width: 96px;
        height: 24px;
        border-radius: 12px;
        top: 8px;
    }

    .phone-notch::before {
        width: 6px;
        height: 6px;
        left: 24px;
    }

    .phone-home-indicator {
        width: 120px;
        height: 3px;
        bottom: 8px;
    }

    .section-header {
        margin-bottom: 20px;
    }

    .pricing__grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        gap: 16px;
    }

    .pricing-card {
        padding: 16px;
    }

    .how-to__steps {
        gap: 16px;
    }

    .features__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer__content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer__links {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .footer__social {
        gap: 10px;
        justify-content: center;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

    .social-link svg {
        width: 18px;
        height: 18px;
    }

    .cta-content {
        padding: 18px;
        margin: 0 12px;
    }

    .cta-title {
        font-size: 16px;
    }

    .cta-description {
        font-size: 13px;
    }

    /* iOS уведомление на маленьких экранах */
    .ios-notification {
        width: calc(100% - 12px);
        top: 20px;
        border-radius: 16px;
    }

    .notification-header {
        padding: 8px 12px 0;
    }

    .app-icon {
        width: 16px;
        height: 16px;
        font-size: 9px;
        border-radius: 3px;
    }

    .app-name {
        font-size: 12px;
    }

    .notification-time {
        font-size: 10px;
    }

    .notification-body {
        padding: 5px 12px 8px;
    }

    .notification-title {
        font-size: 12px;
    }

    .notification-text {
        font-size: 11px;
    }

    .notification-actions {
        padding: 0 12px 8px;
    }

    .notification-action {
        padding: 7px 8px;
        font-size: 12px;
        border-radius: 7px;
    }

    /* Android челка на мобильных */
    .android-notch {
        width: 100px;
        height: 20px;
        top: 0;
    }

    .android-camera {
        width: 6px;
        height: 6px;
    }

    .android-status-bar {
        top: 24px;
        font-size: 11px;
    }
}

/* Стили для мобильной навигации */
.mobile-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-nav.open {
    transform: translateY(0);
}

.mobile-nav__links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav__link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    padding: 8px 0;
    transition: var(--transition);
}

.mobile-nav__link:hover {
    color: var(--primary);
}

.mobile-nav__actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* iOS-style уведомление - точная копия iOS */
.ios-notification {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 16px);
    max-width: 240px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 14px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.04);
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    border: 0.5px solid rgba(255, 255, 255, 0.6);
}

.ios-notification.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px) scale(0.94);
    pointer-events: none;
}

.notification-header {
    padding: 10px 14px 0;
    border-bottom: none;
}

.notification-app {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-icon {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: none;
    color: #FF9500;
}

.app-info {
    flex: 1;
    min-width: 0;
}

.app-name {
    font-size: 12px;
    font-weight: 600;
    color: #000;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    line-height: 1.2;
    margin: 0;
}

.notification-time {
    font-size: 10px;
    color: #8E8E93;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    line-height: 1.2;
    margin-top: 1px;
}

.notification-body {
    padding: 6px 14px 10px;
}

.notification-title {
    font-size: 12px;
    font-weight: 600;
    color: #000;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    line-height: 1.25;
    margin-bottom: 2px;
}

.notification-text {
    font-size: 11px;
    color: #3C3C43;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    line-height: 1.3;
    opacity: 0.9;
}

.notification-actions {
    padding: 0 14px 10px;
    display: flex;
    gap: 6px;
}

.notification-action {
    flex: none;
    min-width: 80px;
    min-height: 28px;
    padding: 6px 14px;
    border: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    background: rgba(120, 120, 128, 0.16);
    color: #007AFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-action:hover {
    background: rgba(120, 120, 128, 0.24);
    transform: scale(1.02);
}

.notification-action:active {
    transform: scale(0.98);
    background: rgba(120, 120, 128, 0.32);
}

.notification-action--primary {
    background: #007AFF;
    color: white;
    border-radius: 7px;
}

.notification-action--primary:hover {
    background: #0056D3;
}

.notification-action--primary:active {
    background: #004BB8;
}

/* iOS статус бар с правильными индикаторами */
.ios-status-bar {
    position: absolute;
    top: 16px;
    left: 0;
    right: 0;
    height: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 10;
    color: white;
    font-size: 11px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-weight: 600;
}

.ios-status-bar .status-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
}

.ios-status-bar .status-left .time {
    font-weight: 600;
}

.ios-status-bar .status-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
}

/* Cellular signal dots */
.cellular-signal {
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: 12px;
    margin-right: 6px;
}

.signal-dot {
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}

.signal-dot:nth-child(2) {
    height: 5px;
}

.signal-dot:nth-child(3) {
    height: 7px;
}

.signal-dot:nth-child(4) {
    height: 9px;
}

.signal-dot.active {
    background: white;
}

/* Battery container */
.battery-container svg {
    width: 24px;
    height: 12px;
}

/* Android экран без отступов */
.android-screen {
    background: #000;
    border-radius: 20px;
    width: 100%;
    height: 100%;
}

/* Android челка прижата к верху телефона */
.android-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 24px;
    background: #000;
    border-radius: 0 0 12px 12px;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
}

.android-camera {
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
    border: 1px solid #555;
}

/* Android статус бар под челкой */
.android-status-bar {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 20px);
    height: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    color: white;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
}

/* Таймер акции в карточке */
.card-promo {
    background: linear-gradient(135deg, var(--accent) 0%, #FF6B35 100%);
    border-radius: var(--border-radius);
    padding: 8px 12px;
    margin-bottom: 12px;
    text-align: center;
}

.promo-text {
    color: white;
    font-size: 11px;
    font-weight: var(--font-weight-medium);
    margin-bottom: 6px;
}

.card-promo .countdown-timer {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

.card-promo .timer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 3px 6px;
    min-width: 30px;
}

.card-promo .timer-value {
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    line-height: 1;
    color: white;
}

.card-promo .timer-label {
    font-size: 8px;
    margin-top: 1px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: var(--font-weight-medium);
}

.video-title {
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 6px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    color: white;
}

.video-subtitle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
}

/* Секция отзывов клиентов */
.reviews-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.review-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-large);
    padding: 24px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.review-rating {
    font-size: 16px;
    margin-bottom: 16px;
    line-height: 1;
}

.review-text {
    font-size: 12px;
    margin-bottom: 16px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.author-name {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    font-size: 14px;
}

.author-location {
    font-size: 12px;
    color: var(--text-muted);
}

/* Дополнительные стили для мобильных */
@media (max-width: 768px) {
    .reviews-section {
        padding: 60px 0;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .review-card {
        padding: 20px;
    }

    .review-text {
        font-size: 13px;
    }

    .author-avatar {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .reviews-section {
        padding: 50px 0;
    }

    .review-card {
        padding: 16px;
    }

    .review-rating {
        font-size: 14px;
    }

    .review-text {
        font-size: 12px;
        margin-bottom: 16px;
    }
}

.ios-notification {
    max-width: 210px;
    min-width: 180px;
    padding: 8px 0 6px 0;
    border-radius: 11px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13), 0 0 1px rgba(0, 0, 0, 0.04);
}

.ios-notification .notification-header {
    padding: 7px 12px 0 12px;
}

.ios-notification .app-name {
    font-size: 11px;
    font-weight: 600;
}

.ios-notification .notification-time {
    font-size: 9px;
    margin-top: 0;
}

.ios-notification .notification-title {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 1px;
}

.ios-notification .notification-text {
    font-size: 10px;
    opacity: 0.85;
}

.ios-notification .notification-body {
    padding: 5px 12px 7px 12px;
}

.ios-notification .notification-actions {
    padding: 0 8px 6px 8px;
    gap: 5px;
}

.ios-notification .notification-action {
    min-width: 0;
    min-height: 22px;
    padding: 3px 0;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    flex: 1 1 0;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ios-notification .notification-action--primary {
    background: #007AFF;
    color: #fff;
    border-radius: 6px;
}

/* УНИВЕРСАЛЬНАЯ АДАПТИВНОСТЬ ДЛЯ БЛОГА И СТАТЕЙ */

/* Базовые стили для любых таблиц */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    word-wrap: break-word;
    word-break: break-word;
}

table th {
    background: var(--bg-light);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

/* Адаптивность для всего контента */
.article,
.article-content,
.article-body,
.blog-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.article *,
.article-content *,
.article-body *,
.blog-content * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Мобильные стили для таблиц */
@media (max-width: 768px) {
    table {
        font-size: 14px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    table th,
    table td {
        padding: 10px 8px;
        min-width: 100px;
        white-space: nowrap;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        margin: 16px 0;
    }

    table th,
    table td {
        padding: 8px 6px;
        font-size: 11px;
        min-width: 70px;
        white-space: nowrap;
    }

    /* Принудительная адаптивность для всех элементов */
    .article,
    .article *,
    .article-content,
    .article-content *,
    .article-body,
    .article-body *,
    .blog-content,
    .blog-content * {
        max-width: 100% !important;
        overflow-x: auto !important;
    }

    /* Перенос текста */
    p,
    div,
    span,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* Длинные ссылки */
    a {
        word-break: break-all !important;
        overflow-wrap: break-word !important;
    }

    /* Код блоки */
    pre,
    code {
        overflow-x: auto !important;
        word-break: break-all !important;
        white-space: pre-wrap !important;
        max-width: 100% !important;
    }
}