:root {
    color-scheme: dark;
    --bg-deep: #060814;
    --bg-mid: #0c1020;
    --bg-elevated: rgba(18, 22, 40, 0.65);
    --border-subtle: rgba(120, 140, 255, 0.12);
    --border-glow: rgba(139, 92, 246, 0.35);
    --text: #e8eaf4;
    --text-muted: #9aa3c0;
    --accent: #7c3aed;
    --accent-2: #2563eb;
    --accent-cyan: #22d3ee;
    --gradient-cta: linear-gradient(135deg, #6366f1 0%, #7c3aed 45%, #2563eb 100%);
    --gradient-glow: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(124, 58, 237, 0.35), transparent 70%);
    --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.45);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --font-display: "Outfit", system-ui, sans-serif;
    --font-body: "Manrope", system-ui, sans-serif;
    --header-height: 72px;
    --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    background: var(--bg-deep);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 120% 80% at 10% -20%, rgba(37, 99, 235, 0.18), transparent 55%),
        radial-gradient(ellipse 90% 70% at 90% 10%, rgba(124, 58, 237, 0.2), transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(34, 211, 238, 0.06), transparent 45%);
    z-index: -2;
}

a {
    color: inherit;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container-narrow {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ——— Header ——— */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

.site-header--scrolled {
    background: rgba(8, 10, 20, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid var(--border-subtle);
}

.site-header__inner {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    z-index: 2;
}

.site-logo__mark {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: block;
    border-radius: 12px;
    object-fit: contain;
    box-shadow:
        0 0 28px rgba(124, 58, 237, 0.45),
        0 4px 14px rgba(0, 0, 0, 0.35);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    z-index: 2;
}

.nav-toggle__bar {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: var(--text);
    border-radius: 1px;
}

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

.site-nav__link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 4px;
    transition: color 0.25s ease;
}

.site-nav__link:hover {
    color: var(--text);
}

.site-nav__cta,
.site-nav__auth {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 8px;
    padding-left: 16px;
    border-left: 1px solid var(--border-subtle);
}

.site-nav__logout {
    margin: 0;
}

.site-nav__logout button {
    margin: 0;
}

/* ——— Buttons ——— */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    border-radius: 999px;
    padding: 14px 28px;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), filter 0.25s ease;
}

.btn--sm {
    padding: 10px 18px;
    font-size: 0.85rem;
}

.btn--primary {
    color: #fff;
    background: var(--gradient-cta);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 4px 24px rgba(99, 102, 241, 0.45);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12) inset,
        0 8px 40px rgba(124, 58, 237, 0.55);
    filter: brightness(1.05);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid var(--border-subtle);
    box-shadow: none;
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(139, 92, 246, 0.35);
    transform: translateY(-2px);
}

/* ——— Main & footer ——— */
.site-main {
    padding-top: var(--header-height);
}

.site-footer {
    margin-top: 80px;
    padding: 48px 0;
    border-top: 1px solid var(--border-subtle);
    background: rgba(6, 8, 20, 0.6);
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.site-footer__tagline {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.site-footer__copy {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.site-logo__text--footer {
    font-family: var(--font-display);
    font-weight: 800;
}

.site-messages {
    padding-top: 16px;
}

.site-message {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    margin-bottom: 10px;
}

/* ——— Landing layout ——— */
.landing {
    padding-bottom: 40px;
}

.section {
    padding: 88px 0;
}

.section--tight {
    padding: 64px 0;
}

.section__head {
    max-width: 640px;
    margin-bottom: 48px;
}

.section__eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin: 0 0 12px;
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 16px;
}

.section__lead {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Hero */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    padding: 48px 0 72px;
}

.hero__grid {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.02;
    margin: 0 0 20px;
    background: linear-gradient(120deg, #fff 0%, #c4b5fd 40%, #7dd3fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 34ch;
    margin: 0 0 36px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero__visual-wrap {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1;
    transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
    transition: transform 0.15s ease-out;
}

.hero-visual__glow {
    position: absolute;
    inset: -20%;
    background: var(--gradient-glow);
    filter: blur(40px);
    opacity: 0.9;
    pointer-events: none;
}

.hero-visual__ring {
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246, 0.25);
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.15);
    pointer-events: none;
}

.hero-visual__character {
    position: absolute;
    inset: 18% 22%;
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(30, 35, 60, 0.95) 0%, rgba(12, 16, 32, 0.98) 100%);
    border: 1px solid rgba(124, 58, 237, 0.4);
    box-shadow:
        var(--shadow-soft),
        0 0 0 1px rgba(34, 211, 238, 0.15) inset,
        0 0 40px rgba(124, 58, 237, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    overflow: hidden;
}

.hero-visual__character::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 180deg at 50% 50%, transparent, rgba(99, 102, 241, 0.12), transparent 40%);
    animation: hero-spin 14s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
    .hero-visual__character::before {
        animation: none;
    }
}

.hero-visual__logo {
    position: relative;
    z-index: 1;
    width: clamp(104px, 30vw, 148px);
    height: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 28px rgba(124, 58, 237, 0.5));
}

.hero-visual__blocks {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.float-block {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    animation: float-y 5s ease-in-out infinite;
}

.float-block--1 {
    top: 6%;
    left: 4%;
    background: linear-gradient(135deg, #6366f1, #4338ca);
    animation-delay: 0s;
}

.float-block--2 {
    top: 18%;
    right: 2%;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #22d3ee, #0891b2);
    animation-delay: 0.6s;
}

.float-block--3 {
    bottom: 22%;
    left: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    animation-delay: 1.2s;
}

.float-block--4 {
    bottom: 8%;
    right: 10%;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #34d399, #059669);
    animation-delay: 0.3s;
}

@keyframes float-y {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-14px) rotate(4deg);
    }
}

.hero-visual__particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-visual__particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.8);
    animation: particle 8s linear infinite;
    opacity: 0;
}

.hero-visual__particles span:nth-child(1) {
    left: 20%;
    animation-delay: 0s;
}
.hero-visual__particles span:nth-child(2) {
    left: 45%;
    animation-delay: 2s;
}
.hero-visual__particles span:nth-child(3) {
    left: 70%;
    animation-delay: 4s;
}

@keyframes particle {
    0% {
        top: 100%;
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    100% {
        top: -10%;
        opacity: 0;
    }
}

/* Server cards */
.server-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.server-card {
    position: relative;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform var(--transition), box-shadow var(--transition), border-color 0.25s ease;
    overflow: hidden;
}

.server-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124, 58, 237, 0.12), transparent 55%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.server-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.45);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(99, 102, 241, 0.12);
}

.server-card:hover::before {
    opacity: 1;
}

.server-card__badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 12px;
}

.server-card__title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.server-card__desc {
    margin: 0 0 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.server-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.server-card__online {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.server-card__online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 10px #34d399;
}

.server-card .btn {
    width: 100%;
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step {
    padding: 24px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    transition: transform var(--transition), border-color 0.25s ease, background 0.25s ease;
}

.step:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.35);
    background: rgba(99, 102, 241, 0.06);
}

.step__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    margin-bottom: 16px;
    background: var(--gradient-cta);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.step__num {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.step__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 8px;
}

.step__text {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Launcher */
.launcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.launcher__copy .btn {
    margin-top: 8px;
}

.launcher-mock {
    border-radius: var(--radius-lg);
    background: linear-gradient(165deg, rgba(22, 26, 48, 0.95), rgba(8, 10, 22, 0.98));
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.launcher-mock:hover {
    transform: translateY(-4px);
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(124, 58, 237, 0.2);
}

.launcher-mock__titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid var(--border-subtle);
}

.launcher-mock__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #475569;
}

.launcher-mock__dot--r {
    background: #f87171;
}
.launcher-mock__dot--y {
    background: #fbbf24;
}
.launcher-mock__dot--g {
    background: #34d399;
}

.launcher-mock__title {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.launcher-mock__body {
    padding: 24px;
    display: grid;
    gap: 16px;
}

.launcher-mock__row {
    display: flex;
    gap: 14px;
    align-items: center;
}

.launcher-mock__logo {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    object-fit: contain;
    background: rgba(8, 10, 22, 0.6);
    border: 1px solid rgba(124, 58, 237, 0.35);
    box-shadow:
        0 0 20px rgba(124, 58, 237, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.launcher-mock__lines {
    flex: 1;
    display: grid;
    gap: 8px;
    min-width: 0;
}

.launcher-mock__line {
    height: 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
}

.launcher-mock__line--title {
    height: 12px;
    width: 72%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
}

.launcher-mock__line--short {
    width: 55%;
}

.launcher-mock__servers {
    display: grid;
    gap: 10px;
}

.launcher-mock__server {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.launcher-mock__server span:last-child {
    font-size: 0.75rem;
    color: #34d399;
    font-weight: 700;
}

.launcher-mock__cta {
    margin-top: 8px;
}

.launcher-mock__cta .btn {
    width: 100%;
    margin: 0;
}

/* Donate strip */
.donate {
    text-align: center;
    padding: 56px 32px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(124, 58, 237, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.08);
}

.donate .section__title {
    margin-bottom: 12px;
}

.donate .section__lead {
    margin: 0 auto 24px;
    max-width: 480px;
}

/* Reveal */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* Flash messages: внутри main — под фиксированной шапкой (учитывается padding-top у .site-main) */
.site-messages--global {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
    margin: 0 auto 16px;
    padding: 0;
    flex-shrink: 0;
}

.site-messages__inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-message--toast {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
}

.site-message--toast.site-message--success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: #a7f3d0;
}

.site-message--toast.site-message--error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fecaca;
}

.site-message--toast.site-message--warning {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fde68a;
}

.site-message--toast.site-message--info,
.site-message--toast.site-message--debug {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(129, 140, 248, 0.35);
    color: #c7d2fe;
}

/* Auth pages: карточка по центру по вертикали, уведомление над ней */
.page-auth .site-main {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 64px;
    box-sizing: border-box;
}

.page-auth .site-main > .card,
.page-auth .site-main > section.card {
    flex-shrink: 0;
}

.auth-card {
    margin-top: 0;
}

.auth-card__lead {
    margin: -12px 0 22px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.auth-card--profile .auth-card__lead {
    margin-bottom: 20px;
}

.auth-form__submit {
    width: 100%;
    margin-top: 10px;
    padding-top: 16px;
    padding-bottom: 16px;
    font-size: 1rem;
}

.auth-card__footer {
    margin: 22px 0 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-card__footer a {
    color: #a5b4fc;
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
}

.auth-card__footer a:hover {
    text-decoration: underline;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 18px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    user-select: none;
}

.auth-remember input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #7c3aed;
    cursor: pointer;
}

.auth-remember span {
    color: var(--text);
}

input.auth-field {
    margin-bottom: 14px;
}

.profile-list {
    margin: 0;
}

.profile-list__row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.95rem;
}

.profile-list__row:last-child {
    border-bottom: none;
}

.profile-list dt {
    margin: 0;
    color: var(--text-muted);
    font-weight: 600;
}

.profile-list dd {
    margin: 0;
    font-weight: 600;
    color: var(--text);
    word-break: break-word;
}

@media (max-width: 480px) {
    .profile-list__row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* Личный кабинет (вкладки) */
.page-profile-main {
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 56px;
    box-sizing: border-box;
}

.profile-shell {
    margin-top: 8px;
}

.profile-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.profile-head__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: -0.03em;
}

.profile-head__lead {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 42ch;
}

.profile-head__user {
    text-align: right;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid var(--border-subtle);
}

.profile-head__name {
    display: block;
    font-weight: 800;
    font-size: 1rem;
}

.profile-head__email {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.profile-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.profile-tabs__link {
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid transparent;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.profile-tabs__link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.profile-tabs__link.is-active {
    color: #fff;
    background: var(--gradient-cta);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.profile-panel {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-soft);
}

.profile-panel--narrow {
    max-width: 480px;
}

.profile-panel__title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 10px;
}

.profile-panel__intro {
    margin: 0 0 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.profile-subtitle {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 28px 0 14px;
}

.profile-empty-note {
    margin: 0;
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.stat-card {
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-subtle);
}

.stat-card__label {
    margin: 0 0 8px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-cyan);
}

.stat-card__value {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 700;
}

.stat-card__hint {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stat-server-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.stat-server-list__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    font-weight: 600;
}

.stat-server-list__time {
    color: #a5b4fc;
    font-size: 0.9rem;
}

.skin-layout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    align-items: start;
}

.skin-preview-wrap {
    flex-shrink: 0;
}

.skin-preview {
    display: block;
    width: 128px;
    height: 128px;
    border-radius: var(--radius-md);
    border: 2px solid rgba(124, 58, 237, 0.4);
    box-shadow: 0 0 32px rgba(124, 58, 237, 0.25);
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    background: #0f172a;
}

.skin-preview--placeholder {
    display: grid;
    place-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    padding: 12px;
}

.skin-actions {
    max-width: 400px;
}

.skin-clear-form {
    margin-top: 16px;
}

.session-table-wrap {
    overflow-x: auto;
    margin-bottom: 20px;
}

.session-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

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

.session-table th {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.session-key {
    font-size: 0.85rem;
    color: #a5b4fc;
}

.session-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    background: rgba(52, 211, 153, 0.15);
    color: #6ee7b7;
}

.session-muted {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.session-logout-others {
    margin: 0;
}

@media (max-width: 700px) {
    .profile-head__user {
        text-align: left;
        width: 100%;
    }

    .skin-layout {
        grid-template-columns: 1fr;
    }

    .skin-preview-wrap {
        justify-self: center;
    }
}

.card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-soft);
}

.card h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 24px;
    letter-spacing: -0.02em;
}

.card form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}

input {
    width: 100%;
    padding: 12px 14px;
    margin-top: 4px;
    margin-bottom: 16px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: rgba(6, 8, 20, 0.6);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select,
textarea {
    width: 100%;
    padding: 12px 14px;
    margin-top: 4px;
    margin-bottom: 16px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: rgba(6, 8, 20, 0.6);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(124, 58, 237, 0.55);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

input:focus {
    outline: none;
    border-color: rgba(124, 58, 237, 0.55);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.card button[type="submit"]:not(.btn) {
    width: 100%;
    margin-top: 8px;
}

.card .errors {
    margin: 0 0 12px;
    color: #fca5a5;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .server-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .launcher {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__visual-wrap {
        min-height: 340px;
    }

    .hero-visual {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(100%, 320px);
        height: 100vh;
        padding: calc(var(--header-height) + 24px) 24px 24px;
        flex-direction: column;
        align-items: stretch;
        background: rgba(8, 10, 20, 0.96);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--border-subtle);
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
        gap: 4px;
    }

    .site-nav--open {
        transform: translateX(0);
    }

    .site-nav__cta,
    .site-nav__auth {
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--border-subtle);
        padding-top: 16px;
        margin-top: 12px;
    }

    .site-nav__link {
        padding: 12px 0;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 64px 0;
    }
}

/* ——— Staff CRM ——— */
.crm-body .site-main {
    padding-bottom: 48px;
}

.crm-header .site-header__inner {
    max-width: 1240px;
}

.crm-header__badge {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    vertical-align: middle;
    margin-left: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(124, 58, 237, 0.25);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: var(--accent-cyan);
}

.crm-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-left: auto;
}

.crm-dashboard {
    padding-top: 32px;
}

.crm-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.crm-tile__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 10px;
}

.crm-tile__text {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .crm-nav {
        width: 100%;
        margin-top: 12px;
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
