/* Сброс и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary: #475569;
    --accent: #f59e0b;
    --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --light: #f8fafc;
    --dark: #0f172a;
    --primary-gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gray: #64748b;
    --border: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
}

body {
    background-color: #ffffff;
    color: var(--dark);
    line-height: 1.7;
    font-size: 16px;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(30, 64, 175, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.03) 0%, transparent 20%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка - стеклянный эффект */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 18px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Убрали градиент для логотипа */
.logo-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon {
    font-size: 28px;
    /* Убрали градиент для иконки логотипа */
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    font-size: 15px;
    padding: 6px 0;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ГЕРОЙ СЕКЦИЯ - ДВЕ КОЛОНКИ */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 500px;
    height: 500px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.08) 0%, rgba(245, 158, 11, 0.08) 100%);
    z-index: 0;
    animation: morphing 15s infinite ease-in-out;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(30, 64, 175, 0.05) 100%);
    z-index: 0;
    animation: morphing 18s infinite ease-in-out reverse;
}

@keyframes morphing {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 70px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 100%;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 22px;
    color: var(--dark);
    line-height: 1.25;
    font-weight: 800;
}

/* Градиент только для текста заголовка */
.hero-title-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: var(--secondary);
    margin-bottom: 26px;
    font-weight: 500;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(30, 64, 175, 0.12);
    color: var(--primary);
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1.5px solid rgba(30, 64, 175, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
    background: var(--accent-gradient);
    border-radius: 16px;
    z-index: -1;
    opacity: 0.3;
    transform: rotate(-2deg);
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border);
    transform: rotate(1deg);
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: rotate(0deg) scale(1.02);
}

/* Кнопка - СИНИЙ ЦВЕТ */
.scanner-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--primary-gradient);
    color: white;
    padding: 16px 32px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.25);
    margin: 12px 0;
    position: relative;
    overflow: hidden;
}

.scanner-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.6s ease;
}

.scanner-button:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.35);
}

.scanner-button:hover::before {
    left: 100%;
}

.button-icon {
    font-size: 20px;
}

/* Секции с изображениями */
.section-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 40px;
}

.section-with-image.reverse {
    grid-template-columns: 1fr 1fr;
}

.section-with-image.reverse .section-image {
    order: 2;
}

.section-with-image.reverse .section-content {
    order: 1;
}

.section-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-image img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.section-image:hover img {
    transform: scale(1.02);
}

.section-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Секции */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 22px;
    font-size: 36px;
    color: var(--dark);
    font-weight: 800;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

/* Градиент только для текста заголовков секций */
.section-title-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 25%;
    width: 50%;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 17px;
    color: var(--secondary);
    max-width: 720px;
    margin: 0 auto 50px;
    font-weight: 500;
    line-height: 1.6;
}

/* Карточки */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border: 1.5px solid var(--border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary-gradient);
    transition: height 0.4s ease;
}

.card:hover::before {
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(30, 64, 175, 0.2);
}

/* ИКОНКИ - ЕСТЕСТВЕННЫЙ ЦВЕТ (полностью убрали градиент) */
.card-icon {
    font-size: 40px;
    margin-bottom: 20px;
    display: inline-block;
    /* Полностью убрали градиент */
    color: inherit;
    background: none;
    -webkit-text-fill-color: initial;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.card h3 {
    font-size: 22px;
    margin-bottom: 14px;
    color: var(--dark);
    font-weight: 700;
}

.card p {
    color: var(--secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* Фазы / пункты */
.phases-container {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 100%;
    margin: 0;
    position: relative;
}

.phase-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 32px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border: 1.5px solid var(--border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.phase-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.03) 0%, rgba(245, 158, 11, 0.03) 100%);
    transition: width 0.4s ease;
}

.phase-item:hover::before {
    width: 100%;
}

.phase-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: rgba(30, 64, 175, 0.2);
}

.phase-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 6px 15px rgba(30, 64, 175, 0.2);
    position: relative;
    z-index: 1;
}

.phase-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.phase-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark);
    font-weight: 700;
}

.phase-content p {
    color: var(--secondary);
    line-height: 1.6;
    font-size: 15px;
}

/* FAQ */
.faq-item {
    margin-bottom: 24px;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(30, 64, 175, 0.3);
}

.faq-question {
    padding: 20px 24px;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    transition: background 0.3s;
    font-size: 16px;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s, padding 0.4s;
    background: #f8fafc;
}

.faq-item.active .faq-answer {
    padding: 20px 24px 24px;
    max-height: 500px;
}

.faq-answer p {
    font-size: 15px;
    color: var(--secondary);
    line-height: 1.6;
}

/* Предупреждение */
.warning-box {
    background: rgba(239, 68, 68, 0.06);
    border: 1.5px solid rgba(239, 68, 68, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin: 40px 0 0;
    position: relative;
    overflow: hidden;
}

.warning-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--danger);
}

.warning-box h3 {
    color: var(--danger);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 17px;
    font-weight: 700;
}

.warning-box p {
    font-size: 15px;
    color: var(--secondary);
    line-height: 1.6;
}

/* Шаги */
.protection-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.protection-step {
    text-align: left;
    padding: 28px 24px;
    background: white;
    border-radius: 16px;
    border: 1.5px solid var(--border);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.protection-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.03) 0%, rgba(245, 158, 11, 0.03) 100%);
    transition: height 0.4s ease;
}

.protection-step:hover::before {
    height: 100%;
}

.protection-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: rgba(30, 64, 175, 0.2);
}

.step-number {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 16px;
    box-shadow: 0 6px 15px rgba(30, 64, 175, 0.2);
    position: relative;
    z-index: 1;
}

.protection-step h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.protection-step p {
    font-size: 15px;
    color: var(--secondary);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Футер */
footer {
    background: var(--dark);
    color: white;
    padding: 70px 0 25px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.footer-column h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 500;
}

.footer-links a:hover {
    color: white;
    transform: translateX(3px);
}

.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.disclaimer {
    background: rgba(239, 68, 68, 0.1);
    border-radius: 12px;
    padding: 24px;
    margin-top: 30px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    position: relative;
    z-index: 1;
}

.disclaimer p {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .hero-container {
        gap: 50px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-with-image {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .section-with-image.reverse .section-image {
        order: 1;
    }
    
    .section-with-image.reverse .section-content {
        order: 2;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 18px;
    }
    
    .nav-links {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 150px 0 80px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .hero h1 {
        font-size: 32px;
        text-align: center;
    }
    
    .hero p {
        font-size: 16px;
        text-align: left;
    }
    
    .info-badge {
        display: block;
        text-align: left;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .phase-item {
        flex-direction: column;
        text-align: left;
        gap: 16px;
        padding: 24px;
    }
    
    .phase-number {
        align-self: flex-start;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .card {
        padding: 24px 20px;
    }
    
    .protection-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links a:hover {
        transform: none;
    }
    
    .scanner-button {
        padding: 14px 24px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 130px 0 60px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 15px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 15px;
        margin-bottom: 40px;
    }
    
    section {
        padding: 70px 0;
    }
    
    .nav-links {
        gap: 12px;
    }
    
    .nav-links a {
        font-size: 14px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .card-icon {
        font-size: 32px;
    }
    
    .card h3 {
        font-size: 20px;
    }
    
    .phase-number {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .hero h1 {
        font-size: 24px;
    }
    
    .info-badge {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .scanner-button {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 22px;
    }
}