/* ==========================================
   assets/css/styles.css
   ========================================== */

/* Переменные и сброс стилей */
:root {
    --color-text: #2D3142;       
    --color-text-muted: #4F5D75; 
    --color-red: #E05A47;        
    --color-red-hover: #C24937;
    --color-bg-white: #FFFFFF;
    --color-bg-gray: #F8F9FA;    
    --color-highlight: rgba(224, 90, 71, 0.2); 
    --font-main: 'Inter', sans-serif;
    --font-brush: 'Zhi Mang Xing', cursive; 
    --transition: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); color: var(--color-text); background-color: var(--color-bg-white); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ШАПКА (HEADER) */
header {
    background-color: var(--color-bg-white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #EAEAEA;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: 700; color: var(--color-text); display: flex; align-items: center; }
.logo span { color: var(--color-red); }

.nav-menu { display: flex; gap: 30px; }
.nav-menu a { font-size: 15px; font-weight: 500; color: var(--color-text-muted); transition: var(--transition); }
.nav-menu a:hover, .nav-menu a.active { color: var(--color-red); }

.header-right { display: flex; align-items: center; gap: 20px; }
.header-btn { 
    background: transparent; border: 1px solid var(--color-red); color: var(--color-red); 
    padding: 8px 16px; border-radius: 6px; font-weight: 500; cursor: pointer; transition: var(--transition);
    font-size: 14px;
}
.header-btn:hover { background: var(--color-red); color: var(--color-bg-white); }
.header-phone { font-size: 16px; font-weight: 700; color: var(--color-text); transition: var(--transition); }
.header-phone:hover { color: var(--color-red); }

.burger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.burger div { width: 25px; height: 3px; background-color: var(--color-text); }

/* HERO РАЗДЕЛ */
.hero {
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
    background-color: var(--color-bg-white);
}

.hero-calligraphy {
    position: absolute;
    right: -5%;
    top: 10%;
    font-family: var(--font-brush);
    font-size: 400px;
    color: #F0F0F0; 
    line-height: 0.8;
    user-select: none;
    z-index: 0;
    transform: rotate(-5deg);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px; 
}

.hero h1 { 
    font-size: 44px; 
    margin-bottom: 20px; 
    font-weight: 700;
    line-height: 1.2; 
}

.hero p.subtitle { 
    font-size: 18px; 
    color: var(--color-text-muted);
    margin-bottom: 30px; 
}

.highlight { 
    position: relative;
    display: inline-block;
    font-weight: 700;
    color: var(--color-text);
}
.highlight::after {
    content: '';
    position: absolute;
    left: 0; bottom: 2px;
    width: 100%; height: 8px;
    background-color: var(--color-highlight);
    z-index: -1;
    border-radius: 4px;
}

.hero-features {
    background-color: var(--color-bg-gray);
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 35px;
    border-left: 4px solid var(--color-red);
}
.hero-features li {
    font-size: 15px;
    margin-bottom: 10px;
}
.hero-features li:last-child { margin-bottom: 0; }

/* КНОПКИ */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}
.btn-primary { 
    background-color: var(--color-red); 
    color: var(--color-bg-white); 
    box-shadow: 0 4px 15px rgba(224, 90, 71, 0.3);
}
.btn-primary:hover { background-color: var(--color-red-hover); transform: translateY(-2px); }

.btn-secondary { 
    background-color: transparent; 
    color: var(--color-text-muted); 
    border: 1px solid #D1D5DB;
}
.btn-secondary:hover { background-color: var(--color-bg-gray); color: var(--color-text); }

/* СЕКЦИИ И СЕТКИ */
.section { padding: 80px 0; background-color: var(--color-bg-white); }
.section-bg { background-color: var(--color-bg-gray); }
.section-title { text-align: center; font-size: 36px; font-weight: 700; margin-bottom: 15px; }
.section-subtitle { text-align: center; font-size: 16px; color: var(--color-text-muted); max-width: 600px; margin: 0 auto 50px; }

/* БЛОК ЦИФР (STATS) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    background-color: var(--color-bg-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    position: relative;
    z-index: 10;
}
.stat-card { text-align: center; padding: 10px; }
.stat-number { font-size: 40px; font-weight: 700; color: var(--color-red); margin-bottom: 5px; }
.stat-text { font-size: 14px; color: var(--color-text-muted); }

/* МЕТОДИКА / РЕШЕНИЯ */
.solutions-grid { display: grid; gap: 30px; margin-top: 50px; }
@media (min-width: 992px) {
    .solutions-grid { grid-template-columns: repeat(3, 1fr); }
}
.solution-card {
    background-color: var(--color-bg-white);
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    padding: 35px 30px;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.solution-card:hover { transform: translateY(-5px); border-color: var(--color-red); }
.solution-icon { font-size: 32px; margin-bottom: 20px; }

/* КАРТОЧКИ ПРЕПОДАВАТЕЛЕЙ */
.teacher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.teacher-card {
    background-color: var(--color-bg-white);
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.teacher-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(224, 90, 71, 0.08); }
.teacher-header {
    background-color: var(--color-highlight);
    padding: 30px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid rgba(224, 90, 71, 0.1);
}
.teacher-hanzi {
    font-family: var(--font-brush);
    font-size: 64px;
    color: var(--color-red);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-white);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(224, 90, 71, 0.15);
}
.teacher-title h3 { font-size: 20px; font-weight: 700; }
.teacher-title span { font-size: 14px; color: var(--color-red); }
.teacher-body { padding: 25px; flex-grow: 1; }
.teacher-facts { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px dashed #EAEAEA; }
.teacher-facts li { font-size: 14px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }

/* ПОДВАЛ (FOOTER) */
.footer {
    background-color: var(--color-text);
    color: var(--color-bg-white);
    padding: 70px 0 30px;
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}
.footer-brand .logo { color: white; margin-bottom: 15px; }
.footer-desc { color: #9CA3AF; font-size: 15px; max-width: 350px; }
.footer-nav h4, .footer-contacts h4 { font-size: 18px; margin-bottom: 20px; color: white; }
.footer-nav ul, .footer-contacts ul { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { color: #9CA3AF; font-size: 15px; }
.footer-nav a:hover { color: var(--color-red); }
.footer-label { font-size: 12px; color: #6B7280; text-transform: uppercase; }
.footer-val { color: #D1D5DB; font-size: 15px; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #9CA3AF;
}
.footer-docs a { color: #9CA3AF; margin-left: 20px; text-decoration: underline; }

/* МОДАЛЬНЫЕ ОКНА */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000; display: none; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal-window {
    background-color: var(--color-bg-white); border-radius: 16px;
    padding: 40px; max-width: 400px; width: 90%; position: relative;
    transform: translateY(20px); transition: transform 0.3s ease;
}
.modal-overlay.active .modal-window { transform: translateY(0); }
.modal-close {
    position: absolute; top: 15px; right: 15px; background: none; border: none;
    width: 32px; height: 32px; cursor: pointer; color: var(--color-text-muted);
}
.modal-close svg { width: 24px; height: 24px; fill: currentColor; }
.modal-title { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.modal-subtitle { font-size: 14px; color: var(--color-text-muted); margin-bottom: 25px; }
.quiz-input {
    width: 100%; padding: 16px; border: 1px solid #D1D5DB; border-radius: 8px;
    font-size: 15px; margin-bottom: 15px; outline: none; transition: var(--transition);
}
.quiz-policy { font-size: 11px; color: #9CA3AF; text-align: center; }

/* Адаптивность меню */
@media (max-width: 768px) {
    .header-right .header-btn { display: none; }
    .header-phone { font-size: 14px; white-space: nowrap; }
    .nav-menu {
        position: fixed;
        top: 60px; left: -100%; width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--color-bg-white);
        flex-direction: column;
        align-items: center;
        padding-top: 60px;
        gap: 40px;
        transition: left 0.4s ease;
        display: flex;
        z-index: 99;
        box-shadow: inset 0 10px 15px -10px rgba(0,0,0,0.05);
    }
    .nav-menu.active { left: 0; }
    .burger { display: flex; }
    .hero { padding: 40px 0; text-align: left; }
    .hero h1 { font-size: 32px; }
    .hero-calligraphy { display: none; }
    .footer-top { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 20px; }
}

/* ==========================================
   СТИЛИ ЧАТ-ВИДЖЕТА
   ========================================== */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chat-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-red);
    color: var(--color-bg-white);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(224, 90, 71, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    animation: chatBounce 4s infinite;
}

.chat-trigger:hover {
    background-color: var(--color-red-hover);
    transform: scale(1.05);
}

.chat-trigger svg { width: 28px; height: 28px; }

.chat-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #2D3142;
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-bg-white);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 340px;
    background-color: var(--color-bg-white);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    border: 1px solid #EAEAEA;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-widget.active .chat-window {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.chat-header {
    background-color: var(--color-red);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-admin-info { display: flex; align-items: center; gap: 12px; }

.chat-avatar {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.chat-admin-info h4 { font-size: 14px; margin: 0; }
.chat-admin-info span { font-size: 11px; opacity: 0.8; }
.chat-close { background: none; border: none; color: white; font-size: 24px; cursor: pointer; }
.chat-body { padding: 20px; max-height: 250px; overflow-y: auto; background-color: #F8F9FA; }
.chat-msg { padding: 12px 16px; border-radius: 12px; font-size: 13px; line-height: 1.5; margin-bottom: 10px; }
.chat-msg.system { background-color: var(--color-bg-white); color: var(--color-text); box-shadow: 0 2px 8px rgba(0,0,0,0.02); border-bottom-left-radius: 2px; }
.chat-msg.user { background-color: var(--color-highlight); color: var(--color-text); align-self: flex-end; border-bottom-right-radius: 2px; }
.chat-footer { padding: 15px 20px; border-top: 1px solid #EAEAEA; background-color: var(--color-bg-white); }

#chat-step-msg { display: flex; gap: 10px; }
.chat-send-btn {
    background-color: var(--color-red);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-prompt { font-size: 12px; color: var(--color-text-muted); margin-bottom: 10px; }
.chat-submit-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--color-red);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

@keyframes chatBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
/* ==========================================
   СПЕЦИФИЧЕСКИЕ СТИЛИ БЛОГА И СТАТЕЙ
   ========================================== */

.blog-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0 80px;
    align-items: start;
}

@media (min-width: 992px) {
    .blog-container {
        grid-template-columns: 1fr 350px;
    }
}

.main-article {
    background-color: var(--color-bg-white);
}

.article-breadcrumbs {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 15px;
}
.article-breadcrumbs a:hover { color: var(--color-red); }

.article-title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #EAEAEA;
}

/* Оформление самого текста статьи */
.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
}
.article-body p {
    margin-bottom: 20px;
}
.article-body h2 {
    font-size: 26px;
    margin: 40px 0 20px;
    font-weight: 700;
}
.article-body h3 {
    font-size: 20px;
    margin: 30px 0 15px;
    font-weight: 700;
}
.article-body ul, .article-body ol {
    margin-bottom: 25px;
    padding-left: 20px;
    list-style: disc; /* Добавляем стандартные маркеры списков для статей */
}
.article-body li {
    margin-bottom: 10px;
}
.article-body blockquote {
    border-left: 4px solid var(--color-red);
    background-color: var(--color-bg-gray);
    padding: 20px;
    margin: 30px 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

/* БЛОК КЛЮЧЕВОЙ БОЛИ И ЗАКРЫТИЯ (КОНВЕРТЕР) */
.conversion-box {
    background-color: #FDF3F2;
    border: 1px solid rgba(224, 90, 71, 0.2);
    border-radius: 16px;
    padding: 40px;
    margin-top: 50px;
    box-shadow: 0 10px 30px rgba(224, 90, 71, 0.05);
}
.conversion-box h3 {
    font-size: 24px;
    color: var(--color-text);
    margin-bottom: 15px;
    font-weight: 700;
}
.conversion-box p {
    font-size: 15px;
    color: var(--color-text-muted);
    margin-bottom: 25px;
}
.conversion-features {
    margin-bottom: 30px;
    list-style: none !important; /* Убираем маркеры по умолчанию в блоке конверсий */
    padding-left: 0 !important;
}
.conversion-features li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 500;
}
.conversion-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-red);
    font-weight: bold;
    font-size: 18px;
}

/* SIDEBAR & WIDGETS */
.sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.widget {
    background-color: var(--color-bg-white);
    border: 1px solid #EAEAEA;
    border-radius: 16px;
    padding: 25px;
}
.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 3px;
    background-color: var(--color-red);
    border-radius: 2px;
}
.widget-cta {
    background: linear-gradient(135deg, #1A1A1A, #2D3142);
    color: var(--color-bg-white);
    text-align: center;
    border: none;
    border-radius: 16px;
    padding: 30px 25px;
}
.widget-cta .widget-title { color: var(--color-bg-white); border: none; margin-bottom: 15px; padding: 0; }
.widget-cta .widget-title::after { display: none; }
.widget-cta p { font-size: 14px; color: #D1D5DB; margin-bottom: 20px; }
.widget-cta ul { list-style: none; padding-left: 0; }
/* ==========================================
   СТИЛИ СПИСКА СТАТЕЙ И ПАГИНАЦИИ
   ========================================== */

.blog-hero {
    padding: 60px 0 40px;
    text-align: center;
    background-color: var(--color-bg-white);
    border-bottom: 1px solid #EAEAEA;
}

.blog-layout {
    padding: 50px 0 80px;
    background-color: var(--color-bg-gray);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: var(--color-bg-white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #EAEAEA;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(224, 90, 71, 0.08);
    border-color: rgba(224, 90, 71, 0.3);
}

.article-img-wrapper {
    overflow: hidden;
    position: relative;
}

.article-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid #EAEAEA;
}

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--color-red);
    color: var(--color-bg-white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.article-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: var(--color-bg-white);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #9CA3AF;
    margin-bottom: 12px;
}

.article-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
    line-height: 1.3;
    transition: var(--transition);
}

.article-card:hover .article-title { color: var(--color-red); }

.article-excerpt {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.article-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-red);
}

.article-read-more svg { width: 16px; height: 16px; fill: currentColor; }

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: var(--color-bg-white);
    color: var(--color-text);
    font-weight: 600;
    border: 1px solid #EAEAEA;
    transition: var(--transition);
}

.page-link:hover, .page-link.active {
    background-color: var(--color-red);
    color: var(--color-bg-white);
    border-color: var(--color-red);
}

.widget-categories {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget-categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 15px;
    transition: var(--transition);
}

.widget-categories a:hover {
    color: var(--color-red);
    padding-left: 5px;
}

.category-count {
    background-color: var(--color-bg-gray);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    color: var(--color-text);
}
/* ==========================================
   СТИЛИ ДЛЯ СТРАНИЦЫ ТАРИФОВ И ТЕСТ-ДРАЙВА
   ========================================== */

/* СТРАНИЦА: ФОРМАТЫ (НОВЫЙ ТЕСТ-ДРАЙВ) */
.test-drive-banner {
    background-color: var(--color-bg-white);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    border: 1px solid #EAEAEA;
    display: flex;
    overflow: hidden;
    text-align: left;
}

.test-drive-content {
    padding: 50px;
    flex: 1;
}

.test-drive-content .badge {
    display: inline-block;
    background-color: rgba(224, 90, 71, 0.1);
    color: var(--color-red);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.test-drive-content h2 {
    font-size: 32px;
    color: var(--color-text);
    margin-bottom: 15px;
    line-height: 1.2;
}

.test-drive-content .desc {
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: 35px;
    line-height: 1.6;
}

.test-drive-steps {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.td-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.td-icon {
    width: 40px;
    height: 40px;
    background-color: var(--color-red);
    color: var(--color-bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(224, 90, 71, 0.3);
}

.td-step h4 {
    font-size: 18px;
    color: var(--color-text);
    margin-bottom: 5px;
}

.td-step p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.td-note {
    font-size: 13px;
    color: #9CA3AF;
    margin-top: 15px;
    text-align: center;
    max-width: 350px;
}

.test-drive-visual {
    background-color: var(--color-red);
    width: 35%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: var(--color-bg-white);
}

.td-kanji {
    font-family: var(--font-brush);
    font-size: 180px;
    line-height: 0.9;
    opacity: 0.2;
    position: absolute;
    right: -20px;
    bottom: -30px;
    user-select: none;
}

.td-visual-text {
    position: relative;
    z-index: 1;
    font-size: 32px;
    font-weight: 700;
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 10px;
}

/* БЛОК "ЧТО ВКЛЮЧЕНО" */
.included-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.included-card {
    background-color: var(--color-bg-white);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: var(--transition);
    text-align: left;
}

.included-card:hover {
    border-color: rgba(224, 90, 71, 0.2);
    transform: translateY(-3px);
}

.included-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.included-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
}

.included-card p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* КАРТОЧКИ ТАРИФОВ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 10;
}

.pricing-card {
    background-color: var(--color-bg-white);
    border: 1px solid #EAEAEA;
    border-radius: 16px;
    padding: 40px 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    text-align: left;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border-color: var(--color-highlight);
}

.pricing-card.popular {
    border: 2px solid var(--color-red);
    box-shadow: 0 15px 35px rgba(224, 90, 71, 0.1);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-red);
    color: var(--color-bg-white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #EAEAEA;
}

.pricing-header h3 {
    font-size: 20px;
    color: var(--color-text);
    margin-bottom: 15px;
}

.pricing-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
}

.pricing-price span {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-muted);
}

.pricing-header p {
    font-size: 14px;
    color: var(--color-text-muted);
}

.pricing-features {
    flex-grow: 1;
    margin-bottom: 30px;
    padding-left: 0;
    list-style: none;
}

.pricing-features li {
    font-size: 15px;
    color: var(--color-text);
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-red);
    font-weight: bold;
}

@media (max-width: 992px) {
    .test-drive-banner { flex-direction: column; }
    .test-drive-visual { width: 100%; height: 150px; flex-direction: row; }
    .td-visual-text { writing-mode: horizontal-tb; letter-spacing: 5px; }
    .td-kanji { font-size: 120px; right: 10px; bottom: -10px; }
    .test-drive-content { padding: 30px 20px; }
}
/* ==========================================
   СТИЛИ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ (HOME PAGE)
   ========================================== */

/* БЛОК ПРОБЛЕМ (БОЛИ) */
.problems-section {
    padding: 80px 0;
    background-color: var(--color-bg-white);
    border-bottom: 1px solid #EAEAEA;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.problem-card {
    background-color: var(--color-bg-gray);
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.problem-card:hover {
    background-color: var(--color-bg-white);
    border-color: #F8D7D3;
    box-shadow: 0 10px 30px rgba(224, 90, 71, 0.08);
    transform: translateY(-5px);
}

.problem-icon {
    width: 64px;
    height: 64px;
    background-color: var(--color-bg-white);
    border: 2px dashed #D1D5DB;
    color: var(--color-text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.problem-card:hover .problem-icon {
    border-color: var(--color-red);
    color: var(--color-red);
}

.problem-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.problem-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 15px;
}

.problem-card p {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* КАРТОЧКА УТП ШИРОКАЯ */
@media (min-width: 992px) {
    .solution-card-wide { grid-column: span 3; }
}
.solution-card-wide {
    background-color: var(--color-bg-white);
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    padding: 35px 30px;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    text-align: left;
}
.solution-card-wide:hover { transform: translateY(-5px); border-color: var(--color-red); }

/* БЛОК СЕГМЕНТАЦИИ (Для кого) */
.segment-section {
    padding: 80px 0;
    background-color: var(--color-bg-gray);
    border-top: 1px solid #EAEAEA;
    border-bottom: 1px solid #EAEAEA;
}

.segment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.segment-card {
    background-color: var(--color-bg-white);
    border-radius: 12px;
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    border: 1px solid transparent;
    text-align: left;
}

.segment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(224, 90, 71, 0.08);
    border-color: rgba(224, 90, 71, 0.3);
}

.segment-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(224, 90, 71, 0.1);
    color: var(--color-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
    font-size: 24px;
}

.segment-card:hover .segment-icon {
    background-color: var(--color-red);
    color: var(--color-bg-white);
}

.segment-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 15px;
    line-height: 1.3;
}

.segment-card p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.6;
}

.segment-btn {
    width: 100%;
    padding: 12px 0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    background-color: transparent;
    color: var(--color-red);
    border: 1px solid var(--color-red);
}

.segment-btn:hover {
    background-color: var(--color-red);
    color: var(--color-bg-white);
}

/* БЛОК "КОМУ НЕ ПОДОЙДЕТ" */
.not-for-section {
    padding: 80px 0;
    background-color: var(--color-bg-white);
}

.not-for-container {
    display: grid;
    gap: 50px;
    align-items: center;
}

@media (min-width: 992px) {
    .not-for-container {
        grid-template-columns: 1fr 1.2fr;
    }
}

.not-for-info {
    text-align: left;
}

.not-for-info h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
    line-height: 1.2;
}

.not-for-info h2 span {
    color: var(--color-red);
}

.not-for-info p {
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-strict {
    background-color: var(--color-text);
    color: var(--color-bg-white);
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.btn-strict:hover {
    background-color: var(--color-red);
    transform: translateY(-2px);
}

.not-for-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.not-for-item {
    background-color: var(--color-bg-gray);
    border-left: 4px solid var(--color-red);
    border-radius: 0 12px 12px 0;
    padding: 25px 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: var(--transition);
    text-align: left;
}

.not-for-item:hover {
    background-color: #FDF3F2;
    transform: translateX(-5px);
}

.not-for-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background-color: var(--color-red);
    color: var(--color-bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.not-for-text h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.not-for-text p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ФОРМАТЫ КАРТОЧЕК И ТАРИФОВ НА ГЛАВНОЙ */
.formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.format-card {
    background: var(--color-bg-white);
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
    text-align: left;
}
.format-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: var(--color-highlight);
}

.format-card.popular::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background-color: var(--color-red);
}

.format-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-highlight);
    color: var(--color-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 24px;
}

.format-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-text);
}
.format-card p {
    color: var(--color-text-muted);
    font-size: 15px;
    margin-bottom: 25px;
    flex-grow: 1;
}

.format-features {
    margin-bottom: 30px;
}
.format-features li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--color-text);
}
.format-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-red);
    font-weight: bold;
}

.btn-card {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--color-red);
}
.btn-card-primary { background-color: var(--color-red); color: var(--color-bg-white); }
.btn-card-primary:hover { background-color: var(--color-red-hover); }
.btn-card-outline { background-color: transparent; color: var(--color-red); }
.btn-card-outline:hover { background-color: var(--color-red); color: var(--color-bg-white); }

/* БЛОК ОТЗЫВОВ */
.reviews-section {
    padding: 80px 0;
    background-color: var(--color-bg-white);
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
}

.slider-container {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    background-color: var(--color-bg-gray);
    border: 1px solid #EAEAEA;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 50px 60px;
    position: relative;
    text-align: left;
}

.slide::before {
    content: '“';
    position: absolute;
    top: 10px;
    left: 30px;
    font-size: 120px;
    color: var(--color-highlight);
    font-family: serif;
    line-height: 1;
    z-index: 0;
    opacity: 0.5;
}

.review-content {
    position: relative;
    z-index: 1;
}

.review-text {
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 30px;
    font-style: italic;
}

.review-author-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--color-text-muted);
    color: var(--color-bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

.review-author {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
}

.review-meta {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: var(--color-bg-white);
    border: 1px solid #EAEAEA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--color-text-muted);
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.slider-arrow:hover {
    color: var(--color-red);
    border-color: var(--color-red);
    box-shadow: 0 4px 15px rgba(224, 90, 71, 0.2);
}

.slider-arrow svg { width: 24px; height: 24px; fill: currentColor; }
.arrow-prev { left: -22px; }
.arrow-next { right: -22px; }

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #D1D5DB;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--color-red);
    transform: scale(1.2);
}

/* БЛОК КВИЗА */
.quiz-section {
    background-color: var(--color-bg-white);
    padding: 80px 0;
}

.quiz-wrapper {
    background-color: var(--color-bg-gray);
    border-radius: 20px;
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
    border: 1px solid #EAEAEA;
    text-align: left;
}

@media (min-width: 992px) {
    .quiz-wrapper {
        grid-template-columns: 1fr 1.5fr;
    }
}

.quiz-info h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
    line-height: 1.2;
}

.quiz-info p {
    font-size: 16px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.quiz-container {
    background-color: var(--color-bg-white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    position: relative;
}

.quiz-progress {
    margin-bottom: 30px;
}

.quiz-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #EAEAEA;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.quiz-progress-fill {
    height: 100%;
    background-color: var(--color-red);
    width: 20%;
    transition: width 0.4s ease;
}

.quiz-progress-text {
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.quiz-step {
    display: none;
    animation: fadeIn 0.4s ease;
}
.quiz-step.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.quiz-step h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--color-text);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-option {
    cursor: pointer;
    display: block;
}

.quiz-option input { display: none; }

.option-content {
    padding: 16px 20px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    transition: var(--transition);
}

.quiz-option:hover .option-content {
    background-color: var(--color-bg-gray);
}

.quiz-option input:checked + .option-content {
    border-color: var(--color-red);
    background-color: rgba(224, 90, 71, 0.05);
    color: var(--color-red);
    box-shadow: 0 0 0 1px var(--color-red);
}

.quiz-form { display: flex; flex-direction: column; gap: 15px; }

.quiz-submit-btn { padding: 16px; font-size: 16px; width: 100%; }

.quiz-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #EAEAEA;
}

.quiz-btn-prev {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.quiz-btn-prev:hover { color: var(--color-red); }

.quiz-btn-next {
    padding: 12px 30px;
    font-size: 15px;
    margin-left: auto;
}
.quiz-btn-next:disabled {
    background-color: #D1D5DB;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.quiz-success {
    text-align: center;
    padding: 30px 0;
    animation: fadeIn 0.4s ease;
}
.quiz-success-icon {
    font-size: 48px;
    margin-bottom: 15px;
}
.quiz-success h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--color-text);
}
.quiz-success p { color: var(--color-text-muted); font-size: 15px; }

/* FAQ АККОРДЕОН */
.faq-section {
    background-color: var(--color-bg-gray);
    padding: 80px 0;
    border-top: 1px solid #EAEAEA;
}

.faq-list {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background-color: var(--color-bg-white);
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--color-highlight);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.faq-item.active {
    border-color: var(--color-red);
}

.faq-question {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 20px;
    user-select: none;
    text-align: left;
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    transition: var(--transition);
}

.faq-question:hover h3 {
    color: var(--color-red);
}

.faq-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--color-text-muted);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--color-red);
}

.faq-answer-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.faq-item.active .faq-answer-wrapper {
    grid-template-rows: 1fr;
}

.faq-answer {
    overflow: hidden;
    text-align: left;
}

.faq-answer p {
    padding: 0 30px 25px;
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* АДАПТИВ ОТЗЫВОВ И СТРУКТУРЫ НА ГЛАВНОЙ */
@media (max-width: 768px) {
    .slide { padding: 40px 25px; }
    .arrow-prev { left: 10px; }
    .arrow-next { right: 10px; }
    .slider-arrow { background-color: rgba(255,255,255,0.9); width: 36px; height: 36px; }
    
    /* Сжимаем внешние отступы всей секции квиза */
    .quiz-section {
        padding: 40px 0;
    }

    /* Уменьшаем отступы обертки и убираем огромный зазор в 50px */
    .quiz-wrapper { 
        padding: 25px 15px; 
        gap: 20px; /* Вместо 50px делаем компактный зазор */
    }

    /* Оптимизируем текстовое описание квиза на мобильных */
    .quiz-info {
        text-align: center;
    }
    .quiz-info h2 {
        font-size: 24px; /* Уменьшаем заголовок квиза (был 32px) */
        margin-bottom: 10px;
    }
    .quiz-info p {
        font-size: 14px;
        line-height: 1.5;
    }

    /* Делаем сам контейнер теста более плотным */
    .quiz-container { 
        padding: 20px 15px; /* Уменьшаем внутренние поля карточки */
    }

    /* Сжимаем прогресс-бар */
    .quiz-progress {
        margin-bottom: 20px; /* Было 30px */
    }
    .quiz-progress-bar {
        height: 6px; /* Чуть тоньше */
        margin-bottom: 8px;
    }

    /* Уменьшаем размер вопроса */
    .quiz-step h3 {
        font-size: 18px; /* Было 20px */
        margin-bottom: 15px;
        text-align: center;
    }

    /* Опции выбора (варианты ответов) */
    .quiz-options {
        gap: 8px; /* Сокращаем расстояние между вариантами (было 12px) */
    }
    .option-content {
        padding: 12px 15px; /* Существенно уменьшаем высоту кнопок (было 16px 20px) */
        font-size: 14px; /* Делаем шрифт чуть компактнее (был 15px) */
        border-radius: 6px;
    }

    /* Навигация (кнопки управления внизу квиза) */
    .quiz-nav {
        margin-top: 20px; /* Было 30px */
        padding-top: 15px; /* Было 20px */
    }
    .quiz-btn-prev {
        font-size: 14px;
    }
    .quiz-btn-next {
        padding: 10px 22px; /* Уменьшаем кнопку "Далее" (было 12px 30px) */
        font-size: 14px;
    }

    /* Стили аккордеона FAQ */
    .faq-question { padding: 20px; }
    .faq-answer p { padding: 0 20px 20px; }
    .faq-question h3 { font-size: 16px; }
}
/* ==========================================
   СТИЛИ СТРАНИЦЫ ОТЗЫВОВ И ИМИТАЦИИ ДИАЛОГОВ
   ========================================== */

/* Сетка чатов */
.chats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.chat-mockup {
    background-color: var(--color-bg-gray);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #EAEAEA;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    text-align: left;
}

.chat-header-mock {
    background-color: var(--color-bg-white);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #EAEAEA;
}

.chat-avatar-mock {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--color-bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.chat-name-mock strong {
    display: block;
    font-size: 15px;
    color: var(--color-text);
    margin-bottom: 2px;
}

.chat-name-mock span {
    display: block;
    font-size: 12px;
    color: #9CA3AF;
}

.chat-body-mock {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23e5e7eb' fill-opacity='0.4' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

.msg-mock {
    max-width: 85%;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
}

/* Входящие от учеников (Слева, Белые) */
.msg-mock.client-mock {
    background-color: var(--color-bg-white);
    color: var(--color-text);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Исходящие от школы (Справа, Цветные) */
.msg-mock.manager-mock {
    background-color: #EFF6FF; /* Легкий синий (стиль Telegram) */
    color: #1E3A8A;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 12px;
}

/* Мокап под стиль WhatsApp (зеленоватые исходящие) */
.chat-mockup.whatsapp-mock .msg-mock.manager-mock {
    background-color: #DCF8C6;
    color: #064E3B;
}

/* СЕТКА ТЕКСТОВЫХ ОТЗЫВОВ */
.reviews-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review-page-card {
    background-color: var(--color-bg-white);
    border: 1px solid #EAEAEA;
    border-radius: 16px;
    padding: 30px;
    transition: var(--transition);
    text-align: left;
}

.review-page-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: var(--color-highlight);
}

.review-page-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.review-page-card .review-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--color-red);
    color: var(--color-bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.review-author {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
}

.review-page-card .review-meta {
    font-size: 13px;
    color: var(--color-red);
    font-weight: 500;
}

.review-page-text p {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}
.review-page-text p:last-child { margin-bottom: 0; }