/* =========================================================
   ZAIDORA — тёмная неоновая витрина
   ========================================================= */

:root {
    color-scheme: dark;
    /* Светлее и мягче, чем прежний почти чёрный фон: глубокий индиго-синий. */
    --bg: #11152a;
    --surface: #191e37;
    --surface-2: #202745;
    /* Основной акцент по умолчанию: яркий электрик-индиго. */
    --purple: #5b6cff;
    --purple-2: #949dff;
    --purple-deep: #3d47c9;
    --accent-rgb: 91, 108, 255;
    --accent-deep-rgb: 61, 71, 201;
    --accent-dark: #262d55;
    --text: #ffffff;
    --muted: #a9aec8;
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.22);
    --radius: 22px;
    --radius-sm: 14px;
    --max: 1200px;
    --font: "Inter", "SF Pro Display", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* PlayStation — фирменный фиолетовый. */
body[data-platform="PS4"],
body[data-platform="PS5"] {
    --purple: #8b5cf6;
    --purple-2: #a78bfa;
    --purple-deep: #6d28d9;
    --accent-rgb: 139, 92, 246;
    --accent-deep-rgb: 109, 40, 217;
    --accent-dark: #3b0764;
}

/* Xbox — фирменный зелёный. */
body[data-platform="XBOX_SERIES"],
body[data-platform="XBOX_ONE"],
body[data-platform="XBOX_360"] {
    --purple: #16a34a;
    --purple-2: #4ade80;
    --purple-deep: #15803d;
    --accent-rgb: 34, 197, 94;
    --accent-deep-rgb: 21, 128, 61;
    --accent-dark: #052e16;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background:
        radial-gradient(1000px 620px at 88% -12%, rgba(var(--accent-deep-rgb), 0.38), transparent 62%),
        radial-gradient(780px 500px at -12% 28%, rgba(var(--accent-rgb), 0.22), transparent 64%),
        radial-gradient(900px 560px at 50% 112%, rgba(139, 92, 246, 0.18), transparent 72%),
        var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.site-main {
    flex: 1;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

::selection {
    background: var(--purple);
    color: #fff;
}

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

.container {
    width: min(var(--max), calc(100% - 48px));
    margin-inline: auto;
}

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 18px;
    height: 18px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon--lg {
    width: 26px;
    height: 26px;
}

.icon--xl {
    width: 44px;
    height: 44px;
}

.icon--hero {
    width: 120px;
    height: 120px;
    stroke-width: 1.1;
}

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

.center {
    text-align: center;
}

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

/* ===== ШАПКА ===== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 19, 38, 0.82);
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
}

.header__inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 30px;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: none;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--purple-2), var(--purple-deep));
    box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.45);
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0;
}

.brand__name {
    white-space: nowrap;
}

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

.nav-link {
    position: relative;
    padding: 8px 0;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 1px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--purple);
    transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #fff;
}

.nav-link:hover::after,
.nav-link.is-active::after {
    width: 100%;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.header-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 210px;
    padding: 6px 12px 6px 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.82rem;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.header-user:hover {
    border-color: var(--line-strong);
    color: #fff;
}

.header-user__icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.16);
    color: var(--purple-2);
}

.header-user__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lang-menu {
    position: relative;
}

.lang-menu summary {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    list-style: none;
    cursor: pointer;
}

.lang-menu summary::-webkit-details-marker {
    display: none;
}

.lang-menu summary .icon {
    width: 13px;
    height: 13px;
}

.lang-menu summary:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.lang-menu__list {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 170px;
    padding: 6px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    z-index: 60;
}

.lang-menu__list a {
    display: block;
    padding: 9px 12px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 0.86rem;
}

.lang-menu__list a:hover,
.lang-menu__list a.is-active {
    background: rgba(var(--accent-rgb), 0.12);
    color: #fff;
}

.menu-toggle {
    display: none;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: transparent;
    color: #fff;
}

.menu-toggle .icon--close {
    display: none;
}

.menu-toggle[aria-expanded="true"] .icon--menu {
    display: none;
}

.menu-toggle[aria-expanded="true"] .icon--close {
    display: block;
}

/* ===== КНОПКИ ===== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--primary {
    background: linear-gradient(135deg, var(--purple-2), var(--purple));
    color: #fff;
    box-shadow: 0 10px 30px rgba(var(--accent-deep-rgb), 0.28);
}

.btn--primary:hover {
    box-shadow: 0 14px 38px rgba(var(--accent-deep-rgb), 0.42);
}

.btn--light {
    background: #fff;
    color: #09090b;
}

.btn--light:hover {
    box-shadow: 0 10px 28px rgba(255, 255, 255, 0.16);
}

.btn--ghost {
    border-color: var(--line-strong);
    background: transparent;
    color: #fff;
}

.btn--ghost:hover {
    border-color: rgba(var(--accent-rgb), 0.65);
    background: rgba(var(--accent-rgb), 0.1);
}

.btn--ghost.is-favorite {
    border-color: rgba(var(--accent-rgb), 0.65);
    background: rgba(var(--accent-rgb), 0.14);
    color: var(--purple-2);
}

.btn--danger {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.btn--danger:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.6);
}

.btn--sm {
    padding: 9px 15px;
    font-size: 0.8rem;
}

.btn--lg {
    padding: 15px 28px;
    font-size: 0.98rem;
}

/* ===== HERO ===== */

.hero {
    position: relative;
    overflow: hidden;
    padding: 74px 0 58px;
    border-bottom: 1px solid var(--line);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 72%);
    opacity: 0.45;
    pointer-events: none;
}

.hero__glow {
    position: absolute;
    top: -280px;
    right: -180px;
    width: 760px;
    height: 760px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.34), transparent 66%);
    filter: blur(18px);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 56px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--purple-2);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 12ch;
    margin: 0 0 20px;
    font-size: clamp(2.6rem, 5.6vw, 5.1rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 0.98;
}

.hero__text {
    max-width: 52ch;
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.65;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.hero__visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 430px;
}

.hero-orbit {
    position: absolute;
    border: 1px solid rgba(167, 139, 250, 0.22);
    border-radius: 50%;
    pointer-events: none;
}

.hero-orbit--one {
    width: 420px;
    height: 420px;
}

.hero-orbit--two {
    width: 540px;
    height: 540px;
    opacity: 0.55;
}

.hero-card {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: min(350px, 100%);
    padding: 16px;
    border-radius: 28px;
    background: linear-gradient(160deg, var(--purple-2) 0%, var(--purple-deep) 58%, var(--accent-dark) 100%);
    box-shadow: 0 34px 90px rgba(var(--accent-deep-rgb), 0.48);
    transform: rotate(-3deg);
    transition: transform 0.35s ease;
}

.hero-card:hover {
    transform: rotate(0deg) translateY(-5px);
}

.hero-card__media {
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.24);
}

.hero-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card__media .icon--hero {
    color: rgba(255, 255, 255, 0.86);
    width: 150px;
    height: 150px;
}

.hero-card__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0 6px 6px;
}

.hero-card__label {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.78;
}

.hero-card__body strong {
    font-size: 1.3rem;
    line-height: 1.22;
}

.hero-card__price {
    font-size: 1.1rem;
    font-weight: 700;
}

.hero-chip {
    position: absolute;
    z-index: 3;
    padding: 8px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(9, 9, 12, 0.82);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.hero-chip--one {
    top: 6%;
    right: 2%;
}

.hero-chip--two {
    left: -2%;
    bottom: 24%;
}

.hero-chip--three {
    right: 4%;
    bottom: 8%;
    color: var(--purple-2);
}

/* ===== ПОИСК ===== */

.search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 560px;
    padding: 5px 5px 5px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(13, 13, 17, 0.9);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search:focus-within {
    border-color: rgba(var(--accent-rgb), 0.65);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12);
}

.search__icon {
    display: flex;
    color: var(--muted);
}

.search input {
    flex: 1;
    min-width: 0;
    padding: 10px 0;
    border: 0;
    outline: 0;
    background: none;
}

.search input::placeholder {
    color: #6f6f7a;
}

.search .btn {
    flex: none;
}

.search--catalog {
    max-width: none;
}

/* ===== КАТАЛОГ ===== */

.catalog {
    padding: 56px 0 84px;
}

.section-head,
.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-head h2,
.page-head h1 {
    margin: 0;
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.count {
    flex: none;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.78rem;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 500;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.chip:hover {
    color: #fff;
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.05);
}

.chip.is-active {
    border-color: var(--purple);
    background: var(--purple);
    color: #fff;
    box-shadow: 0 8px 22px rgba(var(--accent-rgb), 0.28);
}

.chip--sm {
    padding: 7px 12px;
    font-size: 0.77rem;
}

.catalog-tools {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.catalog-tools__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.catalog-tools__row .chips {
    margin-bottom: 0;
}

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

.filter-box {
    position: relative;
}

.filter-box summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.filter-box summary::-webkit-details-marker {
    display: none;
}

.filter-box summary:hover,
.filter-box[open] summary {
    color: #fff;
    border-color: rgba(var(--accent-rgb), 0.6);
}

.filter-box__body {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 30;
    width: 300px;
    padding: 16px;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.filter-box__actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.sort-form {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sort-form select {
    width: auto;
    padding: 9px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

/* ===== СЕТКА ТОВАРОВ ===== */

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

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--accent-rgb), 0.5);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.5);
}

.product-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 32%, #2a3157, #11152a 72%);
}

.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card__media img {
    transform: scale(1.05);
}

.product-card__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #5b5b6b;
    font-size: 0.72rem;
}

.product-card__platform {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(15, 19, 38, 0.82);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px 18px;
}

.product-card__title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
}

.product-card__title a {
    transition: color 0.2s ease;
}

.product-card__title a:hover {
    color: var(--purple-2);
}

.product-card__meta {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.product-card__meta .icon {
    width: 13px;
    height: 13px;
}

.product-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 6px;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.product-card__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--purple-2);
    font-size: 0.78rem;
    font-weight: 600;
}

.product-card__link .icon {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.product-card__link:hover .icon {
    transform: translateX(3px);
}

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

/* ===== ПУСТЫЕ СОСТОЯНИЯ ===== */

.empty-state {
    grid-column: 1 / -1;
    padding: 62px 24px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.015);
    text-align: center;
}

.empty-state__icon {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    border-radius: 20px;
    background: rgba(var(--accent-rgb), 0.12);
    color: var(--purple-2);
}

.empty-state h3 {
    margin: 0;
    font-size: 1.1rem;
}

.empty-state p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.empty-state__action {
    margin-top: 18px;
}

/* ===== СТРАНИЦЫ ===== */

.page {
    padding: 40px 0 84px;
}

.page--narrow {
    max-width: 1000px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 0.8rem;
}

.breadcrumbs a:hover {
    color: #fff;
}

.breadcrumbs span:last-child {
    overflow: hidden;
    color: #fff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 28px;
    color: var(--muted);
    font-size: 0.84rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #fff;
}

/* ===== ЮРИДИЧЕСКИЕ СТРАНИЦЫ ===== */

.legal {
    padding-top: 32px;
}

.legal__head {
    max-width: 760px;
    margin-bottom: 30px;
}

.legal__head h1 {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.legal__intro {
    max-width: 62ch;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.legal__updated {
    margin: 14px 0 0;
    color: #6b6b76;
    font-size: 0.78rem;
}

.legal__contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
    padding: 14px 20px;
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    border-radius: 16px;
    background: rgba(var(--accent-rgb), 0.1);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.legal__contact:hover {
    border-color: rgba(var(--accent-rgb), 0.7);
    background: rgba(var(--accent-rgb), 0.18);
}

.legal__body {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 760px;
}

.legal__section h2 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.legal__section p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.8;
}

/* ===== ТОВАР ===== */

.notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid;
    border-radius: 14px;
    font-size: 0.88rem;
}

.notice--warning {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.08);
    color: #fde68a;
}

.notice--error {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.08);
    color: #fecaca;
}

.product-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
    gap: 40px;
    margin-bottom: 36px;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.gallery__main {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: radial-gradient(circle at 50% 32%, #2a3157, #11152a 72%);
}

.gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery__thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.gallery__thumb {
    width: 84px;
    height: 64px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 12px;
    background: none;
    opacity: 0.6;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.gallery__thumb.is-active,
.gallery__thumb:hover {
    border-color: var(--purple);
    opacity: 1;
}

.gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    aspect-ratio: 4 / 3;
    border: 1px dashed var(--line-strong);
    border-radius: 24px;
    background: radial-gradient(circle at 50% 30%, #232a4b, #11152a 72%);
    color: #5b5b6b;
}

.product-info h1 {
    margin: 0 0 6px;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.product-info__top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.product-info__price {
    margin: 0 0 24px;
    color: var(--purple-2);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge .icon {
    width: 13px;
    height: 13px;
}

.badge--purple {
    border-color: rgba(var(--accent-rgb), 0.3);
    background: rgba(var(--accent-rgb), 0.16);
    color: var(--purple-2);
}

.badge--success {
    border-color: rgba(34, 197, 94, 0.25);
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
}

.badge--warning {
    border-color: rgba(245, 158, 11, 0.25);
    background: rgba(245, 158, 11, 0.12);
    color: #fcd34d;
}

.badge--muted,
.badge--platform {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
}

.badge--platform {
    border-color: var(--line-strong);
    color: #fff;
}

.seller-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.seller-card:hover {
    border-color: rgba(var(--accent-rgb), 0.5);
    background: rgba(var(--accent-rgb), 0.05);
}

.seller-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.seller-card__body .muted {
    font-size: 0.7rem;
}

.seller-card__body strong {
    overflow: hidden;
    font-size: 0.92rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.avatar {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--purple-deep));
    color: #fff;
    font-weight: 700;
}

.avatar--lg {
    width: 84px;
    height: 84px;
    border-radius: 26px;
    font-size: 2rem;
}

.rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #fcd34d;
    font-size: 0.82rem;
    font-weight: 600;
}

.rating .icon {
    width: 14px;
    height: 14px;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.product-section {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.product-section h2 {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.product-description {
    margin: 0;
    color: #d4d4d8;
    line-height: 1.7;
    white-space: pre-line;
}

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

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

.specs dt {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.7rem;
}

.specs dd {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ===== ПАНЕЛИ ===== */

.panel {
    margin-top: 24px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.012));
}

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

.panel__head h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.manage-panel__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.upload-form {
    display: flex;
    flex: 1;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.field--file {
    flex: 1;
    min-width: 240px;
}

.upload-form--stacked {
    flex-direction: column;
    align-items: stretch;
    margin-top: 10px;
}

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

.photo-tile {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}

.photo-tile img,
.photo-tile__placeholder {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.photo-tile__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    color: var(--muted);
    font-size: 0.85rem;
    text-align: center;
}

.photo-tile form {
    padding: 8px;
}

/* ===== ПРОФИЛЬ ===== */

.profile-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        radial-gradient(620px 220px at 0% 0%, rgba(var(--accent-rgb), 0.16), transparent 70%),
        var(--surface);
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-identity h1 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.profile-identity .muted {
    margin: 3px 0 10px;
    font-size: 0.8rem;
}

.profile-identity__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.stat {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
}

.stat__value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.stat__label {
    color: var(--muted);
    font-size: 0.76rem;
}

.row-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.row-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.16);
}

.row-item__thumb {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    flex: none;
    overflow: hidden;
    border-radius: 12px;
    background: #14141a;
    color: #5b5b6b;
}

.row-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.row-item__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.row-item__body strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.row-item__body .muted {
    font-size: 0.76rem;
}

.role-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ===== ФОРМЫ ===== */

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.55;
    text-align: left;
    cursor: pointer;
}

.checkbox input {
    flex: none;
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    accent-color: var(--purple);
    cursor: pointer;
}

.checkbox a {
    color: var(--purple-2);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.checkbox a:hover {
    color: #fff;
}

.field label,
.field__label {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

input[type="text"],
input[type="number"],
input[type="search"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    outline: 0;
    background: var(--surface);
    color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="file"]:focus,
select:focus,
textarea:focus {
    border-color: rgba(var(--accent-rgb), 0.7);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.13);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input[type="file"] {
    padding: 9px;
}

input[type="file"]::file-selector-button {
    margin-right: 10px;
    padding: 7px 12px;
    border: 0;
    border-radius: 8px;
    background: rgba(var(--accent-rgb), 0.2);
    color: var(--purple-2);
    font-weight: 600;
    cursor: pointer;
}

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

.product-form {
    margin-top: 0;
    padding: 28px;
}

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

.field--full {
    grid-column: 1 / -1;
}

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

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.form-aside {
    position: sticky;
    top: 100px;
    padding: 24px;
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    border-radius: 24px;
    background:
        radial-gradient(300px 200px at 50% 0%, rgba(var(--accent-rgb), 0.22), transparent 70%),
        var(--surface);
}

.form-aside__icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(var(--accent-rgb), 0.16);
    color: var(--purple-2);
}

.form-aside h2 {
    margin: 14px 0 8px;
    font-size: 1.05rem;
}

.form-aside p {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.65;
}

/* ===== ВХОД / ОШИБКИ ===== */

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 560px;
    padding: 64px 0;
}

.auth-card {
    width: min(520px, 100%);
    padding: 46px 32px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background:
        radial-gradient(520px 300px at 50% 0%, rgba(var(--accent-rgb), 0.22), transparent 70%),
        var(--surface);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    text-align: center;
}

.auth-card__icon {
    display: inline-grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--purple), var(--purple-deep));
    box-shadow: 0 0 42px rgba(var(--accent-rgb), 0.42);
}

.auth-card h1 {
    margin: 0;
    font-size: clamp(1.9rem, 3.5vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.auth-card__text {
    margin: 12px auto 26px;
    max-width: 42ch;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.auth-card__text--error {
    color: #f87171;
}

.auth-card__notice {
    margin: 0 0 20px;
    padding: 18px 16px 4px;
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    border-radius: var(--radius-sm);
    background: rgba(var(--accent-rgb), 0.08);
}

.auth-card__notice .auth-card__text {
    margin-bottom: 14px;
}

.auth-card .back-link {
    display: flex;
    justify-content: center;
}

.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 560px;
    padding: 80px 0;
}

.error-card {
    max-width: 540px;
    text-align: center;
}

.error-card__code {
    display: block;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--purple-2), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 900;
    letter-spacing: -0.07em;
    line-height: 1;
}

.error-card h1 {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    letter-spacing: -0.03em;
}

.error-card p {
    margin: 0 0 24px;
    color: var(--muted);
    line-height: 1.6;
}

/* ===== УВЕДОМЛЕНИЯ ===== */

.flash-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 18px;
}

.flash {
    padding: 13px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: var(--surface);
    font-size: 0.86rem;
}

.flash--success {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.08);
    color: #bbf7d0;
}

.flash--error {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.08);
    color: #fecaca;
}

.flash--info {
    border-color: rgba(var(--accent-rgb), 0.35);
    background: rgba(var(--accent-rgb), 0.08);
    color: #ddd6fe;
}

/* ===== ФУТЕР ===== */

.site-footer {
    border-top: 1px solid var(--line);
    background: #0b0f20;
}

.footer__main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 48px 0 36px;
}

.footer__brand p {
    max-width: 38ch;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.65;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__col h3 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.footer__col a {
    color: var(--muted);
    font-size: 0.84rem;
    transition: color 0.2s ease;
}

.footer__col a:hover {
    color: var(--purple-2);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0 30px;
    border-top: 1px solid var(--line);
    color: #6b6b76;
    font-size: 0.72rem;
}

/* ===== АДАПТИВ ===== */

@media (max-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .hero__inner {
        gap: 32px;
    }
}

@media (max-width: 960px) {
    .site-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px;
        border: 1px solid var(--line-strong);
        border-radius: 18px;
        background: var(--surface);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    }

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

    .site-nav .nav-link {
        padding: 12px 14px;
        border-radius: 10px;
        font-size: 0.92rem;
    }

    .site-nav .nav-link::after {
        display: none;
    }

    .site-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.06);
    }

    .menu-toggle {
        display: grid;
    }

    .header__inner {
        gap: 14px;
    }

    .header-user__name {
        display: none;
    }

    .header-user {
        padding: 5px;
        border: 0;
    }

    .hero {
        padding: 56px 0 44px;
    }

    .hero__inner,
    .product-layout,
    .form-layout {
        grid-template-columns: 1fr;
    }

    .hero__visual {
        min-height: 380px;
        order: 2;
    }

    .product-gallery,
    .form-aside {
        position: static;
    }

    .product-gallery {
        max-width: 640px;
    }

    .footer__main {
        grid-template-columns: 1.3fr 1fr;
    }
}

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

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

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

    .profile-hero {
        padding: 22px;
    }

    .profile-actions {
        width: 100%;
    }
}

@media (max-width: 620px) {
    .container {
        width: calc(100% - 32px);
    }

    .header__inner {
        min-height: 68px;
    }

    .hero h1 {
        max-width: 100%;
    }

    .hero__visual {
        min-height: 330px;
    }

    .hero-card {
        width: min(280px, 100%);
    }

    .hero-orbit--one {
        width: 300px;
        height: 300px;
    }

    .hero-orbit--two {
        width: 380px;
        height: 380px;
    }

    .hero-chip--one {
        right: 0;
    }

    .hero-chip--two {
        left: 0;
    }

    .search {
        padding: 5px 5px 5px 14px;
    }

    .search input {
        min-width: 0;
    }

    .search .btn {
        padding: 10px 15px;
        font-size: 0.8rem;
    }

    .catalog-tools__row {
        flex-direction: column;
    }

    .catalog-tools__right {
        width: 100%;
        justify-content: space-between;
    }

    .filter-box__body {
        left: 0;
        right: auto;
        width: min(300px, calc(100vw - 32px));
    }

    .section-head,
    .page-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .panel,
    .product-form {
        padding: 20px;
    }

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

    .field--full {
        grid-column: auto;
    }

    .profile-identity {
        align-items: flex-start;
    }

    .avatar--lg {
        width: 64px;
        height: 64px;
        border-radius: 20px;
        font-size: 1.5rem;
    }

    .stats {
        gap: 8px;
    }

    .stat {
        padding: 14px;
    }

    .stat__value {
        font-size: 1.35rem;
    }

    .row-item {
        flex-wrap: wrap;
    }

    .row-item__body {
        flex-basis: calc(100% - 70px);
    }

    .footer__main {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 36px 0 28px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 6px;
    }

    .product-actions .btn,
    .profile-actions .btn {
        width: 100%;
    }

    .product-actions form,
    .profile-actions form {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .brand__name {
        display: none;
    }
}

@media (max-width: 520px) {
    .product-grid,
    .product-grid--compact {
        grid-template-columns: 1fr;
    }

    .hero-card {
        transform: none;
    }

    .auth-card {
        padding: 34px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== АККАУНТ: EMAIL / ПАРОЛЬ ===== */

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    outline: 0;
    background: var(--surface);
    color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="email"]:focus,
input[type="password"]:focus {
    border-color: rgba(var(--accent-rgb), 0.7);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.13);
}

/* Кнопка «показать пароль» внутри поля. */
.field__control {
    position: relative;
    display: block;
}

.field__control input {
    padding-right: 50px;
}

.field__toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    transform: translateY(-50%);
    transition: color 0.2s ease, background 0.2s ease;
}

.field__toggle:hover {
    color: var(--text);
    background: rgba(var(--accent-rgb), 0.16);
}

.field__toggle .icon--eye-off {
    display: none;
}

.field__toggle.is-active .icon--eye {
    display: none;
}

.field__toggle.is-active .icon--eye-off {
    display: block;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 auto;
    max-width: 380px;
    text-align: left;
}

.auth-form .btn {
    justify-content: center;
    margin-top: 6px;
}

.auth-card__switch {
    margin: 20px 0 6px;
    color: var(--muted);
    font-size: 0.88rem;
}

.auth-card__switch a {
    color: var(--purple-2);
    font-weight: 600;
}

.auth-card__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 16px;
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.auth-card__divider::before,
.auth-card__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.auth-card__icon--sm {
    width: 54px;
    height: 54px;
    margin: 0;
    border-radius: 18px;
}

/* ===== СЧЁТЧИКИ ===== */

.nav-badge,
.unread-badge {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--purple);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
}

.nav-badge {
    margin-left: 6px;
    vertical-align: middle;
}

.avatar--md {
    width: 46px;
    height: 46px;
    font-size: 1.05rem;
}

/* ===== ЧАТЫ ===== */

.chat-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
}

.chat-list__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    transition: background 0.2s ease;
}

.chat-list__item:hover {
    background: rgba(var(--accent-rgb), 0.1);
}

.chat-list__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.chat-list__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.chat-list__preview {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.84rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 18px;
}

.chat-header__person {
    display: flex;
    align-items: center;
    gap: 14px;
}

.chat-header__person h1 {
    margin: 0 0 2px;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    letter-spacing: -0.03em;
}

.chat-product {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px 16px;
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    border-radius: 14px;
    background: rgba(var(--accent-rgb), 0.08);
    font-size: 0.88rem;
}

.chat-product .price {
    margin-left: auto;
}

.chat-thread {
    display: flex;
    flex-direction: column;
    min-height: 340px;
    padding: 18px;
}

.chat-thread__messages {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    max-height: 56vh;
    overflow-y: auto;
    padding-right: 4px;
}

.chat-thread__empty {
    margin: auto;
    text-align: center;
    font-size: 0.88rem;
}

.chat-bubble {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: min(78%, 560px);
    padding: 10px 14px;
    border-radius: 16px;
    line-height: 1.5;
    word-break: break-word;
}

.chat-bubble.is-incoming {
    align-self: flex-start;
    border: 1px solid var(--line);
    border-bottom-left-radius: 6px;
    background: var(--surface-2);
}

.chat-bubble.is-outgoing {
    align-self: flex-end;
    border-bottom-right-radius: 6px;
    background: linear-gradient(135deg, var(--purple), var(--purple-deep));
}

.chat-bubble__text {
    margin: 0;
    white-space: pre-wrap;
}

.chat-bubble__time {
    align-self: flex-end;
    font-size: 0.64rem;
    opacity: 0.65;
}

.chat-form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-top: 14px;
}

.chat-form__field {
    flex: 1;
}

.chat-form textarea {
    min-height: 54px;
    max-height: 160px;
    resize: vertical;
}

.chat-form .btn {
    min-height: 54px;
}

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

@media (max-width: 640px) {
    .chat-bubble {
        max-width: 88%;
    }

    .chat-form {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ---------- настройки аккаунта ---------- */
.settings-page .page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.settings-page .page-head h1 {
    margin: 4px 0 6px;
}

.settings-note {
    margin: 0 0 18px;
    max-width: 620px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.settings-current {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 16px;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 420px;
}

.settings-form .btn {
    align-self: flex-start;
    margin-top: 4px;
}

.panel--danger {
    border-color: rgba(239, 68, 68, 0.28);
}

.panel--danger .panel__head h2 {
    color: #fca5a5;
}

@media (max-width: 640px) {
    .settings-form {
        max-width: none;
    }

    .settings-form .btn {
        align-self: stretch;
        justify-content: center;
    }
}
