/**
 * TRIAD GHETTO — единый минималистичный UI (витрина, вход).
 * Красный бренда: brand-tokens.css → --ac
 */
:root {
    --brand-red: var(--ac, #E02A1B);
    --brand-blue: #4760f9;
    --brand-gray: rgba(255, 255, 255, 0.78);
    --brand-black: #0d0d0f;
    --bg: #0d0d0f;
    --bg-elevated: #15151a;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.12);
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.62);
    --radius: 14px;
    --radius-lg: 20px;
    --max: 1040px;
    --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
}

.brand-accent {
    color: var(--brand-red);
}

.brand-accent--blue {
    color: var(--brand-blue);
}

/* ----- Витрина ----- */
body.min-site {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    color: var(--text);
    background: var(--brand-black);
    -webkit-font-smoothing: antialiased;
}

body.min-site--landing {
    background: linear-gradient(165deg, #12121a 0%, #0d0d0f 50%, #0a0a12 100%);
}

.site-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    background: rgba(13, 13, 15, 0.88);
    backdrop-filter: blur(12px);
}

.site-topbar-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-logo {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
}

.site-logo:hover {
    color: #fff;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
}

@media (max-width: 767.98px) {
    .site-topbar-inner {
        flex-wrap: wrap;
    }

    .site-nav {
        width: 100%;
        order: 3;
        border-top: 1px solid var(--border);
        margin-top: 10px;
        padding-top: 10px;
    }

    .site-nav-actions {
        margin-left: auto;
    }
}

.site-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}

.site-nav a:hover {
    color: #fff;
}

.site-nav a:focus {
    outline: none;
    color: var(--brand-blue);
}

.site-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.min-main {
    max-width: var(--max);
    margin: 0 auto;
    padding: 40px 22px 72px;
}

.min-hero {
    padding: 8px 0 48px;
}

.min-kicker {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 14px;
}

.min-h1 {
    margin: 0 0 18px;
    font-size: clamp(1.85rem, 4.5vw, 2.65rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.min-lead {
    margin: 0 0 28px;
    max-width: 34rem;
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--muted);
    font-weight: 500;
}

.min-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn-min {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--border-strong);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.btn-min:hover {
    border-color: rgba(71, 96, 249, 0.45);
    background: rgba(71, 96, 249, 0.08);
}

.btn-min--primary {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
}

.btn-min--primary:hover {
    filter: brightness(1.06);
    background: var(--brand-red);
    border-color: var(--brand-red);
}

.min-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 40px;
    align-items: start;
}

@media (max-width: 991.98px) {
    .min-grid-2 {
        grid-template-columns: 1fr;
    }
}

.min-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
}

.min-media img {
    width: 100%;
    display: block;
    vertical-align: middle;
}

.min-section {
    margin-top: 48px;
}

.min-section-title {
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.min-section-lead {
    margin: 0 0 22px;
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.55;
    max-width: 40rem;
}

.min-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.02);
    padding: 24px 22px;
}

.min-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

@media (max-width: 767.98px) {
    .min-features {
        grid-template-columns: 1fr;
    }
}

.min-feature {
    padding: 18px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.25);
}

.min-feature h3 {
    margin: 0 0 8px;
    font-size: 0.92rem;
    font-weight: 700;
}

.min-feature p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--muted);
}

.min-shots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 767.98px) {
    .min-shots {
        grid-template-columns: 1fr;
    }
}

.min-shot {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
}

.min-shot img {
    width: 100%;
    display: block;
}

.min-shot-cap {
    padding: 10px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
}

.min-table-wrap {
    overflow-x: auto;
}

.min-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.min-table th,
.min-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.min-table th {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.min-table td {
    color: rgba(255, 255, 255, 0.88);
}

.min-table tbody td:last-child {
    color: var(--brand-red);
    font-weight: 600;
}

.min-table tr:last-child td {
    border-bottom: 0;
}

.min-cta {
    margin-top: 40px;
    padding: 22px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(205, 24, 60, 0.35);
    background: linear-gradient(135deg, rgba(205, 24, 60, 0.12), rgba(71, 96, 249, 0.08), rgba(0, 0, 0, 0.35));
}

.min-cta strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 6px;
}

.min-cta span {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.5;
}

.site-footer {
    max-width: var(--max);
    margin: 0 auto;
    padding: 28px 22px 40px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 500;
}

.site-footer a {
    color: var(--muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--brand-gray);
}

/* ----- Вход / регистрация (как визитка: тот же холст) ----- */
body.auth-page {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Manrope, var(--font);
    color: #f4f3f1;
    background-color: var(--ac-void, #0d0d0f);
    background-image:
        radial-gradient(ellipse 100% 70% at 100% -10%, rgba(242, 201, 76, 0.12), transparent 55%),
        radial-gradient(ellipse 80% 50% at 0% 100%, rgba(224, 42, 27, 0.09), transparent 50%),
        linear-gradient(180deg, var(--ac-void, #0d0d0f) 0%, var(--ac-ink, #1a1a1a) 55%, var(--ac-brown-shadow, #1f140a) 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

body.auth-page .site-topbar {
    border-bottom: 1px solid rgba(242, 201, 76, 0.2);
    background: rgba(13, 13, 13, 0.78);
    backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

body.auth-page .site-logo {
    color: #fafaf9;
}

body.auth-page .site-logo-gold {
    background: var(--ac-gradient-gold, linear-gradient(135deg, #f2c94c, #e0a800, #c8921a));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

body.auth-page .site-nav a {
    color: #d6d3d1;
}

body.auth-page .site-nav a:hover {
    color: var(--ac-gold-bright, #f2c94c);
}

.auth-page-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px 48px;
}
