/* ============================================================
   ORBIS — стили главной страницы Mega Market
   Тёмная база (#0c0a09) + оранжевый акцент (#8b5cf6)
   Геометрия: срезанные углы, тонкие линии, моно-подписи
   ============================================================ */

:root {
    --bg: #0c0a09;
    --bg-deep: #0f0f1a;
    --surface: #16213e;
    --surface-2: #162032;
    --accent: #8b5cf6;
    --accent-dim: #6d28d9;
    --accent-light: #a78bfa;
    --muted: #78716c;
    --ink: #fafaf9;
    --ink-2: #c9ccd6;
    --dim: #a8a29e;
    --line: rgba(255, 255, 255, .075);
    --line-2: rgba(255, 255, 255, .14);
    --line-accent: rgba(139, 92, 246, .34);
    --cut: 12px;
    --cut-sm: 6px;
    --font-display: 'Inter', 'Inter', sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
    --t: .22s cubic-bezier(.4, 0, .2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    font-size: 15.5px;
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 60% 40% at 80% -5%, rgba(139, 92, 246, .07) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 0% 30%, rgba(139, 92, 246, .05) 0%, transparent 60%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }
::selection { background: var(--accent); color: #14100a; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
h1 { font-size: clamp(30px, 4.6vw, 52px); }
h2 { font-size: clamp(24px, 3.4vw, 36px); }
h3 { font-size: clamp(18px, 2vw, 22px); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ---------- Бегущая строка ---------- */
.announce {
    position: sticky;
    top: 0;
    z-index: 61;
    height: 36px;
    display: flex;
    align-items: center;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    overflow: hidden;
    white-space: nowrap;
}

.announce-track {
    display: inline-flex;
    gap: 52px;
    padding: 9px 0;
    animation: ticker 40s linear infinite;
}

.announce-track span { display: inline-flex; align-items: center; gap: 9px; }
.announce-track span::before { content: '◆'; color: var(--accent); font-size: 8px; }

@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- Верхняя служебная строка ---------- */
.topbar {
    background: var(--bg-deep);
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: .06em;
    padding: 8px 0;
    color: var(--muted);
}

.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-links { display: flex; gap: 22px; }
.topbar-links a { transition: color var(--t); }
.topbar-links a:hover { color: var(--accent); }
.topbar-loc { display: flex; align-items: center; gap: 7px; }

/* ---------- Шапка ---------- */
.header {
    background: rgba(10, 10, 15, .9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 36px;
    z-index: 60;
    transition: box-shadow var(--t);
}

.header.scrolled { box-shadow: 0 10px 34px rgba(0, 0, 0, .5); }
.header-inner { display: flex; align-items: center; gap: 22px; padding: 15px 0; }

.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -.045em;
    display: flex;
    align-items: baseline;
    gap: 1px;
    flex-shrink: 0;
}

.logo span { color: var(--accent); }

.cat-menu-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--accent);
    color: #042f3a;
    padding: 10px 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
    transition: background var(--t), transform var(--t);
}

.cat-menu-btn:hover { background: var(--accent-light); transform: translateY(-1px); }

.search { flex: 1; position: relative; max-width: 540px; }

.search input {
    width: 100%;
    padding: 12px 104px 12px 16px;
    background: rgba(18, 18, 26, .8);
    border: 1px solid var(--line-2);
    font-size: 14px;
    color: var(--ink);
    transition: border-color var(--t), background var(--t);
}

.search input::placeholder { color: #6a6f80; }
.search input:focus { outline: none; border-color: var(--accent); background: rgba(18, 18, 26, 1); }

.search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent);
    color: #042f3a;
    height: 34px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
    transition: background var(--t);
}

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

.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--dim);
    padding: 7px 11px;
    position: relative;
    transition: color var(--t), background var(--t);
}

.icon-btn:hover { color: var(--accent); background: var(--accent-softer, rgba(139, 92, 246, .06)); }
.icon-btn svg { width: 21px; height: 21px; }

.badge-count {
    position: absolute;
    top: 1px;
    right: 5px;
    background: var(--accent);
    color: #042f3a;
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, .45); }
    50% { box-shadow: 0 0 0 6px rgba(139, 92, 246, 0); }
}

/* ---------- Меню категорий ---------- */
.nav { background: var(--bg); border-bottom: 1px solid var(--line); position: relative; z-index: 40; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav ul { list-style: none; display: flex; gap: 2px; overflow-x: auto; }

.nav a {
    display: block;
    padding: 13px 14px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--dim);
    border-bottom: 2px solid transparent;
    transition: color var(--t), border-color var(--t);
    white-space: nowrap;
}

.nav a:hover, .nav a.active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-extra { display: flex; gap: 16px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.nav-extra a { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: none; transition: color var(--t); }
.nav-extra a:hover { color: var(--accent); }
.nav-extra .hot { color: var(--accent); font-weight: 700; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }

/* ---------- Hero ---------- */
.hero-section { margin: 26px 0 18px; }

.hero-grid {
    display: grid;
    grid-template-columns: 2.35fr 1fr;
    gap: 14px;
    height: 440px;
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

.slides { width: 100%; height: 100%; position: relative; }

.slide {
    position: absolute;
    inset: 0;
    padding: 52px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity .6s ease;
    overflow: hidden;
}

.slide.active { opacity: 1; z-index: 1; }

.slide::before {
    content: '';
    position: absolute;
    right: -70px;
    top: -70px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(139, 92, 246, .22), transparent 68%);
}

.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .022) 0 2px, transparent 2px 10px);
}

.slide-1 { background: linear-gradient(118deg, #16213e 0%, #1d1408 58%, #3a2408 100%); }
.slide-2 { background: linear-gradient(118deg, #10121a 0%, #141d24 58%, #0d2a33 100%); }
.slide-3 { background: linear-gradient(118deg, #16101a 0%, #241423 58%, #3a1720 100%); }

.slide-content { position: relative; z-index: 1; max-width: 540px; }

.slide-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    padding: 6px 12px;
    border: 1px solid var(--line-accent);
    background: rgba(139, 92, 246, .08);
}

.slide h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(30px, 4.2vw, 52px);
    line-height: 1.04;
    letter-spacing: -.035em;
    margin-bottom: 18px;
}

.slide h1 em { font-style: normal; color: var(--accent); font-weight: 400; }
.slide p { font-size: 15.5px; color: rgba(255, 255, 255, .72); margin-bottom: 26px; max-width: 430px; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--accent);
    color: #042f3a;
    padding: 13px 26px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .01em;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    transition: background var(--t), transform var(--t), box-shadow var(--t);
}

.btn:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(139, 92, 246, .5), 0 16px 38px rgba(139, 92, 246, .26); }

.btn-light { background: rgba(255, 255, 255, .96); color: #101016; }
.btn-light:hover { background: #fff; color: var(--accent-dim); }

.btn-outline {
    background: transparent;
    border: 1px solid var(--line-2);
    color: #fff;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.btn-outline:hover { background: rgba(255, 255, 255, .1); border-color: var(--accent); color: #fff; }

.slide-dots { position: absolute; bottom: 20px; left: 50px; z-index: 2; display: flex; gap: 7px; }

.dot {
    width: 26px;
    height: 3px;
    background: rgba(255, 255, 255, .26);
    cursor: pointer;
    transition: background var(--t);
}

.dot.active { background: var(--accent); }

.slide-arrows { position: absolute; bottom: 18px; right: 18px; z-index: 2; display: flex; gap: 7px; }

.slide-arrow {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid var(--line-2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    transition: background var(--t), color var(--t), border-color var(--t);
}

.slide-arrow:hover { background: var(--accent); color: #042f3a; border-color: var(--accent); }

.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; }

.hero-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    border: 1px solid var(--line);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    transition: transform var(--t), border-color var(--t);
}

.hero-card:hover { transform: translateY(-4px); border-color: var(--line-accent); }
.hero-card-1 { background: linear-gradient(135deg, #2a1a08, #4a2c08); }
.hero-card-2 { background: linear-gradient(135deg, #10201a, #0d3228); }

.hero-card-emoji {
    position: absolute;
    right: -12px;
    bottom: -18px;
    font-size: 104px;
    opacity: .32;
    transition: transform var(--t);
}

.hero-card:hover .hero-card-emoji { transform: scale(1.08) rotate(-6deg); }

.hero-card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1.12; position: relative; z-index: 1; letter-spacing: -.02em; }

.hero-card-link {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ---------- Полоса возможностей ---------- */
.trust {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin: 18px 0 0;
    clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
    overflow: hidden;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px 18px;
    background: var(--bg-deep);
    transition: background var(--t);
}

.trust-item:hover { background: var(--surface); }

.trust-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}

.trust-text { font-size: 13px; line-height: 1.35; }
.trust-text strong { display: block; font-family: var(--font-display); font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }
.trust-text small { color: var(--muted); font-size: 11.5px; font-family: var(--font-mono); letter-spacing: .04em; }

/* ---------- Секции ---------- */
.section { padding: 52px 0; }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
    padding-left: 18px;
    border-left: 2px solid var(--accent);
    flex-wrap: wrap;
}

.index-num {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-bottom: 10px;
}

.index-num b { color: var(--accent); font-weight: 500; }

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(24px, 3.4vw, 36px);
    letter-spacing: -.03em;
    line-height: 1.08;
}

.section-title em { font-style: normal; color: var(--accent); font-weight: 400; }
.section-sub { font-size: 14px; color: var(--muted); margin-top: 8px; }

.section-link {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap var(--t);
}

.section-link:hover { gap: 13px; }

/* ---------- Категории ---------- */
.cats-big { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.cat-big {
    position: relative;
    overflow: hidden;
    min-height: 148px;
    padding: 22px;
    background: linear-gradient(160deg, var(--surface) 0%, var(--bg-deep) 100%);
    border: 1px solid var(--line);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}

.cat-big:hover { border-color: var(--line-accent); transform: translateY(-5px); box-shadow: 0 22px 48px rgba(0, 0, 0, .55); }

.cat-big-emoji {
    position: absolute;
    right: -12px;
    bottom: -16px;
    font-size: 84px;
    opacity: .16;
    transition: transform var(--t), opacity var(--t);
}

.cat-big:hover .cat-big-emoji { opacity: .34; transform: rotate(-8deg) scale(1.08); }

.cat-big-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -.02em; position: relative; z-index: 1; }
.cat-big-count { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); margin-top: 5px; position: relative; z-index: 1; }
.cat-big-link { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-top: auto; position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 5px; }

/* ---------- Панель фильтров ---------- */
.toolbar { display: grid; grid-template-columns: 258px 1fr; gap: 24px; align-items: start; }

.sidebar {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 20px;
    position: sticky;
    top: 104px;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.sidebar h4 {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 13px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--line);
}

.sidebar-section { margin-bottom: 24px; }
.sidebar-section:last-child { margin-bottom: 0; }
.sidebar-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }

.sidebar-list button {
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    font-size: 13px;
    color: var(--dim);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--t);
    border-left: 2px solid transparent;
}

.sidebar-list button:hover { background: var(--bg-deep); color: var(--ink); }
.sidebar-list button.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; border-left-color: var(--accent); }
.sidebar-list small { font-family: var(--font-mono); font-size: 10.5px; opacity: .65; }

.price-range { margin-top: 8px; }
.price-inputs { display: flex; gap: 8px; margin-bottom: 10px; }

.price-inputs input {
    width: 50%;
    padding: 8px 10px;
    background: var(--bg-deep);
    border: 1px solid var(--line-2);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 12.5px;
}

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

.price-slider { -webkit-appearance: none; width: 100%; height: 3px; background: var(--line-2); outline: none; }

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--accent);
    cursor: pointer;
    border: 2px solid var(--bg);
    border-radius: 0;
}

.price-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--accent);
    border: 2px solid var(--bg);
    border-radius: 0;
    cursor: pointer;
}

.checkbox-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; color: var(--dim); cursor: pointer; }
.checkbox-row input { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; }
.checkbox-row:hover { color: var(--ink); }
.main-content { min-width: 0; }

.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 16px; flex-wrap: wrap; }
.results-count { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.results-count strong { color: var(--accent); }

.sort-select {
    padding: 9px 30px 9px 12px;
    background: var(--surface);
    border: 1px solid var(--line-2);
    color: var(--ink);
    font-size: 13px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2306b6d4' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
}

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

.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--accent-soft);
    color: var(--accent);
    padding: 5px 8px 5px 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .06em;
    border: 1px solid var(--line-accent);
}

.filter-pill button { font-size: 14px; line-height: 1; color: var(--accent); }
.clear-all { font-size: 12px; color: var(--muted); text-decoration: underline; }
.clear-all:hover { color: var(--accent); }

/* ---------- Карточки товаров ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(222px, 1fr)); gap: 16px; }
.grid.list-view { grid-template-columns: 1fr; }
.grid.list-view .card { flex-direction: row; max-height: 180px; }
.grid.list-view .card-img { width: 180px; aspect-ratio: 1/1; flex-shrink: 0; }
.grid.list-view .card-body { padding: 18px 22px; }

.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 11px 100%, 0 calc(100% - 11px));
    transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}

.card:hover { transform: translateY(-4px); border-color: var(--line-accent); box-shadow: 0 20px 44px rgba(0, 0, 0, .5); }

.card-img {
    aspect-ratio: 1/1;
    background: linear-gradient(160deg, var(--surface-2), var(--bg-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 76px;
    position: relative;
    overflow: hidden;
    transition: background var(--t);
}

.card:hover .card-img { background: linear-gradient(160deg, #1e1e2b, #0b0b10); }

.card-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 32% 28%, rgba(139, 92, 246, .12), transparent 62%);
    pointer-events: none;
}

.card-img-emoji { transition: transform var(--t); position: relative; z-index: 1; }
.card:hover .card-img-emoji { transform: scale(1.09) rotate(-3deg); }

.badge-stack { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; z-index: 1; }

.badge {
    background: var(--accent);
    color: #042f3a;
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 8px;
    width: fit-content;
}

.badge.gold { background: #b98a3c; }
.badge.green { background: #3f7f4a; }
.badge.ink { background: var(--ink); color: var(--bg); }

.actions-stack {
    position: absolute;
    top: 9px;
    right: 9px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 1;
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--t);
}

.card:hover .actions-stack { opacity: 1; transform: translateX(0); }

.action-btn {
    width: 32px;
    height: 32px;
    background: rgba(10, 10, 15, .86);
    border: 1px solid var(--line-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dim);
    font-size: 14px;
    transition: all var(--t);
}

.action-btn:hover { background: var(--accent); color: #042f3a; border-color: var(--accent); transform: scale(1.08); }
.action-btn.active { color: var(--accent); border-color: var(--line-accent); }
.action-btn svg { width: 15px; height: 15px; }

.card-body { padding: 14px 15px 15px; display: flex; flex-direction: column; flex: 1; }

.card-cat {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 6px;
}

.card-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13.5px;
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 37px;
}

.rating { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.stars { color: var(--accent); letter-spacing: 1.5px; }

.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; margin-bottom: 12px; flex-wrap: wrap; }

.price { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.price-old { font-size: 12.5px; color: var(--muted); text-decoration: line-through; }
.price-save { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; color: #6fbe7f; background: rgba(111, 190, 127, .1); padding: 2px 6px; }

.add-btn {
    width: 100%;
    background: var(--bg-deep);
    border: 1px solid var(--line-2);
    color: var(--ink);
    padding: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: all var(--t);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.add-btn:hover { background: var(--accent); color: #042f3a; border-color: var(--accent); }
.add-btn.added { background: #3f7f4a; border-color: #3f7f4a; color: #fff; }

/* ---------- Горизонтальные ленты ---------- */
.scroll-row-wrap { position: relative; }
.scroll-row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.scroll-row::-webkit-scrollbar { height: 5px; }
.scroll-row::-webkit-scrollbar-thumb { background: var(--line-2); }
.scroll-row .card { min-width: 236px; max-width: 236px; scroll-snap-align: start; }

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--bg-deep);
    border: 1px solid var(--line-2);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 2;
    transition: all var(--t);
}

.scroll-arrow:hover { background: var(--accent); color: #042f3a; border-color: var(--accent); }
.scroll-arrow.left { left: -8px; }
.scroll-arrow.right { right: -8px; }

/* ---------- Промо-блок ---------- */
.promo-banner {
    margin: 34px 0;
    padding: 38px 44px;
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 12px),
        linear-gradient(120deg, #042f3a 0%, #064e5e 58%, #03363d 100%);
    border: 1px solid var(--line-accent);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.promo-banner::before {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 200, 120, .2), transparent 70%);
}

.promo-banner h2 { font-family: var(--font-display); font-size: clamp(22px, 3vw, 32px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }
.promo-banner p { font-size: 14.5px; color: rgba(255, 255, 255, .78); max-width: 470px; }
.countdown { display: flex; gap: 9px; position: relative; z-index: 1; }

.countdown-box {
    background: rgba(10, 10, 15, .55);
    border: 1px solid var(--line-2);
    padding: 13px 16px;
    text-align: center;
    min-width: 62px;
}

.countdown-num { font-family: var(--font-mono); font-size: 26px; font-weight: 700; line-height: 1; color: var(--accent); }
.countdown-label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .72; margin-top: 5px; }

/* ---------- Бренды ---------- */
.brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }

.brand {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 22px 14px;
    text-align: center;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -.02em;
    color: var(--ink-2);
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    transition: all var(--t);
}

.brand:hover { border-color: var(--line-accent); color: var(--accent); transform: translateY(-3px); }
.brand small { display: block; font-family: var(--font-mono); font-size: 9.5px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* ---------- Метрики ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 34px 0;
    position: relative;
}

.stat {
    padding: 26px 22px;
    background: linear-gradient(160deg, var(--surface) 0%, var(--bg-deep) 100%);
    border: 1px solid var(--line);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    transition: border-color var(--t), transform var(--t);
}

.stat:hover { border-color: var(--line-accent); transform: translateY(-3px); }
.stat-num { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 8px; letter-spacing: -.035em; }
.stat-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Журнал ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.blog-card {
    background: var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}

.blog-card:hover { transform: translateY(-4px); border-color: var(--line-accent); box-shadow: 0 20px 46px rgba(0, 0, 0, .5); }

.blog-img {
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    position: relative;
    overflow: hidden;
}

.blog-img.b1 { background: linear-gradient(135deg, #021f24, #064e5e); }
.blog-img.b2 { background: linear-gradient(135deg, #101a24, #0d3245); }
.blog-img.b3 { background: linear-gradient(135deg, #10201a, #14503a); }

.blog-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(10, 10, 15, .8);
    border: 1px solid var(--line-accent);
    color: var(--accent);
    padding: 4px 9px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.blog-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.blog-meta { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.blog-title { font-family: var(--font-display); font-size: 16.5px; font-weight: 600; line-height: 1.25; margin-bottom: 9px; letter-spacing: -.02em; }
.blog-excerpt { font-size: 13.5px; color: var(--dim); line-height: 1.55; margin-bottom: 14px; flex: 1; }
.blog-link { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Рассылка ---------- */
.newsletter {
    margin: 46px 0;
    padding: 44px;
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 11px),
        linear-gradient(120deg, #064e5e 0%, #03363d 60%, #01191d 100%);
    border: 1px solid var(--line-accent);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.newsletter h2 { font-family: var(--font-display); font-size: clamp(22px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin-bottom: 12px; }
.newsletter p { font-size: 14.5px; color: rgba(255, 255, 255, .78); max-width: 380px; }
.newsletter-form { display: flex; gap: 8px; position: relative; z-index: 1; }

.newsletter-form input {
    flex: 1;
    padding: 13px 16px;
    background: rgba(10, 10, 15, .55);
    border: 1px solid var(--line-2);
    color: #fff;
    font-size: 14px;
}

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

.newsletter-form button {
    background: var(--accent);
    color: #042f3a;
    padding: 13px 22px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    transition: background var(--t);
}

.newsletter-form button:hover { background: var(--accent-light); }

/* ---------- О компании ---------- */
.info-section { background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 58px 0; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 34px; }

.info-block { position: relative; padding-left: 18px; border-left: 1px solid var(--line); }
.info-block::before { content: ''; position: absolute; left: -1px; top: 0; width: 1px; height: 26px; background: var(--accent); }
.info-block h3 { font-family: var(--font-display); font-size: 16.5px; font-weight: 600; margin-bottom: 13px; letter-spacing: -.01em; }
.info-block p, .info-block li { font-size: 13.5px; color: var(--dim); line-height: 1.7; }
.info-list { list-style: none; }
.info-list li { padding: 3px 0; display: flex; gap: 10px; }
.info-list strong { color: var(--ink-2); font-weight: 600; min-width: 88px; display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding-top: 2px; }

/* ---------- Контакты ---------- */
.contact { padding: 58px 0; background: radial-gradient(ellipse 60% 60% at 15% 0%, rgba(139, 92, 246, .07), transparent 60%); }
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.contact-info h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; margin-bottom: 16px; }
.contact-info h2 em { font-style: normal; color: var(--accent); font-weight: 400; }
.contact-info p { color: var(--dim); margin-bottom: 26px; max-width: 400px; font-size: 14.5px; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 13px; }

.contact-list li { display: flex; align-items: center; gap: 13px; font-size: 13.5px; color: var(--ink-2); }

.contact-list .icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    background: var(--accent-soft);
    border: 1px solid var(--line-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.contact-form { background: var(--surface); border: 1px solid var(--line); padding: 32px; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); }
.contact-form h3 { font-family: var(--font-display); font-size: 21px; font-weight: 700; margin-bottom: 16px; }
.field { margin-bottom: 13px; }

.field label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

.field input, .field textarea, .field select {
    width: 100%;
    padding: 11px 13px;
    background: var(--bg-deep);
    border: 1px solid var(--line-2);
    color: var(--ink);
    font-size: 14px;
    transition: border-color var(--t);
}

.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 88px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2306b6d4' d='M5 6L0 0h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }

/* ---------- Подвал ---------- */
.footer { background: var(--bg-deep); border-top: 1px solid var(--line); color: var(--muted); padding: 52px 0 20px; font-size: 13px; position: relative; }
.footer::before { content: ''; position: absolute; top: -1px; left: 0; width: 240px; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer h4 { color: var(--ink); font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; }
.footer-logo { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: #fff; margin-bottom: 12px; letter-spacing: -.04em; }
.footer-logo span { color: var(--accent); }
.footer-desc { margin-bottom: 18px; line-height: 1.6; max-width: 300px; }
.social { display: flex; gap: 7px; }

.social a {
    width: 34px;
    height: 34px;
    background: var(--surface);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .04em;
    color: var(--muted);
    transition: all var(--t);
}

.social a:hover { background: var(--accent); color: #042f3a; border-color: var(--accent); transform: translateY(-2px); }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a { transition: color var(--t); }
.footer a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .04em;
}

.payment-icons { display: flex; gap: 7px; align-items: center; }
.payment-icon { background: var(--surface); border: 1px solid var(--line); padding: 5px 9px; font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: .08em; color: var(--dim); }

/* ---------- Корзина ---------- */
.overlay { position: fixed; inset: 0; background: rgba(3, 3, 6, .7); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 100; backdrop-filter: blur(3px); }
.overlay.active { opacity: 1; pointer-events: auto; }

.cart-drawer {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 430px;
    max-width: 100vw;
    background: var(--bg);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    z-index: 101;
    display: flex;
    flex-direction: column;
}

.cart-drawer.active { transform: translateX(0); }
.cart-header { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.cart-header h2 { font-family: var(--font-display); font-size: 21px; font-weight: 700; }

.close-btn { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--muted); transition: all var(--t); }
.close-btn:hover { background: var(--surface); color: var(--accent); }
.cart-items { flex: 1; overflow-y: auto; padding: 14px 24px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.cart-empty-emoji { font-size: 52px; margin-bottom: 14px; opacity: .45; }
.cart-empty p { margin-bottom: 18px; }
.cart-item { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }

.cart-item-img {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.cart-item-body { flex: 1; min-width: 0; }
.cart-item-name { font-family: var(--font-display); font-weight: 600; font-size: 13px; margin-bottom: 4px; line-height: 1.3; }
.cart-item-price { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); font-weight: 700; }
.cart-item-controls { display: flex; align-items: center; gap: 8px; margin-top: 10px; }

.qty-btn {
    width: 26px;
    height: 26px;
    background: var(--surface);
    border: 1px solid var(--line-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--ink);
    transition: all var(--t);
}

.qty-btn:hover { background: var(--accent); color: #042f3a; border-color: var(--accent); }
.qty { font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; min-width: 20px; text-align: center; }
.remove-btn { margin-left: auto; font-size: 11.5px; color: var(--muted); text-decoration: underline; }
.remove-btn:hover { color: var(--accent); }
.cart-footer { padding: 20px 24px; border-top: 1px solid var(--line); background: var(--bg-deep); }
.cart-summary-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; margin-top: 10px; margin-bottom: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.cart-total strong { font-family: var(--font-display); font-size: 24px; font-weight: 700; }

.checkout-btn {
    width: 100%;
    background: var(--accent);
    color: #042f3a;
    padding: 14px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
    transition: background var(--t), transform var(--t);
}

.checkout-btn:hover:not(:disabled) { background: var(--accent-light); transform: translateY(-1px); }
.checkout-btn:disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }

/* ---------- Модальное окно товара ---------- */
.modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 102; }
.modal.active { opacity: 1; pointer-events: auto; }

.modal-content {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--line-2);
    max-width: 840px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
    transform: scale(.96);
    transition: transform .25s;
}

.modal.active .modal-content { transform: scale(1); }

.modal-img {
    background: linear-gradient(160deg, var(--surface-2), var(--bg-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 160px;
    min-height: 360px;
    position: relative;
    border-right: 1px solid var(--line);
}

.modal-img::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, .12), transparent 60%); pointer-events: none; }
.modal-body { padding: 32px; display: flex; flex-direction: column; overflow: auto; }

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    background: rgba(10, 10, 15, .8);
    border: 1px solid var(--line-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 1;
    color: var(--ink);
    transition: all var(--t);
}

.modal-close:hover { background: var(--accent); color: #042f3a; transform: rotate(90deg); }
.modal-cat { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 9px; }
.modal-name { font-family: var(--font-display); font-size: 25px; font-weight: 700; line-height: 1.15; margin-bottom: 10px; letter-spacing: -.03em; }
.modal-rating { display: flex; align-items: center; gap: 7px; margin-bottom: 16px; font-size: 12.5px; color: var(--muted); }
.modal-desc { font-size: 14px; color: var(--dim); line-height: 1.7; margin-bottom: 20px; }
.modal-features { background: var(--surface); border: 1px solid var(--line); padding: 13px 16px; margin-bottom: 20px; }
.modal-features li { font-size: 13px; padding: 4px 0; color: var(--dim); display: flex; align-items: center; gap: 9px; list-style: none; }
.modal-features li::before { content: '▸'; color: var(--accent); font-weight: 700; }

.modal-price { font-family: var(--font-display); font-size: 31px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.modal-price .price-old { font-size: 17px; }
.modal-actions { display: flex; gap: 9px; }

.modal-add {
    flex: 1;
    background: var(--accent);
    color: #042f3a;
    padding: 13px 24px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
    transition: background var(--t);
}

.modal-add:hover { background: var(--accent-light); }

.modal-fav {
    width: 48px;
    background: var(--surface);
    border: 1px solid var(--line-2);
    font-size: 17px;
    color: var(--muted);
    transition: all var(--t);
}

.modal-fav:hover, .modal-fav.active { color: var(--accent); border-color: var(--line-accent); }

/* ---------- Сравнение ---------- */
.compare-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-deep);
    border-top: 1px solid var(--line-accent);
    color: var(--ink);
    padding: 13px 24px;
    transform: translateY(100%);
    transition: transform .3s ease;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.compare-drawer.active { transform: translateY(0); }
.compare-info { display: flex; align-items: center; gap: 14px; flex: 1; }
.compare-items { display: flex; gap: 8px; }
.compare-thumb { width: 40px; height: 40px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.compare-text strong { display: block; font-family: var(--font-display); font-size: 13.5px; margin-bottom: 2px; }
.compare-text small { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.compare-actions { display: flex; gap: 9px; }

.compare-btn {
    background: var(--accent);
    color: #042f3a;
    padding: 10px 18px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    transition: background var(--t);
}

.compare-btn:hover { background: var(--accent-light); }
.compare-clear { background: transparent; color: var(--muted); padding: 10px 14px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.compare-clear:hover { color: var(--accent); }

/* ---------- Уведомление ---------- */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: var(--surface);
    border: 1px solid var(--line-accent);
    color: var(--ink);
    padding: 13px 20px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .04em;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
    opacity: 0;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 90vw;
}

.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast-icon { color: var(--accent); }

/* ---------- Наверх ---------- */
.to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    background: var(--surface);
    border: 1px solid var(--line-2);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all var(--t);
    z-index: 80;
    clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}

.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--accent); color: #042f3a; border-color: var(--accent); transform: translateY(-2px); }

/* ---------- Переключатель вида ---------- */
.view-switch { display: flex; background: var(--surface); border: 1px solid var(--line-2); padding: 2px; }
.view-switch button { padding: 6px 9px; color: var(--muted); display: flex; align-items: center; transition: all var(--t); }
.view-switch button.active { background: var(--accent); color: #042f3a; }

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; height: auto; }
    .hero-carousel { height: 380px; }
    .hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .cats-big { grid-template-columns: repeat(2, 1fr); }
    .toolbar { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .blog-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .newsletter { grid-template-columns: 1fr; }
    .contact-wrap { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 700px) {
    .header-inner { flex-wrap: wrap; gap: 12px; }
    .search { order: 5; max-width: 100%; flex: 1 1 100%; }
    .cat-menu-btn span:not(.menu-icon) { display: none; }
    .slide { padding: 30px 26px; }
    .slide-dots { left: 26px; }
    .section { padding: 34px 0; }
    .promo-banner { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
    .newsletter { padding: 28px 22px; }
    .newsletter-form { flex-direction: column; }
    .hero-side { grid-template-columns: 1fr; }
    .icon-btn span { display: none; }
    .nav-extra { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .stats { padding: 0; grid-template-columns: 1fr 1fr; gap: 12px; }
    .modal-content { grid-template-columns: 1fr; }
    .modal-img { min-height: 200px; font-size: 110px; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .cats-big { grid-template-columns: 1fr; }
    .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .brand { padding: 18px 10px; font-size: 15px; }
}
