@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
    --bg-body: #030712;
    --bg-panel: #0f172a;
    --bg-panel-alt: #111b2f;
    --bg-card: #131f3c;
    --bg-soft: rgba(148, 163, 184, 0.08);
    --border-soft: rgba(148, 163, 184, 0.15);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #6779e3;
    --accent-strong: #1ae8ff;
    /* Чуть темнее старт градиента — белый текст читается на всей ширине кнопки */
    --accent-gradient: linear-gradient(135deg, #0ea5b8 0%, #4f5ed4 48%, #7560c8 100%);
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
    --card-shadow: 0 30px 80px rgba(3, 7, 18, 0.65);
}

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

/* Общий класс скрытия (раньше не было правила — блоки с .hidden оставались видимыми пустыми рамками) */
.hidden {
    display: none !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: radial-gradient(circle at top, #0f172a 0%, #030712 60%);
    min-height: 100vh;
    padding: 24px;
    color: var(--text-primary);
}

.container {
    max-width: 960px;
    margin: 0 auto;
    background: var(--bg-panel);
    border-radius: 18px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-soft);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, rgba(26, 232, 255, 0.22), rgba(171, 160, 242, 0.22));
    padding: 20px 28px 11px;
    border-bottom: 1px solid var(--border-soft);
}

.header--compact {
    padding: 16px 22px 12px;
}

.header-cab-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
}

.header-cab-brand .site-logo-link {
    margin-bottom: 0;
}

.header-tagline-compact {
    margin: 10px 0 0;
    font-size: clamp(1.05rem, 2vw, 1.22rem);
    font-weight: 600;
    color: rgba(248, 250, 252, 0.96);
    line-height: 1.3;
    max-width: 38rem;
}

.header h1.header-tagline-compact {
    font-size: clamp(1.05rem, 2vw, 1.22rem);
    font-weight: 600;
    margin: 10px 0 0;
}

.page-title-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    left: 0;
    top: 0;
}

.header-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

/* Ряд 1: лого | меню (как Row с двумя Expanded / MainAxisAlignment.spaceBetween) */
.header-row--top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 20px;
}

.header-cell--brand {
    min-width: 0;
}

.header-cell--brand .site-logo-link {
    margin-bottom: 0;
    line-height: 0;
}

.header-cell--nav {
    justify-self: end;
}

/* Ряд 2: слоган на всю ширину (отдельная «строка») */
.header-row--motto {
    width: 100%;
}

.header-motto--hero {
    margin: 0;
    font-size: clamp(1.3rem, 2.4vw, 1.48rem);
    font-weight: 600;
    line-height: 1.28;
    color: rgba(248, 250, 252, 0.96);
    letter-spacing: 0.015em;
    max-width: 38rem;
}

.header-motto {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--text-secondary);
    max-width: 12.5rem;
}

/* Слоган-заголовок: семантически h1, визуал как у .header-motto--hero */
.header h1.header-motto--hero {
    font-size: clamp(1.3rem, 2.4vw, 1.48rem);
    font-weight: 600;
    line-height: 1.28;
    color: rgba(248, 250, 252, 0.96);
    letter-spacing: 0.015em;
    max-width: 38rem;
    margin: 0;
}

.header-tagline-wide {
    margin: 0;
    width: 100%;
    max-width: none;
    color: var(--text-secondary);
    line-height: 1.55;
    font-size: 0.98rem;
}

.header-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.header-titles {
    min-width: 0;
}

.header-subtitle {
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 36rem;
}

.header-nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}

.header-logout-form {
    display: inline;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

.header-logout-form button {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(15, 23, 42, 0.35);
    cursor: pointer;
    font-family: inherit;
}

.header-logout-form button:hover {
    border-color: var(--accent);
    color: var(--accent-strong);
}

.header-url-row {
    margin-top: 12px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
}

.header-left {
    flex: 1 1 280px;
    min-width: 0;
}

.site-logo-link {
    display: inline-block;
    margin-bottom: 8px;
    line-height: 0;
}

.site-logo {
    display: block;
    height: 36px;
    width: auto;
    max-width: min(220px, 100%);
    object-fit: contain;
}

.auth-brand {
    display: block;
    margin: 0 auto 20px;
    height: 40px;
    width: auto;
    object-fit: contain;
}

.header-actions {
    display: flex;
    flex-shrink: 0;
    gap: 12px;
}

.contact-button {
    width: auto;
    padding: 10px 16px;
    font-size: 0.9rem;
    background: rgba(26, 232, 255, 0.12);
    border: 1px solid rgba(26, 232, 255, 0.5);
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.contact-button:hover {
    background: rgba(26, 232, 255, 0.25);
    border-color: rgba(26, 232, 255, 0.8);
    transform: translateY(-1px);
}

.header-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.header h1:not(.page-title-hidden),
.header-titles h1 {
    font-size: clamp(1.45rem, 4vw, 2rem);
    margin-bottom: 6px;
    line-height: 1.2;
}

.header p,
.header-subtitle {
    color: var(--text-secondary);
}

.site-url-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 14px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(16px);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    border: 1px solid var(--border-soft);
    max-width: 100%;
    word-break: break-word;
}

.site-url-label {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-strong);
    opacity: 0.9;
}

.site-url-text {
    flex: 1 1 12rem;
    min-width: 0;
    color: var(--text-primary);
}

.site-url-header.hidden {
    display: none;
}

.content {
    padding: 40px 42px 48px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.step {
    margin-bottom: 36px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.step.visible {
    opacity: 1;
    transform: translateY(0);
}

.step.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

.step.hidden {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-soft);
}

.step-number {
    background: var(--accent-gradient);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    box-shadow: 0 10px 30px rgba(26, 232, 255, 0.35);
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.9), 0 2px 10px rgba(15, 23, 42, 0.45);
}

.step-title {
    font-size: 1.4rem;
}

.step-subtitle {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.cab-rerun-hint {
    margin: -12px 0 18px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(26, 232, 255, 0.06);
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 22px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

input[type="url"],
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    background: rgba(15, 23, 42, 0.65);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(26, 232, 255, 0.15);
}

input.error-state,
textarea.error-state {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.1);
}

input.error-state:focus,
textarea.error-state:focus {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.url-error-message {
    margin-top: 8px;
    padding: 10px 14px;
    background: rgba(248, 113, 113, 0.1);
    border-left: 3px solid var(--danger);
    border-radius: 8px;
    color: var(--danger);
    font-size: 0.9rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
    transition:
        background 0.35s ease,
        border-left-color 0.35s ease,
        color 0.35s ease,
        box-shadow 0.35s ease;
}

.url-error-message:not(.url-paywall-hint):not(.url-status-loading):not(.url-status-error)::before,
.url-error-message.url-status-error::before {
    content: "⚠️";
    font-size: 1rem;
    flex-shrink: 0;
}

.url-error-message.url-status-loading {
    font-weight: 500;
    font-size: 0.93rem;
    letter-spacing: 0.01em;
    border-left-width: 3px;
    border-left-style: solid;
}

.url-error-message.url-status-loading::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(26, 232, 255, 0.35);
    border-top-color: var(--accent-strong);
    animation: spin 0.85s linear infinite;
    flex-shrink: 0;
}

/* После проверки доступности: тот же блок, плавный переход с loading */
.url-error-message.url-status-error {
    color: var(--danger);
    background: rgba(248, 113, 113, 0.1);
    border-left-color: var(--danger);
    font-weight: 500;
}

@keyframes urlErrorStripReveal {
    from {
        opacity: 0.88;
        box-shadow: 0 0 0 0 rgba(248, 113, 113, 0);
    }
    to {
        opacity: 1;
        box-shadow: 0 4px 24px -6px rgba(248, 113, 113, 0.25);
    }
}

.url-error-message.url-status-error--enter {
    animation: urlErrorStripReveal 0.42s ease-out forwards;
}

button {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.92), 0 2px 14px rgba(15, 23, 42, 0.45);
}

button.contact-button,
button.contact-close {
    text-shadow: none;
}

button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(14, 165, 233, 0.35);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.progress-container {
    margin: 24px 0;
    padding: 20px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-soft);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    width: 0%;
    transition: width 0.4s ease;
}

.progress-text {
    text-align: center;
    color: var(--text-secondary);
    font-weight: 500;
}

.cat-animation {
    text-align: center;
    margin-top: 24px;
}

.cat-animation img {
    max-width: 220px;
    height: auto;
}

.cat-animation.hidden {
    display: none;
}

.recommendations-animation {
    text-align: center;
    margin: 28px 0;
}

.recommendations-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.recommendations-animation img {
    max-width: 200px;
    height: auto;
}

.recommendations-animation.hidden {
    display: none;
}

.loading-spinner {
    display: inline-flex;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(26, 232, 255, 0.35);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.result-card,
.position-info,
.lead-form,
.recommendations-summary,
.recommendation-card,
.demo-note,
.manual-review-alert {
    background: var(--bg-panel-alt);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 10px 40px rgba(8, 15, 40, 0.35);
}

.result-card {
    margin-top: 20px;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0;
}

.keyword-badge {
    background: rgba(26, 232, 255, 0.1);
    color: var(--accent);
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.95rem;
    border: 1px solid rgba(26, 232, 255, 0.35);
}

.position-info {
    margin-top: 18px;
    border-left: 4px solid var(--accent);
}

.position-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    margin: 6px 6px 0 0;
}

.position-good { background: rgba(52, 211, 153, 0.15); color: var(--success); }
.position-medium { background: rgba(251, 191, 36, 0.15); color: var(--warning); }
.position-bad { background: rgba(248, 113, 113, 0.15); color: var(--danger); }
.position-unavailable { background: rgba(148, 163, 184, 0.15); color: var(--text-secondary); }

.checking-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-weight: 600;
    margin-top: 18px;
}

.recommendations-summary {
    margin-top: 20px;
}

.recommendations-summary .summary-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 10px;
    padding-bottom: 0;
    border-bottom: none;
    cursor: default;
    pointer-events: none;
}

/* Заголовки блоков в шаге рекомендаций: сводка, анализ контента, карточки */
.reco-summary-headline {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--text-primary);
}

.recommendations-summary .reco-summary-line {
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.5;
}

.recommendations-summary .reco-summary-line-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-right: 6px;
}

.recommendations-grid {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.recommendation-card {
    border-left: 3px solid var(--accent);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.recommendation-card h4 {
    margin-bottom: 12px;
}

.recommendation-meta,
.recommendation-meta-inline {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.recommendation-meta-inline {
    margin-bottom: 10px;
}

.recommendation-meta .meta-label,
.recommendation-meta-inline strong {
    color: var(--text-primary);
}

.recommendation-card.pending {
    opacity: 0;
    transform: translateY(12px);
}

.recommendation-text p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.manual-review-alert {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-top: 20px;
    border-left: 3px solid var(--warning);
}

.manual-review-marker {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--warning);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.manual-review-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.manual-review-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.manual-review-alert.hidden {
    display: none;
}

.features-subtitle {
    margin-top: 32px;
    color: var(--text-secondary);
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin: 32px 0;
}

.feature-card {
    background: var(--bg-panel-alt);
    border-radius: 18px;
    padding: 26px;
    border: none;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 20px rgba(4, 6, 16, 0.35);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 40px rgba(4, 6, 16, 0.6);
}

.feature-icon {
    font-size: 2.6rem;
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    text-shadow: 0 10px 25px rgba(26, 232, 255, 0.35);
}

.lead-form {
    margin-top: 26px;
}

.lead-form form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px 18px;
}

.lead-form .form-group {
    margin-bottom: 0;
}

.lead-form .form-group.full-width {
    grid-column: 1 / -1;
}

.lead-form button {
    grid-column: 1 / -1;
}

.consent-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(15, 23, 42, 0.65);
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.checkbox input {
    margin-top: 3px;
}

.checkbox.optional span {
    color: var(--text-secondary);
}

.error {
    background: rgba(248, 113, 113, 0.08);
    border-left: 4px solid var(--danger);
    color: var(--danger);
    margin-top: 16px;
}

.success {
    background: rgba(52, 211, 153, 0.08);
    border-left: 4px solid var(--success);
    color: var(--success);
    margin-top: 16px;
}

.collapse-button {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-primary);
    border: 1px solid var(--border-soft);
    padding: 12px 18px;
    border-radius: 12px;
    margin-top: 24px;
}

.collapse-button:hover {
    background: rgba(148, 163, 184, 0.25);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.collapsible-content.expanded {
    max-height: 5000px;
}

.demo-complete {
    margin-bottom: 32px;
    background: linear-gradient(135deg, rgba(26, 232, 255, 0.12), rgba(171, 160, 242, 0.15));
    border-radius: 20px;
    padding: 28px;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(52, 211, 153, 0.18);
    color: var(--success);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    margin-bottom: 16px;
}

.demo-complete h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.demo-complete p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.demo-complete-list {
    margin-top: 16px;
    padding-left: 18px;
    color: var(--text-primary);
    line-height: 1.6;
}

.demo-note {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.demo-note-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-top: 8px;
    border-radius: 50%;
    background: var(--accent-strong);
    box-shadow: 0 0 0 3px rgba(26, 232, 255, 0.15);
}

.demo-complete-lead {
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 4px;
}

.demo-note-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.demo-note-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.code-block {
    margin: 18px 0;
    border-radius: 14px;
    background: #050b16;
    border: 1px solid rgba(59, 130, 246, 0.35);
    overflow: hidden;
    position: relative;
}

.code-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
}

.code-language {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.copy-snippet {
    width: auto;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    border: 1px solid rgba(59, 130, 246, 0.4);
    background: rgba(26, 232, 255, 0.08);
    color: var(--text-primary);
    text-shadow: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.copy-snippet:hover {
    background: rgba(26, 232, 255, 0.2);
}

.code-block pre {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #f8fafc;
}

.code-block code {
    display: block;
    white-space: pre;
}

.code-block-message {
    padding: 18px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.code-block.empty .copy-snippet {
    opacity: 0.5;
    pointer-events: none;
}

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(26, 232, 255, 0.4);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--text-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 9999;
}

.toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.toast.hidden {
    opacity: 0;
    pointer-events: none;
}

.contact-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.contact-modal.hidden {
    display: none;
}

.contact-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 18, 0.7);
    backdrop-filter: blur(6px);
}

.contact-modal-content {
    position: relative;
    background: var(--bg-panel);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    padding: 24px 22px 26px;
    width: min(360px, 92vw);
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.contact-modal-content--left {
    text-align: left;
}

.contact-modal-content--left .contact-link {
    align-self: flex-start;
}

.contact-modal-content--stack {
    text-align: left;
}

.contact-modal-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-modal-stack--channels .contact-subtext--channel-label {
    text-align: center;
    margin: 0 0 8px;
    width: 100%;
}

.contact-modal-stack--channels .contact-subtext--channel-label-after {
    margin-top: 16px;
}

.contact-modal-stack--channels .contact-modal-actions--channel {
    margin-top: 0;
}

.contact-modal-stack--channels .contact-copy-status {
    text-align: center;
}

.contact-modal-stack--channels .contact-subtext--footer-centered {
    text-align: center;
}

.contact-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.contact-link--full {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
}

.contact-copy-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(148, 163, 184, 0.08);
    color: var(--text-primary);
    font: inherit;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.contact-copy-email:hover {
    border-color: rgba(26, 232, 255, 0.4);
    background: rgba(26, 232, 255, 0.06);
}

.contact-copy-email:focus {
    outline: none;
}

.contact-copy-email:focus-visible {
    outline: 2px solid rgba(26, 232, 255, 0.35);
    outline-offset: 2px;
}

.contact-copy-status {
    min-height: 1.25em;
    margin: 8px 0 0;
    font-size: 0.82rem;
    color: rgba(52, 211, 153, 0.95);
}

.contact-subtext--tight {
    margin-top: 0;
    margin-bottom: 0;
}

.contact-subtext--footer {
    margin-top: 14px;
    margin-bottom: 0;
}

.contact-subtext--left {
    text-align: left;
}

.contact-email-link {
    display: inline-block;
    margin-top: 4px;
    color: var(--accent-strong);
    font-weight: 600;
    text-decoration: none;
}

.contact-email-link:hover {
    text-decoration: underline;
}

.contact-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.contact-caption {
    font-weight: 600;
    margin: 0;
    text-align: left;
}

.contact-close {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.35rem;
    line-height: 1;
    width: auto;
    height: auto;
    min-width: 2rem;
    padding: 4px 6px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.contact-close:hover {
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-primary);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--accent-gradient);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 15px 25px rgba(26, 232, 255, 0.35);
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.92), 0 2px 14px rgba(15, 23, 42, 0.45);
}

.contact-subtext {
    margin-top: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.header-actions-row {
    flex-wrap: wrap;
    align-items: center;
}

.header-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(15, 23, 42, 0.35);
}

.header-link:hover {
    border-color: var(--accent);
    color: var(--accent-strong);
}

.header-link-accent {
    background: rgba(26, 232, 255, 0.15);
    border-color: rgba(26, 232, 255, 0.55);
}

.header-nav-pills .header-link,
.header-nav-pills .contact-button,
.header-nav-pills .header-logout-form button {
    min-height: 40px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    box-sizing: border-box;
}

.content select,
.cab-form-grid select,
.auth-wrap select {
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-soft);
    padding: 10px 12px;
    font: inherit;
}

.content select option,
.cab-form-grid select option,
.auth-wrap select option {
    color: #0f172a;
    background: #f1f5f9;
}

.paywall-locked-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 18px;
    width: 100%;
}

@media (min-width: 720px) {
    .paywall-locked-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

.paywall-post-rec-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 16px;
    margin-bottom: 8px;
}

.recommendation-card-paywall-last,
.recommendation-card-paywall-blocked {
    border-left-color: rgba(26, 232, 255, 0.65);
    grid-column: 1 / -1;
}

.recommendation-card-paywall-blocked {
    border-left-color: rgba(251, 191, 36, 0.55);
}

.paywall-aggregate-title {
    margin: 0 0 14px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: default;
}

.paywall-featured-wrap .recommendation-card-locked {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
}

.paywall-featured-wrap {
    margin-bottom: 6px;
}

.paywall-more-note--in-card {
    margin: 10px 0 14px;
}

.paywall-blur-block--solo {
    margin-top: 4px;
}

.paywall-cta-on-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 16px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border-soft);
}

.paywall-hint-on-card {
    margin: 14px 0 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.45;
    text-align: center;
}

.paywall-hint-on-card--muted {
    opacity: 0.92;
}

.paywall-btn--strong.paywall-btn-secondary {
    background: rgba(15, 23, 42, 0.85);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.paywall-btn--strong.paywall-btn-outline {
    border-width: 2px;
    border-color: rgba(26, 232, 255, 0.85);
    color: #ecfeff;
    background: rgba(26, 232, 255, 0.06);
}

.paywall-btn--strong.paywall-btn-outline:hover {
    background: rgba(26, 232, 255, 0.14);
}

.paywall-actions-row--on-card {
    margin-top: 14px;
    justify-content: center;
}

.paywall-link--on-card {
    color: #e0f2fe;
    font-weight: 600;
}

.recommendation-card-locked {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 16px 18px;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
}

.paywall-visible-title {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.paywall-meta {
    margin-bottom: 10px;
    opacity: 0.95;
}

.paywall-blur-block {
    position: relative;
    border-radius: 10px;
    min-height: 4.25em;
    flex: 1 1 auto;
    background: rgba(3, 7, 18, 0.35);
    overflow: hidden;
    display: block;
}

.paywall-blur-inner {
    filter: blur(5px);
    opacity: 0.45;
    user-select: none;
    pointer-events: none;
    transform: translateZ(0);
    display: block;
    min-height: 3em;
    line-height: 1.45;
}

.paywall-placeholder {
    color: var(--text-secondary);
}

.paywall-more-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: -8px 0 16px;
}

.paywall-card {
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px dashed rgba(26, 232, 255, 0.45);
    background: rgba(26, 232, 255, 0.08);
    color: var(--text-secondary);
    line-height: 1.55;
}

.paywall-card-cta {
    border-style: solid;
    border-color: rgba(26, 232, 255, 0.35);
}

.paywall-hint-after--compact {
    margin-top: 14px;
    margin-bottom: 0;
}

.paywall-hint-centered {
    text-align: center;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.paywall-card-blocked {
    border-style: solid;
    border-color: rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.06);
}

.paywall-lead,
.paywall-blocked-text {
    margin: 0 0 12px;
}

.paywall-blocked-title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: default;
}

.paywall-hint-after {
    margin: 14px 0 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    opacity: 0.95;
}

.paywall-actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.paywall-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    color: #0f172a;
    background: var(--accent-gradient);
    border: none;
    box-shadow: 0 8px 24px rgba(26, 232, 255, 0.25);
}

.paywall-btn:hover {
    filter: brightness(1.06);
}

.paywall-btn-secondary {
    background: rgba(15, 23, 42, 0.5);
    color: var(--text-primary);
    border: 1px solid var(--border-soft);
    box-shadow: none;
}

.paywall-btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(26, 232, 255, 0.55);
    box-shadow: none;
}

.paywall-btn-outline:hover {
    filter: none;
    background: rgba(26, 232, 255, 0.1);
    border-color: rgba(26, 232, 255, 0.85);
}

.paywall-card strong {
    color: var(--text-primary);
}

.paywall-actions {
    margin-top: 12px;
}

.paywall-link {
    color: var(--accent-strong);
    font-weight: 600;
    text-decoration: none;
}

.paywall-link:hover {
    text-decoration: underline;
}

.paywall-sep {
    margin: 0 8px;
    opacity: 0.5;
}

.url-error-message.url-paywall-hint {
    color: var(--text-secondary);
    border-left: 3px solid var(--accent-strong);
    background: rgba(26, 232, 255, 0.1);
}

.guest-demo-soft-gate {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(171, 160, 242, 0.35);
    background: rgba(171, 160, 242, 0.06);
}

.guest-demo-soft-gate__lead {
    margin: 0 0 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.95rem;
    text-align: center;
}

.guest-demo-soft-gate__actions {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 16px;
}

.guest-demo-soft-gate--credits {
    border-color: rgba(26, 232, 255, 0.4);
    background: rgba(26, 232, 255, 0.06);
}

.demo-roadmap-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.demo-roadmap-stack .site-faq-a p {
    margin: 0 0 10px;
}

.demo-roadmap-stack .site-faq-a p:last-child {
    margin-bottom: 0;
}

.demo-note--after-roadmap {
    margin-top: 8px;
}

.guest-demo-soft-gate__btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    color: #0f172a;
    background: var(--accent-gradient);
    border: none;
    box-shadow: 0 8px 24px rgba(26, 232, 255, 0.2);
}

.guest-demo-soft-gate__btn:hover {
    filter: brightness(1.05);
}

.guest-demo-soft-gate__btn--outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(26, 232, 255, 0.55);
    box-shadow: none;
}

.guest-demo-soft-gate__btn--outline:hover {
    filter: none;
    background: rgba(26, 232, 255, 0.12);
    border-color: rgba(26, 232, 255, 0.85);
}

.demo-complete-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.demo-complete--cabinet-new {
    padding: 16px 22px 18px;
    margin-bottom: 24px;
}

.demo-complete--cabinet-new .status-pill {
    margin-bottom: 10px;
}

.demo-complete--cabinet-new h2 {
    font-size: 1.62rem;
    margin-bottom: 8px;
}

.demo-complete--cabinet-new .demo-complete-lead {
    max-width: 36rem;
    margin-bottom: 0;
}

.demo-complete--cabinet-new .demo-complete-cta {
    margin-top: 14px;
}

.cab-flow-nav-embed {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    background: rgba(15, 23, 42, 0.65);
    box-shadow: 0 8px 28px rgba(3, 7, 18, 0.35);
}

.cab-report-page {
    min-height: 100vh;
    padding: 20px 16px 40px;
}

.cab-report-toolbar {
    position: sticky;
    top: 0;
    z-index: 60;
    max-width: 960px;
    margin: 0 auto 14px;
    padding: 12px 16px 14px;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    box-shadow: 0 10px 32px rgba(3, 7, 18, 0.45);
}

.cab-report-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    font-size: 0.88rem;
    margin: 0;
}

.cab-report-bc-link {
    color: var(--accent-strong);
    text-decoration: none;
    font-weight: 600;
}

.cab-report-bc-link:hover {
    text-decoration: underline;
}

.cab-report-bc-link--accent {
    color: var(--text-primary);
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(26, 232, 255, 0.08);
}

.cab-report-bc-link--accent:hover {
    border-color: var(--accent-strong);
}

.cab-report-bc-plus {
    margin-right: 4px;
    font-weight: 700;
    opacity: 0.9;
}

.cab-report-bc-sep {
    color: var(--text-secondary);
    user-select: none;
}

.cab-report-bc-current {
    color: var(--text-primary);
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(26, 232, 255, 0.08);
    font-weight: 600;
    font-size: inherit;
}

.cab-report-toolbar-meta {
    margin: 10px 0 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    word-break: break-all;
    line-height: 1.45;
}

.cab-report-url-label {
    display: inline-block;
    margin-right: 8px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-strong);
    vertical-align: middle;
}

.cab-report-container {
    margin-top: 0;
}

.cab-report-content-header.header {
    padding: 16px 36px 0;
    background: transparent;
    border-bottom: none;
}

.cab-report-content-header .header-url-row {
    margin-top: 0;
}

@media print {
    .no-print {
        display: none !important;
    }
}

/* FAQ и дорожная карта: общий контейнер и отдельные панели под основным сценарием */
.site-lower {
    max-width: 960px;
    margin: 28px auto 0;
    padding: 0 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.site-section--panel {
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    background: var(--bg-panel);
    box-shadow: 0 10px 36px rgba(3, 7, 18, 0.28);
    padding: 20px 18px 22px;
}

.site-section--panel.site-section--roadmap {
    background: linear-gradient(
        165deg,
        rgba(26, 232, 255, 0.05),
        rgba(117, 96, 200, 0.07)
    );
    border-color: rgba(148, 163, 184, 0.35);
}

.site-faq-title {
    font-size: 1.05rem;
    margin: 0 0 14px;
    color: var(--text-primary);
    font-weight: 600;
}

.site-faq-item {
    margin-bottom: 10px;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: var(--bg-panel);
    overflow: hidden;
}

.site-faq-q {
    padding: 12px 14px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    list-style: none;
}

.site-faq-q::-webkit-details-marker {
    display: none;
}

.site-faq-item[open] .site-faq-q {
    border-bottom: 1px solid var(--border-soft);
}

.site-faq-a {
    padding: 12px 14px 14px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
}

.site-faq-a p {
    margin: 0;
}

.site-roadmap-lead {
    margin: 0 0 16px;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.site-section--roadmap .demo-roadmap-stack .site-faq-q {
    color: #f8fafc;
}

.report-issue-text-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(148, 163, 184, 0.95);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    box-shadow: none;
    transition: color 0.15s ease;
}

.report-issue-text-link:hover {
    color: rgba(226, 232, 240, 0.98);
}

.report-issue-text-link:focus {
    outline: none;
}

.report-issue-text-link:focus-visible {
    outline: 1px solid rgba(148, 163, 184, 0.55);
    outline-offset: 3px;
    box-shadow: none;
}

.report-issue-modal-content {
    max-width: 480px;
    text-align: center;
}

.report-issue-modal-content .contact-modal-header {
    position: relative;
    justify-content: center;
    margin-bottom: 14px;
}

.report-issue-modal-content .contact-caption {
    flex: 1;
    text-align: center;
    padding: 0 36px 0 0;
    font-size: 1.02rem;
}

.report-issue-modal-content .contact-close {
    position: absolute;
    right: 0;
    top: 0;
}

.report-issue-modal-content .report-issue-lead {
    margin: 0 0 14px;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-secondary);
    text-align: center;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.report-issue-modal-content .report-issue-cat-wrap {
    margin: 6px auto 16px;
    text-align: center;
}

.report-issue-modal-content .report-issue-cat {
    display: block;
    margin: 0 auto;
    border-radius: 14px;
    max-width: 132px;
    width: 100%;
    height: auto;
}

.report-issue-modal-content #report-issue-form {
    text-align: left;
    margin-top: 4px;
}

.recommendations-grid > .report-post-register-banner {
    grid-column: 1 / -1;
    margin-top: 0;
}

.report-post-register-banner {
    margin: 14px 0 18px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(52, 211, 153, 0.35);
    background: rgba(52, 211, 153, 0.08);
    transition: opacity 0.8s ease;
}

.recommendation-card.recommendation-card--post-unlock-highlight {
    position: relative;
    z-index: 1;
    border-left-color: rgba(52, 211, 153, 0.95);
    animation: reco-card-unlock-highlight 2.6s ease-in-out infinite;
}

@keyframes reco-card-unlock-highlight {
    0%,
    100% {
        box-shadow:
            0 0 0 1px rgba(52, 211, 153, 0.35),
            0 10px 32px rgba(26, 232, 255, 0.08);
    }
    50% {
        box-shadow:
            0 0 0 2px rgba(26, 232, 255, 0.4),
            0 14px 42px rgba(26, 232, 255, 0.16);
    }
}

.report-post-register-banner--fade {
    opacity: 0;
}

.report-post-register-banner__title {
    margin: 0 0 6px;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-primary);
}

.report-post-register-banner__text {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.recommendations-unlocked-pulse {
    animation: reco-unlock-fade 2.2s ease-out 1;
}

@keyframes reco-unlock-fade {
    0% {
        box-shadow: 0 0 0 0 rgba(26, 232, 255, 0.45);
    }
    100% {
        box-shadow: 0 0 0 12px rgba(26, 232, 255, 0);
    }
}

.site-footer {
    max-width: 960px;
    margin: 36px auto 20px;
    padding: 0 12px;
    text-align: center;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgba(148, 163, 184, 0.95);
    letter-spacing: 0.01em;
}

.site-footer-inner {
    padding: 22px 20px;
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    background: var(--bg-panel);
    box-shadow: 0 12px 40px rgba(3, 7, 18, 0.35);
}

.site-footer-brand {
    margin-bottom: 14px;
}

.site-footer-logo-link {
    margin-bottom: 0;
}

.site-footer-logo {
    height: 30px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.site-footer-title {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 10px;
    letter-spacing: 0.02em;
}

.site-footer-copy {
    margin: 0 0 10px;
    font-size: 0.82rem;
    color: rgba(148, 163, 184, 0.92);
}

.site-footer-meta,
.site-footer-address {
    margin: 0 0 8px;
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(148, 163, 184, 0.88);
}

.site-footer-address {
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
}

.site-footer-links {
    margin: 14px 0 0;
    font-size: 0.88rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
}

.site-footer-logout {
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--border-soft);
}

.footer-logout-form {
    display: inline;
    margin: 0;
    padding: 0;
}

.footer-logout-link {
    background: none;
    border: none;
    color: rgba(148, 163, 184, 0.95);
    font: inherit;
    font-size: 0.86rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 0;
    box-shadow: none;
    transition: color 0.15s ease;
}

.footer-logout-link:hover {
    color: rgba(203, 213, 225, 0.98);
}

.footer-logout-link:focus {
    outline: none;
}

.footer-logout-link:focus-visible {
    outline: 1px solid rgba(148, 163, 184, 0.45);
    outline-offset: 2px;
    box-shadow: none;
}

.site-footer-links a {
    color: rgba(125, 211, 252, 0.95);
    text-decoration: none;
    font-weight: 500;
}

.site-footer-links a:hover {
    color: var(--accent-strong);
    text-decoration: underline;
}

@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    .container {
        border-radius: 16px;
    }

    .content {
        padding: 28px 20px 32px;
    }

    .header-row--top,
    .header-cab-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-row--top {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .header-cell--nav {
        justify-self: stretch;
        width: 100%;
    }

    .header-nav-pills {
        width: 100%;
        justify-content: flex-start;
    }

    .header-nav-pills {
        justify-content: flex-start;
    }

    .header-top {
        flex-direction: column;
        align-items: stretch;
    }

    .header-actions {
        align-self: flex-start;
    }
}

/* Сообщить об ошибке (модалка) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.report-issue-textarea {
    width: 100%;
    min-height: 120px;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
    box-sizing: border-box;
}

.report-issue-status {
    min-height: 1.25em;
    margin-top: 8px;
    font-size: 0.88rem;
    color: var(--danger);
}

/* ── Cookie consent banner ── */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    padding: 14px 20px;
    background: var(--bg-panel);
    border-top: 1px solid var(--border-soft);
    box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.28s ease, transform 0.28s ease;
    pointer-events: none;
}

.cookie-consent-banner--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-consent-text {
    flex: 1 1 260px;
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

.cookie-consent-link {
    color: var(--accent-strong);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-consent-btn {
    padding: 7px 18px;
    border-radius: 8px;
    font-size: 0.83rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s;
    line-height: 1.4;
}

.cookie-consent-btn:hover { opacity: 0.82; }

.cookie-consent-btn--accept {
    background: var(--accent-gradient);
    color: #fff;
}

.cookie-consent-btn--decline {
    background: transparent;
    border: 1px solid var(--border-soft);
    color: var(--text-secondary);
}
