/* ============================================================
   TechStore — Modern E-commerce UI 2026
   Полностью переработанный дизайн: тёмная тема, градиенты,
   анимации, кастомные элементы форм, выпадающее меню каталога.
   ============================================================ */

/* ----- Импорт шрифтов (уже в header) ----- */
/* Подключаются через Google Fonts: Inter + JetBrains Mono */

/* ----- CSS Variables ----- */
:root {
    /* Основные цвета */
    --bg-primary: #0b0b12;
    --bg-secondary: #13131e;
    --bg-tertiary: #1a1a2e;
    --bg-card: #1a1a2e;
    --bg-elevated: #22223a;
    --bg-input: #1e1e32;

    --accent-start: #6C3CE1;
    --accent-end: #4A9BF5;
    --accent-muted: rgba(108, 60, 225, 0.15);
    --accent-glow: rgba(108, 60, 225, 0.4);

    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b8;
    --text-muted: #6a6a82;
    --on-photo: var(--text-primary);
    --on-photo-muted: var(--text-secondary);
    --overlay-from: rgba(11, 11, 18, 0.18);
    --overlay-to: rgba(11, 11, 18, 0.9);
    --overlay-side: rgba(11, 11, 18, 0.88);

    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);

    --success: #2ecc71;
    --warning: #f1c40f;
    --danger: #e74c3c;
    --info: #3498db;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 40px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 50px var(--accent-glow);

    --header-height: 60px;
    --mnav-h: 0px;
    --container: 1280px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    /* Шрифты */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;
}

/* ----- Сброс и база ----- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: clamp(14px, 1vw + 12px, 16px);
    color-scheme: dark;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: var(--accent-end);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.main {
    flex: 1;
    padding-bottom: 60px;
}

/* ----- Скроллбар ----- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-start);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-end);
}

/* ----- Общие компоненты ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: #fff;
    border: none;
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn--secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn--secondary:hover {
    border-color: var(--accent-end);
    color: var(--accent-end);
}

.btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn--ghost:hover {
    border-color: var(--accent-end);
    color: var(--accent-end);
}

.btn--danger {
    background: var(--danger);
    color: #fff;
    border: none;
}
.btn--danger:hover {
    filter: brightness(1.1);
}

.btn--sm {
    padding: 8px 16px;
    font-size: 0.8125rem;
}
.btn--lg {
    padding: 16px 32px;
    font-size: 1rem;
}
.btn--block {
    width: 100%;
}

/* ----- Формы ----- */
input,
select,
textarea {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    transition: border-color var(--transition), box-shadow var(--transition);
    width: 100%;
}
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-start);
    box-shadow: 0 0 0 3px var(--accent-muted);
}

/* Кастомный select */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a0a0b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}
select:hover {
    border-color: var(--border-hover);
}
select:focus {
    border-color: var(--accent-start);
}

/* Чекбоксы и радио */
input[type="checkbox"],
input[type="radio"] {
    width: auto;
    accent-color: var(--accent-start);
    margin-right: 8px;
}

/* ----- HEADER ----- */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

/* Верхняя строка (контакты, тема) */
.header__top {
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
    font-size: 0.8125rem;
    padding: 4px 0;
}
.header__top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 8px;
}
.header__contacts {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--text-secondary);
}
.header__contacts a {
    color: var(--text-secondary);
}
.header__contacts a:hover {
    color: var(--accent-end);
}
.header__divider {
    color: var(--text-muted);
}
.header__actions-top {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}
.header__actions-top a {
    color: var(--text-secondary);
    font-size: 0.8125rem;
}
.header__actions-top a:hover {
    color: var(--accent-end);
}

/* Основная часть шапки (лого, поиск, навигация) */
.header__main-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 12px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.375rem;
    white-space: nowrap;
}
.logo__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    color: #fff;
}
.logo:hover {
    color: var(--text-primary);
}

/* Поиск */
.search-form {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
}
.search-form input {
    flex: 1;
    min-width: 0;
    padding: 12px 20px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.search-form input:focus {
    outline: none;
    border-color: var(--accent-start);
    box-shadow: 0 0 0 3px var(--accent-muted);
}
.search-form button {
    position: static;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: filter var(--transition), transform var(--transition);
}
.search-form button:hover {
    filter: brightness(1.1);
    transform: none;
}
.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 56px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: none;
    z-index: 100;
    max-height: 320px;
    overflow-y: auto;
}
.search-suggestions.active {
    display: block;
}
.search-suggestions a {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-primary);
}
.search-suggestions a:hover {
    background: var(--bg-tertiary);
    color: var(--accent-end);
}
.search-suggestions a:last-child {
    border-bottom: none;
}

/* Навигация (корзина, избранное, сравнение) */
.header__nav {
    display: flex;
    gap: 12px;
    align-items: center;
}
.header__nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.875rem;
    transition: background var(--transition);
    position: relative;
    color: var(--text-secondary);
}
.header__nav-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}
.header__nav-link .icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}
.badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--danger);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.badge--accent {
    background: var(--accent-start);
}

/* Бургер (мобилка) */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.burger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ----- ВЫПАДАЮЩЕЕ МЕНЮ КАТАЛОГА ----- */
.header__catalog {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 4px 0;
}
.header__catalog-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
}
.catalog-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: filter var(--transition);
}
.catalog-toggle:hover {
    filter: brightness(1.1);
}
.catalog-toggle .icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}
.catalog-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    display: none;
    z-index: 999;
    max-height: 400px;
    overflow-y: auto;
}
.catalog-dropdown.open {
    display: block;
}
.catalog-dropdown li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    transition: background var(--transition), color var(--transition);
}
.catalog-dropdown li a:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}
.catalog-dropdown li a .icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    opacity: 0.6;
}

/* Дополнительные ссылки в шапке (Акции, Контакты) */
.header__catalog-links {
    display: flex;
    gap: 16px;
    margin-left: auto;
}
.header__catalog-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 0;
}
.header__catalog-links a:hover {
    color: var(--accent-end);
}

/* ----- HERO / BENTO ----- */
.promo-strip {
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
    padding: 10px 0;
}
.promo-strip__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}
.promo-strip__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-end);
    align-self: center;
}
.hero {
    padding: 28px 0 12px;
}
.hero__bento {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    min-height: 520px;
}
.hero__banner {
    grid-row: span 2;
    position: relative;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 420px;
}
.hero__media,
.hero__tile img,
.lookbook__hero img,
.promo-banner img,
.split-cta__media img,
.category-card--photo img,
.product-card__image img,
.product-gallery img,
.cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero__media {
    position: absolute;
    inset: 0;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--overlay-from) 0%, var(--overlay-to) 100%);
    pointer-events: none;
}
.hero__content {
    position: relative;
    z-index: 1;
    max-width: 560px;
    color: var(--on-photo);
}
.hero__banner-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-end);
    margin-bottom: 12px;
    display: inline-block;
}
.hero__banner h1,
.hero__content h1 {
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 12px;
}
.hero__banner p,
.hero__content p {
    color: var(--on-photo-muted);
    margin-bottom: 24px;
    max-width: 460px;
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.hero__tile {
    position: relative;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    min-height: 220px;
    transition: border-color var(--transition), transform var(--transition);
}
.hero__tile--photo img {
    position: absolute;
    inset: 0;
}
.hero__tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--overlay-from) 20%, var(--overlay-to) 100%);
}
.hero__tile-body {
    position: relative;
    z-index: 1;
    color: var(--on-photo);
}
.hero__tile-kicker {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-end);
}
.hero__tile:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    color: inherit;
}
.hero__tile h3 {
    font-size: 1.125rem;
    margin: 6px 0;
}
.hero__tile p {
    font-size: 0.875rem;
    color: var(--on-photo-muted);
}

.hero__content .btn--ghost,
.promo-banner__copy .btn--ghost,
.lookbook__hero-copy .btn--ghost {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border);
}

/* ----- СЕКЦИИ ----- */
.section {
    padding: 48px 0;
}
.section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    gap: 16px;
    flex-wrap: wrap;
}
.section__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
}
.section__link {
    color: var(--accent-end);
    font-weight: 500;
    font-size: 0.9375rem;
}
.section__link:hover {
    color: var(--accent-start);
}

/* ----- КАРТОЧКИ ТОВАРОВ (product-card) ----- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}
.product-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}
.product-card__link {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-card__link:hover {
    color: var(--text-primary);
}
.product-card__image {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-card__image img {
    transition: transform 0.45s ease;
}
.product-card:hover .product-card__image img {
    transform: scale(1.06);
}
.product-card__placeholder {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-muted);
    font-family: var(--font-mono);
}
.product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-mono);
    text-transform: uppercase;
}
.product-card__badge--sale {
    background: var(--danger);
    color: #fff;
}
.product-card__badge--hit {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: #fff;
    top: auto;
    bottom: 12px;
}
.product-card__body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.product-card__brand {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}
.product-card__title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card__rating {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}
.product-card__rating .stars {
    color: var(--warning);
}
.product-card__price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
}
.product-card__price {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-mono);
}
.product-card__old-price {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: line-through;
}
.product-card__stock {
    font-size: 0.75rem;
    font-family: var(--font-mono);
}
.product-card__stock--in_stock {
    color: var(--success);
}
.product-card__stock--on_order {
    color: var(--warning);
}
.product-card__stock--out_of_stock {
    color: var(--danger);
}
.product-card__actions {
    display: flex;
    gap: 8px;
    padding: 0 16px 16px;
}
.product-card__actions .btn {
    flex: 1;
}
.product-card__actions .btn-wishlist {
    flex: 0;
    width: 40px;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 1.125rem;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card__actions .btn-wishlist:hover {
    border-color: var(--danger);
    color: var(--danger);
}
.product-card__actions .btn-wishlist.active {
    color: var(--danger);
    border-color: var(--danger);
    background: rgba(231, 76, 60, 0.1);
}
.product-card__actions .btn-compare {
    flex: 0;
    width: 40px;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card__actions .btn-compare:hover {
    border-color: var(--accent-end);
    color: var(--accent-end);
}
.product-card__actions .btn-compare.active {
    color: var(--accent-end);
    border-color: var(--accent-end);
    background: var(--accent-muted);
}

/* ----- КАТЕГОРИИ ----- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}
.categories-grid--photos {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.category-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition);
}
.category-card--photo {
    position: relative;
    padding: 0;
    min-height: 200px;
    overflow: hidden;
    text-align: left;
    display: flex;
    align-items: flex-end;
}
.category-card--photo img {
    position: absolute;
    inset: 0;
}
.category-card--photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, var(--overlay-to) 100%);
}
.category-card:hover {
    border-color: var(--accent-start);
    transform: translateY(-4px);
}
.category-card--photo:hover {
    color: inherit;
}
.category-card__icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}
.category-card__name {
    font-weight: 600;
    font-size: 0.9375rem;
}
.category-card--photo .category-card__name {
    position: relative;
    z-index: 1;
    padding: 16px;
    font-size: 1rem;
    color: var(--on-photo);
}

.lookbook {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 20px;
    align-items: stretch;
}
.lookbook__hero {
    position: relative;
    min-height: 520px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    align-items: flex-end;
    color: inherit;
}
.lookbook__hero:hover {
    color: inherit;
}
.lookbook__hero-copy {
    position: relative;
    z-index: 1;
    padding: 32px;
    width: 100%;
    color: var(--on-photo);
    background: linear-gradient(180deg, transparent, var(--overlay-to));
}
.lookbook__hero-copy h3 {
    font-size: 1.6rem;
    margin: 8px 0 6px;
}
.lookbook__hero-copy p {
    color: var(--on-photo-muted);
    margin-bottom: 16px;
}
.lookbook__grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.promo-banner {
    position: relative;
    display: block;
    min-height: 280px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    color: inherit;
}
.promo-banner:hover {
    color: inherit;
}
.promo-banner__copy {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    color: var(--on-photo);
    background: linear-gradient(90deg, var(--overlay-side) 0%, var(--overlay-from) 70%);
    max-width: 100%;
}
.promo-banner__copy h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    max-width: 520px;
    margin-bottom: 8px;
}
.promo-banner__copy p {
    color: var(--on-photo-muted);
    margin-bottom: 18px;
    max-width: 460px;
}
.split-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-card);
}
.split-cta__media {
    min-height: 320px;
}
.split-cta__body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.split-cta__body h2 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    margin: 8px 0 12px;
}
.split-cta__body p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ----- ПРЕИМУЩЕСТВА (features) ----- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}
.feature-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition);
}
.feature-card:hover {
    border-color: var(--border-hover);
}
.feature-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-muted);
    border-radius: var(--radius-md);
    color: var(--accent-end);
    font-size: 1.5rem;
    margin-bottom: 16px;
}
.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}
.feature-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ----- СТРАНИЦА КАТАЛОГА ----- */
.page-header {
    padding: 32px 0 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}
.page-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 8px;
}
.breadcrumbs {
    font-size: 0.875rem;
    color: var(--text-secondary);
}
.breadcrumbs a:hover {
    color: var(--accent-end);
}
.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}
.filters {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: calc(var(--header-height) + 20px);
}
.filters h3 {
    font-size: 1rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.filter-group {
    margin-bottom: 20px;
}
.filter-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.filter-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.875rem;
    cursor: pointer;
}
.filter-check input {
    width: auto;
    accent-color: var(--accent-start);
}
.price-range {
    display: flex;
    gap: 8px;
    align-items: center;
}
.price-range input {
    flex: 1;
}
.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.catalog-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}
.sort-select {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    cursor: pointer;
    min-width: 180px;
}
.catalog-lead {
    color: var(--text-secondary);
    margin-top: 8px;
    max-width: 720px;
    font-size: 0.9375rem;
}
.facet-scroll,
.price-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.facet-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    font-size: 0.8125rem;
    color: var(--text-primary);
    white-space: nowrap;
}
.facet-chip.is-on {
    border-color: var(--accent-start);
    background: color-mix(in srgb, var(--accent-start) 16%, var(--bg-card));
}
.filter-group__title {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-secondary);
}
.brand-scroll {
    max-height: 220px;
    overflow: auto;
    padding-right: 4px;
}
.active-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.active-chip {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    font-size: 0.8125rem;
}
.active-chip--clear { color: var(--text-secondary); }
.catalog-toolbar__right {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.view-toggle { display: flex; gap: 4px; }
.view-toggle__btn {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
}
.view-toggle__btn.is-on { border-color: var(--accent-start); }
.filters-open {
    display: none;
    width: 100%;
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
}
.filters-close {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}
.filters__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.products-grid--list {
    grid-template-columns: 1fr;
}
.products-grid--list .product-card {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    align-items: center;
}
.product-card__hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
}
.trust-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 20px 0;
}
.trust-row span {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-secondary);
}
.buy-bar {
    display: none;
}
@media (max-width: 960px) {
    .filters-open { display: block; }
    .filters-close { display: block; }
    .filters-scrim {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.55);
        z-index: 80;
    }
    .filters-scrim.is-on { display: block; }
    .filters {
        position: fixed;
        z-index: 90;
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        width: 100%;
        max-height: min(86vh, 720px);
        overflow: auto;
        transform: translateY(110%);
        transition: transform 0.28s ease;
        border-radius: 20px 20px 0 0;
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }
    .filters.is-open { transform: translateY(0); }
    .buy-bar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(var(--mnav-h) + env(safe-area-inset-bottom));
        z-index: 86;
        gap: 10px;
        padding: 10px 16px;
        background: var(--bg-card);
        border-top: 1px solid var(--border);
        align-items: center;
        justify-content: space-between;
        transform: translateY(120%);
        transition: transform 0.25s ease;
    }
    .buy-bar.is-visible { transform: translateY(0); }
    .product-page { padding-bottom: 24px; }
}

/* ----- СТРАНИЦА ТОВАРА (product.php) ----- */
.product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 40px 0;
}
.product-gallery {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    background: transparent;
    border: none;
    overflow: visible;
}
.product-gallery__thumbs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 100%;
    overflow: auto;
}
.product-gallery__thumb {
    position: relative;
    padding: 0;
    border: 2px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-tertiary);
    cursor: pointer;
    aspect-ratio: 1;
    flex-shrink: 0;
}
.product-gallery__thumb-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    font-size: 0.6rem;
    line-height: 1.2;
    padding: 3px 4px;
    background: var(--overlay-to);
    color: var(--on-photo);
    text-align: center;
}
.product-gallery__stage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-in;
    transform-origin: center;
    transition: transform 0.35s ease, filter 0.35s ease;
}
.product-gallery__stage[data-view="side"] img {
    transform: perspective(900px) rotateY(-30deg) scale(0.88);
    filter: contrast(1.05);
}
.product-gallery__stage[data-view="back"] img {
    transform: scaleX(-1) scale(0.94);
    filter: brightness(0.82) saturate(0.9);
}
.product-gallery__stage[data-view="top"] img {
    transform: perspective(700px) rotateX(42deg) scale(0.9);
    filter: brightness(1.08);
}
.product-gallery__stage[data-view="detail"] img {
    transform: scale(1.55);
    object-position: 42% 38%;
}
.product-gallery__preview--side { transform: perspective(400px) rotateY(-24deg) scale(0.9); }
.product-gallery__preview--back { transform: scaleX(-1); filter: brightness(0.85); }
.product-gallery__preview--top { transform: perspective(300px) rotateX(28deg); }
.product-gallery__preview--detail { transform: scale(1.4); object-position: 40% 40%; }
.product-gallery__thumb.is-active {
    border-color: var(--accent-start);
}
.product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-gallery__stage {
    position: relative;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-gallery__stage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-in;
}
.product-gallery__prev,
.product-gallery__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--overlay-to);
    color: var(--on-photo);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}
.product-gallery__prev { left: 10px; }
.product-gallery__next { right: 10px; }
.product-gallery__count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: var(--overlay-to);
    color: var(--on-photo);
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 999px;
    font-family: var(--font-mono);
}
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.88);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.gallery-lightbox.is-open { display: flex; }
.gallery-lightbox img {
    max-width: min(96vw, 1100px);
    max-height: 90vh;
    object-fit: contain;
}
.gallery-lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}
.product-gallery__placeholder {
    font-size: 6rem;
    font-weight: 700;
    color: var(--text-muted);
    font-family: var(--font-mono);
}
.product-info__text {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}
.product-info__brand {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-end);
    margin-bottom: 8px;
}
.product-info h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 12px;
    line-height: 1.3;
}
.product-info__meta {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}
.product-info__meta .sku {
    font-family: var(--font-mono);
}
.product-info__price-block {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}
.product-info__price {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-mono);
    margin-bottom: 4px;
}
.product-info__old-price {
    font-size: 1.125rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 12px;
}
.product-info__stock {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-family: var(--font-mono);
    margin-top: 12px;
}
.product-info__stock--in_stock {
    background: rgba(46, 204, 113, 0.15);
    color: var(--success);
}
.product-info__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.qty-control button {
    width: 44px;
    height: 44px;
    background: var(--bg-tertiary);
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: background var(--transition);
}
.qty-control button:hover {
    background: var(--accent-muted);
    color: var(--accent-end);
}
.qty-control input {
    width: 56px;
    text-align: center;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 1rem;
    padding: 0;
}
.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.specs-table tr {
    border-bottom: 1px solid var(--border);
}
.specs-table td {
    padding: 12px 0;
}
.specs-table td:first-child {
    color: var(--text-secondary);
    width: 40%;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
}
.specs-table td:last-child {
    font-weight: 500;
}
.tabs {
    margin-top: 48px;
}
.tabs__nav {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}
.tabs__btn {
    padding: 12px 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all var(--transition);
}
.tabs__btn.active,
.tabs__btn:hover {
    color: var(--accent-end);
    border-bottom-color: var(--accent-end);
}
.tabs__panel {
    display: none;
}
.tabs__panel.active {
    display: block;
}
.review-card {
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}
.review-card__header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.review-card__author {
    font-weight: 600;
}
.review-card__rating {
    color: var(--warning);
}
.review-card__text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

/* ----- КОРЗИНА (cart.php) ----- */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    padding: 40px 0;
}
.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    gap: 20px;
    align-items: center;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
}
.cart-item__image {
    width: 80px;
    height: 80px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.cart-item__name {
    font-weight: 600;
    margin-bottom: 4px;
}
.cart-item__sku {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}
.cart-item__price {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.125rem;
    white-space: nowrap;
}
.cart-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: sticky;
    top: calc(var(--header-height) + 20px);
}
.cart-summary h3 {
    margin-bottom: 20px;
}
.cart-summary__row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.9375rem;
}
.cart-summary__total {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin: 16px 0 24px;
}
.promo-form {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.promo-form input {
    flex: 1;
}
.cart-empty {
    text-align: center;
    padding: 80px 20px;
}
.cart-empty__icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* ----- ОФОРМЛЕНИЕ ЗАКАЗА (checkout.php) ----- */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    padding: 40px 0;
}
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
}
.form-card h3 {
    margin-bottom: 20px;
    font-size: 1.125rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color var(--transition);
}
.radio-option:has(input:checked) {
    border-color: var(--accent-start);
    background: var(--accent-muted);
}
.radio-option input {
    accent-color: var(--accent-start);
    width: auto;
}

/* ----- УВЕДОМЛЕНИЯ (alert) ----- */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.9375rem;
}
.alert--success {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid var(--success);
    color: var(--success);
}
.alert--error {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid var(--danger);
    color: var(--danger);
}
.alert--info {
    background: rgba(52, 152, 219, 0.15);
    border: 1px solid var(--info);
    color: var(--info);
}

/* ----- СТРАНИЦА ИЗБРАННОГО (wishlist.php) и СРАВНЕНИЯ (compare.php) ----- */
.wishlist-grid,
.compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    padding: 20px 0;
}
.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.compare-table th,
.compare-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    text-align: center;
    vertical-align: middle;
}
.compare-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}
.compare-table td:first-child {
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    text-align: left;
}
.compare-table .remove-btn {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 1.25rem;
    cursor: pointer;
    transition: color var(--transition);
}
.compare-table .remove-btn:hover {
    color: var(--text-primary);
}
.compare-empty,
.wishlist-empty {
    text-align: center;
    padding: 80px 20px;
}

/* ----- СТРАНИЦЫ КОНТЕНТА (about, delivery, warranty, faq, contacts) ----- */
.content-page {
    padding: 40px 0;
    max-width: 800px;
}
.content-page h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 24px;
}
.content-page h2 {
    font-size: 1.375rem;
    margin: 32px 0 16px;
}
.content-page p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}
.content-page ul {
    margin-bottom: 16px;
    padding-left: 20px;
}
.content-page li {
    margin-bottom: 8px;
    color: var(--text-secondary);
    list-style: disc;
}
.faq-list {
    max-width: 800px;
}
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    overflow: hidden;
}
.faq-item summary {
    padding: 18px 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--accent-end);
}
.faq-item[open] summary::after {
    content: '−';
}
.faq-item__answer {
    padding: 0 20px 18px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.service-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition);
}
.service-card:hover {
    border-color: var(--accent-start);
}
.service-card__icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}
.service-card h3 {
    margin-bottom: 12px;
}
.service-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 16px;
}
.service-card__price {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent-end);
    margin-bottom: 16px;
}
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 40px 0;
}
.contact-info__item {
    margin-bottom: 24px;
}
.contact-info__item h4 {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-family: var(--font-mono);
}
.contact-info__item p,
.contact-info__item a {
    font-size: 1.125rem;
}
.map-placeholder {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ----- ПАГИНАЦИЯ ----- */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 40px;
}
.pagination a,
.pagination span {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-family: var(--font-mono);
}
.pagination a:hover,
.pagination .active {
    background: var(--accent-muted);
    border-color: var(--accent-start);
    color: var(--accent-end);
}

/* ----- TOAST (уведомления) ----- */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--accent-start);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
    color: var(--text-primary);
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ----- FOOTER ----- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 0 24px;
    margin-top: auto;
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer__desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 16px 0;
    line-height: 1.6;
}
.footer__social {
    display: flex;
    gap: 12px;
}
.footer__social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    transition: all var(--transition);
    color: var(--text-secondary);
}
.footer__social a:hover {
    background: var(--accent-start);
    color: #fff;
}
.footer__col h4 {
    font-size: 0.9375rem;
    margin-bottom: 16px;
}
.footer__col ul li {
    margin-bottom: 10px;
}
.footer__col ul a {
    font-size: 0.875rem;
    color: var(--text-secondary);
}
.footer__col ul a:hover {
    color: var(--accent-end);
}
.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.8125rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 16px;
}
.footer__payments {
    display: flex;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

/* ----- АДАПТИВНОСТЬ ----- */
@media (max-width: 1024px) {
    .hero__bento {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .hero__banner {
        grid-row: span 1;
        min-height: 380px;
    }
    .lookbook,
    .split-cta {
        grid-template-columns: 1fr;
    }
    .lookbook__hero {
        min-height: 360px;
    }
    .catalog-layout,
    .cart-layout,
    .checkout-layout,
    .product-page,
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    .product-gallery {
        grid-template-columns: 1fr;
    }
    .product-gallery__thumbs {
        flex-direction: row;
        order: 2;
    }
    .product-gallery__stage {
        order: 1;
    }
    .product-gallery__thumb {
        width: 72px;
        height: 72px;
    }
    .filters {
        position: static;
    }
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
    .compare-table {
        font-size: 0.8125rem;
    }
    .compare-table th,
    .compare-table td {
        padding: 10px 12px;
    }
}

@media (max-width: 768px) {
    .header__main-inner {
        grid-template-columns: auto 1fr;
        gap: 10px;
        padding: 8px 12px;
    }
    .hero__bento {
        grid-template-columns: 1fr;
    }
    .lookbook__grid {
        grid-template-columns: 1fr 1fr;
    }
    .promo-banner__copy {
        background: linear-gradient(180deg, transparent, var(--overlay-to));
    }
    .cart-item {
        grid-template-columns: 60px 1fr;
    }
    .cart-item__price,
    .cart-item .qty-control {
        grid-column: 2;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .footer__grid {
        grid-template-columns: 1fr;
    }
    .header__catalog-inner {
        flex-wrap: wrap;
        gap: 8px;
    }
    .catalog-toggle {
        width: 100%;
        justify-content: center;
    }
    .header__catalog-links {
        margin-left: 0;
        justify-content: center;
        width: 100%;
        gap: 12px;
    }
    .catalog-dropdown {
        position: static;
        box-shadow: none;
        border-radius: var(--radius-md);
        margin-top: 8px;
        max-height: 300px;
    }
    .header__top-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 4px 12px;
    }
    .header__contacts {
        justify-content: center;
        flex-wrap: wrap;
    }
    .header__actions-top {
        justify-content: center;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    .compare-table {
        font-size: 0.75rem;
    }
    .compare-table th,
    .compare-table td {
        padding: 8px 10px;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
    }
    .product-card__body {
        padding: 12px;
    }
    .product-card__title {
        font-size: 0.8125rem;
    }
    .product-card__price {
        font-size: 1rem;
    }
    .hero__banner {
        padding: 24px;
        min-height: 200px;
    }
    .hero__banner h1 {
        font-size: 1.5rem;
    }
    .cart-summary {
        padding: 20px;
    }
}
/* Левая часть шапки: лого + кнопка каталога */
.header__left {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}
.catalog-menu {
    position: relative;
}

/* Кнопка каталога рядом с логотипом */
.catalog-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: filter var(--transition);
    white-space: nowrap;
}
.catalog-toggle:hover {
    filter: brightness(1.1);
}
.catalog-toggle .icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Выпадающее меню каталога */
.catalog-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    display: none;
    z-index: 999;
    max-height: 400px;
    overflow-y: auto;
}
.catalog-dropdown.open {
    display: block;
}
.catalog-dropdown li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    transition: background var(--transition), color var(--transition);
}
.catalog-dropdown li a:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Верхние ссылки (акции, услуги, контакты) — более заметные */
.header__top-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    color: var(--text-primary);
    transition: color var(--transition);
}
.header__top-link svg {
    stroke: currentColor;
    flex-shrink: 0;
}
.header__top-link:hover {
    color: var(--accent-end);
}

/* Адаптив */
@media (max-width: 768px) {
    .header__left {
        flex: 1;
        gap: 8px;
    }
    .catalog-toggle span:last-child {
        display: none; /* скрыть текст "Каталог" на мобилках, оставить иконку */
    }
    .header__top-link {
        font-size: 0.8125rem;
    }
    .header__top-link svg {
        width: 14px;
        height: 14px;
    }
}
/* ===== Кнопка избранного (сердечко) ===== */
.btn-wishlist {
    font-size: 1.2rem;
    transition: all 0.2s;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px 14px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
}

.btn-wishlist:hover {
    color: #e74c3c;
    border-color: #e74c3c;
}

.btn-wishlist.active {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.15);
    border-color: #e74c3c;
}/* ===== Кнопки на карточке товара ===== */
.product-card__actions {
    display: flex;
    gap: 8px;
    padding: 0 16px 16px;
    align-items: center;
    flex-wrap: wrap;
}

.product-card__actions .btn {
    flex: 1; /* кнопка "В корзину" занимает всё свободное место */
}

.product-card__actions .btn-wishlist,
.product-card__actions .btn-compare {
    flex: 0 0 auto; /* не растягиваются */
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.product-card__actions .btn-wishlist:hover,
.product-card__actions .btn-compare:hover {
    border-color: var(--accent-end);
    color: var(--accent-end);
}

.product-card__actions .btn-wishlist.active {
    color: #e74c3c;
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.15);
}

.product-card__actions .btn-compare.active {
    color: var(--accent-end);
    border-color: var(--accent-end);
    background: var(--accent-muted);
}

/* ----- КОНСТРУКТОР ПК ----- */
.builder-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.builder-progress-card {
    min-width: 220px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.builder-progress-card span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    text-transform: uppercase;
}
.builder-progress-card strong {
    display: block;
    margin: 4px 0 8px;
}
.builder-progress {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 99px;
    overflow: hidden;
}
.builder-progress i {
    display: block;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
}
.builder-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: start;
    padding-bottom: 48px;
}
.builder-steps {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.builder-step {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: inherit;
}
.builder-step:hover {
    border-color: var(--border-hover);
    color: inherit;
}
.builder-step.is-active {
    border-color: var(--accent-end);
    box-shadow: 0 0 0 3px var(--accent-muted);
}
.builder-step.is-filled .builder-step__num {
    background: var(--success);
    color: #fff;
}
.builder-step__num {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 700;
}
.builder-step__body strong {
    display: block;
    font-size: 0.875rem;
}
.builder-step__body small {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.35;
    margin-top: 2px;
}
.builder-step__price {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}
.builder-step__pick {
    font-size: 0.75rem;
    color: var(--accent-end);
    font-weight: 600;
}
.builder-catalog {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    min-height: 480px;
}
.builder-catalog__toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.builder-catalog__toolbar h2 {
    font-size: 1.25rem;
}
.builder-catalog__toolbar p {
    color: var(--text-muted);
    font-size: 0.8125rem;
}
.builder-sort select {
    min-width: 200px;
}
.builder-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.builder-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 170px;
    gap: 16px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    align-items: center;
}
.builder-row.is-selected {
    border-color: var(--accent-end);
    background: var(--accent-muted);
}
.builder-row__img {
    width: 96px;
    height: 96px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-tertiary);
}
.builder-row__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.builder-row__info h3 {
    font-size: 0.95rem;
    margin: 2px 0 6px;
}
.builder-row__info h3 a:hover {
    color: var(--accent-end);
}
.builder-row__specs {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    margin-bottom: 6px;
}
.builder-row__buy {
    text-align: right;
}
.builder-row__buy .btn {
    width: 100%;
    margin-top: 8px;
}
.builder-summary {
    position: sticky;
    top: 88px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}
.builder-summary h3 {
    margin-bottom: 16px;
}
.builder-summary__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.builder-summary__list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}
.builder-summary__list strong {
    color: var(--text-primary);
    font-family: var(--font-mono);
}
.builder-summary__list em {
    color: var(--text-muted);
    font-style: normal;
}
.builder-summary__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
    font-size: 1.05rem;
}
.builder-summary__total strong {
    font-family: var(--font-mono);
    font-size: 1.35rem;
}
.builder-compat {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    font-size: 0.75rem;
    color: var(--success);
}
.builder-compat li {
    margin-bottom: 6px;
}
.builder-summary__note {
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
}
@media (max-width: 1100px) {
    .builder-layout {
        grid-template-columns: 1fr;
    }
    .builder-steps,
    .builder-summary {
        position: static;
    }
    .builder-row {
        grid-template-columns: 72px 1fr;
    }
    .builder-row__buy {
        grid-column: 1 / -1;
        text-align: left;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    .builder-row__buy .btn {
        width: auto;
        margin-top: 0;
        min-width: 140px;
    }
}

/* ----- Мобильная навигация 2026 ----- */
.mnav,
.msheet,
.msheet-scrim {
    display: none;
}

@media (max-width: 768px) {
    :root { --mnav-h: 56px; }
    html { scroll-padding-bottom: calc(var(--mnav-h) + env(safe-area-inset-bottom, 0px) + 12px); }
    body {
        padding-bottom: calc(var(--mnav-h) + env(safe-area-inset-bottom, 0px));
    }
    body.sheet-open { overflow: hidden; }

    .header__top,
    .header__nav,
    .catalog-menu,
    .burger {
        display: none !important;
    }
    .search-form {
        display: flex;
        max-width: none;
        margin: 0;
        gap: 8px;
    }
    .search-form input {
        padding: 10px 14px;
        font-size: 16px;
        min-height: 44px;
    }
    .search-form button {
        width: 44px;
        height: 44px;
    }
    .search-suggestions {
        right: 0;
        max-height: min(50vh, 280px);
    }
    .logo {
        font-size: 1.05rem;
        gap: 6px;
    }
    .logo__icon {
        width: 34px;
        height: 34px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .mnav {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 80;
        background: rgba(19, 19, 30, 0.96);
        backdrop-filter: blur(16px);
        border-top: 1px solid var(--border);
        padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px));
        min-height: calc(var(--mnav-h) + env(safe-area-inset-bottom, 0px));
    }
    .mnav__item {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        min-height: 48px;
        padding: 4px 2px;
        background: none;
        border: none;
        color: var(--text-muted);
        font-family: var(--font-sans);
        font-size: 0.625rem;
        font-weight: 600;
        text-decoration: none;
        cursor: pointer;
    }
    .mnav__item svg {
        width: 22px;
        height: 22px;
        stroke: currentColor;
        fill: none;
    }
    .mnav__item.is-on { color: var(--text-primary); }
    .mnav__badge {
        position: absolute;
        top: 2px;
        right: 18%;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        border-radius: 99px;
        background: var(--danger);
        color: #fff;
        font-size: 0.625rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .msheet-scrim {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 88;
        background: rgba(0, 0, 0, 0.55);
    }
    .msheet-scrim[hidden] { display: none; }
    .msheet {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 89;
        max-height: min(78vh, 640px);
        overflow: auto;
        background: var(--bg-elevated);
        border-radius: 20px 20px 0 0;
        padding: 8px 16px calc(20px + env(safe-area-inset-bottom, 0px));
        box-shadow: var(--shadow-md);
    }
    .msheet[hidden] { display: none; }
    .msheet__grab {
        width: 40px;
        height: 4px;
        border-radius: 99px;
        background: var(--border-hover);
        margin: 8px auto 16px;
    }
    .msheet h3 {
        font-size: 1.05rem;
        margin-bottom: 8px;
    }
    .msheet a {
        display: block;
        padding: 14px 4px;
        min-height: 48px;
        border-bottom: 1px solid var(--border);
        color: var(--text-primary);
        font-size: 0.975rem;
    }
    .msheet a:last-child { border-bottom: none; }

    .toast {
        left: 12px;
        right: 12px;
        bottom: calc(var(--mnav-h) + env(safe-area-inset-bottom, 0px) + 16px);
        max-width: none;
    }

    .hero {
        padding: 12px 0 8px;
    }
    .hero__banner {
        min-height: 280px;
        padding: 20px;
        border-radius: 16px;
    }
    .hero__tile {
        min-height: 160px;
        padding: 16px;
    }
    .hero__actions .btn {
        min-height: 44px;
        flex: 1;
    }
    .section { padding: 28px 0; }
    .section__header { margin-bottom: 16px; }
    .section__title { font-size: 1.25rem; }

    .products-grid,
    .wishlist-grid,
    .compare-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .product-card { border-radius: 14px; }
    .product-card:hover { transform: none; }
    .product-card__actions {
        padding: 0 10px 10px;
        gap: 6px;
    }
    .product-card__actions .btn {
        min-height: 40px;
        font-size: 0.75rem;
        padding: 8px 10px;
        white-space: nowrap;
    }
    .product-card__actions .btn-wishlist,
    .product-card__actions .btn-compare {
        width: 40px;
        height: 40px;
        min-height: 40px;
    }
    .categories-grid,
    .categories-grid--photos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .category-card--photo { min-height: 140px; }

    .lookbook__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .promo-strip { font-size: 0.75rem; }
    .promo-banner { min-height: 220px; }
    .promo-banner__copy { padding: 20px; }

    .catalog-toolbar__right .view-toggle { display: none; }
    .filters-open { min-height: 48px; }
    .sort-select, select { min-height: 44px; font-size: 16px; }

    .product-info__actions {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 8px;
    }
    .product-info__actions .btn--lg {
        min-height: 48px;
        width: 100%;
        padding: 12px 16px;
        font-size: 0.9375rem;
    }
    .product-info__actions .btn-one-click,
    .product-info__actions .btn-wishlist,
    .product-info__actions .btn-compare {
        grid-column: 1 / -1;
    }
    .product-info h1 { font-size: 1.25rem; }
    .trust-row { font-size: 0.8125rem; }
    .breadcrumbs { font-size: 0.75rem; overflow-x: auto; white-space: nowrap; }

    .cart-layout { display: flex; flex-direction: column; gap: 16px; }
    .cart-summary {
        position: sticky;
        bottom: calc(var(--mnav-h) + env(safe-area-inset-bottom, 0px));
        z-index: 5;
        order: 2;
        margin: 0 -4px;
    }
    .cart-summary .btn--block { min-height: 48px; }
    .cart-item { gap: 10px; }
    .qty-control button { width: 44px; height: 44px; }

    .checkout-layout { gap: 16px; }
    .form-card { padding: 16px; }
    .radio-option { min-height: 48px; }

    .pagination a, .pagination span {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .footer { padding-bottom: 24px; }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .btn {
        font-size: 0.875rem;
        padding: 12px 16px;
        min-height: 44px;
    }
    .btn--lg {
        padding: 14px 20px;
        min-height: 48px;
    }
    .hero__banner {
        padding: 20px;
        min-height: 240px;
    }
    .hero__banner h1 { font-size: 1.35rem; }
    .lookbook__grid { grid-template-columns: 1fr; }
}

/* ----- Регистрация / вход ----- */
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}
.auth-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 32px;
    padding: 40px 0 64px;
    align-items: start;
}
.auth-page--narrow {
    grid-template-columns: minmax(0, 480px);
    justify-content: center;
}
.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-md);
}
.auth-card h1 {
    font-size: 1.75rem;
    margin: 8px 0 8px;
}
.auth-card__lead {
    color: var(--text-secondary);
    margin-bottom: 24px;
}
.auth-card__switch {
    margin-top: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}
.auth-card__switch a {
    color: var(--accent-end);
    font-weight: 600;
}
.auth-aside {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.auth-aside h2 {
    font-size: 1rem;
    margin-bottom: 12px;
}
.auth-aside ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}
.auth-aside li::before {
    content: "✓ ";
    color: var(--success);
}
.password-field {
    position: relative;
}
.password-field input {
    padding-right: 92px;
}
.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 8px;
}
.password-toggle:hover {
    color: var(--text-primary);
}
.password-meter {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 99px;
    margin-top: 8px;
    overflow: hidden;
}
.password-meter span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--danger);
    transition: width var(--transition), background var(--transition);
}
.password-meter[data-level="2"] span,
.password-meter[data-level="3"] span {
    background: var(--warning);
}
.password-meter[data-level="4"] span,
.password-meter[data-level="5"] span {
    background: var(--success);
}
.password-hints {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.password-hints li.is-ok {
    color: var(--success);
}
.field-hint {
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--danger);
}
.auth-agree {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 8px 0 20px;
    cursor: pointer;
}
.auth-agree a {
    color: var(--accent-end);
}
.account-tabs {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.account-orders {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.account-order {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.content-page h2 {
    margin: 24px 0 8px;
    font-size: 1.125rem;
}
@media (max-width: 768px) {
    .auth-page {
        grid-template-columns: 1fr;
        padding: 24px 0 40px;
    }
    .auth-card { padding: 20px; }
}

/* ----- Реквизиты ----- */
.req-hero {
    padding: 40px 0 8px;
}
.req-hero__card {
    background:
        radial-gradient(1200px 280px at 10% -20%, rgba(108, 60, 225, 0.35), transparent 55%),
        radial-gradient(800px 240px at 90% 0%, rgba(74, 155, 245, 0.22), transparent 50%),
        var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    box-shadow: var(--shadow-md);
}
.req-hero__card h1 {
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    margin: 10px 0 12px;
    max-width: 18ch;
}
.req-hero__card > p {
    color: var(--text-secondary);
    max-width: 52ch;
    margin-bottom: 24px;
    line-height: 1.7;
}
.req-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.req-page {
    padding: 28px 0 64px;
}
.req-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 20px;
}
.req-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: border-color var(--transition), transform var(--transition);
}
.req-card:hover {
    border-color: var(--border-hover);
}
.req-card--wide {
    grid-column: 1 / -1;
}
.req-card__icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: var(--accent-muted);
    border-radius: 12px;
    margin-bottom: 14px;
    font-size: 1.25rem;
}
.req-card h2 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}
.req-card__lead {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 18px;
}
.req-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
}
.req-row__label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.req-row__value {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.45;
    word-break: break-word;
}
a.req-row__value {
    color: var(--accent-end);
}
.req-copy {
    flex-shrink: 0;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.req-copy:hover,
.req-copy.is-ok {
    border-color: var(--accent-end);
    color: var(--text-primary);
    background: var(--accent-muted);
}
.req-note {
    margin-top: 28px;
    padding: 22px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    line-height: 1.7;
}
.req-note a {
    color: var(--accent-end);
    font-weight: 600;
}
.req-note__muted {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.875rem;
}
.req-all-source {
    position: absolute;
    left: -9999px;
}
.footer__bottom a {
    color: var(--text-secondary);
}
.footer__bottom a:hover {
    color: var(--accent-end);
}
@media (max-width: 900px) {
    .req-grid { grid-template-columns: 1fr; }
    .req-card--wide { grid-column: auto; }
    .req-hero__card { padding: 24px 20px; }
}