/* ===== БАЗОВЫЕ СБРОСЫ И ПЕРЕМЕННЫЕ ===== */
* {
    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: #e94a75;      /* новый красный как вы просили */
    --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);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-block {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.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;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding-bottom: 5px;
    transition: color 0.2s ease;
    position: relative;
}

.main-nav a:hover {
    color: #420a0a;
}

.main-nav a.active {
    color: var(--text-dark);
    border-bottom: 2px solid var(--text-dark);
}

.header-actions .btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
    border-radius: var(--border-radius-btn);
}

/* ===== ОСНОВНЫЕ КНОПКИ ===== */
.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;
}

/* Специальные кнопки */
.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 {
    background: linear-gradient(135deg, var(--text-dark) 0%, #a71515 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.3px;
}

h1.gradient-heading {
    font-size: 3.2rem;
    line-height: 1.2;
}

h2.gradient-heading {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

h3.gradient-heading {
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-align: center;
    background: linear-gradient(135deg, #222 0%, #942020 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== ГЛАВНАЯ СТРАНИЦА ===== */
.hero {
    text-align: center;
    padding: 60px 0 40px;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #222 0%, #801b1b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.result-header h1 {
    font-size: 2.5rem; /* меньший размер */
    margin-bottom: 15px;
    font-weight: 600;
    background: linear-gradient(135deg, #222 0%, var(--accent-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.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;
    padding: 30px 0 50px;
}

.test-card {
    background: var(--bg-white);
    padding: 30px 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::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 4px;
    background: #420a0a;
    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%);
}

.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: #420a0a;
    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; /* центрируем текст кнопки */
}

.test-card .btn:hover {
    color: #420a0a;
    border-color: #420a0a;
    background: transparent;
}

/* Блок с консультацией */
.consultation-block {
    background: var(--bg-white);
    padding: 50px 40px;
    border-radius: var(--border-radius-block);
    margin: 30px 0 50px;
    text-align: center;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.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 30px;
    background: var(--accent-red);
    color: white;
    border: none;
}

.consultation-content .btn:hover {
    background: #d43d66;
    color: white;
}

/* Информационный блок */
.info-block {
    margin: 30px 0 50px;
    padding: 20px 0;
}

.info-content {
    max-width: 800px;
    margin: 0 auto;
    background: transparent; /* убрали фон */
    padding: 0;
}

.info-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.info-content p:last-child {
    margin-bottom: 0;
}

.info-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

.consultation-block h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #222 0%, #a71515 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.consultation-block p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.consultation-block .btn {
    display: inline-block;
    padding: 14px 42px;
    background: #392222;
    color: white;
    border: none;
    border-radius: var(--border-radius-btn);
    font-weight: 600;
    font-size: 1.1rem;
    white-space: nowrap;
    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-image: linear-gradient(145deg, #392222, #4a2a2a);
    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: 10px;
    background: linear-gradient(135deg, #222 0%, #a71515 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    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;
    /* scrollbar-width: thin; - удалить */
    /* scrollbar-color: var(--accent-red) var(--border-light); - удалить */
    padding: 10px 5px 20px;
    cursor: grab;
}

.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: 18px;
    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: #420a0a;
    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);
}

.marathon-review-form h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-align: center;  /* добавляем */
    background: linear-gradient(135deg, #222 0%, #a71515 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    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;
}

.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: #392222;  /* сплошной цвет */
    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: #4a2a2a;  /* просто чуть светлее */
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(57, 34, 34, 0.5);
    transform: translateY(-1px);
}


/* Красная плашка перед футером */
.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;
}

.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: 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;
    background: linear-gradient(135deg, #222 0%, var(--accent-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    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;
}

.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: #420a0a;
    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: #420a0a;
    margin: 0;
}

.instruction-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #420a0a;
    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);
}

.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;
}

.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);
}

.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.8;
    color: #4b1818;
    margin: 0 auto;
    background: #f0f3f7;
    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: #420a0a;
}

.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;
    max-width: 250px; /* ограничиваем ширину текста для лучшей читаемости */
}

.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) {
    .test-header-compact {
        flex-direction: column;
        align-items: flex-start;
    }

    .wheel-container canvas {
        max-width: 240px;
        max-height: 240px;
    }

    .wheel-container {
        min-height: 260px;
    }
    
    .main-nav ul {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    h1.gradient-heading,
    .hero h1 {
        font-size: 2.4rem;
    }
    
    h2.gradient-heading,
    .reviews-section h2,
    .consultation-block h3 {
        font-size: 1.9rem;
    }
    
    .tests-grid {
        grid-template-columns: 1fr;
    }
    
    .consultation-block {
        padding: 40px 20px;
    }
    
    .review-card {
        min-width: 260px;
    }
    
    .marathon-review-form {
        padding: 30px 20px;
    }
}

@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: 50px 0;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 10px;
}

.faq-question {
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.2s;
}

.faq-question:hover {
    color: #420a0a;
}

.faq-toggle {
    font-size: 1.5rem;
    color: #131111;
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-light);
    line-height: 1.7;
    padding: 0 20px 0 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 20px;
}

.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;
    background: linear-gradient(135deg, #222 0%, #741414 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    padding: 0 20px;
    margin-bottom: 5px;
    margin-top: 10px;
}

/* ===== СТРАНИЦА РЕЗУЛЬТАТОВ ===== */

/* Блок 1. Заголовок */
.result-header {
    text-align: center;
    margin-bottom: 50px;
    margin-top: 40px; /* добавить эту строку */
    background: #2f2b2b;
    padding: 45px;
    border-radius: var(--border-radius-block);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.result-category {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-score {
    font-size: 1.3rem;
    color: #180c0c;
    font-weight: 600;
    margin-bottom: 25px;
    padding: 8px 20px;
    background: #ffffff;
    display: inline-block;
    border-radius: 40px;
}

/* Блок 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);
}

.result-trigger h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.trigger-content {
    max-width: 800px;
    margin: 0 auto;
}

.trigger-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
    background: #ffffff;
    border-radius: var(--border-radius-block);
    padding: 15px 20px;
}

.trigger-content .highlight {
    color: #393636;
    font-weight: 500;
    padding: 15px 20px;
    background: #ffffff;
    border-radius: var(--border-radius-block);
}

/* Блок 4. Привязка к марафону */
.result-marathon {
    margin-bottom: 40px;
}

.result-marathon h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.marathon-desc {
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
    color: var(--text-light);
    line-height: 1.8;
}

.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 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 15px;
}

.actions-row .btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 15px;
    text-align: center;
    line-height: 1.4;
    height: auto;
}

.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;
    overflow: hidden;
}

.spoiler-header {
    padding: 18px 25px;
    background: var(--bg-light-blue);
    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 .video-placeholder {
    padding: 25px;
    background: var(--bg-main);
    color: var(--text-light);
}

/* Блок 7. Email */
.result-email {
    background: #2f2b2b;
    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: #2f2b2b;
    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-share h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #ffffff;
}

.share-buttons {
    display: flex;
    gap: 15px;
}

.share-btn {
    padding: 8px 25px;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-btn);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s;
}

.share-btn:hover {
    border-color: #fafafa;
    color: #ffffff;
}

/* Адаптация под мобильные */
@media (max-width: 992px) {
    .result-spheres-row,
    .actions-row,
    .marathon-grid {
        grid-template-columns: 1fr;
    }
    
    .result-category {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .result-header {
        padding: 30px 20px;
    }
    
    .result-category {
        font-size: 1.6rem;
    }
    
    .result-email {
        flex-direction: column;
        align-items: stretch;
    }
    
    .email-form {
        max-width: 100%;
    }
    
    .result-share {
        flex-direction: column;
        align-items: stretch;
    }
    
    .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: 30px;
    margin-bottom: 10px;
}

.marathon-trial .btn-primary {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 40px;
    margin: 40px 40px; /* отступы сверху и снизу */
    background: #9b2c2c;
    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;
}

.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 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.review-form-container h4 {
    text-align: center;
    
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #fafafa;
    font-weight: 600;
}

.review-form-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: #2f2b2b;
    padding: 20px 0;
}

.review-form {
    max-width: 600px;
    margin: 0 auto;
    
}

.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;
}