:root {
    /* Светлая тема */
    --primary: #1a4f8b;
    --secondary: #f4f7fa;
    --accent: #25d366;
    --text: #333333;
    --text-light: #666666;
    --border: #eeeeee;
    --bg: #ffffff;
    --card-bg: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --blob-1: rgba(26, 79, 139, 0.15);
    --blob-2: rgba(37, 211, 102, 0.15);
}

body.dark-theme {
    /* Темная тема */
    --primary: #5c9ce6;
    --secondary: #121a24;
    --accent: #20b858;
    --text: #e4e6eb;
    --text-light: #a0aab5;
    --border: #2a3441;
    --bg: #0b1118;
    --card-bg: #18222d;
    --shadow: 0 4px 20px rgba(0,0,0,0.3);
    --blob-1: rgba(92, 156, 230, 0.15);
    --blob-2: rgba(32, 184, 88, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', Arial, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h2 { text-align: center; font-size: 2.2rem; margin-bottom: 40px; color: var(--text); }

/* Header */
.header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 700; font-size: 1.4rem; color: var(--primary); }
.nav-menu { display: flex; gap: 25px; }
.nav-menu a { text-decoration: none; color: var(--text); font-weight: 500; transition: 0.2s; }
.nav-menu a:hover { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 20px; }

/* Переключатель языков */
.lang-switcher {
    display: flex;
    background: var(--border);
    border-radius: 20px;
    overflow: hidden;
}
.lang-btn {
    background: transparent;
    border: none;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: 0.3s;
}
.lang-btn.active {
    background: var(--primary);
    color: #fff;
}

/* Кнопка смены темы */
.theme-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text);
    cursor: pointer;
    transition: transform 0.2s, color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-btn:hover { transform: scale(1.1); color: var(--primary); }

/* Hero с цветовыми пятнами */
.hero {
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.color-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}
.blob-1 { width: 500px; height: 500px; background: var(--blob-1); top: -150px; left: -100px; }
.blob-2 { width: 400px; height: 400px; background: var(--blob-2); bottom: -100px; right: -50px; }

.hero-content-wrapper { position: relative; z-index: 1; }
.hero h1 { font-size: 2.8rem; margin-bottom: 20px; color: var(--text); }
.subtitle { font-size: 1.2rem; max-width: 700px; margin: 0 auto 30px; color: var(--text-light); }

/* Buttons */
.btn-primary, .btn-secondary, .btn-whatsapp {
    padding: 15px 30px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(26,79,139,0.3); }

.btn-secondary { background: var(--card-bg); color: var(--primary); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); }

.btn-whatsapp { background: var(--accent); color: #fff; width: 100%; margin-top: 20px; }
.btn-whatsapp:hover { background: #20b858; box-shadow: 0 5px 15px rgba(37,211,102,0.3); }

.center { text-align: center; margin-top: 30px; }

/* Quiz */
.quiz-section { padding: 60px 0; }
.quiz-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    max-width: 650px;
    margin: 0 auto;
    transition: background-color 0.3s, border-color 0.3s;
}

.step { display: none; }
.step.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.step-title { font-weight: 700; margin-bottom: 20px; font-size: 1.2rem; color: var(--text); }
.options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.options label {
    padding: 15px 20px;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    transition: 0.2s;
    color: var(--text);
}
.options label:hover { border-color: var(--text-light); }
.options label:has(input:checked) { border-color: var(--primary); background: rgba(26, 79, 139, 0.05); }

.quiz-nav { display: flex; gap: 15px; justify-content: flex-end; }
.result-box { text-align: center; }
.result-box h3 { font-size: 1.8rem; color: var(--primary); margin-bottom: 10px; }
.result-box p { color: var(--text-light); }

/* How it works */
.how-it-works { background: var(--secondary); padding: 80px 0; transition: background-color 0.3s; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.step-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    transition: background-color 0.3s, border-color 0.3s;
}
.step-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--border);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
    z-index: 1;
    transition: color 0.3s;
}
.step-card h3 { font-size: 1.2rem; margin-bottom: 15px; color: var(--primary); position: relative; z-index: 2; }
.step-card p { color: var(--text-light); position: relative; z-index: 2; }

/* Reviews (Горизонтальный скролл с адаптивными картинками) */
.reviews { padding: 80px 0; }
.review-slider-container { width: 100%; overflow: hidden; position: relative; }
.review-slider {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 0 30px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--border);
}
.review-slider::-webkit-scrollbar { height: 8px; }
.review-slider::-webkit-scrollbar-track { background: var(--border); border-radius: 4px; }
.review-slider::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
.review-slide {
    flex: 0 0 280px;
    width: 280px;
    height: auto;
    max-height: 550px;
    object-fit: contain; /* Картинка масштабируется без обрезки */
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    scroll-snap-align: start;
}

/* FAQ (Аккордеон) */
.faq-section { background: var(--secondary); padding: 80px 0; transition: background-color 0.3s; }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: background-color 0.3s, border-color 0.3s;
}
.faq-item summary {
    padding: 20px 25px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}
.faq-item[open] summary::after { content: '−'; transform: rotate(180deg); }
.faq-content {
    padding: 0 25px 20px;
    color: var(--text-light);
    border-top: 1px solid var(--border);
    margin-top: 5px;
    padding-top: 15px;
}

/* Плавающая кнопка "Написать" */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent);
    color: #fff;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s, background-color 0.3s;
}
.floating-btn:hover {
    background-color: #20b858;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Risks Section */
.risks-section { background: var(--secondary); padding: 80px 0; transition: background-color 0.3s; }
.risks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.risk-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.3s, background-color 0.3s, border-color 0.3s;
}
.risk-card:hover { transform: translateY(-5px); }
.risk-icon { font-size: 3rem; margin-bottom: 20px; }
.risk-card h3 { color: var(--primary); margin-bottom: 15px; font-size: 1.3rem; }
.risk-card p { color: var(--text-light); }

/* CTA Section */
.cta-section { padding: 80px 0; background: var(--bg); transition: background-color 0.3s; }
.cta-section h2 { margin-bottom: 20px; }
.cta-section p { color: var(--text-light); margin-bottom: 30px; font-size: 1.1rem; }
.cta-btn { display: inline-block; width: auto; padding: 15px 40px; font-size: 1.1rem; }

/* Footer Mini */
.footer-mini { background: #111; color: #a0a0a0; padding: 25px 0; }
.footer-mini-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-mini .copy { border-top: none; padding-top: 0; text-align: left; font-size: 0.9rem; margin: 0; }
.footer-socials { display: flex; gap: 20px; }
.footer-socials a { color: #a0a0a0; font-size: 1.5rem; transition: color 0.3s, transform 0.3s; }
.footer-socials a:hover { color: var(--accent); transform: scale(1.1); }

/* Responsive */
@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 15px; }
    .nav-menu { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .hero { padding: 60px 0; }
    .hero h1 { font-size: 2rem; }
    .blob-1, .blob-2 { width: 300px; height: 300px; }
    .quiz-card { padding: 25px 15px; }
    .review-slide { flex: 0 0 250px; }
    .floating-btn { bottom: 20px; right: 20px; width: 55px; height: 55px; font-size: 1.8rem; padding: 0; }
    .footer-mini-container { flex-direction: column; text-align: center; justify-content: center; }
}

/* Contacts Page Styles */
.hero-mini { padding: 60px 0; text-align: center; position: relative; overflow: hidden; background: var(--secondary); }
.relative-z { position: relative; z-index: 2; }
.section-padding { padding: 60px 0; }

.contacts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.contact-card { background: var(--card-bg); padding: 40px; border-radius: 15px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.contact-card h2 { text-align: left; font-size: 1.5rem; margin-bottom: 30px; color: var(--primary); }

.info-item { display: flex; gap: 20px; margin-bottom: 25px; align-items: flex-start; }
.info-item i { font-size: 1.4rem; color: var(--primary); margin-top: 5px; width: 25px; text-align: center; }
.info-item .label { font-size: 0.85rem; color: var(--text-light); font-weight: 600; margin-bottom: 2px; }
.info-item .value { font-size: 1.05rem; color: var(--text); font-weight: 500; }
.info-item .value.link { text-decoration: none; transition: 0.2s; }
.info-item .value.link:hover { color: var(--primary); }
.info-item .mono { font-family: 'Courier New', monospace; letter-spacing: 0.5px; }

.details-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.full-width { width: 100%; }

@media (max-width: 768px) {
    .contacts-grid { grid-template-columns: 1fr; }
    .contact-card { padding: 25px; }
    .details-row { grid-template-columns: 1fr; }
}

/* About Page Specific Styles */
.mission-wrapper { display: flex; align-items: center; gap: 50px; flex-wrap: wrap; }
.mission-text { flex: 1; min-width: 300px; }
.mission-text h2 { text-align: left; margin-bottom: 20px; }
.mission-stats { display: flex; gap: 30px; }
.stat-item { text-align: center; background: var(--card-bg); padding: 20px; border-radius: 12px; border: 1px solid var(--border); min-width: 140px; }
.stat-num { font-size: 2.5rem; font-weight: 800; color: var(--primary); display: block; }
.stat-item p { font-size: 0.9rem; color: var(--text-light); font-weight: 600; text-transform: uppercase; }

.alternate-bg { background: var(--secondary); transition: background-color 0.3s; }
.principles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 20px; }
.principle-card { background: var(--card-bg); padding: 40px; border-radius: 15px; border: 1px solid var(--border); text-align: center; box-shadow: var(--shadow); }
.principle-card i { font-size: 3rem; color: var(--primary); margin-bottom: 25px; }
.principle-card h3 { margin-bottom: 15px; color: var(--text); }
.principle-card p { color: var(--text-light); font-size: 0.95rem; }

@media (max-width: 768px) {
    .mission-wrapper { gap: 30px; text-align: center; }
    .mission-text h2 { text-align: center; }
    .mission-stats { justify-content: center; width: 100%; }
}