/* Современный профессиональный дизайн */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f0f4f8 100%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    font-size: 16px;
}

/* Для страниц с hero-секцией убираем белый фон */
body:has(.hero-section) {
    background: transparent;
}

/* Для страниц без hero-секции */
body:not(:has(.hero-section)) {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f0f4f8 100%);
}

/* Навигация */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 24px;
    margin: 0;
    max-width: 100%;
    width: 100%;
    transition: padding 0.4s ease, background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.main-nav.scrolled {
    padding: 0;
}

.main-nav.scrolled .nav-container {
    border-radius: 0;
    margin: 0 auto;
    max-width: 100%;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: none;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.main-nav.scrolled .nav-container-bg {
    opacity: 0;
}

/* На страницах с hero-section навигация фиксированная */
body:has(.hero-section) .main-nav {
    position: fixed;
}

.nav-container {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-radius: 16px;
    padding: 14px 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 1400px;
    margin: 16px auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    min-height: 60px;
    position: relative;
    overflow: visible;
    transition: border-radius 0.4s ease, margin 0.4s ease, max-width 0.4s ease, background 0.4s ease, border 0.4s ease, box-shadow 0.4s ease;
}

.nav-container-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s ease, border-radius 0.4s ease;
}

/* Эффект зеркального отражения видео на навигационной панели */
body:has(.hero-section) .nav-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: transparent;
    pointer-events: none;
}

body:has(.hero-section) .nav-container-bg .nav-mirror-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scaleY(-1);
    opacity: 0.4;
    pointer-events: none;
    filter: blur(1px);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    justify-self: start;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.nav-logo:hover {
    text-decoration: none;
}

.logo-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-img {
    height: 40px;
    width: 40px;
    object-fit: contain;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    padding: 3px;
    border: 2px solid rgba(255,255,255,0.15);
    transition: border-color 0.3s ease;
}

.nav-logo:hover .logo-img {
    border-color: rgba(56,189,248,0.4);
}

.logo-text {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    letter-spacing: -0.01em;
    line-height: 1.2;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 6px;
    align-items: center;
    margin: 0;
    padding: 0;
    justify-content: center;
    justify-self: center;
    height: 100%;
    flex-wrap: nowrap;
    position: relative;
    z-index: 1;
}

.nav-menu li {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-menu li + li::before {
    content: '';
    display: block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    margin-right: 2px;
    flex-shrink: 0;
}

.nav-menu li.nav-user + li::before,
.nav-menu li + li.nav-user::before {
    display: none;
}

.nav-menu a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 13.5px;
    font-weight: 500;
    position: relative;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    line-height: 1.4;
    flex-shrink: 0;
    letter-spacing: 0.01em;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 14px; right: 14px;
    height: 2px;
    background: linear-gradient(90deg, #38bdf8, #2dd4bf);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a:hover {
    color: #ffffff;
    text-decoration: none;
    background: rgba(255,255,255,0.08);
}

.nav-menu a:hover::after {
    transform: scaleX(1);
}

.nav-user {
    display: flex;
    align-items: center;
    height: 100%;
}

.user-badge {
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 14px;
    border-radius: 8px;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    font-size: 13px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-self: end;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.nav-phone {
    display: flex;
    align-items: center;
}

.phone-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.phone-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

.phone-link::before {
    content: "📞";
    font-size: 20px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.btn-nav {
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13.5px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: 1px solid rgba(56,189,248,0.3);
    background: linear-gradient(135deg, rgba(14,165,233,0.15), rgba(6,182,212,0.1));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
    box-shadow: 0 0 16px rgba(14,165,233,0.1), inset 0 1px 0 rgba(255,255,255,0.08);
}

.btn-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(14,165,233,0.35), rgba(6,182,212,0.3), rgba(20,184,166,0.3));
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}

.btn-nav:hover {
    color: #ffffff !important;
    border-color: rgba(56,189,248,0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(14,165,233,0.25), 0 0 20px rgba(14,165,233,0.1);
    text-decoration: none;
}

.btn-nav:hover::before {
    opacity: 1;
}

/* Контент */
.main-content {
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f0f4f8 100%);
    min-height: calc(100vh - 120px);
}

.layout-header {
    text-align: center;
    margin-bottom: 48px;
}

.layout-header h1 {
    font-size: 42px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tagline {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Карточки */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.card h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* Feature Cards */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.feature-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.35);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.45);
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(135deg, #7c8ef5 0%, #8a5db8 100%);
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.btn-secondary {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
    padding: 12px 28px;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
    transform: translateY(-3px) scale(1.02);
    border-color: transparent;
}

.btn-block {
    width: 100%;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* Кнопки действий в таблицах */
.btn-action {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.btn-action-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
}

.btn-action-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
}

.btn-action-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    border: none;
}

.btn-action-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff;
}

.btn-action-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: #ffffff;
    border: none;
}

.btn-action-info:hover {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: #ffffff;
}

/* Кнопки в формах */
.add-option-btn,
.add-other-option-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #475569;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.add-option-btn:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    color: #334155;
}

.add-other-option-btn {
    color: #667eea;
    border-color: #c7d2fe;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
}

.add-other-option-btn:hover {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-color: #a5b4fc;
    color: #4f46e5;
}

.remove-option {
    transition: all 0.2s ease;
}

.remove-option:hover {
    transform: scale(1.2);
    color: #dc2626 !important;
}

/* Формы */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Алерты */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: #ecfdf5;
    border: 2px solid #10b981;
    color: #065f46;
}

.alert-error {
    background: #fef2f2;
    border: 2px solid #ef4444;
    color: #991b1b;
}

.alert-info {
    background: #eff6ff;
    border: 2px solid #3b82f6;
    color: #1e40af;
}

/* Таблицы */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
}

table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
}

table tbody tr {
    transition: var(--transition);
}

table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: scale(1.01);
    transition: var(--transition);
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, rgba(31,41,55,0.95) 0%, rgba(17,24,39,0.97) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: rgba(255, 255, 255, 0.9);
    padding: 40px 0;
    margin-top: 0;
    border-top: none;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0ea5e9, #06b6d4, #14b8a6, transparent);
    border-radius: 2px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    text-align: center;
}

.footer-developer {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.3px;
    transition: var(--transition);
}

.footer-developer:hover {
    color: #ffffff;
    transform: translateX(2px);
}

.footer-copyright {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    letter-spacing: 0.3px;
    transition: var(--transition);
}

.footer-copyright:hover {
    color: #ffffff;
}

.footer-text {
    margin: 0;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: none;
}

/* Адаптивность футера */
@media (max-width: 768px) {
    .main-footer {
        padding: 32px 0;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .footer-developer {
        font-size: 14px;
    }

    .footer-copyright {
        font-size: 14px;
        text-align: center;
        line-height: 1.5;
    }
}

/* Утилиты */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-secondary);
}

.small {
    font-size: 14px;
}

.muted {
    color: var(--text-secondary);
}

/* Страница входа */
.login-container {
    max-width: 480px;
    margin: 60px auto;
    padding: 20px;
}

.login-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 48px;
    border: 1px solid var(--border-color);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1 {
    margin: 0 0 12px 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.login-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 15px;
}

/* Тест Айзенка */
.test-container {
    max-width: 900px;
    margin: 0 auto;
}

.test-progress {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 12px;
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.test-question {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.test-question h3 {
    font-size: 20px;
    margin-bottom: 24px;
    color: var(--text-primary);
    line-height: 1.5;
}

.test-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-white);
}

.option-item:hover {
    border-color: var(--primary-color);
    background: #f8fafc;
    transform: translateX(4px);
}

.option-item input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
}

.option-item label {
    flex: 1;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-primary);
    margin: 0;
}

/* Результаты теста */
.results-container {
    max-width: 1000px;
    margin: 0 auto;
}

.result-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.result-score {
    display: inline-block;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    margin-left: 12px;
}

.score-high {
    background: #dcfce7;
    color: #166534;
}

.score-medium {
    background: #fef3c7;
    color: #92400e;
}

.score-low {
    background: #fee2e2;
    color: #991b1b;
}

/* Адаптивность */
@media (max-width: 768px) {
    .main-content {
        padding: 24px 16px;
    }

    .card {
        padding: 24px;
    }

    .nav-container {
        padding: 12px 16px;
        height: auto;
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 12px;
        align-items: flex-start;
    }

    .nav-logo {
        justify-self: start;
        width: 100%;
    }

    .nav-menu {
        justify-self: start;
        width: 100%;
        justify-content: flex-start;
        gap: 4px;
        flex-wrap: wrap;
        align-items: center;
    }

    .nav-menu li {
        height: auto;
    }

    .nav-menu a {
        padding: 8px 12px;
        font-size: 13px;
        line-height: 1.3;
    }

    .nav-right {
        justify-self: start;
        gap: 8px;
        width: 100%;
        flex-wrap: wrap;
    }

    .phone-link {
        font-size: 12px;
        padding: 6px 10px;
    }

    .btn-nav {
        padding: 8px 16px;
        font-size: 13px;
    }

    .feature-cards {
        grid-template-columns: 1fr;
    }

    .layout-header h1 {
        font-size: 32px;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Стили для пользовательской карточки */
.user-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
}

.user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.user-info-item strong {
    color: var(--text-primary);
    min-width: 100px;
}

/* Badge стили */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.success {
    background: #dcfce7;
    color: #166534;
}

.badge.warning {
    background: #fef3c7;
    color: #92400e;
}

.badge.danger {
    background: #fee2e2;
    color: #991b1b;
}

/* Улучшенные формы */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

/* Улучшенные алерты */
.alert {
    border-left: 4px solid;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background: #ecfdf5;
    border-left-color: #10b981;
    border: 2px solid #10b981;
    color: #065f46;
}

.alert-error {
    background: #fef2f2;
    border-left-color: #ef4444;
    border: 2px solid #ef4444;
    color: #991b1b;
}

.alert-info {
    background: #eff6ff;
    border-left-color: #3b82f6;
    border: 2px solid #3b82f6;
    color: #1e40af;
}

/* Hero Section с видео фоном */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

/* Плавный переход между hero и stats */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(180deg, transparent 0%, #0f172a 100%);
    z-index: 3;
    pointer-events: none;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 25%, #14b8a6 50%, #10b981 75%, #22c55e 100%);
}

.hero-video {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.25) 0%, rgba(30, 58, 138, 0.12) 50%, rgba(15, 23, 42, 0.2) 100%),
        radial-gradient(circle at 20% 30%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    z-index: 2;
    pointer-events: none;
}

/* Particles Canvas */
.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

/* AI Badge */
.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: rgba(14, 165, 233, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 50px;
    margin-bottom: 24px;
    animation: badge-float 3s ease-in-out infinite;
}

@keyframes badge-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.ai-icon {
    width: 24px;
    height: 24px;
    color: #0ea5e9;
    animation: icon-pulse 2s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.ai-text {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Gradient Text Animation */
.gradient-text {
    background: linear-gradient(
        90deg,
        #0ea5e9 0%,
        #38bdf8 20%,
        #0ea5e9 40%,
        #06b6d4 60%,
        #0ea5e9 80%,
        #38bdf8 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s linear infinite;
}

/* Remove text-shadow blur for gradient text in hero */
.hero-subtitle .gradient-text {
    text-shadow: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes gradient-shift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-content {
    position: relative;
    z-index: 4;
    max-width: 1400px;
    width: 100%;
    padding: 120px 24px 120px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Зеркальное видео за карточкой героя — как в навигации, волны чётко видны */
.hero-content-mirror {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.hero-content-mirror .hero-mirror-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scaleY(-1);
    opacity: 0.55;
    pointer-events: none;
    filter: blur(1px);
}

.hero-text {
    color: #ffffff;
    position: relative;
    padding-bottom: 24px;
}

.hero-text::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -30px;
    right: -30px;
    bottom: -24px;
    background: rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.45;
    margin: 0;
    max-width: 900px;
    letter-spacing: 0.02em;
    color: #ffffff;
    padding: 30px;
    position: relative;
    z-index: 1;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    text-rendering: optimizeLegibility;
}

/* Русский: более компактный подзаголовок и ровная вёрстка */
html.lang-ru .hero-subtitle {
    font-size: 36px;
    line-height: 1.4;
    max-width: 880px;
    letter-spacing: 0.01em;
}

html.lang-ru .section-title,
html.lang-ru .section-subtitle,
html.lang-ru .whom-title,
html.lang-ru .step-title {
    letter-spacing: 0.01em;
}

html.lang-ru .nav-menu a,
html.lang-ru .btn-nav {
    letter-spacing: 0.01em;
}

html.lang-ru .nav-container,
html.lang-en .nav-container {
    padding: 12px 18px;
    gap: 14px;
}

html.lang-ru .logo-text,
html.lang-en .logo-text {
    font-size: 14px;
}

html.lang-ru .nav-menu a,
html.lang-en .nav-menu a {
    font-size: 12.5px;
    padding: 7px 10px;
}

html.lang-ru .btn-nav,
html.lang-en .btn-nav {
    font-size: 12.5px;
    padding: 9px 18px;
}

html.lang-ru .nav-right,
html.lang-en .nav-right {
    gap: 8px;
}

html.lang-ru .user-badge,
html.lang-en .user-badge {
    font-size: 12px;
    padding: 6px 10px;
}

@media (max-width: 992px) {
    html.lang-ru .hero-subtitle {
        font-size: 30px;
        line-height: 1.38;
    }
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

/* Карточка психолога */
.psychologist-card {
    background: rgba(15, 23, 42, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 24px;
    align-items: flex-start;
    transition: var(--transition);
}

.psychologist-card:hover {
    background: rgba(15, 23, 42, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.psychologist-photo {
    flex-shrink: 0;
}

.psychologist-img {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.psychologist-info {
    flex: 1;
    color: #ffffff;
}

.psychologist-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.psychologist-title {
    font-size: 15px;
    margin: 0 0 20px 0;
    opacity: 0.9;
    line-height: 1.5;
}

.btn-appointment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.9) 0%, rgba(6, 182, 212, 0.9) 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.btn-appointment:hover {
    background: linear-gradient(135deg, rgba(14, 165, 233, 1) 0%, rgba(6, 182, 212, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-decoration: none;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Адаптивность для средних экранов */
@media (max-width: 1200px) {
    .nav-container {
        gap: 16px;
        padding: 16px 20px;
    }

    .logo-text {
        font-size: 16px;
    }

    .nav-menu a {
        padding: 10px 12px;
        font-size: 13px;
    }

    .nav-menu {
        gap: 4px;
    }
}

/* Адаптивность для hero-секции */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .ai-badge {
        padding: 10px 20px;
        gap: 10px;
    }

    .ai-icon {
        width: 20px;
        height: 20px;
    }

    .ai-text {
        font-size: 15px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 28px;
        line-height: 1.5;
        max-width: 100%;
    }

    .psychologist-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: calc(100vh - 64px);
    }

    .hero-content {
        padding: 80px 16px 40px 16px !important;
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .hero-text {
        order: 1;
        text-align: center;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px !important;
        line-height: 1.4 !important;
        max-width: 100% !important;
        font-weight: 700;
        text-align: center;
    }

    .psychologist-card {
        order: 2;
        padding: 20px !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 20px !important;
    }

    .psychologist-img {
        width: 140px !important;
        height: 140px !important;
    }

    .psychologist-name {
        font-size: 18px !important;
        margin-bottom: 8px !important;
    }

    .psychologist-title {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-bottom: 16px !important;
    }
    
    .btn-appointment {
        width: 100% !important;
        padding: 12px 24px !important;
        font-size: 14px !important;
        min-height: 44px;
        display: inline-block !important;
        text-align: center;
    }
    
    /* Навигация для мобильных */
    body:has(.hero-section) .nav-menu {
        display: none !important;
    }
    
    body:has(.hero-section) .nav-right {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* Навигация для мобильных */
    body:has(.hero-section) .nav-container {
        padding: 12px 16px !important;
        grid-template-columns: auto 1fr auto !important;
        margin: 12px auto !important;
        min-height: 56px !important;
    }
    
    .logo-text {
        font-size: 14px !important;
    }
    
    .nav-phone {
        display: none !important;
    }
    
    body:has(.hero-section) .nav-right .btn-nav {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .hero-subtitle {
        font-size: 16px !important;
    }
    
    .psychologist-img {
        width: 120px !important;
        height: 120px !important;
    }
    
    .psychologist-name {
        font-size: 16px !important;
    }
    
    .psychologist-title {
        font-size: 12px !important;
    }
    
    body:has(.hero-section) .nav-container {
        margin: 8px auto !important;
        padding: 10px 12px !important;
    }
}

/* ============================================
   НОВЫЕ СЕКЦИИ ЛЕНДИНГА
   ============================================ */

/* Контейнер для секций */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Секция статистики */
/* ═══════════════════════════════════════════════
   SCROLL-REVEAL ANIMATION SYSTEM
   ═══════════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal.from-left { transform: translateX(-50px); }
.reveal.from-right { transform: translateX(50px); }
.reveal.zoom-in { transform: scale(0.88); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ═══════════════════════════════════════════════
   STATS STRIP (compact counters)
   ═══════════════════════════════════════════════ */
.stats-strip {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 50%, #1e3a8a 100%);
    padding: 40px 0;
    position: relative;
    margin-top: -1px;
}

.stats-strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 640px;
    margin: 0 auto;
}

.strip-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    padding: 0 24px;
}

.strip-number {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, #38bdf8, #06b6d4, #2dd4bf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.strip-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
}

.strip-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.2), transparent);
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   TESTS SHOWCASE
   ═══════════════════════════════════════════════ */
.tests-showcase {
    padding: 80px 0 100px;
    background: linear-gradient(180deg, #1e3a8a 0%, #1e40af 20%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.tests-showcase::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(14,165,233,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(139,92,246,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.tests-showcase .section-title {
    color: white;
    -webkit-text-fill-color: unset;
    background: none;
    text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.tests-showcase .section-subtitle {
    color: rgba(255,255,255,0.7);
}

.tests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.test-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.test-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 0 1px rgba(14,165,233,0.15);
}

.test-card-visual {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.test-card-visual svg {
    width: 64px; height: 64px;
    color: rgba(255,255,255,0.25);
    transition: transform 0.4s ease;
}

.test-card:hover .test-card-visual svg {
    transform: scale(1.15) rotate(-5deg);
    color: rgba(255,255,255,0.35);
}

.eysenck-visual {
    background: linear-gradient(135deg, #f97316 0%, #ef4444 40%, #ec4899 100%);
}

.iq-visual {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 40%, #8b5cf6 100%);
}

.luscher-visual {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 40%, #3b82f6 100%);
}

.test-card-badge {
    position: absolute;
    top: 16px; right: 16px;
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.2);
}

.test-card-badge svg {
    width: 22px;
    height: 22px;
    stroke: rgba(255,255,255,0.9);
}

.test-card-body {
    padding: 24px;
}

.test-card-title {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.test-card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.65);
    margin-bottom: 16px;
}

.test-card-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

.meta-item svg {
    opacity: 0.6;
    stroke: currentColor;
}

.test-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #38bdf8;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.test-card-btn:hover {
    color: #7dd3fc;
    gap: 8px;
}

/* ═══════════════════════════════════════════════
   FOR WHOM SECTION
   ═══════════════════════════════════════════════ */
.section-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: #1e293b;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: #64748b;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Psychologist Section */
.psychologist-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 50%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

.psychologist-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(14,165,233,0.3), transparent);
}

.psychologist-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(14,165,233,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.psychologist-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.psychologist-image-wrapper {
    position: relative;
}

.psychologist-image-frame {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    padding: 8px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.psychologist-image-frame:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -15px rgba(14, 165, 233, 0.4);
}

.psychologist-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    object-fit: cover;
    aspect-ratio: 4/5;
}

.psychologist-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
}

.psychologist-badge svg {
    width: 32px;
    height: 32px;
    stroke: white;
    stroke-width: 2.5;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.psychologist-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.psychologist-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(14,165,233,0.1) 0%, rgba(6,182,212,0.1) 100%);
    border: 1px solid rgba(14,165,233,0.2);
    border-radius: 50px;
    width: fit-content;
    font-size: 14px;
    font-weight: 600;
    color: #0284c7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.psychologist-label svg {
    width: 18px;
    height: 18px;
    stroke: #0284c7;
}

.psychologist-name {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin: 0;
}

.psychologist-title {
    font-size: 20px;
    color: #475569;
    font-weight: 500;
    margin: 0;
}

.psychologist-description {
    font-size: 16px;
    line-height: 1.8;
    color: #64748b;
    margin: 10px 0;
}

.psychologist-description p {
    margin: 0;
}

.psychologist-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 20px 0;
}

.psy-stat {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(240,249,255,0.9) 100%);
    border-radius: 16px;
    border: 1px solid rgba(14,165,233,0.1);
    transition: all 0.3s ease;
}

.psy-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(14,165,233,0.15);
    border-color: rgba(14,165,233,0.3);
}

.psy-stat-number {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 8px;
}

.psy-stat-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.psychologist-contact {
    margin-top: 10px;
}

.btn-psychologist-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(14,165,233,0.3);
    border: none;
    cursor: pointer;
}

.btn-psychologist-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(14,165,233,0.4);
    background: linear-gradient(135deg, #0284c7 0%, #0891b2 100%);
}

.btn-psychologist-primary svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

@media (max-width: 1024px) {
    .psychologist-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .psychologist-image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .psychologist-name {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .psychologist-section {
        padding: 80px 0;
    }
    
    .psychologist-name {
        font-size: 32px;
    }
    
    .psychologist-title {
        font-size: 18px;
    }
    
    .psychologist-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .psychologist-badge {
        width: 56px;
        height: 56px;
        top: 16px;
        right: 16px;
    }
    
    .psychologist-badge svg {
        width: 28px;
        height: 28px;
    }
}

.for-whom-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #f0f9ff 100%);
    position: relative;
}

.for-whom-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(14,165,233,0.2), transparent);
}

.for-whom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 60px;
}

.whom-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 0 40px 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.whom-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.08);
    border-color: transparent;
}

.whom-card-accent {
    height: 4px;
    margin: 0 -40px 36px;
    border-radius: 0;
}

.whom-student .whom-card-accent {
    background: linear-gradient(90deg, #0ea5e9, #06b6d4, #14b8a6);
}

.whom-teacher .whom-card-accent {
    background: linear-gradient(90deg, #f59e0b, #f97316, #ef4444);
}

.whom-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.whom-student .whom-icon {
    background: linear-gradient(135deg, rgba(14,165,233,0.1), rgba(6,182,212,0.1));
}

.whom-teacher .whom-icon {
    background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(249,115,22,0.1));
}

.whom-icon svg {
    width: 30px;
    height: 30px;
    stroke-width: 1.5;
}

.whom-student .whom-icon svg { stroke: #0ea5e9; }
.whom-teacher .whom-icon svg { stroke: #f59e0b; }

.whom-card:hover .whom-icon {
    transform: scale(1.08);
}

.whom-student:hover .whom-icon {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    box-shadow: 0 8px 24px rgba(14,165,233,0.25);
}
.whom-student:hover .whom-icon svg { stroke: #fff; }

.whom-teacher:hover .whom-icon {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 8px 24px rgba(245,158,11,0.25);
}
.whom-teacher:hover .whom-icon svg { stroke: #fff; }

.whom-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
}

.whom-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.whom-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
    color: #475569;
    line-height: 1.5;
    border-bottom: 1px solid #f1f5f9;
}

.whom-features li:last-child { border-bottom: none; }

.whom-features li svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.whom-student .whom-features li svg { stroke: #0ea5e9; }
.whom-teacher .whom-features li svg { stroke: #f59e0b; }

.whom-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.whom-btn-student {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    color: #fff;
    box-shadow: 0 4px 16px rgba(14,165,233,0.3);
}

.whom-btn-student:hover {
    box-shadow: 0 8px 28px rgba(14,165,233,0.4);
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

.whom-btn-teacher {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    box-shadow: 0 4px 16px rgba(245,158,11,0.3);
}

.whom-btn-teacher:hover {
    box-shadow: 0 8px 28px rgba(245,158,11,0.4);
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

/* ═══════════════════════════════════════════════
   HOW IT WORKS SECTION (TABS + TIMELINE)
   ═══════════════════════════════════════════════ */
.how-it-works-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
}

.steps-tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
    max-width: 380px;
    margin: 0 auto 50px;
}

.steps-tab {
    flex: 1;
    padding: 12px 24px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.steps-tab:hover {
    color: #1e293b;
}

.steps-tab.active {
    background: #ffffff;
    color: #0ea5e9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.steps-panel {
    display: none;
}

.steps-panel.active {
    display: block;
    animation: fadeInPanel 0.35s ease;
}

@keyframes fadeInPanel {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: calc(12.5% + 10px);
    right: calc(12.5% + 10px);
    height: 3px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4, #14b8a6, #0ea5e9);
    background-size: 200% 100%;
    animation: timelineShift 4s linear infinite;
    z-index: 0;
    border-radius: 2px;
}

@keyframes timelineShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.step-card {
    background: white;
    border-radius: 16px;
    padding: 40px 20px 32px;
    text-align: center;
    position: relative;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    z-index: 1;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(14,165,233,0.15);
    border-color: rgba(14,165,233,0.3);
}

.step-number {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px; height: 36px;
    background: linear-gradient(135deg, #0ea5e9, #06b6d4, #14b8a6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(14,165,233,0.35);
    border: 3px solid #ffffff;
    z-index: 2;
}

.step-number.pulse {
    animation: stepPulse 2s ease-in-out infinite;
}

@keyframes stepPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(14,165,233,0.35); }
    50%      { box-shadow: 0 4px 24px rgba(14,165,233,0.55), 0 0 0 8px rgba(14,165,233,0.1); }
}

.step-icon {
    width: 56px;
    height: 56px;
    margin: 16px auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(14,165,233,0.08), rgba(6,182,212,0.08));
    border-radius: 14px;
    transition: all 0.3s ease;
}

.step-icon svg {
    width: 28px;
    height: 28px;
    stroke: #0ea5e9;
}

.step-card:hover .step-icon {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    box-shadow: 0 6px 20px rgba(14,165,233,0.2);
    transform: scale(1.05);
}

.step-card:hover .step-icon svg {
    stroke: #ffffff;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.step-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════ */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 30%, #1e3a8a 60%, #1e40af 100%);
    background-size: 300% 300%;
    animation: ctaGradientShift 12s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes ctaGradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(14,165,233,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6,182,212,0.15) 0%, transparent 50%);
}

/* Floating shapes */
.cta-shapes { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: hidden; }
.cta-shapes span {
    position: absolute;
    display: block;
    border-radius: 50%;
    opacity: 0.08;
    background: white;
    animation: ctaFloat linear infinite;
}
.cta-shapes span:nth-child(1) { width: 80px; height: 80px; left: 5%; top: 10%; animation-duration: 16s; }
.cta-shapes span:nth-child(2) { width: 120px; height: 120px; right: 8%; top: 60%; animation-duration: 22s; border-radius: 20%; }
.cta-shapes span:nth-child(3) { width: 50px; height: 50px; left: 40%; bottom: 15%; animation-duration: 18s; }
.cta-shapes span:nth-child(4) { width: 160px; height: 160px; right: 25%; top: -5%; animation-duration: 20s; opacity: 0.04; border-radius: 30%; }
.cta-shapes span:nth-child(5) { width: 40px; height: 40px; left: 70%; top: 30%; animation-duration: 14s; }

@keyframes ctaFloat {
    0%   { transform: translateY(0) rotate(0deg); }
    50%  { transform: translateY(-40px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.cta-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary,
.btn-cta-secondary {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    min-width: 200px;
    text-align: center;
}

.btn-cta-primary {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    color: white;
    box-shadow: 0 4px 16px rgba(14,165,233,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.btn-cta-primary::after {
    content: '';
    position: absolute;
    top: -50%; left: -75%;
    width: 50%; height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-25deg);
    animation: btnShimmer 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes btnShimmer {
    0%, 100% { left: -75%; }
    50%      { left: 125%; }
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(14,165,233,0.45);
    background: linear-gradient(135deg, #0284c7, #0891b2);
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-cta-secondary:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 16px rgba(255,255,255,0.1);
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */

/* Адаптивность для новых секций */
@media (max-width: 1024px) and (min-width: 769px) {
    .tests-grid { grid-template-columns: repeat(2, 1fr); }
    .tests-grid .test-card:nth-child(3) { grid-column: 1 / -1; max-width: 380px; margin: 0 auto; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .steps-grid::before { display: none; }
    .for-whom-grid { gap: 24px; }
}

@media (max-width: 768px) {
    .stats-strip { padding: 28px 0; }
    .strip-number { font-size: 28px; }
    .strip-label { font-size: 10px; }
    .strip-item { padding: 0 16px; }

    .tests-showcase { padding: 60px 0 80px; }
    .tests-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 36px; }
    .test-card-visual { height: 130px; }

    .for-whom-section,
    .how-it-works-section { padding: 60px 0; }
    .section-title { font-size: 32px; }
    .section-subtitle { font-size: 16px; margin-bottom: 40px; }

    .for-whom-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
    .whom-card { padding: 0 28px 32px; }
    .whom-card-accent { margin: 0 -28px 28px; }
    .steps-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
    .steps-grid::before { display: none; }
    .steps-tabs { max-width: 100%; }

    .step-card { padding: 28px 20px; }
    .cta-section { padding: 60px 0; }
    .cta-title { font-size: 32px; }
    .cta-description { font-size: 16px; }
    .cta-buttons { flex-direction: column; align-items: stretch; }
    .btn-cta-primary,
    .btn-cta-secondary { width: 100%; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .section-title { font-size: 28px; }
    .section-subtitle { font-size: 16px; }
    .strip-number { font-size: 24px; }
    .strip-label { font-size: 9px; letter-spacing: 0.5px; }
    .strip-item { padding: 0 12px; }
    .strip-divider { height: 30px; }
    .step-icon { width: 48px; height: 48px; }
    .step-icon svg { width: 24px; height: 24px; }
    .step-title { font-size: 18px; }
    .whom-title { font-size: 20px; }
    .whom-features li { font-size: 14px; }
    .cta-title { font-size: 28px; }
    .cta-description { font-size: 16px; }
    .test-card-title { font-size: 17px; }
    .test-card-desc { font-size: 13px; }
}