:root {
    --primary-color: #2c3e50;    /* тёмно-синий */
    --accent-color: #e67e22;      /* оранжевый */
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #dee2e6;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Open Sans', sans-serif; color: var(--text-dark); background: var(--white); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}
.nav-links { display: flex; gap: 25px; }
.nav-links a { font-weight: 600; font-size: 0.95rem; color: var(--text-dark); }
.nav-links a:hover { color: var(--accent-color); }
.header-contacts { text-align: right; }
.phone { font-weight: 700; color: var(--primary-color); }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Advantages */
.advantages { padding: 60px 0; background: var(--light-bg); }
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.advantage-item {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}
.advantage-item h3 { color: var(--accent-color); margin-bottom: 15px; }

/* Courses */
.courses { padding: 60px 0; }
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.course-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: 0.3s;
}
.course-card:hover { transform: translateY(-5px); }
.course-card h3 { color: var(--primary-color); margin-bottom: 10px; }

/* About */
.about-section { padding: 60px 0; background: var(--light-bg); }
.about-content { max-width: 800px; margin: 0 auto; text-align: center; }

/* Steps */
.steps { padding: 60px 0; }
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.step-item {
    text-align: center;
    padding: 20px;
    background: var(--light-bg);
    border-radius: var(--radius);
}
.step-number {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 15px;
}

/* Testimonials */
.testimonials { padding: 60px 0; background: var(--light-bg); }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.testimonial {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.testimonial img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}
.testimonial p { font-style: italic; margin-bottom: 15px; }
.testimonial-author { font-weight: 700; color: var(--accent-color); }

/* FAQ */
.faq { padding: 60px 0; }
.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}
.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-color);
}
.faq-question.active::after { content: '−'; }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: 0.3s;
    padding-left: 20px;
    color: var(--text-light);
}

/* Contact Form */
.contact-form-section { padding: 60px 0; background: var(--light-bg); }
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.contact-form h2 { text-align: center; margin-bottom: 30px; }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; margin-bottom: 5px; font-weight: 600; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
}
.contact-form textarea { min-height: 100px; }
.contact-form .btn {
    background: var(--accent-color);
    color: var(--white);
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}
.contact-form .btn:hover { background: #d35400; }

/* Footer */
footer {
    background: var(--primary-color);
    color: #bdc3c7;
    padding: 50px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 { color: var(--white); margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #bdc3c7; }
.footer-col ul li a:hover { color: var(--accent-color); }
.copyright { text-align: center; padding-top: 20px; border-top: 1px solid #7f8c8d; }

/* Order form (для страниц тем) */
.order-form {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    margin: 20px auto;
    max-width: 800px;
}
.order-form h2 { text-align: center; color: var(--primary-color); }
.order-form .form-group { margin-bottom: 15px; }
.order-form label { display: block; font-weight: 600; margin-bottom: 5px; }
.order-form input,
.order-form textarea,
.order-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}
.order-form button[type="submit"] {
    background: var(--accent-color);
    color: var(--white);
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
}

/* Mobile */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ (тема 7) ===== */

/* Блок статистики (350+, 90%+, 2 дня) */
.hero-stats {
    display: flex !important;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}
.stat-card {
    flex: 1 1 0;
    min-width: 120px;
    text-align: center;
}
.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color, #e67e22);
    line-height: 1.2;
    margin-bottom: 5px;
}
.stat-card .stat-label {
    font-size: 0.9rem;
    color: #ffffff;
    opacity: 0.9;
}

/* Блок рейтингов (Яндекс, Google, 2GIS) */
.trust-section {
    background: #ffffff;
    padding: 50px 0;
}
.trust-scroll {
    display: flex !important;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    align-items: center;
}
.trust-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    background: var(--light-bg, #f8f9fa);
    border-radius: 50px;
    transition: 0.3s;
}
.trust-badge:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg, 0 10px 25px rgba(0,0,0,0.1));
}
.trust-badge .trust-score {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color, #e67e22);
}
.trust-badge .trust-stars {
    color: #fbbf24;
    font-size: 1rem;
}
.trust-badge .trust-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light, #666666);
}

/* Кнопка "Бесплатная консультация" (btn-secondary) */
.btn-secondary {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}
.btn-secondary:hover {
    background: #ffffff;
    color: var(--primary-color, #2c3e50);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }
    .trust-scroll {
        gap: 20px;
    }
    .btn, .btn-large {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}
@media (max-width: 480px) {
    .trust-badge {
        width: 100%;
        justify-content: center;
    }
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ ВСЕХ БЛОКОВ ГЛАВНОЙ (тема 7) ===== */

/* Блок преимуществ (advantages) */
.advantages {
    padding: 60px 0;
    background: var(--light-bg, #f8f9fa);
}
.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.section-tag {
    display: inline-block;
    background: var(--accent-color, #e67e22);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}
.section-title {
    font-size: 2.2rem;
    color: var(--primary-color, #2c3e50);
    margin-bottom: 15px;
}
.section-subtitle {
    color: var(--text-light, #666);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}
.adv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.adv-card {
    background: #fff;
    padding: 30px 25px;
    border-radius: var(--radius, 8px);
    box-shadow: var(--shadow, 0 4px 6px rgba(0,0,0,0.1));
    text-align: center;
    transition: transform 0.3s;
}
.adv-card:hover {
    transform: translateY(-5px);
}
.adv-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent-color, #e67e22);
}
.adv-card h4 {
    color: var(--primary-color, #2c3e50);
    margin-bottom: 15px;
    font-size: 1.3rem;
}
.adv-card p {
    color: var(--text-light, #666);
    line-height: 1.6;
}

/* Блок тарифов (services) */
.services {
    padding: 60px 0;
    background: #fff;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.service-card {
    background: var(--light-bg, #f8f9fa);
    padding: 30px 20px;
    border-radius: var(--radius, 8px);
    text-align: center;
    border: 1px solid var(--border-color, #dee2e6);
    transition: all 0.3s;
    position: relative;
}
.service-card:hover {
    border-color: var(--accent-color, #e67e22);
    box-shadow: var(--shadow-lg, 0 10px 25px rgba(0,0,0,0.1));
}
.service-card.popular {
    border-color: var(--accent-color, #e67e22);
    background: linear-gradient(to bottom, #fff, var(--light-bg, #f8f9fa));
}
.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color, #e67e22);
    color: #fff;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}
.service-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color, #2c3e50);
    margin-bottom: 15px;
}
.service-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color, #e67e22);
    margin-bottom: 10px;
}
.service-period {
    color: var(--text-light, #666);
    font-size: 0.9rem;
    margin-bottom: 25px;
}
.service-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    text-align: left;
}
.service-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color, #dee2e6);
    display: flex;
    align-items: center;
    gap: 10px;
}
.service-list li::before {
    content: "✓";
    color: var(--accent-color, #e67e22);
    font-weight: 700;
}
.service-list li.no {
    color: #adb5bd;
}
.service-list li.no::before {
    content: "✕";
    color: #adb5bd;
}
.service-card .btn {
    width: 100%;
}

/* Блок отзывов (testimonials) */
.testimonials {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color, #2c3e50), #34495e);
    color: #fff;
}
.testimonials .section-title {
    color: #fff;
}
.testimonials .section-subtitle {
    color: rgba(255,255,255,0.9);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.testimonial-card {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: var(--radius, 8px);
    border: 1px solid rgba(255,255,255,0.2);
}
.testimonial-stars {
    color: #fbbf24;
    margin-bottom: 15px;
    font-size: 1.2rem;
}
.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #fff;
    opacity: 0.95;
}
.testimonial-author {
    font-weight: 700;
    color: var(--accent-color, #e67e22);
    font-size: 1rem;
}
.testimonials p {
    color: #fff;
    text-align: center;
    font-size: 1.1rem;
}

/* Блок FAQ */
.faq {
    padding: 60px 0;
    background: var(--light-bg, #f8f9fa);
}
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}
.faq-item {
    background: #fff;
    border-radius: var(--radius, 8px);
    margin-bottom: 15px;
    box-shadow: var(--shadow, 0 4px 6px rgba(0,0,0,0.1));
    overflow: hidden;
}
.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-color, #2c3e50);
}
.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--accent-color, #e67e22);
    font-weight: 300;
}
.faq-question.active::after {
    content: "−";
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--text-light, #666);
    padding: 0 20px;
}
.faq-answer p {
    padding-bottom: 20px;
    line-height: 1.7;
}

/* Форма (hero-form) */
.hero-form {
    background: #fff;
    padding: 35px;
    border-radius: var(--radius, 8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.hero-form h3 {
    color: var(--primary-color, #2c3e50);
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.6rem;
}
.hero-form .form-group {
    margin-bottom: 20px;
}
.hero-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-light, #666);
}
.hero-form input,
.hero-form select,
.hero-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: var(--radius, 8px);
    font-size: 1rem;
}
.hero-form input:focus,
.hero-form select:focus,
.hero-form textarea:focus {
    border-color: var(--accent-color, #e67e22);
    outline: none;
}
.hero-form .btn {
    width: 100%;
    margin-top: 10px;
}
.form-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light, #666);
    margin-top: 15px;
}

/* Кнопки */
.btn-primary {
    background: var(--accent-color, #e67e22);
    color: #fff;
    border: none;
}
.btn-primary:hover {
    background: #d35400;
}
.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-color, #e67e22);
    color: var(--accent-color, #e67e22);
}
.btn-secondary:hover {
    background: var(--accent-color, #e67e22);
    color: #fff;
}
.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}
/* Исправление отступов в hero-секции */
.hero-content p {
    margin-bottom: 30px; /* увеличиваем отступ после текста */
}
.hero-buttons {
    margin-top: 10px;    /* небольшой отступ сверху для кнопок */
}


/* ===== СТИЛИ ДЛЯ СПИСКА ТЕМ НА ГЛАВНОЙ ===== */
.topics {
    padding: 60px 0;
    background: var(--light-bg, #f8f9fa);
}
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}
.topic-card {
    background: #fff;
    padding: 25px;
    border-radius: var(--radius, 8px);
    box-shadow: var(--shadow, 0 4px 6px rgba(0,0,0,0.1));
    border-left: 4px solid var(--accent-color, #e67e22);
    transition: transform 0.3s;
}
.topic-card:hover {
    transform: translateX(5px);
}
.topic-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(230, 126, 34, 0.1);
    color: var(--accent-color, #e67e22);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}
.topic-title {
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--text-dark, #333);
}
.topic-title a {
    color: inherit;
    text-decoration: none;
}
.topic-title a:hover {
    color: var(--accent-color, #e67e22);
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ КНОПОК В HERO ===== */
@media (max-width: 768px) {
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}

/* Дополнительно: если кнопки уже есть, но наезжают, можно добавить и это */
@media (max-width: 480px) {
    .hero-buttons .btn {
        font-size: 0.9rem;
        padding: 12px 20px;
    }
}
