/* BIF — стили портала. Токены соответствуют стайлгайду в Claude Design. */
:root {
  --navy: #1B2856;
  --blue: #344C9A;
  --text-2: #4A5578;
  --muted: #6B7593;
  --gold: #C9A54A;
  --gold-light: #F0D27A;
  --gold-text: #8A6A1F;
  --gold-bg: #FBF5E6;
  --surface: #F6F8FC;
  --surface-2: #EEF2FA;
  --placeholder: #E9EEF7;
  --line: #E6EAF2;
  --line-2: #EEF1F6;
  --input: #D5DBE8;
  --success-bg: #E3F4EA; --success: #17663A;
  --warning-bg: #FDF3DC; --warning: #7A5300;
  --danger-bg: #FCE8E4; --danger: #A3300F;
  --info-bg: #E6ECF8; --info: #2B4185;
  --on-dark: #C9D1E6;
  --radius: 20px;
  --font: 'Manrope', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--navy); background: #fff; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid #9DB0E6; outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; } .gap-40 { gap: 40px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex-grow: 1; min-width: 0; }
.center { text-align: center; align-items: center; }
.mt-auto { margin-top: auto; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* Типографика */
.eyebrow { font-size: 14px; font-weight: 700; color: var(--gold-text); text-transform: uppercase; letter-spacing: 0.08em; }
.h1 { font-size: 60px; line-height: 1.05; }
.h1-sm { font-size: 44px; line-height: 1.1; }
.h2 { font-size: 40px; line-height: 1.15; }
.h3 { font-size: 22px; line-height: 1.3; }
.lead { font-size: 18px; line-height: 1.6; color: var(--text-2); }
.text-2 { color: var(--text-2); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.xs { font-size: 13px; }
.bold { font-weight: 800; }
.semi { font-weight: 700; }
.gold { color: var(--gold-light); }
.accent { color: var(--blue); }
.prose { font-size: 17px; line-height: 1.75; color: #3A4566; }
.prose h2 { font-size: 24px; margin: 28px 0 10px; color: var(--navy); }
.prose h3 { font-size: 20px; margin: 22px 0 8px; color: var(--navy); }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose blockquote { margin: 16px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--gold); font-size: 21px; line-height: 1.5; font-weight: 700; color: var(--navy); }
.prose img { border-radius: 16px; margin: 16px 0; }
.prose a { text-decoration: underline; }

/* Секции */
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-alt { background: var(--surface); }
.section-dark { background: var(--navy); color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 48px 0 40px; }
.crumbs { font-size: 14px; color: var(--muted); font-weight: 600; }
.crumbs a { color: var(--muted); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: 14px; border: 1.5px solid transparent; font: 700 16px var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn-sm { height: 42px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { height: 58px; padding: 0 32px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #24356F; color: #fff; }
.btn-outline { background: #fff; border-color: var(--input); color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-gold { background: var(--gold-light); color: var(--navy); font-weight: 800; }
.btn-gold:hover { background: #E8C565; color: var(--navy); }
.btn-soft { background: var(--surface-2); color: var(--navy); }
.btn-soft:hover { background: #E1E7F5; color: var(--navy); }
.btn-ghost-light { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }
.btn-danger { background: #fff; border-color: #F2C9BE; color: var(--danger); }
.btn[disabled], .btn.disabled { background: #C3CADB; border-color: #C3CADB; color: #fff; cursor: not-allowed; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--navy); cursor: pointer; position: relative; flex-shrink: 0; }
.dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); border: 2px solid #fff; }

/* Метки и статусы */
.chip { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--input); background: #fff; color: var(--navy); font: 600 14px var(--font); cursor: pointer; white-space: nowrap; }
.chip.active, .chip[aria-pressed="true"], input:checked + .chip { border-color: var(--navy); background: var(--navy); color: #fff; font-weight: 800; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; background: var(--surface-2); color: var(--blue); align-self: flex-start; }
.tag-gold { background: var(--gold-bg); color: #7A5C17; }
.tag-outline-gold { background: #fff; border: 1px solid #EADFC0; color: #7A5C17; }
.badge { display: inline-flex; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; align-self: flex-start; }
.st-draft { background: #EEF1F6; color: var(--text-2); }
.st-pending, .st-in_progress, .st-review, .st-awaiting_invoice { background: var(--warning-bg); color: var(--warning); }
.st-published, .st-done, .st-approved, .st-paid, .st-selected { background: var(--success-bg); color: var(--success); }
.st-rejected, .st-cancelled, .st-declined { background: var(--danger-bg); color: var(--danger); }
.st-new, .st-info { background: var(--info-bg); color: var(--info); }
.badge-investor { background: var(--navy); color: var(--gold-light); font-weight: 800; }

/* Карточки */
.card { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 14px; color: var(--navy); }
a.card:hover { border-color: #C8D0E2; color: var(--navy); }
.card-soft { background: var(--surface); border-color: transparent; }
.card-dark { background: var(--navy); border-color: var(--navy); color: #fff; position: relative; overflow: hidden; }
.card-dark .text-2, .card-dark .muted { color: var(--on-dark); }
.card-lg { padding: 36px; border-radius: 28px; }
.card-sm { padding: 20px; }
.card .card-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.media { background: var(--placeholder); border-radius: 20px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; font-weight: 600; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.partner-card { flex-direction: row; align-items: flex-start; gap: 24px; }
.illus { height: 168px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.illus .blob { position: absolute; width: 84px; height: 84px; border-radius: 50%; background: #F6E9C4; }
.illus svg { position: relative; }
.illus img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.num-badge { width: 44px; height: 44px; border-radius: 12px; background: var(--gold-bg); color: var(--gold-text); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex-shrink: 0; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.gear { position: absolute; pointer-events: none; }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.site-header .container { height: 76px; display: flex; align-items: center; gap: 36px; }
.logo img { height: 36px; width: auto; }
.main-nav { display: flex; gap: 26px; flex-grow: 1; font-size: 15px; font-weight: 600; }
.main-nav a { color: var(--text-2); padding: 26px 0 25px; }
.main-nav a.active { color: var(--navy); box-shadow: inset 0 -2px 0 var(--gold); }
.main-nav a:hover { color: var(--navy); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang { height: 40px; padding: 0 10px 0 12px; border: 1px solid var(--line); background: #fff; border-radius: 10px; font: 600 14px var(--font); color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.lang:hover { border-color: var(--input); }
.flag { flex-shrink: 0; border-radius: 3px; box-shadow: 0 0 0 1px rgba(27,40,86,.12); }
.lang-dd .dropdown-menu { top: 50px; }
.lang-dd .dropdown-menu a { gap: 12px; }
.lang-dd .dropdown-menu a.current { background: var(--surface); }
.mm-langs { display: flex; gap: 8px; margin-top: 20px; }
.mm-langs a { flex: 1; height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--navy); }
.mm-langs a.current { border-color: var(--navy); background: var(--surface); }
.profile-btn { height: 48px; padding: 0 10px 0 4px; border-radius: 14px; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--navy); }
.profile-btn .avatar { width: 38px; height: 38px; font-size: 14px; }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: 58px; width: 260px; padding: 8px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(27,40,86,.14); display: none; flex-direction: column; z-index: 40; }
.dropdown.open .dropdown-menu { display: flex; }
.dropdown-menu a, .dropdown-menu button { height: 44px; padding: 0 12px; border-radius: 10px; display: flex; align-items: center; font: 600 15px var(--font); color: var(--navy); border: none; background: none; cursor: pointer; text-align: left; width: 100%; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface); }
.dropdown-menu hr { border: none; height: 1px; background: var(--line-2); margin: 6px 4px; width: auto; }
.burger { display: none; }
.mobile-menu { display: none; }

/* Подвал */
.site-footer { background: var(--surface); }
.site-footer .container { padding-top: 64px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer-col a, .footer-col span { color: var(--text-2); }
.footer-bottom { padding-top: 24px; border-top: 1px solid #E1E6F0; display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--surface) 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; padding: 72px 0 56px; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid #EADFC0; font-size: 14px; font-weight: 700; color: #7A5C17; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.meta-row { display: flex; gap: 28px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.meta-row span { display: inline-flex; align-items: center; gap: 10px; }
.hero-visual { position: relative; height: 500px; }
.hero-photo { position: absolute; inset: 0 0 40px 40px; border-radius: 28px; background: var(--placeholder); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; font-weight: 600; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-card { position: absolute; left: 0; bottom: 0; width: 330px; padding: 24px; border-radius: 20px; background: #fff; box-shadow: 0 20px 50px rgba(27,40,86,.12); display: flex; flex-direction: column; gap: 14px; }
.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.stat-strip > div { padding: 28px 32px; display: flex; flex-direction: column; gap: 6px; }
.stat-strip > div + div { border-left: 1px solid var(--line); }
.stat-value { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; }
.forum-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.forum-hero .inner { position: relative; padding: 96px 0 88px; display: flex; flex-direction: column; gap: 28px; }

/* Формы */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .field-label { font-size: 14px; font-weight: 700; }
.req { color: var(--danger); }
.input, .field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=password], .field input[type=number], .field input[type=url], .field input[type=search], .field input[type=date], .field select, .field textarea, .input-like {
  width: 100%; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--input); border-radius: 12px; font: 500 16px var(--font); color: var(--navy); background: #fff; }
.field textarea, textarea.input { padding: 14px 16px; line-height: 1.55; resize: vertical; }
.field select { padding: 0 14px; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px #E3E9F7; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #C2410C; }
.error, .errorlist { color: #B23A0B; font-size: 13px; font-weight: 600; margin: 0; padding: 0; list-style: none; }
.hint { font-size: 13px; line-height: 1.5; color: var(--muted); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--navy); flex-shrink: 0; }
.dropzone { min-height: 110px; border: 1.5px dashed #C3CADB; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--text-2); font-size: 14px; font-weight: 600; padding: 16px; text-align: center; cursor: pointer; position: relative; }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-list { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.form-card { padding: 40px; border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(27,40,86,.08); }
.radio-card { width: 100%; padding: 20px 22px; border-radius: 16px; display: flex; align-items: center; gap: 16px; cursor: pointer; background: #fff; border: 1.5px solid var(--line); }
.radio-card input { width: 22px; height: 22px; accent-color: var(--navy); margin: 0; flex-shrink: 0; }
.radio-card:has(input:checked) { background: var(--surface); border-color: var(--navy); }
.alert { padding: 14px 18px; border-radius: 14px; font-size: 15px; font-weight: 600; }
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-info { background: var(--info-bg); color: var(--info); }
.alert-warning { background: var(--warning-bg); color: var(--warning); }
.alert-error { background: var(--danger-bg); color: var(--danger); }
.messages { position: fixed; right: 24px; top: 92px; z-index: 60; display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.messages .alert { box-shadow: 0 12px 30px rgba(27,40,86,.14); }

/* Таблицы */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 13px; color: var(--muted); padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.table td { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.table .num { text-align: right; }

/* Модальное окно */
.modal { position: fixed; inset: 0; z-index: 70; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(27,40,86,.45); }
.modal.open, .modal:target { display: flex; }
.modal-box { position: relative; width: 480px; max-width: 100%; padding: 36px; border-radius: 28px; background: #fff; box-shadow: 0 30px 80px rgba(27,40,86,.3); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.modal-close { position: absolute; right: 16px; top: 16px; width: 44px; height: 44px; border-radius: 12px; border: none; background: var(--surface); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.modal-icon { width: 68px; height: 68px; border-radius: 20px; background: var(--gold-bg); display: flex; align-items: center; justify-content: center; }

/* Вкладки */
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); }
.tabs a, .tabs button { padding: 0 0 16px; margin-bottom: -1px; border: none; border-bottom: 2px solid transparent; background: none; font: 600 16px var(--font); color: var(--muted); cursor: pointer; }
.tabs .active { border-bottom-color: var(--navy); color: var(--navy); font-weight: 800; }

/* Боковые фильтры */
.side-list { display: flex; flex-direction: column; gap: 4px; }
.side-list a { height: 42px; padding: 0 12px; border-radius: 10px; display: flex; align-items: center; color: var(--text-2); font-weight: 600; font-size: 15px; }
.side-list a.active { background: var(--surface-2); color: var(--navy); font-weight: 800; }
.side-title { font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 0 12px 6px; }
.sticky { position: sticky; top: 100px; }

.pagination { display: flex; justify-content: center; gap: 8px; padding-top: 16px; }
.pagination a, .pagination span { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--navy); }
.pagination .current { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Пошаговая анкета */
.wizard { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.wizard-side { position: sticky; top: 100px; padding: 20px; border-radius: 20px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.progress { height: 6px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.progress > div { height: 6px; background: var(--gold); border-radius: 999px; transition: width .2s; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.steps button { width: 100%; min-height: 46px; padding: 8px 10px; border: none; border-radius: 12px; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; font: 600 14px var(--font); color: var(--navy); background: transparent; }
.steps .n { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; background: #EEF1F6; color: var(--muted); }
.steps .current button { background: var(--surface); font-weight: 800; }
.steps .current .n { background: var(--navy); color: #fff; }
.steps .done .n { background: var(--success-bg); color: var(--success); }
.steps .has-error .n { background: var(--danger-bg); color: var(--danger); }
.wizard-main { padding: 32px 36px; border-radius: 24px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 26px; }
.wizard-step { display: none; flex-direction: column; gap: 24px; }
.wizard-step.active { display: flex; }
.q-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
.q { display: flex; flex-direction: column; gap: 8px; }
.q.span-2 { grid-column: span 2; }
.q-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.q-label label, .q-label .lbl { font-size: 15px; font-weight: 800; line-height: 1.4; }
.ex-btn { flex-shrink: 0; height: 30px; padding: 0 10px; border-radius: 8px; border: none; background: var(--gold-bg); color: #7A5C17; font: 700 13px var(--font); cursor: pointer; }
.example { display: none; padding: 12px 14px; border-radius: 12px; background: var(--gold-bg); font-size: 14px; line-height: 1.55; color: #4F3B0C; }
.example.open { display: block; }
.counter { align-self: flex-end; margin-top: -4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.qtable { border: 1.5px solid var(--input); border-radius: 14px; overflow: hidden; }
.qtable .tr { display: grid; border-top: 1px solid var(--line); align-items: center; }
.qtable .th { display: grid; background: var(--surface); font-size: 13px; font-weight: 700; color: var(--text-2); }
.qtable .th span { padding: 10px 14px; }
.qtable .rl { padding: 0 14px; font-size: 14px; font-weight: 700; }
.qtable input { min-width: 0; height: 48px; padding: 0 14px; border: none; border-left: 1px solid var(--line); font: 500 15px var(--font); color: var(--navy); background: #fff; }
.qtable .tr > input:first-child { border-left: none; }
.qtable input:focus { outline: none; background: #FBFCFE; box-shadow: inset 0 0 0 2px var(--blue); }
.add-row { align-self: flex-start; height: 40px; padding: 0 14px; border-radius: 10px; border: 1.5px dashed #C3CADB; background: #fff; color: var(--blue); font: 700 14px var(--font); cursor: pointer; }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.review-list { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.review-item { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--line-2); }
.review-item:first-child { border-top: none; }

/* Кабинет */
.cab { display: flex; min-height: 100vh; background: var(--surface); }
.cab-side { width: 272px; flex-shrink: 0; height: 100vh; position: sticky; top: 0; overflow: auto; background: #fff; border-right: 1px solid var(--line); padding: 24px 16px; display: flex; flex-direction: column; gap: 24px; }
.cab-nav { display: flex; flex-direction: column; gap: 2px; }
.cab-nav a { height: 46px; padding: 0 12px; border-radius: 12px; color: var(--text-2); font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; }
.cab-nav a span:first-child { display: flex; align-items: center; gap: 12px; }
.cab-nav a span:first-child::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #D5DBE8; }
.cab-nav a.active { background: var(--surface-2); color: var(--navy); font-weight: 800; }
.cab-nav a.active span:first-child::before { background: var(--gold); }
.count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.cab-main { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.cab-top { height: 76px; padding: 0 40px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.cab-content { padding: 40px; display: flex; flex-direction: column; gap: 28px; max-width: 1120px; width: 100%; }
.cab-title { font-size: 32px; }
.list-row { padding: 16px 0; border-top: 1px solid var(--line-2); display: flex; align-items: center; gap: 16px; color: var(--navy); }
.thumb { width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; background: var(--surface-2); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.bar { height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.bar > span { display: block; height: 8px; border-radius: 999px; background: var(--blue); }
.timeline-item { display: flex; gap: 14px; }
.timeline-item .tl-dot { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.timeline-item .tl-line { width: 2px; height: 30px; background: var(--line); margin: 0 auto; }
/* Компактные билеты: цвет = тариф */
.tk-list { display: flex; flex-direction: column; gap: 10px; }
.tk { --tk: #2563EB; --tk-bg: #EAF1FE; --tk-ink: #fff; display: grid; grid-template-columns: 132px minmax(0, 1fr) auto auto; align-items: center; gap: 20px; padding-right: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); border-left: 0; overflow: hidden; min-height: 84px; }
.tk-business { --tk: #059669; --tk-bg: #E4F6EF; }
.tk-vip { --tk: linear-gradient(135deg, #14161F 0%, #2A2D3A 100%); --tk-bg: #FBF3DC; --tk-ink: #F0D27A; }
.tk-tier { align-self: stretch; background: var(--tk); color: var(--tk-ink); display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 12px 16px; position: relative; }
.tk-tier::after { content: ""; position: absolute; right: -7px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #fff; }
.tk-vip .tk-tier { box-shadow: inset 4px 0 0 #F0D27A; }
.tk-tier-label { font-weight: 800; font-size: 20px; letter-spacing: -.01em; line-height: 1.1; }
.tk-tier-sub { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.tk-body { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; min-width: 0; }
.tk-name { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-badge { background: var(--tk-bg); color: #1B2856; }
.tk-vip .tk-badge { color: #6B5214; }
.tk-actions { display: flex; align-items: center; gap: 8px; }
.ticket { display: flex; border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.ticket-main { flex-grow: 1; padding: 36px; background: var(--navy); color: #fff; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.ticket-qr { width: 260px; flex-shrink: 0; border-left: 2px dashed var(--input); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; }
.ticket-qr img { width: 160px; height: 160px; }
.empty { padding: 48px 28px; border-radius: 24px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.empty .circle { width: 88px; height: 88px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; position: relative; font-weight: 800; color: var(--blue); }

/* Auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 48px 64px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 32px; }
.auth-box { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 20px; }
.social-btn { height: 54px; border-radius: 14px; border: 1.5px solid var(--input); background: #fff; color: var(--navy); font: 700 15px var(--font); display: flex; align-items: center; justify-content: center; gap: 10px; }
.social-btn:hover { border-color: var(--navy); color: var(--navy); }
.divider { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); font-weight: 600; }
.divider::before, .divider::after { content: ""; flex-grow: 1; height: 1px; background: var(--line); }
.logo-chip { align-self: flex-start; padding: 10px 14px; border-radius: 14px; background: #fff; }
.logo-chip img { height: 32px; }

/* Адаптив */
@media (max-width: 1100px) {
  .main-nav { gap: 18px; font-size: 14px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .container { padding: 0 16px; }
  .main-nav, .header-actions .lang-dd, .header-actions .hide-m { display: none; }
  .burger { display: inline-flex; }
  .site-header .container { height: 64px; gap: 12px; justify-content: space-between; }
  .logo img { height: 30px; }
  .mobile-menu.open { display: flex; position: fixed; inset: 64px 0 0; z-index: 50; background: #fff; flex-direction: column; padding: 12px 16px 28px; overflow: auto; }
  .mobile-menu a.mm-link { height: 56px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-2); font-size: 18px; font-weight: 700; color: var(--navy); }
  .h1 { font-size: 36px; } .h1-sm { font-size: 30px; } .h2 { font-size: 28px; }
  .section { padding: 48px 0; } .section-sm { padding: 36px 0; }
  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 24px; }
  .section-head > .row { flex-wrap: wrap; }
  .partner-card { flex-direction: column; gap: 16px; }
  .partner-card .media { width: 100% !important; height: 120px !important; }
  .grid-2, .grid-3, .grid-4, .hero-grid, .footer-grid, .wizard, .q-grid, .split { grid-template-columns: 1fr !important; }
  .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .q.span-2 { grid-column: auto; }
  .hero-grid { padding: 32px 0 28px; gap: 28px; }
  .hero-visual { height: 260px; }
  .hero-photo { inset: 0; }
  .hero-card { display: none; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip > div { padding: 18px; }
  .stat-strip > div:nth-child(3) { border-left: none; }
  .stat-strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat-value { font-size: 24px; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
  .forum-hero .inner { padding: 40px 0 36px; gap: 18px; }
  .wizard-side { position: static; }
  .wizard-main, .form-card, .card-lg { padding: 20px; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .cab { flex-direction: column; }
  .cab-side { width: 100%; height: auto; position: static; flex-direction: row; overflow-x: auto; padding: 12px 16px; gap: 12px; }
  .cab-side .cab-promo, .cab-side .logo { display: none; }
  .cab-nav { flex-direction: row; }
  .cab-nav a { white-space: nowrap; height: 40px; }
  .cab-top { padding: 0 16px; height: 64px; }
  .cab-content { padding: 20px 16px; }
  .ticket { flex-direction: column; }
  .tk { grid-template-columns: 92px minmax(0, 1fr) auto; grid-template-areas: "tier body body" "tier status actions"; gap: 0 12px; padding-right: 0; }
  .tk-tier { grid-area: tier; padding: 10px 12px; }
  .tk-tier-label { font-size: 15px; }
  .tk-body { grid-area: body; padding: 12px 12px 6px 0; }
  .tk-status { grid-area: status; padding-bottom: 12px; min-width: 0; }
  .tk-status .badge { padding: 5px 10px; font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .tk-tier-sub { display: none; }
  .tk-actions .btn { padding: 0 12px; }
  .tk-actions .icon-btn { display: none; }
  .tk-actions { grid-area: actions; padding: 0 12px 12px 0; }
  .ticket-qr { width: 100%; border-left: none; border-top: 2px dashed var(--input); }
  .messages { left: 16px; right: 16px; top: 76px; }
  .hide-mobile { display: none !important; }
  .table-wrap { overflow-x: auto; }
}

input:focus-visible + .chip { outline: 3px solid #9DB0E6; outline-offset: 2px; }

/* Служебные страницы allauth (смена пароля, подтверждение email и т.п.) */
.allauth-page main { max-width: 520px; margin: 56px auto 96px; padding: 0 16px; display: flex; flex-direction: column; gap: 16px; }
.allauth-page main h1 { font-size: 30px; }
.allauth-page main h2 { font-size: 20px; }
.allauth-page main form { display: flex; flex-direction: column; gap: 14px; }
.allauth-page main form p { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.allauth-page main label { font-size: 14px; font-weight: 700; }
.allauth-page main input:not([type=checkbox]):not([type=radio]), .allauth-page main select { width: 100%; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--input); border-radius: 12px; font: 500 16px var(--font); color: var(--navy); }
.allauth-page main button, .allauth-page main a[href].button { height: 52px; padding: 0 24px; border-radius: 14px; border: none; background: var(--navy); color: #fff; font: 700 16px var(--font); cursor: pointer; }
.allauth-page main ul { padding-left: 20px; }
.q.has-error .input, .q.has-error .qtable, .q.has-error .dropzone { border-color: #C2410C; }
@media (max-width: 900px) { .wizard-side .steps, .wizard-side > .small { display: none; } .wizard-side { padding: 14px 16px; } }
.wizard > *, .q-grid > *, .grid > * { min-width: 0; }
