/* ProStore39 — Premium Dark UI */

:root {
    --bg-base: #08080a;
    --bg-elevated: #101012;
    --bg-card: #141416;
    --bg-card-hover: #1a1a1e;

    --accent: #9b51e0;
    --accent-bright: #a300ff;
    --accent-glow: rgba(163, 0, 255, 0.12);
    --accent-border: rgba(155, 81, 224, 0.35);

    --text: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --container-max: 1680px;
    --container-padding: clamp(16px, 2.5vw, 40px);
    --header-h: 96px;

    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-card: 0 20px 40px rgba(163, 0, 255, 0.12);
    --shadow-header: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background: var(--bg-base);
}

body {
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg-base);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s var(--ease-out);
}

ul { list-style: none; }

main { flex: 1; }

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

.container--wide {
    max-width: min(1920px, 96vw);
}

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

/* ---- Typography ---- */

.section-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--text);
}

.section-title--upper {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
}

.section-lead {
    margin-top: 16px;
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.7;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: color 0.3s var(--ease-out), gap 0.3s var(--ease-out);
}

.link-arrow span {
    transition: transform 0.3s var(--ease-out);
}

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

.link-arrow:hover span {
    transform: translateX(4px);
}

/* ---- Buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 32px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.35s var(--ease-out);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-bright) 100%);
    color: #fff;
    box-shadow: 0 4px 24px rgba(163, 0, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(163, 0, 255, 0.35);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--accent-border);
}

.btn-outline:hover {
    background: rgba(155, 81, 224, 0.1);
    border-color: var(--accent);
    color: #fff;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    min-height: 44px;
    padding: 0 20px;
    font-size: 0.9375rem;
}

.btn-hero {
    min-height: 58px;
    padding: 0 40px;
    font-size: 1.0625rem;
    margin-top: 8px;
}

.btn-header-cta {
    min-height: 48px;
    padding: 0 28px;
    font-size: 0.9375rem;
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--accent-border);
    white-space: nowrap;
    flex-shrink: 0;
}

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

.btn-cart {
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.875rem;
}

.btn-danger {
    border: 1.5px solid #ef4444;
    color: #ef4444;
    background: transparent;
}

.btn-danger:hover {
    background: #ef4444;
    color: #fff;
}

/* ---- Header ---- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(8, 8, 10, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-header);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: clamp(24px, 4vw, 48px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    text-decoration: none;
    padding-right: 8px;
}

.logo-img {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-img--footer {
    width: 64px;
    height: 64px;
}

.logo-tagline {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.06em;
    white-space: nowrap;
    line-height: 1.2;
}

.footer-logo {
    display: inline-flex;
    margin-bottom: 16px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(24px, 3.5vw, 44px);
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.main-nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 10px 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.35s var(--ease-out);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: clamp(16px, 2.5vw, 28px);
    flex-shrink: 0;
}

.header-phone {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    flex-shrink: 0;
}

.header-phone:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: all 0.3s var(--ease-out);
}

.social-link:hover {
    border-color: var(--accent-border);
    color: var(--accent);
    background: rgba(155, 81, 224, 0.08);
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    color: var(--text);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
    flex-shrink: 0;
}

.cart-link:hover {
    border-color: var(--accent-border);
    background: rgba(155, 81, 224, 0.06);
}

.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 100px;
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.cart-label {
    display: none;
}

@media (min-width: 1200px) {
    .cart-label { display: inline; }
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 10px;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    transition: all 0.3s var(--ease-out);
}

.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ---- Hero ---- */

.hero-slider {
    position: relative;
    width: 100%;
    height: 78vh;
    min-height: 520px;
    max-height: 900px;
    overflow: hidden;
    background: var(--bg-base);
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1s var(--ease-out);
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img,
.hero-slide video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(8, 8, 10, 0.55) 0%,
        transparent 40%,
        transparent 60%,
        rgba(8, 8, 10, 0.75) 100%
    );
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 5vw, 48px);
    overflow: hidden;
}

.hero-overlay .container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
    width: 100%;
    max-width: min(1100px, 92vw);
    margin: 0 auto;
    padding: 0 clamp(12px, 3vw, 24px);
    -webkit-font-smoothing: subpixel-antialiased;
}

.hero-brand {
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #c77dff;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    max-width: min(1100px, 100%);
    width: 100%;
    margin: 0;
    color: #ffffff;
}

.hero-category {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 24px 0;
    line-height: 1.35;
    max-width: 600px;
}

.hero-content .btn-hero {
    margin-top: 8px;
    flex-shrink: 0;
}

.hero-dots {
    position: absolute;
    bottom: clamp(24px, 4vw, 40px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s var(--ease-out);
}

.hero-dot.active,
.hero-dot:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.2);
}

/* ---- Sections ---- */

.section {
    padding: clamp(80px, 10vw, 120px) 0;
}

.section-catalog-intro {
    padding-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: clamp(40px, 5vw, 64px);
    flex-wrap: wrap;
}

.section-header--large {
    align-items: center;
}

.section-category + .section-category {
    border-top: 1px solid var(--border-subtle);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---- Product grid & cards ---- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: clamp(24px, 2.5vw, 36px);
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
    border-color: var(--border-hover);
}

.product-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 280px;
    padding: 32px;
    background: linear-gradient(180deg, #18181b 0%, var(--bg-card) 100%);
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s var(--ease-out);
}

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

.product-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px 28px 32px;
    flex: 1;
}

.product-card-name {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

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

.product-card-price {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.product-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s var(--ease-out), gap 0.3s var(--ease-out);
}

.product-card-link:hover {
    color: var(--accent);
    gap: 12px;
}

.product-card-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

/* ---- Category cards (catalog page) ---- */

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: clamp(28px, 3vw, 48px);
}

.category-card {
    position: relative;
    display: block;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
}

.category-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.4s var(--ease-out);
}

.category-card:hover img {
    opacity: 1;
}

.category-card-body {
    padding: 32px 36px 40px;
}

.category-card-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.category-card-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ---- Category banner ---- */

.category-banner {
    position: relative;
    width: 100%;
    height: clamp(360px, 45vh, 520px);
    overflow: hidden;
    background: var(--bg-base);
}

.category-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.category-banner-vignette {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(8, 8, 10, 0.35) 0%,
        transparent 35%,
        transparent 65%,
        rgba(8, 8, 10, 0.45) 100%
    );
}

.banner-watermark {
    display: none;
}

.category-banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 5vw, 48px);
    overflow: hidden;
}

.category-banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    max-width: min(1100px, 92vw);
    width: 100%;
    -webkit-font-smoothing: subpixel-antialiased;
}

.category-banner-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0;
    color: #ffffff;
}

.category-banner-tagline {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 600;
    color: #c77dff;
    margin: 0;
    line-height: 1.4;
    letter-spacing: 0.04em;
}

/* ---- Breadcrumbs ---- */

.breadcrumbs {
    padding: 20px 0 0;
    font-size: 0.875rem;
}

.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumbs-item {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
}

.breadcrumbs-item:not(:last-child)::after {
    content: '/';
    margin: 0 12px;
    opacity: 0.35;
    pointer-events: none;
}

.breadcrumbs-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

.breadcrumbs-current {
    color: var(--text);
    font-weight: 500;
    max-width: min(280px, 40vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breadcrumbs + .section,
.breadcrumbs + .page-hero,
.breadcrumbs + .category-banner {
    padding-top: 0;
}

/* ---- Product detail ---- */

.product-detail {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(40px, 5vw, 96px);
    padding: clamp(40px, 5vw, 80px) 0;
    align-items: start;
}

.product-gallery-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-gallery {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    aspect-ratio: 1;
}

.product-gallery--zoomable {
    cursor: zoom-in;
}

.product-gallery-zoom {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: rgba(8, 8, 10, 0.75);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.product-gallery-zoom:hover {
    background: rgba(163, 0, 255, 0.25);
    border-color: var(--accent);
    transform: scale(1.05);
}

.product-gallery img,
.product-gallery #product-gallery-main {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 40px;
    transition: opacity 0.25s var(--ease-out);
    cursor: zoom-in;
}

.product-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-gallery-thumb {
    width: 72px;
    height: 72px;
    padding: 0;
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}

.product-gallery-thumb:hover {
    border-color: rgba(163, 0, 255, 0.5);
}

.product-gallery-thumb.active {
    border-color: var(--accent);
    transform: scale(1.02);
}

.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product lightbox */

body.lightbox-open {
    overflow: hidden;
}

.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s var(--ease-out), visibility 0.25s;
}

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

.product-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    cursor: zoom-out;
}

.product-lightbox__content {
    position: relative;
    z-index: 2;
    max-width: min(1200px, 96vw);
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-lightbox__content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.product-lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    background: rgba(8, 8, 10, 0.8);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.product-lightbox__close:hover {
    background: rgba(163, 0, 255, 0.3);
    border-color: var(--accent);
}

.product-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    background: rgba(8, 8, 10, 0.8);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.product-lightbox__nav:hover {
    background: rgba(163, 0, 255, 0.3);
    border-color: var(--accent);
}

.product-lightbox__prev {
    left: 20px;
}

.product-lightbox__next {
    right: 20px;
}

.product-lightbox__counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(8, 8, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
}

@media (max-width: 600px) {
    .product-lightbox__nav {
        width: 44px;
        height: 44px;
    }

    .product-lightbox__prev {
        left: 12px;
    }

    .product-lightbox__next {
        right: 12px;
    }

    .product-lightbox__close {
        top: 12px;
        right: 12px;
    }
}

.product-overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    background: linear-gradient(0deg, rgba(8, 8, 10, 0.95) 0%, transparent 100%);
}

.product-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 100px;
    background: rgba(155, 81, 224, 0.2);
    border: 1px solid var(--accent-border);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.product-overlay-feature {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-top: 6px;
}

.product-info h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 20px;
}

.product-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #4ade80;
    margin-bottom: 24px;
}

.product-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.6);
}

.product-price {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
}

.product-description {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 32px;
}

.product-features {
    margin-bottom: 36px;
}

.product-features li {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.qty-selector {
    display: inline-flex;
    align-items: center;
    margin-bottom: 24px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-btn {
    width: 52px;
    height: 52px;
    border: none;
    background: var(--bg-elevated);
    color: var(--text);
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: var(--bg-card-hover);
    color: var(--accent);
}

.qty-input {
    width: 64px;
    height: 52px;
    border: none;
    border-left: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
    background: var(--bg-base);
    color: var(--text);
    text-align: center;
    font-size: 1.0625rem;
    font-family: var(--font);
    font-weight: 600;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* ---- Cart ---- */

.cart-page {
    padding: clamp(48px, 6vw, 80px) 0;
}

.cart-page > .container > h1,
.page-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr minmax(340px, 460px);
    gap: clamp(32px, 4vw, 72px);
    margin-top: 48px;
    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
}

.cart-item img {
    width: 120px;
    height: 96px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
}

.cart-item-info h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.cart-item-price {
    font-size: 1.25rem;
    font-weight: 700;
}

.cart-empty {
    text-align: center;
    padding: 100px 24px;
}

.cart-empty h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cart-empty p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1.0625rem;
}

.cart-summary {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    padding: 36px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
}

.cart-summary h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    font-size: 1rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

.cart-total-row.total {
    border-bottom: none;
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--text);
    padding-top: 20px;
}

/* ---- Forms ---- */

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    min-height: 54px;
    padding: 14px 18px;
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-border);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* ---- Modal ---- */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s var(--ease-out);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    width: 100%;
    max-width: 480px;
    padding: 40px;
    background: var(--bg-elevated);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    transform: translateY(20px) scale(0.98);
    transition: transform 0.35s var(--ease-out);
    position: relative;
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text);
    background: var(--bg-card-hover);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.modal-desc {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 1rem;
}

/* ---- Toast ---- */

.toast-container {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 500;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    animation: toastIn 0.4s var(--ease-out);
}

.toast-success {
    background: #14532d;
    border: 1px solid #4ade80;
    color: #4ade80;
}

.toast-error {
    background: #450a0a;
    border: 1px solid #f87171;
    color: #f87171;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- SEO block ---- */

.seo-block {
    padding: clamp(80px, 10vw, 120px) 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
}

.seo-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: clamp(48px, 6vw, 120px);
    align-items: start;
}

.seo-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 24px;
}

.seo-lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.7;
}

.seo-grid__body p {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.seo-grid__body a {
    color: var(--accent);
    font-weight: 500;
}

.seo-grid__body a:hover {
    color: var(--text);
}

/* Legacy seo-block single column */
.seo-block h2:not(.seo-title) {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.seo-block p:not(.seo-lead) {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ---- Footer ---- */

.site-footer {
    padding: clamp(64px, 8vw, 100px) 0 40px;
    background: var(--bg-base);
    border-top: 1px solid var(--border-subtle);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: clamp(32px, 5vw, 64px);
    margin-bottom: 64px;
}

.footer-lead {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 320px;
}

.footer-heading {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 24px;
}

.footer-col ul li {
    margin-bottom: 14px;
}

.footer-col a {
    font-size: 1rem;
    color: var(--text-secondary);
}

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

.footer-phone {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: var(--text) !important;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--text-secondary);
}

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

/* ---- Content pages ---- */

.page-hero {
    padding: clamp(64px, 8vw, 100px) 0 clamp(40px, 5vw, 64px);
    border-bottom: 1px solid var(--border-subtle);
}

.content-block {
    padding: clamp(64px, 8vw, 100px) 0;
}

.content-block h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 40px 0 16px;
}

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

.content-block p,
.content-block li {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.content-block ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 24px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.contact-card {
    padding: 36px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
}

.contact-card h3 {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.contact-card p,
.contact-card a {
    font-size: 1.0625rem;
    color: var(--text);
    display: block;
    margin-bottom: 10px;
}

.contact-card-note {
    color: var(--text-muted) !important;
    margin-top: 12px !important;
    font-size: 0.9375rem !important;
}

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

.map-placeholder {
    height: 360px;
    margin-top: 48px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
}

/* ---- Error page ---- */

.error-page {
    text-align: center;
    padding: clamp(80px, 15vw, 160px) 24px;
}

.error-page h1 {
    font-size: clamp(6rem, 20vw, 10rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--accent) 0%, #6b21a8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-page h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin: 24px 0 16px;
}

.error-page p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    margin-bottom: 40px;
}

/* ---- Admin ---- */

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

.admin-wrap {
    max-width: 640px;
    margin: 80px auto;
    padding: 0 24px;
}

.admin-card {
    padding: 40px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
}

.admin-card h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 28px;
}

.admin-stat {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 1rem;
}

.admin-message {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 0.9375rem;
}

.admin-message.success {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid #4ade80;
    color: #4ade80;
}

.admin-message.error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid #f87171;
    color: #f87171;
}

.admin-wrap--narrow {
    max-width: 420px;
}

.admin-shell {
    min-height: 100vh;
}

.admin-header {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 20px clamp(16px, 4vw, 40px);
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(12, 12, 14, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-header__logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.admin-header__brand h1 {
    font-size: 1.125rem;
    font-weight: 800;
    margin: 0;
}

.admin-header__brand span {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.admin-tabs {
    display: flex;
    gap: 8px;
    flex: 1;
}

.admin-tab {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.admin-tab:hover,
.admin-tab.is-active {
    background: rgba(163, 0, 255, 0.12);
    color: #fff;
}

.admin-header__actions {
    display: flex;
    gap: 16px;
}

.admin-link {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

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

.admin-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px clamp(16px, 4vw, 40px) 80px;
}

.admin-muted {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 20px;
}

.admin-footer-links {
    margin-top: 20px;
    font-size: 0.875rem;
}

.admin-grid {
    display: grid;
    gap: 24px;
}

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

.admin-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    height: fit-content;
}

.admin-sidebar__title {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.admin-page-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-page-link {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}

.admin-page-link:hover,
.admin-page-link.is-active {
    background: rgba(163, 0, 255, 0.1);
    color: #fff;
}

.admin-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 4vw, 32px);
}

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

.admin-panel__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 24px;
}

.admin-panel__lead {
    color: var(--text-muted);
    margin: -12px 0 28px;
    line-height: 1.6;
    max-width: 640px;
}

.admin-panel--settings {
    max-width: 720px;
}

.admin-fieldset {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px 24px 8px;
    margin-bottom: 28px;
}

.admin-fieldset legend {
    padding: 0 8px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.admin-hint {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: -8px 0 16px;
    line-height: 1.5;
}

.admin-panel__head .admin-panel__title {
    margin-bottom: 0;
}

.admin-form .form-group {
    margin-bottom: 20px;
}

.form-control--tall {
    min-height: 320px;
    font-family: ui-monospace, monospace;
    font-size: 0.875rem;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.admin-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    cursor: pointer;
}

.btn-block {
    width: 100%;
}

.btn-danger {
    background: transparent;
    border: 1px solid #f87171;
    color: #f87171;
}

.btn-danger:hover {
    background: rgba(248, 113, 113, 0.1);
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.admin-table th,
.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-subtle);
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-table-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--bg-base);
}

.admin-thumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.admin-thumb img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.admin-thumb span {
    font-size: 0.8125rem;
    color: var(--text-muted);
    word-break: break-all;
}

.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.admin-gallery-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
}

.admin-gallery-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
}

.admin-gallery-remove {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.admin-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.admin-badge--ok {
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
}

.admin-badge--off {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.admin-stats {
    margin-bottom: 24px;
}

.admin-actions-stack {
    max-width: 480px;
}

.admin-help {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.admin-help h3 {
    font-size: 1rem;
    margin: 24px 0 12px;
    color: #fff;
}

.admin-help ol {
    padding-left: 20px;
}

.admin-code {
    display: block;
    margin-top: 8px;
    padding: 12px;
    background: #0d0d0d;
    border-radius: 6px;
    font-size: 12px;
    word-break: break-all;
}

.admin-status-ok {
    color: #4ade80;
    margin-top: 12px;
}

.admin-status-error {
    color: #f87171;
    margin-top: 12px;
}

.admin-hidden-form {
    display: none;
}

.admin-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 6px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
}

.admin-subtitle {
    font-size: 1rem;
    margin: 0 0 16px;
}

.form-control--sm {
    padding: 8px 10px;
    font-size: 0.875rem;
}

.admin-color-input {
    width: 48px;
    height: 36px;
    padding: 2px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--bg-base);
    cursor: pointer;
}

.admin-link--danger {
    color: #f87171;
}

.crm-filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.crm-filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.crm-filter-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-right: 4px;
}

.crm-filter {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.crm-filter:hover,
.crm-filter.is-active {
    border-color: var(--accent);
    color: #fff;
    background: rgba(163, 0, 255, 0.12);
}

.crm-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    background: var(--status-color, #a855f7);
}

.crm-status-badge--sm {
    padding: 4px 10px;
    font-size: 0.75rem;
}

.crm-type-badge {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.crm-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: start;
}

.crm-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.crm-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
}

.crm-card h3 {
    font-size: 0.9375rem;
    margin: 0 0 16px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.crm-dl {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px 16px;
    margin: 0;
}

.crm-dl dt {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.crm-dl dd {
    margin: 0;
}

.crm-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
}

.crm-timeline-item {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--border-subtle);
}

.crm-timeline-item--status {
    border-left-color: #38bdf8;
}

.crm-timeline-item--system {
    border-left-color: var(--accent);
}

.crm-timeline-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.crm-timeline-item p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
}

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

    .crm-dl {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

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

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

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-tabs {
        width: 100%;
        overflow-x: auto;
    }
}

/* ---- Responsive ---- */

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

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

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

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

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

    .main-nav {
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .main-nav,
    .social-links,
    .btn-header-cta {
        display: none;
    }

    .burger {
        display: flex;
    }

    .main-nav.open {
        display: flex;
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 16px 24px 32px;
        background: rgba(8, 8, 10, 0.98);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border-subtle);
    }

    .main-nav.open a {
        padding: 16px 0;
        font-size: 1.0625rem;
        border-bottom: 1px solid var(--border-subtle);
    }

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

    .cart-item-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    :root {
        --header-h: 80px;
    }

    .logo-img {
        width: 48px;
        height: 48px;
    }

    .logo-tagline {
        font-size: 0.6875rem;
    }

    .cart-label {
        display: none;
    }

    .cart-link {
        padding: 10px 14px;
    }

    .hero-slider {
        height: min(75vh, 640px);
        min-height: 440px;
    }

    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    .hero-category {
        font-size: clamp(1rem, 4vw, 1.25rem);
        margin-bottom: 16px;
    }

    .category-banner-title {
        font-size: clamp(1.5rem, 7vw, 2.25rem);
    }

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

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

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

/* ---- Large screens ---- */

@media (min-width: 1600px) {
    :root {
        --container-max: 1760px;
    }

    .hero-slider {
        max-height: 960px;
        min-height: 560px;
    }

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

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

@media (min-width: 1920px) {
    :root {
        --container-max: 1880px;
    }

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

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

    .footer-grid {
        gap: 80px;
    }
}

@media (min-width: 2560px) {
    :root {
        --container-max: 2040px;
    }
}
