:root {
    --primary-color: #ff3e55;
    --secondary-color: #1a1a1a;
    --accent-color: #6366f1;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --gradient: linear-gradient(135deg, #ff3e55 0%, #ff6b6b 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--secondary-color);
    background: var(--bg-light);
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    position: relative;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-text {
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3rem; /* Увеличиваем размер */
    font-weight: 800; /* Делаем жирнее */
    line-height: 1.2;
    letter-spacing: -0.02em; /* Тайтовый кернинг для современного вида */
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15); /* Добавляем тень для глубины */
}


.gradient-text {
    background: linear-gradient(45deg, #fff 0%, #fef5e7 50%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    font-weight: 900;
}

.hero-text .lead {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-button {
    background: var(--gradient);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 62, 85, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-button::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;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 62, 85, 0.5);
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Advantages Section */
.advantages {
    position: relative;
    background: white;
}

/* Общее правило для всех заголовков */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    position: relative;
    display: block; /* ✅ Всегда block */
    text-align: center; /* ✅ Всегда по центру */
    width: 100%; /* ✅ На всю ширину */
}

/* Переопределение только для CTA (белый цвет) */
.cta .section-title {
    color: white;
}

.cta .section-title::after {
    background: rgba(255, 255, 255, 0.5);
}


.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--gradient);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.advantage-item {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    text-align: justify;
}

.advantage-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.advantage-item:hover::before {
    transform: scaleX(1);
}

.advantage-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.advantage-item h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.advantage-item h4::before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Эмоджи для преимуществ в новом порядке */

.advantage-item:nth-child(1) h4::before {
    content: "🤖";  /* Демпинг-Бот */
}

.advantage-item:nth-child(2) h4::before {
    content: "📦";  /* Предзаказ */
}

.advantage-item:nth-child(3) h4::before {
    content: "💬";  /* WhatsApp-рассылки */
}

.advantage-item:nth-child(4) h4::before {
    content: "📊";  /* Аналитика продаж */
}

.advantage-item:nth-child(5) h4::before {
    content: "🖥️";  /* Единый интерфейс */
}

.advantage-item:nth-child(6) h4::before {
    content: "👨‍💼";  /* Личный менеджер / Поддержка */
}

.advantage-item:nth-child(7) h4::before {
    content: "💰";  /* Самые выгодные тарифы */
}



.advantage-item:nth-child(8) h4::before {
    content: "🎓";  /* Обучение */
}

.advantage-item:nth-child(9) h4::before {
    content: "🔔";  /* Мгновенные уведомления */
}

/* Testimonials - Унифицированная версия */
.testimonials {
    background: var(--bg-light);
}

.testimonial-card {
    background: #fff;
    border: none;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Распределяем контент равномерно */
    text-align: justify;
}

.testimonial-card .d-flex.align-items-center {
    margin-top: auto; /* Прижимаем к низу */
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06); /* Легкий разделитель */
}

/* Декоративная кавычка */
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: serif;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.testimonial-card p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Аватар */
.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff3e55, #ff6b7a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* 5. Текст отзыва - добавляем отступ снизу */
.testimonial-card p:not(.fw-bold):not(.mb-0) {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1.5rem; /* Увеличили отступ */
    flex-grow: 1; /* Заполняет доступное пространство */
}

/* 6. Звездочки - добавляем отступ снизу */
.testimonial-card .mb-3 {
    margin-bottom: 1rem !important;
}

/* Звездочки рейтинга */
.fa-star {
    font-size: 0.9rem;
}

/* Вспомогательные классы */
.text-muted {
    color: #999 !important;
}

.fw-bold {
    font-weight: 700;
}

.mb-0 {
    margin-bottom: 0;
}

/* CTA Section */
.cta {
    background: var(--gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none; /* 🔧 Вот это ключ */
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: white;
}

.footer a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.footer .fab {
    transition: transform 0.3s ease;
}

.footer .fab:hover {
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }

    .hero-text {
        text-align: justify;
    }
    .hero-text h1 {
        font-size: 2rem; /* Меньше на мобилках */
    }
    .advantage-item {
        margin-bottom: 1rem;
    }

    .testimonial-card {
        margin-bottom: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-text h1 {
        font-size: 2.5rem; /* Средний размер для планшетов */
    }
}

/* Loading animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    transform-origin: left;
    transform: scaleX(0);
    z-index: 9999;
    transition: transform 0.3s ease;
}

/* === SALE Popup (совместимо с твоей разметкой) === */
.modal-content.sale-modal {
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.modal-content.sale-modal .modal-header {
  background: linear-gradient(135deg,#ff3e55 0%, #ff6b6b 100%);
  color:#fff;
}

.modal-content.sale-modal .badge-sale {
  background: rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.35);
  padding:.35rem .6rem;
  border-radius:999px;
  font-weight:700;
}

.modal-content.sale-modal .btn-sale {
  background: var(--gradient);
  border: none;
  font-weight: 700;
  padding: .9rem 1.2rem;
  border-radius: 12px;
}

.modal-content.sale-modal .sale-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: .5px;
}

/* Пульсация */
.modal-content.sale-modal.pulse { position: relative; }
.modal-content.sale-modal.pulse::after {
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:16px;
  box-shadow: 0 0 0 0 rgba(255,62,85,.55);
  animation: pulseGlow 1.6s infinite;
  pointer-events: none;
}

@keyframes pulseGlow {
  0%   { box-shadow: 0 0 0 0 rgba(255,62,85,.55); }
  70%  { box-shadow: 0 0 0 18px rgba(255,62,85,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,62,85,0); }
}
