﻿/* ============================================================
   Universe DayZ — flat design system
   ============================================================ */

:root {
    --bg: #0d0f0e;
    --surface: #151917;
    --surface-2: #1b211e;
    --border: #2a302c;
    --border-strong: #3d453f;
    --text: #ecefea;
    --muted: #8e9a90;
    --accent: #c2182b;
    --accent-hover: #e0313f;
    --olive: #7c8b5a;
    --success: #46a758;
    --danger: #e5484d;
    --discord: #5865f2;

    --container: 1200px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure {
    margin: 0;
}

ul, ol {
    padding: 0;
    list-style: none;
}

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

img {
    max-width: 100%;
    display: block;
}

button {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.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;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--accent);
    color: #fff;
    padding: 12px 20px;
    font-size: 13px;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.container.narrow {
    max-width: 760px;
}

/* ---------------------------------------------------------- шапка */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.brand-text {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    white-space: nowrap;
}

.brand-text em {
    color: var(--accent);
    font-style: normal;
    margin-left: 4px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav a {
    position: relative;
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--muted);
    transition: color 0.15s, background-color 0.15s;
}

.site-nav a:hover {
    color: var(--text);
    background: var(--surface);
}

.site-nav a.is-active {
    color: var(--text);
}

.site-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -1px;
    height: 2px;
    background: var(--accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-link {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

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

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px 5px 5px;
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    max-width: 200px;
    transition: border-color 0.15s, background-color 0.15s;
}

.user-chip:hover {
    border-color: var(--border-strong);
    background: var(--surface);
}

.user-chip img {
    width: 28px;
    height: 28px;
    object-fit: cover;
}

.user-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border);
    background: none;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.nav-toggle span:not(.sr-only) {
    display: block;
    width: 16px;
    height: 1px;
    background: var(--text);
}

/* ---------------------------------------------------------- кнопки */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 24px;
    border: 1px solid transparent;
    background: none;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

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

.btn--primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn--ghost {
    border-color: var(--border-strong);
    color: var(--text);
}

.btn--ghost:hover {
    border-color: var(--text);
    background: var(--surface-2);
}

.btn--danger {
    border-color: rgba(229, 72, 77, 0.45);
    color: var(--danger);
}

.btn--danger:hover {
    border-color: var(--danger);
    background: rgba(229, 72, 77, 0.1);
}

.btn--sm {
    height: 38px;
    padding: 0 16px;
    font-size: 11px;
    letter-spacing: 0.08em;
}

.btn--xs {
    height: 30px;
    padding: 0 10px;
    font-size: 10px;
    letter-spacing: 0.06em;
}

.btn--full {
    width: 100%;
}

/* ---------------------------------------------------------- подтверждение */

body.is-locked {
    overflow: hidden;
}

.confirm {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(6, 8, 7, 0.78);
}

.confirm[hidden] {
    display: none;
}

.confirm__card {
    width: 100%;
    max-width: 440px;
    padding: 28px;
    border: 1px solid var(--border-strong);
    border-top: 2px solid var(--accent);
    background: var(--surface);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.confirm__label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.confirm__text {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
}

.confirm__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.confirm__ok--danger {
    border-color: var(--danger);
    background: var(--danger);
    color: #fff;
}

.confirm__ok--danger:hover {
    border-color: #f2555a;
    background: #f2555a;
}

/* ---------------------------------------------------------- карточка товара: раскрытие */

.product-modal {
    position: fixed;
    inset: 0;
    z-index: 1900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(6, 8, 7, 0.84);
    overflow: hidden;
}

.product-modal[hidden] {
    display: none;
}

.product-modal__card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1440px;
    max-height: calc(100vh - 40px);
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-top: 2px solid var(--accent);
    background: var(--surface);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    animation: product-modal-in 0.18s ease-out;
}

@keyframes product-modal-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.99);
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-modal__card {
        animation: none;
    }
}

.product-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 6;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--border-strong);
    background: rgba(13, 15, 14, 0.92);
    color: var(--text);
    font-family: var(--font);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
    transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.15s;
}

.product-modal__close:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(13, 15, 14, 1);
}

.product-modal__close:active {
    transform: scale(0.94);
}

.product-modal__close:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Слева картинка на всю высоту, справа прокручивается текст. */
.product-modal__grid {
    display: grid;
    grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.product-modal__media {
    overflow: hidden;
    border-right: 1px solid var(--border);
    background: var(--surface-2);
}

.product-modal__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
}

.product-modal__media--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 260px;
    font-family: var(--mono);
    font-size: 72px;
    color: var(--border-strong);
}

.product-modal__info {
    padding: 36px 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) var(--surface);
}

/* Кастомная прокрутка вместо браузерной. */
.product-modal__info::-webkit-scrollbar {
    width: 10px;
}

.product-modal__info::-webkit-scrollbar-track {
    background: var(--surface);
}

.product-modal__info::-webkit-scrollbar-thumb {
    border: 3px solid var(--surface);
    background: var(--border-strong);
}

.product-modal__info::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.product-modal__category {
    padding-right: 52px;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.product-modal__title {
    margin-top: 10px;
    padding-right: 52px;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.product-modal__price {
    margin-top: 14px;
    font-family: var(--mono);
    font-size: 22px;
    font-weight: 600;
}

.product-modal__price small {
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
}

.product-modal__desc {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.7;
    color: #c3cbc4;
    white-space: pre-line;
}

.product-modal__section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.product-modal__section[hidden] {
    display: none;
}

.product-modal__label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

/* На широком окне состав раскладывается в две колонки. */
.modal-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 6px;
    margin-top: 12px;
}

.modal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    background: var(--bg);
}

.modal-item__thumb {
    flex: none;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
}

.modal-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-item__text {
    min-width: 0;
}

.modal-item__name {
    font-size: 14px;
    line-height: 1.3;
}

.modal-item__code {
    margin-top: 2px;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal-item__qty {
    margin-left: auto;
    padding-left: 10px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text);
    white-space: nowrap;
}

.modal-kit {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.modal-kit__slot {
    padding: 4px 10px;
    border: 1px solid var(--border);
    background: var(--bg);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.product-modal__note {
    margin-top: 12px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

.product-modal__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
}

.product-modal__actions form {
    margin: 0;
}

.copy-btn {
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--border-strong);
    background: none;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.copy-btn:hover {
    color: var(--text);
    border-color: var(--text);
}

.copy-btn--inline {
    height: 24px;
    padding: 0 8px;
    font-size: 9px;
    margin-left: 10px;
    vertical-align: middle;
}

.inline-form {
    display: inline;
}

/* ---------------------------------------------------------- типографика */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.eyebrow__mark {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent);
}

.display {
    margin-top: 24px;
    font-size: clamp(38px, 6vw, 74px);
    line-height: 0.96;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.lead {
    margin-top: 24px;
    max-width: 54ch;
    font-size: 17px;
    color: var(--muted);
    line-height: 1.65;
}

.page-head {
    padding: 72px 0 40px;
    border-bottom: 1px solid var(--border);
}

.page-head--compact {
    padding: 40px 0 32px;
}

.page-title {
    margin-top: 16px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.015em;
    text-transform: uppercase;
}

.page-lead {
    margin-top: 18px;
    max-width: 68ch;
    color: var(--muted);
    font-size: 16px;
}

.section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border);
}

.section--alt {
    background: var(--surface);
}

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

.section-head {
    margin-bottom: 40px;
    max-width: 720px;
}

.section-head--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    max-width: none;
}

.section-title {
    margin-top: 16px;
    font-size: clamp(26px, 3.4vw, 38px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.015em;
    text-transform: uppercase;
}

.section-lead {
    margin-top: 16px;
    color: var(--muted);
}

.label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.mono {
    font-family: var(--mono);
    font-size: 0.94em;
}

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

.is-muted {
    color: var(--muted);
}

/* ---------------------------------------------------------- бейджи */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border: 1px solid var(--border-strong);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.6;
    white-space: nowrap;
}

.badge--muted {
    color: var(--muted);
    border-color: var(--border);
}

.badge--ok {
    color: var(--success);
    border-color: rgba(70, 167, 88, 0.4);
}

.badge--warn {
    color: var(--olive);
    border-color: rgba(124, 139, 90, 0.45);
}

.badge--danger {
    color: var(--danger);
    border-color: rgba(229, 72, 77, 0.45);
}

/* ---------------------------------------------------------- герой */

.hero {
    position: relative;
    padding: 88px 0 72px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    overflow: hidden;
}

/* Фоновое фото первого экрана: на всю ширину, с затемнением
   и плавным переходом в цвет страницы снизу. */
.hero--image {
    padding: 112px 0 104px;
    border-bottom-color: transparent;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero--image::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(9, 11, 10, 0.88) 0%,
            rgba(9, 11, 10, 0.72) 35%,
            rgba(9, 11, 10, 0.86) 72%,
            var(--bg) 100%
        ),
        linear-gradient(
            90deg,
            rgba(9, 11, 10, 0.7) 0%,
            rgba(9, 11, 10, 0.25) 55%,
            rgba(9, 11, 10, 0.55) 100%
        );
}

.hero--image .hero-grid {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 56px;
    align-items: start;
}

.hero-copy {
    min-width: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
}

.hero-tags li {
    padding: 6px 12px;
    border: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.server-card {
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 24px;
}

.server-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.server-address {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 0;
}

.server-address code {
    font-family: var(--mono);
    font-size: 17px;
    letter-spacing: 0.02em;
    word-break: break-all;
}

.server-meta {
    display: grid;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.server-meta > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    background: var(--surface);
}

.server-meta dt {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.server-meta dd {
    font-size: 14px;
}

.server-hint {
    margin: 18px 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
}

/* ---------------------------------------------------------- фичи */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.feature {
    background: var(--bg);
    padding: 28px 24px 32px;
}

.section--alt .feature {
    background: var(--surface);
}

.feature__index {
    display: block;
    margin-bottom: 24px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--accent);
}

.feature h3 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.feature p {
    margin-top: 12px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.65;
}

/* ---------------------------------------------------------- шаги */

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

.step {
    display: flex;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.step__num {
    flex: none;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--mono);
    font-size: 14px;
}

.step h3 {
    font-size: 16px;
    font-weight: 700;
}

.step p {
    margin-top: 8px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

/* ---------------------------------------------------------- магазин */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    transform:
        perspective(900px)
        rotateX(var(--tilt-x, 0deg))
        rotateY(var(--tilt-y, 0deg));
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1),
                border-color 0.15s,
                box-shadow 0.4s;
}

.product-card:hover {
    border-color: var(--border-strong);
}

/* Пока курсор внутри — наклон идёт за указателем без задержки. */
.product-card.is-tilting {
    transition: transform 0.08s linear, border-color 0.15s, box-shadow 0.4s;
    border-color: var(--border-strong);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.45);
    z-index: 2;
    will-change: transform;
}

.product-card__media {
    position: relative;
    overflow: hidden;
}

.product-card__glare {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s;
    background: radial-gradient(
        circle at var(--glare-x, 50%) var(--glare-y, 50%),
        rgba(255, 255, 255, 0.16),
        rgba(255, 255, 255, 0) 55%
    );
}

.product-card.is-tilting .product-card__glare {
    opacity: 1;
}

.product-card__hint {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 5px 10px;
    border: 1px solid var(--border-strong);
    background: rgba(13, 15, 14, 0.82);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s, transform 0.2s;
}

.product-card:hover .product-card__hint,
.product-card:focus-within .product-card__hint {
    opacity: 1;
    transform: translateY(0);
}

.product-card__more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    margin-top: 14px;
    padding: 8px 0 0;
    border: 0;
    border-top: 1px solid var(--border);
    background: none;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.15s;
}

.product-card__more:hover {
    color: var(--text);
}

.product-card__more-mark {
    font-size: 14px;
    line-height: 1;
    color: var(--accent);
}

.product-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.product-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 46px;
    color: var(--border-strong);
}

.product-thumb.thumb--sm {
    width: 56px;
    height: 40px;
    aspect-ratio: auto;
    border: 1px solid var(--border);
    font-size: 16px;
}

.product-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
}

.product-card__category {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.product-card__title {
    margin-top: 8px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.product-card__desc {
    margin-top: 10px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
}

.product-items {
    display: grid;
    gap: 4px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.product-items li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
}

.product-items__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-items__qty {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text);
}

.product-items__more {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--border-strong);
}

.product-card__footer form {
    margin: 0;
}

.price {
    font-family: var(--mono);
    font-size: 19px;
    font-weight: 600;
}

.price small {
    font-size: 12px;
    color: var(--muted);
    font-weight: 400;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.filter {
    padding: 8px 14px;
    border: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.15s, border-color 0.15s;
}

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

.filter.is-active {
    color: var(--text);
    border-color: var(--accent);
}

/* ---------------------------------------------------------- конструктор сета */

.kit-form {
    margin: 0;
}

.kit-fields {
    display: none;
}

.kit-layout {
    display: grid;
    grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.kit-figure {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr);
    gap: 10px;
    padding: 20px 16px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.kit-figure__col {
    display: grid;
    gap: 10px;
    align-content: center;
    min-width: 0;
}

.kit-figure__body {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border-strong);
}

.kit-figure__body svg {
    width: 100%;
    height: auto;
    max-height: 380px;
}

.kit-slot {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    padding: 6px;
    border: 1px dashed var(--border-strong);
    background: none;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}

.kit-slot:hover {
    border-color: var(--text);
    background: var(--surface-2);
}

.kit-slot.is-filled {
    border-style: solid;
    background: var(--surface-2);
}

.kit-slot.is-active {
    border-color: var(--accent);
    border-style: solid;
}

.kit-slot__thumb {
    flex: none;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: var(--bg);
}

.kit-slot__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.kit-slot__text {
    min-width: 0;
    display: grid;
}

.kit-slot__label {
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.kit-slot__name {
    font-size: 11px;
    line-height: 1.25;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kit-slot.is-filled .kit-slot__name {
    color: var(--text);
}

.kit-picker {
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 20px;
}

.kit-picker__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.kit-picker__title {
    margin-top: 4px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.kit-search {
    margin: 16px 0;
}

.kit-search:disabled {
    opacity: 0.5;
}

.kit-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 8px;
    max-height: 520px;
    overflow-y: auto;
}

.kit-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s;
}

.kit-item:hover {
    border-color: var(--border-strong);
}

.kit-item.is-selected {
    border-color: var(--accent);
}

.kit-item__thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    background: var(--surface-2);
}

.kit-item__thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.kit-item__name {
    font-size: 11px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kit-item__variant {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.kit-empty {
    grid-column: 1 / -1;
    padding: 40px 16px;
    border: 1px dashed var(--border-strong);
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

.kit-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.kit-bar__info {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 28px;
}

.kit-count {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.kit-count.is-ready {
    color: var(--success);
}

.kit-bar .price small {
    font-size: 12px;
    color: var(--muted);
}

.kit-bar .btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.kit-list {
    display: grid;
    gap: 12px;
}

.kit-card {
    border: 1px solid var(--border);
    background: var(--bg);
    padding: 16px 18px;
}

.kit-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.kit-card__title {
    font-size: 15px;
    font-weight: 700;
}

.kit-card__meta {
    margin-top: 4px;
    font-size: 11px;
    color: var(--muted);
}

.kit-card__items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 14px;
}

.kit-card__items li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}

.kit-card__thumb {
    flex: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: var(--surface);
}

.kit-card__thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.kit-card__name {
    color: var(--text);
}


/* ---------------------------------------------------------- CTA */

.cta {
    padding: 64px 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    border-left: 3px solid var(--accent);
    padding-left: 28px;
}

.cta__title {
    font-size: clamp(22px, 2.8vw, 30px);
    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    line-height: 1.15;
}

.cta__text {
    margin-top: 10px;
    color: var(--muted);
}

.cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex: none;
}

/* ---------------------------------------------------------- о нас */

.prose-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 64px;
    align-items: start;
}

.prose h2 {
    margin: 40px 0 14px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose p {
    margin-bottom: 14px;
    color: #c3cbc4;
    line-height: 1.75;
}

.prose strong {
    color: var(--text);
}

.check-list,
.cross-list {
    display: grid;
    gap: 10px;
    margin: 18px 0 8px;
}

.check-list li,
.cross-list li {
    position: relative;
    padding-left: 24px;
    color: var(--muted);
    line-height: 1.65;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--accent);
}

.cross-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--border-strong);
    font-family: var(--mono);
}

.check-list strong {
    color: var(--text);
}

/* ---------------------------------------------------------- документы */

.legal {
    max-width: 82ch;
}

.legal h2 {
    scroll-margin-top: 100px;
}

.legal p {
    margin-bottom: 12px;
}

.legal ul {
    display: grid;
    gap: 8px;
    margin: 0 0 16px;
}

.legal ul li {
    position: relative;
    padding-left: 20px;
    color: #c3cbc4;
    line-height: 1.75;
}

.legal ul li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--border-strong);
}

.legal-note {
    margin: 0 0 20px;
    padding: 16px 20px;
    border-left: 2px solid var(--accent);
    background: var(--surface);
    color: var(--muted);
    line-height: 1.75;
}

.legal-meta {
    margin-top: 16px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.legal-contact {
    display: grid;
    gap: 4px;
    margin-top: 8px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.legal-contact p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.legal-contact strong {
    color: var(--text);
}

.side-facts {
    display: grid;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    position: sticky;
    top: 92px;
}

.fact {
    background: var(--surface);
    padding: 16px 18px;
}

.fact p {
    margin-top: 6px;
    font-size: 15px;
}

.side-facts .btn {
    background: var(--surface);
    border: 0;
    border-top: 1px solid var(--border);
}

.side-facts .btn--primary {
    background: var(--accent);
}

/* ---------------------------------------------------------- кабинет */

.account-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.account-id {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border: 1px solid var(--border-strong);
}

.account-id .page-title {
    margin-top: 8px;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.panel {
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 24px;
    margin-bottom: 24px;
}

.account-grid .panel {
    margin-bottom: 0;
}

.panel--info {
    background: transparent;
}

.panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.panel__title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.balance {
    font-family: var(--mono);
    font-size: 42px;
    line-height: 1;
    font-weight: 600;
    margin-bottom: 24px;
}

.balance small {
    font-size: 18px;
    color: var(--muted);
}

.steam-value {
    font-size: 18px;
    margin-bottom: 12px;
    word-break: break-all;
}

.steam-card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.steam-avatar {
    width: 44px;
    height: 44px;
    flex: none;
    object-fit: cover;
    border: 1px solid var(--border-strong);
}

.steam-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.steam-card .steam-value {
    margin-bottom: 0;
    font-size: 12px;
    color: var(--muted);
}

.quick-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.chip {
    padding: 7px 12px;
    border: 1px solid var(--border);
    background: none;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.chip:hover {
    color: var(--text);
    border-color: var(--accent);
}

/* ---------------------------------------------------------- формы */

.form {
    display: grid;
    gap: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-grid--media {
    align-items: start;
}

.field {
    display: grid;
    gap: 8px;
}

.field__label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.field__hint {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

.input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.15s;
}

.input::placeholder {
    color: #5d675f;
}

.input:focus {
    outline: none;
    border-color: var(--accent);
}

.input--area {
    height: auto;
    min-height: 108px;
    padding: 12px 14px;
    line-height: 1.6;
    resize: vertical;
}

.input--select {
    width: auto;
    min-width: 170px;
    cursor: pointer;
}

.input--file {
    height: auto;
    padding: 12px;
    font-size: 13px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--muted);
    cursor: pointer;
}

.checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
}

.kit-settings {
    margin: 0;
    padding: 20px;
    border: 1px solid var(--border);
    background: var(--bg);
    display: grid;
    gap: 18px;
}

.kit-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 4px;
}

.permission-list {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    background: var(--bg);
}

.btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ---------------------------------------------------------- предметы товара */

.product-form {
    gap: 0;
}

.form-section {
    display: grid;
    gap: 18px;
    padding: 26px 0;
    border-bottom: 1px solid var(--border);
}

.form-section:first-of-type {
    padding-top: 0;
}

.form-section:last-of-type {
    border-bottom: 0;
}

.form-section__head {
    display: grid;
    gap: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.form-section__title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.form-section__title::before {
    content: counter(form-step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: none;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0;
}

.product-form {
    counter-reset: form-step;
}

.form-section {
    counter-increment: form-step;
}

.form-section__hint {
    font-size: 12px;
    color: var(--muted);
}

.settings-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.settings-fields .field--wide {
    grid-column: 1 / -1;
}

/* Загрузка фонового фото в настройках: превью и удаление. */
.image-field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 4px;
}

.image-field__preview {
    display: block;
    width: 220px;
    height: 124px;
    object-fit: cover;
    border: 1px solid var(--border);
    background: var(--surface-2);
}

.image-field .checkbox {
    margin: 0;
}

@media (max-width: 720px) {
    .settings-fields {
        grid-template-columns: 1fr;
    }
}

.form-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.type-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.type-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.type-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.type-option__body {
    display: grid;
    gap: 4px;
    height: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    background: var(--bg);
    transition: border-color 0.15s, background-color 0.15s;
}

.type-option:hover .type-option__body {
    border-color: var(--border-strong);
}

.type-option input:checked + .type-option__body {
    border-color: var(--accent);
    background: var(--surface-2);
}

.type-option input:focus-visible + .type-option__body {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.type-option__title {
    font-size: 14px;
    font-weight: 700;
}

.type-option__desc {
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
}

.form-actions--sticky {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin: 0;
    padding: 16px 0 4px;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.item-editor {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--border);
    background: var(--bg);
}

.item-editor__head {
    display: grid;
    gap: 4px;
}

.item-editor__title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.item-editor__hint {
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
}

.item-editor[hidden],
.kit-settings[hidden] {
    display: none;
}

.item-error {
    padding: 8px 12px;
    border-left: 3px solid var(--danger);
    background: rgba(229, 72, 77, 0.08);
    font-size: 12px;
    color: var(--danger);
}

.item-error[hidden] {
    display: none;
}

.item-search {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px auto;
    gap: 10px;
    align-items: center;
}

.input--qty {
    text-align: center;
}

.item-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 20;
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid var(--border-strong);
    background: var(--surface);
}

.item-suggest__row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 8px 12px;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: none;
    text-align: left;
    cursor: pointer;
}

.item-suggest__row:last-child {
    border-bottom: 0;
}

.item-suggest__row:hover {
    background: var(--surface-2);
}

.item-suggest__thumb {
    flex: none;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: var(--bg);
}

.item-suggest__thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.item-suggest__text {
    display: grid;
    min-width: 0;
}

.item-suggest__name {
    font-size: 13px;
}

.item-suggest__code {
    font-size: 10px;
    color: var(--muted);
}

.item-suggest__empty {
    padding: 14px 12px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

.item-rows {
    display: grid;
    gap: 8px;
}

.item-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.item-row__main {
    min-width: 0;
}

.item-row__name {
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-row__code {
    font-size: 10px;
    color: var(--muted);
}

.item-empty {
    padding: 18px 12px;
    border: 1px dashed var(--border-strong);
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}

.item-empty[hidden] {
    display: none;
}

@media (max-width: 720px) {
    .item-search {
        grid-template-columns: 1fr;
    }

    .item-row {
        grid-template-columns: minmax(0, 1fr) 80px;
    }

    .item-row .btn {
        grid-column: 1 / -1;
    }

    .type-picker,
    .form-grid--three {
        grid-template-columns: 1fr;
    }
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.form--compact {
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.image-preview {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px dashed var(--border-strong);
}

.image-preview img {
    max-height: 160px;
    object-fit: contain;
}

.image-preview--empty {
    min-height: 120px;
    align-content: center;
    justify-items: center;
    color: var(--muted);
    font-size: 13px;
}

/* ---------------------------------------------------------- таблицы */

.table-wrap {
    border: 1px solid var(--border);
    overflow-x: auto;
    background: var(--surface);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table th {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

.table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

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

.table tbody tr:hover {
    background: var(--surface-2);
}

.table-link {
    font-weight: 600;
    border-bottom: 1px solid transparent;
}

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

.table-sub {
    margin-top: 2px;
    font-size: 12px;
    color: var(--muted);
}

.cell-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cell-user img {
    width: 28px;
    height: 28px;
    object-fit: cover;
}

.col-thumb {
    width: 80px;
}

.col-actions {
    width: 1%;
    white-space: nowrap;
}

.row-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.row-actions form {
    margin: 0;
}

.balance-form {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.input--mini {
    width: 88px;
    height: 30px;
    padding: 0 8px;
    font-size: 12px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.pagination__link {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 12px;
    border: 1px solid var(--border);
    color: var(--muted);
}

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

.pagination__link.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.pagination__info {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
}

/* ---------------------------------------------------------- служебное */

.flash-stack {
    display: grid;
    gap: 8px;
    padding-top: 16px;
}

.flash {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--border-strong);
    background: var(--surface);
    font-size: 14px;
}

.flash--success {
    border-left-color: var(--success);
}

.flash--error {
    border-left-color: var(--danger);
}

.notice {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--border-strong);
    background: var(--surface);
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

.notice--warn {
    border-left-color: var(--olive);
}

.empty-state {
    padding: 48px 24px;
    border: 1px dashed var(--border-strong);
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.success-card {
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 40px;
}

.success-card .lead {
    margin-top: 14px;
}

.promo-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 28px 0;
    padding: 20px;
    border: 1px solid var(--accent);
    background: var(--bg);
}

.promo-box code {
    font-family: var(--mono);
    font-size: 22px;
    letter-spacing: 0.06em;
    word-break: break-all;
}

.hint-list {
    display: grid;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

.hint-list li {
    padding-left: 18px;
    position: relative;
}

.hint-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.success-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.error-page {
    padding: 40px 0;
    text-align: center;
}

.error-code {
    font-family: var(--mono);
    font-size: clamp(64px, 12vw, 120px);
    line-height: 1;
    color: var(--accent);
    opacity: 0.9;
}

.error-page .page-title {
    margin-top: 8px;
}

.error-page .lead {
    margin: 16px auto 0;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
}

/* ---------------------------------------------------------- подвал */

.site-footer {
    padding: 48px 0 40px;
    background: var(--bg);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.footer-note {
    font-size: 12px;
    color: var(--muted);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: 13px;
    color: var(--muted);
}

.footer-nav a:hover {
    color: var(--text);
}

.footer-legal {
    text-align: right;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7;
}

/* ============================================================
   Админка
   ============================================================ */

.admin-body {
    background: var(--bg);
}

.admin-shell {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px 20px;
    border-right: 1px solid var(--border);
    background: var(--surface);
}

.brand--admin {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.admin-sidebar__label {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.admin-nav {
    display: grid;
    gap: 2px;
}

.admin-nav a {
    display: block;
    padding: 9px 12px;
    border-left: 2px solid transparent;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}

.admin-nav a:hover {
    color: var(--text);
    background: var(--surface-2);
}

.admin-nav a.is-active {
    color: var(--text);
    border-left-color: var(--accent);
    background: var(--surface-2);
}

.admin-sidebar__foot {
    margin-top: auto;
    display: grid;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.admin-nav__muted {
    font-size: 12px;
    color: var(--muted);
}

.admin-nav__muted:hover {
    color: var(--text);
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-user img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border: 1px solid var(--border-strong);
}

.admin-user p {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.admin-user span {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.admin-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 32px 20px;
    border-bottom: 1px solid var(--border);
}

.admin-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    line-height: 1.1;
}

.admin-subtitle {
    margin-top: 6px;
    font-size: 13px;
    color: var(--muted);
}

.admin-topbar__actions {
    display: flex;
    gap: 10px;
}

.flash-stack--admin {
    padding: 16px 32px 0;
}

.admin-content {
    padding: 24px 32px 56px;
    display: grid;
    gap: 24px;
    align-content: start;
}

.admin-content > .panel {
    margin-bottom: 0;
}

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

.stat {
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 20px;
}

.stat__label {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.stat__value {
    margin: 10px 0 6px;
    font-family: var(--mono);
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
}

.stat__value small {
    font-size: 14px;
    color: var(--muted);
}

.stat__hint {
    font-size: 12px;
    color: var(--muted);
}

.admin-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.admin-columns > .panel {
    margin-bottom: 0;
}

.link-more {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.link-more:hover {
    color: var(--text);
}

.user-list {
    display: grid;
}

.user-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.user-list li:last-child {
    border-bottom: 0;
}

.user-list img {
    width: 32px;
    height: 32px;
    object-fit: cover;
}

.user-list__main {
    flex: 1;
    min-width: 0;
    display: grid;
    font-size: 13px;
}

.user-list__main a {
    font-weight: 600;
}

.user-list__main a:hover {
    color: var(--accent-hover);
}

.user-list__main .muted {
    font-size: 11px;
}

.admin-quick {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: border-color 0.15s;
}

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

.quick-link__plus {
    flex: none;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-strong);
    font-family: var(--mono);
    font-size: 16px;
    color: var(--accent);
}

.quick-link strong {
    display: block;
    font-size: 14px;
}

.quick-link > div span {
    font-size: 12px;
    color: var(--muted);
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.toolbar .input {
    max-width: 340px;
}

.profile-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.profile-strip__main {
    flex: 1;
    min-width: 200px;
}

.profile-strip__name {
    font-size: 18px;
    font-weight: 700;
}

.profile-strip__main .muted {
    font-size: 12px;
}

.profile-strip__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.profile-strip__stats p {
    margin-top: 4px;
    font-size: 14px;
}

.action-list {
    display: grid;
    gap: 12px;
}

.action-list form {
    margin: 0;
}

/* ============================================================
   Адаптив
   ============================================================ */

@media (max-width: 1080px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .admin-quick {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .header-inner {
        grid-template-columns: auto 1fr auto;
        gap: 16px;
    }

    .nav-toggle {
        display: flex;
        order: 3;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 16px 16px;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 12px 8px;
        border-bottom: 1px solid var(--border);
    }

    .site-nav a.is-active::after {
        display: none;
    }

    .header-actions {
        order: 2;
        margin-left: auto;
    }

    .hero {
        padding: 56px 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .prose-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .side-facts {
        position: static;
    }

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

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

    .kit-items {
        max-height: 420px;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--border);
        gap: 14px;
    }

    .admin-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .admin-nav a {
        border-left: 0;
        border-bottom: 2px solid transparent;
        padding: 8px 10px;
    }

    .admin-nav a.is-active {
        border-left: 0;
        border-bottom-color: var(--accent);
    }

    .admin-sidebar__foot {
        display: none;
    }

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

    .admin-topbar {
        padding: 20px 20px 16px;
    }

    .admin-content {
        padding: 20px 20px 40px;
    }

    .flash-stack--admin {
        padding: 12px 20px 0;
    }
}

@media (max-width: 720px) {
    .container {
        padding: 0 16px;
    }

    .brand-text {
        font-size: 13px;
    }

    .header-actions .user-chip span {
        display: none;
    }

    .header-actions .user-chip {
        padding: 5px;
    }

    .header-link {
        display: none;
    }

    .hero {
        padding: 40px 0;
    }

    .display {
        margin-top: 18px;
    }

    .lead {
        font-size: 15px;
    }

    .section {
        padding: 52px 0;
    }

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

    .section-head--row {
        flex-direction: column;
        align-items: flex-start;
    }

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

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

    .cta__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .cta__actions {
        width: 100%;
    }

    .cta__actions .btn {
        flex: 1;
    }

    .account-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .account-id {
        gap: 14px;
    }

    .avatar {
        width: 52px;
        height: 52px;
    }

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

    .kit-figure {
        grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
        padding: 14px 10px;
    }

    .kit-slot__thumb {
        width: 26px;
        height: 26px;
    }

    .kit-bar .btn {
        width: 100%;
    }

    .success-card {
        padding: 24px;
    }

    .product-modal {
        padding: 12px;
        align-items: flex-start;
    }

    .product-modal__card {
        max-height: calc(100vh - 24px);
    }

    .product-modal__grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
    }

    .product-modal__media {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .product-modal__media img,
    .product-modal__media--empty {
        height: 200px;
        min-height: 0;
        max-height: 200px;
    }

    .product-modal__info {
        padding: 22px;
    }

    .product-modal__close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .product-modal__category,
    .product-modal__title {
        padding-right: 44px;
    }

    .product-modal__actions .btn,
    .product-modal__actions form {
        width: 100%;
    }

    .product-modal__actions form .btn {
        width: 100%;
    }

    .promo-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .promo-box code {
        font-size: 18px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 24px;
    }

    .footer-legal {
        text-align: left;
    }

    .profile-strip__stats {
        gap: 20px;
    }

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

    .toolbar .input {
        max-width: none;
        flex: 1;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .pagination__info {
        order: -1;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-actions .btn {
        width: 100%;
    }

    .btn {
        padding: 0 18px;
    }

    .server-card {
        padding: 18px;
    }

    .server-address {
        flex-direction: column;
        align-items: flex-start;
    }

    .panel {
        padding: 18px;
    }

    .balance {
        font-size: 32px;
    }
}

/* ---------------------------------------------------------------- архив тикетов */

.ticket-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px 24px;
    margin: 0;
}

.ticket-meta dt {
    margin: 0 0 4px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.ticket-meta dd {
    margin: 0;
    font-size: 15px;
    color: var(--text);
}

.ticket-log {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 68vh;
    overflow-y: auto;
    padding: 4px 6px 4px 0;
}

.ticket-msg {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.ticket-msg__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
}

.ticket-msg__avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.ticket-msg__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.ticket-msg__file {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--accent);
    overflow-wrap: anywhere;
}
