/* main.css — общий темный стиль первого экрана Table Observer. */

:root {
    --bg: #070b14;
    --bg-soft: #0c1424;
    --bg-card: rgba(18, 28, 48, 0.78);
    --bg-card-strong: rgba(24, 37, 63, 0.92);
    --border: rgba(148, 163, 184, 0.18);
    --border-strong: rgba(125, 211, 252, 0.32);
    --text: #e5eefc;
    --text-soft: #9fb0c9;
    --muted: #6f819b;
    --accent: #67e8f9;
    --accent-strong: #22d3ee;
    --success: #86efac;
    --warning: #fde68a;
    --danger: #fda4af;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at 15% 8%, rgba(34, 211, 238, 0.16), transparent 34%),
        radial-gradient(circle at 86% 18%, rgba(129, 140, 248, 0.15), transparent 32%),
        linear-gradient(180deg, #070b14 0%, #08101e 48%, #060914 100%);
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 78%);
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

[hidden] {
    display: none !important;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(7, 11, 20, 0.82);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100% - 32px, var(--max-width));
    margin: 0 auto;
    padding: 16px 0;
    gap: 18px;
}

.site-header__brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.site-header__mark {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 24px rgba(103, 232, 249, 0.9);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-header__feedback {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 9px 14px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.045);
}

.site-header__feedback:hover {
    color: var(--text);
    border-color: var(--border-strong);
}

.language-switcher {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.language-switcher__button {
    min-width: 42px;
    border: 0;
    border-radius: 999px;
    padding: 7px 10px;
    color: var(--text-soft);
    background: transparent;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.language-switcher__button.is-active {
    color: #06101c;
    background: var(--accent);
}

.landing-page {
    width: min(100% - 32px, var(--max-width));
    margin: 0 auto;
    padding: 72px 0 88px;
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.68fr);
    align-items: center;
    gap: 32px;
}

.hero-section__content h1 {
    max-width: 800px;
    margin: 0;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 0.94;
    letter-spacing: -0.065em;
}

.hero-section__lead {
    max-width: 720px;
    margin: 26px 0 0;
    color: var(--text-soft);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.7;
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.trust-strip span {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 9px 13px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.045);
    font-size: 13px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 0 20px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
}

.button--primary {
    color: #06101c;
    background: linear-gradient(135deg, var(--accent), #a7f3d0);
    box-shadow: 0 18px 50px rgba(34, 211, 238, 0.18);
}

.button--ghost {
    color: var(--text-soft);
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.04);
}

.hero-card,
.connect-panel,
.info-card,
.public-access-note,
.feedback-modal__panel {
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.hero-card {
    padding: 24px;
}

.hero-card__label,
.eyebrow {
    margin: 0 0 16px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.signal-preview {
    display: grid;
    gap: 7px;
    margin-top: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 15px;
    background: rgba(255, 255, 255, 0.035);
}

.signal-preview strong {
    font-size: 15px;
}

.signal-preview span {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.5;
}

.signal-preview--danger {
    border-color: rgba(253, 164, 175, 0.28);
}

.signal-preview--warning {
    border-color: rgba(253, 230, 138, 0.28);
}

.signal-preview--neutral {
    border-color: rgba(103, 232, 249, 0.22);
}

.connect-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(280px, 0.55fr);
    gap: 24px;
    margin-top: 36px;
    padding: 28px;
}

.connect-panel h2,
.public-access-note h2,
.feedback-modal__panel h2 {
    margin: 0;
    font-size: clamp(25px, 3vw, 38px);
    letter-spacing: -0.04em;
}

.connect-panel p,
.public-access-note p {
    color: var(--text-soft);
    line-height: 1.65;
}

.connect-form {
    display: grid;
    align-content: start;
    gap: 13px;
}

.connect-form label,
.feedback-form label {
    display: grid;
    gap: 9px;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 15px;
    color: var(--text);
    background: rgba(4, 8, 16, 0.68);
    outline: none;
}

input:focus,
textarea:focus {
    border-color: var(--border-strong);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.09);
}

textarea {
    resize: vertical;
}

.form-hint,
.form-error,
.form-success {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.form-hint {
    color: var(--muted);
}

.form-error {
    color: var(--danger) !important;
}

.form-success {
    color: var(--success) !important;
}

.public-access-note--inside-connect {
    grid-column: 1 / -1;
    margin-top: 0;
    padding: 22px;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.035);
}

.public-access-note ol {
    display: grid;
    gap: 10px;
    margin: 16px 0 0;
    padding-left: 22px;
    color: var(--text-soft);
    line-height: 1.55;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.info-card {
    padding: 22px;
    box-shadow: none;
}

.info-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    letter-spacing: -0.02em;
}

.info-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.6;
}

.feedback-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 18px;
}

.feedback-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.64);
    backdrop-filter: blur(8px);
}

.feedback-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 620px);
    padding: 28px;
}

.feedback-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.04);
    font-size: 24px;
    line-height: 1;
}

.feedback-modal__lead {
    max-width: 520px;
    color: var(--text-soft);
    line-height: 1.65;
}

.feedback-form {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

@media (max-width: 860px) {
    .site-header__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-header__actions {
        width: 100%;
        justify-content: space-between;
    }

    .landing-page {
        padding: 42px 0 64px;
    }

    .hero-section,
    .connect-panel,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .hero-section__content h1 {
        font-size: clamp(38px, 13vw, 58px);
    }

    .connect-panel {
        padding: 22px;
    }
}

@media (max-width: 520px) {
    .site-header__brand {
        font-size: 13px;
    }

    .site-header__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .site-header__feedback,
    .language-switcher {
        width: 100%;
    }

    .language-switcher__button {
        flex: 1;
    }

    .trust-strip,
    .hero-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .hero-card,
    .connect-panel,
    .info-card,
    .feedback-modal__panel {
        border-radius: var(--radius-lg);
    }
}
