/* Базовые сбросы */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #f5f7fa;
    width: 100%;
    position: relative;
}

/* ===== БАЗОВЫЕ СБРОСЫ И ПЕРЕМЕННЫЕ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-main: #f5f7fa;        /* основной фон - мягкий серо-голубой */
    --bg-white: #ffffff;
    --bg-light-blue: #f0f3f7;   /* дополнительный серо-голубой для блоков */
    --text-dark: #222222;
    --text-light: #555555;
    --accent-red: #333333;      /* новый красный как вы просили */
    --accent-red-light: #fef0f3;
    --accent-green: #2ecc71;
    --accent-green-light: #f0fff4;
    --border-light: #e0e4e9;
    --shadow-sm: 0 2px 12px rgba(0,0,0,0.04);
    --shadow-hover: 0 15px 30px rgba(233, 74, 117, 0.08);
    --border-radius-card: 16px;   /* больше скругление как на TopQuiz */
    --border-radius-btn: 40px;    /* сильно скругленные кнопки */
    --border-radius-block: 20px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-main);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ШАПКА ===== */
.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo-link {
    display: block;
    line-height: 1;
}

.logo-main {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-red);
    letter-spacing: 1px;
    text-decoration: none;
    background: linear-gradient(135deg, #222 0%, #a71515 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-sub {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 400;
    letter-spacing: 1.5px;
}

.main-nav ul {
        display: flex;
        justify-content: center;
        gap: 40px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

.main-nav a {
        color: #333333;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s;
        white-space: nowrap;
    }

.header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

.main-nav {
        flex: 1;
        margin: 0 30px;
    }

.main-nav a:hover {
        color: #ce1e21;
    }

.main-nav a.active {
        color: #222;
        border-bottom: 2px solid #222;
    }

.header-actions .btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 20px;
    font-size: 0.9rem;
    white-space: nowrap;
    width: auto;
    background: transparent;
    color: #ffffff;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
    height: 36px;
    line-height: 1;
    background-color: #ce1e21;
}

.header-actions .btn-small:hover {
    background: #333333;
    color: #ffffff;
    transform: translateY(-1px);
}

.header-actions {
        flex-shrink: 0;
    }

/* ===== ОСНОВНЫЕ КНОПКИ ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--bg-white);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--border-radius-btn);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    color: #420a0a ;
    border-color: #420a0a ;
    background: var(--bg-white);
    transform: translateY(-3px);
    
}

.btn:active {
    transform: translateY(-1px);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
    display: block;
    margin: 0 auto;
}

.btn-large {
    padding: 16px 42px;
    font-size: 1.2rem;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    display: block;
    background-color: #333333;
    color: #ffffff;

}

/* Специальные кнопки */
.btn-secondary {
    background: var(--bg-white);
    color: #1b0505;
    border-color: #ffffff;
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: #ffffff;
    color: #420a0a;
    border-color: #420a0a;
}

/* ===== ЗАГОЛОВКИ С ГРАДИЕНТОМ ===== */
.gradient-heading {
    color: #444444;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.3px;
    text-align: center;
    margin-bottom: 30px;
}

h1.gradient-heading {
    font-size: 3.2rem;
    line-height: 1.2;
}

h2.gradient-heading {
    font-size: 2.2rem;
    margin-bottom: 30px;
}

h3.gradient-heading {
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
    color: #333333;
    background-clip: text;
}

/* ===== ГЛАВНАЯ СТРАНИЦА ===== */
.hero {
    text-align: center;
    padding: 0;
    transition: all 0.3s ease;
    background-color: #D8D8D8;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #444444;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
    padding: 30px 0 30px 0;
}

.hero-image {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-image img {
    max-height: 300px;
    max-width: 100%;
    vertical-align: bottom
}

/* Плавные переходы между блоками */
section {
    transition: all 0.3s ease;
    margin-bottom: 40px;
    scroll-margin-top: 80px; /* для плавной навигации по якорям */
}

section:hover {
    transform: translateY(-2px);
}

/* Улучшенные тени для блоков */
.info-content,
.consultation-block,
.faq-list,
.test-card,
.review-card,
.marathon-review-form,
.result-profile-row,
.result-info-block,
.result-spheres,
.result-personalized,
.result-trigger {
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.info-content:hover,
.consultation-block:hover,
.faq-list:hover,
.test-card:hover,
.review-card:hover,
.marathon-review-form:hover,
.result-profile-row:hover,
.result-info-block:hover,
.result-spheres:hover,
.result-personalized:hover,
.result-trigger:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

/* Плавное появление элементов */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Анимация для карточек тестов */
.test-card {
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: calc(var(--card-index, 0) * 0.1s);
}

/* Анимация для FAQ */
.faq-item {
    animation: fadeInUp 0.4s ease forwards;
    animation-delay: calc(var(--faq-index, 0) * 0.05s);
}

/* Анимация для отзывов */
.review-card {
    animation: fadeInUp 0.4s ease forwards;
    animation-delay: calc(var(--review-index, 0) * 0.05s);
}

/* Плавный скролл */
html {
    scroll-behavior: smooth;
}

/* Улучшенные фокус-стили для доступности */
.btn:focus,
.scale-btn:focus,
.faq-question:focus,
.spoiler-header:focus {
    outline: 2px solid var(--accent-red);
    outline-offset: 2px;
}

/* Убираем голубое свечение (tap highlight) на мобильных устройствах */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    .btn:focus,
    .scale-btn:focus,
    .faq-question:focus,
    .spoiler-header:focus,
    .test-switch-btn:focus,
    .carousel-arrow:focus,
    .read-more-btn:focus {
        outline: none;
    }
    
    /* Убираем стандартное выделение при нажатии на кнопки и ссылки */
    .btn,
    .scale-btn,
    .faq-question,
    .spoiler-header,
    .test-switch-btn,
    .carousel-arrow,
    .read-more-btn,
    .main-nav a {
        -webkit-tap-highlight-color: transparent;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
}

/* Улучшенные hover-эффекты для мобильных */
@media (hover: hover) and (pointer: fine) {
    .test-card:hover,
    .review-card:hover,
    .btn:hover {
        transform: translateY(-3px);
    }
}

/* Для тач-устройств */
@media (hover: none) and (pointer: coarse) {
    .test-card:active,
    .review-card:active,
    .btn:active {
        transform: scale(0.98);
    }
}

.result-header h1 {
    font-size: 2.5rem; /* меньший размер */
    margin-bottom: 15px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #222 0%, var(--accent-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Мобильная версия для hero */
@media (max-width: 768px) {
    .hero {
        padding: 30px 0 0 0;
    }
    
    .hero h1 {
        font-size: 2.5rem; /* Увеличили для мобильных */
        line-height: 1.2;
    }
    
    .hero-description {
        padding: 15px;
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .hero-description p {
        margin-bottom: 10px;
    }
    
    .hero-description p:last-child {
        margin-bottom: 0;
    }
}

.hero-description {
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    background: var(--bg-light-blue);
    padding: 30px 40px;
    border-radius: var(--border-radius-block);
    border: 1px solid var(--border-light);
}

.hero-description p {
    margin-bottom: 20px;
}

.hero-description p:last-child {
    margin-bottom: 0;
}

.hero-description .highlight {
    background: var(--accent-red-light);
    padding: 2px 10px;
    border-radius: 30px;
    color: var(--accent-red);
    font-weight: 600;
}

/* Карточки тестов */
.tests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Карусель для тестов на мобильных - удалена, заменена на переключатель */
@media (max-width: 768px) {
    .tests-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Для планшетов и больших телефонов - обычная карусель */
@media (min-width: 769px) and (max-width: 1024px) {
    .tests-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


.test-card {
    background: var(--bg-white);
    padding: 0 25px 25px 25px; /* равные отступы снизу и по бокам */
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Улучшаем отступы внутри карточки теста */
.test-card h2 {
    margin-bottom: 15px;
    font-size: 1.6rem;
    color: #333333;
    line-height: 1.3;
    padding-top: 10px; /* добавляем отступ сверху для заголовка */
    text-align: center; /* центрируем заголовок */
}

.test-description-short {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
    flex-grow: 1;
    padding: 0 15px; /* увеличиваем отступы по бокам для текста */
    text-align: center; /* центрируем текст описания */
}

.test-card .btn {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    width: 50%; /* ширина 50% как просили */
    margin: 0 auto; /* центрируем кнопку */
    margin-top: auto;
    margin-bottom: 15px; /* добавляем отступ после кнопки */
    border-radius: var(--border-radius-btn);
    text-align: center; /* центрируем текст кнопки */
    padding: 12px 20px; /* добавляем отступы внутри кнопки */
    min-width: 150px; /* минимальная ширина кнопки */
    max-width: 200px; /* максимальная ширина кнопки */
}


.test-card-image img {
    width: 100%;
    height: 100%;
    
    object-position: center;
    transition: transform 0.3s;
}

/* Красная полоска сверху с анимацией */
.test-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 4px;
    background: var(--accent-red);
    transition: width 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), left 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
    transform: translateX(-50%);
    z-index: 10; /* поверх картинки */
}

.test-card:hover::before {
    width: 100%;
    left: 50%;
}

.test-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.test-badge {
    display: inline-block;
    background: #333333;
    color: #ffffff;
    font-size: 0.8rem;
    padding: 5px 14px;
    border-radius: 30px;
    margin-bottom: 18px;
    font-weight: 600;
    align-self: flex-start;
}

.test-card h2 {
    margin-bottom: 15px;
    font-size: 1.6rem;
    color: #333333;
    line-height: 1.3;
}

.test-description-short {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
    flex-grow: 1;
}

.test-meta {
    display: flex;
    justify-content: center; /* центрируем по горизонтали */
    gap: 20px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: var(--text-light);
    border-top: 1px dashed var(--border-light);
    border-bottom: 1px dashed var(--border-light);
    padding: 15px 0;
}

.test-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Кнопка "Пройти тест" на главной - все на одном уровне */
.test-card .btn {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    width: 100%;
    margin-top: auto;
    border-radius: var(--border-radius-btn);
    text-align: center; /* центрируем текст кнопки */
}

@media (max-width: 768px) {
    .test-card .btn {
        background: #333333 !important;
        color: white !important;
        border: 1px solid #333333 !important;
    }
}

.test-card .btn:hover {
    color: #333333;
    border-color: #333333;
    background: transparent;
}

/* Блок с консультацией */
.consultation-block {
    background: var(--bg-white);
    padding: 40px 30px 40px 30px; /* равные отступы сверху и снизу */
    border-radius: var(--border-radius-block);
    margin: 20px 0 30px;
    text-align: center;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid #ce1e21;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* Блок "пока нет отзывов" */
.no-reviews-message {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-white);
    border-radius: var(--border-radius-block);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    margin: 30px 0;
}

.no-reviews-message h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333333;
    background-clip: text;
}

.no-reviews-message p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.no-reviews-message .btn {
    background: #333333;
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: var(--border-radius-btn);
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
}

.no-reviews-message .btn:hover {
    background: #333333;
    color: white;
}

.consultation-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.consultation-content h3 {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #222 0%, var(--accent-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex: 2;
    min-width: 300px;
}

.consultation-content p {
    color: var(--text-light);
    flex: 3;
    min-width: 300px;
    margin: 0;
    font-size: 1rem;
}

.consultation-content .btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 12px 25px;
    background: var(--accent-red);
    color: white;
    border: none;
    width: auto;
    min-width: 200px;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

.consultation-content .btn:hover {
    background: #333333;
    color: white;
}

/* Информационный блок */
.info-block {
    margin: 30px 0 50px;
    padding: 20px 0;
}

.info-content {
    margin: 0 auto;
    background: var(--bg-white);
    padding: 35px 40px;
    border-radius: var(--border-radius-block);
    border-left: 4px solid #ce1e21;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.info-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-left-color: #333333;
}

.info-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
}

.info-content p:last-child {
    margin-bottom: 0;
}

.info-content strong {
    color: var(--accent-red);
    font-weight: 700;
}

.consultation-block h3 {
    font-size: 1.8rem;
    color: #333333;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
    margin-bottom: 10px;
}

.consultation-block h3:last-of-type {
    display: none; /* Скрываем второй заголовок "Регулярный менеджмент" */
}

.consultation-block p {
    color: var(--text-light);
    max-width: 1000px;
    margin: 0 auto 30px;
    margin-top: 20px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.consultation-block .btn {
    display: inline-block;
    background: #333333;
    color: white;
    border: none;
    border-radius: var(--border-radius-btn);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    
    transition: background-image 0.3s ease,
                box-shadow 0.3s ease,
                transform 0.2s ease;
                
    box-shadow: 0 5px 15px rgba(0,0,0,0);
    transform: translateY(0);
    background-image: none;
}

.consultation-block .btn:hover {
    background: #333333;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -5px rgba(57, 34, 34, 0.5);
}

/* ===== БЛОК ОТЗЫВОВ ===== */
.reviews-section {
    padding: 0px 0 0px;
}

.reviews-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #444444;
    background-clip: text;
}

.reviews-section .subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.15rem;
}

.reviews-carousel {
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
    padding: 10px 0;
}

.reviews-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 5px 20px;
    cursor: grab;
    justify-content: space-evenly
}

.reviews-track:active {
    cursor: grabbing;
}

.reviews-track::-webkit-scrollbar {
    display: none;
}

.reviews-track::-webkit-scrollbar-track {
    background: var(--border-light);
    border-radius: 10px;
}

.reviews-track::-webkit-scrollbar-thumb {
    background: var(--accent-red);
    border-radius: 10px;
}

.review-card {
    min-width: 340px;
    max-width: 340px;
    background: var(--bg-white);
    padding: 25px 25px 20px; /* верх, бока, низ */
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    flex-shrink: 0;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    height: auto; /* убираем фиксированную высоту */
    min-height: 380px; /* минимальная, но может растягиваться */
}

.review-text-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.review-badge {
    display: inline-block;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 15px;
    font-weight: 600;
    width: fit-content;
    flex-shrink: 0; /* не сжимается */
}

.review-badge.testimonial {
    background: #333333;
    color: #ffffff;
}

.review-badge.marathon {
    background: #333333;
    color: #ffffff;
}

.review-text {
    background-color: #f5f7fa;
    padding: 10px 10px 25px 10px;
    border-radius: 16px;
    color: var(--text-dark);
    line-height: 1.6;
    font-style: italic;
    font-size: 1rem;
    max-height: 220px; /* максимальная высота, но может быть меньше */
    overflow-y: auto;
    margin-bottom: 15px;
    flex: 1; /* занимает доступное пространство */
    min-height: 120px; /* но не меньше */
    scrollbar-width: thin;
    scrollbar-color: #bebebe;
}

.review-text.expanded {
    max-height: 400px;
    overflow-y: auto;
}

.review-text::-webkit-scrollbar {
    width: 6px;
}

.review-text::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 10px;
}

.review-text::-webkit-scrollbar-thumb {
    background: var(--accent-red);
    border-radius: 10px;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--accent-red);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 0;
    text-decoration: underline;
    text-decoration-style: dotted;
    align-self: flex-start;
}

.read-more-btn:hover {
    color: #420a0a;
}

.review-author {
    color: #333333;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 1rem;
    line-height: 1.3;
}

.review-footer {
    margin-top: 0;
    padding-top: 12px;
    border-top: 1px dashed var(--border-light);
    flex-shrink: 0; /* не сжимается */
}

.review-date {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.3;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.carousel-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    border-color: #420a0a;
    color: #420a0a;
    transform: translateY(-2px);
}

/* Форма добавления отзыва после практикума */
.marathon-review-form {
    background: var(--bg-light-blue);
    padding: 40px;
    border-radius: var(--border-radius-block);
    margin: 30px 0 20px;
    border: 1px solid var(--border-light);
    position: relative;
}

.marathon-review-form h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-align: center;  /* добавляем */
    color: #444444;
    background-clip: text;
}

.marathon-review-form p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.1rem;
    text-align: center;        /* центрируем текст */
    max-width: 600px;          /* максимальная ширина */
    margin-left: auto;         /* автоотступ слева */
    margin-right: auto;        /* автоотступ справа */
}

.form-group {
    margin-bottom: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .form-group input,
    .form-group textarea,
    .form-group select {
        max-width: 100%;
    }

    .consultation-block .btn {
        max-width: 95%;
    }

}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-btn);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-red);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-submit {
    background: #333333;;  /* сплошной цвет */
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: var(--border-radius-btn);
    font-weight: 600;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    width: fit-content;
    
    /* Плавный переход только для нужных свойств */
    transition: background-color 0.3s ease,
                box-shadow 0.3s ease,
                letter-spacing 0.2s ease;
                
    box-shadow: 0 5px 15px rgba(0,0,0,0);
    letter-spacing: 0px;
    transform: translateY(0);
    
    /* Фикс для градиента */
    background-size: 100% 100%;
    background-image: none; /* убираем градиент по умолчанию */
}

.form-submit:hover {
    background: #333333;  /* просто чуть светлее */
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(57, 34, 34, 0.5);
    transform: translateY(-1px);
}

/* Сообщение об успешной отправке отзыва */
.review-success-message {
    display: none;
    text-align: center;
    padding: 40px;
    background: var(--bg-white);
    border-radius: var(--border-radius-block);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.review-success-message h4 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333333;
    background-clip: text;
}

.review-success-message p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.review-success-message .btn {
    background: #333333;
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: var(--border-radius-btn);
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    margin-top: 20px;
}

.review-success-message .btn:hover {
    background: #333333;
    color: white;
}

/* Скрываем форму после отправки */
.marathon-review-form.hidden {
    display: none;
}

/* Показываем сообщение об успехе */
.review-success-message.visible {
    display: block;
}


/* Красная плашка перед футером */
.cta-block {
    background: #333333;
    padding: 60px 0;
    margin: 40px 0 0;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    color: white;
}

.cta-content h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: white;
}

@media (max-width: 768px) {
    .cta-content h3 {
        font-size: 2.2rem; /* одинаковый размер с десктопом */
    }
}

.cta-content p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    font-size: 1.15rem;
}

.cta-content .btn {
    background: white;
    border: 2px solid white;
    color: #2f2626;
    font-weight: 600;
    padding: 15px 45px;
    border-radius: var(--border-radius-btn);
}

.cta-content .btn:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ===== СТРАНИЦА ТЕСТА ===== */
.welcome-screen {
    max-width: 800px;
    margin: 40px auto;
    padding: 15px 45px 45px 45px;
    background: var(--bg-white);
    border-radius: var(--border-radius-block);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.welcome-screen h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: #333333;
    background-clip: text;
}

.test-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.test-description p {
    margin-bottom: 15px;
    margin-top: 15px;
    padding: 0px 10px 0px 10px;
}

.test-description p:last-child {
    margin-bottom: 0;
}

.welcome-screen .test-instructions {
    background: var(--bg-light-blue);
    padding: 30px;
    border-radius: var(--border-radius-block);
    margin-bottom: 30px;
    border-left: 4px solid var(--accent-red);
}

.welcome-screen .test-instructions h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--text-dark);
}

.welcome-screen .instructions-spoiler {
    display: block;
}

.welcome-screen .scale-description {
    margin: 20px 0;
}

.scale-description {
    margin: 20px 0;
}

.welcome-screen .scale-item {
    margin-bottom: 8px;
    color: var(--text-light);
}

.scale-item {
    margin-bottom: 8px;
    color: var(--text-light);
}

.scale-number {
    display: inline-block;
    width: 25px;
    height: 25px;
    background: #333333;;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 25px;
    font-size: 0.85rem;
    margin-right: 10px;
}

.test-progress {
    margin-bottom: 25px;
}



.welcome-screen .scale-number {
    display: inline-block;
    width: 25px;
    height: 25px;
    background: var(--accent-red);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 25px;
    font-size: 0.85rem;
    margin-right: 10px;
}

.test-instructions {
    background: var(--bg-light-blue);
    padding: 30px;
    border-radius: var(--border-radius-block);
    margin-bottom: 30px;
    border-left: 4px solid var(--accent-red);
}

.test-instructions h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--text-dark);
}

.test-instructions p {
    color: var(--text-light);
    line-height: 1.8;
    white-space: pre-line;
}

/* Экран теста */
.test-screen {
    max-width: 800px;
    margin: 20px auto 40px;
}

.test-header-title {
    text-align: center;
    margin-bottom: 25px;
}

.test-instructions-wrapper {
    background: var(--bg-white);
    border-radius: var(--border-radius-block);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.test-instructions-header:hover {
    background: var(--bg-light-blue);
}

.test-instructions-wrapper:not(.collapsed) .test-instructions-header {
    border-bottom-color: var(--border-light);
}

.test-instructions-header h3 {
    font-size: 1.1rem;
    color: #333333;
    margin: 0;
}

@media (max-width: 768px) {
    .test-instructions-header h3 {
        font-size: 0.90rem; /* уменьшили для мобильных */
    }
}

.instruction-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333333;
    font-size: 0.85rem;
    font-weight: 500;
}

.test-instructions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid transparent;
    transition: background 0.2s;
}

.test-instructions-content {
    padding: 0 25px;
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
}

.instruction-hint .toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.test-instructions-wrapper.collapsed .instruction-hint .toggle-icon {
    transform: rotate(180deg);
}

.test-instructions-wrapper.collapsed .test-instructions-content {
    max-height: 0;
    padding: 0 25px;
}

.instructions-text {
    padding: 20px 0 25px;
}

.instructions-text p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
}

.test-instructions-wrapper.collapsed {
    box-shadow: none;
}

.hidden {
    display: none !important;
}

#question-container {
    min-height: 300px;
}

.test-header {
    margin-bottom: 30px;
}

.progress-info {
    text-align: right;
    color: var(--text-light);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.progress-bar {
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-green);
    transition: width 0.3s ease;
}

.question-container {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius-block);
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
    border: 1px solid var(--border-light);
    min-height: 300px; /* уменьшаем минимальную высоту */
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.5s ease;
}

/* Для мобильных - фиксированная высота без изменения */
@media (max-width: 768px) {
    .question-container {
        min-height: 280px; /* фиксированная высота для мобильных */
        padding: 25px 20px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0.7;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.question-text {
    font-size: 1.5rem;
    line-height: 1.5;
    margin-bottom: 40px;
    font-weight: 500;
    color: var(--text-dark);
}

/* Шкала ответов - зеленая */
.scale-container {
    text-align: center;
    margin-top: auto;
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.scale-options {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.scale-btn {
    flex: 1;
    height: 60px;
    border: 2px solid var(--border-light);
    background: var(--bg-white);
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-light);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scale-btn:hover {
    border-color: var(--accent-green);
    background: var(--accent-green-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(46, 204, 113, 0.15);
}

.scale-btn.selected {
    border-color: var(--accent-green);
    background: var(--accent-green);
    color: var(--bg-white);
    box-shadow: none; /* убираем тень */
    outline: none; /* убираем обводку */
}

.scale-captions {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.8rem;
}

.scale-captions span {
    flex: 1;
    text-align: center;
}

/* Навигация в тесте */
.test-navigation {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

#prev-question {
    background: #ffffff;
    color: #161111;
    border: 1px solid #b3b3b3;
    border-radius: var(--border-radius-btn);
    padding: 12px 35px;
}

#prev-question:hover:not(:disabled) {
    background: #ffffff;
    color: #420a0a;
    border: 1px solid #420a0a;
    transform: translateY(-2px);
}

#prev-question:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: var(--border-light);
    color: var(--text-light);
}

/* Лоадер */
.loader {
    text-align: center;
    padding: 60px;
    color: var(--text-light);
}

/* ===== СТРАНИЦА РЕЗУЛЬТАТОВ ===== */
.result-screen {
    max-width: 900px;
    margin: 40px auto;
}


.result-description {
    font-size: 1.2rem;
    line-height: 1.3;
    color: #333333;
    margin: 0 auto;
    background: #ffffff;
    padding: 25px;
    border-radius: var(--border-radius-block);
    font-weight: 600; /* полужирный */
}

/* ===== ФУТЕР (ПОЛНАЯ ВЕРСИЯ) ===== */
.site-footer {
    background: var(--bg-white);
    padding: 60px 0 20px;
    margin-top: 0;
    border-top: 1px solid var(--border-light);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    text-align: center; /* центрируем текст внутри каждой колонки */
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%; /* растягиваем на всю ширину заголовка */
    height: 2px;
    background: #333333;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
}

.footer-col a:hover {
    color: #420a0a;
    transform: translateX(3px);
}

.footer-col p {
    color: var(--text-light);
    margin: 0 auto;
    
}

.footer-bottom {
    padding-top: 25px;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.footer-dev {
    color: var(--text-dark);
    margin-left: 5px;
}

.footer-dev {
    color: var(--text-dark);
    margin-left: 5px;
}

.footer-dev a {
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px dotted var(--text-light);
}

.footer-dev a:hover {
    border-bottom: 1px solid var(--text-dark);
}

/* ===== АДАПТАЦИЯ ПОД МОБИЛЬНЫЕ ===== */
@media (max-width: 992px) {
    .tests-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Уменьшаем все размеры текста на 20% */
    body {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .test-header-compact {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-actions {
        margin-left: auto;
    }

    .site-header .container {
        display: flex;
        flex-wrap: wrap;
    }

    .wheel-container canvas {
        max-width: 240px;
        max-height: 240px;
    }

    .wheel-container {
        min-height: 260px;
    }
    
    h1.gradient-heading,
    .hero h1 {
        font-size: 2.5rem; /* одинаковый размер с десктопом */
        line-height: 1.2;
        text-align: center;
    }
    
    h2.gradient-heading,
    .reviews-section h2,
    .consultation-block h3,
    .faq-section h2 {
        font-size: 2.0rem !important; /* одинаковый размер с десктопом */
        line-height: 1.2;
        text-align: center;
        margin-bottom: 35px;
    }
    
    h3.gradient-heading {
        font-size: 1.8rem; /* одинаковый размер с десктопом */
        line-height: 1.2;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .tests-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .test-card {
        padding: 0 12px 16px 12px;
    }
    
    .test-card h2 {
        font-size: 1.1rem; /* уменьшили на 20% */
        line-height: 1.2;
    }
    
    .test-description-short {
        font-size: 0.85rem; /* уменьшили на 20% */
        line-height: 1.5;
        padding: 0px 20px 0px 20px;
    }
    
    .consultation-block {
        padding: 24px 12px;
    }
    
    .consultation-block h3 {
        font-size: 1.1rem; /* уменьшили на 20% */
        line-height: 1.2;
    }
    
    .consultation-block p {
        font-size: 0.8rem; /* уменьшили на 20% */
        line-height: 1.4;
    }
    
    .review-card {
        min-width: 250px;
        padding: 16px;
    }
    
    .marathon-review-form {
        padding: 20px 12px;
    }
    
    .marathon-review-form h3 {
        font-size: 2.2rem; /* одинаковый размер с десктопом */
    }
    
    .marathon-review-form p {
        font-size: 0.9rem; /* уменьшили на 20% */
    }
    
    /* Улучшение читаемости текста */
    .info-content p,
    .hero-description,
    .test-description {
        font-size: 0.9rem; /* уменьшили на 20% */
        line-height: 1.5;
    }
    
    /* Улучшение кнопок */
    .btn {
        padding: 10px 20px;
        font-size: 0.85rem; /* уменьшили на 20% */
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 1rem; /* уменьшили на 20% */
        max-width: 250px;
    }
    
    /* Улучшение навигации */
    .main-nav ul {
        gap: 12px;
    }
    
    .main-nav a {
        font-size: 0.8rem; /* уменьшили на 20% */
        padding: 5px 0;
    }
    
    /* Улучшение FAQ */
    .faq-question {
        padding: 12px 0;
        font-size: 0.85rem; /* уменьшили на 20% */
    }
    
    .faq-answer {
        font-size: 0.8rem; /* уменьшили на 20% */
        line-height: 1.5;
    }
    
    /* Улучшение отзывов */
    .review-text {
        font-size: 0.8rem; /* уменьшили на 20% */
        line-height: 1.5;
    }
    
    .review-author {
        font-size: 0.8rem; /* уменьшили на 20% */
    }
    
    /* Уменьшаем другие элементы */
    .tests-info p {
        font-size: 0.85rem; /* уменьшили на 20% */
    }
    
    .result-score {
        font-size: 1rem; /* уменьшили на 20% */
    }
    
    .column-title {
        font-size: 1.3rem; /* уменьшили на 20% */
    }
    
    .strength-name,
    .weakness-name {
        font-size: 1rem; /* уменьшили на 20% */
    }
    
    .strength-text,
    .weakness-text {
        font-size: 0.85rem; /* уменьшили на 20% */
    }
    
    /* Улучшаем отступы между блоками */
    section {
        margin-bottom: 30px;
    }
    
    .info-block {
        margin: 24px 0 20px;
    }
    
    .faq-section {
        margin: 32px 0;
    }
    
    .reviews-section {
        padding: 0;
    }
    
    /* Улучшаем ширину контейнеров */
    .container {
        padding: 0 12px;
    }
    
    /* Улучшаем карточки */
    .test-card-image {
        width: calc(100% + 24px);
        margin: 0 -12px 16px -12px;
    }
    
    /* Улучшаем форму */
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .footer-columns {
        grid-template-columns: 1fr;
    }

    .wheel-legend {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .scale-btn {
        height: 50px;
        font-size: 1.1rem;
        border-radius: 25px;
    }
    
    
    .hero-description {
        padding: 20px;
    }
}

/* FAQ блок */
.faq-section {
    margin: 40px 0;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #444444;
    background-clip: text;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: var(--border-radius-block);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 0;
    position: relative;
    background: var(--bg-white);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.2s;
    background: var(--bg-white);
    position: relative;
    z-index: 2;
    border: none;
    outline: none;
    width: 100%;
    text-align: left;
}

.faq-question:hover {
    background: var(--bg-light-blue);
    color: #333333;
}

.faq-toggle {
    font-size: 1.5rem;
    color: #131111;
    transition: transform 0.3s;
    font-weight: 300;
    flex-shrink: 0;
    margin-left: 15px;
    line-height: 1;
    padding-bottom: 5px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: #131111; /* убираем красный цвет */
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 25px;
    background: var(--bg-light-blue);
    position: relative;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
}

.faq-item.active {
    margin-bottom: 0;
    background: var(--bg-white);
}

.faq-item.active .faq-answer {
    max-height: none; /* убираем ограничение по высоте */
    padding: 20px 25px 25px 25px;
    margin-top: 0;
    margin-bottom: 0;
    border-radius: 0;
    background: var(--bg-light-blue);
    border-top: 1px solid var(--border-light);
    opacity: 1;
    visibility: visible;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Улучшенные стили для предотвращения наложения */
.faq-item:not(.active) .faq-answer {
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Исправляем наложение текста в FAQ */
.faq-item:not(.active) .faq-answer {
    max-height: 0;
    padding: 0;
    margin: 0;
    border: none;
}

.faq-item.active .faq-answer {
    max-height: 100% !important;
    padding: 20px 25px 25px 25px;
    margin: 0;
    border-top: 1px solid var(--border-light);
}

/* Улучшаем визуальное разделение */
.faq-question {
    position: relative;
    z-index: 10;
}

.faq-answer {
    position: relative;
    z-index: 5;
}

/* Новые стили для FAQ - блок изначально белый, при раскрытии серый фон */
.faq-item:not(.active) .faq-question {
    background: var(--bg-white);
}

.faq-item.active .faq-question {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}

.faq-item.active .faq-answer {
    background: var(--bg-light-blue);
}

/* Улучшаем визуальное разделение между вопросами */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item.active {
    margin-bottom: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Улучшаем отступы для мобильных */
@media (max-width: 768px) {
    .faq-question {
        padding: 15px 20px;
        font-size: 0.9rem;
    }
    
    .faq-answer {
        padding: 15px 20px;
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .faq-item.active .faq-answer {
        padding: 15px 20px 20px 20px;
        max-height: 100% !important;
    }
}

.test-instructions .instructions-spoiler {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.test-instructions:hover .instructions-spoiler,
.test-instructions.active .instructions-spoiler {
    max-height: 500px;
}

.test-instructions h3 {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.test-instructions h3 {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Компактная инструкция для начатого теста */
.test-instructions-sticky {
    margin: 20px 0 0;
    background: transparent;
}

.test-instructions.compact {
    margin: 0;
    padding: 0;
    background: transparent;
    border-left: none;
}

.test-instructions.compact h3 {
    margin: 0;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
}

.test-instructions.compact h3:hover {
    color: var(--accent-red);
}

.test-instructions.compact .toggle-icon {
    font-size: 1.1rem;
    color: var(--accent-red);
}

.test-instructions.compact.active .toggle-icon {
    transform: rotate(45deg);
}

.test-instructions.compact .instructions-spoiler {
    position: absolute;
    top: 100%;
    right: 0;
    width: 400px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-block);
    padding: 15px;
    box-shadow: var(--shadow-hover);
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
}

.test-instructions.compact.active .instructions-spoiler {
    max-height: 500px;
    margin-top: 15px;
}



/* Заголовок и инструкция для начатого теста */
.test-header-sticky {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 10px 0;
    margin-bottom: 20px;
    position: sticky;
    top: 70px;
    z-index: 90;
    box-shadow: var(--shadow-sm);
}

.test-header-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.test-title-compact {
    font-size: 1.2rem;
    margin: 0;
    white-space: nowrap;
    background: linear-gradient(135deg, #222 0%, var(--accent-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.test-instructions.compact {
    background: var(--bg-light-blue);
    padding: 12px 18px;
    border-radius: var(--border-radius-block);
    border-left: 3px solid var(--accent-red);
    margin: 0;
}

.test-instructions.compact h3 {
    margin: 0;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-dark);
    font-weight: 500;
}

.test-instructions.compact h3:hover {
    color: var(--accent-red);
}

.test-instructions.compact .toggle-icon {
    font-size: 1.2rem;
    color: var(--accent-red);
    transition: transform 0.3s;
}

.test-instructions.compact.active .toggle-icon {
    transform: rotate(45deg);
}



.test-instructions.compact.active .instructions-spoiler {
    max-height: 500px;
    margin-top: 12px;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
}

/* Картинки тестов */
.test-image {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 25px;
    border-radius: var(--border-radius-block);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.test-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.test-image img:hover {
    transform: scale(1.02);
}

/* Уменьшенная картинка для начатого теста */
.test-image-small {
    width: 80px;
    height: 80px;
    margin: 15px auto 10px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-red-light);
    box-shadow: var(--shadow-sm);
}

.test-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Центрируем заголовок с картинкой */
.test-header-title {
    text-align: center;
    margin-bottom: 20px;
}

.test-header-title h2 {
    font-size: 2rem;
    color: #333333;
    background-clip: text;
    display: inline-block;
    padding: 0 20px;
    margin-bottom: 5px;
    margin-top: 10px;
}

/* ===== СТРАНИЦА РЕЗУЛЬТАТОВ ===== */

/* Блок 1. Заголовок */
.result-header {
    text-align: center;
    margin-bottom: 50px;
    background: #333333;
    padding: 25px 25px 45px 25px;
    border-radius: 0;
    margin-bottom: 30px;
    border: none;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.result-category {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: #ffffff !important;
    background-clip: text;
}

.result-score {
    font-size: 1.2rem;
    color: #333333;
    font-weight: 600;
    margin-bottom: 25px;
    padding: 8px 20px;
    background: #ffffff;
    display: inline-block;
    border-radius: 40px;
}

/* Профиль (полоски) */
.result-spheres-full {
    margin-bottom: 50px;
}

.result-strengths-weaknesses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px auto;
    padding: 40px;
    max-width: 1000px;
}

.strengths-column,
.weaknesses-column {
    background: transparent;
    padding: 15px;
}

.strength-item,
.weakness-item {
    margin-bottom: 25px;
}

.strength-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2ecc71;
    margin-bottom: 8px;
}

.weakness-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e74c3c;
    margin-bottom: 8px;
}

.strength-text,
.weakness-text {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

.column-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #222;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .result-strengths-weaknesses {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .column-title {
        font-size: 1.4rem;
    }
}

.result-marathon.highlighted .btn-primary {
    background: #333333;
    color: white;
    border: none;
    padding: 16px 30px;
}

/* Блок практикума с фоном */
.result-marathon.highlighted {
    background: #f9f9f9;
    padding: 30px 0;
    border-radius: 16px;
}

.result-trigger.plain {
    background: #f9f9f9;
    padding: 30px 0;
    margin-bottom: 30px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.no-items {
    color: #999;
    font-style: italic;
    padding: 20px 0;
}

.result-spheres-full h3 {
    text-align: left;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

/* Блок 2. Колесо баланса + разбор (две колонки) */
.result-spheres-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.result-spheres,
.result-personalized {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius-block);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.result-spheres h3,
.result-personalized h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
}

/* Список сфер */
.spheres-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sphere-item {
    padding: 5px 0;
}

.sphere-item.min-sphere .sphere-name {
    color: var(--accent-red);
    font-weight: 600;
}

.sphere-item.max-sphere .sphere-name {
    color: var(--accent-green);
    font-weight: 600;
}

.sphere-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.sphere-name {
    color: var(--text-dark);
}

.sphere-score {
    color: var(--text-light);
    font-weight: 500;
}

.sphere-bar-container {
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}

.sphere-bar {
    height: 100%;
    background: var(--accent-red);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.sphere-item.min-sphere .sphere-bar {
    background: var(--accent-red);
}

.sphere-item.max-sphere .sphere-bar {
    background: var(--accent-green);
}

/* Персонализированный разбор */
.personalized-box {
    background: #f0f3f7;
    padding: 25px;
    border-radius: var(--border-radius-block);
    margin-bottom: 25px;
    border-left: 4px solid #831c1c;
}

.personalized-sphere {
    font-size: 1.3rem;
    font-weight: 600;
    color: #831c1c;
    margin-bottom: 15px;
}

.personalized-text {
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 1rem;
}

.personalized-strong {
    padding: 20px;
    background: var(--bg-light-blue);
    border-radius: var(--border-radius-block);
    border-left: 4px solid #21a95b;
}

.strong-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.strong-sphere {
    font-size: 1.2rem;
    font-weight: 600;
    color: #21a95b;
}

/* Блок 3. Триггер */
.result-trigger {
    background: var(--bg-white);
    padding: 35px;
    border-radius: var(--border-radius-block);
    margin-bottom: 40px;
    border: 1px solid var(--border-light);
}

@media (max-width: 768px) {
    .result-trigger {
        padding: 20px 10px; /* 20px сверху/снизу, 10px слева/справа */
        margin-bottom: 30px;
        
    }
}

@media (max-width: 768px) {
    .marathon-card {
        display: none;
    }
}

.result-trigger h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

@media (max-width: 768px) {
    .result-trigger h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.3rem;
}
}

.trigger-content {
    max-width: 1000px;
    margin: 0 auto;
}

.trigger-content p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
    border-radius: var(--border-radius-block);
    padding: 15px 20px;
    text-align: center;
}

.trigger-content .highlight {
    color: #393636;
    font-weight: 500;
    padding: 15px 20px;
    background: #ffffff;
    border-radius: var(--border-radius-block);
}

.result-marathon h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.marathon-desc {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
    border-radius: var(--border-radius-block);
    padding: 15px 20px;
    text-align: center;
    margin: 0 auto;
    max-width: 1000px;

    
}

.marathon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.marathon-card {
    background: var(--bg-white);
    padding: 30px 20px;
    border-radius: var(--border-radius-card);
    border: 1px solid var(--border-light);
    text-align: center;
    transition: all 0.3s;
}

.marathon-card.highlight {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 2px var(--accent-red-light);
}

.marathon-card .card-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.marathon-card h4 {
    margin-bottom: 10px;
    color: #420a0a;
}

.marathon-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Блок 5. Три кнопки */
.result-actions {
    margin-bottom: 40px;
}

.actions-row .btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 40px;
    background: #333333;
    color: white;
    border: none;
    border-radius: var(--border-radius-btn);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 1.4;
    min-width: 480px;
    margin-bottom: 70px;
}

@media (max-width: 768px) {

    .actions-row .btn {
        max-width: 98% !important;
        min-width: 98% !important;
    }
    
    
    .actions-row .btn-sub {
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .result-marathon h3 {
        text-align: center;
        margin-bottom: 20px;
        font-size: 1.3rem;
    }

}

.btn-primary {
    background: #420a0a;
    color: rgb(255, 255, 255);
    border: none;
}

.btn-primary:hover {
    background: #333333;
    color: white;
}

.btn-sub {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 5px;
}

.actions-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 10px;
    background: var(--bg-light-blue);
    border-radius: var(--border-radius-btn);
}

/* Блок 6. Спойлер с видео */
.result-spoiler {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-block);
    margin-bottom: 30px;
    margin-top: 20px;
    overflow: hidden;
}

.spoiler-header {
    padding: 18px 25px;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.spoiler-header:hover {
    background: var(--border-light);
}

.spoiler-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.spoiler-icon {
    font-size: 1.5rem;
    color: #232527;
    transition: transform 0.3s;
}

.spoiler-header.active .spoiler-icon {
    transform: rotate(45deg);
}

.spoiler-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg-white);
}

.spoiler-content.active {
    max-height: 1000px; /* достаточно для видео */
}

.spoiler-content .video-placeholder {
    padding: 25px;
    background: var(--bg-main);
    color: var(--text-light);
}

/* Блок 7. Email */
.result-email {
    background: #333333;
    padding: 25px;
    border-radius: var(--border-radius-block);
    margin-bottom: 30px;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.result-email h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #ffffff;
}

.email-form {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 400px;
}

.email-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-btn);
    font-size: 1rem;
}

.email-form input:focus {
    outline: none;
    border-color: var(--accent-red);
}

/* Блок 8. Поделиться - менее выраженный */
.result-share {
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--border-radius-block);
    margin-bottom: 30px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.result-share h4 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    color: #333333;
}

.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    padding: 8px 20px;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-btn);
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s;
    background: var(--bg-white);
    font-size: 0.9rem;
}

.share-btn:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
    background: var(--bg-light-blue);
}

/* Перемещаем блок поделиться после кнопок действий */
.result-actions + .result-share {
    margin-top: -20px;
    margin-bottom: 40px;
}

/* Улучшаем визуальное оформление страницы результата */
.result-screen {
    max-width: 900px;
    margin: 40px auto;
}

.result-score {
    font-size: 1.1rem;
    color: #333333;
    font-weight: 600;
    margin-bottom: 25px;
    padding: 8px 20px;
    background: var(--bg-light-blue);
    display: inline-block;
    border-radius: 40px;
}

/* Улучшаем блок профиля */
.result-profile-row {
    display: grid;
    grid-template-columns: 60% 37%;
    gap: 30px;
    margin: 40px 0 40px;
    align-items: start;
    padding: 30px;
    background: var(--bg-white);
    border-radius: var(--border-radius-block);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

/* Улучшаем блок сфер */
.result-spheres-col {
    width: 100%;
}

.result-description-col {
    display: flex;
    align-items: center;
    height: 100%;
}

.result-description-box {
    background: var(--bg-light-blue);
    padding: 25px;
    border-radius: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    font-size: 1rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

/* Улучшаем блок сильных и слабых сторон */
.result-strengths-weaknesses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px auto;
    padding: 40px;
    max-width: 1000px;
    background: var(--bg-white);
    border-radius: var(--border-radius-block);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

/* Улучшаем блок триггера */
.result-trigger {
    background: var(--bg-white);
    padding: 35px;
    border-radius: var(--border-radius-block);
    margin-bottom: 40px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.result-trigger h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: #333333;
}

.trigger-content p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
    border-radius: var(--border-radius-block);
    padding: 15px 20px;
    text-align: center;
}

/* Улучшаем блок практикума */
.result-marathon {
    background: var(--bg-white);
    padding: 35px;
    border-radius: var(--border-radius-block);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.result-marathon h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: #333333;
}

.marathon-desc {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
    border-radius: var(--border-radius-block);
    padding: 15px 20px;
    text-align: center;
    margin: 0 auto;
    max-width: 1000px;
}

/* Улучшаем блок кнопок действий */
.result-actions {
    margin-bottom: 40px;
    text-align: center;
}

.actions-row .btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 40px;
    background: #333333;
    color: white;
    border: none;
    border-radius: var(--border-radius-btn);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 1.4;
    min-width: 480px;
    margin-bottom: 20px;
}

.actions-row .btn:hover {
    background: #333333;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(57, 34, 34, 0.5);
}

/* Улучшаем блок email */
.result-email {
    background: var(--bg-white);
    padding: 25px;
    border-radius: var(--border-radius-block);
    margin-bottom: 30px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.result-email h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #333333;
}

.email-form {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 400px;
}

.email-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-btn);
    font-size: 1rem;
    background: var(--bg-white);
}

.email-form input:focus {
    outline: none;
    border-color: var(--accent-red);
}

.email-form .btn-small {
    background: #333333;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: var(--border-radius-btn);
    font-weight: 600;
    cursor: pointer;
}

.email-form .btn-small:hover {
    background: #333333;
    color: white;
}

/* Мобильная версия для страницы результата */
@media (max-width: 768px) {
    .result-profile-row {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .result-strengths-weaknesses {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }
    
    .result-trigger,
    .result-marathon {
        padding: 20px;
    }
    
    .actions-row .btn {
        min-width: 100%;
        max-width: 100%;
        padding: 14px 20px;
    }
    
    .result-email {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }
    
    .email-form {
        max-width: 100%;
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }
    
    .email-form input {
        width: 100%;
        padding: 14px 15px;
        box-sizing: border-box;
    }
    
    .email-form .btn-small {
        width: 100%;
        text-align: center;
    }
    
    .result-share {
        padding: 15px;
    }
    
    .share-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .share-btn {
        width: 100%;
        text-align: center;
    }
}

/* Адаптация под мобильные */
@media (max-width: 992px) {
    .result-spheres-row,
    .actions-row,
    .marathon-grid {
        grid-template-columns: 1fr;
    }
    
    .result-category {
        font-size: 1.3rem;
    }
    
    .result-email {
        flex-direction: column; /* меняем направление на колонку */
        align-items: stretch; /* растягиваем на всю ширину */
        padding: 20px;
    }
    
    .result-email h4 {
        text-align: center;
        margin-bottom: 5px;
    }
    
    .email-form {
        max-width: 100%;
        width: 100%;
        flex-direction: column; /* форма тоже в колонку */
        gap: 10px;
    }
    
    .email-form input {
        width: 100%;
        padding: 14px 15px; /* чуть больше для удобства на телефоне */
        box-sizing: border-box;
    }
    
    .email-form .btn-small {
        width: 100%;
        text-align: center;
    }
    
    .result-share {
        flex-direction: column;
    }
    
    .share-buttons {
        justify-content: center;
    }
}

/* ===== КОЛЕСО БАЛАНСА ===== */
.wheel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    padding: 10px;
    background: var(--bg-white);
    border-radius: var(--border-radius-block);
    min-height: 320px;
}

.wheel {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin: 0 auto;
    border: 2px solid var(--bg-white);
}

.wheel-sector {
    position: absolute;
    width: 50%;
    height: 50%;
    left: 50%;
    top: 0;
    transform-origin: 0 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20px;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,0.3);
    transition: transform 0.2s;
}

.wheel-sector:hover {
    filter: brightness(1.05);
}

.sector-label {
    color: white;
    font-weight: 600;
    font-size: 12px;
    text-align: center;
    max-width: 80px;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    word-break: break-word;
    transform-origin: center;
}

/* Легенда цветов */
.wheel-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
    padding: 12px;
    background: var(--bg-light-blue);
    border-radius: var(--border-radius-block);
    border: 1px solid var(--border-light);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.color-dot {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .wheel {
        width: 250px;
        height: 250px;
    }
    
    .sector-label {
        font-size: 10px;
        max-width: 60px;
    }
}

@media (max-width: 480px) {
    .wheel {
        width: 200px;
        height: 200px;
    }
    
    .sector-label {
        font-size: 8px;
        max-width: 45px;
    }
    
    .wheel-legend {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Цвета для результата */
.result-score.green {
    color: #2ecc71;
    background: #f0fff4;
}

.result-score.lightgreen {
    color: #27ae60;
    background: #f0fff4;
}

.result-score.yellow {
    color: #f1c40f;
    background: #fef9e7;
}

.result-score.orange {
    color: #e67e22;
    background: #fef5e7;
}

.result-score.red {
    color: #e74c3c;
    background: #fef0f0;
}

.score-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* ===== КОЛЕСО БАЛАНСА С CONIC-GRADIENT ===== */


.wheel-container canvas {
    max-width: 300px;
    max-height: 300px;
    width: 100%;
    height: auto;
}

.wheel-conic {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    margin: 0 auto;
    border: 3px solid white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.wheel-labels {
    position: relative;
    width: 300px;
    height: 300px;
    margin: -300px auto 0;
}

.wheel-label {
    position: absolute;
    color: white;
    font-weight: 600;
    font-size: 12px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    white-space: nowrap;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.3);
    padding: 2px 6px;
    border-radius: 12px;
    pointer-events: none;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .wheel-conic {
        width: 260px;
        height: 260px;
    }
}

@media (max-width: 480px) {
    .wheel-conic {
        width: 220px;
        height: 220px;
    }
}

.strong-text {
    margin-top: 10px;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
    font-style: italic;
    padding-top: 10px;
    border-top: 1px dashed var(--border-light);
}

.marathon-trial {
    text-align: center;
    margin-top: 0px;
    margin-bottom: 0px;
}

@media (max-width: 768px) {
    .marathon-trial {
        margin-top: 0; /* убираем отступ сверху */
        width: 100%;
    }
    
    .marathon-trial .btn-primary {
        width: 100%; /* кнопка на всю ширину */
        max-width: none;
        padding: 16px 20px;
        box-sizing: border-box;
        margin-top: 20px;
    }
}

.marathon-trial .btn-primary {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 30px;
    background: #ce1e21;
    color: white;
    border: none;
    border-radius: var(--border-radius-btn);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 1.4;
    margin-top: 20px;
}

.marathon-trial .btn-primary span.btn-sub {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 5px;
    font-weight: normal;
}

.marathon-trial .btn-primary:hover {
    background: #9b2c2c;
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -5px rgba(57, 34, 34, 0.5);
}

.actions-row.two-buttons {
    margin: 0 auto;
    text-align: center;

}

.review-form-container h4 {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 600;
}

.review-form-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: #333333;
    padding: 20px 0;
}

.review-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Оптимизация для мобильных устройств */
@media (max-width: 768px) {
    .review-form-container {
        padding: 15px 0;
    }
    
    .review-form {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .review-form-container h4 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 12px 15px;
        font-size: 16px; /* предотвращает масштабирование в iOS */
    }
    
    .form-submit {
        max-width: 50%;
        padding: 14px 20px;
    }
}

.video-container {
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.video-container p {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.6;
}

.video-container video {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Видео в спойлерах */
.result-spoiler .video-container,
.faq-answer .video-container {
    width: 100%;
    max-width: 100%;
    margin: 20px 0 10px;
    border-radius: 12px;
    margin-bottom: 30px;
    overflow: hidden;
    background: #000;
    position: relative;
}

.result-spoiler video,
.faq-answer video {
    width: 100%;
    height: auto;
    max-height: 400px; /* ограничиваем максимальную высоту */
    object-fit: contain;
    background: #000;
    border-radius: 12px;
    display: block;
}

/* Улучшения для видео на мобильных */
@media (max-width: 768px) {
    .result-spoiler .video-container,
    .faq-answer .video-container {
        margin: 15px 0 5px;
        border-radius: 8px;
    }
    
    .result-spoiler video,
    .faq-answer video {
        max-height: 250px;
    }
    
    .video-container video {
        max-height: 250px;
    }
}

/* Улучшения для кнопок на мобильных */
@media (max-width: 768px) {
    .btn {
        min-height: 44px; /* минимальная высота для удобного нажатия */
        align-items: center;
        justify-content: center;
    }
    
    .btn-large {
        min-height: 50px;
    }
    
    /* Улучшение формы на мобильных */
    .form-group input,
    .form-group textarea,
    .form-group select {
        min-height: 44px;
        font-size: 16px; /* предотвращает масштабирование в iOS */
    }
    
    /* Улучшение навигации на мобильных */
    .main-nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Улучшение карточек на мобильных */
    .test-card,
    .review-card {
        border-radius: 12px;
    }
    
    /* Улучшение отступов на мобильных */
    .container {
        padding: 0 15px;
    }
    
    section {
        margin-bottom: 25px;
    }
    
    /* Улучшение читаемости текста */
    p, li, span {
        line-height: 1.6;
        letter-spacing: 0.01em;
    }
    
    /* Улучшение заголовков */
    h1, h2, h3 {
        line-height: 1.3;
    }
    
    /* Улучшение списков */
    ul, ol {
        padding-left: 20px;
    }
    
    li {
        margin-bottom: 8px;
    }
    
    /* Улучшение видео на мобильных */
    .video-container video {
        max-height: 250px;
    }
    
    /* Улучшение FAQ на мобильных */
    .faq-question {
        padding: 15px 20px;
        font-size: 0.9rem;
    }
    
    .faq-answer {
        padding: 15px 20px;
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* Улучшение отзывов на мобильных */
    .review-card {
        min-width: 280px;
        padding: 15px;
    }
    
    .review-text {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* Улучшение тестов на мобильных */
    .test-card h2 {
        font-size: 1.2rem;
        line-height: 1.3;
    }
    
    .test-description-short {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Улучшение консультационного блока */
    .consultation-block {
        padding: 20px 15px;
    }
    
    .consultation-block h3 {
        font-size: 1.2rem;
        line-height: 1.3;
    }
    
    .consultation-block p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Улучшение информационного блока */
    .info-content {
        padding: 20px;
    }
    
    .info-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Улучшение формы отзывов */
    .marathon-review-form {
        padding: 20px 15px;
    }
    
    .marathon-review-form h3 {
        font-size: 1.3rem;
    }
    
    .marathon-review-form p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Улучшение CTA блока */
    .cta-content h3 {
        font-size: 1.5rem;
    }
    
    .cta-content p {
        font-size: 1rem;
        line-height: 1.5;
    }
   
    .result-score {
        font-size: 1rem;
        padding: 6px 15px;
    }
    
    .result-description {
        font-size: 1rem;
        line-height: 1.5;
        padding: 20px;
    }
    
    /* Улучшение профиля на мобильных */
    .result-profile-row {
        padding: 20px;
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .result-description-box {
        padding: 15px;
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Улучшение списка сфер */
    .spheres-list {
        gap: 10px;
    }
    
    .sphere-header {
        font-size: 0.9rem;
    }
    
    /* Улучшение персонализированного разбора */
    .personalized-box {
        padding: 15px;
    }
    
    .personalized-sphere {
        font-size: 1.1rem;
    }
    
    .personalized-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Улучшение триггер блока */
    .result-trigger {
        padding: 20px 15px;
    }
    
    .result-trigger h3 {
        font-size: 1.3rem;
    }
    
    .trigger-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Улучшение блока практикума */
    .result-marathon h3 {
        font-size: 1.3rem;
    }
    
    .marathon-desc {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Улучшение кнопок действий */
    .actions-row .btn {
        min-width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .btn-sub {
        font-size: 0.75rem;
    }
    
    /* Улучшение спойлеров */
    .spoiler-header {
        padding: 15px 20px;
    }
    
    .spoiler-header h4 {
        font-size: 1rem;
    }
    
    /* Улучшение email формы */
    .result-email {
        padding: 20px 15px;
    }
    
    .result-email h4 {
        font-size: 1rem;
    }
    
    .email-form input {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    /* Улучшение кнопок поделиться */
    .result-share {
        padding: 20px 15px;
    }
    
    .result-share h4 {
        font-size: 1rem;
    }
    
    .share-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

.logo-img {
    max-height: 55px;
    width: auto;
    display: block;
}

.mobile-header {
    display: none;
}

/* По умолчанию скрываем мобильную версию */
.mobile-header {
    display: none;
}

/* Десктоп версия */
.desktop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.desktop-header .main-nav {
    flex: 1;
    margin: 0 30px;
}

.desktop-header .main-nav ul {
    display: flex;
    justify-content: center;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .desktop-header {
        display: none;
    }
    
    .mobile-header {
        display: block;
        width: 100%;
    }
    
    .mobile-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .mobile-nav ul {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    
    .mobile-nav li {
        flex: 1;
        text-align: center;
    }
    
    .mobile-nav a {
        display: block;
        padding: 8px 0;
        font-size: 0.9rem;
        color: #666;
        text-decoration: none;
    }
    
    .mobile-nav a.active {
        color: #222;
        font-weight: 500;
    }

    .mobile-nav {
        display: none;
    }

}

/* Для мобильных */
@media (max-width: 768px) {
    .result-spoiler video,
    .faq-answer video {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .faq-answer video {
        max-height: 250px;
    }
}

/* Мобильная шапка */
@media (max-width: 768px) {
    .site-header {
        padding: 10px 0;
    }
    
    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .logo-img {
        max-height: 45px;
    }
    
    .header-actions .btn-small {
        font-size: 0.8rem;
        white-space: nowrap;
        width: auto;
        margin: 0;
    }
    
    .main-nav {
        width: 100%;
        margin-top: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .main-nav::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    .main-nav ul {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 0;
        margin: 0;
        gap: 0;
    }
    
    .main-nav li {
        flex: 1;
        text-align: center;
        white-space: nowrap;
    }
    
    .main-nav a {
        display: block;
        padding: 8px 0;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    body {
        overflow-x: hidden;
    }
}

/* Мобильный футер */
@media (max-width: 768px) {
    .footer-columns {
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 0;
    }
    
    .footer-col {
        width: 100%;
        text-align: center;
    }
    
    .footer-col h4 {
        text-align: center;
        margin-bottom: 15px;
    }
    
    .footer-col ul {
        padding-left: 0;
    }
    
    .footer-col li {
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-top: 20px;
    }
    
    /* Убираем центрирование текста */
    .footer-col p {
        text-align: center;
    }
}

.test-card-image {
    width: calc(100% + 50px);
    
    overflow: hidden;
    margin: 0 -25px 20px -25px;
    border-radius: var(--border-radius-card) var(--border-radius-card) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tests-info {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
}

.tests-info p {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin: 0;
}

.tests-info strong {
    color: #2c2c2c;
    font-weight: 600;
}

@media (max-width: 768px) {
    .tests-info {
        margin: 0px 0 25px;
        padding: 12px;
    }
    
    .tests-info p {
        font-size: 0.95rem;
    }
}

/* Мобильная версия страницы теста */
@media (max-width: 768px) {
    .welcome-screen {
        padding: 15px 10px; /* уменьшили отступы */
        margin: 20px auto;
    }
    
    .welcome-screen h1 {
        font-size: 1.8rem; /* меньше заголовок */
        margin-bottom: 15px;
    }
    
    .welcome-video {
        margin-bottom: 15px;
    }
    
    .test-description {
        font-size: 1rem;
        padding: 0;
        margin-bottom: 20px;
    }
    
    .test-instructions {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .test-instructions h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .scale-description .scale-item {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .btn-large {
        padding: 14px 30px;
        font-size: 1.1rem;
        max-width: 280px;
        background: #333333;
        color: #ffffff;
    }
    
    /* Экран тестирования */
    .test-screen {
        margin: 20px auto;
    }
    
    .question-container {
        padding: 25px 20px;
        min-height: 250px;
    }
    
    .question-text {
        font-size: 1.2rem;
        margin-bottom: 25px;
    }
    
    .scale-btn {
        height: 45px;
        font-size: 1.1rem;
    }
    
    .scale-captions span {
        font-size: 0.7rem;
    }
}

.strength-name-wrapper,
.weakness-name-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.strength-icon {
    color: #2ecc71;
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1;
    padding-bottom: 10px;
}

.weakness-icon {
    color: #f1c40f;
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1;
    padding-bottom: 10px;
}

.strength-name,
.weakness-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #222;
}

.strength-text,
.weakness-text {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    font-style: italic;
    margin-left: 28px; /* отступ под иконкой */
}

/* Профиль с полосками и описанием */
.result-profile-row {
    display: grid;
    grid-template-columns: 60% 37%;
    gap: 30px;
    margin: 40px 0 40px;
    align-items: start;
    padding: 30px;
    background: #ffffff;
    border-radius: var(--border-radius-block);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.result-spheres-col {
    width: 100%;
}

.result-description-col {
    display: flex;
    align-items: center; /* вертикальное центрирование */
    height: 100%;
}

.result-description-box {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 16px;
    line-height: 1.7;
    color: #444;
    font-size: 1rem;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .result-profile-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .result-description-box {
        padding: 20px;
    }
}

.result-info-block {
    padding: 30px;
    border-radius: 16px;
    margin: 30px 0 20px;
    background: #ffffff;
    border-radius: var(--border-radius-block);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.marathon-trial-wrapper {
    margin-bottom: 40px;
    text-align: center;
}

.profile-title {
    color: #ffffff;
    font-size: 2.8rem;
    margin: 30px 0 40px;
    font-weight: 600;
    text-align: center;
}

.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-btn);
    font-family: inherit;
    font-size: 1rem;
    background: white;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper select {
    width: 100%;
    padding: 14px 18px;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-btn);
    font-family: inherit;
    font-size: 1rem;
    background: white;
    padding-right: 40px; /* добавляем место для стрелочки */
}

.select-wrapper::after {
    content: "▼";
    font-size: 0.8rem;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-light);
    z-index: 1;
}

/* Исправляем стрелочку в форме выбора типа отзыва */
.form-group .select-wrapper::after {
    right: 15px; /* отступ от края */
    color: #666; /* цвет стрелочки */
}

/* Улучшаем форму на мобильных */
@media (max-width: 768px) {
    .select-wrapper select {
        padding: 12px 15px;
        padding-right: 35px; /* место для стрелочки на мобильных */
    }
    
    .select-wrapper::after {
        right: 15px;
        font-size: 0.7rem;
    }
}

/* ===== ПЕРЕКЛЮЧАТЕЛЬ ТЕСТОВ ДЛЯ МОБИЛЬНЫХ ===== */
.tests-switcher-section.mobile-only {
    margin: 30px 0 50px;
    display: none;
}

.tests-switcher-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: var(--border-radius-block);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.tests-switcher {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 0;
    padding-bottom: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}

.test-switch-btn {
    background: #ffffff;
    border: none;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #444444;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: var(--border-radius-block) var(--border-radius-block) 0 0;
    white-space: nowrap;
    flex: 1;
    text-align: center;
    max-width: 250px;
    border-bottom: 2px solid transparent;
}

.test-switch-btn:hover {
    color: #ffffff;
    background: #333333;
}

.test-switch-btn.active {
    color: #ffffff;
    background: #333333;
    font-weight: 600;
    border-bottom: 2px solid #222;
}

.test-switch-btn.active::after {
    display: none;
}

.tests-container {
    background: var(--bg-white);
    border-radius: 0 0 var(--border-radius-block) var(--border-radius-block);
    border: none;
    border-top: 1px solid var(--border-light);
    box-shadow: none;
    padding: 30px;
    min-height: 500px;
    position: relative;
}

.test-card-wrapper {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.test-card-wrapper.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.test-card-wrapper .test-card {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.test-card-wrapper .test-card-image {
    width: 100%;
    margin: 0 auto 25px;
    border-radius: var(--border-radius-block);
    overflow: hidden;
    box-shadow: var(--shadow-sm);

}

@media (max-width: 768px) {
    .test-card-wrapper .test-card-image {
        border-radius: 0 !important;
    }
}

.test-card-wrapper .test-card-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.test-card-wrapper .test-card-image img:hover {
    transform: scale(1.02);
}

.test-card-wrapper .test-card h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333333;
    background-clip: text;
}

.test-card-wrapper .test-description-short {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.test-card-wrapper .btn {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    padding: 14px 35px;
    border-radius: var(--border-radius-btn);
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 20px;
    transition: all 0.3s ease;
    min-width: 200px;
}

.test-card-wrapper .btn:hover {
    color: #333333;
    border-color: #333333;
    background: transparent;
    transform: translateY(-2px);
}

/* ===== СЕТКА ТЕСТОВ ДЛЯ ПК ===== */
.tests-grid-section.desktop-only {
    margin: 30px 0 50px;
}

.tests-grid-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.tests-grid .test-card {
    background: var(--bg-white);
    padding: 0 25px 25px 25px;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
}

.tests-grid .test-card-image {
    width: calc(100% + 50px);
    overflow: hidden;
    margin: 0 -25px 20px -25px;
    border-radius: var(--border-radius-card) var(--border-radius-card) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tests-grid .test-card-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.tests-grid .test-card-image img:hover {
    transform: scale(1.02);
}

.tests-grid .test-card h2 {
    margin-bottom: 15px;
    font-size: 1.6rem;
    color: #333333;
    line-height: 1.3;
    padding-top: 10px;
    text-align: center;
}

.tests-grid .test-description-short {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
    flex-grow: 1;
    padding: 0 15px;
    text-align: center;
}

.tests-grid .btn {
    background: transparent;
    border: 1px solid #333333;
    color: #ffffff;
    width: 50%;
    margin: 0 auto;
    margin-top: 20px;
    margin-bottom: 15px;
    border-radius: var(--border-radius-btn);
    text-align: center;
    padding: 12px 20px;
    min-width: 150px;
    max-width: 200px;
    transition: all 0.3s ease;
    background-color: #333333;

}

.tests-grid .btn:hover {
    color: #333333;
    border-color: #333333;
    background: transparent;
    transform: translateY(-2px);
}

/* Красная полоска сверху с анимацией */
.tests-grid .test-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 4px;
    background: var(--accent-red);
    transition: width 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), left 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
    transform: translateX(-50%);
    z-index: 10;
}

.tests-grid .test-card:hover::before {
    width: 100%;
    left: 50%;
}

.tests-grid .test-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .tests-switcher-section.mobile-only {
        margin: 20px 0 30px;
        display: block;
    }
    
    .tests-grid-section.desktop-only {
        display: none;
    }
    
    .tests-switcher-container {
        max-width: 100%;
        background: var(--bg-white);
        border-radius: var(--border-radius-block);
        border: 1px solid var(--border-light);
        box-shadow: var(--shadow-sm);
        overflow: hidden;
    }
    
    .tests-switcher {
        flex-direction: row;
        gap: 0;
        border-bottom: none;
        margin-bottom: 0;
        justify-content: space-between;
        background: var(--bg-white);
        border-radius: var(--border-radius-block) var(--border-radius-block) 0 0;
        border: none;
        border-bottom: 1px solid var(--border-light);
        padding: 0;
        overflow: hidden;
        position: relative;
    }
    
    .test-switch-btn {
        padding: 15px 8px;
        font-size: 0.85rem;
        border-radius: 0;
        margin-bottom: 0;
        border-bottom: 2px solid transparent;
    }
    
    .test-switch-btn.active {
        border-bottom: 2px solid #222;
    }
    
    .tests-container {
        min-height: 400px;
        padding: 0px;
    }
    
    .test-card-wrapper .test-card h2 {
        font-size: 1.5rem;
    }
    
    .test-card-wrapper .test-description-short {
        font-size: 0.95rem;
        padding: 0px 30px 0px 30px;
    }
    
    .test-card-wrapper .btn {
        padding: 12px 0px;
        margin-bottom: 30px;
        font-size: 1rem;
    }
}

/* ===== БЛОК С ЦИКЛИЧЕСКИМИ ФРАЗАМИ ===== */
.hero-phrases-container {
    position: relative;
    height: 60px;
    margin: 0 auto 30px;
    max-width: 800px;
    overflow: hidden;
}

.hero-phrase {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ce1e21;
    font-size: 1.6rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 20px;
    box-sizing: border-box;
}

.hero-phrase.active {
    opacity: 1;
    transform: translateY(0);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .hero-phrases-container {
        height: 50px;
        margin: 0 auto 20px;
    }
    
    .hero-phrase {
        font-size: 1.2rem;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 0 15px;
        line-height: 1.3;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .hero-phrases-container {
        height: 60px;
    }
    
    .hero-phrase {
        font-size: 1.1rem;
        line-height: 1.2;
        padding: 0 10px;
    }
}

.authors-section {
    margin: 60px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.authors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.author-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius-block);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.author-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #222, var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.author-title {
    font-size: 1rem;
    color: var(--accent-red);
    margin-bottom: 20px;
    font-weight: 600;
}

.author-desc p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.author-desc .focus {
    font-style: italic;
    color: var(--text-dark);
    border-left: 3px solid var(--accent-red);
    padding-left: 15px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .authors-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}