:root {
    --yellow: #fce44d;
    --yellow-soft: #fff5a2;
    --bg: #0b1320;
    --bg-strong: #101b2b;
    --surface: #131f31;
    --surface-soft: #162437;
    --surface-bright: #1a2a3f;
    --text-primary: #f5f7fb;
    --text-secondary: #aab6c8;
    --text-muted: #7d8aa0;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(252, 228, 77, 0.22);
    --success: #27c67b;
    --danger: #ff6b6b;
    --shadow-lg: 0 28px 60px rgba(0, 0, 0, 0.28);
    --content-width: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", sans-serif;
    color: var(--text-primary);
    background:
        radial-gradient(circle at top left, rgba(252, 228, 77, 0.12), transparent 24%),
        radial-gradient(circle at right top, rgba(72, 118, 255, 0.12), transparent 22%),
        linear-gradient(180deg, #0b1320 0%, #0a111c 100%);
}

a {
    color: var(--yellow);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--yellow-soft);
}

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

h1, h2, h3, h4 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: -0.02em;
}

p {
    margin: 0;
}

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

button:not(:disabled),
summary,
select:not(:disabled),
label[for],
input[type="button"]:not(:disabled),
input[type="submit"]:not(:disabled),
input[type="reset"]:not(:disabled),
input[type="checkbox"]:not(:disabled),
input[type="radio"]:not(:disabled),
input[type="file"]:not(:disabled),
input[type="range"]:not(:disabled),
[role="button"] {
    cursor: pointer;
}

.market-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
    background: rgba(11, 19, 32, 0.88);
}

.market-header__promo,
.market-header__main,
.market-footer__inner,
.market-footer__bottom,
.container {
    max-width: var(--content-width);
    margin: 0 auto;
}

.market-header__promo {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 10px 24px 12px;
    border-bottom: 1px solid var(--border);
}

.market-header__promo-link {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.market-header__promo-link:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.05);
}

.market-header__promo-title {
    font-size: 0.9rem;
    font-weight: 800;
}

.market-header__promo-subtitle {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.market-header__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    padding: 16px 24px;
}

.market-header__brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    justify-self: start;
    color: var(--text-primary);
}

.market-header__brand:hover {
    color: var(--text-primary);
}

.market-header__brand-mark {
    display: block;
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.market-header__brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.market-header__brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.market-header__brand-title {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
}

.market-header__brand-subtitle {
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 700;
}

.market-header__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    justify-self: center;
}

.market-header__nav a {
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.94rem;
}

.market-header__nav a:hover {
    color: var(--text-primary);
}

.market-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: end;
}

.market-header__link {
    color: var(--text-secondary);
    font-weight: 700;
}

.market-header__cta,
.button-not-available,
.market-button,
form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border: none;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
}

.market-header__cta,
.market-button--primary,
form button {
    background: var(--yellow);
    color: #0b1320;
}

.market-header__cta:hover,
.market-button--primary:hover,
form button:hover {
    color: #0b1320;
}

.market-header__cta {
    cursor: pointer;
}

.market-header__cta[hidden] {
    display: none !important;
}

.market-header__account {
    position: relative;
}

.market-header__account-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition: color 0.2s ease;
}

.market-header__account-button:focus-visible {
    outline: none;
}

.market-header__account-balance {
    font-size: 0.94rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.market-header__account-balance[hidden] {
    display: none;
}

.market-header__account-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.market-header__account-button:hover .market-header__account-icon,
.market-header__account-button[aria-expanded="true"] .market-header__account-icon {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.08);
}

.market-header__account-button:focus-visible .market-header__account-icon {
    border-color: rgba(252, 228, 77, 0.45);
    box-shadow: 0 0 0 4px rgba(252, 228, 77, 0.12);
}

.market-header__account-button svg {
    width: 22px;
    height: 22px;
}

.market-header__account-menu[hidden] {
    display: none;
}

.market-header__account-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 236px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(252, 228, 77, 0.1), transparent 38%),
        linear-gradient(180deg, rgba(19, 31, 49, 0.98), rgba(14, 24, 38, 0.98));
    box-shadow: var(--shadow-lg);
}

.market-header__account-menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
}

.market-header__account-menu-item:hover {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.05);
}

.market-header__account-menu-item:disabled {
    opacity: 0.65;
    cursor: wait;
}

.market-button--secondary {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

body.site-auth-open {
    overflow: hidden;
}

.site-auth[hidden] {
    display: none;
}

.site-auth {
    position: fixed;
    inset: 0;
    z-index: 120;
    overflow-y: auto;
}

.site-auth__backdrop {
    display: none;
}

.site-auth__dialog {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100%;
    padding: 28px 24px;
    background: rgba(4, 10, 18, 0.78);
    backdrop-filter: blur(18px);
}

.site-auth__shell {
    position: relative;
    width: min(460px, 100%);
    margin: max(12px, 4vh) 0;
    padding: 32px;
    border: 1px solid rgba(252, 228, 77, 0.16);
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(252, 228, 77, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(19, 31, 49, 0.98), rgba(14, 24, 38, 0.98));
    box-shadow: var(--shadow-lg);
}

.site-auth__close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.7rem;
    line-height: 1;
}

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

.site-auth__eyebrow {
    color: var(--yellow);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-auth__subtitle {
    margin-top: 12px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.65;
}

.site-auth__status {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    line-height: 1.55;
}

.site-auth__status--error {
    border-color: rgba(255, 107, 107, 0.26);
    background: rgba(255, 107, 107, 0.09);
}

.site-auth__status--success {
    border-color: rgba(39, 198, 123, 0.24);
    background: rgba(39, 198, 123, 0.1);
}

.site-auth__forms {
    margin-top: 24px;
    width: 100%;
}

.site-auth__form {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 14px;
}

.site-auth__form.is-active {
    display: flex;
}

.site-auth__field {
    display: block;
}

.site-auth__meta-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.site-auth__helper {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
}

.site-auth__helper--inline {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 0 6px;
    white-space: nowrap;
}

.site-auth__helper--legal {
    min-width: 0;
    font-size: 0.76rem;
    line-height: 1.55;
}

.site-auth__helper--legal a {
    color: var(--yellow);
}

.site-auth__helper--legal a:hover {
    color: var(--yellow-soft);
}

.site-auth__legal-consent {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    cursor: pointer;
}

.site-auth__legal-consent-checkbox {
    width: 18px;
    min-width: 18px;
    height: 18px;
    margin: 2px 0 0;
    padding: 0;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: none;
    accent-color: var(--yellow);
}

.site-auth__form .site-auth__text-button {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--yellow);
    box-shadow: none;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 800;
    justify-content: flex-start;
    min-height: auto;
}

.site-auth__form .site-auth__text-button:hover {
    color: var(--yellow-soft);
}

.site-auth__form .site-auth__text-button--inline {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
}

.site-auth__form button[type="submit"]:disabled {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
}

.site-auth__oauth[hidden] {
    display: none;
}

.site-auth__oauth {
    display: grid;
    gap: 12px;
    margin-bottom: 8px;
}

.site-auth__oauth-buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    justify-items: center;
    gap: 14px;
}

.site-auth__oauth-slot {
    display: flex;
    width: 100%;
    max-width: 228px;
    min-width: 0;
    justify-self: center;
}

.site-auth__oauth-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 58px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 18px;
    cursor: pointer;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}

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

.site-auth__oauth-button-title {
    font-size: 0.98rem;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
}

.site-auth__oauth-badge {
    display: block;
    width: 228px;
    height: auto;
}

.site-auth__oauth-button--vk,
.site-auth__oauth-button--yandex {
    width: 100%;
    padding: 0;
    border: none;
    min-height: auto;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.site-auth__oauth-button--vk {
    border-radius: 12px;
    background: #0077ff;
    color: #ffffff;
    overflow: hidden;
}

.site-auth__oauth-vk-content {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    padding: 4px 12px;
}

.site-auth__oauth-vk-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 36px;
}

.site-auth__oauth-vk-mark svg {
    display: block;
    width: 22px;
    height: 22px;
}

.site-auth__oauth-vk-text {
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
}

.site-auth__oauth-button--vk:hover {
    background: #0077ff;
    color: #ffffff;
    transform: none;
    box-shadow: none;
    filter: none;
}

.site-auth__oauth-button--yandex:hover {
    transform: none;
    box-shadow: none;
    filter: none;
}

.catalog-shelf {
    padding: 26px 28px 30px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
}

.catalog-shelf__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.catalog-shelf__head h2 {
    margin: 8px 0;
    font-size: clamp(1.7rem, 2.8vw, 2.3rem);
}

.catalog-shelf__head p {
    max-width: 52ch;
    color: var(--text-secondary);
    line-height: 1.7;
}

.catalog-shelf__more {
    color: var(--text-secondary);
    font-weight: 800;
}

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

.catalog-shelf__empty {
    padding: 18px 20px;
    border: 1px dashed var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    line-height: 1.7;
}

.catalog-shelf--related {
    margin-top: 24px;
}

.market-product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(20, 33, 51, 0.9), rgba(14, 23, 35, 0.96));
    color: var(--text-primary);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.market-product-card:hover {
    color: var(--text-primary);
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
}

.market-product-card__media {
    position: relative;
    aspect-ratio: 460 / 215;
    overflow: hidden;
}

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

.market-product-card__discount {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(39, 198, 123, 0.94);
    color: #0b1320;
    font-size: 0.76rem;
    font-weight: 900;
}

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

.market-product-card__label {
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.market-product-card h3 {
    min-height: 3.2em;
    font-size: 1rem;
    line-height: 1.35;
}

.market-product-card__meta {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.5;
}

.market-product-card__price {
    margin-top: auto;
    display: flex;
    align-items: end;
    gap: 8px;
}

.market-product-card__price-current {
    color: rgba(245, 247, 251, 0.96);
    font-size: 1.25rem;
    font-weight: 900;
}

.market-product-card__price-old {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-decoration: line-through;
}

.market-footer {
    margin-top: 72px;
    border-top: 1px solid var(--border);
    background: rgba(10, 17, 28, 0.86);
}

.market-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
    gap: 28px;
    padding: 42px 24px 28px;
}

.market-footer__eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: rgba(252, 228, 77, 0.76);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.market-footer__brand h2 {
    margin-bottom: 12px;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.1;
}

.market-footer__brand p,
.market-footer__column a,
.market-footer__bottom {
    color: var(--text-secondary);
    line-height: 1.7;
}

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

.market-footer__label {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.market-footer__column a:hover {
    color: var(--yellow);
}

.market-footer__bottom {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 0 24px 30px;
    font-size: 0.88rem;
}

.market-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 14px;
    font-size: 0.74rem;
    line-height: 1.5;
}

.market-footer__legal a {
    color: var(--text-muted);
}

.market-footer__legal a:hover {
    color: var(--text-secondary);
}

.site-cookie-banner {
    position: fixed;
    left: 50%;
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 80;
    display: flex;
    align-items: center;
    gap: 16px;
    width: min(760px, calc(100vw - 36px));
    padding: 16px 18px;
    border: 1px solid var(--border-strong);
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(252, 228, 77, 0.1), transparent 32%),
        rgba(10, 17, 28, 0.96);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    transform: translateX(-50%);
}

.site-cookie-banner[hidden] {
    display: none !important;
}

.site-cookie-banner__text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.site-cookie-banner__text a {
    color: var(--yellow);
}

.site-cookie-banner__text a:hover {
    color: var(--yellow-soft);
}

.site-cookie-banner__button {
    flex-shrink: 0;
    min-width: 88px;
    padding: 12px 18px;
    border: 1px solid rgba(252, 228, 77, 0.24);
    border-radius: 999px;
    background: var(--yellow);
    color: var(--bg);
    font-weight: 900;
    line-height: 1;
}

.site-cookie-banner__button:hover {
    background: var(--yellow-soft);
}

.container {
    padding: 42px 24px 72px;
}

input,
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

input::placeholder {
    color: var(--text-muted);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(252, 228, 77, 0.45);
    box-shadow: 0 0 0 4px rgba(252, 228, 77, 0.12);
}

form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

form button {
    width: 100%;
    cursor: pointer;
}

.button-not-available {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    cursor: default;
    box-shadow: none;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.tab-button {
    padding: 12px 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 800;
}

.tab-button.active {
    background: rgba(252, 228, 77, 0.14);
    border-color: var(--border-strong);
    color: var(--text-primary);
}

.tab-content {
    display: none;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    line-height: 1.7;
}

.tab-content.active {
    display: block;
}

.req-container {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip-icon {
    cursor: pointer;
}

.tooltip-content {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    width: max-content;
    max-width: 260px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #162437;
    color: var(--text-primary);
    font-size: 0.78rem;
    line-height: 1.5;
    transform: translateX(-50%);
    box-shadow: var(--shadow-lg);
    z-index: 10;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.tooltip-content::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 12px;
}

.tooltip:hover .tooltip-content,
.tooltip:focus-within .tooltip-content {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

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

.faq h1,
.site-map h1 {
    margin-bottom: 24px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.legal-page {
    padding: 42px 24px 72px;
}

.legal-page__container {
    max-width: min(var(--content-width), 1040px);
    margin: 0 auto;
}

.legal-card {
    border: 1px solid var(--border);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
    margin-bottom: 40px;
}

.legal-page__hero {
    padding: 32px;
}

.legal-page__hero-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.legal-page__hero-copy {
    min-width: 0;
}

.legal-page__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: rgba(252, 228, 77, 0.76);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-page h1 {
    margin-bottom: 18px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.legal-page__description,
.legal-card p,
.legal-details__value,
.legal-list {
    color: var(--text-secondary);
    line-height: 1.7;
}

.legal-card p {
    margin-bottom: 20px;
}

.legal-page__content {
    margin-top: 24px;
}

.legal-page__content .legal-page__container {
    display: grid;
    gap: 24px;
}

.legal-card {
    padding: 28px;
}

.legal-card__section + .legal-card__section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.legal-card h2 {
    margin-bottom: 14px;
    font-size: 1.35rem;
}

.legal-card a,
.legal-links a {
    color: var(--yellow);
}

.legal-card a:hover,
.legal-links a:hover {
    color: var(--yellow-soft);
}

.legal-card--notice {
    border-color: rgba(252, 228, 77, 0.24);
    background:
        radial-gradient(circle at top left, rgba(252, 228, 77, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(20, 33, 51, 0.92), rgba(14, 23, 35, 0.96));
}

.legal-card__date {
    margin: 20px 0 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.legal-details {
    display: grid;
    gap: 14px;
}

.legal-details__row {
    display: grid;
    grid-template-columns: minmax(140px, 180px) minmax(0, 1fr);
    align-items: baseline;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.legal-details__row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.legal-details__label {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.7;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.legal-list {
    display: grid;
    gap: 10px;
    margin: 16px 0 0;
    padding-left: 22px;
}

.legal-links {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.legal-lang-switch {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
}

.legal-lang-switch__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 800;
}

.legal-lang-switch__button.is-active {
    border-color: var(--border-strong);
    background: rgba(252, 228, 77, 0.14);
    color: var(--text-primary);
}

.legal-lang-switch__flag {
    font-size: 1rem;
    line-height: 1;
}

.faq-page {
    display: grid;
    gap: 24px;
}

.faq-hero,
.faq-main,
.faq-support-card {
    border: 1px solid var(--border);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
}

.faq-hero {
    display: grid;
    gap: 24px;
    padding: 30px;
    background:
        radial-gradient(circle at top left, rgba(252, 228, 77, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(20, 33, 51, 0.92), rgba(14, 23, 35, 0.97));
}

.faq-hero__eyebrow,
.faq-support-card__eyebrow {
    margin: 0 0 10px;
    color: rgba(252, 228, 77, 0.76);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.faq-hero p:last-child,
.faq-support-card p {
    margin-bottom: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-hero__hint {
    max-width: 72ch;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.95rem;
}

.faq-hero__topics {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.faq-topic {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 700;
}

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

.faq-main {
    padding: 10px 30px;
}

.faq-support-card {
    position: sticky;
    top: 24px;
    padding: 24px;
}

.faq-support-card h2 {
    margin-bottom: 10px;
    font-size: 1.45rem;
}

.faq-support-card a,
.faq-answer a {
    color: var(--yellow);
    text-decoration: none;
}

.faq-support-card a:hover,
.faq-answer a:hover {
    text-decoration: underline;
}

.faq-support-card__hint {
    margin-top: 16px;
    font-size: 0.94rem;
}

.accordion-item {
    padding: 20px 0;
    border-top: 1px solid var(--border);
}

.accordion-item:last-child {
    border-bottom: 1px solid var(--border);
}

.accordion-header {
    appearance: none;
    position: relative;
    display: block;
    width: 100%;
    padding-right: 24px;
    padding-left: 0;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.accordion-header::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.accordion-header.active::after {
    content: '–';
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.accordion-body__inner {
    padding-top: 18px;
}

.faq-answer {
    display: grid;
    gap: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-answer__text,
.faq-answer__note,
.faq-answer__heading,
.faq-answer__list {
    margin: 0;
}

.faq-answer__text code,
.faq-answer__list code {
    padding: 2px 7px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(245, 247, 251, 0.96);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.88em;
}

.faq-answer__heading {
    color: var(--text-primary);
    font-size: 1.08rem;
}

.faq-answer__note {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(245, 247, 251, 0.92);
}

.faq-answer__list {
    display: grid;
    gap: 12px;
    padding-left: 22px;
}

.faq-answer__list li {
    padding-left: 4px;
}

.faq-answer__media {
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.faq-answer__media img {
    display: block;
    width: 100%;
    height: auto;
}

.faq-answer__media figcaption {
    padding: 12px 16px 16px;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.site-map-page {
    display: grid;
    gap: 24px;
}

.site-map-hero,
.site-map-section {
    padding: 28px 30px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
}

.site-map-hero {
    background:
        radial-gradient(circle at top left, rgba(252, 228, 77, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(20, 33, 51, 0.9), rgba(14, 23, 35, 0.96));
}

.site-map-hero__eyebrow {
    color: rgba(252, 228, 77, 0.76);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-map-hero p,
.site-map-section__head p {
    max-width: 72ch;
    color: var(--text-secondary);
    line-height: 1.7;
}

.site-map-hero__stats,
.site-map-primary-grid,
.site-map-links {
    display: grid;
    gap: 14px;
}

.site-map-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
}

.site-map-stat {
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
}

.site-map-stat strong {
    display: block;
    margin-bottom: 8px;
    color: rgba(245, 247, 251, 0.96);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.25rem;
}

.site-map-stat span {
    color: var(--text-secondary);
    line-height: 1.5;
}

.site-map-section__head {
    margin-bottom: 18px;
}

.site-map-section__head h2 {
    margin-bottom: 8px;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
}

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

.site-map-primary-card,
.site-map-link-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.site-map-primary-card:hover,
.site-map-link-card:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.05);
}

.site-map-primary-card strong,
.site-map-link-card strong {
    font-size: 1rem;
    line-height: 1.4;
}

.site-map-primary-card span,
.site-map-link-card span {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.55;
}

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

.site-map-link-card span {
    overflow-wrap: anywhere;
}

.news-page,
.news-article-page {
    display: grid;
    gap: 24px;
}

.news-hero,
.news-section,
.news-article,
.news-related-games {
    padding: 28px 30px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
}

.news-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.news-breadcrumbs a {
    color: var(--text-secondary);
}

.news-hero {
    background:
        radial-gradient(circle at top left, rgba(252, 228, 77, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(20, 33, 51, 0.9), rgba(14, 23, 35, 0.96));
}

.news-hero__eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: rgba(252, 228, 77, 0.76);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-hero h1,
.news-article__hero h1 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.02;
}

.news-hero p,
.news-section__head p,
.news-card p,
.news-article__summary,
.news-article__content,
.news-game-card span {
    color: var(--text-secondary);
    line-height: 1.75;
}

.news-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.news-section__head {
    margin-bottom: 18px;
}

.news-section__head h2 {
    margin-bottom: 8px;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.news-grid,
.news-related-games__grid {
    display: grid;
    gap: 16px;
}

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

.news-card,
.news-game-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(20, 33, 51, 0.9), rgba(14, 23, 35, 0.96));
    color: var(--text-primary);
}

.news-card:hover,
.news-game-card:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.news-card__media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.news-card__media img,
.news-article__cover img,
.news-game-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card__body,
.news-game-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
}

.news-card__meta,
.news-article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.news-card__type {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(252, 228, 77, 0.08);
    color: rgba(252, 228, 77, 0.78);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.news-card h3 {
    font-size: 1.18rem;
    line-height: 1.35;
}

.news-card h3 a,
.news-card__link {
    color: var(--text-primary);
}

.news-card__link {
    margin-top: auto;
    font-weight: 800;
}

.news-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-tag {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 700;
}

.news-article__cover {
    margin: 26px 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
}

.news-article__content {
    display: grid;
    gap: 18px;
    font-size: 1.02rem;
}

.news-article__content h2,
.news-article__content h3 {
    margin-top: 10px;
    color: var(--text-primary);
}

.news-article__content ul,
.news-article__content ol {
    margin: 0;
    padding-left: 22px;
}

.news-article__content img {
    border-radius: 18px;
}

.news-related-games {
    margin-top: 26px;
}

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

.news-game-card__media {
    display: block;
    aspect-ratio: 460 / 215;
    overflow: hidden;
}

.news-game-card__body strong {
    font-size: 1rem;
    line-height: 1.4;
}

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

    .market-header__main {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .market-header__nav {
        grid-column: 1 / -1;
        justify-self: start;
        width: 100%;
    }

    .market-footer__inner {
        grid-template-columns: 1fr 1fr;
    }

    .market-footer__brand {
        grid-column: 1 / -1;
    }

    .catalog-shelf__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .faq-support-card {
        position: static;
    }

    .site-map-primary-grid,
    .site-map-links {
        grid-template-columns: 1fr;
    }

    .news-grid,
    .news-related-games__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .market-header__promo {
        grid-template-columns: 1fr;
        padding: 10px 18px 12px;
    }

    .market-header__main {
        padding: 16px 18px;
    }

    .market-header__actions {
        width: 100%;
        justify-content: flex-end;
    }

    .market-header__account-balance {
        font-size: 0.88rem;
    }

    .market-header__account-menu {
        right: 0;
        min-width: 160px;
    }

    .site-auth__dialog {
        padding: 16px;
    }

    .site-auth__shell {
        margin: 0;
        padding: 24px 20px 20px;
        border-radius: 24px;
    }

    .site-auth__forms {
        max-width: 100%;
    }

    .site-auth__close {
        top: 14px;
        right: 14px;
    }

    .market-footer__inner {
        grid-template-columns: 1fr;
        padding: 36px 18px 24px;
    }

    .market-footer__bottom,
    .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .market-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .market-footer__legal {
        justify-content: flex-start;
    }

    .site-cookie-banner {
        bottom: max(12px, env(safe-area-inset-bottom));
        flex-direction: column;
        align-items: stretch;
        width: calc(100vw - 24px);
        padding: 16px;
        border-radius: 22px;
    }

    .site-cookie-banner__button {
        width: 100%;
    }

    .site-map-hero,
    .site-map-section {
        padding: 22px;
    }

    .news-hero,
    .news-section,
    .news-article,
    .news-related-games {
        padding: 22px;
    }

    .faq-hero,
    .faq-main,
    .faq-support-card {
        padding: 22px;
    }

    .legal-page {
        padding-left: 18px;
        padding-right: 18px;
    }

    .legal-card {
        padding: 22px;
        border-radius: 24px;
    }

    .legal-page__hero-head {
        flex-direction: column;
    }

    .legal-details__row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .site-map-hero__stats {
        grid-template-columns: 1fr;
    }

    .req-container {
        grid-template-columns: 1fr;
    }

    .tab-button {
        width: 100%;
    }

    .catalog-shelf {
        padding: 22px;
    }

    .catalog-shelf__grid {
        grid-template-columns: 1fr;
    }

    .news-grid,
    .news-related-games__grid {
        grid-template-columns: 1fr;
    }

    .catalog-shelf__head {
        flex-direction: column;
        align-items: flex-start;
    }
}
