/* ========== ОБЩИЕ СТИЛИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #1a2b3c;
    line-height: 1.5;
}

/* Контейнеры */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

main {
    padding: 0;
}

/* Ссылки */
a, a:visited, a:hover {
    color: black;
    text-decoration: none;
}

/* ========== ШАПКА (общая для всех страниц) ========== */
.header {
    border-bottom: 1px solid #eaeef2;
    padding: 18px 0;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo-img {
    height: 26px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 36px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-menu a {
    color: #3d4a5a;
    font-weight: 500;
    font-size: 0.92rem;
    transition: color 0.2s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, #6a3cff, #4f7fff);
    border-radius: 2px;
    transition: width 0.25s;
}

.nav-menu a:hover { color: #6a3cff; }
.nav-menu a:hover::after { width: 100%; }

.lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f5f7fa;
    padding: 6px 12px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a2b3c;
    border: 1px solid #dce2e8;
    cursor: default;
}

.lang-selector i {
    font-size: 0.8rem;
    color: #6f7e8f;
}

/* ========== ПОДВАЛ (общий для всех страниц) ========== */
.footer {
    background: linear-gradient(160deg, #0d0f2b 0%, #12154a 100%);
    padding: 0;
    margin-top: 0;
}

.footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.translators {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.lang-circles {
    display: flex;
    gap: 8px;
}

.lang-circle {
    background-color: #f0ecff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #6a3cff;
    border: 1px solid #d4c8ff;
}

.translators p {
    color: #4a5b6b;
    font-size: 0.95rem;
}

.translators strong {
    color: #1a2b3c;
}

.footer-copy {
    color: #6f7e8f;
    font-size: 0.9rem;
}

/* ========== КНОПКИ ========== */
.btn-primary {
    background: linear-gradient(135deg, #6a3cff, #4f7fff);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    font-size: 0.97rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(106,60,255,0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(106,60,255,0.5);
    color: white;
}

.btn-secondary {
    background: #f0ecff;
    color: #6a3cff;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    border: 1.5px solid #d4c8ff;
    cursor: pointer;
    font-size: 0.97rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #e4daff;
    color: #5530e0;
}

/* ========== ГЛАВНАЯ СТРАНИЦА (index.html) ========== */
.hero {
    text-align: center;
    margin: 40px auto;
    max-width: 900px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    max-width: 600px;
    margin: 40px auto;
    letter-spacing: -0.02em;
    color: #0b1a2a;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #4a5b6b;
    max-width: 500px;
    margin: 40px auto;
}

/* Бейджи на главной */
.badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
}

.badge-button,
.badge {
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 20px auto;
}

.badge-button {
    background-color: #f0ecff;
    color: #6a3cff;
    padding: 12px 18px;
    border: 1px solid #d4c8ff;
    cursor: pointer;
}

.badge-button:hover {
    background-color: #dee9fd;
}

.badge-button:active {
    background-color: #9ebffd;
}

.badge {
    background-color: #ffffff;
    color: #6a3cff;
    padding: 8px 18px;
}

.badge i {
    font-size: 1rem;
}

/* Карточки особенностей (три карточки) */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 48px auto 56px;
    max-width: 900px;
}

.feature-card {
    background-color: #f9fbfd;
    padding: 28px 20px;
    border-radius: 24px;
    border: 1px solid #eaeef2;
    transition: box-shadow 0.2s;
}

.feature-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.02);
}

.feature-icon {
    background-color: #e6f0ff;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: #6a3cff;
    font-size: 1.4rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: #4a5b6b;
    font-size: 0.95rem;
}

/* Enterprise блок (тёмный градиент) */
.enterprise {
    background: linear-gradient(145deg, #0b1e33, #123456);
    color: white;
    padding: 48px 40px;
    border-radius: 32px;
    margin: 56px auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 900px;
}

.enterprise-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.enterprise-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 500px;
    margin-bottom: 20px;
}

.enterprise-tags {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.enterprise-tags span {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 40px;
    font-weight: 500;
}

.enterprise-button {
    background-color: white;
    color: #0b1e33;
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
    white-space: nowrap;
    margin-top: 20px;
}

.enterprise-button:hover {
    background-color: #f0ecff;
}

/* Статистика */
.stats {
    text-align: center;
    padding: 40px;
    margin: 48px auto;
    max-width: 900px;
}

.stats h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #0b1a2a;
}

.stats p {
    color: #4a5b6b;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 20px auto;
}

/* ========== СТРАНИЦА ТЕСТА (test.html) ========== */
.test-area {
    flex: 1;
    padding: 20px 0 30px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 140px);
    max-height: calc(100vh - 140px);
    max-width: 800px;
    margin: 0 auto;
}

.test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 5px;
    flex-shrink: 0;
}

.timer {
    font-size: 18px;
    font-weight: 600;
    color: #4A3AFF;
    background: #EEF0FF;
    padding: 8px 16px;
    border-radius: 40px;
    display: flex;
    align-items: center;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 70%;
}

.progress-bar-bg {
    flex: 1;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: #4A3AFF;
    border-radius: 20px;
    transition: width 0.3s ease;
}

.progress-percent {
    font-weight: 600;
    color: #4A3AFF;
    min-width: 45px;
}

#questions-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

/* Карточка вопроса */
.question-card {
    background: white;
    border-radius: 16px;
    padding: 16px 20px;
    border: 1px solid #eaeef2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.question-card:last-child {
    border-bottom: none;
}

.question-text {
    font-size: 15px;
    font-weight: 500;
    color: #1a2b3c;
    line-height: 1.45;
}

/* Шкала ответов */
.rating-scale {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.scale-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 4px;
    border-radius: 10px;
    border: 1.5px solid #e8eaf0;
    background: white;
    cursor: pointer;
    transition: all 0.15s ease;
    gap: 6px;
}

.scale-item:hover {
    border-color: #6a3cff;
    background: #f7f4ff;
}

.scale-item.selected {
    border-color: #6a3cff;
    background: #f0ecff;
}

.scale-item.selected .scale-circle {
    background: #6a3cff;
    border-color: #6a3cff;
}

.scale-item:hover .scale-circle {
    border-color: #6a3cff;
}

.scale-item.selected .scale-label {
    color: #6a3cff;
}

.scale-item:hover .scale-label {
    color: #6a3cff;
}

.scale-label {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.3;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.scale-circle {
    width: 18px;
    height: 18px;
    border: 2px solid #d0d5e0;
    border-radius: 50%;
    background: white;
    flex-shrink: 0;
    transition: all 0.15s;
}

/* ========== СТРАНИЦА РЕЗУЛЬТАТОВ (result.html) ========== */
.results-header {
    text-align: center;
    margin-bottom: 48px;
}

.results-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #0b1a2a;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.results-header p {
    font-size: 1.2rem;
    color: #4a5b6b;
    max-width: 600px;
    margin: 0 auto 20px auto; /* Добавил отступ снизу */
}

.badge-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.results-header .badge {
    background-color: #f0ecff;
    color: #6a3cff;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    border: 1px solid #d4c8ff;
    line-height: 1.4;
    text-align: center;
}

.results-header .badge i {
    margin-right: 8px;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(145deg, #0b1e33, #123456);
    color: white !important;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid #2a3f5a;
    transition: 0.2s;
    white-space: nowrap;
}

.premium-badge:hover {
    background: linear-gradient(145deg, #1a334d, #224870);
    transform: translateY(-1px);
}

.premium-badge i {
    color: #ffd700;
}

.result-card {
    background: #f9fbfd;
    border: 1px solid #eaeef2;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 16px;
    transition: box-shadow 0.2s;
}

.result-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.02);
}

.scale-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.scale-icon {
    width: 36px;
    height: 36px;
    background: #e6f0ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6a3cff;
    font-size: 1rem;
    flex-shrink: 0;
}

.scale-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0b1a2a;
}

.score-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.score-label-min,
.score-label-max {
    font-weight: 600;
    color: #4a5b6b;
    font-size: 0.9rem;
    min-width: 60px;
}

.score-label-max {
    text-align: right;
}

.score-bar-bg {
    flex: 1;
    height: 12px;
    background: #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    background: #6a3cff;
    border-radius: 20px;
    transition: width 0.5s ease;
}

.score-value {
    text-align: center;
    margin-bottom: 12px;
}

.score-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: #6a3cff;
}

.score-max {
    font-size: 1rem;
    color: #4a5b6b;
}

.interpretation {
    background: white;
    border: 1px solid #eaeef2;
    border-radius: 12px;
    padding: 12px 16px;
    color: #1a2b3c;
    line-height: 1.6;
    border-left: 3px solid #6a3cff;
    margin-top: 12px;
    font-size: 0.9rem;
}

.interpretation i {
    color: #6a3cff;
    margin-right: 8px;
}

.aspects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.aspect-card {
    background: #f9fbfd;
    border: 1px solid #eaeef2;
    border-radius: 20px;
    padding: 20px;
    transition: box-shadow 0.2s;
}

.aspect-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.02);
}

.aspect-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #0b1a2a;
}

.aspect-score {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.aspect-bar-bg {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
}

.aspect-bar-fill {
    height: 100%;
    background: #6a3cff;
    border-radius: 20px;
}

.aspect-value {
    font-weight: 600;
    min-width: 35px;
    color: #6a3cff;
}

.aspect-desc {
    font-size: 0.9rem;
    color: #4a5b6b;
    line-height: 1.5;
}

.recommendation-block {
    margin-top: 20px;
}

.recommendation-block h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #0b1a2a;
}

.recommendation-block p {
    margin-bottom: 16px;
}

.recommendation-highlight {
    font-weight: 600;
    color: #6a3cff;
}

.warning-message {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 16px 20px;
    border-radius: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.warning-message i {
    font-size: 24px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 32px 0 16px;
    color: #0b1a2a;
}

.empty-state {
    background: #f9fbfd;
    border: 1px solid #eaeef2;
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
}

.empty-state i {
    font-size: 48px;
    color: #6a3cff;
    margin-bottom: 20px;
}

.empty-state h2 {
    font-size: 2rem;
    color: #0b1a2a;
    margin-bottom: 16px;
}

.empty-state p {
    color: #4a5b6b;
    margin-bottom: 24px;
}

.premium-block {
    background: linear-gradient(145deg, #0d0f2b, #1a0a3d, #12154a);
    color: white;
    border-radius: 32px;
    padding: 48px 40px;
    margin: 40px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.premium-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.premium-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 800px;
    margin-bottom: 20px;
}

.premium-tags {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.premium-tags span {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 40px;
    font-weight: 500;
}

.premium-button {
    background: linear-gradient(135deg, #6a3cff, #4f7fff);
    color: #fff !important;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
    white-space: nowrap;
    display: inline-block;
    margin-top: 18px;
}

.premium-button:hover,
.premium-button:visited {
    opacity: 0.88;
    color: #fff !important;
}

/* ========== СТРАНИЦА ПРЕМИУМ-ОТЧЁТА (premium-report.html) ========== */
.premium-report-container {
    max-width: 900px;
    margin: 48px auto;
    padding: 0 24px;
}

.premium-report-header {
    text-align: center;
    margin-bottom: 48px;
}

.premium-report-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #0b1a2a;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.premium-report-header p {
    font-size: 1.2rem;
    color: #4a5b6b;
    max-width: 600px;
    margin: 0 auto;
}

.report-section {
    background: #f9fbfd;
    border: 1px solid #eaeef2;
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 24px;
    transition: box-shadow 0.2s;
}

.report-section:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.02);
}

.report-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0b1a2a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eaeef2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-section h2 i {
    color: #6a3cff;
    font-size: 1.8rem;
}

.report-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #6a3cff;
    margin: 24px 0 16px;
}

.report-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a2b3c;
    margin: 20px 0 12px;
}

.report-section p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #1a2b3c;
    margin-bottom: 16px;
}

.report-section ul,
.report-section ol {
    margin: 16px 0 20px 20px;
    padding-left: 20px;
}

.report-section li {
    margin-bottom: 10px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #1a2b3c;
}

.report-section li::marker {
    color: #6a3cff;
    font-weight: 600;
}

.report-section strong {
    color: #6a3cff;
    font-weight: 600;
}

.report-section em {
    font-style: italic;
    color: #4a5b6b;
}

.highlight-box {
    background: white;
    border-left: 4px solid #6a3cff;
    padding: 20px;
    border-radius: 12px;
    margin: 24px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.badge-profession {
    display: inline-block;
    background: #f0ecff;
    color: #6a3cff;
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 8px;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.progress-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
}

.progress-circle svg {
    width: 120px;
    height: 120px;
    transform: rotate(-90deg);
}

.progress-circle circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
}

.progress-circle .bg-circle {
    stroke: #eaeef2;
}

.progress-circle .progress-circle-fill {
    stroke: #6a3cff;
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    transition: stroke-dashoffset 0.3s ease;
}

.progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    font-weight: 700;
    color: #6a3cff;
}

.status-message {
    font-size: 1.2rem;
    color: #4a5b6b;
    transition: opacity 0.5s ease;
    opacity: 1;
}

.status-message.fade-out {
    opacity: 0;
}

.error-message {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
}

.retry-button {
    background: #6a3cff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
}

.premium-report-footer {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

.premium-report-footer .btn-primary,
.premium-report-footer .btn-secondary {
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.premium-report-footer .btn-primary {
    background: #6a3cff;
    color: white;
}

.premium-report-footer .btn-primary:hover {
    background: #5530e0;
}

.premium-report-footer .btn-secondary {
    background: #f0ecff;
    color: #6a3cff;
    border: 1px solid #d4c8ff;
}

.premium-report-footer .btn-secondary:hover {
    background: #dee9fd;
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ========== СТРАНИЦА ДОПОЛНИТЕЛЬНЫХ ВОПРОСОВ (additional-questions.html) ========== */
.additional-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Переопределяем стили карточек для дополнительных вопросов */
.additional-container .question-card {
    padding: 24px 24px;
    margin-bottom: 24px;
    min-height: auto;
    max-height: none;
    height: auto;
}

.additional-container .question-text {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #1a2b3c;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-height: none;
    overflow: visible;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
}

.additional-container .rating-scale {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.additional-container .scale-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 0;
    min-width: 70px;
    padding: 8px 4px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.additional-container .scale-item.selected {
    background-color: #f0ecff;
}

.additional-container .scale-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #4a5b6b;
    margin-bottom: 6px;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.additional-container .scale-circle {
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    border-radius: 50%;
    transition: all 0.2s;
    background-color: white;
    flex-shrink: 0;
}

.additional-container .scale-item.selected .scale-circle {
    background-color: #6a3cff;
    border-color: #6a3cff;
}

/* Прогресс-индикатор на странице дополнительных вопросов */
.progress-indicator {
    text-align: center;
    color: #4a5b6b;
    margin-top: 20px;
}

/* ========== СТРАНИЦА О МЕТОДИКЕ (methodology.html) ========== */
.methodology-hero {
    text-align: center;
    margin: 60px auto 40px;
    max-width: 900px;
}

.methodology-hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    max-width: 800px;
    margin: 30px auto;
    letter-spacing: -0.02em;
    color: #0b1a2a;
}

.methodology-hero p {
    font-size: 1.3rem;
    color: #4a5b6b;
    max-width: 700px;
    margin: 30px auto;
}

.intro-block {
    background: #f9fbfd;
    border: 1px solid #eaeef2;
    border-radius: 32px;
    padding: 40px;
    margin: 40px auto;
    max-width: 900px;
}

.intro-block p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #1a2b3c;
}

/* Таблица факторов */
.factors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 40px 0;
}

.factor-card {
    background: #f9fbfd;
    border: 1px solid #eaeef2;
    border-radius: 24px;
    padding: 24px;
    transition: box-shadow 0.2s;
}

.factor-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.02);
}

.factor-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.factor-icon {
    width: 48px;
    height: 48px;
    background: #e6f0ff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6a3cff;
    font-size: 1.4rem;
}

.factor-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0b1a2a;
}

.aspects-row {
    display: flex;
    gap: 20px;
    margin-top: 12px;
}

.aspect-item {
    flex: 1;
}

.aspect-item strong {
    display: block;
    font-size: 1rem;
    color: #6a3cff;
    margin-bottom: 4px;
}

.aspect-item span {
    font-size: 0.95rem;
    color: #4a5b6b;
}

/* Блоки с иконками для дополнительных измерений */
.extra-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.extra-card {
    background: #f9fbfd;
    border: 1px solid #eaeef2;
    border-radius: 24px;
    padding: 28px;
}

.extra-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #0b1a2a;
}

.extra-card ul {
    list-style-type: none;
    padding: 0;
}

.extra-card li {
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
    color: #4a5b6b;
}

.extra-card li:before {
    content: "✨";
    position: absolute;
    left: 0;
    color: #6a3cff;
}

/* Блок про ИИ (как enterprise на главной) */
.ai-block {
    background: linear-gradient(145deg, #0b1e33, #123456);
    color: white;
    border-radius: 32px;
    padding: 48px 40px;
    margin: 60px 0;
}

.ai-block h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.ai-block p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 800px;
    margin-bottom: 20px;
}

.ai-block ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.ai-block li {
    background: rgba(255,255,255,0.1);
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 500;
}

/* Структура отчета — нумерованный список в стиле карточек */
.report-steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
    counter-reset: step-counter;
}

.step-card {
    background: #f9fbfd;
    border: 1px solid #eaeef2;
    border-radius: 24px;
    padding: 28px;
    counter-increment: step-counter;
    position: relative;
}

.step-card:before {
    content: counter(step-counter);
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    font-weight: 700;
    color: #e6f0ff;
    line-height: 1;
}

.step-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0b1a2a;
    position: relative;
    z-index: 1;
}

.step-card p {
    color: #4a5b6b;
    position: relative;
    z-index: 1;
}

/* Блок преимуществ */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.trust-card {
    background: #f9fbfd;
    border: 1px solid #eaeef2;
    border-radius: 24px;
    padding: 28px;
}

.trust-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #6a3cff;
    margin-bottom: 12px;
}

/* Кнопка призыва на странице методики */
.cta-button {
    display: inline-block;
    border: 2px solid #5530e0;
    color: #5530e0;
    padding: 18px 48px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.cta-button:hover {
    background: #5530e0;
    color: white;
    transform: translateY(-2px);
}

/* ========== ПОПАП (для страницы test.html) ========== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.popup {
    background-color: white;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    padding: 32px;
    text-align: left;
}

.popup h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #0b1a2a;
    text-align: center;
}

.popup p {
    font-size: 1rem;
    line-height: 1.6;
    color: #4a5b6b;
    margin-bottom: 20px;
}

.popup ul {
    margin-bottom: 24px;
    padding-left: 20px;
    color: #4a5b6b;
}

.popup li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.popup-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

.popup-btn {
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    flex: 1;
    max-width: 150px;
}

.popup-btn-secondary {
    background-color: white;
    color: #4A3AFF;
    border: 2px solid #4A3AFF;
}

.popup-btn-secondary:hover {
    background-color: #f0f0ff;
}

.popup-btn-primary {
    background-color: #4A3AFF;
    color: white;
    border: 2px solid #4A3AFF;
}

.popup-btn-primary:hover {
    background-color: #3325cc;
    border-color: #3325cc;
}

/* ========== МЕДИА-ЗАПРОСЫ ========== */
@media (max-width: 900px) {
    .features,
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .enterprise {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .aspects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .aspect-card {
        padding: 16px;
    }
    
    .aspect-title {
        font-size: 1.1rem;
    }
    
    .result-card {
        padding: 24px;
    }
    
    .scale-title {
        font-size: 1.3rem;
    }
    
    .interpretation {
        padding: 16px;
        font-size: 0.95rem;
    }
    
    .hero {
        margin-top: 40px;
        margin-bottom: 40px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        margin: 30px auto;
    }
    
    .hero h2 {
        font-size: 1.2rem;
        margin: 30px auto;
    }
    
    .badge-group {
        margin-bottom: 30px;
    }
    
    .features {
        margin: 30px 0 40px;
    }
    
    .enterprise {
        padding: 40px 24px;
    }
    
    .enterprise-content h3 {
        font-size: 1.8rem;
    }
    
    .enterprise-content p {
        font-size: 1rem;
    }
    
    .enterprise-tags {
        justify-content: center;
        gap: 16px;
    }
    
    .enterprise-button {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .stats h2 {
        font-size: 2.2rem;
    }
    
    .stats p {
        font-size: 1rem;
    }
    
    .factors-grid,
    .extra-grid,
    .trust-grid {
        grid-template-columns: 1fr;
    }
    
    .methodology-hero h1 {
        font-size: 2.5rem;
    }
    
    .ai-block {
        padding: 32px 24px;
    }
    
    .report-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 20px;
    }
    
    .premium-block {
        padding: 32px 24px;
        text-align: center;
    }
    
    .premium-content h3 {
        font-size: 1.6rem;
    }
    
    .premium-tags {
        justify-content: center;
        gap: 12px;
    }
    
    .premium-tags span {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .premium-button {
        margin-top: 24px;
        width: 100%;
        text-align: center;
    }
    
    .hero {
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        margin: 20px auto;
        max-width: 100%;
    }
    
    .hero h2 {
        font-size: 1.1rem;
        margin: 20px auto;
        max-width: 100%;
    }
    
    .badge-group {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .badge-button,
    .badge {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 10px 16px;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 20px 0 30px;
    }
    
    .feature-card {
        padding: 24px 16px;
        text-align: center;
    }
    
    .feature-icon {
        margin: 0 auto 18px;
    }
    
    .enterprise {
        padding: 32px 20px;
        gap: 20px;
    }
    
    .enterprise-content h3 {
        font-size: 1.6rem;
    }
    
    .enterprise-content p {
        font-size: 0.95rem;
    }
    
    .enterprise-tags {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .enterprise-tags span {
        width: 100%;
        justify-content: center;
        padding: 8px 12px;
    }
    
    .enterprise-button {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .stats {
        padding: 20px 10px;
        margin: 30px 0;
    }
    
    .stats h2 {
        font-size: 1.8rem;
    }
    
    .stats p {
        font-size: 0.95rem;
    }
    
    .footer {
        padding: 32px 0 24px;
        margin-top: 30px;
    }
    
    .footer .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .translators {
        flex-direction: column;
        gap: 12px;
    }
    
    .lang-circles {
        justify-content: center;
    }
    
    .footer-copy {
        text-align: center;
    }
    
    .additional-container .question-card {
        padding: 20px 16px;
    }
    
    .additional-container .question-text {
        font-size: 1rem;
    }
    
    .additional-container .scale-label {
        font-size: 0.75rem;
    }
    
    .additional-container .scale-item {
        min-width: 50px;
        padding: 6px 2px;
    }
    
    .additional-container .scale-circle {
        width: 20px;
        height: 20px;
    }
    
    .additional-container .rating-scale {
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .rating-scale {
        flex-wrap: nowrap;
        gap: 1px;
        justify-content: space-between;
    }
    
    .scale-item {
        flex: 1;
        padding: 1px 0;
        min-width: 0;
    }
    
    .scale-label {
        font-size: 8px;
        min-height: auto;
        margin-bottom: 2px;
        line-height: 1.1;
    }
    
    .scale-circle {
        width: 16px;
        height: 16px;
        border-width: 1px;
    }
    
    .question-card {
        padding: 8px 10px;
        min-height: auto;
        max-height: none;
    }
    
    .question-text {
        font-size: 12px;
        -webkit-line-clamp: 3;
        max-height: 50px;
        margin-bottom: 6px;
    }
    
    .navigation-buttons {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .nav-btn {
        padding: 6px 10px;
        min-width: 100px;
        font-size: 12px;
    }
    
    #page-indicator {
        order: -1;
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .test-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .timer {
        width: 100%;
        justify-content: center;
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .progress-container {
        width: 100%;
    }
    
    .popup {
        padding: 24px;
    }
    
    .popup h2 {
        font-size: 1.5rem;
    }
    
    .popup p,
    .popup li {
        font-size: 0.95rem;
    }
    
    .popup-btn {
        padding: 10px 16px;
        font-size: 0.95rem;
    }
}

@media (max-width: 400px) {
    .additional-container .scale-item {
        flex: 0 0 calc(50% - 4px);
        min-width: 0;
    }
}

@media (max-width: 360px) {
    .scale-label {
        font-size: 7px;
        line-height: 1;
        margin-bottom: 1px;
    }
    
    .scale-circle {
        width: 14px;
        height: 14px;
    }
    
    .rating-scale {
        gap: 0px;
    }
    
    .scale-item {
        padding: 0;
    }
    
    .question-card {
        padding: 6px 8px;
    }
    
    .question-text {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .nav-btn {
        min-width: 70px;
        padding: 4px 8px;
        font-size: 11px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .scale-item {
        padding: 4px 0;
    }
    
    .scale-label {
        font-size: 10px;
    }
    
    .question-card {
        padding: 14px;
    }
    
    .aspects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (hover: none) and (pointer: coarse) {
    .scale-item {
        padding: 8px 2px;
    }
    
    .nav-btn {
        padding: 14px 20px;
    }
}

/* ПРИНУДИТЕЛЬНОЕ РАСПОЛОЖЕНИЕ РЯДОМ */
.badge-wrapper {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
}

.badge-wrapper .badge {
    width: auto !important;
    max-width: fit-content !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

.badge-wrapper .premium-badge {
    width: auto !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}
/* ============================================
   НОВЫЙ FOOTER — ТРЁХКОЛОНОЧНАЯ СЕТКА
   ============================================ */

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 48px 0 32px;
    align-items: start;
}

.footer-brand p {
    font-size: 0.88rem;
    color: #8a9eb0;
    line-height: 1.5;
    max-width: 200px;
}

.footer-col-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8a9eb0;
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    font-size: 0.9rem;
    color: #c8d5e0;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.15s;
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    font-size: 0.82rem;
    color: #6a7e8e;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        padding: 40px 0 24px;
    }
    .footer-col:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
