/* =====================================================
   БАЗОВЫЕ СТИЛИ
===================================================== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    margin: 0;
    background: #f6f8fb;
    color: #222;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 60px 20px;
}
h2 {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}
h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: #4f46e5;
    margin: 10px auto 0;
    border-radius: 2px;
}

/*плавная прокрутка с кнопки"Как это работает"*/
html {
  scroll-behavior: smooth;
}

/* =====================================================
   HERO
===================================================== */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 60vh;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    text-align: center;
}

/* ----------------- ФОН ----------------- */
.hero-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1260px;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* Основной фон с zoom */
.hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: url('../legacy/tariff/2.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

    transform: scale(1);
    animation: zoomBg 15s ease-in-out infinite alternate;

    will-change: transform;
}

/* Размытый слой для глубины */
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0,0,0,0.9),
        rgba(0,0,0,0.7)
    );
 
    animation: subtleGradient 40s ease-in-out infinite alternate;
}

/* ----------------- Контент ----------------- */
.hero .container {
    position: relative;
    z-index: 2;
}

/* Заголовок и подзаголовок с glow */
.hero-title {
    color: #fff;
    font-size: 48px;
    max-width: 800px;
    margin: 0 auto 20px auto;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6),
                 0 0 8px rgba(255,255,255,0.1);
}

.hero-subtitle {
    max-width: 600px;
    margin: 0 auto 50px auto;
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 6px rgba(0,0,0,0.5),
                 0 0 6px rgba(255,255,255,0.05);
}

/* ----------------- Кнопка ----------------- */
button.button {
    border: none;
    background: none;
    cursor: pointer;
}

.button.hero-cta {
    display: inline-block;
    background: #fff;
    color: #4f46e5;
    font-weight: 700;
    font-size: 16px;
    padding: 16px 40px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.button.hero-cta:hover {
    background: #4f46e5;
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25),
                0 0 15px rgba(79,70,229,0.3);
}

/* ----------------- Анимации ----------------- */
@keyframes zoomBg {
    0%   { transform: scale(1); }
    100% { transform: scale(1.15); }
}

@keyframes subtleGradient {
    0%   { background-position: 0% 0%; }
    100% { background-position: 50% 50%; }
}

/* ----------------- Мобильная версия ----------------- */
@media (max-width: 768px) {

.hero {
    min-height: 80vh;
}

    .hero-bg {
        width: 100%;
        transform: translateX(-50%) scale(1);
    }

    /* Отключаем фон с зумом */
    .hero-bg::before {
        background-image: url('../legacy/tariff/3.webp');
        animation: none;
        transform: scale(1);
    }

    /* Отключаем blur/gradient */
    .hero-bg::after {
        animation: none;
        filter: blur(0);
    }

    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 16px; }
    .button.hero-cta { padding: 12px 30px; font-size: 14px; }
}

/* =====================================================
   ПЛАТФОРМЫ
===================================================== */
.platforms {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}
.platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}
.platform .icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    padding: 10px;
    transition: all 0.3s ease;
}
.platform:hover .icon-wrapper {
    transform: scale(1.3);
    background: rgba(255,255,255,0.35);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.platform p {
    margin-top: 10px;
    font-weight: 600;
}

/* =====================================================
   СОЦИАЛЬНОЕ ДОКАЗАТЕЛЬСТВО / TRUST
===================================================== */
.trust {
    background: #fff;
    padding: 80px 20px;
}
.trust h2 {
    color: #222;
}
.trust-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
}
.trust-stats .stat h3 {
    font-size: 36px;
    color: #4f46e5;
    margin: 0;
}
.trust-stats .stat p {
    margin: 5px 0 0 0;
    font-weight: 600;
    color: #555;
}
.trust-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* =====================================================
   ВЫГОДЫ / FEATURES
===================================================== */
#benefits {
    padding: 80px 30px;
    text-align: center;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a2e;
}
.section-subtitle {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 50px;
}

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

.feature {
    background: #fff;
    padding: 30px 25px;
    border-radius: 24px;
    width: 100%;
    max-width: 230px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
}
.feature:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.feature-icon img {
    width: 60px;
    margin-bottom: 18px;
}
.feature h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #1a1a2e;
}
.feature p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    #benefits .section-title {
        font-size: 1.8rem; /* меньше для мобильных */
        line-height: 1.3;  /* плотнее, но читаемо */
    }
    #benefits .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    .features-grid {
        gap: 20px;
        padding: 30px 0;
    }
    .feature {
        padding: 20px 15px;
        width: 100%;
        max-width: 100%;
    }
    .feature h4 {
        font-size: 1.1rem;
    }
    .feature p {
        font-size: 0.9rem;
    }
    .feature-icon img {
        width: 50px;
        margin-bottom: 12px;
    }
}

/* =====================================================
   КАК РАБОТАЕТ / STEPS
===================================================== */
.steps-row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    padding: 40px 30px;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

/* Скриншот — никогда не обрезается */
.steps-screenshot {
    flex: 1 1 400px;
    max-width: 550px;
    border-radius: 20px;
    overflow: visible; /* важно! img не будет обрезаться */
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}
.steps-screenshot img {
    width: 100%;
    height: auto;
    object-fit: contain; /* сохраняем пропорции */
    display: block;
}

/* Карточки шагов */
.steps-cards {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.step-card {
    background: #f6f8fb;
    border-radius: 20px;
    padding: 0px 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.step-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1f2937;
}
.step-card p {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.5;
}

/* Адаптивность */
@media(max-width: 992px) {
    .steps-row {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .steps-cards {
        width: 100%;
        align-items: center;
    }
    .step-card {
        width: 90%;
    }
}

/* =====================================================
   ТАРИФЫ
===================================================== */
/* Основной блок тарифов */
.pricing {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    padding: 60px 0;
}

/* Карточки тарифов */
.plan {
    position: relative;
    background: #fff;
    padding: 40px 30px;
    border-radius: 30px;
    width: 300px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.plan:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* Популярный тариф */
.plan.featured {
    border: 3px solid #4f46e5;
    transform: scale(1.05);
    background: linear-gradient(135deg, #eef0ff, #d6dbff);
}

/* Бейдж */
.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #4f46e5;
    color: white;
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 20px;
    font-weight: 600;
}

/* Цена */
.price {
    font-size: 32px;
    font-weight: bold;
    margin: 20px 0;
}

/* Список возможностей */
.features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
}
.features li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}
.features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4f46e5;
    font-weight: bold;
}

/* Кнопки */
.button {
    display: inline-block;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s;
}
.button.secondary {
    background: #eef0ff;
    color: #4f46e5;
}
.button.secondary:hover {
    background: #d6dbff;
}
.button:not(.secondary) {
    background: #4f46e5;
    color: white;
}
.button:not(.secondary):hover {
    background: #3c38c2;
}

/* Заголовок секции */
.section-title {
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 50px;
    color: #1f2937;
}

/* Адаптив */
@media(max-width:992px){
    .pricing {
        flex-direction: column;
        align-items: center;
    }
}

/* =====================================================
   FAQ
===================================================== */
/* Общий блок */
.faq {
    max-width: 800px;
    margin: auto;
    padding: 80px 20px;
}

/* Список */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Элемент */
.faq-item {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
}

/* Hover */
.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* Открытый */
.faq-item.open {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Вопрос */
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: #1f2937;
}

/* Иконка + */
.faq-icon {
    width: 22px;
    height: 22px;
    position: relative;
    transition: transform 0.3s ease;
}

/* Линии плюса */
.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: #4f46e5;
    border-radius: 2px;
}

/* горизонтальная */
.faq-icon::before {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

/* вертикальная */
.faq-icon::after {
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

/* Когда открыт — превращаем в минус */
.faq-item.open .faq-icon::after {
    opacity: 0;
}

/* Ответ */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease;
    margin-top: 10px;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
    opacity: 0;
}

/* Открытый ответ */
.faq-item.open .faq-answer {
    max-height: 200px;
    opacity: 1;
}

/* =====================================================
   CTA
===================================================== */
.final-hero {
    position: relative;
    padding: 100px 40px;
    border-radius: 40px;
    text-align: center;
    overflow: hidden;
    margin-top: 100px;
    margin-bottom: 100px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
}

/* мягкое свечение */
.final-hero::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99,102,241,0.15), transparent 70%);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

/* второе свечение для глубины */
.final-hero::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(79,70,229,0.1), transparent 70%);
    bottom: -150px;
    right: -100px;
    pointer-events: none;
}

.final-hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: auto;
}

.final-hero h2 {
    font-size: 36px;
    margin-bottom: 16px;
    color: #111;
    letter-spacing: -0.5px;
}

.final-hero p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.final-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.final-hero .button.primary {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 14px;
    text-decoration: none;

    box-shadow: 0 10px 25px rgba(79,70,229,0.25);
    transition: all 0.25s ease;
}

.final-hero .button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(79,70,229,0.3);
}

.final-note {
    font-size: 14px;
    color: #777;
}

/* адаптив */
@media (max-width: 768px) {
    .final-hero {
        padding: 60px 20px;
        border-radius: 30px;
    }

    .final-hero h2 {
        font-size: 26px;
    }

    .final-hero p {
        font-size: 16px;
    }
}