/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    /* Colors - Dark Theme (Inspired by the screenshot) */
    --color-primary: #a37df0;        /* Lightened Purple for WCAG AA (Contrast ~ 5.3:1 on dark bg) */
    --color-primary-dark: #8957e5;   /* Former primary, used for hover states/buttons */
    --color-secondary: #8b949e;
    --color-success: #3fb950;        /* Lightened Green for WCAG AA text */
    --color-danger: #ff7b72;         /* Lightened Red for WCAG AA text */
    --color-warning: #d29922;
    --color-white: #ffffff;
    --color-black: #010409;
    
    --color-body-bg: #0d1117;       /* Main Dark Background */
    --color-card-bg: #161b22;       /* Secondary Lighter Background */
    --color-border: #30363d;        /* Subtle Borders */
    
    --color-text: #e6edf3;          /* Main Light Text */
    --color-text-muted: #8b949e;    /* Muted Gray Text */

    /* Typography */
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.125rem;
    --font-size-h1: 2.5rem;
    --font-size-h2: 2rem;
    --font-size-h3: 1.5rem;
    --line-height-base: 1.6;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --breadcrumbs-outer-gap: var(--spacing-lg);

    /* Layout */
    --container-max-width: 1200px;
    --container-padding: var(--spacing-md);

    /* Other */
    --border-radius-md: 8px;
    --border-radius-lg: 14px;
    --transition-base: 0.2s ease-in-out;
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-body-bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--color-primary-dark);
}

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

ul { list-style: none; }

button, input, textarea {
    font: inherit;
    color: inherit;
    background: transparent;
}

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

/* ==========================================================================
   Components
   ========================================================================== */

/* Header & Nav */
.header {
    background: var(--color-card-bg);
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-md) 0;
    margin-bottom: 0;
    position: relative;
}

.header__search-row {
    margin-top: 0;
    display: flex;
    justify-content: center;
}

.header__container {
    display: flex;
    flex-direction: column;
}

.nav__search-slot {
    min-width: 0;
}

.nav__search-slot .header__search-row {
    margin-top: 0;
}

.nav__search-slot .catalog-search {
    width: 100%;
}

.catalog-search {
    width: var(--catalog-search-component-width, 100%);
    max-width: 100%;
    position: relative;
}

.catalog-search__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, max-content);
    width: 100%;
    border: 1px solid #2e3846;
    border-radius: 0.625rem;
    overflow: visible;
    background: #111722;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.catalog-search__input-wrap,
.catalog-search__select-wrap {
    position: relative;
    min-width: 0;
}

.catalog-search__input,
.catalog-search__category-toggle {
    display: block;
    width: 100%;
    height: 2.5rem;
    border: 0;
    outline: none;
    padding: 0 0.75rem;
    font-size: var(--font-size-sm);
    color: var(--color-text);
    background: transparent;
}

.catalog-search__input-wrap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0.75rem;
    width: 1rem;
    height: 1rem;
    background-color: var(--color-text-muted);
    -webkit-mask: url('/assets/images/search.svg') no-repeat center;
    mask: url('/assets/images/search.svg') no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.95;
}

.catalog-search__input {
    padding-left: 2.125rem;
}

.catalog-search__input::placeholder {
    color: #a8b2c0;
}

.catalog-search__select-wrap {
    border-left: 1px solid #2e3846;
    z-index: 340;
    overflow: visible;
}

.catalog-search__category-toggle {
    text-align: left;
    cursor: pointer;
    padding-right: 1.625rem;
    position: relative;
    width: 100%;
}

.catalog-search__category-toggle-sizer {
    display: block;
    height: 0;
    overflow: hidden;
    white-space: nowrap;
    pointer-events: none;
}

.catalog-search__category-toggle-text {
    display: block;
    white-space: nowrap;
}

.catalog-search__select-wrap::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0.625rem;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid var(--color-text-muted);
    border-bottom: 2px solid var(--color-text-muted);
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
    transition: transform var(--transition-base);
}

.catalog-search__select-wrap[data-menu-open="true"]::after {
    transform: translateY(-35%) rotate(-135deg);
}

.catalog-search__category-menu {
    position: absolute;
    top: calc(100% + 0.375rem);
    right: 0;
    min-width: max-content;
    z-index: 320;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    overflow-y: auto;
    max-height: calc(var(--catalog-search-max-visible-rows, 3) * 4.75rem);
}

.catalog-search__category-item {
    display: block;
    width: 100%;
    padding: 0.5rem 0.625rem;
    border: 0;
    border-bottom: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text);
    font: inherit;
    font-size: var(--font-size-sm);
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}

.catalog-search__category-item:last-child {
    border-bottom: 0;
}

.catalog-search__category-item:hover,
.catalog-search__category-item--active {
    background: rgba(137, 87, 229, 0.12);
    color: var(--color-white);
}


.catalog-search__results {
    position: absolute;
    top: calc(100% + 0.375rem);
    left: 0;
    width: 100%;
    z-index: 300;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    overflow-y: auto;
    max-height: calc(var(--catalog-search-max-visible-rows, 3) * 4.75rem);
}

.catalog-search__item {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: var(--spacing-sm);
    align-items: center;
    padding: 0.5rem 0.625rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}

.catalog-search__item:last-child {
    border-bottom: 0;
}

.catalog-search__item:hover {
    background: rgba(137, 87, 229, 0.12);
    color: var(--color-white);
}

.catalog-search__item-media {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.catalog-search__item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-search__item-title {
    display: block;
    font-size: 0.875rem;
    line-height: 1.35;
}

.catalog-search__item-match {
    color: var(--color-danger);
    font-weight: var(--font-weight-bold);
}

.catalog-search__empty {
    padding: 0.625rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.catalog-search__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.header + .main {
    padding-top: var(--breadcrumbs-outer-gap);
}

.breadcrumbs + .main {
    padding-top: calc(var(--breadcrumbs-outer-gap) / 2);
}

body.body--breadcrumbs-disabled .header + .main {
    padding-top: var(--breadcrumbs-outer-gap);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo-img {
    display: block;
    width: 40px;
    height: 40px;
}

.nav__menu {
    display: flex;
    gap: var(--spacing-lg);
}

.nav__link {
    color: var(--color-text);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-base);
}

.nav__link:hover {
    color: var(--color-primary);
}

/* Dropdown Styles */
.nav__item--has-dropdown {
    position: relative;
}

.nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    transform: scaleY(0);
    transform-origin: top;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
    min-width: 180px;
    padding: var(--spacing-sm) 0;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease-in-out;
    z-index: 100;
    overflow: hidden;
}

.nav__dropdown-link {
    display: block;
    padding: var(--spacing-xs) var(--spacing-lg);
    color: var(--color-text);
    font-size: var(--font-size-sm);
    transition: background var(--transition-base), color var(--transition-base);
}

.nav__dropdown-link:hover {
    background: rgba(137, 87, 229, 0.1);
    color: var(--color-primary);
}

/* Desktop Hover */
@media (min-width: 1024px) {
    .nav__item--has-dropdown:hover .nav__dropdown {
        opacity: 1;
        visibility: visible;
        transform: scaleY(1);
    }

    .nav__link--dropdown::after {
        content: '▼';
        font-size: 0.625em; /* 10px -> 0.625em (relative to font-size-sm) */
        margin-left: 0.375em;
        vertical-align: middle;
        transition: transform 0.2s;
    }

    .nav__item--has-dropdown:hover .nav__link--dropdown::after {
        transform: rotate(180deg);
    }
}

/* Mobile Dropdown */
@media (max-width: 1023px) {
    .nav__dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        padding: 0 0 0 var(--spacing-lg); /* No vertical padding to avoid gap when closed */
        background: transparent;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.8s ease-in-out;
        display: block;
        margin: 0;
    }

    .nav__dropdown-link {
        padding: var(--spacing-xs) 0;
    }

    .nav__dropdown--active {
        max-height: 500px; /* Large enough to fit content */
    }

    .nav__link--dropdown::after {
        content: '▼';
        font-size: 0.625em; /* 10px -> 0.625em */
        margin-left: 0.5em;
        vertical-align: middle;
        transition: transform 0.3s;
        display: inline-block;
    }

    .nav__item--has-dropdown.nav__item--active .nav__link--dropdown::after {
        transform: rotate(180deg);
    }
}

/* Hide mobile-only items by default */
.nav__item--mobile-only {
    display: none;
}

.header__cta {
    display: none; /* Hidden on mobile */
}

/* Desktop layout with centered menu */
@media (min-width: 1024px) {
    .header {
        padding: 0.5rem 0;
    }

    .nav {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "phone phone phone"
            "logo search cta-row"
            ". menu note";
        column-gap: var(--spacing-lg);
        row-gap: 0.25rem;
        width: 100%;
    }

    .header.header--without-search .nav {
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "phone phone phone"
            "logo menu cta-row"
            ". . note";
        align-items: center;
    }

    .header__cta .nav__btn {
        display: inline-flex;
        align-items: center;
        min-height: 1.8125rem;
        padding-top: 0;
        padding-bottom: 0;
        line-height: 1.1;
    }

    .catalog-search__input,
    .catalog-search__category-toggle {
        height: 2.125rem;
        font-size: var(--font-size-sm);
        line-height: 1.15;
    }

    .nav__logo {
        grid-area: logo;
        justify-self: start;
        align-self: center;
    }

    .nav__search-slot {
        grid-area: search;
        align-self: center;
    }

    .nav__menu {
        grid-area: menu;
        justify-self: start;
        display: flex;
        justify-content: flex-start;
        align-self: center;
        min-width: 0;
    }

    .header.header--without-search .nav__menu {
        align-self: center;
    }

    .nav__link {
        font-size: var(--font-size-base);
    }

    /* CTA container: use CSS subgrid-like approach for splitting into areas */
    .header__cta {
        display: contents;
    }

    /* Phone number row -- top-right */
    .header__cta .header__phone {
        grid-area: phone;
        justify-self: end;
        font-size: 0.9375rem;
    }

    /* Button + social icons row -- aligned with logo and search */
    .header__cta .header__cta-row {
        grid-area: cta-row;
        justify-self: end;
        align-self: center;
    }

    .header__cta-row {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }

    /* Note (working hours) -- bottom-right under CTA row */
    .header__cta .header__note {
        grid-area: note;
        justify-self: end;
        align-self: center;
    }

    .header__cta .nav__btn {
        align-self: center;
        white-space: nowrap;
        flex-shrink: 0;
        padding-left: 1.625rem;
        padding-right: 1.625rem;
    }

    .header__cta .nav__social-btn {
        width: 2.125rem;
        height: 2.125rem;
        min-width: 2.125rem;
        min-height: 2.125rem;
        flex: 0 0 2.125rem;
        aspect-ratio: 1 / 1;
    }

    .header__cta .nav__social-btn img {
        width: 1rem;
        max-height: 1rem;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .nav {
        column-gap: var(--spacing-md);
    }

    .nav__menu {
        gap: 0.9375rem;
    }

    .nav__link {
        font-size: var(--font-size-base);
        white-space: nowrap;
    }

    .header__phone {
        font-size: 0.9375rem;
        gap: 0.4375rem;
        white-space: nowrap;
    }

    .header__cta-row {
        gap: 0.5rem;
    }

    .nav__btn {
        padding: 0.4375rem 0.75rem;
        white-space: nowrap;
        line-height: 1.15;
    }

    .nav__social-btn {
        width: 2.125rem;
        height: 2.125rem;
        min-width: 2.125rem;
        min-height: 2.125rem;
        flex: 0 0 2.125rem;
        aspect-ratio: 1 / 1;
    }

    .nav__social-btn img {
        width: 1rem;
        max-height: 1rem;
    }

    .header__note {
        font-size: 0.8125rem;
        white-space: nowrap;
    }
}

.header__phone {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-lg);
    color: var(--color-white);
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-base);
}

.header__phone-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: currentColor;
    -webkit-mask: url(/assets/images/phone.svg) no-repeat center;
    mask: url(/assets/images/phone.svg) no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.header__phone:hover {
    color: var(--color-primary);
}

.header__note {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.nav__social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    transition: transform var(--transition-base), background-color var(--transition-base);
}

.nav__social-btn--tg {
    background-color: #229ED9; /* Telegram Brand Color */
}

.nav__social-btn--tg:hover {
    background-color: #1c82b1;
    transform: scale(1.1);
}

.nav__social-btn--wa {
    background-color: #25D366; /* WhatsApp Brand Color */
}

.nav__social-btn--wa:hover {
    background-color: #1ebd5b;
    transform: scale(1.1);
}

.nav__social-btn--max {
    background: linear-gradient(135deg, #00b4ff 0%, #a033ff 100%);
}

.nav__social-btn--max:hover {
    filter: brightness(1.1);
    transform: scale(1.1);
}


.nav__social-btn img {
    width: 20px;
    height: auto; /* Adjust for non-square logos */
    max-height: 20px;
    filter: brightness(0) invert(1);
}

.nav__social-btn:hover {
    background-color: #1c82b1;
    transform: scale(1.1);
}

.nav__mobile-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.nav__mobile-buttons {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    width: 100%;
}

.nav__mobile-buttons .nav__btn {
    flex: 1;
}

/* Mobile Toggle Button */
.nav__toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.nav__toggle-icon, 
.nav__toggle::before, 
.nav__toggle::after {
    content: "";
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Burger Animation to X */
.nav__toggle[aria-expanded="true"] .nav__toggle-icon {
    opacity: 0;
    transform: translateX(-10px);
}

.nav__toggle[aria-expanded="true"]::before {
    transform: translateY(8px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"]::after {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile layout with button in menu */
@media (max-width: 1023px) {
    .header.header--with-search {
        padding-top: calc(var(--spacing-md) - 9px);
    }

    .header {
        padding-bottom: calc(0.5rem - 2px);
    }

    .nav {
        flex-wrap: wrap;
        row-gap: 0.125rem;
    }

    .nav__toggle {
        display: flex; /* Show on mobile */
    }

    .nav__search-slot {
        order: 3;
        flex: 0 0 100%;
        margin-top: calc(0.25rem + 2px);
        margin-bottom: 0;
    }

    .nav__menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--color-card-bg);
        padding: 0 var(--spacing-lg);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        gap: 0; /* Reset gap, use padding on links */
        z-index: 5;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.8s ease-in-out, opacity 0.7s ease-in-out, padding 0.8s ease-in-out;
        display: flex;
    }

    .nav__menu--open {
        max-height: 100vh;
        opacity: 1;
        visibility: visible;
        padding: var(--spacing-md) var(--spacing-lg);
    }
    
    .nav__link {
        display: block;
        padding: var(--spacing-xs) 0;
    }

    /* Hide desktop CTA on mobile */
    .header__cta {
        display: none !important;
    }

    /* Show mobile-specific CTA item */
    .nav__item--mobile-only {
        display: block;
        margin-top: var(--spacing-md);
        width: 100%;
    }

    .nav__mobile-buttons .nav__social-btn {
        width: 32px;
        height: 32px;
    }

    .nav__mobile-buttons .nav__social-btn img {
        width: 16px;
        height: 16px;
    }

    .header__search-row {
        margin-top: 0;
    }

    .catalog-search__controls {
        grid-template-columns: minmax(0, 1fr) minmax(0, max-content);
    }

    .catalog-search__input,
    .catalog-search__category-toggle {
        height: 2.125rem;
        font-size: 0.8125rem;
    }

    .catalog-search__category-menu,
    .catalog-search__results {
        max-height: calc(var(--catalog-search-max-visible-rows, 3) * 4.25rem);
    }

    .catalog-search__category-item {
        font-size: var(--font-size-sm);
    }
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.modal--open {
    display: flex;
}

.modal__content {
    background: var(--color-card-bg);
    width: 100%;
    max-width: 500px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-border);
    padding: var(--spacing-md) var(--spacing-lg);
    position: relative;
    box-shadow: var(--shadow-md);
    animation: modalFadeIn 0.3s ease-out;
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: opacity var(--transition-base), transform var(--transition-base);
    opacity: 0.6;
    z-index: 10;
}

.modal__close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.modal__close-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.modal__close-icon::before,
.modal__close-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 2px;
    margin-top: -1px;
}

.modal__close-icon::before {
    transform: rotate(45deg);
}

.modal__close-icon::after {
    transform: rotate(-45deg);
}

.details-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

@media (min-width: 1024px) {
    .details-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
    }
}

.contact-bottom-row {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

@media (min-width: 1024px) {
    .contact-bottom-row {
        flex-direction: row;
        align-items: stretch; /* Stretch both to equal height */
    }
    
    .contact-map-wrapper {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .contact-form-wrapper {
        width: 450px;
        display: flex;
        flex-direction: column;
    }
    
    .contact-form-wrapper > .card,
    .contact-map-wrapper > .card {
        flex: 1; /* Make cards inside wrappers fill the container height */
        display: flex;
        flex-direction: column;
    }
}

.card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

.card-title {
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-h3);
    color: var(--color-primary);
}

.contact-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.contact-list li {
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: baseline;
}

.contact-list li strong {
    color: var(--color-white);
    margin-right: var(--spacing-md);
    min-width: 85px;
    text-align: right;
    flex-shrink: 0;
}

.contact-additional {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.contact-map {
    width: 100%;
    height: 100%;
    min-height: 400px; /* Base height for mobile */
}

@media (min-width: 1024px) {
    .contact-map {
        min-height: 0; /* Let flex stretch the container */
        position: absolute;
        top: 0;
        left: 0;
    }
}

.card--map {
    position: relative;
    padding: 0; /* Map fills the entire card area */
    overflow: hidden;
}

/* Force Yandex script elements to fill height */
.contact-map iframe,
.contact-map ymaps {
    width: 100% !important;
    height: 100% !important;
    border: none;
}

.contact-details.card,
.card--map {
    background: transparent;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal__title {
    margin-top: 0;
    margin-bottom: var(--spacing-xs);
    text-align: center;
    color: var(--color-primary);
}

.modal__form {
    max-width: 100% !important;
    box-shadow: none !important;
    padding: 0 !important;
    border: none !important;
}

.modal__status .alert {
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-sm);
}

.service-page, .about, .home, .contact, .error-page, .privacy-policy {
    padding: 0 0 var(--spacing-xl) 0;
}

.main > section > .container > h1:first-child,
.main > section > .container > .catalog-page__header:first-child,
.main > section > .container > .error-container:first-child {
    margin-top: 0;
}

.main > section > .container > h1:first-child {
    margin-bottom: var(--breadcrumbs-outer-gap);
}

.service-content, .about-content, .home-content, .error-content, .privacy-content {
    margin-top: var(--spacing-lg);
    line-height: 1.8;
}

.service-content ul, .about-content ul, .home-content ul, .contact-content ul, .error-content ul, .privacy-content ul {
    margin-top: var(--spacing-md);
    padding-left: var(--spacing-lg);
    list-style: disc;
}

.service-content li, .about-content li, .home-content li, .contact-content li, .error-content li, .privacy-content li {
    margin-bottom: var(--spacing-xs);
}

/* Error Page 404 Styles */
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-2xl);
    padding: var(--spacing-xl) 0;
}

@media (min-width: 1024px) {
    .error-container {
        flex-direction: row;
        text-align: left;
        align-items: center;
        justify-content: center;
    }
    
    .error-content {
        flex: 1;
        max-width: 500px;
    }
    
    .error-illustration {
        flex: 1;
        max-width: 400px;
    }
}

.error-illustration {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.error-title {
    font-size: var(--font-size-h2);
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.error-description {
    color: var(--color-text-muted);
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xl);
}

.error-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 1024px) {
    .error-actions {
        justify-content: flex-start;
    }
}

.error-btn-primary {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
}

.error-btn-primary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.error-btn-secondary {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.error-btn-secondary:hover {
    background-color: var(--color-card-bg);
    border-color: var(--color-text-muted);
    color: var(--color-white);
}

.error-links {
    text-align: left;
    background: var(--color-card-bg);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-border);
}

.error-links h3 {
    font-size: var(--font-size-base);
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
    margin-top: 0;
}

.error-links-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin-top: 0 !important;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.error-links-list li {
    margin-bottom: 0 !important;
}

.error-links-list a {
    color: var(--color-text-muted);
    transition: color var(--transition-base);
    display: inline-flex;
    align-items: center;
}

.error-links-list a::before {
    content: '→';
    margin-right: var(--spacing-sm);
    color: var(--color-primary);
    font-size: 14px;
}

.error-links-list a:hover {
    color: var(--color-primary);
}

.privacy-content h2 {
    font-size: var(--font-size-lg);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.service-content, .about-content, .home-content, .error-content {
    margin-top: var(--spacing-lg);
    line-height: 1.8;
}

.service-content ul, .about-content ul, .home-content ul, .error-content ul {
    margin-top: var(--spacing-md);
    padding-left: var(--spacing-lg);
    list-style: disc;
}

.service-content li, .about-content li, .home-content li, .error-content li {
    margin-bottom: var(--spacing-xs);
}

/* Buttons */
.nav__btn {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-xl);
    background-color: var(--color-primary-dark); /* Use darker shade for button background */
    color: var(--color-white);
    border-radius: var(--border-radius-md);
    border: none;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: background-color var(--transition-base), transform 0.1s;
}

.nav__btn:hover {
    background-color: var(--color-primary); /* Lighter shade on hover */
    color: var(--color-white);
}

.nav__btn:active {
    transform: scale(0.97);
}

/* Alerts */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-lg);
}

.alert--success {
    background-color: rgba(63, 185, 80, 0.15);
    color: var(--color-success);
    border: 1px solid var(--color-success);
}

.alert--danger {
    background-color: rgba(255, 123, 114, 0.15);
    color: var(--color-danger);
    border: 1px solid var(--color-danger);
}

.alert--warning {
    background-color: rgba(255, 123, 114, 0.15);
    color: var(--color-danger);
    border: 1px solid var(--color-danger);
}

/* Admin */
.admin-area {
    padding-bottom: var(--spacing-2xl);
}

body.admin-standalone .admin-standalone-main {
    --admin-shell-top-gap: calc(var(--spacing-xl) / 2);
    padding-top: var(--admin-shell-top-gap);
    height: 100vh;
    overflow: hidden;
}

body.admin-standalone {
    overflow: hidden;
}

body.admin-standalone .admin-area {
    height: 100%;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-login-card {
    max-width: 28rem;
    margin: 0 auto;
    background: linear-gradient(160deg, rgba(22, 27, 34, 0.97) 0%, rgba(13, 17, 23, 0.98) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
}

.admin-login-card__title {
    margin-bottom: 0.25rem;
}

.admin-login-card__subtitle {
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
}

.admin-login-form {
    display: grid;
    gap: var(--spacing-md);
}

.admin-dashboard {
    display: grid;
    grid-template-columns: 16.5rem minmax(0, 1fr);
    gap: var(--spacing-lg);
    align-items: start;
    min-height: calc(100vh - var(--admin-shell-top-gap));
}

.admin-dashboard__sidebar {
    background: linear-gradient(180deg, rgba(26, 33, 43, 0.95) 0%, rgba(17, 23, 34, 0.98) 100%);
    border: 1px solid #2e3846;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--admin-shell-top-gap));
    max-height: calc(100vh - var(--admin-shell-top-gap));
    overflow: hidden;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.625rem;
    font-weight: var(--font-weight-bold);
}

.admin-brand__dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: linear-gradient(130deg, #2bd4c1 0%, #2f9cf6 100%);
    box-shadow: 0 0 0 3px rgba(47, 156, 246, 0.2);
}

.admin-menu {
    display: grid;
    gap: 0.25rem;
}

.admin-menu__link {
    display: block;
    border-radius: 0.625rem;
    border: 1px solid transparent;
    color: var(--color-text-muted);
    padding: 0.375rem 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.25;
    transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}

.admin-menu__link:hover {
    color: var(--color-white);
    background: rgba(163, 125, 240, 0.12);
}

.admin-menu__link--active {
    color: var(--color-white);
    border-color: rgba(163, 125, 240, 0.5);
    background: rgba(163, 125, 240, 0.2);
}

.admin-logout {
    margin-top: auto;
}

.admin-dashboard__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--admin-shell-top-gap));
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    background: rgba(22, 27, 34, 0.78);
    border: 1px solid rgba(48, 54, 61, 0.7);
    border-radius: var(--border-radius-md);
    padding: 0.40625rem 0.75rem;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    box-shadow: none;
}

.admin-topbar__status {
    margin-left: 0;
    margin-right: auto;
    max-width: min(35rem, 62vw);
}

.admin-topbar__status .alert {
    margin-bottom: 0;
    padding: 0.1875rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-dashboard__scroll {
    margin-top: var(--spacing-lg);
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: var(--spacing-2xl);
    padding-right: 0.25rem;
}

.admin-topbar__title {
    margin: 0;
    font-size: 1.25rem;
    color: var(--color-text);
}

.admin-topbar__user {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.admin-topbar__meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.admin-topbar__logout {
    display: flex;
    justify-content: flex-start;
}

.admin-panel-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 1rem;
}

.admin-panel-card--category-sort {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--admin-shell-top-gap) - 6.5rem);
}

.admin-messages-filter-card {
    padding: 0.75rem;
    margin-top: var(--spacing-lg);
    flex-shrink: 0;
}

.admin-messages-filter {
    width: 100%;
}

.admin-product-sort-controls {
    display: grid;
    gap: 0.625rem;
    padding: 0.75rem;
}

.admin-product-sort-controls .admin-messages-filter {
    margin: 0;
}

.admin-product-sort-controls__categories {
    margin: 0;
}

.admin-messages-filter__input-wrap {
    position: relative;
    display: block;
}

.admin-messages-filter__input-wrap::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 50%;
    width: 1rem;
    height: 1rem;
    transform: translateY(-50%);
    background: rgba(233, 237, 245, 0.55);
    pointer-events: none;
    -webkit-mask: url('/assets/images/search.svg') no-repeat center;
    mask: url('/assets/images/search.svg') no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.admin-messages-filter__input {
    width: 100%;
    border: 1px solid #2e3846;
    border-radius: 999px;
    background: #0f1520;
    color: var(--color-text);
    padding: 0.625rem 0.875rem 0.625rem 2.25rem;
}

.admin-messages-filter__input::placeholder {
    color: rgba(233, 237, 245, 0.48);
}

.admin-messages-filter__input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(163, 125, 240, 0.25);
}

.admin-messages-filter__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.admin-panel-card__title {
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.admin-panel-card__subtitle {
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
}

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

.admin-users-list {
    display: grid;
    gap: 0.875rem;
}

.admin-user-form {
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    padding: 0.875rem;
    background: rgba(13, 17, 23, 0.65);
}

.admin-user-form__row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.admin-user-form__footer {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.admin-user-form__meta {
    color: var(--color-text-muted);
    font-size: 0.75rem;
}

.admin-product-card {
    display: flex;
    gap: 0.875rem;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    padding: 0.875rem;
    background: rgba(13, 17, 23, 0.65);
}

.admin-product-card__media {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    flex-shrink: 0;
    width: 4.5rem;
}

.admin-product-card__thumb {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    object-fit: cover;
    background: var(--color-card-bg);
}

.admin-product-card__thumb-button {
    padding: 0;
    border: 1px solid rgba(137, 87, 229, 0.18);
    cursor: pointer;
    transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.admin-product-card__thumb-button:hover,
.admin-product-card__thumb-button:focus-visible {
    outline: none;
    border-color: rgba(163, 125, 240, 0.68);
    box-shadow: 0 0 0 3px rgba(163, 125, 240, 0.2);
    transform: translateY(-1px);
}

.admin-product-card__thumb-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-product-card__thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-product-card__thumb--placeholder svg {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--color-text-muted);
    opacity: 0.4;
}

.admin-product-card__content {
    flex: 1;
    min-width: 0;
}

.admin-product-card__content .admin-user-form__row + .admin-user-form__row {
    margin-top: 0.75rem;
}

.admin-panel-card > .admin-user-form .admin-user-form__row + .admin-user-form__row,
.admin-users-list > .admin-user-form .admin-user-form__row + .admin-user-form__row,
.admin-users-list .admin-user-form__row + .admin-user-form__row {
    margin-top: 0.75rem;
}

.admin-field {
    display: grid;
    gap: 0.25rem;
}

.admin-field--bool {
    align-content: start;
}

.admin-field__label {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.admin-field__input {
    width: 100%;
    border: 1px solid #2e3846;
    border-radius: 0.5rem;
    background: #0f1520;
    color: var(--color-text);
    padding: 0.5rem 0.625rem;
}

.admin-field__input[type='number'] {
    -moz-appearance: textfield;
}

.admin-field__input[type='number']::-webkit-inner-spin-button,
.admin-field__input[type='number']::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.admin-field__input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(163, 125, 240, 0.25);
}

.admin-slug-field {
    display: flex;
    align-items: stretch;
    border: 1px solid #2e3846;
    border-radius: 0.5rem;
    background: #0f1520;
    overflow: hidden;
}

.admin-slug-field:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(163, 125, 240, 0.25);
}

.admin-slug-field__button {
    flex: 0 0 auto;
    min-width: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-right: 1px solid #2e3846;
    background: #151c28;
    color: var(--color-text-muted);
    padding: 0 0.5rem;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color var(--transition-base), background var(--transition-base), color var(--transition-base);
}

.admin-slug-field__button::before {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

.admin-slug-field__button:hover,
.admin-slug-field__button:focus-visible {
    outline: none;
    background: rgba(137, 87, 229, 0.14);
    color: var(--color-white);
}

.admin-slug-field__input {
    flex: 1 1 auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.admin-slug-field__input:focus {
    border-color: transparent;
    box-shadow: none;
}

.admin-field--span-2 {
    grid-column: span 2;
}

.admin-field--span-4 {
    grid-column: 1 / -1;
}

.admin-template-field__textarea {
    width: 100%;
    min-height: calc(1.5em * 3 + 1rem);
    resize: none;
}

.admin-template-json-field {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.admin-template-json-builder {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
    min-width: 0;
}

.admin-template-json-builder__head {
    justify-content: flex-end;
}

.admin-template-json-field .admin-product-details-json {
    margin-top: 0;
    min-height: 12rem;
}

.admin-template-json-field .admin-product-details-json__list {
    max-height: 18rem;
}

.admin-select-wrap {
    position: relative;
    min-width: 0;
}

.admin-select-toggle {
    display: block;
    width: 100%;
    height: 2.25rem;
    border: 1px solid #2e3846;
    border-radius: 0.5rem;
    background: #0f1520;
    color: var(--color-text);
    padding: 0 2rem 0 0.625rem;
    font: inherit;
    font-size: var(--font-size-sm);
    text-align: left;
    cursor: pointer;
    position: relative;
}

.admin-select-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0.625rem;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid var(--color-text-muted);
    border-bottom: 2px solid var(--color-text-muted);
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
    transition: transform var(--transition-base);
}

.admin-select-wrap[data-menu-open="true"] .admin-select-toggle::after {
    transform: translateY(-35%) rotate(-135deg);
}

.admin-select-menu {
    position: absolute;
    top: calc(100% + 0.375rem);
    left: 0;
    right: 0;
    z-index: 320;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    overflow-y: auto;
    max-height: 12rem;
}

.admin-tag-select .admin-select-menu {
    right: auto;
    width: auto;
}

.admin-select-item {
    display: block;
    width: 100%;
    padding: 0.5rem 0.625rem;
    border: 0;
    border-bottom: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text);
    font: inherit;
    font-size: var(--font-size-sm);
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}

.admin-select-item:last-child {
    border-bottom: 0;
}

.admin-select-item:hover,
.admin-select-item--active {
    background: rgba(137, 87, 229, 0.12);
    color: var(--color-white);
}

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

.admin-select-item--muted.admin-select-item--active,
.admin-select-item--muted:hover {
    color: var(--color-white);
}

.admin-tag-select {
    min-width: 0;
}

.admin-tag-select__box {
    display: grid;
    gap: 0;
    padding: 0.3125rem 0.25rem;
    border: 1px solid #2e3846;
    border-radius: 0.75rem;
    background: #0f1520;
    cursor: pointer;
    position: relative;
}

.admin-tag-select__box:focus-visible {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(163, 125, 240, 0.25);
}

.admin-tag-select__box--disabled {
    cursor: default;
}

.admin-tag-select__selected {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 0.3125rem;
    min-height: 3.875rem;
    max-height: 3.875rem;
    overflow-y: auto;
    padding-right: 0.0625rem;
}

.admin-tag-select__selected--empty {
    display: flex;
    align-items: center;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    min-height: 1.75rem;
}

.admin-tag-select__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.1875rem;
    max-width: 100%;
    min-height: 1.625rem;
    padding: 0.125rem 0.25rem 0.125rem 0.4375rem;
    border: 1px solid rgba(137, 87, 229, 0.38);
    border-radius: 999px;
    background: rgba(137, 87, 229, 0.16);
    color: var(--color-text);
    font-size: var(--font-size-sm);
}

.admin-tag-select__tag-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-tag-select__tag-remove {
    width: 1rem;
    height: 1rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
    font: inherit;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.admin-tag-select__tag-remove:hover,
.admin-tag-select__tag-remove:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    outline: none;
}

.admin-tag-select--images {
    min-width: 0;
}

.admin-tag-select__box--images {
    cursor: default;
}

.admin-tag-select__selected--images {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    min-height: 18rem;
    max-height: 18rem;
    padding: 0.125rem;
}

.admin-tag-select__tag--image {
    display: flex;
    align-items: center;
    gap: 0.4375rem;
    min-height: 6rem;
    width: fit-content;
    max-width: 100%;
    padding: 0.5rem;
    border-radius: 0.875rem;
    cursor: grab;
}

.admin-tag-select__tag--image:active {
    cursor: grabbing;
}

.admin-tag-select__tag--dragging {
    opacity: 0.9;
    background: linear-gradient(135deg, rgba(163, 125, 240, 0.34) 0%, rgba(127, 87, 217, 0.46) 100%);
    border-color: rgba(196, 167, 255, 0.78);
    box-shadow: 0 0 0 2px rgba(196, 167, 255, 0.2), 0 10px 22px rgba(62, 32, 128, 0.28);
}

.admin-tag-select__tag--drag-preview {
    opacity: 1;
    background: linear-gradient(135deg, rgba(196, 167, 255, 0.96) 0%, rgba(127, 87, 217, 1) 100%);
    border-color: rgba(244, 236, 255, 1);
    box-shadow: 0 0 0 4px rgba(214, 194, 255, 0.52), 0 18px 36px rgba(62, 32, 128, 0.56);
}

.admin-tag-select__tag--drop-target {
    border-color: rgba(163, 125, 240, 0.78);
    box-shadow: 0 0 0 2px rgba(163, 125, 240, 0.16);
}

.admin-tag-select__image-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    overflow: hidden;
    border-radius: 0.625rem;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.admin-tag-select__image-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-product-images-modal {
    z-index: 1200;
}

.admin-product-images-modal__content {
    max-width: 48rem;
    padding-top: 1.25rem;
}

.admin-product-images-modal__title {
    padding-right: 2.5rem;
    font-size: 1.125rem;
    line-height: 1.25;
}

.admin-product-images-form {
    display: grid;
    gap: 1rem;
}

.admin-product-images-form__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.admin-product-images-form__upload {
    width: auto;
}

.admin-product-card__details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    padding: 0.25rem 4px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    color: var(--color-text-secondary);
    font-size: 0.8125rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color var(--transition-base), box-shadow var(--transition-base), background 0.2s, color 0.2s;
}

.admin-product-card__details-btn:hover,
.admin-product-card__details-btn:focus-visible {
    outline: none;
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text);
    border-color: rgba(163, 125, 240, 0.68);
    box-shadow: 0 0 0 3px rgba(163, 125, 240, 0.2);
}

.admin-product-card__details-btn svg {
    flex-shrink: 0;
}

.admin-product-details-modal {
    z-index: 1200;
}

.admin-product-details-modal__content {
    max-width: 52rem;
    padding-top: 1.25rem;
}

.admin-product-details-modal__title {
    padding-right: 2.5rem;
    font-size: 1.125rem;
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

.admin-product-details-form {
    display: grid;
    gap: 1rem;
}

.admin-product-details-workspace {
    border: 1px solid rgba(137, 87, 229, 0.18);
    border-radius: 0.75rem;
    background: rgba(9, 13, 20, 0.45);
    padding: 1rem;
}

.admin-product-details-layout {
    display: grid;
    grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
    gap: 1rem;
    min-height: 21rem;
}

.admin-product-details-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-right: 1rem;
    border-right: 1px solid var(--color-gray-border);
    max-height: 26rem;
    overflow-y: auto;
}

.admin-product-details-nav__item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.4375rem 0.625rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    color: var(--color-text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.admin-product-details-nav__item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text);
}

.admin-product-details-nav__item--active {
    background: rgba(137, 87, 229, 0.16);
    border-color: rgba(163, 125, 240, 0.35);
    color: var(--color-text);
}

.admin-product-details-panels {
    min-width: 0;
    display: flex;
    align-items: stretch;
    min-height: 0;
}

.admin-product-details-panel {
    width: 100%;
    height: 100%;
    min-height: 0;
}

.admin-product-details-panel__field {
    display: flex;
    flex-direction: column;
    align-content: start;
    gap: 0.25rem;
    height: 100%;
    min-height: 0;
}

.admin-product-details-panel__field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.625rem;
}

.admin-product-details-panel__field-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.375rem;
    flex: 0 0 auto;
}

.admin-product-details-panel__field-head .admin-field__label,
.admin-product-details-panel__field-head .admin-product-details-panel__template-button {
    pointer-events: auto;
}

.admin-product-details-panel__input {
    min-height: calc(1.25em * 2 + 1rem);
}

.admin-product-details-panel__textarea {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    resize: none;
    line-height: 1.5;
}

.admin-product-details-panel__template-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.admin-product-details-panel__template-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-height: 1rem;
    height: 1rem;
    width: auto;
    max-width: max-content;
    padding: 0 0.375rem;
    box-sizing: border-box;
    border: 1px solid rgba(163, 125, 240, 0.28);
    border-radius: 999px;
    background: rgba(137, 87, 229, 0.08);
    color: var(--color-text-secondary);
    font-size: 0.5rem;
    font-family: inherit;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: border-color var(--transition-base), background var(--transition-base), color var(--transition-base), box-shadow var(--transition-base);
}

.admin-product-details-panel__template-button:hover,
.admin-product-details-panel__template-button:focus-visible,
.admin-product-details-panel__template-button--primary:hover,
.admin-product-details-panel__template-button--primary:focus-visible,
.admin-product-details-panel__template-button--ghost:hover,
.admin-product-details-panel__template-button--ghost:focus-visible {
    outline: none;
    border-color: rgba(163, 125, 240, 0.58);
    background: rgba(137, 87, 229, 0.16);
    color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(163, 125, 240, 0.16);
}

.admin-product-details-panel__template-button--ghost:hover,
.admin-product-details-panel__template-button--ghost:focus-visible {
    background: rgba(224, 227, 230, 0.16);
    border-color: rgba(139, 148, 158, 0.48);
}

.admin-product-details-panel__template-button:disabled,
.admin-product-details-panel__template-button[aria-disabled='true'] {
    border-color: rgba(139, 148, 158, 0.18);
    background: rgba(139, 148, 158, 0.08);
    color: rgba(139, 148, 158, 0.65);
    box-shadow: none;
    cursor: default;
    pointer-events: none;
    opacity: 0.45;
    filter: grayscale(0.35);
}

.admin-product-details-panel__template-button:disabled:focus,
.admin-product-details-panel__template-button:disabled:focus-visible,
.admin-product-details-panel__template-button[aria-disabled='true']:focus,
.admin-product-details-panel__template-button[aria-disabled='true']:focus-visible {
    outline: none;
    box-shadow: none;
}

.admin-product-details-panel__template-field .admin-product-details-panel__input {
    min-height: 0;
    position: relative;
    z-index: 1;
}

.admin-product-details-panel__json-field {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.admin-product-details-panel__field[data-field-key="product_short_specifications"],
.admin-product-details-panel__field[data-field-key="specifications"],
.admin-product-details-panel__field[data-field-key="product_benefits"],
.admin-product-details-panel__field[data-field-key="product_advantages"] {
    gap: 0;
}

.admin-product-details-json {
    display: grid;
    flex: 1 1 auto;
    margin-top: 0.25rem;
    width: 100%;
    min-height: 0;
    min-width: 0;
    align-content: start;
    border: 1px solid #2e3846;
    border-radius: 0.75rem;
    background: #0f1520;
    overflow: hidden;
}

.admin-product-details-json__list {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    min-width: 0;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    overflow-y: auto;
    overflow-x: hidden;
}

.admin-product-details-json__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-row: 2;
    width: 100%;
    min-height: 8rem;
    padding: 1rem;
    box-sizing: border-box;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    text-align: center;
}

.admin-product-details-json__row {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 0.625rem;
    align-items: center;
    padding: 0.625rem;
    box-sizing: border-box;
    border: 1px solid rgba(163, 125, 240, 0.16);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    cursor: grab;
}

.admin-product-details-json__row--dragging {
    opacity: 0.35;
}

.admin-product-details-json__row--drop-target {
    border-color: rgba(163, 125, 240, 0.52);
    background: rgba(137, 87, 229, 0.12);
}

.admin-product-details-json__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(139, 148, 158, 0.24);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: border-color var(--transition-base), background var(--transition-base), color var(--transition-base);
}

.admin-product-details-json__remove {
    font-size: 1.125rem;
    line-height: 1;
}

.admin-product-details-json__remove:hover,
.admin-product-details-json__remove:focus-visible {
    outline: none;
    border-color: rgba(163, 125, 240, 0.48);
    background: rgba(137, 87, 229, 0.14);
    color: var(--color-white);
}

.admin-product-details-json__row:active {
    cursor: grabbing;
}

.admin-product-details-json__row--template {
    cursor: default;
    grid-template-columns: minmax(0, 1fr) auto;
}

.admin-product-details-json__row--single {
    grid-template-columns: minmax(0, 1fr) auto;
}

.admin-product-details-json__row--single .admin-product-details-json__input[data-admin-json-pairs-key] {
    display: none;
}

.admin-product-details-json__template-label {
    min-width: 0;
    padding: 0.625rem;
    font-size: 0.875rem;
    color: var(--color-accent);
    background: rgba(163, 125, 240, 0.08);
    border: 1px solid rgba(163, 125, 240, 0.18);
    border-radius: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-product-details-json__remove--template {
    align-self: center;
}

.admin-product-details-json__input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.admin-template-picker-modal__menu {
    position: absolute;
    top: 0;
    left: 0;
    right: auto;
    width: max-content;
    min-width: 0;
    max-width: min(42rem, calc(100vw - 2rem));
    z-index: 420;
    padding: 0;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.admin-template-picker-modal__status {
    border: 0;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    background: rgba(137, 87, 229, 0.12);
    color: var(--color-text-secondary);
    padding: 0.5rem 0.625rem;
    font-size: 0.875rem;
}

.admin-template-picker-modal__list {
    display: grid;
    gap: 0;
    max-height: 12rem;
    overflow-y: auto;
}

.admin-template-picker-modal__item {
    display: grid;
    grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    background: transparent;
    color: var(--color-text);
    padding: 0.5rem 0.625rem;
    text-align: left;
    cursor: pointer;
    transition: border-color var(--transition-base), background var(--transition-base), color var(--transition-base);
}

.admin-template-picker-modal__item:last-child {
    border-bottom: 0;
}

.admin-template-picker-modal__item:hover,
.admin-template-picker-modal__item:focus-visible {
    outline: none;
    border-color: rgba(163, 125, 240, 0.45);
    background: rgba(137, 87, 229, 0.12);
}

.admin-template-picker-modal__uid,
.admin-template-picker-modal__name {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-template-picker-modal__uid {
    color: var(--color-white);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
    font-size: 0.8125rem;
}

.admin-template-picker-modal__name {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

.admin-product-details-panel__select {
    width: 100%;
}

@media (max-width: 768px) {
    .admin-product-details-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .admin-product-details-nav {
        padding-right: 0;
        padding-bottom: 0.75rem;
        border-right: 0;
        border-bottom: 1px solid var(--color-gray-border);
        max-height: 12rem;
    }

    .admin-product-details-workspace {
        padding: 0.875rem;
    }

    .admin-product-details-json__row {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

.admin-product-details-json__input[data-admin-json-pairs-value] {
        min-width: 8rem;
    }

    .admin-product-details-json__row--template {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

.admin-product-details-form__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.admin-product-details-form__actions .admin-btn {
    width: auto;
}

.admin-category-sort-form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 1rem;
}

.admin-category-sort-form .admin-field {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.admin-tag-select--categories-order {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.admin-tag-select__box--categories-order {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.admin-category-sort-form__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.admin-tag-select__box--categories-order {
    cursor: default;
}

.admin-tag-select__selected--categories-order {
    min-height: 0;
    height: auto;
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0.125rem;
}

.admin-tag-select__tag--category-order {
    width: auto;
    min-height: 3rem;
    max-width: min(100%, 24rem);
    padding: 0.5rem 0.875rem;
    align-items: center;
}

.admin-tag-select__tag--category-order-inactive {
    border-color: rgba(139, 148, 158, 0.36);
    background: rgba(139, 148, 158, 0.1);
    color: rgba(230, 237, 243, 0.72);
}

.admin-product-sort-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-product-sort-form {
    position: relative;
}

.admin-product-sort-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(13, 17, 23, 0.6);
    border: 1px solid rgba(48, 54, 61, 0.5);
    border-radius: 0.5rem;
    cursor: grab;
    transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.admin-product-sort-item:hover {
    background: rgba(13, 17, 23, 0.85);
    border-color: rgba(139, 148, 158, 0.4);
}

.admin-product-sort-item--dragging {
    opacity: 0.5;
    cursor: grabbing;
    border-color: rgba(88, 166, 255, 0.5);
}

.admin-product-sort-item--drop-target {
    border-color: rgba(88, 166, 255, 0.7);
    box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.15);
}

.admin-product-sort-item--inactive {
    opacity: 0.5;
    background: rgba(139, 148, 158, 0.08);
    border-color: rgba(139, 148, 158, 0.2);
}

.admin-product-sort-item--inactive:hover {
    background: rgba(139, 148, 158, 0.12);
}

.admin-product-sort-item__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.admin-product-sort-item__left {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.admin-product-sort-item__media {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 0.375rem;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-product-sort-item__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.admin-product-sort-item__thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(139, 148, 158, 0.5);
}

.admin-product-sort-item__thumb--placeholder svg {
    width: 1.25rem;
    height: 1.25rem;
}

.admin-product-sort-item__info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    flex: 1;
}

.admin-product-sort-item__name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #e6edf3;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-product-sort-item__sku {
    font-size: 0.8125rem;
    color: rgba(139, 148, 158, 0.8);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-product-sort-item__controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    border-left: 1px solid rgba(139, 148, 158, 0.25);
    padding-left: 0.875rem;
}

.admin-product-sort-item__control-group {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding-left: 0.75rem;
    border-left: 1px solid rgba(139, 148, 158, 0.2);
}

.admin-product-sort-item__control-group:first-child {
    border-left: 0;
    padding-left: 0;
}

.admin-product-sort-item__move-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.45rem;
    border: 1px solid rgba(139, 148, 158, 0.35);
    background: rgba(13, 17, 23, 0.7);
    color: rgba(230, 237, 243, 0.9);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.admin-product-sort-item__move-btn svg {
    width: 0.95rem;
    height: 0.95rem;
}

.admin-product-sort-item__move-btn:hover:not(:disabled) {
    background: rgba(88, 166, 255, 0.12);
    border-color: rgba(88, 166, 255, 0.65);
    color: rgba(173, 216, 255, 0.95);
}

.admin-product-sort-item__move-btn:focus-visible {
    outline: 2px solid rgba(88, 166, 255, 0.8);
    outline-offset: 2px;
}

.admin-product-sort-item__move-btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    border-color: rgba(139, 148, 158, 0.25);
    color: rgba(139, 148, 158, 0.65);
}

.admin-product-sort-edge-status {
    position: absolute;
    left: 50%;
    z-index: 5;
    width: min(100%, 32rem);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(88, 166, 255, 0.35);
    background: rgba(9, 14, 20, 0.92);
    box-shadow: 0 0.5rem 1.25rem rgba(2, 6, 12, 0.35);
    font-size: 0.8125rem;
    line-height: 1.35;
    color: rgba(173, 216, 255, 0.95);
    text-align: center;
    transform: translate(-50%, -0.25rem);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.admin-product-sort-edge-status--top {
    top: 0;
}

.admin-product-sort-edge-status--bottom {
    bottom: 0;
}

.admin-product-sort-edge-status--active {
    opacity: 1;
    visibility: visible;
}

.admin-product-sort-edge-status--top.admin-product-sort-edge-status--active {
    transform: translate(-50%, -0.75rem);
}

.admin-product-sort-edge-status--bottom.admin-product-sort-edge-status--active {
    transform: translate(-50%, 0.75rem);
}

.admin-product-images-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(2px);
    border-radius: inherit;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.admin-product-images-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.admin-product-images-overlay__spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: admin-spinner-rotate 0.7s linear infinite;
}

.admin-product-images-overlay__text {
    font-size: var(--font-size-sm);
    color: #fff;
}

@keyframes admin-spinner-rotate {
    to {
        transform: rotate(360deg);
    }
}

.admin-tag-select .admin-select-wrap {
    position: static;
}

.admin-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-toggle--disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.admin-toggle__input {
    width: 1rem;
    height: 1rem;
}

.admin-toggle--disabled .admin-toggle__input {
    cursor: not-allowed;
}

.admin-toggle__label {
    font-size: var(--font-size-sm);
}

.admin-config-form {
    display: grid;
    gap: var(--spacing-lg);
}

.admin-config-group {
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    background: rgba(13, 17, 23, 0.58);
    padding: 0 0.875rem 0.875rem;
}

.admin-config-group + .admin-config-group {
    margin-top: 0.125rem;
}

.admin-config-group__title {
    margin: 0 0 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0;
    border-top: 1px solid rgba(48, 54, 61, 0.9);
    border-bottom: 1px solid rgba(48, 54, 61, 0.9);
    font-size: 1.1875rem;
    line-height: 1.2;
    color: var(--color-text);
    letter-spacing: 0.01em;
}

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

.admin-config-bool {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--color-border);
    background: rgba(13, 17, 23, 0.65);
    border-radius: 0.5rem;
    min-height: 2.5625rem;
    padding: 0.5rem 0.625rem;
}

.admin-config-bool--fullwidth {
    width: 100%;
}

.admin-config-bool__input {
    width: 1rem;
    height: 1rem;
}

.admin-config-bool__label {
    font-size: var(--font-size-sm);
}

.admin-config-form__actions {
    display: flex;
    justify-content: flex-end;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 0.5625rem;
    padding: 0.5rem 0.875rem;
    cursor: pointer;
    font-weight: var(--font-weight-medium);
    transition: background-color var(--transition-base), border-color var(--transition-base), color var(--transition-base);
}

.admin-btn--primary {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

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

.admin-btn--ghost {
    width: 100%;
    border-color: #2e3846;
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.03);
}

.admin-btn--compact {
    width: auto;
    min-height: 1.6875rem;
    padding: 0.1875rem 0.625rem;
    font-size: 0.75rem;
    line-height: 1.15;
}

.admin-btn--ghost:hover {
    border-color: var(--color-primary);
    color: var(--color-white);
}

.admin-dashboard__scroll .admin-btn {
    min-height: 1.875rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

.admin-dashboard__scroll .admin-field__input {
    font-size: var(--font-size-sm);
}

.admin-users-list .admin-field__input[readonly] {
    color: var(--color-text-muted);
}

.admin-dashboard__scroll .admin-btn--primary {
    border-color: rgba(163, 125, 240, 0.45);
    background: linear-gradient(135deg, #7f57d9 0%, #6f46cf 100%);
    box-shadow: 0 6px 16px rgba(111, 70, 207, 0.28);
}

.admin-dashboard__scroll .admin-btn--primary:hover {
    background: linear-gradient(135deg, #9165e8 0%, #7f57d9 100%);
    border-color: rgba(163, 125, 240, 0.7);
}

.admin-btn--danger {
    border-color: rgba(255, 123, 114, 0.45);
    background: rgba(255, 123, 114, 0.15);
    color: var(--color-danger);
}

.admin-btn--danger:hover {
    background: rgba(255, 123, 114, 0.25);
    border-color: rgba(255, 123, 114, 0.7);
}

.admin-btn--success {
    border-color: rgba(87, 171, 90, 0.45);
    background: rgba(87, 171, 90, 0.15);
    color: var(--color-success);
}

.admin-btn--success:hover {
    background: rgba(87, 171, 90, 0.25);
    border-color: rgba(87, 171, 90, 0.7);
}

@media (max-width: 1279px) {
    .admin-user-form__row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1023px) {
    body.admin-standalone {
        overflow: auto;
    }

    body.admin-standalone .admin-standalone-main {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    body.admin-standalone .admin-area {
        height: auto;
        padding-bottom: var(--spacing-2xl);
    }

    .admin-dashboard {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .admin-dashboard__sidebar {
        position: static;
        min-height: 0;
        max-height: none;
    }

    .admin-dashboard__content {
        height: auto;
    }

    .admin-topbar {
        position: static;
    }

    .admin-dashboard__scroll {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .admin-panel-card--category-sort {
        min-height: 0;
    }

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

    .admin-product-card {
        flex-direction: column;
    }

    .admin-product-card__thumb {
        width: 100%;
        max-width: 6rem;
        height: 6rem;
    }

    .admin-product-images-form__actions {
        align-items: stretch;
    }

    .admin-product-images-form__actions .admin-btn {
        width: 100%;
    }

    .admin-category-sort-form__actions {
        align-items: stretch;
    }

    .admin-category-sort-form__actions .admin-btn {
        width: 100%;
    }

    .admin-tag-select__tag--category-order {
        width: 100%;
    }

    .admin-product-sort-item__content {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.75rem;
    }

    .admin-product-sort-item__left {
        gap: 0.75rem;
    }

    .admin-product-sort-item__controls {
        border-left: 0;
        border-top: 1px solid rgba(139, 148, 158, 0.25);
        padding-left: 0;
        padding-top: 0.625rem;
        flex-wrap: wrap;
        gap: 0.625rem;
    }

    .admin-product-sort-item__control-group {
        border-left: 0;
        padding-left: 0;
    }

    .admin-product-sort-item__media {
        width: 2.5rem;
        height: 2.5rem;
    }
}

@media (max-width: 767px) {
    .admin-user-form__row {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .admin-topbar__status {
        margin: 0;
        max-width: 100%;
        width: 100%;
    }

    .admin-topbar__status .alert {
        white-space: normal;
    }

    .admin-topbar__meta,
    .admin-topbar__logout {
        align-items: flex-start;
        justify-content: flex-start;
    }

}

/* Forms */
.contact__form {
    max-width: 500px;
    background: var(--color-card-bg);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    margin-top: var(--spacing-lg);
    margin-left: 0;
    margin-right: auto;
}

.contact__field {
    margin-bottom: var(--spacing-md);
}

.contact__label {
    display: block;
    margin-bottom: 4px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact__label-note {
    text-transform: none;
    font-weight: var(--font-weight-normal);
    opacity: 0.8;
}

.contact__input, .contact__textarea {
    width: 100%;
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: var(--color-body-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    color: var(--color-text);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.contact__input:focus, .contact__textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(137, 87, 229, 0.3);
}

.contact__textarea {
    resize: none;
}

.contact__submit {
    background: var(--color-primary-dark);
    color: var(--color-white);
    padding: var(--spacing-sm) var(--spacing-xl);
    border-radius: var(--border-radius-md);
    border: none;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: transform 0.1s, background var(--transition-base);
}

.contact__submit:hover {
    background: var(--color-primary);
}

.contact__actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

@media (max-width: 1023px) {
    .contact__actions {
        gap: var(--spacing-sm);
    }
    .contact__disclaimer {
        font-size: 10px;
    }
}

.contact__disclaimer {
    font-size: 10px;
    line-height: 1.3;
    color: var(--color-text-muted);
    max-width: 250px;
}

.contact__submit:active {
    transform: scale(0.98);
}

.contact__submit:disabled {
    background-color: var(--color-secondary);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 0;
    margin: calc(var(--breadcrumbs-outer-gap) - 2px) 0 0;
}

.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    font-size: 12px;
    color: var(--color-text-muted);
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.breadcrumbs__item:not(:last-child)::after {
    content: '/';
    margin-left: var(--spacing-xs);
    opacity: 0.5;
}

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

.breadcrumbs__link:hover {
    color: var(--color-primary);
}

.breadcrumbs__item--active {
    color: var(--color-text);
}

/* Footer */
.footer {
    background-color: var(--color-body-bg);
    border-top: 1px solid var(--color-border);
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    color: var(--color-text-muted);
}

.footer__columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer__logo-block {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer__brand-text {
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-lg);
    color: var(--color-white);
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer__col--info {
    gap: 2px;
}

.footer__col-title {
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0; /* Reset margin, use gap instead */
}

.footer__list {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    line-height: 1.4;
}

.footer__list li {
    margin: 0;
}

.footer__link {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    transition: color var(--transition-base);
    text-decoration: none;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer__link:hover {
    color: var(--color-white);
}

.footer__icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.footer__icon--phone {
    -webkit-mask-image: url(/assets/images/phone.svg);
    mask-image: url(/assets/images/phone.svg);
}

.footer__icon--mail {
    -webkit-mask-image: url(/assets/images/mail.svg);
    mask-image: url(/assets/images/mail.svg);
}

.footer__icon--pin {
    -webkit-mask-image: url(/assets/images/map-pin.svg);
    mask-image: url(/assets/images/map-pin.svg);
}

.footer__info {
    font-size: var(--font-size-sm);
    line-height: 1.4;
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-border);
}

.footer__copyright {
    font-size: var(--font-size-sm);
}

.footer__socials {
    display: flex;
    gap: var(--spacing-md);
}

.footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: transform var(--transition-base), background-color var(--transition-base), opacity var(--transition-base);
    opacity: 0.8;
}

.footer__social-link:hover {
    transform: scale(1.1);
    opacity: 1;
}

.footer__social-link--tg {
    background-color: #229ED9;
}

.footer__social-link--wa {
    background-color: #25D366;
}

.footer__social-link--max {
    background: linear-gradient(135deg, #00b4ff 0%, #a033ff 100%);
}

.footer__social-link img {
    width: 18px;
    height: auto;
    max-height: 18px;
    filter: brightness(0) invert(1);
}

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

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

    .footer__col--info {
        gap: 0;
    }
    
    .footer__bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--spacing-lg);
    }
}

/* Final override to fix double borders and paddings in contact form */
.contact-form-wrapper .contact__form {
    max-width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

@media (max-width: 1023px) {
    .contact-bottom-row {
        display: flex;
        flex-direction: column-reverse; /* Swap map and form on mobile */
    }

    .card--map {
        height: 400px !important;
    }
}

/* ==========================================================================
   Product Card
   ========================================================================== */
.product {
    --product-main-image-height-desktop: 440px;
    --product-main-image-height-mobile: 300px;
    --product-thumb-size-desktop: 68px;
    --product-thumb-size-mobile: 72px;
    padding: 0 0 var(--spacing-xl) 0;
}

@media (min-width: 1024px) {
    .product {
        --product-main-image-height-desktop: 400px;
    }
}

.product .container {
    position: relative;
}

.product .container::before {
    content: none;
    position: absolute;
    top: -24px;
    right: var(--spacing-md);
    width: clamp(220px, 38vw, 420px);
    height: clamp(220px, 38vw, 420px);
    background: radial-gradient(circle, rgba(163, 125, 240, 0.14) 0%, rgba(163, 125, 240, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.product-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: var(--spacing-2xl);
    margin-top: calc(var(--breadcrumbs-outer-gap) / 2);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-xl);
    border: 1px solid var(--color-border);
    border-radius: calc(var(--border-radius-md) * 2);
    background: transparent;
    box-shadow: var(--shadow-md);
}

.product .container > .product-card:last-child {
    margin-bottom: 0;
}

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

.product-card__gallery {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    height: 100%;
    min-width: 0;
}

.product-card__slider {
    position: relative;
    width: 100%;
    height: var(--product-main-image-height-desktop);
    min-height: var(--product-main-image-height-desktop);
    max-height: var(--product-main-image-height-desktop);
    background-color: #10151d;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    cursor: grab;
    user-select: none;
}

.product-card__discount-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.625rem;
    border-radius: 999px;
    background: #d32f2f;
    color: var(--color-white);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    line-height: 1;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 18px rgba(211, 47, 47, 0.34);
    pointer-events: none;
}

.product-card__slider:active {
    cursor: grabbing;
}

.product-card__slider-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-card__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(100%);
}

.product-card__slide--active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.product-card__slide--prev {
    transform: translateX(-100%);
}

.product-card__slide--next {
    transform: translateX(100%);
}

.product-card__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.product-card__dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
}

.product-card__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background-color: var(--color-border);
    cursor: pointer;
    padding: 0;
    transition: background-color var(--transition-base), transform var(--transition-base);
}

@media (hover: hover) and (pointer: fine) {
    .product-card__dot:hover {
        background-color: var(--color-text-muted);
    }
}

.product-card__dot:focus {
    outline: none;
}

.product-card__dot:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.product-card__dot--active {
    background-color: var(--color-primary);
    transform: scale(1.2);
}

.product-card__thumbs {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: nowrap;
    flex-shrink: 0;
    width: max-content;
    margin-left: auto;
    margin-right: auto;
}

.product-card__thumbs-wrap {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.product-card__thumbs-viewport {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: auto;
    cursor: grab;
}

.product-card__thumbs-viewport::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.product-card__thumbs-viewport--dragging {
    cursor: grabbing;
}

.product-card__thumb {
    width: var(--product-thumb-size-desktop);
    min-width: var(--product-thumb-size-desktop);
    max-width: var(--product-thumb-size-desktop);
    height: var(--product-thumb-size-desktop);
    min-height: var(--product-thumb-size-desktop);
    max-height: var(--product-thumb-size-desktop);
    flex: 0 0 var(--product-thumb-size-desktop);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    overflow: hidden;
    background: none;
    padding: 0;
    transition: border-color var(--transition-base);
}

.product-card__thumb--active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px rgba(163, 125, 240, 0.18);
}

@media (hover: hover) and (pointer: fine) {
    .product-card__thumb:hover {
        border-color: var(--color-primary);
        box-shadow: 0 0 0 1px rgba(163, 125, 240, 0.18);
    }
}

.product-card__thumb:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

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

.product-card__info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    height: 100%;
}

.product-card__title {
    font-size: var(--font-size-h2);
    margin-bottom: 0;
    line-height: 1.2;
}

.product-card__sku {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.product-card__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-md);
}

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

.product-card__brand {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    text-align: left;
}

@media (min-width: 1024px) {
    .product-card__meta:not(.product-card__meta--single) .product-card__brand {
        justify-self: end;
        text-align: right;
    }

    .product-card__meta--single .product-card__brand {
        justify-self: end;
        text-align: right;
    }

    .product-card__info {
        gap: 0.7rem;
    }

    .product-card__availability .status {
        line-height: 1.1;
    }

    .product-card__info > .product-card__meta + .product-card__availability {
        margin-top: -5px;
    }
}

.product-card__sku span:first-child {
    margin-right: var(--spacing-xs);
}

.product-card__brand span:first-child {
    margin-right: var(--spacing-xs);
}

.product-card__meta-value {
    color: var(--color-text);
    font-weight: var(--font-weight-medium);
}

@media (max-width: 1023px) {
    .product-card__meta {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
    }

    .product-card__brand {
        text-align: left;
    }
}

.product-card__price-block {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-2xl);
    flex-wrap: wrap;
}

.product-card__price-item {
    display: flex;
    flex-direction: column;
    gap: 0.0625rem;
}

.product-card__price-item--discounted .product-card__price {
    line-height: 1;
}

.product-card__price-item--discounted .product-card__price--discount {
    margin-top: -0.1875rem;
}

.product-card__price-label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-muted);
    line-height: 1.2;
}

.product-card__price {
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    letter-spacing: 0.01em;
    line-height: 1;
}

.product-card__price--old {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(241, 244, 248, 0.45);
}

.product-card__price--discount {
    color: var(--color-primary);
}

.product-card__price-secondary {
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    line-height: 1;
}

.product-card__availability {
    margin-top: 0;
    margin-bottom: 0;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
}

.status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status--in-stock::before {
    background-color: var(--color-success);
}

.status--on-order::before {
    background-color: var(--color-warning);
}

.status--out-of-stock::before {
    background-color: var(--color-danger);
}

.product-card__short-desc {
    color: #b8c2ce;
    line-height: 1.6;
}

.product-card__short-specs {
    margin-top: 0;
    margin-bottom: var(--spacing-xs);
}

.product-card__actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-top: auto;
    padding-top: var(--spacing-md);
}

@media (min-width: 1024px) {
    .product-card {
        margin-bottom: var(--spacing-lg);
    }

    .product-card__slider {
        flex: 1 1 auto;
    }

    .product-card__consultation {
        margin-bottom: -2px;
    }
}

@media (min-width: 1024px) {
    .product-card__gallery {
        display: grid;
        grid-template-rows: minmax(var(--product-main-image-height-desktop), 1fr) auto auto;
        height: 100%;
    }

    .product-card__gallery--single {
        grid-template-rows: minmax(var(--product-main-image-height-desktop), 1fr);
        gap: 0;
    }

    .product-card__slider {
        height: 100%;
        min-height: var(--product-main-image-height-desktop);
        max-height: none;
    }
}

.product-card__btn {
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
}

.product-card__btn--secondary {
    width: min(100%, 232px);
    padding: 0.75rem 1.25rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 2px solid transparent;
    box-shadow: 0 10px 20px rgba(137, 87, 229, 0.24);
}

.product-card__btn--secondary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
}

.product-card__btn--secondary:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}

.product-card__benefits {
    display: grid;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xs);
}

.product-card__benefits li {
    position: relative;
    color: var(--color-text);
    font-size: var(--font-size-sm);
    padding-left: 1rem;
}

.product-card__benefits li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-success);
}

.product-card__consultation {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    padding: 0.5625rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--border-radius-md);
    background: rgba(255, 255, 255, 0.04);
}

.product-card__consultation-hit {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    width: 100%;
    color: inherit;
    border-radius: calc(var(--border-radius-md) - 2px);
    transition: background-color 0.12s ease;
}

.product-card__consultation-icon {
    position: relative;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    flex-shrink: 0;
    background-color: var(--color-primary);
    transition: background-color var(--transition-base);
}

.product-card__consultation-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--color-white);
    -webkit-mask: url(/assets/images/phone.svg) no-repeat center;
    mask: url(/assets/images/phone.svg) no-repeat center;
    -webkit-mask-size: 1rem;
    mask-size: 1rem;
}

.product-card__consultation-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.product-card__consultation-title {
    color: var(--color-white);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    line-height: 1.2;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.12em;
    transition: color var(--transition-base);
}

.product-card__consultation-phone {
    color: #f1f4f8;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    line-height: 1.2;
    letter-spacing: 0.02em;
    transition: color var(--transition-base);
}

@media (hover: hover) and (pointer: fine) {
    .product-card__consultation-hit:hover .product-card__consultation-title,
    .product-card__consultation-hit:hover .product-card__consultation-phone {
        color: var(--color-primary);
    }

    .product-card__consultation-hit:hover .product-card__consultation-icon {
        background-color: var(--color-primary-dark);
    }

    .product-card__consultation-hit:hover .product-card__consultation-icon {
        animation: consultationPhonePulse 1.1s ease-in-out infinite;
    }
}

.product-card__consultation-hit:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

@media (hover: none) and (pointer: coarse) {
    .product-card__consultation-hit {
        -webkit-tap-highlight-color: transparent;
    }

    .product-card__consultation-hit:active {
        background-color: rgba(163, 125, 240, 0.2);
    }

    .product-card__consultation-hit:active .product-card__consultation-title,
    .product-card__consultation-hit:active .product-card__consultation-phone {
        color: var(--color-primary);
    }

    .product-card__consultation-hit:active .product-card__consultation-icon {
        animation: consultationPhonePulse 0.35s ease-in-out 1;
    }
}

@keyframes consultationPhonePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

.product-card__messengers-list {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* ==========================================================================
   Product Advantages Block
   ========================================================================== */
.product-advantages {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.product-advantages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
    gap: var(--spacing-md);
    width: min(100%, 62rem);
    padding: 0;
}

.product-advantages__item {
    display: block;
    min-width: 0;
    line-height: 1.45;
}

.product-advantages__item::after {
    content: '';
    display: block;
    clear: both;
}

.product-advantages__icon {
    float: left;
    width: 1.5rem;
    height: 1.27rem;
    margin: 0 0.375rem 0 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #a985ff;
    overflow: visible;
}

.product-advantages__icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.product-advantages__text {
    display: inline;
    margin: 0;
    padding-left: 0;
    color: #c7d1de;
    font-size: var(--font-size-sm);
    line-height: 1.45;
}

.product-advantages__item .product-advantages__text {
    margin: 0;
    padding-left: 0;
}

.product-tab-panel .product-advantages {
    margin-top: var(--spacing-lg);
    margin-bottom: 0;
}

.product-details + .product-advantages,
.product-tab-panel .product-advantages {
    margin-top: 0;
}

/* ==========================================================================
   Product Details & Tabs
   ========================================================================== */
.product-details {
    position: relative;
    z-index: 1;
    margin-top: 0;
    padding: var(--spacing-md) var(--spacing-xl) var(--spacing-xl);
    border: 1px solid var(--color-border);
    border-radius: calc(var(--border-radius-md) * 2);
    background: transparent;
}

@media (min-width: 1024px) {
    .product-details {
        padding-top: 0;
    }
    .product-tabs__nav {
        padding-top: 12px;
    }
    .product-tabs__tab {
        padding-top: 0;
        padding-bottom: calc(var(--spacing-md) / 2);
    }
    .product-tab-panel--active::before {
        display: none;
    }
    .product-tab-panel--active > *:first-child {
        margin-top: 0;
    }
    .product-recommendations {
        padding-top: 0;
    }
    .product-recommendations__header {
        padding-top: 14px;
        padding-bottom: 19px;
    }
    .product-recommendations__carousel {
        margin-top: 0;
    }
}

.product-recommendations {
    margin-top: var(--spacing-lg);
    padding: 0 var(--spacing-xl) var(--spacing-xl);
    border: 1px solid var(--color-border);
    border-radius: calc(var(--border-radius-md) * 2);
    background: transparent;
    overflow: hidden;
}

.product-recommendations__header {
    margin-bottom: 0;
}

.product-recommendations__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
}

.product-recommendations__carousel {
    margin-top: 0;
    position: relative;
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    /* Нижний padding+margin компенсируют обрезку box-shadow кнопок у нижнего края:
       overflow:hidden клипает тень, поэтому выделяем ей место изнутри
       и убираем лишний отступ снаружи встречным отрицательным margin. */
    padding-bottom: 1rem;
    margin-bottom: -1rem;
}

.product-recommendations__track {
    display: flex;
    gap: var(--spacing-md);
    will-change: transform;
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.product-recommendations__track--no-transition {
    transition: none;
}

.product-recommendations__card {
    flex: 0 0 calc((100% - (var(--spacing-md) * 3)) / 4);
    min-width: 0;
    flex-shrink: 0;
}

.product-recommendations .catalog-card__request-btn {
    box-shadow: 0 6px 14px rgba(137, 87, 229, 0.22);
}

.product-recommendations__carousel--dragging {
    cursor: grabbing;
}

.product-recommendations__carousel--dragging .product-recommendations__card,
.product-recommendations__carousel--dragging .product-recommendations__card * {
    pointer-events: none;
}

.product-tabs__nav {
    display: flex;
    gap: var(--spacing-xs);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0;
}

.product-tabs__content {
    padding-top: 0;
}

.product-tabs__tab {
    padding: 0 var(--spacing-lg) calc(var(--spacing-md) / 2);
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all var(--transition-base);
}

.product-tabs__tab:hover {
    color: var(--color-text);
}

.product-tabs__tab:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
}

.product-tabs__tab--active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.product-tab-panel {
    display: none;
}

.product-tab-panel--active {
    display: block;
}

.product-tab-panel--active::before {
    content: none;
    display: none;
    height: 0;
}

.product-tab-panel > *:first-child {
    margin-top: 0;
}

.product-tab-panel p {
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: #b8c2ce;
    line-height: 1.6;
}

.product-tab-panel p:first-child {
    margin-top: 0;
}

@media (min-width: 1024px) {
    .product-tabs__content {
        padding-top: 15px;
    }

    .specs-table {
        margin-top: 0;
    }
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--spacing-xs);
}

.specs-table th,
.specs-table td {
    padding: var(--spacing-xs) var(--spacing-sm);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    font-size: var(--font-size-sm);
}

.specs-table tr:first-child th,
.specs-table tr:first-child td {
    padding-top: 0;
}

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

.specs-table td {
    color: var(--color-text);
}

/* Таблицы характеристик на карточке товара:
   фон в стиле блока "Получить консультацию" + чередование строк для читаемости. */
.product-card__short-specs,
.product-details .specs-table {
    background: transparent;
}

.product-card__short-specs tr:nth-child(odd),
.product-details .specs-table tr:nth-child(odd) {
    background: transparent;
}

.product-card__short-specs tr:nth-child(even),
.product-details .specs-table tr:nth-child(even) {
    background: transparent;
}

.product-card__short-specs tr:nth-child(even) th,
.product-card__short-specs tr:nth-child(even) td,
.product-details .specs-table tr:nth-child(even) th,
.product-details .specs-table tr:nth-child(even) td {
    background-image: linear-gradient(to top, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
}

/* В карточках каталога/рекомендаций фон строк характеристик отключен:
   остаются только нижние линии для более нейтрального вида. */
.catalog-card__short-specs tr:nth-child(odd),
.catalog-card__short-specs tr:nth-child(even),
.catalog-card__short-specs tr:nth-child(odd) th,
.catalog-card__short-specs tr:nth-child(odd) td,
.catalog-card__short-specs tr:nth-child(even) th,
.catalog-card__short-specs tr:nth-child(even) td {
    background: transparent;
    background-image: none;
}

.product-card__short-specs th,
.product-card__short-specs td,
.product-details .specs-table th,
.product-details .specs-table td {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.product-video-embed {
    position: relative;
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background: #000;
}

.product-video-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ========================================================================== 
   Catalog Page
   ========================================================================== */
.catalog-page {
    padding: 0 0 var(--spacing-xl) 0;
}

.catalog-page__header {
    margin-bottom: var(--breadcrumbs-outer-gap);
}

.catalog-page__title {
    margin: 0;
    font-size: var(--font-size-h1);
}

.catalog-page__subtitle {
    margin: var(--spacing-sm) 0 0;
    color: var(--color-text-muted);
    max-width: 46rem;
}

.catalog-page__filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--breadcrumbs-outer-gap);
}

.catalog-page__filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-text-muted);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.01);
    transition: border-color var(--transition-base), color var(--transition-base), background-color var(--transition-base);
}

.catalog-page__filter-chip:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.catalog-page__filter-chip:hover {
    border-color: var(--color-primary);
    color: var(--color-text-muted);
    box-shadow: 0 0 0 1px rgba(163, 125, 240, 0.18);
}

.catalog-page__filter-chip--active {
    border-color: var(--color-primary);
    color: var(--color-text);
    background: none;
    box-shadow: 0 0 0 1px rgba(163, 125, 240, 0.18);
}

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

.catalog-page__filter-chip--active .catalog-page__filter-count {
    color: var(--color-text);
}

.catalog-page__filters--admin {
    margin-top: 0;
    margin-bottom: 0;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.catalog-page__filters--admin .catalog-page__filter-chip {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    min-height: 2rem;
}

@media (max-width: 768px) {
    .admin-product-sort-controls {
        padding: 0.75rem;
        gap: 0.5rem;
    }
}

.catalog-page__empty {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.015);
}

.catalog-page__empty h2 {
    margin: 0;
    font-size: var(--font-size-h3);
}

.catalog-page__empty p {
    margin: var(--spacing-sm) 0 0;
    color: var(--color-text-muted);
}

.catalog-page__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--spacing-md);
}

.catalog-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

@media (hover: hover) and (pointer: fine) {
    .catalog-card:hover {
        border-color: var(--color-primary);
        box-shadow: 0 0 0 1px rgba(163, 125, 240, 0.18);
    }
}

.catalog-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.catalog-card__media::before {
    content: '';
    display: block;
    padding-top: 100%;
}

.catalog-card__stretched-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
}

.catalog-card__stretched-link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
}

.catalog-card__media img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.catalog-card__badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: #d32f2f;
    color: var(--color-white);
    font-size: 0.8125rem;
    font-weight: var(--font-weight-bold);
}

.catalog-card__body {
    --catalog-card-content-gap: 0.4375rem;
    padding: 0.875rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: var(--catalog-card-content-gap);
}

.catalog-card__title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalog-card__title a {
    color: var(--color-text);
    text-decoration: none;
}

.catalog-card__title a:hover {
    color: var(--color-primary);
}

.catalog-card__availability {
    margin: 0;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.catalog-card .product-card__availability {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1;
    display: flex;
    align-items: center;
}

.catalog-card .status {
    font-size: 0.75rem;
    line-height: 1;
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.catalog-card .product-card__price-block {
    margin-top: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3125rem;
}

.catalog-card__footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.catalog-card__footer .catalog-card__request-btn {
    margin-top: calc(var(--catalog-card-content-gap) + 2px);
}

.catalog-card .product-card__price-label {
    font-size: 0.75rem;
}

.catalog-card .product-card__price {
    font-size: 1.05rem;
}

.catalog-card .product-card__price-secondary {
    font-size: 1.05rem;
}

.catalog-card .product-card__price-item + .product-card__price-item {
    margin-left: 0;
}

.catalog-card .product-card__price--old {
    font-size: 0.875rem;
}

.catalog-card__request-btn {
    width: 100%;
    justify-content: center;
    margin-top: 0;
    padding: 0.4375rem 0.875rem;
    font-size: 0.8125rem;
    line-height: 1.2;
    position: relative;
    z-index: 3;
}

.catalog-card__description {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.8125rem;
    line-height: 1.35;
    line-clamp: 3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    max-height: 4.05em;
    overflow: hidden;
}

.catalog-card__short-specs {
    margin-top: 0;
    margin-bottom: 0;
}

.catalog-card__short-specs th,
.catalog-card__short-specs td {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.3;
}

.catalog-card__short-specs th {
    width: 48%;
}

.catalog-card__short-specs td {
    text-align: right;
}

.catalog-pagination {
    margin-top: var(--spacing-lg);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.catalog-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    height: 2.1rem;
    padding: 0 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.8125rem;
    background: rgba(255, 255, 255, 0.01);
    transition: border-color var(--transition-base), color var(--transition-base), box-shadow var(--transition-base);
}

.catalog-pagination__link:hover {
    border-color: var(--color-primary);
    color: var(--color-text-muted);
    box-shadow: 0 0 0 1px rgba(163, 125, 240, 0.18);
}

.catalog-pagination__link--active {
    border-color: var(--color-primary);
    color: var(--color-text);
    background: none;
    box-shadow: 0 0 0 1px rgba(163, 125, 240, 0.18);
}

.catalog-pagination__link--nav {
    min-width: 4.2rem;
}

.catalog-pagination__label-short {
    display: none;
}

/* ==========================================================================
   Responsive: Product Card
   ========================================================================== */
@media (max-width: 1023px) {
    .modal__content {
        padding: var(--spacing-md);
    }

    .modal__close {
        top: 10px;
        right: 10px;
        width: 28px;
        height: 28px;
        opacity: 0.72;
    }

    .modal__close-icon {
        width: 18px;
        height: 18px;
    }

    .modal__title {
        margin-bottom: var(--spacing-sm);
        padding-right: 2.125rem;
        padding-left: 2.125rem;
    }

    .catalog-page {
        padding-bottom: var(--spacing-lg);
    }

    .catalog-page__header {
        margin-bottom: calc(var(--breadcrumbs-outer-gap) - 2px);
    }

    .catalog-page__title {
        font-size: 1.5rem;
    }

    .catalog-page__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.625rem;
    }

    .catalog-page__filters {
        gap: 0.375rem;
        margin-bottom: var(--breadcrumbs-outer-gap);
    }

    .catalog-page__filter-chip {
        padding: 0.375rem 0.625rem;
        font-size: 0.8125rem;
    }

    .catalog-card__badge {
        min-width: 2.25rem;
        padding: 0.2rem 0.45rem;
        font-size: 0.6875rem;
    }

    .catalog-card__body {
        --catalog-card-content-gap: 0.3125rem;
        padding: 0.625rem;
        gap: var(--catalog-card-content-gap);
    }

    .catalog-card__title {
        font-size: 0.875rem;
        line-height: 1.28;
    }

    .catalog-card .status {
        font-size: 0.625rem;
        line-height: 1;
        padding-top: 0;
        padding-bottom: 0;
        padding-left: 0.375rem;
        padding-right: 0.375rem;
    }

    .catalog-card .product-card__price-label {
        font-size: 0.625rem;
    }

    .catalog-card .product-card__price {
        font-size: 0.875rem;
    }

    .catalog-card .product-card__price-secondary {
        font-size: 0.875rem;
    }

    .catalog-card .product-card__price,
    .catalog-card .product-card__price--old,
    .catalog-card .product-card__price--discount,
    .catalog-card .product-card__price-secondary {
        white-space: nowrap;
    }

    .catalog-card .product-card__price--old {
        font-size: 0.75rem;
    }

    .catalog-card .product-card__price-item + .product-card__price-item {
        margin-left: 0;
    }

    .catalog-card__request-btn {
        margin-top: calc(var(--catalog-card-content-gap) + 2px);
        padding: 0.375rem 0.625rem;
        font-size: 0.6875rem;
        line-height: 1.2;
    }

    .catalog-card__description {
        font-size: 0.6875rem;
        line-height: 1.3;
    }

    .catalog-card__short-specs th,
    .catalog-card__short-specs td {
        font-size: 0.625rem;
        line-height: 1.25;
        padding: 0.1875rem 0.375rem;
    }

    .catalog-pagination {
        margin-top: var(--spacing-md);
        gap: 0.25rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: center;
        -webkit-overflow-scrolling: touch;
    }

    .catalog-pagination__link {
        min-width: 1.75rem;
        height: 1.75rem;
        padding: 0 0.375rem;
        font-size: 0.75rem;
        flex-shrink: 0;
    }

    .catalog-pagination__link--nav {
        min-width: 1.5rem;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .catalog-pagination__label-full {
        display: none;
    }

    .catalog-pagination__label-short {
        display: inline;
    }

    .product-card {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: calc(var(--spacing-md) + 5px);
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
    }

    .product-card__title {
        font-size: var(--font-size-h3);
    }

    .product-card__price {
        font-size: var(--font-size-h3);
    }

    .product-card__price-secondary {
        font-size: var(--font-size-h3);
    }

    .product-card__price--old {
        font-size: clamp(1rem, 4.2vw, 1.125rem);
    }

    .product > .container > .product-card .product-card__price-block {
        flex-direction: column;
        align-items: flex-start;
        flex-wrap: nowrap;
        gap: var(--spacing-sm);
    }

    .product > .container > .product-card .product-card__price-item {
        width: 100%;
        flex: 0 0 auto;
        min-width: 0;
    }

    .product-card__btn--secondary {
        width: 100%;
    }

    .product-card__actions {
        flex-direction: column;
        align-items: stretch;
        margin-top: var(--spacing-md);
        padding-top: 0;
    }

    .product-card__consultation {
        width: 100%;
    }

    .product > .container > .product-card .product-card__benefits {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .product > .container > .product-card .product-card__benefits li {
        width: 100%;
    }

    .product-card__messengers-list {
        justify-content: center;
    }

    .product-card__thumb {
        width: var(--product-thumb-size-mobile);
        min-width: var(--product-thumb-size-mobile);
        max-width: var(--product-thumb-size-mobile);
        height: var(--product-thumb-size-mobile);
        min-height: var(--product-thumb-size-mobile);
        max-height: var(--product-thumb-size-mobile);
        flex-basis: var(--product-thumb-size-mobile);
    }

    .product-card__slider {
        height: var(--product-main-image-height-mobile);
        min-height: var(--product-main-image-height-mobile);
        max-height: var(--product-main-image-height-mobile);
    }

    .product-details {
        padding: 17px var(--spacing-xl) var(--spacing-xl);
    }

    .product-card__availability .status {
        display: inline-flex;
        align-items: center;
        line-height: 1;
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    .product-card__availability {
        margin-top: 0;
        margin-bottom: 0;
        line-height: 1;
    }

    .product > .container > .product-card .product-card__info > .product-card__meta + .product-card__availability {
        margin-top: -1px;
    }

    .product > .container > .product-card .product-card__availability + .product-card__price-block {
        margin-top: -8px;
    }

    .product-recommendations {
        padding: 0 var(--spacing-xl) var(--spacing-xl);
    }

    .product-recommendations__header {
        padding-top: 12px;
        padding-bottom: 14px;
        margin-bottom: 0;
    }

    .product-recommendations__carousel {
        margin-top: 0;
    }

    .product-recommendations__track {
        gap: 0.5rem;
    }

    .product-recommendations__title {
        font-size: 1rem;
    }

    .product-recommendations .catalog-card__body {
        --catalog-card-content-gap: 0.25rem;
        padding: 0.5rem;
    }

    .product-recommendations .catalog-card__title {
        font-size: 0.6875rem;
        line-height: 1.18;
    }

    .product-recommendations .catalog-card__footer .catalog-card__request-btn,
    .product-recommendations .catalog-card__request-btn {
        margin-top: calc(var(--catalog-card-content-gap) + 1px);
        padding: 0.3125rem 0.5rem;
    }

    .product-recommendations .catalog-card__short-specs th,
    .product-recommendations .catalog-card__short-specs td {
        padding: 0.125rem 0.25rem;
    }

    .product-recommendations__card {
        flex: 0 0 calc((100% - 0.5rem) / 2);
        min-width: 0;
    }

    .product-advantages__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        padding: 0;
    }

    .product-advantages__icon {
        width: 1.75rem;
        height: 1.75rem;
        margin-right: var(--spacing-xs);
    }

    .product-advantages__text {
        font-size: var(--font-size-sm);
        line-height: 1.45;
    }

    .product-tabs__nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        border-bottom: none;
        margin-bottom: 12px;
        overflow: visible;
    }

    .product-tab-panel--active {
        overflow: visible;
    }

    .product-tabs__tab {
        width: auto;
        white-space: nowrap;
        text-align: center;
        padding: 0.375rem 0.625rem;
        border: 1px solid var(--color-border);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.01);
        color: var(--color-text-muted);
        margin-bottom: 0;
        font-size: 0.8125rem;
        transition: border-color var(--transition-base), box-shadow var(--transition-base), color var(--transition-base),
            background-color var(--transition-base);
    }

    .product-tabs__tab--active {
        border-color: var(--color-primary);
        color: var(--color-text);
        background: none;
        box-shadow: 0 0 0 1px rgba(163, 125, 240, 0.18);
    }

    @media (hover: hover) and (pointer: fine) {
        .product-tabs__tab:not(.product-tabs__tab--active):hover {
            border-color: var(--color-primary);
            color: var(--color-text-muted);
            box-shadow: 0 0 0 1px rgba(163, 125, 240, 0.18);
        }
    }

    .product-tabs__tab:focus-visible {
        outline: 2px solid var(--color-primary);
        outline-offset: 2px;
    }

    .product .container::before {
        top: -12px;
        right: 0;
    }
}
