/* Основные переменные и цвета - основаны на цветах российского флага */
:root {
    --primary: #0039A6; /* Синий */
    --primary-dark: #002776;
    --primary-light: #3F5FBA;
    --secondary: #D52B1E; /* Красный */
    --secondary-dark: #B71C1C;
    --secondary-light: #E53935;
    --accent: #FFB700; /* Золотой акцент */
    --bg-color: #FFFFFF; /* Белый - как в российском флаге */
    --bg-alt: #F5F5F5;
    --text-color: #212121;
    --text-light: #757575;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Базовые стили и сброс */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Roboto', 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

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

ul, ol {
    list-style-type: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-color);
    position: relative;
    font-weight: bold;
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 3px;
}

/* Кнопки и интерактивные элементы */
.cta-button {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: var(--box-shadow);
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.cta-large {
    font-size: 1.2rem;
    padding: 16px 32px;
}

/* Уникальные русские узоры и декоративные элементы */
.russian-pattern-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230039A6' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
                  url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D52B1E' fill-opacity='0.05'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10zm10 8c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm40 40c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
    z-index: -1;
}

.russian-pattern-divider {
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='12' viewBox='0 0 40 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 6 L10 0 L20 6 L30 0 L40 6 L40 12 L0 12 Z' fill='%230039A6' fill-opacity='0.1'/%3E%3C/svg%3E");
    margin: 2rem 0;
}

.russian-ornament {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D52B1E' fill-opacity='0.05'%3E%3Cpath d='M60 60c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10zm0 20c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10zm-20-20c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10zm40 0c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10zM60 0c5.523 0 10 4.477 10 10s-4.477 10-10 10-10-4.477-10-10S54.477 0 60 0zm0 120c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10zm-40-50c5.523 0 10 4.477 10 10s-4.477 10-10 10-10-4.477-10-10 4.477-10 10-10zm80 0c5.523 0 10 4.477 10 10s-4.477 10-10 10-10-4.477-10-10 4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.07;
    z-index: -1;
}

.bottom-divider {
    transform: rotate(180deg);
}

.top-divider {
    margin-bottom: 0;
}

/* Заголовок и навигация */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
}

.logo svg {
    margin-right: 0.5rem;
}

.logo span {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.desktop-nav ul {
    display: flex;
}

.desktop-nav li {
    margin: 0 1rem;
}

.desktop-nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.desktop-nav a:after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transition: var(--transition);
}

.desktop-nav a:hover:after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: var(--transition);
    z-index: 999;
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-nav ul {
    text-align: center;
}

.mobile-nav li {
    margin: 1.5rem 0;
}

.mobile-nav a {
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.mobile-nav-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Секция Hero */
.hero {
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-color);
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.hero h1 .highlight {
    color: var(--secondary);
}

.hero h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.hero-graphic {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    animation: float 5s ease-in-out infinite;
}

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

/* Секция Features */
.features {
    padding: 4rem 0;
    position: relative;
    background-color: var(--bg-alt);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-light);
}

/* Секция Technology */
.technology {
    padding: 4rem 0;
    background-color: var(--bg-color);
}

.tech-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.tech-content {
    flex: 1;
    max-width: 550px;
}

.tech-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.tech-content p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.tech-graphic {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
}

.tech-features {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.tech-feature {
    flex-basis: calc(33.333% - 2rem);
    padding: 1.5rem;
    background-color: var(--bg-alt);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 1rem;
}

.tech-feature h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.tech-feature p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Секция How It Works */
.how-it-works {
    padding: 4rem 0;
    position: relative;
    background-color: var(--bg-alt);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 3rem 0;
}

.step-item {
    flex-basis: calc(33.333% - 2rem);
    text-align: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.step-number {
    margin-bottom: 1.5rem;
}

.step-item h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.step-item p {
    color: var(--text-light);
}

.cta-container {
    text-align: center;
    margin-top: 2rem;
}

/* Секция FAQ */
.faq {
    padding: 4rem 0;
    background-color: var(--bg-color);
}

.faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    background-color: white;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 500;
}

.toggle-icon {
    position: relative;
    width: 16px;
    height: 16px;
}

.toggle-icon:before,
.toggle-icon:after {
    content: "";
    position: absolute;
    background-color: var(--secondary);
    transition: var(--transition);
}

.toggle-icon:before {
    top: 7px;
    left: 0;
    width: 16px;
    height: 2px;
}

.toggle-icon:after {
    top: 0;
    left: 7px;
    width: 2px;
    height: 16px;
}

.faq-item.active .toggle-icon:after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 1000px;
}

.faq-item.active .faq-question {
    background-color: var(--bg-alt);
}

/* Подвал сайта */
.footer {
    padding: 4rem 0 2rem;
    background-color: var(--bg-alt);
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-logo a {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
}

.footer-logo svg {
    margin-right: 0.5rem;
}

.footer-logo span {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.footer-nav ul {
    display: flex;
}

.footer-nav li {
    margin: 0 1rem;
}

.footer-nav a {
    color: var(--text-color);
    font-weight: 500;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-bottom p {
    color: var(--text-light);
}

/* Медиа запросы для отзывчивого дизайна */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 2rem;
    }
    
    .hero-graphic {
        justify-content: center;
    }
    
    .tech-container {
        flex-direction: column;
        text-align: center;
    }
    
    .tech-content {
        margin-bottom: 2rem;
        max-width: 100%;
    }
    
    .tech-graphic {
        justify-content: center;
    }
    
    .tech-feature {
        flex-basis: calc(50% - 2rem);
    }
    
    .step-item {
        flex-basis: calc(50% - 1rem);
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    html, body {
        font-size: 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .tech-feature {
        flex-basis: 100%;
    }
    
    .step-item {
        flex-basis: 100%;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-nav {
        margin-top: 1.5rem;
    }
    
    .footer-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-nav li {
        margin: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
}
