@import url('/css/inter.css');

:root {
    --background: #fff7ee;
    --foreground: #1b140c;
    --muted: #ffe8cc;
    --border: #f3d2a8;
    --accent: #f08a12;
    --accent-hover: #d97308;
    --text-muted: #7a5a3a;
    --radius: 16px;
    --max-width: 1500px;
    --header-top-bg: #fffdf8;
    --header-bg: #fffdf8;
    --header-fg: #1b140c;
    --surface: #ffffff;
    --surface-2: #fff1df;
    --shadow: 0 14px 36px rgba(240, 138, 18, 0.12);
    color-scheme: light;
}

html[data-theme="dark"] {
    --background: #0b1220;
    --foreground: #eef4f8;
    --muted: #151d2c;
    --border: #2a364a;
    --accent: #ff9d2e;
    --accent-hover: #ffb45a;
    --text-muted: #9aabc0;
    --header-top-bg: #070b14;
    --header-bg: #070b14;
    --header-fg: #eef4f8;
    --surface: #141c2b;
    --surface-2: #101826;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--foreground);
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

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

button {
    font-family: inherit;
}

.container-theme {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .container-theme {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Header */
.site-header {
    background: var(--header-bg);
    color: var(--header-fg);
    box-shadow: 0 1px 0 rgba(240, 138, 18, 0.28);
    position: relative;
    z-index: 3;
}

.header-top {
    background: var(--header-top-bg);
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 88px;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 11.5rem;
    color: inherit;
}

.logo__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    flex-shrink: 0;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: radial-gradient(circle at 50% 60%, #ffe0b0 0%, rgba(255, 224, 176, 0) 72%);
}

.logo__img {
    height: 80px;
    width: auto;
    max-width: none;
    display: block;
    animation: gooseBob 3.6s ease-in-out infinite;
}

.logo__img--on-dark {
    display: none;
}

html[data-theme="dark"] .logo__img--on-light {
    display: none;
}

html[data-theme="dark"] .logo__img--on-dark {
    display: block;
}

.logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo__name {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.logo__tag {
    margin-top: 0.15rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.header-search {
    display: flex;
    flex: 1;
    max-width: 500px;
    align-items: center;
    gap: 0.5rem;
}

.header-search .input {
    flex: 1;
    background: var(--surface);
    border-color: var(--border);
    color: var(--foreground);
}

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

.header-top .header-hours__toggle {
    color: var(--text-muted);
}

.header-top .header-hours__city {
    color: var(--header-fg);
}

.header-contacts {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 0.15rem;
}

.header-contacts .phone {
    font-weight: 600;
    font-size: 0.9375rem;
    white-space: nowrap;
    color: inherit;
}

.header-hours {
    position: relative;
}

.header-hours__toggle {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background: none;
    border: 0;
    padding: 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
}

.header-hours__city {
    color: var(--foreground);
    font-size: 0.875rem;
    font-weight: 600;
}

.header-hours__list {
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    z-index: 20;
    min-width: 280px;
    max-width: 360px;
    max-height: 70vh;
    overflow: auto;
    padding: 0.75rem 1rem;
    background: var(--surface);
    color: var(--foreground);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-size: 0.8125rem;
}

.header-hours__cities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.header-hours__cities button {
    border: 1px solid var(--border);
    background: var(--muted);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.75rem;
    cursor: pointer;
}

.header-hours__cities button.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.header-hours__city-label {
    margin: 0 0 0.4rem;
    color: var(--foreground);
    font-weight: 600;
}

.header-hours__list p {
    margin: 0 0 0.5rem;
}

.header-hours__list span {
    display: block;
    color: var(--text-muted);
}

.store-city {
    margin-bottom: 2rem;
}

.store-city__title {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
}

.store-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.store-card__city,
.footer-store,
.contact-store {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.contact-store {
    margin-top: 1rem;
}

.cms-content h2,
.cms-content h3 {
    font-size: 1.15rem;
    margin: 1.5rem 0 0.6rem;
}

.cms-content .timeline p {
    margin-bottom: 0.85rem;
}

.blog-hero {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
}

.header-nav {
    background: var(--surface);
    color: var(--foreground);
    border-bottom: 1px solid var(--border);
}

.header-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 52px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-item {
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

.nav-item > a,
.nav-item > span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0;
    color: var(--foreground);
    transition: color 0.2s;
}

.nav-item > a:hover,
.nav-item > span:hover {
    color: var(--accent);
}

.nav-item.has-submenu > a::after,
.nav-item.has-submenu > span::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 30;
    min-width: 200px;
    padding: 0.5rem 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: none;
}

.nav-item.has-submenu:hover .submenu {
    display: block;
}

.submenu a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.submenu a:hover {
    color: var(--accent);
    background: var(--muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--foreground);
}

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

/* Footer */
.site-footer {
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
    background: var(--surface);
    margin-top: 3rem;
}

.site-footer::after {
    content: "";
    position: absolute;
    right: 1.5rem;
    bottom: 4.25rem;
    width: 150px;
    height: 150px;
    background: url("/images/brand/logo-mark.png") no-repeat center / contain;
    opacity: 0.08;
    pointer-events: none;
}

html[data-theme="dark"] .site-footer::after {
    background-image: url("/images/brand/logo-mark-dark.png");
    opacity: 0.14;
}

.footer-inner {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.footer-disclaimer {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 2rem;
}

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

@media (min-width: 768px) {
    .footer-columns {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-columns h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 1rem;
}

.footer-columns ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-columns a {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-columns a:hover {
    color: var(--accent);
}

.footer-columns .phone {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.footer-bottom {
    border-top: 1px solid var(--border);
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .footer-bottom-inner {
        flex-direction: row;
    }
}

.footer-bottom-links {
    display: flex;
    gap: 1rem;
}

.footer-bottom-links a:hover {
    color: var(--accent);
}

/* Buttons & inputs */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

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

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

.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--foreground);
}

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

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    background: var(--surface);
}

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

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.section-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

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

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

@media (min-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.card-padded {
    padding: 1.5rem;
}

.card-padded h2,
.card-padded h3 {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.card-padded p {
    margin: 0 0 0.5rem;
    color: var(--text-muted);
}

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

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.375rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    background: var(--accent);
    color: #fff;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

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

.page-section {
    padding: 2rem 0;
}

.page-content {
    max-width: 800px;
}

.page-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}

.page-content p,
.page-content li {
    color: var(--text-muted);
    line-height: 1.7;
}

.page-content ul {
    padding-left: 1.25rem;
    margin: 0 0 1rem;
}

.page-content a {
    color: var(--accent);
}

.empty-state {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-muted);
}

/* Product card */
.product-card {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    border-radius: var(--radius);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.product-card-link {
    flex: 1;
    display: block;
}

.product-card-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    isolation: isolate;
    border-radius: var(--radius);
    background: var(--muted);
    margin-bottom: 0.75rem;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
    color: transparent;
    mix-blend-mode: multiply;
    transition: transform 0.3s;
}

html[data-theme="dark"] .product-card-image img {
    mix-blend-mode: screen;
}

.product-card:hover .product-card-image img {
    transform: scale(1.03);
}

.product-card-badge {
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
    background: #ff4d4d;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
}

.product-card-brand {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.product-card-price {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.product-card-bonus {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.product-card-bonus span {
    font-weight: 600;
    color: var(--foreground);
}

.product-card-name {
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #16a34a;
    margin-bottom: 0.75rem;
}

.product-card-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cart {
    flex: 1;
    background: var(--foreground);
    color: #fff;
}

.btn-cart:hover {
    background: #000;
}

.btn-wishlist {
    padding: 0;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
}

/* Promo carousel */
.promo-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: var(--muted);
}

.promo-slides {
    position: relative;
    aspect-ratio: 16 / 9;
}

@media (min-width: 768px) {
    .promo-slides {
        aspect-ratio: 3 / 1;
    }
}

.promo-slide {
    position: absolute;
    inset: 0;
    display: block;
}

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

.promo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--foreground);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: background 0.2s;
}

.promo-nav:hover {
    background: var(--surface);
}

.promo-prev { left: 0.75rem; }
.promo-next { right: 0.75rem; }

.promo-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.promo-dots button {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: background 0.2s;
}

.promo-dots button.active {
    background: var(--foreground);
}

/* Brand carousel */
.brand-section {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.brand-carousel {
    position: relative;
}

.brand-carousel__viewport {
    overflow: hidden;
    margin: 0 2rem;
}

.brand-carousel__track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.25rem 0;
}

.brand-carousel__track::-webkit-scrollbar {
    display: none;
}

.brand-carousel__slide {
    flex: 0 0 calc(33.333% - 0.667rem);
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 6rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 0.75rem 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.brand-carousel__slide:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.brand-carousel__slide img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.brand-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    z-index: 2;
}

.brand-carousel__arrow:hover {
    color: var(--foreground);
    border-color: var(--accent);
}

.brand-carousel__arrow--prev { left: 0; }
.brand-carousel__arrow--next { right: 0; }

@media (min-width: 640px) {
    .brand-carousel__slide {
        flex: 0 0 calc(25% - 0.75rem);
    }
}

@media (min-width: 768px) {
    .brand-carousel__slide {
        flex: 0 0 calc(20% - 0.8rem);
    }
}

@media (min-width: 1024px) {
    .brand-carousel__slide {
        flex: 0 0 calc(16.666% - 0.833rem);
    }
}

/* Promo cards */
.promo-cards-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .promo-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.promo-card {
    display: block;
    overflow: hidden;
    border-radius: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: box-shadow 0.2s;
}

.promo-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.promo-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--muted);
}

.promo-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.promo-card:hover .promo-card-image img {
    transform: scale(1.03);
}

.promo-card-body {
    padding: 1rem;
}

.promo-card-body h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 600;
}

.promo-card-body p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* About block */
.about-block {
    display: grid;
    isolation: isolate;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(240, 138, 18, 0.22);
    background:
        radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.9), transparent 28%),
        linear-gradient(135deg, #fff7ee 0%, #ffe7c4 55%, #ffd089 100%);
    box-shadow: var(--shadow);
}

html[data-theme="dark"] .about-block {
    background:
        radial-gradient(circle at 88% 20%, rgba(255, 157, 46, 0.18), transparent 28%),
        linear-gradient(135deg, #1a140c 0%, #2a1c0c 55%, #3a2208 100%);
    border-color: rgba(255, 157, 46, 0.28);
}

@media (min-width: 768px) {
    .about-block {
        grid-template-columns: minmax(0, 1.15fr) minmax(220px, 38%);
        align-items: center;
    }
}

.about-block-content {
    padding: 1.5rem 1.5rem 1.25rem;
}

@media (min-width: 768px) {
    .about-block-content {
        padding: 2.5rem 2rem 2.5rem 2.25rem;
    }
}

.about-block-content h2 {
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.about-block-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.about-block-text p {
    margin: 0 0 1rem;
}

.about-block-image {
    min-height: 0;
    background: transparent;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0.25rem 1rem 0;
}

.about-block-image--goose img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
    object-position: center bottom;
    background: transparent;
}

.auth-modal--goose,
.auth-card--goose {
    text-align: center;
}

.auth-modal__brand img,
.auth-card__logo {
    display: block;
    height: 88px;
    width: auto;
    max-width: none;
    margin: 0 auto 0.75rem;
}

.auth-modal__lead,
.auth-modal__hint,
.auth-modal__sent {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 1rem;
}

.auth-modal__code {
    letter-spacing: 0.35em;
    text-align: center;
    font-size: 1.4rem;
}

.about-block-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* VK posts */
.vk-posts-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .vk-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .vk-posts-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.vk-post-card {
    display: block;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: box-shadow 0.2s;
}

.vk-post-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.vk-post-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--muted);
}

.vk-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.vk-post-card:hover .vk-post-image img {
    transform: scale(1.03);
}

.vk-post-body {
    padding: 1rem;
}

.vk-post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.vk-post-body h3 {
    margin: 0 0 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vk-post-body p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Features */
.features-grid {
    display: grid;
    gap: 2rem;
}

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

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-item {
    display: flex;
    gap: 1rem;
}

.feature-icon {
    flex-shrink: 0;
    color: var(--foreground);
}

.feature-text h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 600;
}

.feature-text p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Category grid on home */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0 0 0.9rem;
    overflow: hidden;
    isolation: isolate;
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: var(--muted);
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    transition: border-color 0.2s, color 0.2s, transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.category-card-media {
    display: block;
    isolation: isolate;
    background: var(--muted);
}

.category-card img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    padding: 0.65rem;
    color: transparent;
    mix-blend-mode: multiply;
}

html[data-theme="dark"] .category-card img {
    mix-blend-mode: screen;
}

.category-card-letter {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--muted);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--foreground);
}

/* Home page sections */
.home-section {
    padding: 2.5rem 0;
}

.home-section.bg-muted {
    background: var(--muted);
}

/* Auth pages */
.auth-card {
    max-width: 420px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
}

.auth-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    text-align: center;
}

.auth-card .form-group {
    margin-bottom: 1rem;
}

.auth-card .form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: var(--foreground);
}

.auth-card .form-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
}

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

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

.auth-card .auth-links {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.auth-card .auth-links a {
    color: var(--accent);
}

.auth-card .error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Catalog */
.catalog-layout {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .catalog-layout {
        grid-template-columns: 260px 1fr;
    }
}

.catalog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.catalog-sidebar-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
}

.catalog-sidebar-block h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 1rem;
}

.catalog-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.catalog-sidebar-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.catalog-sidebar-list a:hover,
.catalog-sidebar-list a.active {
    color: var(--foreground);
}

.catalog-sidebar-list a span:last-child {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--muted);
    padding: 0.125rem 0.375rem;
    border-radius: 999px;
}

.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.catalog-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.catalog-sort select {
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background: var(--surface);
}

.catalog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 2rem;
}

.catalog-pagination a,
.catalog-pagination span {
    min-width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 0.875rem;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--foreground);
}

.catalog-pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.catalog-pagination .current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.catalog-pagination .disabled {
    color: var(--border);
    cursor: not-allowed;
}

/* Product page */
.product-page {
    padding: 1.5rem 0 2.5rem;
}

.product-layout {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .product-layout {
        grid-template-columns: 1fr 1fr;
    }
}

.product-gallery {
    display: grid;
    gap: 1rem;
}

.product-gallery-main {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    background: var(--muted);
    overflow: hidden;
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.product-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.product-gallery-thumbs button {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    background: var(--muted);
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    padding: 0.25rem;
}

.product-gallery-thumbs button.active {
    border-color: var(--accent);
}

.product-gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.product-meta a:hover {
    color: var(--accent);
}

.product-price-block {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--foreground);
}

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

.product-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #16a34a;
}

.product-bonus {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.product-bonus span {
    font-weight: 600;
    color: var(--foreground);
}

.product-buy-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.product-buy-box .btn-cart {
    flex: 1;
}

.product-sections {
    display: grid;
    gap: 1.25rem;
}

.product-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.product-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1rem;
}

.product-specs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.product-specs li {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.product-specs .spec-name {
    color: var(--text-muted);
}

.product-specs .spec-value {
    color: var(--foreground);
}

/* Cart */
.cart-page {
    padding: 1.5rem 0 2.5rem;
}

.cart-empty {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-muted);
}

.cart-empty h2 {
    color: var(--foreground);
    margin: 0 0 0.5rem;
}

.cart-layout {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .cart-layout {
        grid-template-columns: 1fr 360px;
    }
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: var(--muted);
    border-radius: var(--radius);
}

.cart-item-info h3 {
    font-size: 0.9375rem;
    font-weight: 500;
    margin: 0 0 0.25rem;
}

.cart-item-info p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.cart-item-price {
    font-weight: 700;
    text-align: right;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    height: fit-content;
}

.cart-summary h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1rem;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.cart-summary-row.total {
    font-size: 1.125rem;
    font-weight: 700;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

/* Order */
.order-form {
    max-width: 800px;
}

.order-form .form-group {
    margin-bottom: 1rem;
}

.order-form .form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.order-form .form-input,
.order-form .form-select,
.order-form .form-textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    background: var(--surface);
}

.order-form .form-input:focus,
.order-form .form-select:focus,
.order-form .form-textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.order-form .form-textarea {
    resize: vertical;
    min-height: 6rem;
}

/* Profile / cabinet */
.cabinet-layout {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .cabinet-layout {
        grid-template-columns: 260px 1fr;
    }
}

.cabinet-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cabinet-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    color: var(--text-muted);
    transition: background 0.2s, color 0.2s;
}

.cabinet-nav a:hover,
.cabinet-nav a.active {
    background: var(--muted);
    color: var(--foreground);
}

.cabinet-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.order-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.order-card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.order-status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.order-status-new { background: var(--muted); color: var(--foreground); }
.order-status-processing { background: #fef3c7; color: #92400e; }
.order-status-completed { background: #dcfce7; color: #166534; }
.order-status-cancelled { background: #fee2e2; color: #991b1b; }

/* Site access gate */
.site-access-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.site-access-card {
    width: 100%;
    max-width: 420px;
    margin: 1rem;
    padding: 2rem;
    background: var(--surface);
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.site-access-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.site-access-card p {
    color: var(--text-muted);
    margin: 0 0 1.25rem;
    font-size: 0.9375rem;
}

.site-access-card .form-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    margin-bottom: 1rem;
}

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

.site-access-card .btn {
    width: 100%;
}

.site-access-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.75rem;
}

/* PC Configurator - light theme matching the rest of the site */

.pc-section {
    --accent: #000000;
    --accent-hover: #545152;
    --foreground: #000000;
    --text-muted: #545152;
    --border: rgba(84, 81, 82, 0.25);
    --muted: #d9d9d9;
    background: var(--muted);
    color: var(--foreground);
    padding: 3rem 0 4rem;
    min-height: 70vh;
}

.pc-hero {
    text-align: center;
    margin-bottom: 2.5rem;
}

.pc-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--foreground);
}

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

.pc-demo-banner {
    margin: -1rem auto 2rem;
    padding: 0.75rem 1.25rem;
    max-width: 640px;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 0.75rem;
    background: rgba(12, 192, 223, 0.06);
}

.pc-section .container-theme {
    max-width: 1500px;
}

.pc-layout {
    display: grid;
    grid-template-columns: 55fr 45fr;
    gap: 2rem;
    align-items: start;
}

/* --- Шаги-аккордеон --- */

.pc-wizard {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pc-step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.pc-step--active {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(12, 192, 223, 0.10);
}

.pc-step--done {
    border-color: rgba(12, 192, 223, 0.45);
}

.pc-step--soon {
    opacity: 0.55;
}

.pc-step-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.9rem 1rem;
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.pc-step--soon .pc-step-head {
    cursor: not-allowed;
}

.pc-step-num {
    flex: 0 0 auto;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.pc-step--active .pc-step-num {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(12, 192, 223, 0.08);
}

.pc-step--done .pc-step-num {
    border-color: var(--accent);
    background: rgba(12, 192, 223, 0.12);
    color: var(--accent);
}

.pc-step-title {
    font-weight: 600;
}

.pc-step-chosen {
    color: var(--text-muted);
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.pc-step-state {
    margin-left: auto;
    flex: 0 0 auto;
}

.pc-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.pc-badge--soon {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(12, 192, 223, 0.06);
}

.pc-badge--done {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(12, 192, 223, 0.08);
}

.pc-step-body {
    display: grid;
    grid-template-rows: 0fr;
    padding: 0;
}

.pc-step-body--animated {
    transition: grid-template-rows 0.4s ease;
}

.pc-step-body--open {
    grid-template-rows: 1fr;
}

.pc-step-inner {
    overflow: hidden;
    min-height: 0;
}

.pc-step-content {
    padding: 0 1rem 1rem;
}

.pc-parts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
    padding-top: 0.75rem;
}

.pc-part {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.85rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.6rem;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.pc-part:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.pc-part--selected {
    border-color: var(--accent);
    background: rgba(12, 192, 223, 0.04);
    box-shadow: 0 0 0 3px rgba(12, 192, 223, 0.10);
}

.pc-part--multi {
    position: relative;
}

.pc-part-multi-badge {
    position: absolute;
    top: -0.4rem;
    right: 0.5rem;
    background: var(--accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.pc-part-name {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--foreground);
}

.pc-part-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.pc-chip {
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    background: rgba(12, 192, 223, 0.08);
    border: 1px solid rgba(12, 192, 223, 0.25);
    color: var(--accent);
}

.pc-part-footer {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: auto;
}

.pc-part-price {
    font-weight: 700;
    color: var(--foreground);
}

.pc-part-stock {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.pc-part-qty {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
    padding: 0.2rem 0.4rem;
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: 0.4rem;
    align-self: flex-start;
}

.pc-qty-btn {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 0.25rem;
    background: var(--muted);
    color: var(--foreground);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s;
}

.pc-qty-btn:hover {
    background: #e5e5e5;
}

.pc-qty-value {
    min-width: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--foreground);
}

.pc-parts-loading,
.pc-parts-empty {
    padding: 1.25rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pc-skip-btn {
    margin-top: 0.75rem;
    padding: 0.45rem 1rem;
    background: none;
    border: 1px dashed var(--border);
    border-radius: 0.5rem;
    color: var(--text-muted);
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.pc-skip-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* --- Корпус (CSS 3D-куб Mid Tower) --- */

.pc-case-panel {
    position: sticky;
    top: 1.5rem;
}

.pc-case-scene {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    min-height: 620px;
    perspective: 1400px;
}

.pc-case-3d {
    --pc-w: 560px;
    --pc-h: 420px;
    --pc-d: 140px;
    width: var(--pc-w);
    height: var(--pc-h);
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    will-change: transform;
}

.pc-case-face {
    position: absolute;
    backface-visibility: hidden;
    pointer-events: none;
}

.pc-case-face--front {
    width: var(--pc-w);
    height: var(--pc-h);
    transform: translateZ(calc(var(--pc-d) / 2));
    pointer-events: auto;
}

.pc-case-face--back {
    width: var(--pc-w);
    height: var(--pc-h);
    transform: rotateY(180deg) translateZ(calc(var(--pc-d) / 2));
    background: linear-gradient(180deg, #545152, #000000);
    border-radius: 8px;
    box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.5);
}

.pc-case-face--left {
    width: var(--pc-d);
    height: var(--pc-h);
    left: calc((var(--pc-w) - var(--pc-d)) / 2);
    transform: rotateY(-90deg) translateZ(calc(var(--pc-w) / 2));
    background: linear-gradient(180deg, #6a696a, #545152);
    border-radius: 8px;
}

.pc-case-face--right {
    width: var(--pc-d);
    height: var(--pc-h);
    left: calc((var(--pc-w) - var(--pc-d)) / 2);
    transform: rotateY(90deg) translateZ(calc(var(--pc-w) / 2));
    background: linear-gradient(180deg, #6a696a, #545152, #000000);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 64px;
    gap: 10px;
    box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.5);
}

.pc-case-face--top {
    width: var(--pc-w);
    height: var(--pc-d);
    top: calc((var(--pc-h) - var(--pc-d)) / 2);
    transform: rotateX(-90deg) translateZ(calc(var(--pc-h) / 2));
    background: linear-gradient(180deg, #767576, #6a696a);
    border-radius: 8px;
}

.pc-case-face--bottom {
    width: var(--pc-w);
    height: var(--pc-d);
    top: calc((var(--pc-h) - var(--pc-d)) / 2);
    transform: rotateX(90deg) translateZ(calc(var(--pc-h) / 2));
    background: linear-gradient(180deg, #000000, #545152);
    border-radius: 8px;
}

.pc-case-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
}

.pc-case-io {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transform: translateZ(10px);
    pointer-events: none;
}

.pc-case-power {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #a5f3fc, #0f172a 70%);
    border: 2px solid #e2e8f0;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.8), inset 0 0 4px rgba(0, 0, 0, 0.5);
}

.pc-case-usb {
    width: 36px;
    height: 12px;
    border-radius: 2px;
    background: #0f172a;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.6), 0 0 4px rgba(56, 189, 248, 0.4);
}

.pc-case-foot {
    position: absolute;
    width: 44px;
    height: 16px;
    background: linear-gradient(180deg, #767576, #545152);
    border: 1px solid #6a696a;
    border-radius: 4px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.pc-case-foot--fl { transform: translate3d(40px, 420px, 78px); }
.pc-case-foot--fr { transform: translate3d(476px, 420px, 78px); }
.pc-case-foot--bl { transform: translate3d(40px, 420px, -78px); }
.pc-case-foot--br { transform: translate3d(476px, 420px, -78px); }

.pc-svg-foot { display: none; }

.pc-svg-front-panel {
    display: none;
}

.pc-slot .pc-shape {
    fill: rgba(217, 217, 217, 0.10);
    stroke: #d9d9d9;
    stroke-width: 2.5;
    stroke-dasharray: none;
    transition: fill 0.35s, stroke 0.35s, filter 0.35s;
}

.pc-slot .pc-shape-inner {
    stroke-dasharray: none;
}

.pc-slot--soon .pc-shape {
    opacity: 0.35;
}

.pc-case-interior {
    fill: #6a696a;
    pointer-events: none;
}

.pc-slot .pc-case-body {
    fill: #000000;
    stroke: #6a696a;
    stroke-width: 2.5;
}

.pc-slot .pc-mb {
    fill: #545152;
    stroke: #d9d9d9;
}

.pc-slot .pc-psu {
    fill: #000000;
    stroke: #545152;
}

.pc-slot .pc-gpu {
    fill: #000000;
    stroke: #d9d9d9;
}

.pc-slot .pc-cooler {
    fill: #d9d9d9;
    stroke: #545152;
}

.pc-detail {
    fill: #ffffff;
    stroke: #545152;
    stroke-width: 1.5;
}

.pc-detail-line {
    fill: none;
    stroke: #d9d9d9;
    stroke-width: 2.5;
}

.pc-trace {
    fill: none;
    stroke: #d9d9d9;
    stroke-width: 2;
}

.pc-io {
    fill: #d9d9d9;
}

.pc-notch {
    fill: var(--accent);
    opacity: 0.9;
}

.pc-fan-ring {
    fill: #545152;
    stroke: #d9d9d9;
    stroke-width: 2;
}

.pc-led {
    fill: var(--accent);
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.9));
    pointer-events: none;
}

.pc-foot {
    fill: #6a696a;
    stroke: #767576;
    stroke-width: 2;
}

.pc-glass {
    fill: rgba(255, 255, 255, 0.06);
    stroke: rgba(255, 255, 255, 0.35);
    stroke-width: 2;
    pointer-events: none;
}

.pc-glass-glare {
    fill: rgba(255, 255, 255, 0.15);
    pointer-events: none;
}

.pc-fan-blades path {
    fill: rgba(217, 217, 217, 0.85);
    stroke: none;
}

.pc-slot--soon .pc-detail,
.pc-slot--soon .pc-detail-line,
.pc-slot--soon .pc-trace,
.pc-slot--soon .pc-fan-blades,
.pc-slot--soon .pc-notch {
    opacity: 0.35;
}

.pc-case-hint {
    min-height: 3.2em;
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    white-space: normal;
    overflow-wrap: break-word;
}

/* --- PC Configurator: hover/active для тёмной темы корпуса --- */

.pc-slot:not(.pc-slot--soon):hover .pc-shape,
.pc-slot--active .pc-shape,
.pc-slot--selected:hover .pc-shape {
    stroke: var(--accent);
    stroke-dasharray: none;
    fill: rgba(217, 217, 217, 0.14);
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.55));
    animation: pcSlotPulse 1.4s ease-in-out infinite;
}

.pc-slot--selected .pc-shape {
    fill: rgba(217, 217, 217, 0.18);
    stroke: var(--accent);
    stroke-dasharray: none;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.65));
    animation: pcSlotPulse 1.4s ease-in-out infinite;
}

.pc-slot--soon:hover .pc-shape {
    stroke: #d9d9d9;
    filter: none;
    animation: none;
}

@keyframes pcSlotPulse {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.35)); }
    50% { filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.65)); }
}

/* --- Итог и форма --- */

.pc-summary {
    margin-top: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.pc-reset-btn {
    padding: 0.4rem 0.9rem;
    background: none;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-muted);
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.pc-reset-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pc-reset-btn--summary {
    margin-bottom: 1rem;
}

.pc-order-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

.pc-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

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

.pc-input {
    padding: 0.65rem 0.9rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--foreground);
    font: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pc-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(12, 192, 223, 0.10);
}

.pc-submit-btn {
    padding: 0.7rem 1.6rem;
    background: var(--accent);
    border: none;
    border-radius: 0.5rem;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, opacity 0.2s;
    white-space: nowrap;
}

.pc-submit-btn:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.pc-submit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pc-form-error {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.5rem;
    color: #dc2626;
    font-size: 0.9rem;
}

/* --- Экран успеха --- */

.pc-success {
    text-align: center;
    padding: 4rem 1rem;
    background: var(--surface);
    border: 1px solid var(--accent);
    border-radius: 1rem;
}

.pc-success-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--accent);
    color: var(--accent);
    font-size: 2rem;
}

.pc-success h2 {
    margin: 0 0 0.5rem;
    color: var(--foreground);
}

.pc-success p {
    color: var(--text-muted);
    margin: 0 0 1.5rem;
}

.pc-success-btn {
    padding: 0.7rem 1.6rem;
    background: var(--surface);
    border: 1px solid var(--accent);
    border-radius: 0.5rem;
    color: var(--accent);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.pc-success-btn:hover {
    background: var(--accent);
    color: #fff;
}

[x-cloak] {
    display: none !important;
}

/* --- Мобильная адаптация --- */

@media (max-width: 767px) {
    .pc-section {
        padding: 1.5rem 0 2.5rem;
    }

    .pc-title {
        font-size: 1.5rem;
    }

    .pc-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .pc-case-panel {
        position: static;
        order: -1;
    }

    .pc-case-scene {
        min-height: 360px;
        padding: 2rem 0 0.5rem;
    }

    .pc-case-3d {
        width: 100%;
        max-width: 340px;
        height: auto;
        aspect-ratio: 560 / 420;
        transition: none;
        transform: none !important;
        transform-style: flat;
    }

    .pc-case-face:not(.pc-case-face--front) {
        display: none;
    }

    .pc-case-face--front {
        position: relative;
        width: 100%;
        height: 100%;
        transform: none;
    }

    .pc-case-foot,
    .pc-case-io {
        display: none;
    }

    .pc-svg-foot,
    .pc-svg-front-panel {
        display: block;
    }
    .pc-parts {
        grid-template-columns: 1fr;
    }

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

    .pc-submit-btn {
        width: 100%;
    }

    .pc-reset-btn {
        margin-left: 0;
    }

    .pc-slot-label {
        font-size: 14px;
        font-weight: 700;
    }
}

/* --- PC Configurator: детализация корпуса --- */

.pc-slot {
    cursor: pointer;
}

.pc-slot--soon {
    cursor: not-allowed;
}

.pc-slot-label {
    fill: #fff;
    font-size: 12px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.pc-fan-blades {
    transform-box: fill-box;
    transform-origin: center;
    animation: pcFanSpin 9s linear infinite;
}

.pc-fan-blades path {
    fill: rgba(217, 217, 217, 0.7);
    stroke: none;
}

@keyframes pcFanSpin {
    to { transform: rotate(360deg); }
}

.pc-glass,
.pc-led,
.pc-rgb {
    pointer-events: none;
}

.pc-rgb {
    opacity: 0.5;
}

.pc-glass {
    fill: rgba(255, 255, 255, 0.04);
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 1.5;
    pointer-events: none;
}

.pc-glass-glare {
    fill: rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.pc-detail {
    fill: #ffffff;
    stroke: #545152;
    stroke-width: 1.5;
}

.pc-detail-line {
    fill: none;
    stroke: #d9d9d9;
    stroke-width: 2.5;
}

.pc-trace {
    fill: none;
    stroke: #d9d9d9;
    stroke-width: 2;
}

.pc-io {
    fill: #d9d9d9;
}

.pc-notch {
    fill: var(--accent);
    opacity: 0.9;
}

.pc-fan-ring {
    fill: #545152;
    stroke: #d9d9d9;
    stroke-width: 2;
}

.pc-led {
    fill: var(--accent);
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.9));
    pointer-events: none;
}

.pc-foot {
    fill: #6a696a;
    stroke: #767576;
    stroke-width: 2;
}

.pc-slot--soon .pc-detail,
.pc-slot--soon .pc-detail-line,
.pc-slot--soon .pc-trace,
.pc-slot--soon .pc-fan-blades,
.pc-slot--soon .pc-notch {
    opacity: 0.35;
}

.pc-case-hint {
    min-height: 3.2em;
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    white-space: normal;
    overflow-wrap: break-word;
}

/* --- PC Configurator: hover/active для тёмной темы корпуса --- */

.pc-slot:not(.pc-slot--soon):hover .pc-shape,
.pc-slot--active .pc-shape,
.pc-slot--selected:hover .pc-shape {
    stroke: var(--accent);
    stroke-dasharray: none;
    fill: rgba(217, 217, 217, 0.14);
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.55));
    animation: pcSlotPulse 1.4s ease-in-out infinite;
}

.pc-slot--selected .pc-shape {
    fill: rgba(217, 217, 217, 0.18);
    stroke: var(--accent);
    stroke-dasharray: none;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.65));
    animation: pcSlotPulse 1.4s ease-in-out infinite;
}

.pc-slot--soon:hover .pc-shape {
    stroke: #d9d9d9;
    filter: none;
    animation: none;
}

/* --- PC Configurator: автоподбор по бюджету --- */

.pc-mode-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.pc-mode-tab {
    flex: 1;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.pc-mode-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pc-mode-tab--active {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.pc-mode-tab--active:hover {
    color: #fff;
    background: var(--accent-hover);
}

.pc-auto-build {
    max-width: 1000px;
    margin: 0 auto;
}

.pc-auto-intro,
.pc-auto-form,
.pc-auto-result,
.pc-auto-fallback {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.pc-auto-intro {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pc-auto-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.pc-auto-subtitle {
    color: var(--text-muted);
    margin: 0;
}

.pc-auto-form {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pc-select {
    appearance: auto;
}

.pc-textarea {
    resize: vertical;
    min-height: 5rem;
}

.pc-auto-result {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    background: var(--surface);
    margin-bottom: 1.5rem;
}

.pc-auto-result-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1rem;
}

.pc-auto-items {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.pc-auto-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.pc-auto-item:last-child {
    border-bottom: none;
}

.pc-auto-item-slot {
    flex-shrink: 0;
    width: 8rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.pc-auto-item-name {
    flex: 1;
    font-size: 0.9375rem;
    font-weight: 500;
}

.pc-auto-item-price {
    flex-shrink: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: right;
}

.pc-auto-fallback {
    text-align: center;
    padding: 2rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.pc-auto-fallback-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.pc-auto-fallback h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.pc-auto-fallback p {
    color: var(--text-muted);
    margin: 0 0 1rem;
}

.pc-auto-fallback .pc-order-form {
    text-align: left;
    grid-template-columns: 1fr 1fr;
}

.pc-auto-fallback .pc-order-form .pc-field:last-of-type {
    grid-column: 1 / -1;
}

.pc-auto-fallback .pc-order-form .pc-submit-btn {
    grid-column: 1 / -1;
    width: 100%;
}

.pc-auto-fallback .pc-reset-btn {
    margin-top: 1rem !important;
}

.pc-auto-result .pc-reset-btn {
    margin-top: 1rem;
}

@media (min-width: 640px) {
    .pc-auto-title {
        font-size: 1.5rem;
    }

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

    .pc-auto-form .pc-field:last-of-type {
        grid-column: 1 / -1;
    }

    .pc-auto-form .pc-submit-btn {
        grid-column: 1 / -1;
    }
}

@media (min-width: 768px) {
    .pc-auto-build {
        margin: 0;
    }
}

/* --- PC Configurator: мультивыбор в слотах (RAM, storage, extra) --- */

.pc-step-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.pc-next-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    border: 1px solid transparent;
    background: var(--foreground);
    color: #fff;
    transition: background 0.2s;
}

.pc-next-btn:hover {
    background: #000;
}

.pc-step--done .pc-step-chosen {
    max-width: 100%;
}

/* --- PC Configurator: услуга сборки ПК --- */
.pc-assembly {
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.pc-assembly-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 600;
}

.pc-assembly-toggle input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--accent);
    cursor: pointer;
}

.pc-assembly-details {
    display: grid;
    grid-template-rows: 0fr;
    margin-top: 0.75rem;
    padding-top: 0;
    border-top: 1px solid var(--border);
}

.pc-assembly-details--animated {
    transition: grid-template-rows 0.35s ease;
}

.pc-assembly-details--open {
    grid-template-rows: 1fr;
}

.pc-assembly-details-inner {
    overflow: hidden;
    min-height: 0;
    padding-top: 0.75rem;
}

.pc-assembly-package {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.pc-assembly-price {
    font-size: 1.1rem;
}

.pc-assembly-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.pc-assembly-option input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--accent);
    cursor: pointer;
}

.pc-assembly-gift {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.06);
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pc-assembly-gift strong {
    color: var(--foreground);
}

.pc-step-content .pc-assembly-card {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 0;
}

/* Sales */
.sale-list {
    margin-top: 2rem;
}

.sale-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(1, 1fr);
}

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

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

@media (min-width: 1200px) {
    .sale-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.sale-card {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sale-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.sale-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.sale-card__image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.sale-card__image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.sale-card:hover .sale-card__image {
    transform: scale(1.03);
}

.sale-card__sticker {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.sale-card__sticker-value {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1;
}

.sale-card__text {
    padding: 1.25rem;
}

.sale-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 0.5rem;
    color: var(--text);
}

.sale-card__period {
    margin-top: 0.5rem;
}

.sale-card__period-date {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.sales-detail img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
}

.sales-detail p {
    color: var(--text-muted);
    max-width: 800px;
}


/* Auth modal */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
}

.auth-modal {
    position: relative;
    width: 90%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--background);
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
}

.auth-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--muted);
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.auth-modal__close:hover {
    background: var(--border);
    color: var(--foreground);
}

.auth-modal__tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.auth-modal__tab {
    flex: 1;
    padding: 0.625rem 0.75rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.auth-modal__tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.auth-modal__group {
    margin-bottom: 0.875rem;
}

.auth-modal__label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
}

.auth-modal__check label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.auth-modal__captcha {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-modal__captcha img,
.captcha-row img {
    height: 44px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    cursor: pointer;
    background: var(--muted);
}

.auth-modal__captcha input,
.captcha-row input {
    flex: 1;
}

.auth-modal__submit {
    width: 100%;
    margin-top: 0.25rem;
}

.auth-modal__error {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    color: #ef4444;
}

.auth-modal__switch {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.auth-modal__link {
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
    color: var(--accent);
    cursor: pointer;
    text-decoration: underline;
}

.auth-modal__link:hover {
    color: var(--accent-hover);
}

.auth-modal__social {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-social {
    width: 100%;
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
    background: var(--muted);
    border-color: var(--border);
    color: var(--foreground);
}

.btn-social:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-social-yandex:hover:not(:disabled) {
    background: #fc3f1d;
    border-color: #fc3f1d;
    color: #fff;
}

.btn-social-vk:hover:not(:disabled) {
    background: #0077ff;
    border-color: #0077ff;
    color: #fff;
}

a.btn-social {
    text-decoration: none;
}

.auth-sso-gadgetbar {
    display: flex;
    width: 100%;
    margin-top: 0.75rem;
}

/* Standalone auth captcha row */
.captcha-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Account pages */
.account-layout {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .account-layout {
        grid-template-columns: 260px 1fr;
    }
}

.account-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.account-user {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.account-user-avatar {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 1.125rem;
    font-weight: 600;
    text-transform: uppercase;
}

.account-user-name {
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.4;
}

.account-user-email {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.account-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.account-menu-link,
.account-menu-link button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.625rem 0.75rem;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--foreground);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s, color 0.2s;
}

.account-menu-link:hover,
.account-menu-link button:hover {
    background: var(--muted);
    color: var(--accent);
}

.account-menu-link.active,
.account-menu-link.active button {
    background: var(--accent);
    color: #fff;
}

.account-menu-icon {
    width: 1.5rem;
    text-align: center;
    line-height: 1;
}

.account-main {
    min-width: 0;
}

.account-alert {
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
}

.account-alert-success {
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
}

.account-card {
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.account-card-title {
    font-size: 1.0625rem;
    font-weight: 600;
    margin: 0 0 1rem;
}

.account-grid {
    display: grid;
    gap: 1.25rem;
}

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

    .account-card-wide {
        grid-column: 1 / -1;
    }
}

.account-form-row {
    margin-bottom: 1rem;
}

.account-form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
}

.account-form-error {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: #ef4444;
}

.account-form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.social-accounts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-account {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.social-account-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.social-account-name {
    font-weight: 500;
    font-size: 0.9375rem;
}

.social-account-status {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.social-account-status-linked {
    color: #16a34a;
}

/* Dashboard tiles */
.dashboard-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .dashboard-tiles {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .dashboard-tiles {
        grid-template-columns: repeat(3, 1fr);
    }
}

.dashboard-tile {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.dashboard-tile:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.dashboard-tile-icon {
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.dashboard-tile-title {
    font-size: 0.9375rem;
    font-weight: 600;
}

.dashboard-tile-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.dashboard-tile-accent {
    background: linear-gradient(135deg, #e0f7fb 0%, var(--surface) 100%);
    border-color: #b2ebf2;
}

html[data-theme="dark"] .dashboard-tile-accent {
    background: linear-gradient(135deg, #123044 0%, var(--surface) 100%);
    border-color: #1e4a58;
}

.dashboard-tile-accent .dashboard-tile-subtitle {
    color: var(--accent);
    font-weight: 600;
}

/* Orders */
.orders-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.orders-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 180px;
    flex: 1;
}

.orders-filter-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
}

.orders-filter-select {
    cursor: pointer;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.order-card {
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.order-card-number {
    font-weight: 600;
    font-size: 1rem;
}

.order-card-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.order-card-status,
.order-card-payment {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.order-card-status-pending { background: #fef3c7; color: #92400e; }
.order-card-status-processing { background: #dbeafe; color: #1e40af; }
.order-card-status-completed { background: #d1fae5; color: #065f46; }
.order-card-status-cancelled { background: #fee2e2; color: #991b1b; }

.order-card-payment-pending { background: #f3f4f6; color: #374151; }
.order-card-payment-paid { background: #d1fae5; color: #065f46; }
.order-card-payment-refunded { background: #ede9fe; color: #5b21b6; }

.order-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.order-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.order-card-total {
    font-size: 1.125rem;
    font-weight: 700;
}

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

.account-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.account-table th,
.account-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.account-table th {
    font-weight: 600;
    color: var(--text-muted);
    background: var(--muted);
}

.account-table tr:last-child td {
    border-bottom: none;
}

.bonus-amount-positive {
    color: #16a34a;
    font-weight: 600;
}

.bonus-amount-negative {
    color: #ef4444;
    font-weight: 600;
}

.pagination-wrap {
    margin-top: 1.25rem;
}

.pagination-wrap nav {
    display: flex;
    justify-content: center;
}

.pagination-wrap nav > div {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.pagination-wrap a,
.pagination-wrap span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.625rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--foreground);
}

.pagination-wrap span[aria-current="page"] {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.pagination-wrap a:hover {
    border-color: var(--accent);
    color: var(--accent);
}


/* Bonus actions & roulette */
.bonus-terms-card {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.bonus-terms-title {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.bonus-terms-content {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.bonus-terms-accepted {
    color: #16a34a;
    margin: 0;
}

.bonus-terms-link {
    margin-left: 0.75rem;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    padding: 0;
}

.bonus-terms-link:hover {
    color: var(--accent-hover);
}

/* Wave 2–3 storefront */
.nav-item.has-submenu:hover .submenu.mega-menu {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.5rem 1.25rem;
    width: min(920px, 90vw);
    padding: 1rem 1.25rem;
    min-width: 320px;
}

.mega-col-title {
    font-weight: 600;
    color: var(--foreground) !important;
}

.mega-col a {
    padding: 0.25rem 0;
    background: transparent !important;
}

.catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.25rem 0;
}

.catalog-toolbar-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.catalog-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.catalog-select {
    min-width: 10rem;
    padding: 0.375rem 0.75rem;
}

.catalog-view {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.catalog-view-btn {
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
}

.catalog-view-btn.is-active {
    background: var(--foreground);
    color: #fff;
}

.catalog-count {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

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

.product-card--list {
    flex-direction: row;
    align-items: stretch;
    gap: 1rem;
}

.product-card--list .product-card-link {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
    flex: 1;
}

.product-card--list .product-card-image {
    margin-bottom: 0;
    aspect-ratio: 1;
}

.product-card--list .product-card-name {
    -webkit-line-clamp: 3;
}

.product-card-old-price {
    margin-left: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-card-stock.is-order,
.product-buy-stock.is-order {
    color: #ca8a04;
}

.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .subcategory-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .subcategory-grid,
    .subcategory-grid--catalog {
        grid-template-columns: repeat(5, 1fr);
    }
}

.subcategory-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem;
    isolation: isolate;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--muted);
}

.subcategory-card:hover {
    border-color: var(--accent);
}

.subcategory-card-media {
    flex-shrink: 0;
    width: 4.5rem;
    height: 4.5rem;
    isolation: isolate;
    border-radius: 0.75rem;
    background: var(--muted);
    overflow: hidden;
}

.subcategory-card img {
    width: 4.5rem;
    height: 4.5rem;
    object-fit: contain;
    padding: 0.3rem;
    color: transparent;
    mix-blend-mode: multiply;
}

html[data-theme="dark"] .subcategory-card img {
    mix-blend-mode: screen;
}

.subcategory-letter {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--muted);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-muted);
}

.brand-letter-group {
    margin-bottom: 1.5rem;
}

.brand-letter {
    font-size: 1.25rem;
    margin: 0 0 0.75rem;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .brand-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .brand-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.brand-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    min-height: 6.5rem;
    padding: 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.brand-item:hover {
    border-color: var(--accent);
}

.brand-item-letter {
    font-size: 1.25rem;
    font-weight: 700;
}

.brand-item-name {
    font-weight: 600;
}

.brand-item-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.product-detail {
    display: grid;
    gap: 2rem;
    margin: 1.5rem 0;
}

@media (min-width: 1024px) {
    .product-detail {
        grid-template-columns: 1fr 1fr;
    }
}

.product-gallery {
    display: flex;
    gap: 1rem;
}

.product-thumbs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-thumb {
    width: 4rem;
    height: 4rem;
    padding: 0;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
}

.product-thumb.is-active {
    border-color: var(--accent);
}

.product-thumb img,
.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-main-image {
    flex: 1;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: var(--muted);
    padding: 1.5rem;
}

.product-main-image img {
    max-height: 420px;
}

.product-sku {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.product-sku-tree {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.sku-group-name {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.sku-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sku-value {
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    font-size: 0.8125rem;
    cursor: pointer;
}

.sku-value.is-active {
    border-color: var(--foreground);
    background: var(--foreground);
    color: #fff;
}

.product-buy-box {
    display: block;
    padding: 1.25rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: var(--surface);
    margin-bottom: 1.5rem;
}

.product-buy-price {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.product-buy-stock {
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #16a34a;
}

.product-buy-note {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.product-buy-box .btn-cart {
    width: 100%;
    margin-bottom: 0.75rem;
}

.product-cms-blocks {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.product-cms-block {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.product-cms-block strong {
    color: var(--foreground);
}

.product-tabs {
    margin-top: 2rem;
}

.product-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.product-tab-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    cursor: pointer;
    font-size: 0.875rem;
}

.product-tab-btn.is-active {
    background: var(--foreground);
    color: #fff;
    border-color: var(--foreground);
}

.product-tab-content {
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: var(--surface);
}

.product-tab-content h2 {
    font-size: 1.25rem;
    margin: 0 0 1rem;
}

table.product-specs {
    width: 100%;
    border-collapse: collapse;
}

table.product-specs th,
table.product-specs td {
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 0.875rem;
}

table.product-specs th {
    width: 40%;
    color: var(--text-muted);
    font-weight: 500;
}

.product-store-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-store-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875rem;
}

.product-store-qty {
    font-weight: 600;
}

.cart-item {
    grid-template-columns: 80px 1fr auto auto auto auto;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-qty button {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
}

.cart-item-total {
    font-weight: 700;
    white-space: nowrap;
}

.cart-summary-total {
    font-size: 1.125rem;
    font-weight: 700;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    margin: 1rem 0;
}

.cart-summary .btn {
    width: 100%;
    margin-bottom: 0.5rem;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #10b981;
}

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

.review-layout {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .review-layout {
        grid-template-columns: 360px 1fr;
    }
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-card h2 {
    font-size: 1rem;
    margin: 0 0 0.25rem;
}

.installment-content {
    margin-top: 2rem;
}

.account-sidebar-label {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

@media (max-width: 767px) {
    .cart-item {
        grid-template-columns: 64px 1fr auto;
    }

    .cart-item-price,
    .cart-item-total {
        display: none;
    }

    .product-gallery {
        flex-direction: column-reverse;
    }

    .product-thumbs {
        flex-direction: row;
        overflow-x: auto;
    }
}

.theme-toggle {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--foreground);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

html[data-theme="dark"] .theme-toggle__moon,
html:not([data-theme="dark"]) .theme-toggle__sun {
    display: none;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.header-menu-btn,
.header-cart-btn {
    display: none;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--foreground);
    cursor: pointer;
}

.header-cart-btn__count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.1rem;
    text-align: center;
}

.header-mobile-phone {
    display: none;
}

@media (max-width: 1023px) {
    .header-menu-btn,
    .header-cart-btn {
        display: inline-flex;
    }

    .header-top-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "logo tools"
            "search search";
        gap: 0.55rem 0.75rem;
        min-height: 0;
        padding-top: 0.55rem;
        padding-bottom: 0.7rem;
    }

    .logo {
        grid-area: logo;
        min-width: 0;
    }

    .header-tools {
        grid-area: tools;
    }

    .header-search {
        grid-area: search;
        max-width: none;
        width: 100%;
    }

    .header-nav {
        display: none;
    }

    .header-nav.is-open {
        display: block;
    }

    .header-nav-inner {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        padding: 0.4rem 0 0.9rem;
        gap: 0.35rem;
    }

    .main-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .main-nav > a.nav-item,
    .nav-item > a,
    .nav-item > span,
    .header-mobile-phone {
        display: block;
        padding: 0.7rem 0;
        font-size: 1rem;
    }

    .nav-item.has-submenu:hover .submenu,
    .nav-item.has-submenu:hover .submenu.mega-menu {
        display: none;
    }

    .header-nav.is-open .submenu:not(.mega-menu) {
        position: static;
        display: block;
        min-width: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
        padding: 0 0 0.35rem 0.9rem;
    }

    .header-nav.is-open .header-mobile-phone {
        display: block;
        font-weight: 700;
        color: var(--accent);
    }

    .header-actions {
        flex-wrap: wrap;
        gap: 0.75rem 1rem;
        padding-top: 0.55rem;
        border-top: 1px solid var(--border);
    }
}

@media (max-width: 767px) {
    .logo__tag {
        display: none;
    }

    .logo {
        min-width: 0;
    }

    .logo__name {
        font-size: 1.2rem;
    }

    .logo__mark,
    .logo__img {
        height: 56px;
    }

    .header-top-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "logo tools"
            "search search";
        gap: 0.55rem 0.75rem;
        min-height: 0;
        padding-top: 0.55rem;
        padding-bottom: 0.7rem;
    }

    .logo {
        grid-area: logo;
    }

    .header-tools {
        grid-area: tools;
        gap: 0.45rem;
    }

    .header-search {
        grid-area: search;
        max-width: none;
        width: 100%;
    }

    .header-contacts .phone,
    .header-hours__toggle-label {
        display: none;
    }

    .catalog-toolbar,
    .catalog-toolbar-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .catalog-select {
        min-width: 0;
        width: 100%;
    }

    .header-search .btn {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }
}

@media (max-width: 639px) {
    .header-contacts {
        display: none;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.footer-brand__mark {
    height: 42px;
    width: auto;
    max-width: none;
    display: block;
}

html[data-theme="dark"] .footer-brand__mark--light {
    display: none;
}

html:not([data-theme="dark"]) .footer-brand__mark--dark {
    display: none;
}

.empty-state--goose {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3.5rem 1rem;
    grid-column: 1 / -1;
}

.empty-state--goose img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    background: #e8edf2;
    border: 3px solid var(--accent);
}

.empty-state--goose p {
    margin: 0;
    max-width: 28rem;
}

.promo-card,
.feature-item,
.auth-modal,
.auth-card {
    background: var(--surface);
    color: var(--foreground);
}

.category-card {
    background: var(--muted);
    color: var(--foreground);
}

html[data-theme="dark"] .btn-cart {
    background: var(--accent);
    color: #0b1220;
}

html[data-theme="dark"] .btn-cart:hover {
    background: var(--accent-hover);
}

html[data-theme="dark"] .input,
html[data-theme="dark"] input.input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
    background: var(--muted);
    color: var(--foreground);
    border-color: var(--border);
}

main {
    position: relative;
    z-index: 1;
}

.goose-stage {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

app-root > *:not(.goose-stage) {
    position: relative;
    z-index: 1;
}

.goose-stage__glow,
.goose-stage__glow--alt {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.55;
    animation: gooseGlow 9s ease-in-out infinite;
}

.goose-stage__glow {
    width: 14rem;
    height: 14rem;
    left: -6rem;
    top: -4rem;
    background: radial-gradient(circle, rgba(255, 184, 74, 0.55), transparent 70%);
}

.goose-stage__glow--alt {
    width: 10rem;
    height: 10rem;
    right: 2%;
    bottom: 4%;
    top: auto;
    background: radial-gradient(circle, rgba(255, 122, 24, 0.28), transparent 70%);
    animation-delay: -3s;
}

.goose-stage__face {
    position: absolute;
    right: -3%;
    bottom: -10%;
    width: min(28vw, 260px);
    opacity: 0.22;
    transform-origin: 70% 80%;
    animation: gooseFloat 8s ease-in-out infinite;
    -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 48%, transparent 78%);
    mask-image: radial-gradient(circle at 50% 42%, #000 48%, transparent 78%);
}

html[data-theme="dark"] .goose-stage__face {
    opacity: 0.08;
    filter: brightness(0.7);
}

.goose-welcome {
    position: relative;
    z-index: 1;
    padding: 1.25rem 0 0.25rem;
}

.goose-welcome__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(180px, 280px);
    align-items: center;
    gap: 1rem 1.25rem;
    padding: 1.5rem 1.75rem 1.35rem;
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.9), transparent 28%),
        linear-gradient(135deg, #fff 0%, #ffe7c4 55%, #ffd089 100%);
    border: 1px solid rgba(240, 138, 18, 0.22);
    box-shadow: var(--shadow);
    overflow: hidden;
}

html[data-theme="dark"] .goose-welcome__inner {
    background:
        radial-gradient(circle at 88% 20%, rgba(255, 157, 46, 0.18), transparent 28%),
        linear-gradient(135deg, #1a140c 0%, #2a1c0c 55%, #3a2208 100%);
    border-color: rgba(255, 157, 46, 0.28);
}

.goose-welcome__copy {
    position: relative;
    z-index: 1;
    padding-bottom: 0;
}

.goose-welcome__copy h1 {
    margin: 0.2rem 0 0.55rem;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    line-height: 1.15;
}

.goose-welcome__lead {
    margin: 0 0 0.95rem;
    max-width: 34rem;
    color: var(--text-muted);
}

.goose-welcome__kicker {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-hover);
}

.goose-welcome__mascot {
    width: 100%;
    max-width: 240px;
    max-height: 320px;
    height: auto;
    justify-self: center;
    object-fit: contain;
    object-position: center bottom;
    animation: gooseBob 3.6s ease-in-out infinite;
}

.goose-welcome__mascot,
.about-block-image--goose img {
    filter:
        drop-shadow(0 1px 0 rgba(92, 42, 8, 0.42))
        drop-shadow(0 -1px 0 rgba(92, 42, 8, 0.28))
        drop-shadow(1px 0 0 rgba(92, 42, 8, 0.32))
        drop-shadow(-1px 0 0 rgba(92, 42, 8, 0.32))
        drop-shadow(0 10px 16px rgba(176, 88, 18, 0.22));
}

html[data-theme="dark"] .goose-welcome__mascot,
html[data-theme="dark"] .about-block-image--goose img {
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55));
}

.category-card,
.promo-card,
.feature-item {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.promo-card:hover,
.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.btn-primary {
    box-shadow: 0 8px 20px rgba(240, 138, 18, 0.28);
}

.empty-state--goose img {
    background: #fff3e0;
    animation: gooseBob 3.6s ease-in-out infinite;
}

.about-block-image--goose img {
    animation: gooseBob 3.6s ease-in-out infinite;
}

@keyframes gooseBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes gooseFloat {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
    50% { transform: translate3d(-12px, -16px, 0) rotate(2deg); }
}

@keyframes gooseGlow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.08); }
}

.bonus-balances {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 0 0 1.5rem;
}

.bonus-balance-card {
    padding: 1rem 1.1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
}

.bonus-balance-label,
.bonus-balance-hint {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.bonus-balance-value {
    margin: 0.25rem 0 0.15rem;
    font-size: 1.6rem;
    font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
    .logo__img,
    .goose-stage__face,
    .goose-stage__glow,
    .goose-stage__glow--alt,
    .goose-welcome__mascot,
    .empty-state--goose img,
    .about-block-image--goose img {
        animation: none;
    }

    .product-card,
    .category-card,
    .promo-card,
    .feature-item {
        transition: none;
    }
}

@media (max-width: 767px) {
    .goose-stage__face {
        width: min(46vw, 180px);
        opacity: 0.1;
        right: -18%;
        bottom: -6%;
    }

    .goose-welcome__inner {
        grid-template-columns: 1fr;
        padding: 1.2rem 1.15rem 0.35rem;
        justify-items: start;
    }

    .goose-welcome__mascot {
        width: min(58vw, 220px);
        max-height: 260px;
        justify-self: center;
        margin: 0;
    }

    .about-block-image--goose img {
        max-height: 280px;
    }
}

.app-install {
    max-width: 42rem;
}

.app-install ol {
    color: var(--text-muted);
    line-height: 1.7;
    padding-left: 1.2rem;
}

.app-install-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 767px) {
    html,
    body {
        overflow-x: clip;
        max-width: 100%;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }

    .btn,
    .header-menu-btn,
    .header-cart-btn,
    .action-link {
        min-height: 44px;
    }

    .product-gallery {
        flex-direction: column;
    }

    .product-thumbs {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .cart-item {
        grid-template-columns: 72px 1fr;
        align-items: start;
    }

    .cart-item img {
        width: 72px;
        height: 72px;
    }

    .cart-item-price,
    .cart-item-actions {
        grid-column: 2;
        text-align: left;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .auth-modal {
        width: calc(100vw - 1.5rem);
        max-width: 28rem;
        margin: 0 auto;
    }

    .header-search {
        display: flex;
    }
}

/* gbar-ad-20261113 */
