/* Общие стили */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #007bff;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-large {
    font-size: 18px;
    padding: 15px 35px;
}

/* Навигация */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid #e1e5e9;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 24px;
    font-weight: 700;
    color: #007bff;
    margin: 0;
}

/* Главный экран (Hero) */
.hero {
    background-color: #f5f7fa;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.hero .subtitle {
    font-size: 20px;
    color: #555;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

/* Главный экран (Hero) */
.hero {
    position: relative; /* ✅ Нужно для позиционирования видео */
    padding: 100px 0;
    text-align: center;
    overflow: hidden; /* ✅ Скрываем все, что выходит за рамки */
    color: #ffffff; /* ✅ Делаем текст белым по умолчанию */
}

/* ✅ НОВЫЙ СТИЛЬ ДЛЯ ВИДЕО */
#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1; /* Видео на заднем плане */
}

/* ✅ НОВЫЙ СТИЛЬ ДЛЯ ЗАТЕМНЕНИЯ (чтобы текст читался) */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Темный оверлей */
    z-index: 2;
}

/* ✅ НОВЫЙ СТИЛЬ ДЛЯ КОНТЕНТА (поверх видео и оверлея) */
.hero-content {
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff; /* ✅ Убедимся, что текст белый */
    margin-bottom: 20px;
}

.hero .subtitle {
    font-size: 20px;
    color: #f0f0f0; /* ✅ Чуть более тусклый белый */
    max-width: 700px;
    margin: 0 auto 40px auto;
}

/* Общий заголовок секции */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-title p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Секция Особенностей */
.features {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.feature-icon {
    width: 64px;
    height: 64px;
    color: #007bff;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 16px;
    color: #555;
}

/* Секция Цены */
.pricing {
    padding: 80px 0;
    background-color: #f5f7fa;
}

.pricing-card {
    max-width: 450px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e1e5e9;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 40px;
    text-align: center;
}

/* ✅ НОВЫЙ СТИЛЬ ДЛЯ ЯРЛЫКА */
.promo-badge {
    display: inline-block;
    background-color: #ffc107; /* Желтый */
    color: #333;
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* ✅ ИЗМЕНЕННЫЕ СТИЛИ ЦЕНЫ */
.pricing-card .price-original {
    font-size: 26px; /* Уменьшили */
    font-weight: 400; /* Сделали тоньше */
    color: #999; /* Сделали серым */
    text-decoration: line-through;
    margin-bottom: 0; /* Убрали отступ */
    line-height: 1;
}

.pricing-card .price-promo {
    font-size: 60px; /* Сделали крупнее */
    font-weight: 700;
    color: #007bff; /* Основной синий цвет */
    margin-bottom: 25px;
    line-height: 1.1;
}

.pricing-card .price-original span,
.pricing-card .price-promo span {
    font-size: 18px;
    font-weight: 500;
    color: #666;
}
/* ✅ КОНЕЦ ИЗМЕНЕНИЙ ЦЕНЫ */

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
}

.pricing-features li {
    font-size: 17px;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.pricing-features .check {
    color: #28a745;
    font-size: 20px;
    font-weight: bold;
    margin-right: 10px;
}

.pricing-card .btn {
     /* width: 100%; */ /* Мы удалили это в прошлом шаге */
}

/* ✅ ИЗМЕНЕННЫЙ СТИЛЬ ДЛЯ ПРИМЕЧАНИЯ */
.pricing-note {
    font-size: 14px;
    color: #555;
    margin-top: 25px;
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    border: 1px dashed #ddd;
}

.pricing-note strong {
    color: #dc3545; /* Срочный красный цвет */
    font-weight: 600;
}

/* Секция problem-solution */
.problem-solution {
    padding: 80px 0;
}

.problem-solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.problem-solution-card {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.problem-solution-icon {
    width: 64px;
    height: 64px;
    color: #007bff;
    margin-bottom: 20px;
}

.problem-solution-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.problem-solution-card p {
    font-size: 16px;
    color: #555;
}

/* --- Story Section --- */
.story-section {
    padding: 60px 0; /* Сохраняем отступы */
    background-color: #f0f0f0; /* Устанавливаем белый фон для всей SECTION */
    text-align: center; /* Центрируем контент */
}
.story-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
	text-align: center;
}

.story-section p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две одинаковые колонки */
    gap: var(--spacing); /* Отступ между колонками */
    align-items: center; /* Выравнивание контента по центру по вертикали */
    text-align: left; /* Текст внутри сетки будет выравниваться по левому краю */
}

.story-image {
    text-align: center; /* Центрируем изображение внутри колонки */
}

.story-image img {
    max-width: 80%; /* Изображение не будет слишком широким */
    height: auto;
    border-radius: 50%; /* Делаем изображение круглым */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Небольшая тень для объема */
}

.story-content .bio {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 0; /* Убираем нижний отступ, если это последний элемент */
}

/* --- 4. Final CTA Section (Most Important Contrast) --- */
:root {
    --primary-color: #007bff; /* Синий для кнопок */
    --accent-color: #ff9900; /* Акцентный оранжевый (для CTA!) */
    --text-color: #333;
    --bg-dark: #2c3e50;
    --spacing: 20px;
}
.final-cta {
    /* Используем акцентный оранжевый цвет для фона */
    background-color: var(--accent-color); 
    color: var(--bg-dark); /* Темный текст на оранжевом фоне для контраста */
    padding: 80px 0;
    text-align: center;
    /* Добавляем легкую тень снизу, чтобы выделить секцию */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); 
}

.final-cta h3 {
    font-size: 2.2em; /* Увеличиваем заголовок, чтобы привлечь внимание */
    color: var(--bg-dark); 
    margin-bottom: 20px;
    font-weight: 800; /* Очень жирный шрифт */
    text-transform: uppercase; /* Привлекаем внимание к экономии */
}

.final-cta p {
    font-size: 1.3em; /* Увеличиваем основной текст */
    max-width: 800px;
    margin: 0 auto 30px;
    font-weight: 500;
}

.final-cta .small-text {
    font-size: 1em;
    opacity: 0.8; /* Делаем мелкий текст чуть бледнее */
    margin-top: 15px;
    font-style: italic;
}

/* Переопределяем кнопку для этой секции, чтобы она была еще более заметной */
.final-cta .btn-primary {
    background-color: var(--bg-dark); /* Темная кнопка на оранжевом фоне */
    color: white;
    /* Увеличиваем тень кнопки, чтобы она "выпрыгивала" */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4); 
    transition: transform 0.2s;
}

.final-cta .btn-primary:hover {
    background-color: #1a242f; /* Еще темнее при наведении */
    transform: translateY(-2px); /* Эффект "нажатия" */
}


/* Футер */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #e1e5e9;
    background: #f8f9fa;
}

/* --- Адаптация (Media Query) --- */
@media (max-width: 768px) {
    /* Общие стили для мобильных устройств */
    .hero h1 {
        font-size: 36px;
    }

    .hero .subtitle {
        font-size: 18px;
    }

    .section-title h2 {
        font-size: 30px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* СТИЛИ ДЛЯ КАРТОЧЕК ЦЕН (PRICING GRID) */
    .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important; 
    }

    /* !!! КРИТИЧЕСКИЙ ФИКС ОТСТУПОВ КАРТОЧЕК !!! */
    .pricing-card {
        /* Принудительный вертикальный отступ между карточками */
        margin-bottom: 25px !important; 
        max-width: none !important;
        margin-left: auto;
        margin-right: auto;
        /* Увеличиваем нижний внутренний отступ для размещения кнопки */
        padding-bottom: 40px !important;
    	height: auto !important;
    	padding-bottom: 40px !important;
    }
    
    /* Убираем отступ у последней карточки */
    .pricing-card:last-child {
        margin-bottom: 0 !important;
    }
    
    /* Дополнительный фикс для выделенной карточки */
    .pricing-featured {
        /* Убираем конфликтное смещение, если оно осталось */
        transform: translateY(0) !important;
    }

    
    /* Секция Story */
	.story-grid {
        grid-template-columns: 1fr; /* На мобильных устройствах - одна колонка */
        text-align: center; 
    }

    .story-image {
        margin-bottom: var(--spacing); 
    }

    .story-image img {
        max-width: 60%; 
    }
    
    /* Секция Final CTA */
	.final-cta h3 {
        font-size: 1.8em;
    }
    .final-cta p {
        font-size: 1.1em;
    }
}


/* === PRICING GRID === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: stretch;
}

/* У .pricing-card убираем max-width/margin чтобы карточки стояли в ряд */
.pricing-card {
  /* удалить или закомментировать эти строки, если они есть:
     max-width: 450px;
     margin: 0 auto;
  */
  max-width: none;
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* выделенная карточка */
.pricing-featured {
  border: 2px solid #007bff;
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

/* выравнивание кнопки внизу карточки */
.pricing-card .btn {
  margin-top: auto;
}
