@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

:root {
    --primary-color: #f39c12;
    --secondary-color: #2c3e50;
    --dark-bg: #0d1218;
    --light-bg: #1a232f;
    --text-color: #ecf0f1;
    --text-muted: #bdc3c7;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Roboto', sans-serif; background-color: var(--dark-bg); color: var(--text-color); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.main-header { background-color: var(--dark-bg); padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.header-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; font-size: 0.9em; }
.support-email { color: var(--text-muted); text-decoration: none; transition: color 0.3s ease; }
.support-email:hover { color: var(--primary-color); }
.support-email i { margin-right: 8px; color: var(--primary-color); }
.main-nav { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 40px; }
.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { color: var(--text-color); text-decoration: none; font-weight: 500; padding: 10px 0; position: relative; transition: color 0.3s ease; }
.nav-links a:hover { color: var(--primary-color); }
.nav-links a.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 3px; background-color: var(--primary-color); }
.nav-buttons { display: flex; gap: 15px; }
.btn { padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: 700; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary { background-color: var(--primary-color); color: var(--dark-bg); }
.btn-primary:hover { background-color: #e67e22; transform: translateY(-2px); }
.btn-secondary { background-color: transparent; border: 1px solid var(--text-muted); color: var(--text-muted); }
.btn-secondary:hover { background-color: var(--light-bg); color: var(--text-color); }

/* Стили для переключателя языков */
.lang-switcher {
    display: flex;
    gap: 10px;
    align-items: center;
}
.lang-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9em;
    padding: 5px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.lang-link:hover {
    color: var(--text-color);
    background-color: var(--light-bg);
}
.lang-link.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
}


/* Hero Section */
.hero-section { padding: 60px 0; position: relative; overflow: hidden; }
.hero-section::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: linear-gradient(90deg, var(--dark-bg) 40%, rgba(13, 18, 24, 0.7) 60%, rgba(13, 18, 24, 0.2) 100%);
    z-index: 1;
}
.hero-container { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 2; }
.hero-content { max-width: 500px; }
.hero-content h1 { font-size: 3.5rem; font-weight: 900; margin-bottom: 20px; line-height: 1.2; }
.hero-list { list-style: none; margin-bottom: 30px; padding-left: 0; }
.hero-list li { font-size: 1.2rem; margin-bottom: 10px; display: flex; align-items: center; }
.hero-list li i { color: var(--primary-color); margin-right: 15px; font-size: 0.8em; }
.btn-large { padding: 15px 35px; font-size: 1.1rem; }
.hero-image { flex: 1; min-height: 450px; }
.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}


/* Features Section */
.features-section { background-color: var(--light-bg); padding: 80px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.feature-card { background-color: var(--dark-bg); padding: 30px; border-radius: 8px; text-align: center; border: 1px solid rgba(255, 255, 255, 0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4); }
.feature-icon { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 20px; }
.feature-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.feature-card p { color: var(--text-muted); }

/* Text Block Section */
.text-block-section {padding: 80px 0; background-color: var(--dark-bg); }
.text-block-section h2, .text-block-section h3 { text-align: center; font-size: 2.2rem; margin-bottom: 30px; color: var(--primary-color); }
.text-block-section h3 { font-size: 1.5rem; margin-top: 20px; margin-bottom: 20px; color: var(--text-color); }
.text-block-section h1 { text-align: center; font-size: 2.5rem; margin-top: 20px; margin-bottom: 20px; color: var(--text-color); }
.text-block-section p,
.text-block-section li { max-width: 800px; margin-left: auto; margin-right: auto; text-align: justify; color: var(--text-muted); font-size: 1.1rem; }
.text-block-section p { margin-bottom: 15px; }
.text-block-section a { color: var(--primary-color); font-weight: 700; text-shadow: 0 0 5px rgba(243, 156, 18, 0.4); text-decoration: none; transition: all 0.3s ease; }
.text-block-section a:hover { text-decoration: underline; filter: brightness(1.1); }
.text-block-section ul, .text-block-section ol { max-width: 750px; margin: 0 auto 25px auto; padding-left: 25px; }
.text-block-section li { margin-bottom: 12px; padding-left: 15px; }
.text-block-section ul { list-style: none; padding-left: 5px; }
.text-block-section ul li { position: relative; }
.text-block-section ul li::before { content: '■'; position: absolute; left: -15px; top: 1px; color: var(--primary-color); font-size: 0.8em; }
.text-block-section ol { list-style: none; counter-reset: custom-counter; }
.text-block-section ol li { counter-increment: custom-counter; position: relative; }
.text-block-section ol li::before { content: counter(custom-counter) "."; position: absolute; left: -25px; font-weight: 700; color: var(--primary-color); }

/* Table Section (2-COLUMN VERSION) */
.table-section { padding: 80px 0; background-color: var(--light-bg); }
.table-section h2 { text-align: center; font-size: 2.5rem; margin-bottom: 40px; color: var(--text-color); }
.table-container { max-width: 800px; margin: 0 auto; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden; }
table { width: 100%; border-collapse: collapse; background-color: var(--dark-bg); color: var(--text-color); }
th, td { padding: 20px; text-align: left; border-bottom: 1px solid var(--light-bg); }
thead { background-color: var(--secondary-color); }
th { font-size: 1.1rem; font-weight: 700; color: var(--primary-color); width: 50%; }
tbody tr { transition: background-color 0.3s ease; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background-color: var(--light-bg); }
tbody td { color: var(--text-muted); font-size: 1.1rem; }
tbody td:first-child { font-weight: 500; color: var(--text-color); }
.highlight-row { background-color: rgba(243, 156, 18, 0.1); border-left: 4px solid var(--primary-color); }
.highlight-row td { font-weight: 700; color: var(--primary-color); }

/* FAQ Section */
.faq-section { padding: 80px 0; background-color: var(--dark-bg); }
.faq-section h2 { text-align: center; font-size: 2.5rem; margin-bottom: 10px; color: var(--text-color); }
.faq-section .subtitle { text-align: center; color: var(--text-muted); margin-bottom: 40px; font-size: 1.1rem; }
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--light-bg); }
.faq-question { width: 100%; background: none; border: none; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; color: var(--text-color); font-size: 1.2rem; font-weight: 500; text-align: left; cursor: pointer; transition: color 0.3s ease; }
.faq-question:hover { color: var(--primary-color); }
.faq-question i { font-size: 1rem; transition: transform 0.3s ease; }
.faq-answer { overflow: hidden; max-height: 0; transition: max-height 0.3s ease-out, padding 0.3s ease-out; }
.faq-answer p { padding: 0 10px 20px 10px; color: var(--text-muted); line-height: 1.7; }
.faq-item.active .faq-question i { transform: rotate(180deg); color: var(--primary-color); }
.faq-item.active .faq-answer { max-height: 200px; }

/* Footer */
.main-footer { background-color: var(--light-bg); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-bottom: 40px; }
.footer-column .footer-logo { height: 40px; margin-bottom: 20px; }
.footer-column p { color: var(--text-muted); font-size: 0.9rem; }
.footer-column h4 { font-size: 1.2rem; color: var(--text-color); margin-bottom: 20px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.3s, padding-left 0.3s; }
.footer-links a:hover { color: var(--primary-color); padding-left: 5px; }
.social-links { display: flex; gap: 15px; }
.social-links a { color: var(--text-muted); font-size: 1.2rem; transition: color 0.3s, transform 0.3s; }
.social-links a:hover { color: var(--primary-color); transform: scale(1.2); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); text-align: center; padding: 20px 0; color: var(--text-muted); font-size: 0.9rem; }

/* General Styles */
strong, b {
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: 0 0 5px rgba(243, 156, 18, 0.4);
}

a.link-highlight,
a.link-highlight:visited {
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: 0 0 5px rgba(243, 156, 18, 0.4);
    text-decoration: underline;
    transition: all 0.3s ease;
}

a.link-highlight:hover {
    text-shadow: 0 0 10px rgba(243, 156, 18, 0.7);
    filter: brightness(1.1);
}

/* === Стили для страницы 404 === */
.error-page-section { display: flex; align-items: center; justify-content: center; text-align: center; padding: 100px 0; min-height: 70vh; background-color: var(--dark-bg); }
.error-content .error-code { font-size: 10rem; font-weight: 900; color: var(--primary-color); line-height: 1; text-shadow: 0 0 20px rgba(243, 156, 18, 0.3); animation: pulse 2s infinite; }
.error-content h1 { font-size: 2.8rem; font-weight: 700; color: var(--text-color); margin-top: 10px; margin-bottom: 20px; }
.error-content p { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 30px auto; }
.error-content .btn-large { padding: 15px 35px; font-size: 1.1rem; }
.error-content .btn-primary { color: #000; }
@keyframes pulse {
    0% { transform: scale(1); text-shadow: 0 0 20px rgba(243, 156, 18, 0.3); }
    50% { transform: scale(1.05); text-shadow: 0 0 30px rgba(243, 156, 18, 0.5); }
    100% { transform: scale(1); text-shadow: 0 0 20px rgba(243, 156, 18, 0.3); }
}
@media (max-width: 768px) {
    .error-content .error-code { font-size: 8rem; }
    .error-content h1 { font-size: 2.2rem; }
    .error-content p { font-size: 1rem; }
}


/* --- МОБИЛЬНАЯ АДАПТАЦИЯ --- */
@media (max-width: 992px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-image { display: none; }
    .hero-list { display: inline-block; text-align: left; margin-left: auto; margin-right: auto;}
}

@media (max-width: 768px) {
    .nav-links, .nav-buttons .btn-secondary { display: none; }
    .main-nav { justify-content: space-between; }

    /* Располагаем почту и языки на одной строке */
    .header-top { 
        flex-direction: row; 
        justify-content: space-between;
        align-items: center;
        padding-bottom: 10px; /* Возвращаем стандартный отступ */
        gap: 15px;
    }
    
    .hero-content h1 { font-size: 2.5rem; }
    .hero-list li { font-size: 1rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .about-column, .social-links { align-items: center; justify-content: center; }
    .footer-column { display: flex; flex-direction: column; align-items: center; }
    th, td {
        padding: 15px;
        font-size: 1rem;
    }
    .text-block-section p, .text-block-section li {
        font-size: 1rem;
    }
}