/* ============================================================
   Профориентационный тест — дизайн-система
   ============================================================ */

:root {
    /* Брендовый (декоративный) градиент */
    --brand-1: #6366f1;
    --brand-2: #8b5cf6;
    --brand-3: #a855f7;
    /* Фон страницы (глубже — чтобы белый текст читался) */
    --page-1: #4f46e5;
    --page-2: #7c3aed;

    /* Действия/интерактив: контраст с белым ≥ 4.5:1 */
    --action-1: #4f46e5;
    --action-2: #7c3aed;
    --action-solid: #4f46e5;

    /* Поверхности и текст */
    --surface: #ffffff;
    --surface-muted: #f6f7fb;
    --surface-tint: #f0f1fe;
    --border: #e5e7eb;
    --border-strong: #d1d5db;

    --text: #1f2937;
    --text-muted: #4b5563;
    --text-subtle: #6b7280;      /* placeholder — ≥ 4.5:1 на белом */
    --on-accent: #ffffff;

    --focus-ring: #4f46e5;

    /* Скругления */
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-pill: 999px;

    /* Тени (слоистые) */
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.10);
    --shadow-md: 0 4px 6px rgba(16, 24, 40, 0.05), 0 10px 20px rgba(16, 24, 40, 0.08);
    --shadow-lg: 0 12px 24px rgba(16, 24, 40, 0.10), 0 24px 48px rgba(79, 70, 229, 0.12);
    --shadow-focus: 0 0 0 4px rgba(79, 70, 229, 0.18);

    /* Движение */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --dur-fast: 0.18s;
    --dur: 0.3s;

    /* Типографика */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    /* Заголовки — тот же Inter (полное покрытие казахских глифов), но крупным весом.
       Manrope в сборке Google Fonts не содержит ряд казахских букв (Ә Ғ Қ Ң Ұ), поэтому не используется. */
    --font-display: var(--font-body);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text);
    background: linear-gradient(135deg, var(--page-1) 0%, var(--page-2) 100%);
    min-height: 100vh;
    min-height: 100svh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

/* Статичный «aurora»-фон для глубины (без анимации: щадит GPU/батарею) */
body::before,
body::after {
    content: '';
    position: fixed;
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.5;
}

body::before {
    width: 45vw;
    height: 45vw;
    top: -10vw;
    left: -8vw;
    background: radial-gradient(circle at center, rgba(168, 85, 247, 0.55), transparent 70%);
}

body::after {
    width: 40vw;
    height: 40vw;
    bottom: -12vw;
    right: -6vw;
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.40), transparent 70%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
    padding-top: max(24px, calc(env(safe-area-inset-top) + 78px));
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Общая типографика */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* ============================================================
   Переключатель языка
   ============================================================ */
.lang-switcher {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    z-index: 1000;
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: var(--r-pill);
    padding: 5px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lang-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 14px;
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
    line-height: 1;
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--action-1), var(--action-2));
    color: var(--on-accent);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

@media (hover: hover) and (pointer: fine) {
    .lang-btn:not(.active):hover {
        color: var(--text);
        background: rgba(79, 70, 229, 0.08);
    }
}

/* ============================================================
   Шапка
   ============================================================ */
.header {
    text-align: center;
    margin-bottom: 40px;
    color: #fff;
}

.title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    margin-bottom: 14px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}

.subtitle {
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.94);
    max-width: 620px;
    margin: 0 auto;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
}

/* ============================================================
   Основная сетка
   ============================================================ */
.main {
    flex: 1;
    display: grid;
    gap: 32px;
    grid-template-columns: 1fr;
    align-items: start;
}

/* ============================================================
   Карточка регистрации
   ============================================================ */
.registration-card {
    background: var(--surface);
    border-radius: var(--r-xl);
    padding: clamp(24px, 4vw, 40px);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.card-title {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--text);
    text-align: center;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 15px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: var(--surface);
    transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
    min-height: 48px;
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 44px;
}

.form-input:hover,
.form-select:hover {
    border-color: var(--border-strong);
}

.form-input:focus,
.form-select:focus,
.form-input:focus-visible,
.form-select:focus-visible {
    outline: none;
    border-color: var(--focus-ring);
    box-shadow: var(--shadow-focus);
}

.form-input:user-invalid {
    border-color: #dc2626;
}

.form-input::placeholder {
    color: var(--text-subtle);
}

/* ============================================================
   Кнопки
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    border: none;
    border-radius: var(--r-md);
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-display);
    cursor: pointer;
    transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-height: 50px;
    -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--action-1) 0%, var(--action-2) 100%);
    color: var(--on-accent);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.32);
}

.btn-secondary {
    background: var(--surface-muted);
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-icon {
    font-size: 1.15rem;
    transition: transform var(--dur) var(--ease);
}

.btn:active {
    transform: translateY(1px);
}

@media (hover: hover) and (pointer: fine) {
    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 26px rgba(79, 70, 229, 0.42);
    }
    .btn-secondary:hover {
        background: #eceef3;
        transform: translateY(-2px);
    }
    .btn:hover .btn-icon {
        transform: translateX(4px);
    }
}

/* ============================================================
   Инфо-секция
   ============================================================ */
.info-section {
    color: #fff;
}

.info-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 22px;
    text-align: center;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
}

.features {
    display: grid;
    gap: 18px;
}

.feature {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--r-lg);
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}

@media (hover: hover) and (pointer: fine) {
    .feature:hover {
        transform: translateY(-4px);
        background: rgba(255, 255, 255, 0.18);
    }
}

.feature-icon {
    font-size: 2.4rem;
    margin-bottom: 14px;
    line-height: 1;
}

.feature h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.feature p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
}

/* ============================================================
   Экран теста
   ============================================================ */
.test-container {
    background: var(--surface);
    border-radius: var(--r-xl);
    padding: clamp(24px, 4vw, 40px);
    box-shadow: var(--shadow-lg);
    max-width: 820px;
    width: 100%;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.test-header {
    margin-bottom: 28px;
}

.test-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.block-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.block-name {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--action-solid);
    background: var(--surface-tint);
    padding: 6px 12px;
    border-radius: var(--r-pill);
}

.question-counter {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.counter-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.answered-text {
    font-size: 0.85rem;
    color: var(--text-subtle);
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--border);
    border-radius: var(--r-pill);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--brand-1), var(--brand-2), var(--brand-3));
    border-radius: var(--r-pill);
    transition: width 0.45s var(--ease);
}

.question-container {
    margin-bottom: 32px;
}

.question-text {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.4vw, 1.4rem);
    font-weight: 700;
    margin-bottom: 22px;
    line-height: 1.4;
    color: var(--text);
    letter-spacing: 0;
    outline: none;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.answer-option {
    display: flex;
    align-items: center;
    padding: 16px 52px 16px 18px;   /* место справа под индикатор */
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
    background: var(--surface);
    position: relative;
    min-height: 56px;
    overflow-wrap: anywhere;
}

.answer-option:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
    border-color: var(--focus-ring);
}

@media (hover: hover) and (pointer: fine) {
    .answer-option:hover {
        border-color: var(--brand-1);
        background: var(--surface-muted);
    }
}

.answer-option.selected {
    border-color: var(--action-solid);
    background: var(--surface-tint);
    box-shadow: inset 0 0 0 1px var(--action-solid);
}

.answer-option::before {
    content: '';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%) scale(0.6);
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-strong);
    border-radius: 50%;
    background: transparent;
    opacity: 0;
    transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.answer-option.selected::before {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    border-color: var(--action-solid);
    background:
        radial-gradient(circle, #fff 0 34%, transparent 36%),
        var(--action-solid);
}

.answer-option .answer-label {
    font-weight: 500;
    flex: 1;
    user-select: none;
    color: var(--text);
}

.navigation-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    margin-top: 28px;
}

/* ============================================================
   Экран результатов (оптимизирован под печать A4)
   ============================================================ */
.results-container {
    background: var(--surface);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    padding: clamp(1.25rem, 4vw, 2.5rem);
    max-width: 210mm;
    margin: 0 auto;
    position: relative;
    font-size: 1rem;
    line-height: 1.55;
    overflow: hidden;
}

.results-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--brand-1) 0%, var(--brand-2) 50%, var(--brand-3) 100%);
}

.results-container h1 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: clamp(1.9rem, 5vw, 2.6rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--brand-1);
}

.results-container .subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    text-shadow: none;
}

.result-section {
    margin-bottom: 1.75rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--surface);
    position: relative;
    overflow: hidden;
}

.result-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-1) 0%, var(--brand-2) 100%);
}

.result-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text);
    border-bottom: 2px solid var(--surface-tint);
    padding-bottom: 0.5rem;
}

.result-content {
    line-height: 1.6;
    color: var(--text);
    overflow-wrap: anywhere;
}

.result-content p {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    background: var(--surface-muted);
    border-left: 3px solid var(--brand-1);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.result-content strong {
    color: var(--text);
    font-weight: 700;
    display: inline-block;
    margin-bottom: 0.35rem;
}

.result-content ul {
    margin: 1.25rem 0;
    padding-left: 0;
    list-style: none;
}

.result-content li {
    margin-bottom: 0.6rem;
    padding: 0.75rem 0.75rem 0.75rem 1.75rem;
    background: var(--surface-muted);
    border-left: 3px solid var(--brand-1);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    position: relative;
}

.result-content li::before {
    content: '•';
    color: var(--brand-1);
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0.6rem;
    top: 0.55rem;
}

/* План недели */
.weekly-plan {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 1rem 1.15rem;
    margin: 1rem 0;
}

.weekly-plan h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--surface-tint);
}

.plan-day {
    margin-bottom: 0.85rem;
    padding: 0.8rem 0.9rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--brand-1);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.plan-day:last-child {
    margin-bottom: 0;
}

.day-header {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--action-solid);
    margin-bottom: 0.35rem;
}

.day-content {
    color: var(--text-muted);
    line-height: 1.5;
}

.mbti-type {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 3rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--action-solid);
    text-align: center;
    margin: 1.5rem 0;
    padding: 1.75rem;
    background: linear-gradient(135deg, var(--surface-tint) 0%, #e8ecff 100%);
    border-radius: var(--r-lg);
    border: 2px solid #e2e6ff;
    box-shadow: 0 6px 24px rgba(79, 70, 229, 0.12);
    position: relative;
    overflow: hidden;
}

.riasec-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 0.85rem;
    margin: 1.5rem 0;
}

.riasec-item {
    text-align: center;
    padding: 1rem 0.5rem;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    min-height: 84px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
}

.riasec-score {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--action-solid);
    line-height: 1;
}

.riasec-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    overflow-wrap: anywhere;
    max-width: 100%;
}

.riasec-recommendations {
    margin-top: 0.5rem;
}

.results-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 0.5rem;
}

.results-actions .btn {
    flex: 1 1 200px;
}

/* ============================================================
   Служебные элементы
   ============================================================ */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

.message {
    padding: 14px 16px;
    border-radius: var(--r-md);
    margin-bottom: 20px;
    font-weight: 500;
}

.message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ============================================================
   Планшет / десктоп (mobile-first: единственный брейкпоинт)
   ============================================================ */
@media (min-width: 768px) {
    .container {
        padding: 32px 24px;
        padding-top: max(32px, calc(env(safe-area-inset-top) + 40px));
    }

    .header {
        margin-bottom: 48px;
    }

    .main {
        grid-template-columns: 1fr 1fr;
        gap: 56px;
    }

    .navigation-buttons {
        margin-top: 32px;
    }
}

/* ============================================================
   Анимации (только если пользователь не против движения).
   Контент виден по умолчанию — стартовое opacity:0 применяется
   лишь внутри no-preference, поэтому без анимаций ничего не прячется.
   ============================================================ */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes qIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes shineOnce {
    0%   { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}

@media (prefers-reduced-motion: no-preference) {
    .registration-card { animation: fadeInUp 0.55s var(--ease) both; }
    .info-section      { animation: fadeInUp 0.55s var(--ease) 0.08s both; }
    .feature           { animation: fadeInUp 0.5s var(--ease) both; }
    .feature:nth-child(1) { animation-delay: 0.14s; }
    .feature:nth-child(2) { animation-delay: 0.22s; }
    .feature:nth-child(3) { animation-delay: 0.30s; }

    .test-container    { animation: fadeInUp 0.45s var(--ease) both; }

    .question-container.q-animate { animation: qIn 0.35s var(--ease) both; }

    .results-container { animation: fadeInUp 0.45s var(--ease) both; }
    .result-section    { animation: fadeInUp 0.5s var(--ease) both; }
    .result-section:nth-of-type(1) { animation-delay: 0.06s; }
    .result-section:nth-of-type(2) { animation-delay: 0.14s; }
    .result-section:nth-of-type(3) { animation-delay: 0.22s; }

    /* Одноразовый блик по MBTI-типу */
    .mbti-type::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 60%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
        transform: translateX(-120%);
        animation: shineOnce 1.1s var(--ease) 0.35s 1 both;
    }
}

/* ============================================================
   Уважение к prefers-reduced-motion: гасим всё несущественное движение
   (появления, transitions кнопок/полей, прогресс, spin).
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .loading { animation: none !important; }
    .progress-fill { transition: none !important; }
}

/* ============================================================
   Печать: единый финальный блок. Экран → чистый чёрно-белый A4.
   ============================================================ */
@media print {
    @page {
        size: A4;
        margin: 14mm;
    }

    :root {
        --text: #000;
        --text-muted: #000;
    }

    body {
        background: #fff !important;
        color: #000 !important;
        overflow: visible;
    }

    body::before,
    body::after {
        display: none !important;
    }

    .lang-switcher,
    .btn,
    .navigation-buttons {
        display: none !important;
    }

    .container {
        padding: 0;
        min-height: auto;
        max-width: none;
    }

    .results-container {
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        max-width: none;
        margin: 0;
        animation: none !important;
        overflow: visible;
    }

    .results-container::before {
        display: none;
    }

    .results-container h1 {
        color: #000 !important;
        -webkit-text-fill-color: #000 !important;
        background: none !important;
    }

    .results-container .subtitle {
        color: #000 !important;
    }

    /* Крупные блоки (секции, план) МОГУТ быть выше страницы — разрешаем разрыв,
       чтобы не появлялись большие пустоты. */
    .result-section {
        border: 1px solid #999;
        border-radius: 0;
        margin-bottom: 1.25rem;
        padding: 1rem;
        animation: none !important;
    }

    .result-section::before {
        display: none;
    }

    .result-title,
    .weekly-plan h4 {
        border-bottom: 1px solid #000;
        break-after: avoid;
        page-break-after: avoid;
    }

    .result-content p,
    .result-content li,
    .plan-day,
    .weekly-plan {
        background: #fff !important;
        border-color: #999 !important;
    }

    /* Разрыв запрещаем только для небольших атомарных блоков */
    .plan-day,
    .result-content li,
    .riasec-item {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .day-header,
    .block-name,
    .riasec-score,
    .mbti-type {
        color: #000 !important;
    }

    .mbti-type {
        background: #fff !important;
        border: 1px solid #000;
        box-shadow: none;
    }

    .mbti-type::after {
        display: none !important;
    }

    .riasec-chart {
        grid-template-columns: repeat(3, 1fr);
    }

    .riasec-item {
        border: 1px solid #999;
    }
}
