/* ===== СБРОС И ПЕРЕМЕННЫЕ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark: #0b1a2e;
    --dark2: #1a2744;
    --primary: #1a3a6b;
    --primary-light: #2563eb;
    --accent: #e31e24;
    --accent-hover: #c41a1f;
    --gold: #f59e0b;
    --bg: #f0f2f5;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 40px -12px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== ШАПКА (тёмная, как на референсе) ===== */
.header {
    background: var(--dark2);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    gap: 24px;
}

.logo-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.logo-text span {
    color: var(--accent);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 8px 14px;
    border-radius: var(--radius-xs);
    transition: var(--transition);
}

.nav a:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.nav-mobile-extra {
    display: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: var(--transition);
    background: var(--accent);
    padding: 9px 18px;
    border-radius: var(--radius-xs);
}

.phone-btn svg {
    flex-shrink: 0;
}

.phone-btn:hover {
    background: var(--accent-hover);
}

/* ===== ГЕРОЙ (с флагом РФ на фоне) ===== */
.hero {
    background: linear-gradient(135deg, #1a2744 0%, #2a3f6a 50%, #1a2744 100%);
    color: white;
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
}

/* Флаг РФ на фоне с анимацией */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.12) 0%,
        rgba(255,255,255,0.12) 33%,
        rgba(0,57,166,0.15) 33%,
        rgba(0,57,166,0.15) 66%,
        rgba(213,43,30,0.15) 66%,
        rgba(213,43,30,0.15) 100%
    );
    pointer-events: none;
    z-index: 1;
    animation: flagWave 8s ease-in-out infinite;
}

/* Анимация развевания флага — волна */
@keyframes flagWave {
    0% {
        transform: skewX(0deg);
    }
    25% {
        transform: skewX(1.2deg);
    }
    50% {
        transform: skewX(-1deg);
    }
    75% {
        transform: skewX(0.8deg);
    }
    100% {
        transform: skewX(0deg);
    }
}

.hero-grid {
    display: flex !important;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1 !important;
    min-width: 320px;
    max-width: 55%;
}

@media (max-width: 600px) {
    .hero-content {
        min-width: 0;
    }
}

.hero-content h1 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 28px;
    opacity: 0.85;
    line-height: 1.7;
    max-width: 540px;
}

.hero-subtitle strong {
    color: var(--gold);
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
    align-items: stretch;
    max-width: 520px;
}

.btn-primary {
    background: var(--accent);
    color: white;
    font-weight: 600;
    border: none;
    padding: 13px 26px;
    border-radius: var(--radius-xs);
    font-size: 0.92rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: transparent;
    color: white;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.4);
    padding: 13px 26px;
    border-radius: var(--radius-xs);
    font-size: 0.92rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.btn-hero {
    padding: 13px 26px;
    font-size: 0.92rem;
    width: 100%;
    white-space: nowrap;
    text-align: center;
}

.btn-white {
    background: #ffffff;
    color: #0b1a2e;
    font-weight: 600;
    border: none;
    padding: 13px 26px;
    border-radius: var(--radius-xs);
    font-size: 0.92rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-white:hover {
    background: #f0f0f0;
}

.btn-blue {
    background: #2563eb;
    color: white;
    font-weight: 600;
    border: none;
    padding: 13px 26px;
    border-radius: var(--radius-xs);
    font-size: 0.92rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-blue:hover {
    background: #1d4ed8;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tag {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
}

.hero-form {
    flex: 1 !important;
    min-width: 0;
    max-width: 50%;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 32px 28px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3);
}

.hero-form h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.hero-form p {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 12px;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    background: rgba(255,255,255,0.08);
    color: white;
    transition: var(--transition);
    font-family: inherit;
    outline: none;
}

.input-group input::placeholder {
    color: rgba(255,255,255,0.4);
}

.input-group input:focus {
    border-color: var(--gold);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 0 3px rgba(245,158,11,0.1);
}

.hero-form form {
    text-align: center;
}

.hero-form .input-group {
    text-align: left;
}

/* ===== СЕКЦИИ ===== */
.section {
    padding: 70px 0;
}

.section-alt {
    background: #ffffff;
}

.section-title {
    text-align: center;
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--dark);
    letter-spacing: -0.02em;
}

.section-sub {
    text-align: center;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 40px auto;
    font-size: 1rem;
    line-height: 1.7;
}

/* ===== ВЫПЛАТЫ (pay-grid) ===== */
.pay-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 36px;
}

.pay-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.pay-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.pay-card-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    margin-bottom: 8px;
    transition: var(--transition);
}

.pay-card:hover .pay-card-icon {
    transform: scale(1.08);
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.pay-card-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
}

.pay-card-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.pay-card-sub {
    font-size: 0.83rem;
    color: var(--text-light);
    line-height: 1.4;
    margin-top: 4px;
}

/* ===== ПРЕИМУЩЕСТВА (benefits) ===== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 36px;
}

.benefit-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 22px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #dbeafe;
}

.benefit-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d97706;
    margin-bottom: 14px;
    transition: var(--transition);
}

.benefit-card:hover .benefit-card-icon {
    transform: scale(1.08);
    background: linear-gradient(135deg, #fde68a, #fcd34d);
}

.benefit-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.benefit-card p {
    font-size: 0.86rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== ТВОЙ ПУТЬ (steps) ===== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 36px;
}

.step-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
}

.step-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.84rem;
    color: var(--text-light);
    line-height: 1.6;
}

.req-cta {
    margin-top: 36px;
    padding: 0;
    background: linear-gradient(135deg, #0b1a2e, #1a2744);
    border-radius: var(--radius);
    color: white;
    overflow: hidden;
}

.req-cta-inner {
    display: flex;
    align-items: center;
    gap: 0;
}

.req-cta-content {
    flex: 1;
    padding: 44px 40px;
    text-align: left;
}

.req-cta-content p {
    font-size: 1.8rem;
    margin-bottom: 6px;
    opacity: 1;
    font-weight: 700;
    text-align: left;
}

.req-cta-image {
    flex: 0 0 45%;
    max-width: 45%;
    height: 100%;
    min-height: 360px;
    overflow: hidden;
}

.req-cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.step-form {
    max-width: 440px;
    margin: 0;
}

.step-form-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.step-form-row input {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.12);
    font-size: 0.9rem;
    background: rgba(255,255,255,0.06);
    color: white;
    transition: var(--transition);
    font-family: inherit;
    outline: none;
}

.step-form-row input::placeholder {
    color: rgba(255,255,255,0.4);
}

.step-form-row input:focus {
    border-color: var(--gold);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 0 3px rgba(245,158,11,0.1);
}

.step-form-row .btn-primary {
    padding: 14px 36px;
    font-size: 0.95rem;
    white-space: nowrap;
    width: 100%;
}

.req-cta .step-form-note {
    margin-top: 4px;
    margin-bottom: 14px;
    font-size: 0.84rem;
    opacity: 0.55;
    color: rgba(255,255,255,0.5);
    font-weight: 400;
    text-align: left;
}

.req-phone-link:hover {
    background: var(--accent-hover);
}

/* ===== ПРЕМИИ (prize) ===== */
.prize-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin: 36px 0 16px;
}

.prize-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.prize-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.prize-card-img {
    width: 100%;
    aspect-ratio: 393/310;
    overflow: hidden;
    background: #f1f5f9;
}

.prize-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.prize-card:hover .prize-card-img img {
    transform: scale(1.06);
}

.prize-card-price {
    padding: 14px 14px 4px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

.prize-card-label {
    padding: 0 14px 14px;
    font-size: 0.84rem;
    color: var(--text-light);
}

.prize-note {
    text-align: center;
    font-size: 0.84rem;
    color: var(--text-light);
    margin-top: 8px;
}

/* ===== ПОДДЕРЖКА СЕМЕЙ (support) ===== */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin-top: 36px;
}

.support-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 22px;
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.support-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

.support-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.support-card-icon {
    flex-shrink: 0;
    color: var(--primary);
    opacity: 0.8;
}

.support-card-desc {
    font-size: 0.84rem;
    color: var(--primary-light);
    font-weight: 500;
    margin-bottom: 12px;
}

.support-card-full {
    font-size: 0.86rem;
    color: var(--text-light);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin 0.3s ease;
    margin-top: 0;
}

.support-card.expanded .support-card-full {
    max-height: 800px;
    margin-top: 12px;
}

.support-card-full p {
    margin-bottom: 8px;
}

.support-card-full ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.support-card-full ul li {
    position: relative;
    padding: 5px 0 5px 18px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}

.support-card-full ul li:last-child {
    border-bottom: none;
}

.support-card-full ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.6;
}

.support-card-link {
    margin-top: auto;
    padding-top: 14px;
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.86rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.support-card-link:hover {
    color: var(--primary);
}

.support-card-link::after {
    content: '→';
    transition: var(--transition);
}

.support-card-link:hover::after {
    transform: translateX(4px);
}

/* ===== ФОРМА КРУПНАЯ ===== */
.section-form {
    background: linear-gradient(135deg, #0b1a2e 0%, #1a2744 100%);
    position: relative;
}

.form-large {
    max-width: 1000px;
    margin: 0 auto;
    background: transparent;
    border-radius: 0;
    padding: 48px 40px;
    text-align: center;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.section-form::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 50%;
    height: 150%;
    background: radial-gradient(circle, rgba(37,99,235,0.08), transparent 70%);
    pointer-events: none;
}

.form-large h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: white;
    position: relative;
    z-index: 1;
}

.form-large > p {
    opacity: 0.7;
    margin-bottom: 26px;
    color: rgba(255,255,255,0.7);
    position: relative;
    z-index: 1;
    font-size: 0.85rem;
    line-height: 1.5;
    font-weight: 400;
}

.input-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 18px;
    position: relative;
    z-index: 1;
}

.input-row input {
    flex: 1;
    min-width: 180px;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.12);
    font-size: 0.9rem;
    background: rgba(255,255,255,0.06);
    color: white;
    transition: var(--transition);
    font-family: inherit;
    outline: none;
}

.input-row input::placeholder {
    color: rgba(255,255,255,0.4);
}

.input-row input:focus {
    border-color: var(--gold);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 0 3px rgba(245,158,11,0.1);
}

.form-large button {
    background: var(--accent);
    color: white;
    font-weight: 600;
    border: none;
    width: 100%;
    padding: 15px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    font-family: inherit;
}

.form-large button:hover {
    background: var(--accent-hover);
}

.form-policy {
    margin-top: 18px;
    font-size: 0.84rem;
    opacity: 0.6;
    color: rgba(255,255,255,0.6);
    position: relative;
    z-index: 1;
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 720px;
    margin: 36px auto 0;
}

.faq-item {
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: #dbeafe;
}

.faq-question {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 0.93rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    color: var(--dark);
    transition: var(--transition);
    user-select: none;
    gap: 16px;
}

.faq-chevron {
    transition: transform 0.3s ease;
    color: var(--text-muted);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--primary-light);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    padding: 0 20px 18px 20px;
    max-height: 2000px;
}

/* ===== ПОДВАЛ ===== */
.footer {
    background: #0b1a2e;
    color: rgba(255,255,255,0.5);
    padding: 44px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
    font-size: 1.05rem;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.footer-logo span {
    color: var(--accent);
}

.footer-col h4 {
    color: white;
    font-size: 0.93rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.footer-col p {
    margin-bottom: 8px;
    font-size: 0.86rem;
}

.footer-col a {
    color: #60a5fa;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: #93c5fd;
}

.footer-col .tg-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 4px;
    border-radius: 4px;
}

.footer-bottom {
    padding: 22px 0;
    text-align: center;
    font-size: 0.84rem;
}

/* ===== МОДАЛКА ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    max-width: 800px;
    width: 92%;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 16px;
    padding: 35px 40px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3);
}

.close-modal {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    line-height: 1;
    background: none;
    border: none;
}

.close-modal:hover {
    color: var(--accent);
}

.modal-content h2 {
    color: var(--dark);
    margin-bottom: 20px;
    font-size: 1.25rem;
    padding-right: 30px;
}

.modal-content p {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.65;
    margin-bottom: 8px;
}

.modal-content p strong {
    color: var(--dark);
}

.modal-content a {
    color: var(--primary-light);
    text-decoration: underline;
}

.modal-content a:hover {
    color: var(--accent);
}

/* ===== ПЛАВАЮЩИЕ КНОПКИ ===== */
.float-buttons {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 99;
}

.float-btn {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(220,38,38,0.3);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.float-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(220,38,38,0.4);
}

.float-btn-tg {
    background: #0088cc;
    box-shadow: 0 4px 16px rgba(0,136,204,0.3);
}

.float-btn-tg:hover {
    background: #0077b3;
    box-shadow: 0 8px 24px rgba(0,136,204,0.4);
}

/* ===== TOAST ===== */
.toast-notify {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.86rem;
    z-index: 2000;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toast-notify.show {
    opacity: 1;
}

.policy-link {
    color: #60a5fa;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.policy-link:hover {
    color: #93c5fd;
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(227,30,36,0.5); }
    70% { box-shadow: 0 0 0 16px rgba(227,30,36,0); }
    100% { box-shadow: 0 0 0 0 rgba(227,30,36,0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Базовые классы анимаций */
.anim-fadein {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-fadein.visible {
    opacity: 1;
    transform: translateY(0);
}

.anim-fadein-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-fadein-scale.visible {
    opacity: 1;
    transform: scale(1);
}

.anim-fadein-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-fadein-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.anim-fadein-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-fadein-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.anim-delay-1 { transition-delay: 0.1s; }
.anim-delay-2 { transition-delay: 0.2s; }
.anim-delay-3 { transition-delay: 0.3s; }
.anim-delay-4 { transition-delay: 0.4s; }
.anim-delay-5 { transition-delay: 0.5s; }
.anim-delay-6 { transition-delay: 0.6s; }
.anim-delay-7 { transition-delay: 0.7s; }

/* Hero анимации */
.hero-content {
    animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-form {
    animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

/* Пульсация для кнопок */
.btn-primary {
    animation: pulse 2s infinite;
}

.btn-primary:hover {
    animation: none;
}

/* Плавающая анимация для карточек выплат */
.pay-card {
    animation: float 4s ease-in-out infinite;
}

.pay-card:nth-child(2) {
    animation-delay: 0.5s;
}

.pay-card:nth-child(3) {
    animation-delay: 1s;
}

.pay-card:hover {
    animation: none;
}

/* Анимация появления цифр в pay-card-value */
.pay-card-value.animated {
    animation: countUp 0.6s ease-out both;
}

/* Shimmer-эффект для заголовков секций */
.section-title {
    background: linear-gradient(90deg, var(--dark) 0%, var(--primary-light) 50%, var(--dark) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
}

/* Плавное появление hero-tags с задержкой */
.hero-tags .hero-tag {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.hero-tags .hero-tag:nth-child(1) { animation-delay: 0.6s; }
.hero-tags .hero-tag:nth-child(2) { animation-delay: 0.7s; }
.hero-tags .hero-tag:nth-child(3) { animation-delay: 0.8s; }

/* Анимация для иконок при наведении */
.pay-card:hover .pay-card-icon {
    transform: scale(1.15) rotate(-8deg);
}

.benefit-card:hover .benefit-card-icon {
    transform: scale(1.15) rotate(-8deg);
}

.req-card:hover .req-card-icon {
    transform: scale(1.15);
}

/* Плавное появление футера */
.footer {
    animation: fadeInUp 0.8s ease-out both;
}

/* ===== БУРГЕР-МЕНЮ ===== */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 110;
    position: relative;
}

.burger span {
    display: block;
    width: 22px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.burger-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-active span:nth-child(2) {
    opacity: 0;
}

.burger-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Запрет скролла при открытом меню */
.no-scroll {
    overflow: hidden;
}

/* ===== АДАПТИВ ===== */

/* Планшеты и маленькие ноутбуки: 920px-1024px */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-form {
        min-width: 0;
    }
    .pay-grid {
        gap: 16px;
    }
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .prize-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Промежуточные разрешения: 860px-920px — переключаем на мобильную версию */
@media (max-width: 920px) {
    .header-inner {
        height: auto;
        padding: 12px 0;
    }

    .burger {
        display: flex;
        width: 56px;
        height: 56px;
        padding: 10px;
    }

    .burger span {
        width: 32px;
        height: 4px;
    }

    .burger-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .burger-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        background: rgba(11, 26, 46, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        padding: 80px 24px 40px;
        z-index: 105;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s ease;
        overflow-y: auto;
    }

    .nav.nav-open {
        opacity: 1;
        pointer-events: auto;
    }

    .nav > a {
        font-size: 1.15rem;
        padding: 14px 28px;
        color: rgba(255,255,255,0.8);
        text-decoration: none;
        font-weight: 500;
        border-radius: 8px;
        transition: all 0.3s ease;
        flex-shrink: 0;
    }

    .nav > a:hover {
        color: #fff;
        background: rgba(255,255,255,0.1);
    }

    .nav-mobile-extra {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 340px;
        margin-top: auto;
        padding-top: 24px;
        border-top: 1px solid rgba(255,255,255,0.15);
        flex-shrink: 0;
    }

    .nav-phone-btn,
    .nav-email-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 16px 24px;
        border-radius: 10px;
        font-size: 1.1rem;
        font-weight: 700;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .nav-phone-btn {
        background: var(--accent);
        color: white;
    }

    .nav-phone-btn:hover {
        background: var(--accent-hover);
    }

    .nav-email-btn {
        background: #2563eb;
        color: white;
    }

    .nav-email-btn:hover {
        background: #1d4ed8;
    }

    .nav-phone-btn svg,
    .nav-email-btn svg {
        flex-shrink: 0;
    }

    .header-right {
        display: none;
    }

    .hero {
        padding: 50px 0 60px;
    }
    .hero-grid {
        flex-direction: column;
        gap: 32px;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-form {
        min-width: 0;
        width: 100%;
        padding: 24px 20px;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .section {
        padding: 50px 0;
    }
    .pay-grid {
        grid-template-columns: 1fr;
    }
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    .steps-grid {
        grid-template-columns: 1fr 1fr;
    }
    .prize-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .support-grid {
        grid-template-columns: 1fr;
    }
    .form-large {
        padding: 32px 20px;
    }
    .form-large h2 {
        font-size: 1.3rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .float-buttons {
        bottom: 16px;
        right: 16px;
    }
    .float-btn {
        width: 44px;
        height: 44px;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .btn-hero {
        width: 100%;
        justify-content: center;
    }

    /* CTA-блок с изображением */
    .req-cta-inner {
        flex-direction: column;
    }
    .req-cta-content {
        padding: 32px 24px;
    }
    .req-cta-content p {
        font-size: 1.3rem;
    }
    .req-cta-image {
        display: none;
    }
    .step-form {
        max-width: 100%;
    }
}

/* Планшеты: до 860px */
@media (max-width: 860px) {
    .header-inner {
        height: auto;
        padding: 12px 0;
    }

    .burger {
        display: flex;
        width: 56px;
        height: 56px;
        padding: 10px;
    }

    .burger span {
        width: 32px;
        height: 4px;
    }

    .burger-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .burger-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        background: rgba(11, 26, 46, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        padding: 80px 24px 40px;
        z-index: 105;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s ease;
        overflow-y: auto;
    }

    .nav.nav-open {
        opacity: 1;
        pointer-events: auto;
    }

    .nav > a {
        font-size: 1.15rem;
        padding: 14px 28px;
        color: rgba(255,255,255,0.8);
        text-decoration: none;
        font-weight: 500;
        border-radius: 8px;
        transition: all 0.3s ease;
        flex-shrink: 0;
    }

    .nav > a:hover {
        color: #fff;
        background: rgba(255,255,255,0.1);
    }

    .nav-mobile-extra {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 340px;
        margin-top: auto;
        padding-top: 24px;
        border-top: 1px solid rgba(255,255,255,0.15);
        flex-shrink: 0;
    }

    .nav-phone-btn,
    .nav-email-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 16px 24px;
        border-radius: 10px;
        font-size: 1.1rem;
        font-weight: 700;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .nav-phone-btn {
        background: var(--accent);
        color: white;
    }

    .nav-phone-btn:hover {
        background: var(--accent-hover);
    }

    .nav-email-btn {
        background: #2563eb;
        color: white;
    }

    .nav-email-btn:hover {
        background: #1d4ed8;
    }

    .nav-phone-btn svg,
    .nav-email-btn svg {
        flex-shrink: 0;
    }

    .header-right {
        display: none;
    }

    .hero {
        padding: 50px 0 60px;
    }
    .hero-grid {
        flex-direction: column;
        gap: 32px;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-form {
        min-width: 0;
        width: 100%;
        padding: 24px 20px;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .section {
        padding: 50px 0;
    }
    .pay-grid {
        grid-template-columns: 1fr;
    }
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    .steps-grid {
        grid-template-columns: 1fr 1fr;
    }
    .prize-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .support-grid {
        grid-template-columns: 1fr;
    }
    .form-large {
        padding: 32px 20px;
    }
    .form-large h2 {
        font-size: 1.3rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .float-buttons {
        bottom: 16px;
        right: 16px;
    }
    .float-btn {
        width: 44px;
        height: 44px;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .btn-hero {
        width: 100%;
        justify-content: center;
    }

    /* CTA-блок с изображением */
    .req-cta-inner {
        flex-direction: column;
    }
    .req-cta-content {
        padding: 32px 24px;
    }
    .req-cta-content p {
        font-size: 1.3rem;
    }
    .req-cta-image {
        display: none;
    }
    .step-form {
        max-width: 100%;
    }
}

/* Мобильные телефоны: до 600px */
@media (max-width: 600px) {
    /* Отключаем тяжёлую анимацию на мобильных */
    .pay-card {
        animation: none !important;
    }
    .btn-primary {
        animation: none !important;
    }
    .section-title {
        animation: none !important;
        background: none;
        -webkit-text-fill-color: var(--dark);
        background-clip: unset;
    }
    .hero::before {
        animation: none !important;
    }

    .container {
        padding: 0 16px;
    }
    .hero-content h1 {
        font-size: 1.6rem;
    }
    .hero-subtitle {
        font-size: 0.92rem;
    }
    .hero-form h3 {
        font-size: 1.1rem;
    }
    .section-title {
        font-size: 1.35rem;
    }
    .section-sub {
        font-size: 0.9rem;
        margin-bottom: 28px;
    }
    .pay-card {
        padding: 24px 18px;
    }
    .pay-card-value {
        font-size: 1.3rem;
    }
    .benefit-card {
        padding: 22px 18px;
    }
    .step-card {
        padding: 22px 18px;
    }
    .step-card h3 {
        font-size: 0.9rem;
    }
    .step-card p {
        font-size: 0.82rem;
    }
    .prize-grid {
        gap: 10px;
    }
    .prize-card-price {
        font-size: 0.95rem;
        padding: 10px 10px 2px;
    }
    .prize-card-label {
        font-size: 0.78rem;
        padding: 0 10px 10px;
    }
    .support-card {
        padding: 22px 18px;
    }
    .form-large {
        padding: 28px 18px;
        border-radius: 14px;
    }
    .form-large h2 {
        font-size: 1.15rem;
    }
    .form-large > p {
        font-size: 0.82rem;
    }
    .input-row input {
        padding: 12px 14px;
        font-size: 0.85rem;
    }
    .form-large button {
        padding: 13px;
        font-size: 0.92rem;
    }
    .faq-question {
        padding: 14px 16px;
        font-size: 0.88rem;
    }
    .faq-answer {
        font-size: 0.84rem;
    }
    .footer {
        padding: 32px 0 0;
    }
    .footer-grid {
        gap: 20px;
    }
    .footer-col h4 {
        font-size: 0.88rem;
    }
    .footer-col p {
        font-size: 0.82rem;
    }
    .float-buttons {
        bottom: 12px;
        right: 12px;
        gap: 8px;
    }
    .float-btn {
        width: 40px;
        height: 40px;
    }
    .float-btn svg {
        width: 20px;
        height: 20px;
    }
    .float-btn img {
        width: 24px !important;
        height: 24px !important;
    }
    .toast-notify {
        font-size: 0.82rem;
        padding: 10px 18px;
        bottom: 16px;
        width: calc(100% - 32px);
        text-align: center;
    }
    .modal-content {
        padding: 24px 20px;
        width: 95%;
    }
    .modal-content h2 {
        font-size: 1.05rem;
    }
    .modal-content p {
        font-size: 0.82rem;
    }
}

/* Маленькие телефоны: до 400px */
@media (max-width: 400px) {
    .container {
        padding: 0 12px;
    }
    .hero-content h1 {
        font-size: 1.35rem;
    }
    .hero-subtitle {
        font-size: 0.85rem;
    }
    .hero-form {
        padding: 20px 16px;
    }
    .hero-form h3 {
        font-size: 1rem;
    }
    .hero-form p {
        font-size: 0.8rem;
    }
    .input-group input {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    .section-title {
        font-size: 1.2rem;
    }
    .section {
        padding: 40px 0;
    }
    .pay-card {
        padding: 20px 14px;
    }
    .pay-card-value {
        font-size: 1.15rem;
    }
    .pay-card-label {
        font-size: 0.85rem;
    }
    .pay-card-sub {
        font-size: 0.78rem;
    }
    .benefit-card {
        padding: 18px 14px;
    }
    .benefit-card h3 {
        font-size: 0.88rem;
    }
    .benefit-card p {
        font-size: 0.8rem;
    }
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .step-card {
        padding: 18px 16px;
    }
    .step-number {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
    }
    .prize-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .prize-card-price {
        font-size: 0.88rem;
    }
    .prize-note {
        font-size: 0.78rem;
    }
    .support-grid {
        gap: 14px;
    }
    .support-card {
        padding: 18px 14px;
    }
    .support-card-title {
        font-size: 0.9rem;
    }
    .support-card-desc {
        font-size: 0.8rem;
    }
    .support-card-full ul li {
        font-size: 0.8rem;
        padding: 4px 0 4px 16px;
    }
    .form-large {
        padding: 24px 14px;
    }
    .form-large h2 {
        font-size: 1.05rem;
    }
    .req-cta-content {
        padding: 24px 18px;
    }
    .req-cta-content p {
        font-size: 1.1rem;
    }
    .step-form-row input {
        padding: 12px 14px;
        font-size: 0.85rem;
    }
    .step-form-row .btn-primary {
        padding: 12px 24px;
        font-size: 0.88rem;
    }
    .btn-primary {
        padding: 11px 20px;
        font-size: 0.85rem;
    }
    .btn-secondary {
        padding: 11px 20px;
        font-size: 0.85rem;
    }
    .phone-btn {
        font-size: 0.82rem;
        padding: 7px 14px;
    }
    .phone-btn svg {
        width: 16px;
        height: 16px;
    }
    .footer {
        padding: 28px 0 0;
    }
    .float-buttons {
        bottom: 10px;
        right: 10px;
        gap: 6px;
    }
    .float-btn {
        width: 36px;
        height: 36px;
    }
    .float-btn svg {
        width: 18px;
        height: 18px;
    }
    .float-btn img {
        width: 22px !important;
        height: 22px !important;
    }
}