@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: #1e293b;
    background: var(--gradient-1);
    background-attachment: fixed;
    padding-bottom: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
}

header {
    background: var(--gradient-1);
    color: white;
    padding: 50px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.header-image-desktop {
    display: none;
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.header-image-mobile {
    display: none;
    width: 100%;
    height: auto;
    object-fit: cover;
    z-index: 0;
}

header::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: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

header h1 {
    font-size: 32px;
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

header p {
    font-size: 16px;
    opacity: 1;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-button {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 40px;
    background: var(--gradient-1);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6),
                0 0 40px rgba(139, 92, 246, 0.4),
                0 0 60px rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.8),
                0 0 60px rgba(139, 92, 246, 0.6),
                0 0 90px rgba(99, 102, 241, 0.4);
}

.header-button:active {
    transform: translateY(-1px);
}

nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 18px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

nav a {
    color: var(--primary);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    background: rgba(99, 102, 241, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--gradient-1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

nav a:hover::before {
    width: 300px;
    height: 300px;
}

nav a:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

main {
    padding: 30px 20px;
    background: #ffffff;
}

section {
    margin-bottom: 50px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    color: var(--primary);
    font-size: 28px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    font-weight: 700;
    position: relative;
    letter-spacing: -0.5px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

h3 {
    color: var(--secondary);
    font-size: 22px;
    margin: 30px 0 15px 0;
    font-weight: 600;
    letter-spacing: -0.3px;
}

h4 {
    color: var(--dark);
    font-size: 18px;
    margin: 20px 0 12px 0;
    font-weight: 600;
}

p {
    margin-bottom: 18px;
    text-align: justify;
    font-size: 16px;
    color: #475569;
    line-height: 1.8;
}

ul, ol {
    margin: 20px 0 20px 25px;
}

li {
    margin-bottom: 12px;
    font-size: 16px;
    color: #475569;
    line-height: 1.8;
    position: relative;
}

ul li::marker {
    color: var(--primary);
}

.highlight-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    padding: 25px;
    border-radius: 16px;
    margin: 25px 0;
    border: 2px solid rgba(99, 102, 241, 0.2);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-1);
}

.info-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.08) 100%);
    padding: 20px;
    border-radius: 14px;
    margin: 20px 0;
    border: 2px solid rgba(16, 185, 129, 0.3);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.info-box::before {
    content: '✓';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 28px;
    height: 28px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.info-box p, .info-box ul {
    margin-left: 45px;
}

.warning-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
    padding: 20px;
    border-radius: 14px;
    margin: 20px 0;
    border: 2px solid rgba(245, 158, 11, 0.3);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.warning-box::before {
    content: '⚠';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 28px;
    height: 28px;
    background: var(--warning);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.warning-box p, .warning-box ul {
    margin-left: 45px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 25px 0;
    font-size: 14px;
    overflow-x: auto;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

table thead {
    background: var(--gradient-1);
    color: white;
}

table thead th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table tbody td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
}

table tbody tr {
    transition: all 0.2s;
}

table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
    transform: scale(1.01);
}

table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table {
    display: block;
    overflow-x: auto;
    margin: 25px 0;
}

.comparison-table table {
    min-width: 500px;
}

.steps-list {
    counter-reset: step-counter;
    list-style: none;
    margin-left: 0;
}

.steps-list li {
    counter-increment: step-counter;
    margin-bottom: 20px;
    padding: 20px 20px 20px 70px;
    position: relative;
    background: var(--light);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.steps-list li:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--secondary);
}

.steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-1);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: var(--shadow-md);
}

.tag {
    display: inline-block;
    background: var(--gradient-1);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin: 3px;
    box-shadow: var(--shadow-sm);
}

footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-1);
}

footer p {
    text-align: center;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
    color: #cbd5e1;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
    margin: 40px 0;
    position: relative;
}

.section-divider::after {
    content: '◆';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 0 15px;
    color: var(--primary);
    font-size: 12px;
}

/* Плавная прокрутка */
@media (prefers-reduced-motion: no-preference) {
    * {
        scroll-behavior: smooth;
    }
}

/* Планшеты (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .header-image-desktop {
        display: none !important;
    }

    .header-image-mobile {
        display: block !important;
    }

    nav {
        display: none !important;
    }

    header {
        padding: 0;
        height: 100vh;
        min-height: 100vh;
        background: var(--gradient-1);
        position: relative;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        overflow: hidden;
    }

    .header-image-mobile {
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
    }

    header h1 {
        position: absolute !important;
        width: 100% !important;
        padding: 0 20px !important;
        z-index: 2 !important;
        text-align: center !important;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
    }

    header p {
        position: absolute !important;
        width: 100% !important;
        padding: 0 20px !important;
        z-index: 2 !important;
        text-align: center !important;
        top: 50%;
        transform: translateY(20px);
        margin: 0;
    }
}

/* Десктопная версия - показываем изображение перед заголовком */
@media (min-width: 769px) {
    .header-image-desktop {
        display: block;
        max-width: 600px;
        margin: 0 auto 20px;
        position: relative;
    }

    .header-image-mobile {
        display: none !important;
    }

    header {
        background: var(--gradient-1) !important;
        position: relative;
    }

    .header-button {
        position: absolute !important;
        left: calc(50% - 150px) !important;
        top: 35% !important;
        transform: translateX(-50%) !important;
        margin-top: 0 !important;
        z-index: 3 !important;
    }
}

/* Мобильная версия - смартфоны */
@media (max-width: 480px) {
    .header-image-desktop {
        display: none !important;
    }

    .header-image-mobile {
        display: block !important;
    }

    nav {
        display: none !important;
    }

    header {
        padding: 0;
        height: 100vh;
        min-height: 100vh;
        background: var(--gradient-1);
        position: relative;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        overflow: hidden;
    }

    .header-image-mobile {
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
    }

    header h1 {
        position: absolute !important;
        width: 100% !important;
        padding: 0 20px !important;
        z-index: 2 !important;
        text-align: center !important;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
    }

    header p {
        position: absolute !important;
        width: 100% !important;
        padding: 0 20px !important;
        z-index: 2 !important;
        text-align: center !important;
        top: 50%;
        transform: translateY(20px);
        margin: 0;
        color: rgba(255, 255, 255, 0.95) !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    }

    .header-button {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, 60px) !important;
        z-index: 2 !important;
        margin-top: 0 !important;
        padding: 12px 30px !important;
        font-size: 16px !important;
    }
}

/* Планшеты */
@media (min-width: 481px) and (max-width: 768px) {
    .header-image-desktop {
        display: none !important;
    }

    nav {
        display: none !important;
    }

    header {
        padding: 0;
        height: 100vh;
        min-height: 100vh;
        background: var(--gradient-1);
        position: relative;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        overflow: hidden;
    }

    .header-image-mobile {
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
    }

    header h1 {
        position: absolute !important;
        width: 100% !important;
        padding: 0 20px !important;
        z-index: 2 !important;
        text-align: center !important;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
    }

    header p {
        position: absolute !important;
        width: 100% !important;
        padding: 0 20px !important;
        z-index: 2 !important;
        text-align: center !important;
        top: 50%;
        transform: translateY(20px);
        margin: 0;
        color: rgba(255, 255, 255, 0.95) !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    }

    .header-button {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, 60px) !important;
        z-index: 2 !important;
        margin-top: 0 !important;
        padding: 14px 35px !important;
        font-size: 17px !important;
    }

    header::before {
        background: rgba(0, 0, 0, 0.3) !important;
        opacity: 0.6;
    }

    header h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    h4 {
        font-size: 17px;
    }

    p, li {
        font-size: 15px;
    }

    nav ul {
        flex-direction: column;
    }

    nav a {
        text-align: center;
        width: 100%;
    }

    main {
        padding: 20px 15px;
    }

    .highlight-box, .info-box, .warning-box {
        padding: 18px;
    }

    .steps-list li {
        padding: 15px 15px 15px 60px;
    }

    .steps-list li::before {
        width: 35px;
        height: 35px;
        font-size: 14px;
        left: 15px;
    }
}

/* Дополнительные эффекты */
section {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Улучшенные ссылки */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--secondary);
}

