:root {
    --bg: #000;
    --bg-soft: #0b0b0b;
    --card: #111;
    --text: #eef3ff;
    --muted: #a9b5d1;
    --accent: #7c9cff;
    --accent-2: #cf1ef9;
    --border: rgba(255,255,255,.08);
    --shadow: 0 20px 50px rgba(0,0,0,.45);
}

html {
    overflow-y: scroll;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;

    background: #000; /* ГЛУБОКИЙ ЧЁРНЫЙ */
}

.bg-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.bg-pattern__item {
    position: absolute;
    width: 64px;
    height: 64px;
    background-image: url('/assets/img/print.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.08;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #0f0f0f 0%, #121212 60%, #1a1a1a 100%);
    transition: opacity .45s ease, visibility .45s ease;
}

.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.page-loader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.page-loader__logo {
    font-size: 22px;
    letter-spacing: .08em;
    font-family: 'ObelixPro', sans-serif;
    color: var(--text);
    text-shadow:
        0 0 12px rgba(124,156,255,.2),
        0 0 24px rgba(207,30,249,.18);
    animation: loaderPulse 1.8s ease-in-out infinite;
}

.page-loader__bar {
    width: 160px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    overflow: hidden;
    position: relative;
}

.page-loader__bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
    transform: translateX(-100%);
    animation: loaderBar 1.4s linear infinite;
}

@keyframes loaderPulse {
    0%, 100% {
        transform: scale(1);
        opacity: .85;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes loaderBar {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.hero,
.main-content {
    position: relative;
    z-index: 2;
}

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

.container {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    padding: 72px 0 40px;
}

.hero__content {
    position: relative;
    display: block;
    padding-right: 520px;
}

.hero__brand {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    min-width: 0;
}

.hero__brand-text {
    min-width: 0;
}

.hero__logo {
    height: 132px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.hero h1,
h1 {
    font-size: clamp(36px, 7vw, 64px);
    margin: 0 0 12px;
    font-family: 'ObelixPro', sans-serif;
}

.eyebrow {
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: 12px;
}

.section-header h2 {
    margin: 0;
    font-size: 28px;
    font-family: 'ObelixPro', sans-serif;
}

.hero__text {
    max-width: none;
}

.hero__stats {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 16px;
    flex-wrap: nowrap;
}

.stat-card {
    min-width: 150px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: 7.5px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.stat-card span {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
}

.stat-card strong {
    font-size: 34px;
    font-family: 'ObelixPro', sans-serif;
}

.main-content {
    padding: 20px 0 80px;
}

.media-section {
    margin-top: 40px;
}

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

.section-count {
    color: var(--muted);
    background: rgba(255,255,255,.05);
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 999px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.card {
    display: flex;
    flex-direction: column;
    background: #111;
    border: 1px solid var(--border);
    border-radius: 7.5px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
    opacity: 1;
    transform: translateY(0);
    transition: opacity .4s ease, transform .4s ease, border-color .2s ease, box-shadow .2s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(124,156,255,.5);
}

.card__main-link {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    flex: 1 1 auto;
}

.card__poster-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    background: #0f162c;
}

.card__poster-wrap--game {
    aspect-ratio: 460 / 215;
}

.card__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rating {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(10, 16, 32, .88);
    border: 1px solid var(--border);
    padding: 8px 10px;
    border-radius: 999px;
    font-weight: 700;
    color: #ffd36d;
}

.rating-bad {
    color: #ef4444;
}

.rating-mid {
    color: #ffbf5f;
}

.rating-good {
    color: #43c98a;
}

.card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card__body h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-family: 'ObelixPro', sans-serif;
}

.card__body p {
    margin: 0;
    color: #d7def1;
    line-height: 1.5;
    font-size: 14px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 10px;
}

.meta-genre {
    font-style: italic;
    color: var(--muted);
    opacity: 0.9;
}

.empty-state {
    border: 1px dashed var(--border);
    border-radius: 18px;
    padding: 24px;
    color: var(--muted);
    background: rgba(255,255,255,.03);
}

code {
    background: rgba(255,255,255,.08);
    padding: 2px 6px;
    border-radius: 8px;
}

.catalog-toolbar {
    margin-top: 28px;
    display: grid;
    gap: 16px;
}

.catalog-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.catalog-tab {
    appearance: none;
    border: 1px solid var(--border);
    background: #050505;
    color: var(--text);
    padding: 10px 16px;
    border-radius: 7.5px;
    cursor: pointer;
    font: inherit;
    transition: .2s ease;
}

.catalog-tab:hover {
    transform: translateY(-1px);
    border-color: rgba(207, 30, 249, 0.45);
    background: rgba(207, 30, 249, 0.08);
}

.catalog-tab.is-active {
    background: linear-gradient(135deg, rgba(207, 30, 249, 0.18)), #050505;
    border-color: rgba(207, 30, 249, 0.55);
    box-shadow: 0 0 0 1px rgba(207, 30, 249, 0.08) inset;
}

.catalog-filters {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 260px auto;
    gap: 12px;
    align-items: stretch;
}

.catalog-input,
.catalog-select,
.catalog-reset {
    width: 100%;
    min-height: 48px;
    border-radius: 7.5px;
    border: 1px solid var(--border);
    background-color: #050505;
    color: var(--text);
    padding: 0 16px;
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}

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

.catalog-input:focus,
.catalog-select:focus {
    outline: none;
    border-color: var(--accent-2);
    box-shadow: 0 0 0 4px rgba(207, 30, 249, 0.15);
}

.catalog-select:focus-visible {
    outline: none;
}

.catalog-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    padding-right: 44px;
    background:
        linear-gradient(45deg, transparent 50%, rgba(207, 30, 249, 0.85) 50%),
        linear-gradient(135deg, rgba(207, 30, 249, 0.85) 50%, transparent 50%),
        #050505;
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px),
        0 0;
    background-size:
        6px 6px,
        6px 6px,
        100% 100%;
    background-repeat: no-repeat;
    color: var(--text);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.catalog-select:hover {
    border-color: rgba(207, 30, 249, .35);
}

.catalog-select:focus {
    border-color: rgba(207, 30, 249, .6);
    box-shadow: 0 0 0 3px rgba(207, 30, 249, .15);
}

.catalog-select option {
    background-color: #121212;
    color: #eef3ff;
}

.catalog-reset {
    cursor: pointer;
    transition: .2s ease;
    background: #050505;
}

.catalog-reset:hover {
    transform: translateY(-1px);
    border-color: rgba(207, 30, 249, 0.45);
    background: #0b0b0b;
}

.card--game {
    grid-column: span 2;
}

.card__socials {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 0 16px 16px;
    flex-wrap: wrap;
}

.card__social-link {
    width: 52px;
    height: 52px;
    display: block;
    border-radius: 50%;
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
    backdrop-filter: blur(6px);
}

.card__social-link:hover {
    transform: translateY(-2px);
    border-color: rgba(124,156,255,.5);
}

.card__social-link img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
}

.card__social-link img[src*="bosinv"],
.card__social-link img[src*="ytinv"] {
    border-radius: 0 !important;
    object-fit: contain;
    padding: 6px;
}

.card:hover .card__social-link {
    border-color: rgba(124,156,255,.35);
}

.card__social-link--square {
    border-radius: 12px;
}

.card__social-link--square img {
    border-radius: 0 !important;
    object-fit: contain;
    padding: 6px;
}

.card.hidden {
    opacity: 0;
    transform: translateY(20px);
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 80px;
    display: flex;
    align-items: center;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.navbar::after {
    content: none;
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 80px;
}

.navbar__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.navbar__logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}

.navbar__brand-name {
    color: var(--text);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    font-family: 'ObelixPro', sans-serif;
}

.navbar__nav-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.navbar__links {
    display: flex;
    align-items: center;
    gap: 0;
}

.navbar__links a {
    position: relative;
    display: inline-block;
    padding: 0 15px;
    color: #98999b;
    font-size: 17px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
    transition: color .25s ease;
}

.navbar__links a:hover {
    color: #ffffff;
    text-shadow:
        0 0 6px rgba(124,156,255,.5),
        0 0 14px rgba(207,30,249,.35);
}

.navbar__links a.is-active {
    color: #fff;
}

.navbar__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 24px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    transition: background .25s ease, transform .2s ease;
}

.navbar__button:hover {
    background: #94adff;
    transform: translateY(-1px);
}

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

.navbar__social {
    width: 40px;
    height: 40px;
    display: block;
    backdrop-filter: blur(6px);
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

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

.navbar__social:hover {
    transform: translateY(-2px);
    border-color: rgba(124,156,255,.5);
    background: rgba(124,156,255,.12);
}

.scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 58px;
    height: 58px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.08);
    background:
        radial-gradient(circle at 30% 30%, rgba(124,156,255,.25), transparent 70%),
        rgba(255,255,255,.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        0 18px 40px rgba(0,0,0,.35),
        0 0 20px rgba(124,156,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(.95);
    transition:
        opacity .25s ease,
        transform .25s ease,
        background .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
    z-index: 20;
}

.scroll-top:hover {
    transform: translateY(-3px) scale(1.05);
    background:
        radial-gradient(circle at 30% 30%, rgba(124,156,255,.35), transparent 70%),
        rgba(124,156,255,.12);
    border-color: rgba(124,156,255,.5);
    box-shadow:
        0 24px 60px rgba(124,156,255,.25),
        0 0 30px rgba(207,30,249,.2);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-top svg {
    width: 22px;
    height: 22px;
    stroke: #eef3ff;
    stroke-width: 2.6;
    fill: none;
    transition: transform .2s ease;
}

.scroll-top:hover svg {
    transform: translateY(-2px);
}

/* ===== Postcards page ===== */
.postcards-page {
    min-height: 100vh;
    padding: 42px 0 80px;
    background:
        radial-gradient(circle at center top, rgba(124,156,255,.18), transparent 28%),
        radial-gradient(circle at 20% 20%, rgba(207,30,249,.10), transparent 24%),
        linear-gradient(180deg, #121212 0%, #161616 48%, #1b1b1b 100%);
}

.postcards-shell {
    display: grid;
    gap: 20px;
}

.postcards-header {
    text-align: center;
    margin: 8px auto 6px;
    max-width: 900px;
}

.postcards-header h1 {
    margin: 0 0 12px;
    font-size: clamp(38px, 7vw, 72px);
    font-family: 'ObelixPro', sans-serif;
}

.postcards-subtitle {
    max-width: 760px;
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.7;
    font-size: 17px;
}

.postcards-stage {
    position: relative;
    display: block;
    margin-bottom: 30px;
}

.carousel-3d {
    position: relative;
    height: 700px;
    padding-bottom: 120px;
    perspective: 1700px;
    perspective-origin: center 44%;
    overflow: visible;
    margin-bottom: 16px;
}

.carousel-3d__track {
    position: relative;
    width: 100%;
    height: 110%;
    transform-style: preserve-3d;
    touch-action: pan-y;
    user-select: none;
}

.postcard-slide {
    position: absolute;
    left: 50%;
    top: 47%;
    transform-style: preserve-3d;
    transition:
        transform .82s cubic-bezier(.22,.61,.36,1),
        opacity .62s ease,
        filter .62s ease;
    will-change: transform, opacity, filter;
    filter: blur(2.4px) saturate(.82);
}

.postcard-slide[data-orientation="portrait"] {
    width: min(360px, 72vw);
    height: min(540px, 68vh);
}

.postcard-slide[data-orientation="landscape"] {
    width: min(520px, 84vw);
    height: min(360px, 48vh);
}

.postcard-slide.is-active {
    filter: blur(0) saturate(1);
}

.postcard-slide.is-near {
    filter: blur(1.4px) saturate(.9);
}

.postcard-slide.is-far {
    filter: blur(3.2px) saturate(.78);
}

.postcard-slide__card {
    position: relative;
    width: 100%;
    height: auto;
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    z-index: 1;
}

.postcard-slide__media {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    flex: 0 0 auto;
}

.postcard-slide__media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 7.5px 7.5px 0 0;
    box-shadow: none;
}

.postcard-caption {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 12px 16px 14px;
    background: rgba(18,18,18,.78);
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    border-radius: 0 0 7.5px 7.5px;
    text-align: center;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .3s ease, transform .3s ease;
    pointer-events: none;
}

.postcard-caption h2 {
    margin: 0 0 6px;
    font-size: 20px;
    font-family: 'ObelixPro', sans-serif;
}

.postcard-caption p {
    margin: 0;
    line-height: 1.5;
}

.postcard-caption__comment {
    margin: 0;
    color: #d7def1;
    line-height: 1.5;
    font-size: 14px;
    font-style: normal;
    opacity: 1;
}

.postcard-caption__availability {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    font-style: italic;
    opacity: 0.95;
}

.postcard-slide.is-active .postcard-caption {
    opacity: 1;
    transform: translateY(0);
}

.postcard-caption h2,
.postcard-caption p {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

.postcard-slide__glow {
    display: none;
}

.carousel-btn {
    width: 64px;
    height: 64px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(14px);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
    transition:
        transform .2s ease,
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.carousel-btn:hover {
    transform: translateY(-2px) scale(1.04);
    background: rgba(124,156,255,.18);
    border-color: rgba(124,156,255,.45);
    box-shadow: 0 28px 70px rgba(124,156,255,.25);
}

.carousel-btn svg {
    width: 22px;
    height: 22px;
    stroke: #eef3ff;
    stroke-width: 2.4;
    fill: none;
    transition: transform .2s ease, stroke .2s ease;
}

.carousel-btn--left:hover svg {
    transform: translateX(-3px);
}

.carousel-btn--right:hover svg {
    transform: translateX(3px);
}

.postcards-dots {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: -6px;
}

.postcards-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border-radius: 999px;
    border: 0;
    background: rgba(255,255,255,.22);
    cursor: pointer;
    transition: width .22s ease, transform .22s ease, background .22s ease;
}

.postcards-dot.is-active {
    width: 34px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* ===== Postcards filter buttons ===== */
.postcards-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 18px;
}

.postcards-filter {
    width: auto;
    min-width: 180px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 7.5px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.05);
    color: var(--text);
    font: inherit;
    font-weight: 700;
    letter-spacing: .02em;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    backdrop-filter: blur(10px);
    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.postcards-filter:hover {
    transform: translateY(-2px);
    border-color: rgba(207,30,249,.45);
    background: rgba(207,30,249,.10);
    box-shadow: 0 14px 34px rgba(207,30,249,.12);
}

.postcards-filter.is-active {
    color: #fff;
    border-color: rgba(207,30,249,.55);
    background: linear-gradient(135deg, rgba(207,30,249,.18), rgba(124,156,255,.16));
    box-shadow:
        0 0 0 1px rgba(207,30,249,.08) inset,
        0 16px 40px rgba(124,156,255,.16);
}

.postcards-filter:focus-visible {
    outline: none;
    border-color: rgba(124,156,255,.8);
    box-shadow:
        0 0 0 4px rgba(124,156,255,.16),
        0 16px 40px rgba(124,156,255,.16);
}

/* ===== Hero for postcards ===== */
.hero--postcards,
.hero--postcards-page {
    padding: 38px 0 18px;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    max-width: 1270px;
    margin: 20px auto 0;
}

.hero--postcards .hero__content,
.hero--postcards-page .hero__content {
    padding: 0 28px 0 28px;
}

.hero__logo--postcards {
    height: 132px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.hero--postcards .postcards-filters {
    margin-top: 24px;
    padding: 0 28px;
    justify-content: flex-start;
}

.hero--postcards .hero__text,
.hero--postcards-page .hero__text {
    max-width: none;
}

.hero--postcards-page .postcards-filters {
    padding: 0;
}

.hero__stats--postcards,
.hero--postcards-page .hero__stats--postcards {
    display: flex;
    gap: 16px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.hero__stats--postcards .stat-card,
.hero--postcards-page .hero__stats--postcards .stat-card {
    min-width: 148px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
}

.hero__reviews {
    width: 100%;
    max-width: 360px;
    flex: 0 0 360px;
}

.review-card--hero {
    padding: 14px;
}

.review-card--hero .review-item__text {
    font-size: 13px;
    line-height: 1.5;
}

.postcards-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 35px;
}

.postcards-controls .carousel-btn {
    width: 48px;
    height: 48px;
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
}

.postcards-controls .postcards-dots {
    margin: 0;
}

/* ===== Reviews block ===== */
.reviews-panel {
    margin-top: 26px;
    margin-bottom: 80px;
    display: flex;
    justify-content: center;
}

.reviews-panel .review-card,
.reviews-panel .review-form-card {
    width: 100%;
}

.review-card,
.review-form-card {
    padding: 18px;
}

.review-card--list {
    width: 100%;
    max-width: 760px;
    height: 560px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.review-card__header,
.review-form-card__header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.review-card__header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 0 0 auto;
}

.review-card__title {
    margin: 0;
    font-size: 27px;
    font-family: 'ObelixPro', sans-serif;
}

.review-card__subtitle,
.review-form-card__subtitle {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.review-badge {
    display: none !important;
}

.review-empty {
    padding: 18px;
    border: 1px dashed var(--border);
    border-radius: 7.5px;
    color: var(--muted);
    background: rgba(255,255,255,.03);
}

.reviews-panel__actions {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 16px;
    order: -1;
    flex: 0 0 auto;
}

.review-open-btn {
    min-width: 260px;
    min-height: 52px;
    padding: 0 26px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 7.5px;
    background: #050505;
    color: #fff;
    font: inherit;
    font-family: 'ObelixPro', sans-serif;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.review-open-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(124,156,255,.35);
    background: #0b0b0b;
}

.review-slider {
    display: block;
    min-height: 0;
    flex: 1 1 auto;
}

.review-slider__viewport {
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    height: 100%;
    min-height: 0;
    flex: 1 1 auto;
}

.review-slider__viewport::-webkit-scrollbar {
    width: 7px;
}

.review-slider__viewport::-webkit-scrollbar-track {
    background: rgba(255,255,255,.04);
    border-radius: 999px;
}

.review-slider__viewport::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d9d9d9, #8f8f8f);
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.08);
}

.review-slider__viewport::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #f2f2f2, #a8a8a8);
}

.review-slide {
    position: static;
    inset: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 14px;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
    pointer-events: auto;
    overflow: visible;
}

.review-slide:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.05);
    border-color: rgba(124,156,255,.18);
}

.review-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    z-index: auto;
}

.review-nav {
    display: none !important;
}

.review-item__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}

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

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

.review-item__author-box {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.review-item__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
    background: rgba(255,255,255,.06);
}

.review-item__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.review-item__author {
    font-weight: 700;
    font-size: 18px;
    min-width: 0;
    word-break: break-word;
}

.review-item__stars {
    color: #ffd36d;
    font-size: 15px;
    letter-spacing: .08em;
    white-space: nowrap;
}

.review-item__text {
    margin: 0;
    color: #d7def1;
    line-height: 1.65;
    white-space: pre-line;
    word-break: break-word;
}

.review-item__media {
    margin-top: 12px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.review-item__lightbox-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    max-width: 100%;
}

.review-item__image {
    width: 100%;
    max-width: 420px;
    height: 260px;
    object-fit: cover;
    object-position: center;
    border-radius: 7.5px;
    display: block;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 12px 28px rgba(0,0,0,.22);
    background: rgba(255,255,255,.04);
}

.review-item__lightbox-btn:hover .review-item__image {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(0,0,0,.28);
}

.review-item__media--gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
}

.review-item__media--single .review-item__lightbox-btn,
.review-item__media--gallery:not(.review-item__media--single) .review-item__lightbox-btn {
    flex: 0 0 auto;
    width: auto;
}

.review-item__media--single .review-item__image {
    width: 140px;
    height: 140px;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    background: rgba(255,255,255,.03);
    border-radius: 7.5px;
}

.review-item__media--gallery:not(.review-item__media--single) .review-item__lightbox-btn {
    flex: 0 0 auto;
}

.review-item__media--single .review-item__image,
.review-item__media--gallery:not(.review-item__media--single) .review-item__image {
    width: 140px;
    height: 140px;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    border-radius: 7.5px;
    display: block;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 12px 28px rgba(0,0,0,.22);
    background: rgba(255,255,255,.03);
}

.review-item__media--gallery:not(.review-item__media--single) .review-item__image {
    width: 140px;
    height: 140px;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    border-radius: 7.5px;
}

/* ===== Review photo in card ===== */
.review-item__media {
    margin-top: 12px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.review-item__lightbox-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    max-width: 100%;
}

.review-item__image {
    width: 100%;
    max-width: 420px;
    height: 260px;
    object-fit: cover;
    object-position: center;
    border-radius: 7.5px;
    display: block;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 12px 28px rgba(0,0,0,.22);
    background: rgba(255,255,255,.04);
}

.review-item__lightbox-btn:hover .review-item__image {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(0,0,0,.28);
}

.review-item__media--gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
}

.review-item__media--gallery:not(.review-item__media--single) .review-item__lightbox-btn {
    flex: 0 0 auto;
}

.review-item__media--gallery:not(.review-item__media--single) .review-item__image {
    width: 140px;
    height: 140px;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    border-radius: 7.5px;
}

/* ===== Review modal form ===== */
.review-modal {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}

.review-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.review-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 10, 20, .72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.review-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 640px);
    transform: translateY(18px) scale(.98);
    transition: transform .25s ease;
}

.review-modal.is-open .review-modal__dialog {
    transform: translateY(0) scale(1);
}

.review-form-card--modal {
    width: 100%;
    max-height: min(90vh, 820px);
    overflow-y: auto;
    border-radius: 7.5px;
}

.review-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 7.5px;
    background: rgba(255,255,255,.06);
    color: var(--text);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.review-modal__close:hover {
    transform: translateY(-1px);
    background: rgba(124,156,255,.14);
    border-color: rgba(124,156,255,.35);
}

body.modal-open {
    overflow: hidden;
}

.review-form {
    display: grid;
    gap: 14px;
}

.review-form__row {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 150px;
}

.review-label {
    display: grid;
    gap: 8px;
}

.review-label span {
    font-size: 14px;
    color: #dce6ff;
    font-family: 'ObelixPro', sans-serif;
}

.review-input,
.review-textarea,
.review-select {
    width: 100%;
    min-height: 48px;
    border-radius: 7.5px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.04);
    color: var(--text);
    padding: 0 14px;
    font: inherit;
}

.review-textarea {
    min-height: 132px;
    padding: 14px;
    resize: vertical;
}

.review-input:focus,
.review-textarea:focus,
.review-select:focus {
    outline: none;
    border-color: var(--accent-2);
    box-shadow: 0 0 0 4px rgba(207, 30, 249, 0.15);
}

.review-select {
    appearance: none;
    cursor: pointer;
    background:
        linear-gradient(45deg, transparent 50%, rgba(207, 30, 249, 0.85) 50%),
        linear-gradient(135deg, rgba(207, 30, 249, 0.85) 50%, transparent 50%),
        rgba(255,255,255,.04);
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px),
        0 0;
    background-size: 6px 6px, 6px 6px, 100% 100%;
    background-repeat: no-repeat;
    padding-right: 44px;
}

.review-select option {
    background-color: #121212;
    color: #eef3ff;
}

.review-submit {
    width: 100%;
    min-height: 48px;
    border-radius: 7.5px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font: inherit;
    font-family: 'ObelixPro', sans-serif;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
    box-shadow: 0 14px 30px rgba(124, 156, 255, .20);
}

.review-submit:hover {
    transform: translateY(-1px);
}

.review-submit:disabled {
    opacity: .75;
    cursor: wait;
}

.review-form-note {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.review-input--file {
    padding: 12px 14px;
    min-height: auto;
}

/* ===== File upload ===== */
.file-upload {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 7.5px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.04);
}

.file-upload__btn {
    padding: 8px 14px;
    border-radius: 7.5px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-family: 'ObelixPro', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .2s ease, opacity .2s ease;
}

.file-upload__btn:hover {
    transform: translateY(-1px);
}

.file-upload__name {
    color: var(--muted);
    font-size: 14px;
}

/* ===== Lightbox ===== */
.review-lightbox {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}

.review-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.review-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 10, 20, .84);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.review-lightbox__dialog {
    position: relative;
    z-index: 1;
    max-width: min(92vw, 1100px);
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(.96);
    transition: transform .22s ease;
}

.review-lightbox.is-open .review-lightbox__dialog {
    transform: scale(1);
}

.review-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 7.5px;
    box-shadow: 0 24px 60px rgba(0,0,0,.42);
    background: rgba(255,255,255,.04);
}

.review-lightbox__close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 7.5px;
    background: rgba(18,18,18,.82);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.review-lightbox__close:hover {
    transform: translateY(-1px);
    background: rgba(124,156,255,.18);
    border-color: rgba(124,156,255,.4);
}

/* ===== Flash notifications ===== */
.flash-stack {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(380px, calc(100vw - 32px));
    pointer-events: none;
}

.flash-note {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(18, 27, 52, .96);
    box-shadow: 0 18px 40px rgba(0,0,0,.28);
    backdrop-filter: blur(12px);
    transform: translateY(-10px);
    opacity: 0;
    transition: opacity .22s ease, transform .22s ease;
}

.flash-note.is-open {
    opacity: 1;
    transform: translateY(0);
}

.flash-note.is-leaving {
    opacity: 0;
    transform: translateY(-8px);
}

.flash-note--success {
    border-color: rgba(67, 201, 138, .35);
    box-shadow: 0 18px 40px rgba(67, 201, 138, .10);
}

.flash-note--error {
    border-color: rgba(239, 108, 127, .35);
    box-shadow: 0 18px 40px rgba(239, 108, 127, .10);
}

.flash-note__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.flash-note__title {
    font-size: 14px;
    line-height: 1.2;
    color: var(--text);
    font-weight: 700;
}

.flash-note__text {
    font-size: 14px;
    line-height: 1.45;
    color: var(--muted);
}

.flash-note__close {
    width: auto;
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid transparent;
    background: rgba(255,255,255,.04);
    color: var(--text);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.flash-note__close:hover {
    background: rgba(255,255,255,.08);
}

@font-face {
    font-family: 'ObelixPro';
    src: url('/assets/fonts/ObelixPro.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@media (max-width: 1100px) {
    .hero__content {
        padding-right: 0;
    }

    .hero__stats {
        position: static;
        margin-top: 20px;
        flex-wrap: wrap;
    }

    .stat-card {
        flex: 1 1 150px;
        min-width: 0;
    }

    .hero__stats--postcards,
    .hero--postcards-page .hero__stats--postcards {
        width: 100%;
        flex-wrap: wrap;
    }

    .hero__reviews {
        max-width: 100%;
        flex: 1 1 100%;
    }
}

@media (max-width: 980px) {
    .navbar__brand-name {
        font-size: 22px;
    }

    .reviews-panel {
        grid-template-columns: 1fr;
    }

    .navbar__links a {
        font-size: 15px;
        padding: 0 10px;
    }

    .navbar__nav-wrap {
        gap: 16px;
    }

    .hero--postcards .hero__content,
    .hero--postcards-page .hero__content {
        padding: 0 22px;
    }

    .hero--postcards .postcards-filters {
        padding: 0 22px;
    }

    .hero__stats--postcards .stat-card,
    .hero--postcards-page .hero__stats--postcards .stat-card {
        flex: 1 1 160px;
        min-width: 0;
    }

    .postcards-stage {
        min-height: 720px;
    }

    .carousel-3d {
        height: 700px;
    }

    .postcard-slide {
        top: 46%;
    }

    .postcard-slide[data-orientation="portrait"] {
        width: min(320px, 72vw);
        height: min(500px, 62vh);
    }

    .postcard-slide[data-orientation="landscape"] {
        width: min(440px, 86vw);
        height: min(320px, 42vh);
    }
}

@media (max-width: 900px) {
    .catalog-filters {
        grid-template-columns: 1fr;
    }

    .catalog-reset {
        width: 100%;
    }

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

    .card--game {
        grid-column: span 2;
    }
}

@media (max-width: 820px) {
    .navbar {
        min-height: auto;
        padding: 14px 0;
    }

    .navbar__inner {
        min-height: auto;
        flex-wrap: wrap;
        align-items: center;
    }

    .navbar__brand {
        width: 100%;
    }

    .navbar__nav-wrap {
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 14px;
    }

    .navbar__links {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .navbar__links a {
        padding: 0 12px 0 0;
        font-size: 14px;
    }

    .navbar__button {
        min-height: 40px;
        padding: 10px 18px;
        font-size: 13px;
    }
}

@media (max-width: 700px) {
    .hero {
        padding-top: 48px;
    }

    .hero__content {
        padding-right: 0;
    }

    .hero__brand {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .hero__logo {
        height: 80px;
    }

    .hero__stats {
        position: static;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        min-width: 0;
        padding: 16px;
    }

    .stat-card strong {
        font-size: 26px;
    }

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

    .hero--postcards,
    .hero--postcards-page {
        padding: 26px 0 14px;
    }

    .hero--postcards .hero__content,
    .hero--postcards-page .hero__content {
        padding: 0 16px;
    }

    .hero--postcards .postcards-filters {
        padding: 0 16px;
        margin-top: 18px;
    }

    .hero__logo--postcards {
        height: 96px;
    }

    .hero__stats--postcards,
    .hero--postcards-page .hero__stats--postcards {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
    }

    .postcards-page {
        padding-top: 28px;
    }

    .postcards-stage {
        min-height: 0;
    }

    .carousel-3d {
        height: 560px;
    }

    .postcard-slide {
        top: 42%;
    }

    .postcard-slide[data-orientation="portrait"] {
        width: min(250px, 74vw);
        height: min(390px, 50vh);
    }

    .postcard-slide[data-orientation="landscape"] {
        width: min(320px, 88vw);
        height: min(230px, 30vh);
    }

    .postcard-caption {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 12px 14px 14px;
    }

    .carousel-btn {
        width: 52px;
        height: 52px;
    }

    .postcards-dots {
        margin-top: 6px;
    }

    .postcards-filters {
        gap: 10px;
    }

    .postcards-filter {
        min-width: 148px;
        min-height: 44px;
        padding: 0 16px;
        font-size: 14px;
    }

    .review-open-btn {
	width: auto;
	min-width: min(260px, 100%);
        max-width: 100%;
    }

    .review-card--list {
    	height: 500px;
    }

    .review-slider__viewport {
    gap: 12px;
}

.review-slider__viewport {
    scrollbar-width: thin;
    scrollbar-color: #9a9a9a rgba(255,255,255,.04);
}
    .review-modal {
        padding: 14px;
        align-items: flex-end;
    }

    .review-modal__dialog {
        width: 100%;
    }

    .review-form-card--modal {
        max-height: 88vh;
    }

    .review-form__row {
        grid-template-columns: 1fr;
    }

    .review-card__header,
    .review-form-card__header,
    .review-item__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .review-item__media--single .review-item__image,
    .review-item__media--gallery:not(.review-item__media--single) .review-item__image {
   	width: 110px;
    	height: 110px;
    }
}

@media (max-width: 640px) {
    .navbar__brand-name {
        font-size: 20px;
    }

    .navbar__nav-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar__links {
        width: 100%;
    }

    .navbar__button {
        width: auto;
    }

    .flash-stack {
        top: 14px;
        right: 14px;
        left: 14px;
        width: auto;
    }

    .review-lightbox {
        padding: 16px;
    }

    .review-lightbox__close {
        top: -10px;
        right: -10px;
        width: 38px;
        height: 38px;
        font-size: 22px;
    }

    .review-lightbox__image {
        max-height: 82vh;
        border-radius: 12px;
    }
}

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

    .card--game {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .hero__stats,
    .hero__stats--postcards,
    .hero--postcards-page .hero__stats--postcards {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 32px;
    }

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

    .card--game {
        grid-column: span 1;
    }
}

.hero__text.markdown-content {
    max-width: 760px;
}

.hero__text.markdown-content li > div + p {
    margin: 4px 0 0;
    font-size: 0.95em;
    opacity: 0.9;
}

.hero__text.markdown-content p,
.hero__text.markdown-content ul,
.hero__text.markdown-content ol {
    margin: 0 0 12px;
}

.hero__text.markdown-content > :last-child {
    margin-bottom: 0;
}

.hero__text.markdown-content ul,
.hero__text.markdown-content ol {
    padding-left: 24px;
}

.hero__text.markdown-content li + li {
    margin-top: 6px;
}

.hero__text.markdown-content h1,
.hero__text.markdown-content h2,
.hero__text.markdown-content h3,
.hero__text.markdown-content h4 {
    margin: 0 0 12px;
    line-height: 1.2;
    color: var(--text);
    font-family: 'ObelixPro', sans-serif;
}

.hero__text.markdown-content h1 { font-size: clamp(28px, 5vw, 42px); }
.hero__text.markdown-content h2 { font-size: clamp(24px, 4vw, 34px); }
.hero__text.markdown-content h3 { font-size: clamp(20px, 3.2vw, 28px); }

.hero__text.markdown-content a {
    color: #d7c2ff;
}

.hero__text.markdown-content code {
    background: rgba(255,255,255,.08);
    border-radius: 8px;
    padding: 2px 8px;
}

.kotya-font {
    font-family: 'ObelixPro', sans-serif;
    font-size: 1.25em;
    color: #fff;
    letter-spacing: .04em;
}

.md-big {
    font-size: 1.35em;
}

.md-small {
    font-size: 0.85em;
}

.markdown-content p {
    margin: 10px 0;
}

.markdown-content li p {
    margin: 4px 0 0;
    font-size: 0.95em;
    opacity: 0.9;
}

.review-admin-photos-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.review-images-editor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin: 12px 0 18px;
}

.review-image-editor-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255,255,255,.03);
}

.review-image-editor-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero__text.markdown-content,
.hero__text {
    max-width: none;
}

/* Кнопка как "Оставить отзыв" */
.modal-btn {
    width: 100%;
    min-height: 52px;
    padding: 0 20px;

    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.08);

    background: rgba(255,255,255,.04);
    backdrop-filter: blur(10px);

    color: #eef3ff;
    font-weight: 600;
    font-size: 15px;

    cursor: pointer;

    transition: all .2s ease;
}

/* hover эффект */
.modal-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(124,156,255,.45);
    background: rgba(124,156,255,.08);
}

/* активное состояние */
.modal-btn:active {
    transform: translateY(0);
    background: rgba(124,156,255,.12);
}

/* disabled */
.modal-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* Кнопки в модалке отзывов — тёмные, как на первом скрине */
.review-modal-btn {
    width: 100%;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 7.5px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    color: #eef3ff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
    backdrop-filter: blur(10px);
    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease,
        opacity .2s ease;
}

.review-modal-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(124,156,255,.35);
    background: rgba(255,255,255,.06);
    box-shadow: 0 14px 34px rgba(0,0,0,.22);
}

.review-modal-btn:active {
    transform: translateY(0);
}

.review-modal-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

/* Чтобы кнопка выбора файла не растягивалась на всю строку */
.file-upload .review-modal-btn {
    width: auto;
    min-width: 170px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
}

/* Если submit в форме должен быть на всю ширину */
.review-submit.review-modal-btn {
    width: 100%;
}

/* ===== Orders page ===== */

.hero--orders {
    padding: 44px 0 20px;
}

.hero--orders .hero__content {
    align-items: center;
    gap: 32px;
}

.hero__stats--orders {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 14px;
    max-width: 340px;
    width: 100%;
    flex-shrink: 0;
}

.orders-page {
    padding-top: 130px;
    padding-bottom: 80px;
}

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

.order-card {
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.order-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124,156,255,.45);
    box-shadow: 0 24px 56px rgba(0,0,0,.28);
}

.order-card__header {
    margin-bottom: 18px;
    text-align: center;
}

.order-card__header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.order-card__header h2 {
    margin: 0;
    font-size: 24px;
    font-family: 'ObelixPro', sans-serif;
    line-height: 1.1;
    text-align: center;
}

.order-card__date {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.order-card__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.order-chip {
    min-height: 88px;
    padding: 12px 8px;
    border-radius: 12px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
}

.order-chip span {
    font-size: 18px;
    line-height: 1;
}

.order-chip strong {
    font-size: 22px;
    font-family: 'ObelixPro', sans-serif;
    line-height: 1;
}

.order-chip small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.2;
}

.order-card__note {
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.06);
}

.order-card__note p {
    margin: 0;
    color: #d7def1;
    line-height: 1.65;
    font-size: 15px;
}

.orders-empty {
    padding: 34px 28px;
    border: 1px dashed rgba(255,255,255,.10);
    border-radius: 18px;
    background: background: #050505;
    text-align: center;
    box-shadow: var(--shadow);
}

.orders-empty__icon {
    font-size: 34px;
    line-height: 1;
    margin-bottom: 14px;
}

.orders-empty h2 {
    margin: 0 0 10px;
    font-size: 28px;
    font-family: 'ObelixPro', sans-serif;
}

.orders-empty p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 16px;
}

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

    .hero--orders .hero__content {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero__stats--orders {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .orders-grid {
        grid-template-columns: 1fr;
    }

    .hero--orders {
        padding-top: 30px;
    }

    .hero__stats--orders {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .order-card {
        padding: 18px;
    }

    .order-card__header h2 {
        font-size: 20px;
    }

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

    .orders-empty {
        padding: 24px 18px;
    }

    .orders-empty h2 {
        font-size: 22px;
    }
}

.markdown-content p {
    margin: 0 0 12px;
}

.markdown-content p:last-child {
    margin-bottom: 0;
}

.markdown-content ul,
.markdown-content ol {
    margin: 12px 0;
    padding-left: 22px;
}

.markdown-content li + li {
    margin-top: 6px;
}

.markdown-content a {
    color: var(--accent);
    text-decoration: underline;
}

.markdown-content code {
    background: rgba(255,255,255,.08);
    padding: 2px 6px;
    border-radius: 8px;
}

.markdown-content .md-big {
    font-size: 1.2em;
}

.markdown-content .md-small {
    font-size: 0.9em;
}

.markdown-content .kotya-font {
    font-family: 'ObelixPro', sans-serif;
}

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

.field-label-hint {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    font-family: Inter, system-ui, sans-serif;
}

.markdown-preview-card {
    margin-top: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255,255,255,.03);
    overflow: hidden;
}

.markdown-preview-card__header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .03em;
}

.markdown-content--admin {
    padding: 16px;
    line-height: 1.7;
    color: var(--text);
}

.markdown-content--admin p,
.markdown-content--admin ul,
.markdown-content--admin ol {
    margin: 0 0 12px;
}

.markdown-content--admin > :last-child {
    margin-bottom: 0;
}

.markdown-content--admin ul,
.markdown-content--admin ol {
    padding-left: 22px;
}

.markdown-content--admin li + li {
    margin-top: 6px;
}

.markdown-content--admin a {
    color: #d7c2ff;
}

.markdown-content--admin code {
    background: rgba(255,255,255,.08);
    padding: 2px 8px;
    border-radius: 8px;
}

.markdown-content--admin h1,
.markdown-content--admin h2,
.markdown-content--admin h3,
.markdown-content--admin h4 {
    margin: 0 0 12px;
    line-height: 1.2;
    font-family: 'ObelixPro', sans-serif;
}

.markdown-content--admin h1 { font-size: 30px; }
.markdown-content--admin h2 { font-size: 25px; }
.markdown-content--admin h3 { font-size: 21px; }

@media (max-width: 640px) {
    .field-label-hint {
        font-size: 11px;
    }
}

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

.field-label-hint {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    font-family: Inter, system-ui, sans-serif;
}

.markdown-preview-card {
    margin-top: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255,255,255,.03);
    overflow: hidden;
}

.markdown-preview-card__header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .03em;
}

.markdown-content--admin {
    padding: 16px;
    line-height: 1.7;
    color: var(--text);
}

.markdown-content--admin p,
.markdown-content--admin ul,
.markdown-content--admin ol {
    margin: 0 0 12px;
}

.markdown-content--admin > :last-child {
    margin-bottom: 0;
}

.markdown-content--admin ul,
.markdown-content--admin ol {
    padding-left: 22px;
}

.markdown-content--admin li + li {
    margin-top: 6px;
}

.markdown-content--admin a {
    color: #d7c2ff;
}

.markdown-content--admin code {
    background: rgba(255,255,255,.08);
    padding: 2px 8px;
    border-radius: 8px;
}

.markdown-content--admin h1,
.markdown-content--admin h2,
.markdown-content--admin h3,
.markdown-content--admin h4 {
    margin: 0 0 12px;
    line-height: 1.2;
    font-family: 'ObelixPro', sans-serif;
}

.markdown-content--admin h1 { font-size: 30px; }
.markdown-content--admin h2 { font-size: 25px; }
.markdown-content--admin h3 { font-size: 21px; }

@media (max-width: 640px) {
    .field-label-hint {
        font-size: 11px;
    }
}

.orders-toolbar {
    margin-bottom: 24px;
}

.orders-search {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.orders-search__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
    border-radius: 7.5px;
    border: 1px solid var(--border);
    background: #050505;
    color: var(--text);
    padding: 0 16px;
    font: inherit;
}

.orders-search__reset {
    flex: 0 0 auto;
    height: 48px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 7.5px;
    border: 1px solid var(--border);
    background: #050505;
    color: var(--text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: .2s ease;
    white-space: nowrap;
}

.orders-search__reset:hover {
    transform: translateY(-1px);
    border-color: rgba(207, 30, 249, 0.45);
    background: #0b0b0b;
}

.orders-search__input::placeholder {
    color: var(--muted);
}

.orders-search__input:focus {
    outline: none;
    border-color: var(--accent-2);
    box-shadow: 0 0 0 4px rgba(207, 30, 249, 0.15);
}

@media (max-width: 640px) {
    .orders-search {
        align-items: stretch;
    }

    .orders-search__input {
        width: 100%;
    }

    .orders-search__reset {
        width: auto;
        align-self: flex-start;
    }
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;

    background-image:
        linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);

    background-size: 82px 82px; /* ВОТ ЭТО */
    opacity: .32;
}

.navbar,
.hero,
.main-content,
.postcards-shell,
.orders-page,
.flash-stack {
    position: relative;
    z-index: 2;
}

.card,
.stat-card,
.catalog-tab,
.catalog-input,
.catalog-select,
.catalog-reset,
.review-card,
.review-form-card,
.order-card,
.empty-state {
    position: relative;
    z-index: 2;
}

.card,
.stat-card,
.catalog-tab,
.catalog-input,
.catalog-select,
.catalog-reset,
.review-card,
.review-form-card,
.order-card,
.empty-state {
    position: relative;
    z-index: 1; /* важно */
}

.hero,
.main-content,
.postcards-shell,
.orders-page {
    isolation: isolate;
}
