:root {
    --primary: #1f4e79;
    --primary-dark: #15364f;
    --primary-soft: #e8f1f8;
    --secondary: #0f8b8d;
    --secondary-soft: #e6f6f6;
    --accent: #cf3d35;
    --accent-dark: #a92f29;
    --accent-soft: #fff0ef;
    --success: #2f7d55;
    --success-soft: #e8f5ee;
    --warning: #b27712;
    --warning-soft: #fff4df;
    --bg: #f3f6f9;
    --surface: #ffffff;
    --surface-muted: #f8fafb;
    --text: #1d252c;
    --muted: #66727a;
    --border: #dbe5ed;
    --border-strong: #c2d0dc;
    --footer-bg: #142638;
    --shadow: 0 16px 40px rgba(18, 42, 62, 0.1);
    --brand-gradient: linear-gradient(112deg, #142638 0%, #1f4e79 48%, #0f8b8d 82%, #b83a34 100%);
    --motion-fast: 160ms;
    --motion-base: 260ms;
    --motion-slow: 520ms;
}

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

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    min-width: 320px;
    background:
        linear-gradient(180deg, #f8fafb 0, var(--bg) 360px),
        var(--bg);
    color: var(--text);
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.5;
    overflow-x: clip;
}

main {
    flex: 1 0 auto;
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

img {
    max-width: 100%;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
}

img,
[style*="background-image"] {
    -webkit-touch-callout: none;
}

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

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--border);
    box-shadow: none;
    backdrop-filter: blur(12px);
    padding-bottom: 10px;
}

.header__top,
.header__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.header__top {
    padding: 10px 0;
}

.header__bottom {
    gap: 12px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 10px;
    background:
        linear-gradient(120deg, #15364f 0%, #1f4e79 58%, #356984 100%),
        var(--primary-dark);
    box-shadow: 0 14px 32px rgba(18, 42, 62, 0.16);
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 0;
    color: inherit;
    text-decoration: none;
}

.logo-img {
    width: min(230px, 48vw);
    height: 44px;
    object-fit: contain;
}

.logo-block > div {
    display: none;
}

.logo-text {
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 0;
}

.logo-subtitle {
    color: var(--muted);
    font-size: 12px;
}

.header__actions {
    display: flex;
    align-items: center;
    flex: none;
    gap: 10px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.main-nav a {
    position: relative;
    text-decoration: none;
    transition: color var(--motion-fast) ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 2px;
    border-radius: 999px;
    background: var(--secondary);
    opacity: 0;
    transform: scaleX(0.6);
    transition: opacity var(--motion-fast) ease, transform var(--motion-fast) ease;
}

.main-nav a:hover {
    color: var(--primary);
}

.main-nav a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.phone {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 7px;
    color: var(--primary-dark);
    font-weight: 700;
    padding: 0 4px;
    text-decoration: none;
    white-space: nowrap;
}

.mail-link {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--primary);
    text-decoration: none;
    transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease, color var(--motion-fast) ease;
}

.mail-link:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.mail-popover {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.mail-popover::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 100%;
    display: none;
    width: 100%;
    height: 12px;
}

.mail-popover__panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    z-index: 25;
    display: grid;
    min-width: 260px;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(18, 42, 62, 0.24);
    color: var(--primary-dark);
    opacity: 0;
    padding: 12px 14px;
    pointer-events: none;
    text-decoration: none;
    transform: translateY(6px);
    transition: opacity var(--motion-fast) ease, transform var(--motion-fast) ease;
}

.mail-popover__panel::before {
    content: "";
    position: absolute;
    right: 16px;
    bottom: -9px;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.96);
    transform: rotate(45deg);
}

.mail-popover__panel span,
.mail-popover__panel strong {
    position: relative;
    z-index: 1;
}

.mail-popover__panel span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.mail-popover__panel strong {
    font-size: 15px;
    line-height: 1.3;
}

.mail-popover:hover .mail-popover__panel,
.mail-popover:focus-within .mail-popover__panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mail-popover:hover::after,
.mail-popover:focus-within::after {
    display: block;
}

.location-popover {
    position: relative;
    z-index: 24;
    display: inline-flex;
    flex: none;
}

.location-btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--primary-dark);
    cursor: pointer;
    font-weight: 800;
    padding: 0 14px;
    white-space: nowrap;
    transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease, color var(--motion-fast) ease, transform var(--motion-fast) ease;
}

.location-btn:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary);
    transform: translateY(-1px);
}

.location-popover__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 35;
    display: grid;
    width: min(340px, calc(100vw - 32px));
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 42px rgba(18, 42, 62, 0.24);
    opacity: 0;
    padding: 12px;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity var(--motion-fast) ease, transform var(--motion-fast) ease;
}

.location-popover__panel::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 22px;
    width: 16px;
    height: 16px;
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.98);
    transform: rotate(45deg);
}

.location-popover__text {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 3px;
}

.location-popover__text strong {
    color: var(--primary-dark);
    font-size: 15px;
    line-height: 1.25;
}

.location-popover__text span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.location-popover__map {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 190px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--primary-soft);
}

.location-popover__map iframe,
.location-popover iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
    border-radius: 8px;
}

.location-popover.open .location-popover__panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.header__bottom .phone {
    color: rgba(255, 255, 255, 0.94);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.16);
}

.header__bottom .location-btn,
.header__bottom .mail-link,
.header__bottom .cart-btn {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.9);
}

.header__bottom .location-btn:hover,
.header__bottom .mail-link:hover,
.header__bottom .cart-btn:hover {
    border-color: white;
    background: white;
}

.header__bottom .cart-count {
    border-color: var(--primary-dark);
}

.cart-btn,
.btn {
    position: relative;
    z-index: 2;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: white;
    cursor: pointer;
    font-weight: 700;
    padding: 11px 16px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-btn:hover,
.btn:hover {
    background: var(--accent-dark);
    box-shadow: 0 10px 24px rgba(207, 61, 53, 0.2);
    transform: translateY(-1px);
}

.cart-count {
    min-width: 22px;
    border-radius: 999px;
    background: white;
    color: var(--accent);
    font-size: 12px;
    line-height: 22px;
    text-align: center;
    transform-origin: center;
}

.cart-count.is-bumping {
    animation: cartBump 420ms ease;
}

.cart-btn {
    width: 44px;
    min-width: 44px;
    padding: 0;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--accent);
}

.cart-btn > span:not(.cart-count) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.cart-btn:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: none;
}

.cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    border: 2px solid var(--surface);
    background: var(--accent);
    color: white;
    font-size: 11px;
    line-height: 16px;
}

.btn--ghost {
    border: 1px solid var(--primary);
    background: var(--surface);
    color: var(--primary);
}

.btn--ghost:hover {
    background: var(--primary-soft);
    box-shadow: none;
}

.btn--with-logo {
    gap: 10px;
    padding-left: 10px;
}

.btn__logo {
    display: inline-flex;
    width: 96px;
    height: 26px;
    flex: 0 0 96px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: white;
    overflow: hidden;
    padding: 3px 5px;
}

.btn__logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.btn__logo--kama {
    padding: 1px 3px;
}

.btn__logo--kama img {
    width: 220%;
    height: 220%;
    max-width: none;
    max-height: none;
    transform: scale(1.35);
    transform-origin: center;
}

.btn--with-logo > span:last-child {
    min-width: 0;
}

.btn--green {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    color: white;
    box-shadow: 0 14px 32px rgba(22, 163, 74, 0.26);
}

.btn--green:hover {
    background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
}

.catalog {
    position: relative;
    z-index: 12;
}

.catalog-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--primary-dark);
    cursor: pointer;
    font-weight: 700;
    padding: 11px 16px;
}

.catalog-btn:hover {
    background: white;
}

.catalog-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: min(780px, calc(100vw - 28px));
    max-height: min(68vh, 620px);
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity var(--motion-base) ease, transform var(--motion-base) ease;
}

.catalog-menu__head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    padding: 14px 16px;
}

.catalog-menu__head strong {
    color: var(--primary-dark);
    font-size: 15px;
}

.catalog-menu__head a {
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

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

.catalog-menu__cell {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    padding: 12px 14px;
    text-decoration: none;
}

.catalog-menu__cell:nth-child(3n) {
    border-right: 0;
}

.catalog-menu__cell span {
    min-width: 0;
}

.catalog-menu__cell small {
    display: inline-flex;
    min-width: 28px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 800;
    padding: 0 8px;
}

.catalog-menu__cell:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.catalog.open .catalog-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.search-box {
    position: relative;
    flex: 1;
}

.search-area {
    position: relative;
    flex: 1;
    min-width: 0;
}

.search-box i {
    position: absolute;
    top: 50%;
    left: 14px;
    color: var(--muted);
    transform: translateY(-50%);
}

.search-box input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    padding: 0 14px 0 42px;
    transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.header__bottom .quick-search {
    display: none;
}

.quick-search {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.quick-search button {
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease, color var(--motion-fast) ease;
}

.quick-search button:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.13);
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 18;
    display: grid;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 18px 42px rgba(18, 42, 62, 0.2);
}

.search-suggestions[hidden] {
    display: none;
}

.search-suggestion {
    display: grid;
    gap: 3px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    padding: 11px 14px;
    text-decoration: none;
}

.search-suggestion:last-child {
    border-bottom: 0;
}

.search-suggestion span {
    overflow: hidden;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-suggestion small {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-suggestion:hover,
.search-suggestion:focus {
    background: var(--primary-soft);
    color: var(--primary);
    outline: none;
}

.site-announcement-wrap {
    margin-top: 18px;
}

.site-announcement {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    width: 100%;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 13px 16px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.site-announcement i {
    margin-top: 3px;
    font-size: 18px;
}

.site-announcement p {
    min-width: 0;
    margin: 0;
    white-space: normal;
}

.site-announcement--info {
    border-color: #9ccfb5;
    background: #eaf7f0;
    color: #155f3d;
}

.site-announcement--warning {
    border-color: #e0bd55;
    background: #fff7d8;
    color: #70500b;
}

.site-announcement--critical {
    border-color: #e29590;
    background: #fff0ef;
    color: #972d28;
}

.admin-announcement__form {
    display: grid;
    max-width: 760px;
    gap: 18px;
    margin-top: 20px;
}

.admin-announcement__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    cursor: pointer;
}

.admin-announcement__toggle input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.admin-announcement__form textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
}

.admin-announcement__form small {
    color: var(--muted);
    text-align: right;
}

.admin-announcement__preview-label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.admin-announcement__preview {
    transition: border-color var(--motion-fast), background var(--motion-fast), color var(--motion-fast);
}

.admin-announcement__form .btn {
    justify-self: start;
}

.admin-announcement__status {
    min-height: 22px;
    color: var(--muted);
    font-weight: 700;
}

.admin-announcement__status--success {
    color: var(--success);
}

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

.hero {
    background: transparent;
    padding: 28px 0 38px;
}

.hero__wrapper {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 44px;
    height: clamp(500px, 52vw, 606px);
    border-radius: 18px;
    background:
        linear-gradient(105deg, rgba(18, 36, 54, 0.98) 0%, rgba(31, 78, 121, 0.88) 38%, rgba(18, 36, 54, 0.2) 62%, rgba(18, 36, 54, 0.08) 100%);
    box-shadow: 0 22px 54px rgba(18, 42, 62, 0.18);
    padding: clamp(28px, 5vw, 54px);
}

.hero__slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-position: right center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    transform: scale(1.025);
    transition: opacity 700ms ease, transform 1200ms ease;
}

.hero__slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero__wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 76% 34%, rgba(255, 255, 255, 0.12), transparent 25%),
        radial-gradient(circle at 82% 30%, rgba(218, 61, 53, 0.14), transparent 30%),
        linear-gradient(90deg, rgba(10, 22, 34, 0.94) 0%, rgba(13, 36, 58, 0.88) 30%, rgba(20, 68, 94, 0.58) 50%, rgba(18, 36, 54, 0.2) 68%, rgba(18, 36, 54, 0.08) 100%);
    pointer-events: none;
}

.hero__content,
.hero__image {
    position: relative;
    z-index: 2;
}

.hero__image {
    display: none;
}

.hero__image::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: linear-gradient(180deg, transparent 58%, rgba(11, 24, 36, 0.18) 100%);
    pointer-events: none;
}

.hero__content {
    display: block;
    min-height: 100%;
    align-items: flex-start;
    width: min(100%, 760px);
    padding-bottom: 0;
}

.hero__brand-kicker {
    position: absolute;
    top: -8px;
    left: 0;
    display: inline-flex;
    max-width: min(100%, 760px);
    min-height: 56px;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
    color: white;
}

.hero__text-block {
    position: absolute;
    top: 76px;
    left: 0;
    width: min(100%, 760px);
    height: 230px;
    overflow: hidden;
}

.hero__brand-kicker img {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: contain;
}

.hero__brand-name {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0;
}

.hero__brand-subtitle {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.eyebrow {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
}

h1 {
    max-width: 760px;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.05;
    color: #17232b;
}

.hero h1 {
    max-width: 760px;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.08;
    color: white;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
}

.hero-title__line {
    display: block;
}

h2 {
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.2;
    color: #1b2a32;
}

.categories h2::after,
.section-head h2::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 10px;
    border-radius: 999px;
    background: var(--accent);
}

.hero__text-block > p {
    max-width: 620px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.45;
}

.hero__actions {
    position: absolute;
    left: 0;
    bottom: -10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-self: start;
    gap: 12px;
    margin-top: 0;
    padding-top: 0;
    width: min(100%, 560px);
}

.hero__actions .btn {
    white-space: nowrap;
}

.hero__controls {
    position: absolute;
    right: clamp(18px, 3vw, 32px);
    bottom: clamp(16px, 2.5vw, 26px);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero__arrow,
.hero__dot {
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.12);
    color: white;
    cursor: pointer;
    transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease, transform var(--motion-fast) ease;
}

.hero__arrow {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 8px;
}

.hero__dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.hero__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    padding: 0;
}

.hero__arrow:hover,
.hero__dot:hover,
.hero__dot.is-active {
    border-color: rgba(255, 255, 255, 0.72);
    background: white;
    color: var(--primary-dark);
}

.hero__arrow:active,
.hero__dot:active {
    transform: translateY(1px);
}

.hero__image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    object-fit: contain;
    object-position: center bottom;
    opacity: 1;
    filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.28)) saturate(1.08) contrast(1.04);
    animation: imageSettle var(--motion-slow) ease both;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    overflow: hidden;
    margin-top: 18px;
    border: 0;
    border-radius: 18px;
    background: transparent;
}

.stats div {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(20, 38, 56, 0.78), rgba(53, 105, 132, 0.48));
    padding: 18px 20px;
    box-shadow: 0 16px 34px rgba(10, 24, 36, 0.2);
    backdrop-filter: blur(8px);
}

.stats div::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(15, 139, 141, 0.85), rgba(255, 255, 255, 0.28));
}

.stats strong,
.stats span {
    display: block;
}

.stats strong {
    font-size: 24px;
    color: white;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
}

.stats span {
    color: rgba(255, 255, 255, 0.84);
}

section {
    padding: 56px 0 0;
}

#products {
    padding-top: 26px;
}

.partners {
    padding-top: 34px;
}

.advantages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 28px;
}

.advantage {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    padding: 18px;
    box-shadow: 0 10px 24px rgba(18, 42, 62, 0.05);
}

.advantage i {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    background: var(--primary-soft);
    color: var(--primary);
}

.advantage strong,
.advantage span {
    display: block;
}

.advantage strong {
    margin-bottom: 4px;
}

.advantage span {
    color: var(--muted);
    font-size: 14px;
}

.categories,
.products,
.partners,
.order-steps {
    position: relative;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-head p {
    max-width: 680px;
    margin-top: 8px;
    color: var(--muted);
}

.section-link {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    border: 1px solid var(--primary);
    border-radius: 8px;
    background: var(--surface);
    color: var(--primary);
    font-weight: 800;
    padding: 8px 14px;
    text-decoration: none;
}

.section-link:hover {
    background: var(--primary-soft);
}

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

.category-carousel {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 12px;
}

.category-grid {
    display: grid;
    grid-auto-columns: minmax(190px, 230px);
    grid-auto-flow: column;
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    padding: 2px 0 14px;
}

.category-grid::-webkit-scrollbar {
    display: none;
}

.category-carousel__arrow {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--primary);
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(18, 42, 62, 0.08);
    transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease, color var(--motion-fast) ease, opacity var(--motion-fast) ease;
}

.category-carousel__arrow:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.category-carousel__arrow:disabled {
    opacity: 0.36;
    cursor: default;
}

.category-card {
    min-height: 130px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px;
    scroll-snap-align: start;
    transition: border-color var(--motion-base) ease, box-shadow var(--motion-base) ease, transform var(--motion-base) ease;
}

.category-card:nth-child(4n + 1) i {
    color: var(--primary);
}

.category-card:nth-child(4n + 2) i {
    color: var(--secondary);
}

.category-card:nth-child(4n + 3) i {
    color: var(--warning);
}

.category-card:nth-child(4n + 4) i {
    color: var(--accent);
}

.category-card i {
    color: var(--primary);
    font-size: 28px;
    transition: transform var(--motion-base) ease;
}

.category-card span {
    font-weight: 700;
}

.category-card:hover {
    border-color: rgba(31, 78, 121, 0.42);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.category-card:hover i {
    transform: translateY(-2px) scale(1.08);
}

.category-card--kirovets {
    border-color: rgba(31, 78, 121, 0.34);
    background: linear-gradient(135deg, rgba(31, 78, 121, 0.08), rgba(15, 139, 141, 0.08));
}

.category-card--kirovets i {
    color: var(--primary-dark);
}

.category-card--kirovets span {
    color: var(--primary-dark);
    text-align: center;
}

.filters {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(300px, 390px) auto;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 18px;
}

.catalog-search-filter {
    display: inline-flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    padding: 10px 12px;
}

.catalog-search-filter > span:first-child {
    flex: none;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.catalog-search-filter__box {
    position: relative;
    flex: 1;
    min-width: 0;
}

.catalog-search-filter__box i {
    position: absolute;
    top: 50%;
    left: 12px;
    color: var(--muted);
    transform: translateY(-50%);
}

.catalog-search-filter__box input {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-muted);
    color: var(--text);
    outline: none;
    padding: 0 10px 0 36px;
}

.catalog-search-filter__box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.13);
}

.category-filter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    padding: 10px 12px;
}

.category-filter span {
    flex: none;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.category-filter select {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-muted);
    color: var(--text);
    cursor: pointer;
    font-weight: 700;
    padding: 0 10px;
}

.catalog-reset {
    min-height: 60px;
    align-self: stretch;
    padding-inline: 18px;
}

.filter {
    min-height: 38px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-weight: 600;
    padding: 8px 14px;
    transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease, color var(--motion-fast) ease, transform var(--motion-fast) ease;
}

.filter.active,
.filter:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.filter:active {
    transform: translateY(1px);
}

.product-grid {
    align-items: stretch;
}

.product-carousel {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 12px;
}

[data-product-track] {
    display: grid;
    grid-auto-columns: minmax(240px, 280px);
    grid-auto-flow: column;
    grid-template-columns: none;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    padding: 2px 0 14px;
}

[data-product-track]::-webkit-scrollbar {
    display: none;
}

[data-product-track] .product {
    min-width: 0;
    scroll-snap-align: start;
}

.product-carousel__arrow {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--primary);
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(18, 42, 62, 0.08);
    transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease, color var(--motion-fast) ease, opacity var(--motion-fast) ease;
}

.product-carousel__arrow:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.product-carousel__arrow:disabled {
    opacity: 0.36;
    cursor: default;
}

.partner-carousel {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 12px;
}

.partner-track {
    display: grid;
    grid-auto-columns: minmax(180px, 220px);
    grid-auto-flow: column;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    padding: 2px 0 14px;
}

.partner-track::-webkit-scrollbar {
    display: none;
}

.partner-card {
    position: relative;
    display: grid;
    height: 112px;
    overflow: hidden;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 10px 24px rgba(18, 42, 62, 0.06);
    padding: 10px;
    scroll-snap-align: start;
    transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, transform var(--motion-fast) ease;
}

.partner-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 16px 34px rgba(18, 42, 62, 0.12);
    transform: translateY(-2px);
}

.partner-card img {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    transform: translate(-50%, -50%) scale(1.18);
    transform-origin: center;
}

.partner-card img.partner-card__logo--keep {
    height: 100%;
    transform: translate(-50%, -50%) scale(0.92);
}

.partner-carousel__arrow {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--primary);
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(18, 42, 62, 0.08);
    transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease, color var(--motion-fast) ease, opacity var(--motion-fast) ease;
}

.partner-carousel__arrow:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.partner-carousel__arrow:disabled {
    opacity: 0.36;
    cursor: default;
}

.product {
    position: relative;
    min-height: 330px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    transition: border-color var(--motion-base) ease, box-shadow var(--motion-base) ease, transform var(--motion-base) ease, opacity var(--motion-base) ease;
}

.product::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity var(--motion-base) ease;
}

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

.product:hover::before {
    opacity: 1;
}

.product:hover .product__img {
    transform: scale(1.03);
}

.product__link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.product__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.product__badge,
.product__stock {
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
}

.product__badge {
    background: var(--warning-soft);
    color: var(--warning);
}

.product--promo .product__badge {
    background: var(--accent-soft);
    color: var(--accent);
}

.products--promo {
    margin-bottom: 34px;
}

.products--promo .section-head h2 {
    color: var(--accent);
}

.product__stock {
    background: var(--success-soft);
    color: var(--success);
}

.product__img {
    width: 100%;
    height: 118px;
    border-radius: 8px;
    background: var(--surface-muted);
    object-fit: contain;
    padding: 8px;
    transition: transform var(--motion-base) ease;
}

.product__img--placeholder {
    object-fit: cover;
    padding: 0;
}

.product__title {
    min-height: 44px;
    font-size: 15px;
    line-height: 1.25;
}

.product__meta {
    color: var(--muted);
    font-size: 12px;
}

.product__price {
    margin-top: auto;
    color: var(--primary-dark);
    font-size: 18px;
    font-weight: 800;
}

.product .btn--buy {
    min-height: 38px;
    padding: 8px 12px;
}

.old-price {
    display: block;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    text-decoration: line-through;
}

.empty-state {
    border: 1px dashed var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    padding: 24px;
    text-align: center;
    animation: fadeUp var(--motion-base) ease both;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.step {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    padding: 18px;
}

.step span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    background: var(--primary);
    color: white;
    font-weight: 800;
    margin-bottom: 14px;
}

.step h3 {
    margin-bottom: 8px;
    font-size: 17px;
}

.step p {
    color: var(--muted);
    font-size: 14px;
}

.support-cta {
    margin-top: 64px;
    padding: 42px 0;
    background:
        linear-gradient(135deg, rgba(31, 78, 121, 0.95), rgba(15, 139, 141, 0.88)),
        var(--primary);
    color: white;
}

.support-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.support-cta h2 {
    color: white;
}

.support-cta h2::after {
    display: none;
}

.support-cta p {
    max-width: 680px;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.82);
}

.support-cta__actions {
    display: flex;
    flex: none;
    flex-wrap: wrap;
    gap: 12px;
}

.support-cta .btn--ghost {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.support-cta .btn--ghost:hover {
    background: rgba(255, 255, 255, 0.18);
}

.footer {
    margin-top: auto;
    background: var(--footer-bg);
    color: white;
    padding: 34px 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: minmax(220px, 1.25fr) repeat(4, minmax(145px, 1fr));
    gap: 24px;
    align-items: start;
}

.footer__inner strong {
    display: block;
    margin-bottom: 10px;
    color: white;
    font-size: 15px;
}

.footer__brand strong {
    font-size: 18px;
}

.footer span,
.footer a,
.footer p {
    display: block;
    color: #cbd6dd;
    text-decoration: none;
}

.footer span,
.footer a {
    margin-top: 6px;
}

.footer span.footer__address {
    margin-top: 44px;
}

.footer a {
    transition: color var(--motion-fast) ease;
}

.footer a:hover {
    color: white;
}

.footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.footer a.footer__social {
    display: inline-grid;
    place-items: center;
    align-items: center;
    width: 42px;
    height: 42px;
    margin-top: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: white;
    font-weight: 800;
}

.footer a.footer__social--telegram {
    background: #ffffff;
}

.footer a.footer__social--max {
    background: linear-gradient(135deg, #45d8f3 0%, #4467f2 52%, #9c28df 100%);
}

.footer a.footer__social:hover {
    border-color: rgba(255, 255, 255, 0.34);
    transform: translateY(-1px);
}

.footer a.footer__social--telegram:hover {
    background: #ffffff;
}

.footer a.footer__social--max:hover {
    background: linear-gradient(135deg, #5ee0f7 0%, #5575f7 52%, #aa3bea 100%);
}

.footer__social img {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.footer__legal {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    margin-top: 4px;
    padding-top: 16px;
    color: #aebdc8;
    font-size: 12px;
    line-height: 1.5;
}

.footer__requisites a {
    color: white;
    font-weight: 800;
}

.info-page {
    padding: 22px 0 clamp(220px, 48vh, 420px);
}

.info-hero {
    max-width: 820px;
    margin-bottom: 24px;
}

.info-hero h1 {
    margin-top: 8px;
    font-size: clamp(32px, 3.6vw, 44px);
    line-height: 1.12;
}

.info-hero p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 18px;
}

.info-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.info-menu {
    position: sticky;
    top: 126px;
    display: grid;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    padding: 10px;
}

.info-menu__link {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    color: var(--primary-dark);
    font-weight: 800;
    padding: 10px 12px;
    text-decoration: none;
    transition: background var(--motion-fast) ease, color var(--motion-fast) ease;
}

.info-menu__link i {
    width: 20px;
    color: var(--primary);
    text-align: center;
}

.info-menu__link:hover,
.info-menu__link.is-active {
    background: var(--primary-soft);
    color: var(--primary);
}

.info-content {
    min-width: 0;
}

.info-panel {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    padding: 22px;
    box-shadow: 0 12px 28px rgba(18, 42, 62, 0.06);
}

.info-panel[hidden] {
    display: none;
}

.info-panel h2::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 10px;
    border-radius: 999px;
    background: var(--accent);
}

.info-panel p {
    margin-top: 14px;
    color: var(--muted);
}

.info-panel ul {
    display: grid;
    gap: 8px;
    margin: 18px 0 0 18px;
    color: var(--text);
}

.catalog-page {
    padding-top: 36px;
}

.catalog-products {
    padding-top: 0;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: -4px 0 18px;
}

.catalog-toolbar label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.catalog-toolbar select {
    min-height: 38px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    padding: 0 10px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.pagination--top {
    justify-content: flex-end;
    margin: 0;
    margin-left: auto;
}

.pagination--bottom {
    margin: 28px 0 46px;
}

.pagination button,
.pagination span {
    display: inline-grid;
    min-width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 8px;
    font-weight: 800;
}

.pagination button {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--primary);
    cursor: pointer;
}

.pagination button:hover:not(:disabled),
.pagination button.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.pagination span {
    color: var(--muted);
}

.admin-page {
    padding: 36px 0 56px;
}

.admin-login,
.admin-dashboard {
    animation: fadeUp var(--motion-slow) ease both;
}

.admin-login {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
    max-width: 920px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    padding: 24px;
    box-shadow: var(--shadow);
}

.admin-login h1 {
    margin-top: 28px;
}

.admin-login p,
.admin-head p {
    margin-top: 10px;
    color: var(--muted);
}

.admin-login__hint {
    color: var(--muted);
    font-size: 13px;
}

.admin-login__status {
    min-height: 20px;
    margin-top: 0 !important;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.admin-login__status--error {
    color: var(--accent) !important;
}

.admin-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.admin-head h1 {
    margin-top: 14px;
}

.admin-workspace {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.admin-menu {
    top: 24px;
}

.admin-workspace__content {
    width: 100%;
    min-width: 0;
}

.admin-section {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    padding: 20px;
    box-shadow: 0 12px 28px rgba(18, 42, 62, 0.06);
}

.admin-section__head {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.admin-section__head h2 {
    font-size: 24px;
}

.admin-section__head h2::after,
.admin-chats__head h2::after,
.admin-import h2::after,
.admin-pricing h2::after,
.admin-manual-products h2::after,
.admin-product-images h2::after,
.admin-product-visibility h2::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 9px;
    border-radius: 999px;
    background: var(--accent);
}

.admin-section__head p {
    margin-top: 8px;
    color: var(--muted);
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.admin-stat {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    padding: 18px;
}

.admin-stat span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-stat strong {
    display: block;
    margin-top: 8px;
    color: var(--primary-dark);
    font-size: 26px;
    line-height: 1.1;
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 24px;
}

.admin-section--statistics .admin-grid {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.admin-section--statistics .admin-grid > .admin-panel {
    border: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.admin-panel {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    padding: 18px;
}

.admin-workspace__content > [data-admin-panel] {
    width: 100%;
    min-height: 720px;
    margin: 0;
    padding: 20px;
}

.admin-panel h2 {
    margin-bottom: 14px;
    font-size: 22px;
}

.admin-chats {
    margin-bottom: 0;
}

.admin-chats__head {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.admin-chats__head h2 {
    margin-bottom: 4px;
}

.admin-chats__head p {
    color: var(--muted);
}

.admin-chats__layout {
    min-height: 520px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
}

.admin-chat-list {
    border-right: 1px solid var(--border);
    background: #f5f8fa;
    overflow-y: auto;
}

.admin-chat-list__item {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: transparent;
    padding: 13px 14px;
    display: grid;
    gap: 5px;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.admin-chat-list__item:hover,
.admin-chat-list__item.is-active {
    background: #e5eff7;
}

.admin-chat-list__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.admin-chat-list__top time,
.admin-chat-list__item small {
    color: var(--muted);
    font-size: 11px;
}

.admin-chat-list__item > span:not(.admin-chat-list__top) {
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-chat-dialog {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.admin-chat-dialog__empty {
    margin: auto;
    max-width: 330px;
    color: var(--muted);
    text-align: center;
}

.admin-chat-dialog__empty i {
    margin-bottom: 12px;
    font-size: 40px;
}

.admin-chat-dialog__head {
    min-height: 70px;
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-chat-dialog__head strong,
.admin-chat-dialog__head a {
    display: block;
}

.admin-chat-dialog__head a {
    margin-top: 3px;
    color: var(--accent);
    font-size: 12px;
}

.admin-chat-dialog__messages {
    flex: 1;
    min-height: 300px;
    max-height: 430px;
    padding: 18px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f5f8fa;
}

.admin-chat-message {
    max-width: 76%;
    border-radius: 8px;
    padding: 9px 11px;
    line-height: 1.4;
}

.admin-chat-message span,
.admin-chat-message time {
    display: block;
}

.admin-chat-message time {
    margin-top: 4px;
    font-size: 10px;
    opacity: 0.65;
}

.admin-chat-message--visitor {
    align-self: flex-start;
    border: 1px solid var(--border);
    background: #fff;
}

.admin-chat-message--operator {
    align-self: flex-end;
    background: var(--accent);
    color: #fff;
}

.admin-chat-reply {
    border-top: 1px solid var(--border);
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.admin-chat-reply textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px;
    font: inherit;
    resize: vertical;
}

.admin-import {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
    gap: 16px;
    align-items: start;
    margin-bottom: 0;
}

.admin-import p {
    color: var(--muted);
}

.admin-import__form {
    display: grid;
    gap: 12px;
}

.admin-file {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.admin-file input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-muted);
    color: var(--text);
    padding: 10px;
}

.admin-import__status {
    grid-column: 1 / -1;
    min-height: 20px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.admin-import__status--success {
    color: var(--success);
}

.admin-import__status--error {
    color: var(--accent);
}

.admin-pricing__head {
    margin-bottom: 18px;
}

.admin-pricing__head p {
    max-width: 760px;
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.5;
}

.admin-pricing-form {
    max-width: 780px;
    border-top: 1px solid var(--border);
    padding-top: 18px;
    display: grid;
    grid-template-columns: 210px minmax(240px, 1fr) auto;
    align-items: end;
    gap: 16px;
}

.admin-pricing-input {
    position: relative;
}

.admin-pricing-input input {
    padding-right: 42px;
}

.admin-pricing-input > span {
    position: absolute;
    top: 50%;
    right: 14px;
    color: var(--muted);
    font-weight: 800;
    transform: translateY(-50%);
}

.admin-pricing-preview {
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-muted);
    padding: 8px 12px;
}

.admin-pricing-preview > span,
.admin-pricing-preview strong {
    display: block;
}

.admin-pricing-preview > span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-pricing-preview strong {
    margin-top: 2px;
    color: var(--text);
    font-size: 14px;
}

.admin-pricing-preview b {
    color: var(--primary);
}

.admin-pricing-status {
    min-height: 20px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.admin-pricing-status--success {
    color: var(--success);
}

.admin-pricing-status--error {
    color: var(--accent);
}

.admin-product-pricing {
    border-top: 1px solid var(--border);
    margin-top: 24px;
    padding-top: 24px;
}

.admin-product-pricing__head {
    margin-bottom: 16px;
}

.admin-product-pricing__head h3 {
    font-size: 20px;
}

.admin-product-pricing__layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(420px, 1.1fr);
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    overflow: hidden;
}

.admin-pricing-search,
.admin-pricing-editor {
    min-width: 0;
    padding: 18px;
}

.admin-pricing-search > label {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.admin-pricing-search__results {
    max-height: 390px;
    margin-top: 10px;
    overflow-y: auto;
}

.admin-pricing-search__results .empty-state {
    padding: 22px 10px;
}

.admin-pricing-editor {
    border-left: 1px solid var(--border);
    background: var(--surface-muted);
}

.admin-pricing-editor__product {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.admin-pricing-editor__product img {
    width: 88px;
    height: 88px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    object-fit: contain;
    padding: 5px;
}

.admin-pricing-editor__product strong,
.admin-pricing-editor__product span,
.admin-pricing-editor__product small {
    display: block;
}

.admin-pricing-editor__product strong {
    line-height: 1.35;
}

.admin-pricing-editor__product span,
.admin-pricing-editor__product small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.admin-pricing-editor__rule {
    display: grid;
    grid-template-columns: minmax(190px, 0.65fr) minmax(260px, 1.35fr);
    align-items: end;
    gap: 14px;
    border-top: 1px solid var(--border);
    margin-top: 16px;
    padding-top: 16px;
}

.admin-pricing-editor__rule--promo {
    border-top-color: rgba(213, 58, 52, 0.28);
}

.admin-pricing-editor__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-pricing-editor__actions .btn {
    min-height: 44px;
    padding-inline: 13px;
}

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

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

.admin-product-pricing__lists {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.admin-pricing-rules {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    padding: 14px;
}

.admin-pricing-rules__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 11px;
}

.admin-pricing-rules__head h4 {
    font-size: 15px;
}

.admin-pricing-rules__head > span {
    min-width: 30px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    padding: 4px 8px;
    text-align: center;
}

.admin-pricing-rules--promo .admin-pricing-rules__head > span {
    background: var(--accent-soft);
    color: var(--accent);
}

.admin-pricing-rules__list {
    max-height: 360px;
    overflow-y: auto;
}

.admin-pricing-rules__list .empty-state {
    border: 0;
    background: transparent;
    padding: 22px 8px 8px;
}

.admin-pricing-rule {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.admin-pricing-rule:last-child {
    border-bottom: 0;
}

.admin-pricing-rule > img {
    width: 50px;
    height: 50px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface-muted);
    object-fit: contain;
    padding: 3px;
}

.admin-pricing-rule strong,
.admin-pricing-rule small,
.admin-pricing-rule span {
    display: block;
}

.admin-pricing-rule strong {
    overflow: hidden;
    font-size: 12px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-pricing-rule small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.admin-pricing-rule span {
    margin-top: 4px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
}

.admin-pricing-rule--promo span {
    color: var(--accent);
}

.admin-pricing-rule__actions {
    display: flex;
    gap: 6px;
}

.admin-pricing-rule__actions .icon-btn--danger {
    color: var(--accent);
}

.admin-product-pricing__status {
    min-height: 20px;
    margin-top: 13px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.admin-product-pricing__status--success {
    color: var(--success);
}

.admin-product-pricing__status--error {
    color: var(--accent);
}

.admin-product-images__head {
    margin-bottom: 18px;
}

.admin-product-images__head p {
    max-width: 760px;
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.5;
}

.admin-product-images__layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
    border-top: 1px solid var(--border);
    padding-top: 18px;
}

.admin-product-search {
    min-width: 0;
    padding-right: 18px;
}

.admin-product-search > label,
.admin-product-image-file > span {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.admin-product-search__field {
    position: relative;
}

.admin-product-search__field i {
    position: absolute;
    top: 50%;
    left: 12px;
    color: var(--muted);
    transform: translateY(-50%);
}

.admin-product-search__field input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-muted);
    padding: 10px 12px 10px 38px;
    color: var(--text);
    font: inherit;
}

.admin-product-search__field input:focus {
    border-color: var(--primary);
    outline: 2px solid rgba(31, 78, 121, 0.12);
}

.admin-product-search__results {
    max-height: 500px;
    margin-top: 10px;
    overflow-y: auto;
}

.admin-product-search__results .empty-state {
    padding: 22px 10px;
}

.admin-product-search__item {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: transparent;
    padding: 9px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.admin-product-search__item:hover,
.admin-product-search__item.is-active {
    border-radius: 6px;
    background: var(--primary-soft);
}

.admin-product-search__item img {
    width: 54px;
    height: 54px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    padding: 3px;
    object-fit: contain;
}

.admin-product-search__item span,
.admin-product-search__item strong,
.admin-product-search__item small {
    display: block;
    min-width: 0;
}

.admin-product-search__item strong {
    overflow: hidden;
    font-size: 13px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-product-search__item small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.admin-product-image-form {
    min-width: 0;
    border-left: 1px solid var(--border);
    padding-left: 18px;
    display: grid;
    align-content: start;
    gap: 16px;
}

.admin-product-image-form__product {
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.admin-product-current-images {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.admin-product-current-image {
    position: relative;
    min-width: 0;
    aspect-ratio: 1;
}

.admin-product-current-image img {
    width: 100%;
    height: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-muted);
    padding: 5px;
    object-fit: contain;
}

.admin-product-current-image button {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: rgba(207, 61, 53, 0.94);
    color: #fff;
    cursor: pointer;
}

.admin-product-current-image > span {
    position: absolute;
    left: 5px;
    bottom: 5px;
    margin: 0;
    border-radius: 4px;
    background: var(--primary);
    color: #fff;
    padding: 3px 6px;
    font-size: 10px;
    font-weight: 700;
}

.admin-product-image-form__product strong,
.admin-product-image-form__product span {
    display: block;
}

.admin-product-image-form__product small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.admin-product-image-form__product span {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.admin-product-image-file input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-muted);
    padding: 10px;
    color: var(--text);
}

.admin-product-image-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    border: 1px dashed var(--border-strong);
    border-radius: 8px;
    background: var(--surface-muted);
    padding: 10px;
}

.admin-product-image-preview img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
}

.admin-product-image-form .btn {
    justify-self: start;
}

.admin-product-image-status {
    min-height: 20px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.admin-product-image-status--success {
    color: var(--success);
}

.admin-product-image-status--error {
    color: var(--accent);
}

.admin-manual-products__head {
    margin-bottom: 18px;
}

.admin-manual-products__head p {
    max-width: 820px;
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.5;
}

.admin-manual-products__layout {
    display: grid;
    grid-template-columns: minmax(420px, 1.1fr) minmax(320px, 0.9fr);
    border-top: 1px solid var(--border);
    padding-top: 18px;
}

.admin-manual-form {
    min-width: 0;
    padding-right: 18px;
}

.admin-manual-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.admin-field {
    min-width: 0;
}

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

.admin-field > span {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-muted);
    padding: 10px 11px;
    color: var(--text);
    font: inherit;
}

.admin-field textarea {
    min-height: 118px;
    line-height: 1.45;
    resize: vertical;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
    border-color: var(--primary);
    outline: 2px solid rgba(31, 78, 121, 0.12);
}

.admin-manual-image-file input {
    padding: 8px;
}

.admin-manual-image-preview {
    position: relative;
    height: 230px;
    border: 1px dashed var(--border-strong);
    border-radius: 8px;
    background: var(--surface-muted);
    margin-top: 14px;
    padding: 10px;
}

.admin-manual-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.admin-manual-image-preview .icon-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
}

.admin-manual-form__submit {
    margin-top: 16px;
}

.admin-manual-status {
    min-height: 20px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.admin-manual-status--success {
    color: var(--success);
}

.admin-manual-status--error {
    color: var(--accent);
}

.admin-manual-list-wrap {
    min-width: 0;
    border-left: 1px solid var(--border);
    padding-left: 18px;
}

.admin-manual-list__head {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-manual-list__head h3 {
    font-size: 18px;
}

.admin-manual-list__head > span {
    min-width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    line-height: 30px;
    text-align: center;
}

.admin-manual-list {
    max-height: 720px;
    overflow-y: auto;
}

.admin-manual-product {
    min-width: 0;
    border-bottom: 1px solid var(--border);
    padding: 11px 4px;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
}

.admin-manual-product > img {
    width: 64px;
    height: 64px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    padding: 3px;
    object-fit: contain;
}

.admin-manual-product__info,
.admin-manual-product__info strong,
.admin-manual-product__info small,
.admin-manual-product__info > span {
    display: block;
    min-width: 0;
}

.admin-manual-product__title {
    display: flex;
    align-items: center;
    gap: 7px;
}

.admin-manual-product__info strong {
    overflow: hidden;
    font-size: 13px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-manual-product__info small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.admin-manual-product__info > span {
    margin-top: 5px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.admin-manual-product__hidden {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #fff0f0;
    color: var(--accent);
    padding: 3px 7px;
    font-size: 10px;
    font-weight: 800;
}

.admin-manual-product__actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-manual-product__actions .icon-btn--danger {
    color: var(--accent);
}

.admin-manual-product__actions .icon-btn--danger:hover {
    border-color: var(--accent);
    background: #fff0f0;
}

.admin-product-visibility__head {
    margin-bottom: 18px;
}

.admin-product-visibility__head p {
    max-width: 820px;
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.5;
}

.admin-product-visibility__layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--border);
    padding-top: 18px;
}

.admin-visibility-search {
    min-width: 0;
    padding-right: 18px;
}

.admin-visibility-search > label {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.admin-visibility-search__results,
.admin-hidden-products__list {
    max-height: 540px;
    margin-top: 10px;
    overflow-y: auto;
}

.admin-hidden-products {
    min-width: 0;
    border-left: 1px solid var(--border);
    padding-left: 18px;
}

.admin-hidden-products__head {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-hidden-products__head h3 {
    font-size: 18px;
}

.admin-hidden-products__head span {
    min-width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    line-height: 30px;
    text-align: center;
}

.admin-visibility-product {
    min-width: 0;
    border-bottom: 1px solid var(--border);
    padding: 10px 4px;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.admin-visibility-product img {
    width: 52px;
    height: 52px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    padding: 3px;
    object-fit: contain;
}

.admin-visibility-product span,
.admin-visibility-product strong,
.admin-visibility-product small {
    display: block;
    min-width: 0;
}

.admin-visibility-product strong {
    overflow: hidden;
    font-size: 13px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-visibility-product small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.admin-visibility-product .btn {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 12px;
}

.admin-visibility-product--hidden {
    background: linear-gradient(90deg, transparent, var(--surface-muted));
}

.admin-visibility-status {
    min-height: 20px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.admin-visibility-status--success {
    color: var(--success);
}

.admin-visibility-status--error {
    color: var(--accent);
}

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

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

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

.admin-table th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

.admin-table td span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 3px;
}

.admin-events {
    display: grid;
    gap: 10px;
}

.admin-event {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-muted);
    padding: 12px;
}

.admin-event strong,
.admin-event span,
.admin-event small {
    display: block;
}

.admin-event span {
    color: var(--text);
    margin-top: 3px;
}

.admin-event small {
    color: var(--muted);
    margin-top: 6px;
}

.cart,
.product-page {
    padding-top: 36px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.cart {
    --cart-sidebar-width: 380px;
    --cart-column-gap: 24px;
}

.cart-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--cart-sidebar-width);
    gap: var(--cart-column-gap);
    align-items: stretch;
    margin-bottom: 24px;
}

.cart-hero > div:first-child,
.cart-hero__contacts {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    padding: 22px;
    box-shadow: 0 10px 28px rgba(20, 42, 52, 0.05);
}

.cart-hero h1 {
    margin-top: 14px;
}

.cart-hero p {
    max-width: 720px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 17px;
}

.cart-hero__contacts {
    display: grid;
    align-content: center;
    gap: 10px;
}

.cart-hero__contacts span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.cart-hero__contacts a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--primary-dark);
    font-weight: 800;
    text-decoration: none;
}

.cart-hero__contacts i {
    color: var(--primary);
}

.cart-hero__messengers {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.cart-hero__contacts a.cart-hero__messenger {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.cart-hero__contacts a.cart-hero__messenger--telegram {
    background: #fff;
}

.cart-hero__contacts a.cart-hero__messenger--max {
    border-color: transparent;
    background: linear-gradient(135deg, #45d8f3 0%, #4467f2 52%, #9c28df 100%);
}

.cart-hero__messenger img {
    width: 27px;
    height: 27px;
    object-fit: contain;
}

.cart-hero__contacts a.cart-hero__messenger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(18, 42, 62, 0.16);
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--cart-sidebar-width);
    gap: var(--cart-column-gap);
}

.cart-panel {
    padding-top: 0;
}

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

.cart-section-head h2 {
    margin-bottom: 0;
}

.cart-section-head a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--primary);
    font-weight: 800;
    padding: 8px 12px;
    text-decoration: none;
}

.cart-section-head a:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.cart-panel h2,
.cart-summary h2 {
    margin-bottom: 16px;
    font-size: 22px;
}

.cart-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    margin-bottom: 12px;
    padding: 12px;
    animation: fadeUp var(--motion-base) ease both;
}

.cart-item img {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    background: var(--surface-muted);
    object-fit: contain;
    padding: 6px;
}

.cart-item__title {
    font-weight: 700;
}

.cart-item__price {
    color: var(--muted);
}

.cart-item__code {
    color: var(--muted);
    font-size: 13px;
    margin-top: 2px;
}

.cart-item__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    cursor: pointer;
    transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease, transform var(--motion-fast) ease;
}

.icon-btn:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.icon-btn:active {
    transform: scale(0.94);
}

.cart-summary {
    align-self: start;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    padding: 18px;
    box-shadow: 0 10px 28px rgba(20, 42, 52, 0.06);
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    padding: 10px 0;
}

.summary-row strong {
    color: var(--text);
}

.summary-row--total {
    margin-bottom: 18px;
    border-bottom: 0;
    color: var(--text);
    font-size: 20px;
    padding-top: 14px;
}

.checkout-form {
    display: grid;
    gap: 12px;
}

.checkout-form label {
    display: grid;
    gap: 6px;
}

.checkout-form span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.checkout-form input,
.checkout-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    padding: 11px 12px;
}

.checkout-form textarea {
    min-height: 104px;
    resize: vertical;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.13);
}

.checkout-form .btn {
    width: 100%;
    margin-top: 4px;
}

.personal-data-consent {
    display: grid;
    grid-template-columns: 18px auto minmax(0, 1fr);
    align-items: start;
    gap: 4px 7px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.checkout-form .personal-data-consent input,
.customer-chat .personal-data-consent input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--primary);
}

.checkout-form .personal-data-consent label,
.customer-chat .personal-data-consent label {
    display: inline;
    margin: 0;
}

.personal-data-consent__link {
    justify-self: start;
    border: 0;
    background: transparent;
    color: var(--primary);
    padding: 0;
    font: inherit;
    font-weight: 700;
    line-height: inherit;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.personal-data-consent__link:hover {
    color: var(--accent);
}

.consent-modal[hidden] {
    display: none;
}

.consent-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.consent-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 28, 44, 0.72);
}

.consent-modal__dialog {
    position: relative;
    width: min(760px, 100%);
    max-height: min(760px, calc(100dvh - 48px));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(9, 28, 44, 0.28);
    overflow: hidden;
    outline: none;
}

.consent-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    padding: 18px 20px;
}

.consent-modal__head h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.25;
}

.consent-modal__close {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    cursor: pointer;
}

.consent-modal__content {
    overflow-y: auto;
    padding: 20px;
}

.consent-modal__content p {
    margin: 0;
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
}

.consent-modal__content a {
    color: var(--primary);
    font-weight: 700;
}

.consent-modal__footer {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid var(--border);
    padding: 14px 20px;
}

.consent-modal-open {
    overflow: hidden;
}

.cart-help-note {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    margin-top: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    padding: 12px;
}

.cart-help-note i {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 8px;
    background: var(--surface);
    color: var(--primary);
}

.cart-help-note p {
    font-size: 13px;
}

.order-result {
    margin-top: 18px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.order-result strong {
    display: block;
    margin-bottom: 6px;
}

.order-result p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 10px;
}

.order-result textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-muted);
    color: var(--text);
    padding: 12px;
    resize: vertical;
}

.order-mail-link {
    width: 100%;
    margin-top: 10px;
}

.cart-next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 28px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    padding: 20px;
}

.cart-next h2 {
    font-size: 22px;
}

.cart-next h2::after {
    display: none;
}

.cart-next p {
    margin-top: 6px;
    color: var(--muted);
}

.product-card-main {
    display: grid;
    grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
    gap: 30px;
    align-items: start;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    padding: 24px;
    animation: fadeUp var(--motion-slow) ease both;
}

.product-page__image,
.product-page__info {
    border: 0;
    background: transparent;
    padding: 0;
    animation: none;
}

.product-page__gallery {
    min-width: 0;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
}

.product-page__thumbnails {
    display: grid;
    gap: 10px;
}

.product-page__thumbnails button {
    width: 68px;
    aspect-ratio: 1;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    padding: 4px;
    cursor: pointer;
}

.product-page__thumbnails button:hover,
.product-page__thumbnails button.is-active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(31, 78, 121, 0.14);
}

.product-page__thumbnails img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.product-page__thumbnails[hidden] + .product-page__image {
    grid-column: 1 / -1;
}

.product-page__image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-muted);
    object-fit: contain;
    padding: clamp(12px, 2vw, 22px);
}

.product-page__image img.product-page__img--placeholder {
    object-fit: cover;
    padding: 0;
}

.product-help {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    padding: 14px;
}

.product-help h2 {
    margin-bottom: 6px;
    font-size: 18px;
}

.product-help h2::after {
    display: none;
}

.product-help i {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 8px;
    background: var(--surface);
    color: var(--primary);
}

.product-help p {
    color: var(--primary-dark);
    font-size: 14px;
}

.product-help--plain {
    background: var(--surface);
}

.product-support-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.product-page__breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

.product-page__breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
}

.product-page__summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0 10px;
}

.product-page__summary > div {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-muted);
    padding: 14px;
}

.product-page__summary span,
.product-keyfacts span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.product-page__summary strong {
    display: block;
    color: var(--primary-dark);
    font-size: 24px;
    font-weight: 800;
}

.product-page__code {
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 8px;
}

.product-page__stock {
    color: var(--success);
}

.product-page__desc {
    margin-top: 18px;
    color: var(--muted);
}

.product-keyfacts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.product-keyfacts div {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
}

.product-keyfacts strong {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.product-actions {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
    margin-top: 22px;
}

.quantity-control {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
}

.quantity-control button,
.quantity-control input {
    border: 0;
    background: transparent;
    text-align: center;
    font-weight: 800;
}

.quantity-control button {
    cursor: pointer;
    color: var(--primary);
}

.quantity-control button:hover {
    background: var(--primary-soft);
}

.quantity-control input {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    outline: none;
}

.product-secondary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.product-phone {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--primary);
    font-weight: 800;
    padding: 10px 14px;
    text-decoration: none;
}

.product-phone:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.product-specs {
    margin-top: 26px;
}

.product-specs h2 {
    margin-bottom: 14px;
    font-size: 22px;
}

.product-specs dl {
    display: grid;
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--border);
}

.product-specs div {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 16px;
    background: var(--surface);
    padding: 12px;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
}

.reveal.is-visible {
    animation: fadeUp var(--motion-slow) ease both;
}

.product--enter {
    animation: cardIn var(--motion-slow) ease both;
}

.btn:active,
.cart-btn:active,
.catalog-btn:active,
.category-card:active {
    transform: translateY(1px) scale(0.99);
}

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

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

@keyframes cartBump {
    0% {
        transform: scale(1);
    }
    35% {
        transform: scale(1.28);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes imageSettle {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.product-specs dt {
    color: var(--muted);
    font-weight: 600;
}

.product-specs dd {
    min-width: 0;
}

.scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 30;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    background: var(--brand-gradient);
    color: white;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(18, 42, 62, 0.22);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity var(--motion-base) ease, transform var(--motion-base) ease, box-shadow var(--motion-fast) ease;
}

.scroll-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top:hover {
    box-shadow: 0 18px 40px rgba(18, 42, 62, 0.28);
    transform: translateY(-2px);
}

.scroll-top:active {
    transform: translateY(0) scale(0.96);
}

.customer-chat {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1100;
    font-family: inherit;
}

.customer-chat__launch {
    min-height: 52px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    box-shadow: 0 12px 30px rgba(18, 42, 62, 0.25);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.customer-chat__launch i {
    font-size: 19px;
}

.customer-chat__badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 22px;
    height: 22px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
}

.customer-chat__panel {
    position: absolute;
    right: 0;
    bottom: 64px;
    width: min(380px, calc(100vw - 32px));
    height: min(590px, calc(100vh - 120px));
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(18, 42, 62, 0.26);
    overflow: hidden;
}

.customer-chat__head {
    min-height: 74px;
    background: var(--footer-bg);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.customer-chat__head strong,
.customer-chat__head span {
    display: block;
}

.customer-chat__head span {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

.customer-chat__close {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
}

.customer-chat__body {
    height: calc(100% - 74px);
    display: flex;
    flex-direction: column;
    background: #f4f7fa;
}

.customer-chat__welcome {
    padding: 18px 18px 0;
    color: var(--text);
    line-height: 1.5;
}

.customer-chat__start-form {
    padding: 16px 18px 18px;
    display: grid;
    gap: 12px;
    overflow-y: auto;
}

.customer-chat label span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.customer-chat input,
.customer-chat textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    padding: 10px 11px;
    color: var(--text);
    font: inherit;
    resize: none;
}

.customer-chat input:focus,
.customer-chat textarea:focus {
    border-color: var(--accent);
    outline: 2px solid rgba(30, 88, 132, 0.12);
}

.customer-chat__start-form .btn {
    width: 100%;
}

.customer-chat__start-form small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.customer-chat__error,
.customer-chat__status {
    color: var(--accent);
    font-size: 12px;
}

.customer-chat__messages {
    flex: 1;
    min-height: 0;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.customer-chat__message {
    max-width: 82%;
    padding: 9px 11px 7px;
    border-radius: 8px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.customer-chat__message span,
.customer-chat__message time {
    display: block;
}

.customer-chat__message time {
    margin-top: 4px;
    font-size: 10px;
    opacity: 0.65;
    text-align: right;
}

.customer-chat__message--visitor {
    align-self: flex-end;
    background: var(--accent);
    color: #fff;
}

.customer-chat__message--operator {
    align-self: flex-start;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
}

.customer-chat__system {
    align-self: center;
    max-width: 90%;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
}

.customer-chat__reply-form {
    border-top: 1px solid var(--border);
    background: #fff;
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr 42px;
    gap: 8px;
}

.customer-chat__reply-form button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
}

.customer-chat__status {
    min-height: 0;
    margin: 0 10px 6px;
}

.customer-chat ~ .scroll-top {
    bottom: 88px;
}

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

    .catalog-menu__cell:nth-child(3n) {
        border-right: 1px solid var(--border);
    }

    .catalog-menu__cell:nth-child(2n) {
        border-right: 0;
    }

    .hero__wrapper,
    .admin-login,
    .admin-grid,
    .admin-import,
    .cart-hero,
    .cart-layout,
    .product-card-main {
        grid-template-columns: 1fr;
    }

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

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

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

    .admin-pricing-form {
        grid-template-columns: minmax(180px, 0.7fr) minmax(240px, 1fr);
    }

    .admin-pricing-form .btn {
        grid-column: 1 / -1;
        justify-self: start;
    }

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

    .admin-pricing-editor {
        border-top: 1px solid var(--border);
        border-left: 0;
    }

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

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

    .admin-manual-form {
        padding-right: 0;
    }

    .admin-manual-list-wrap {
        border-top: 1px solid var(--border);
        border-left: 0;
        margin-top: 18px;
        padding-top: 18px;
        padding-left: 0;
    }

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

    .admin-product-search {
        padding-right: 0;
    }

    .admin-product-image-form {
        border-top: 1px solid var(--border);
        border-left: 0;
        margin-top: 18px;
        padding-top: 18px;
        padding-left: 0;
    }

    .admin-visibility-search {
        padding-right: 0;
    }

    .admin-hidden-products {
        border-top: 1px solid var(--border);
        border-left: 0;
        margin-top: 18px;
        padding-top: 18px;
        padding-left: 0;
    }

    .admin-chat-list {
        max-height: 250px;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .hero__wrapper {
        height: clamp(560px, 118vw, 680px);
    }

    .hero__image img {
        mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 18%, black 42%);
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 18%, black 42%);
    }

    .main-nav {
        display: none;
    }

    .header__top {
        flex-wrap: wrap;
    }

    .header__actions {
        margin-left: auto;
    }

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

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

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

    .info-layout {
        grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
    }

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

    .support-cta__inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .admin-product-image-form__product {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .admin-product-current-images,
    .admin-product-image-preview {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .product-page__image {
        grid-row: 1;
        grid-column: 1;
    }

    .product-page__thumbnails {
        grid-row: 2;
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 2px;
    }

    .product-page__thumbnails button {
        flex: 0 0 64px;
        width: 64px;
    }

    .personal-data-consent {
        grid-template-columns: 18px minmax(0, 1fr);
    }

    .personal-data-consent__link {
        grid-column: 2;
    }

    .consent-modal {
        align-items: end;
        padding: 10px;
    }

    .consent-modal__dialog {
        max-height: calc(100dvh - 20px);
    }

    .consent-modal__head {
        padding: 14px 16px;
    }

    .consent-modal__head h2 {
        font-size: 19px;
    }

    .consent-modal__content {
        padding: 16px;
    }

    .consent-modal__content p {
        font-size: 14px;
        line-height: 1.6;
    }

    .consent-modal__footer {
        padding: 12px 16px;
    }

    .container {
        width: min(100% - 24px, 560px);
    }

    .header {
        position: relative;
        z-index: 80;
        padding-bottom: 8px;
    }

    .header__top,
    .footer__inner,
    .admin-head,
    .admin-actions,
    .admin-section__head,
    .admin-chats__head,
    .catalog-toolbar,
    .cart-next,
    .section-head {
        align-items: stretch;
        flex-direction: column;
    }

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

    .admin-workspace__content > [data-admin-panel] {
        min-height: 0;
    }

    .admin-visibility-product {
        grid-template-columns: 48px minmax(0, 1fr);
    }

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

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

    .admin-pricing-form .btn {
        grid-column: auto;
        justify-self: stretch;
    }

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

    .admin-pricing-editor__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-pricing-editor__actions .btn {
        width: 100%;
    }

    .admin-field--wide {
        grid-column: auto;
    }

    .admin-manual-product {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .admin-manual-product > img {
        width: 56px;
        height: 56px;
    }

    .admin-manual-product__actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .admin-visibility-product .btn {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    .footer__brand {
        grid-column: auto;
    }

    .header__top {
        padding: 8px 0;
    }

    .logo-img {
        width: min(250px, 72vw);
        height: 42px;
        object-position: left center;
    }

    .header__bottom {
        display: grid;
        grid-template-columns: minmax(92px, 1fr) auto auto;
        align-items: center;
        gap: 6px;
        padding: 10px;
    }

    .catalog {
        min-width: 0;
        position: relative;
        z-index: 90;
    }

    .catalog-btn {
        width: 100%;
        min-height: 42px;
        justify-content: center;
        padding: 9px 12px;
    }

    .search-area {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .search-box input {
        min-height: 42px;
        padding-right: 10px;
        font-size: 15px;
    }

    .header__actions {
        grid-column: 3;
        grid-row: 1;
        justify-content: flex-end;
        margin-left: 0;
        gap: 6px;
    }

    .location-popover {
        grid-column: 2;
        grid-row: 1;
        justify-content: flex-end;
    }

    .location-btn {
        width: 42px;
        height: 42px;
        min-height: 42px;
        padding: 0;
    }

    .location-btn span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .location-popover__panel {
        right: 0;
        width: min(320px, calc(100vw - 32px));
    }

    .phone {
        font-size: 14px;
    }

    .phone span {
        display: none;
    }

    .phone,
    .location-btn,
    .mail-link {
        width: 42px;
        height: 42px;
        justify-content: center;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--surface);
    }

    .header__bottom .phone {
        color: var(--primary);
        text-shadow: none;
    }

    .mail-popover__panel {
        right: auto;
        left: 50%;
        min-width: min(280px, calc(100vw - 32px));
        transform: translate(-50%, 6px);
    }

    .mail-popover__panel::before {
        right: auto;
        left: 50%;
        transform: translateX(-50%) rotate(45deg);
    }

    .mail-popover:hover .mail-popover__panel,
    .mail-popover:focus-within .mail-popover__panel {
        transform: translate(-50%, 0);
    }

    .cart-btn {
        width: 42px;
        min-width: 42px;
        height: 42px;
        flex: 0 0 42px;
    }

    .quick-search {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
    }

    .quick-search button {
        flex: none;
    }

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

    .catalog-menu__cell,
    .catalog-menu__cell:nth-child(2n),
    .catalog-menu__cell:nth-child(3n) {
        border-right: 0;
    }

    .catalog-menu {
        z-index: 120;
        max-height: min(64vh, 520px);
    }

    .hero {
        padding: 16px 0 24px;
    }

    .hero__wrapper {
        display: block;
        height: auto;
        min-height: 0;
        border-radius: 14px;
        padding: 22px 18px;
    }

    .hero__content {
        display: flex;
        flex-direction: column;
        min-height: 0;
        width: 100%;
        padding-bottom: 0;
    }

    .hero__brand-kicker {
        position: static;
        min-height: 0;
        gap: 9px;
        margin-bottom: 12px;
    }

    .hero__brand-kicker img {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .hero__brand-name {
        font-size: 13px;
    }

    .hero__brand-subtitle {
        font-size: 12px;
        line-height: 1.25;
        white-space: normal;
    }

    .hero__text-block {
        position: static;
        width: 100%;
    }

    .hero h1 {
        max-width: 100%;
        font-size: clamp(30px, 9vw, 40px);
        line-height: 1.08;
    }

    .hero__text-block > p {
        margin-top: 14px;
        font-size: 16px;
        line-height: 1.45;
    }

    .hero__actions {
        position: static;
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
        padding-top: 0;
    }

    .hero__actions .btn {
        width: 100%;
        min-width: 0;
        white-space: normal;
    }

    .hero__actions .btn__logo {
        width: 82px;
        flex-basis: 82px;
    }

    .hero__controls {
        position: relative;
        right: auto;
        bottom: auto;
        justify-content: center;
        margin-top: 18px;
    }

    section {
        padding-top: 34px;
    }

    #products {
        padding-top: 20px;
    }

    h2 {
        font-size: 26px;
    }

    .section-head {
        gap: 10px;
        margin-bottom: 18px;
    }

    .section-head p {
        font-size: 16px;
        line-height: 1.55;
    }

    .section-link {
        width: 100%;
        justify-content: center;
    }

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

    .catalog-search-filter,
    .category-filter {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .catalog-reset {
        width: 100%;
        min-height: 48px;
    }

    .stats,
    .advantages,
    .admin-stats,
    .info-layout,
    .admin-workspace,
    .steps-grid,
    .product-support-row,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .info-menu {
        position: static;
    }

    .category-carousel,
    .product-carousel,
    .partner-carousel {
        display: block;
    }

    .category-carousel__arrow,
    .product-carousel__arrow,
    .partner-carousel__arrow {
        display: none;
    }

    .category-grid {
        grid-auto-columns: minmax(210px, 70vw);
        gap: 12px;
        scroll-padding-inline: 1px;
    }

    .category-card {
        min-height: 118px;
        padding: 16px;
        font-size: 17px;
    }

    [data-product-track] {
        grid-auto-flow: column;
        grid-auto-columns: minmax(236px, 76vw);
        grid-template-columns: none;
        gap: 12px;
        scroll-padding-inline: 1px;
    }

    .partner-track {
        grid-auto-columns: minmax(190px, 72vw);
        gap: 12px;
        scroll-padding-inline: 1px;
    }

    .partner-card {
        height: 104px;
        padding: 10px;
    }

    .stats {
        gap: 10px;
        margin-top: 14px;
    }

    .stats div {
        padding: 14px 16px;
    }

    .stats strong {
        font-size: 22px;
    }

    .stats span {
        font-size: 15px;
    }

    .advantage,
    .step {
        padding: 16px;
    }

    .step h3 {
        font-size: 20px;
        line-height: 1.25;
    }

    .step p {
        font-size: 15px;
        line-height: 1.5;
    }

    .scroll-top {
        display: none;
    }

    .customer-chat {
        right: 12px;
        bottom: 12px;
    }

    .customer-chat__launch {
        width: 52px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .customer-chat__launch span {
        display: none;
    }

    .customer-chat__panel {
        position: fixed;
        right: 12px;
        bottom: 76px;
        width: calc(100vw - 24px);
        height: min(620px, calc(100dvh - 92px));
    }

    .cart-item {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .cart-item__actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .cart-section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .product-page__summary,
    .product-keyfacts,
    .product-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    .container {
        width: min(100% - 16px, 560px);
    }

    .header__bottom {
        padding: 8px;
    }

    .catalog-btn {
        padding-inline: 9px;
        font-size: 14px;
    }

    .phone,
    .location-btn,
    .mail-link,
    .cart-btn {
        width: 38px;
        min-width: 38px;
        height: 38px;
        min-height: 38px;
    }

    .cart-btn {
        flex-basis: 38px;
    }

    .hero__wrapper {
        padding: 20px 15px;
    }

    .hero h1 {
        font-size: clamp(28px, 9vw, 36px);
    }

    .hero__text-block > p {
        font-size: 15px;
    }

    .hero__actions .btn {
        padding-inline: 12px;
        font-size: 14px;
    }

    .hero__actions .btn__logo {
        width: 72px;
        flex-basis: 72px;
    }

    .customer-chat__panel {
        right: 8px;
        bottom: 68px;
        width: calc(100vw - 16px);
        height: min(600px, calc(100dvh - 80px));
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
