/* ==========================================================================
   AccWot.ru — современный UI-слой (заменяет legacy main.css)
   ========================================================================== */

:root {
    --bg: #0b0b0d;
    --bg-soft: #101014;
    --surface: #16161c;
    --surface-2: #1d1d25;
    --border: rgba(255, 255, 255, .09);
    --border-strong: rgba(255, 255, 255, .16);

    --text: #eef0f4;
    --text-dim: #b7bcc6;
    --muted: #8b919c;

    --accent: #ff5a1f;
    --accent-soft: rgba(255, 90, 31, .14);
    --accent-2: #ffb45c;
    --ok: #46d17a;
    --bad: #ff5a5a;

    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 22px;

    --shadow: 0 14px 34px rgba(0, 0, 0, .45);
    --shadow-soft: 0 6px 18px rgba(0, 0, 0, .3);

    --container: 1280px;
    --header-h: 64px;

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.55 var(--font);
    text-align: left;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-width: 300px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-2); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 200;
    background: var(--accent);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
}
.skip-link:focus { left: 8px; color: #fff; }

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

.muted { color: var(--muted); }
.main { min-height: 40vh; }

/* ---------- кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
    border: 1px solid transparent;
    color: var(--text);
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
    background: linear-gradient(135deg, #ff6a2a, #ff3d00);
    color: #fff;
    box-shadow: 0 8px 22px rgba(255, 74, 20, .32);
}
.btn--primary:hover { color: #fff; box-shadow: 0 12px 28px rgba(255, 74, 20, .45); }

.btn--ghost {
    background: rgba(255, 255, 255, .04);
    border-color: var(--border-strong);
    color: var(--text);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .09); color: #fff; }

.btn--buy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #3ecf6d, #1f9d4d);
    color: #04220f;
    box-shadow: 0 10px 26px rgba(62, 207, 109, .28);
}
.btn--buy span { font-size: 12px; font-weight: 500; opacity: .75; }
.btn--buy:hover { color: #04220f; }
.btn--buy[disabled] { background: var(--surface-2); color: var(--muted); box-shadow: none; cursor: not-allowed; }

/* ---------- шапка ---------- */
.hdr {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(11, 11, 13, .88);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--border);
}

.hdr__bar { min-height: var(--header-h); }

.hdr__inner {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: var(--header-h);
}

.hdr__logo { flex: 0 0 auto; display: flex; align-items: center; }
.hdr__logo img { width: auto; height: 34px; }

.hdr__nav { display: flex; }
.hdr__nav-list { display: flex; align-items: center; gap: 4px; }
.hdr__nav-item { position: relative; }
.hdr__nav-item > a {
    display: block;
    padding: 10px 12px;
    border-radius: 9px;
    color: var(--text-dim);
    font-size: 15px;
    font-weight: 500;
}
.hdr__nav-item > a:hover { color: #fff; background: rgba(255, 255, 255, .06); }

.hdr__sub-toggle {
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    display: none;
}

.hdr__nav-sub { display: none; }

.hdr__search {
    display: flex;
    align-items: center;
    margin-left: auto;
    max-width: 360px;
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 4px 4px 16px;
    transition: border-color .2s ease;
}
.hdr__search:focus-within { border-color: var(--border-strong); }
.hdr__search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: none;
    color: var(--text);
    font-size: 14px;
    padding: 8px 0;
}
.hdr__search-input::placeholder { color: var(--muted); }
.hdr__search-input:focus { outline: none; }
.hdr__search-btn {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    flex: 0 0 auto;
}
.hdr__search-btn:hover { background: var(--accent); color: #fff; }

.hdr__cta {
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dim);
}
.hdr__cta:hover { color: #fff; border-color: var(--accent); }

.hdr__burger {
    display: none;
    width: 40px;
    height: 40px;
    margin-left: auto;
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 10px;
    flex-direction: column;
    justify-content: space-between;
}
.hdr__burger span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}

/* строка категорий */
.hdr__cats {
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, .015);
}
.catnav {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 8px 0;
}
.catnav::-webkit-scrollbar { display: none; }
.catnav__item { position: relative; flex: 0 0 auto; }
.catnav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 14px;
    color: var(--text-dim);
    white-space: nowrap;
}
.catnav__link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.catnav__count {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-2);
}
.catnav__sub {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    min-width: 220px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    z-index: 70;
}
.catnav__item--has-sub:hover .catnav__sub { display: block; }
.catnav__sub a { display: block; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--text-dim); }
.catnav__sub a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.catnav__item--all { margin-left: auto; }

/* ---------- hero ---------- */
.hero {
    position: relative;
    padding: 44px 0 28px;
    background:
        radial-gradient(900px 420px at 12% -10%, rgba(255, 90, 31, .18), transparent 70%),
        radial-gradient(700px 380px at 92% 0%, rgba(90, 120, 255, .12), transparent 70%);
}
.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 40px;
    align-items: center;
}
.hero__title {
    font-size: clamp(28px, 3.6vw, 48px);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.08;
}
.hero__title span {
    background: linear-gradient(120deg, #ff8a4c, #ff3d00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero__lead {
    margin-top: 16px;
    max-width: 56ch;
    color: var(--text-dim);
    font-size: 17px;
}
.hero__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0;
}
.hero__facts li {
    padding: 12px 14px;
    background: rgba(255, 255, 255, .035);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.hero__facts b { display: block; font-size: 18px; }
.hero__facts span { font-size: 12.5px; color: var(--muted); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__hits {
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
}
.hero__hits-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; color: var(--text-dim); }
.hero__hits .rail { padding-bottom: 0; }
.hero__hits .pcard { min-width: 168px; width: 168px; }

/* ---------- секции ---------- */
.section { padding: 34px 0; }
.section--tight { padding: 18px 0; }
.section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.section__title { font-size: clamp(20px, 2.2vw, 27px); font-weight: 700; }
.section__note { color: var(--muted); font-size: 14px; }
.section__link { font-size: 14px; color: var(--text-dim); }
.section__link:hover { color: var(--accent); }
.section__more { margin-top: 18px; }

/* ---------- карточки товаров ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(208px, 1fr));
    gap: 16px;
}
.grid__item { display: flex; }

.pcard {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--text);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.pcard:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 90, 31, .45);
    box-shadow: var(--shadow-soft);
    color: var(--text);
}
.pcard__media {
    display: block;
    position: relative;
    aspect-ratio: 1 / 1;
    background: #0e0e12;
    overflow: hidden;
}
.pcard__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px 14px;
}
.pcard__title {
    font-size: 14px;
    line-height: 1.35;
    color: var(--text-dim);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.6em;
}
.pcard__price { margin-top: auto; font-size: 20px; color: var(--accent-2); }
.pcard__price b { font-weight: 700; }
.pcard__price i { font-style: normal; font-size: 14px; opacity: .8; }

/* горизонтальная лента */
.rail {
    position: relative;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: 0 0 auto; }
.rail .pcard { width: 200px; }
.rail--tight .pcard { width: 168px; }

.rail__nav {
    position: absolute;
    top: calc(50% - 26px);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(20, 20, 26, .9);
    border: 1px solid var(--border-strong);
    color: var(--text);
    z-index: 3;
    opacity: 0;
    transition: opacity .2s ease, background .2s ease;
}
.rail-wrap:hover .rail__nav { opacity: 1; }
.rail__nav:hover { background: var(--accent); }
.rail__nav--prev { left: -12px; }
.rail__nav--next { right: -12px; }
.rail-wrap { position: relative; }

/* ---------- плитки категорий ---------- */
.cattiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}
.cattile {
    background: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    transition: border-color .2s ease, transform .2s ease;
}
.cattile:hover { border-color: rgba(255, 90, 31, .45); transform: translateY(-2px); }
.cattile__link { display: flex; flex-direction: column; gap: 4px; color: var(--text); }
.cattile__name { font-size: 18px; font-weight: 650; }
.cattile__count { font-size: 13px; color: var(--muted); }
.cattile__sub { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.cattile__sub a {
    font-size: 12.5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    color: var(--text-dim);
}
.cattile__sub a:hover { background: var(--accent-soft); color: var(--accent-2); }

/* ---------- шапка страницы ---------- */
.pagehead { padding: 26px 0 10px; }
.pagehead__title { font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -.02em; }
.pagehead__meta { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ---------- крошки ---------- */
.crumbs { padding: 18px 0 0; font-size: 13px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs li { display: flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "/"; color: rgba(255, 255, 255, .22); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-2); }
.crumbs span { color: var(--text-dim); }

/* ---------- тулбар / сортировка ---------- */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin: 20px 0;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.toolbar__count { font-size: 14px; color: var(--text-dim); }
.toolbar__sort { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar__label { font-size: 13px; color: var(--muted); }

.chip {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    border: 1px solid var(--border);
    color: var(--text-dim);
    white-space: nowrap;
}
.chip:hover { border-color: var(--border-strong); color: #fff; }
.chip.is-active {
    background: var(--accent-soft);
    border-color: rgba(255, 90, 31, .5);
    color: var(--accent-2);
}

/* ---------- пагинация ---------- */
.pager { margin: 28px 0 8px; }
.pager__list { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.pager__link {
    display: grid;
    place-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 14px;
}
.pager__link:hover { border-color: var(--border-strong); color: #fff; }
.pager__link.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}
.pager__dots { display: grid; place-items: center; min-width: 26px; height: 40px; color: var(--muted); }

/* ---------- пустое состояние ---------- */
.empty {
    padding: 44px 24px;
    text-align: center;
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    color: var(--text-dim);
}
.empty p + p { margin-top: 8px; }
.empty .btn { margin-top: 18px; }

/* ---------- товар ---------- */
.product { padding: 18px 0 6px; }
.product__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 28px;
    align-items: start;
}
.product__media { display: flex; flex-direction: column; gap: 14px; }
.product__photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: radial-gradient(circle at 50% 40%, #16161d, #0c0c10);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: zoom-in;
}
.product__photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .25s ease;
}
.product__photo:hover img { transform: scale(1.02); }

.product__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
    font-size: 12.5px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    color: var(--text-dim);
}
.badge--ok { background: rgba(70, 209, 122, .12); border-color: rgba(70, 209, 122, .35); color: #7ff0a8; }

.product__info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: sticky;
    top: calc(var(--header-h) + 12px);
}
.product__title { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; line-height: 1.25; }
.product__price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.product__price { font-size: 38px; font-weight: 800; color: var(--accent-2); line-height: 1; }
.product__price i { font-style: normal; font-size: 20px; font-weight: 600; margin-left: 4px; opacity: .85; }
.product__stats { display: flex; gap: 14px; font-size: 13px; color: var(--muted); }
.product__stats b { color: var(--text-dim); }

.product__seller {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
    border: 1px solid var(--border);
}
.product__seller-label { color: var(--muted); }
.product__seller-name { font-weight: 600; }

.product__trust { display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; color: var(--text-dim); }
.product__trust li { display: flex; align-items: center; gap: 9px; }

.ico {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(70, 209, 122, .14);
}
.ico::before {
    content: "";
    width: 9px;
    height: 5px;
    border-left: 2px solid var(--ok);
    border-bottom: 2px solid var(--ok);
    transform: rotate(-45deg) translate(1px, -1px);
}
.ico--clock { background: rgba(255, 180, 92, .14); }
.ico--clock::before {
    width: 8px; height: 8px; border: 0; border-radius: 50%;
    background: var(--accent-2);
    transform: none;
}
.ico--card { background: rgba(120, 160, 255, .14); }
.ico--card::before {
    width: 10px; height: 7px; border: 0; border-radius: 2px;
    background: #8aa8ff;
    transform: none;
}
.ico--bad { background: rgba(255, 90, 90, .16); }
.ico--bad::before {
    width: 9px; height: 9px; border: 0;
    background:
        linear-gradient(45deg, transparent 44%, var(--bad) 44%, var(--bad) 56%, transparent 56%),
        linear-gradient(-45deg, transparent 44%, var(--bad) 44%, var(--bad) 56%, transparent 56%);
    transform: none;
}
.ico--good { background: rgba(70, 209, 122, .14); }

.product__note { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.product__note a,
.cards__item a,
.faq__a a,
.review__text a,
.modal__body a {
    text-decoration: underline;
    text-underline-offset: 2px;
}
.product__pay img { max-width: 380px; opacity: .9; }

/* вкладки */
.tabs { margin-top: 30px; }
.tabs__nav {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs__nav::-webkit-scrollbar { display: none; }
.tabs__btn {
    position: relative;
    padding: 13px 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}
.tabs__btn:hover { color: var(--text); }
.tabs__btn.is-active { color: var(--text); }
.tabs__btn.is-active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -1px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}
.tabs__counter {
    font-size: 11px;
    padding: 1px 7px;
    margin-left: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: var(--text-dim);
}
.tabs__panels { padding: 22px 0; }
.tabs__panel { animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* отзывы */
.reviews { display: flex; flex-direction: column; gap: 12px; }
.review {
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.review__text { display: block; color: var(--text-dim); }
.review__info {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--muted);
}
.review__comment {
    margin-top: 10px;
    padding: 10px 12px;
    border-left: 2px solid var(--accent);
    background: rgba(255, 90, 31, .06);
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    color: var(--text-dim);
}
.review__comment-label { display: block; font-size: 12px; color: var(--accent-2); margin-bottom: 4px; }
.reviews__empty { color: var(--muted); }
.reviews__pager:empty { display: none; }

/* ---------- текст ---------- */
.prose { max-width: 78ch; color: var(--text-dim); font-size: 16px; }
.prose > * + * { margin-top: 14px; }
.prose h2 { font-size: clamp(20px, 2.2vw, 26px); color: var(--text); margin-top: 28px; }
.prose h3 { font-size: 18px; color: var(--text); margin-top: 22px; }
.prose h4 { font-size: 16px; color: var(--text); margin-top: 18px; }
.prose ul, .prose ol { padding-left: 22px; list-style: revert; }
.prose li { margin-top: 6px; }
.prose li::marker { color: var(--accent); }
.prose b, .prose strong { color: var(--text); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose img { border-radius: 12px; margin: 16px 0; }
.prose blockquote {
    margin: 16px 0;
    padding: 12px 16px;
    border-left: 3px solid var(--accent);
    background: rgba(255, 255, 255, .03);
    border-radius: 0 10px 10px 0;
}
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { padding: 8px 10px; border: 1px solid var(--border); text-align: left; }

.note {
    margin: 14px 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 90, 31, .08);
    border: 1px solid rgba(255, 90, 31, .25);
    color: var(--text-dim);
}
.note--delivery {
    background: rgba(70, 209, 122, .07);
    border-color: rgba(70, 209, 122, .25);
}
.note br + br { display: none; }

/* «свернуть/развернуть» длинные тексты */
[data-collapse] {
    position: relative;
    max-height: 380px;
    overflow: hidden;
}
[data-collapse]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    pointer-events: none;
}
[data-collapse].is-open { max-height: none; }
[data-collapse].is-open::after { display: none; }
.collapse-btn { margin-top: 14px; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 900px; }
.faq__item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 4px 18px;
}
.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    font-weight: 600;
    font-size: 15.5px;
    cursor: pointer;
    list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
    content: "+";
    font-size: 22px;
    line-height: 1;
    color: var(--accent);
    transition: transform .2s ease;
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 0 16px; color: var(--text-dim); font-size: 15px; }

/* ---------- CTA ---------- */
.ctabox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: wrap;
    padding: 26px 28px;
    background:
        radial-gradient(600px 200px at 85% 20%, rgba(255, 90, 31, .2), transparent 70%),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.ctabox__text h2 { font-size: 22px; }
.ctabox__text p { margin-top: 6px; color: var(--text-dim); font-size: 14.5px; max-width: 60ch; }

/* ---------- теги ---------- */
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tags__label { color: var(--muted); font-size: 13.5px; margin-right: 4px; }
.tag {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    color: var(--text-dim);
}
.tag:hover { background: var(--accent-soft); border-color: rgba(255, 90, 31, .4); color: var(--accent-2); }

/* ---------- карточки контента (гарантии/контакты) ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 22px;
}
.cards__item {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.cards__item h2 { font-size: 18px; margin: 14px 0 8px; }
.cards__item p { color: var(--text-dim); font-size: 14.5px; }
.cards__ico img { width: 56px; height: 56px; object-fit: contain; }
.cards--contact .cards__item { text-align: center; }
.cards--contact .cards__ico { display: flex; justify-content: center; }

/* ---------- шаги ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin: 26px 0;
    counter-reset: step;
}
.steps__item {
    position: relative;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.steps__num {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    margin-bottom: 12px;
}
.steps__item h2 { font-size: 17px; margin-bottom: 6px; }
.steps__item p { color: var(--text-dim); font-size: 14.5px; }

/* ---------- статьи ---------- */
.newsgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 22px;
}
.newsgrid--related { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.news-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--text);
    transition: transform .18s ease, border-color .18s ease;
}
.news-card:hover { transform: translateY(-2px); border-color: var(--border-strong); color: var(--text); }
.news-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: #0e0e12; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.news-card__title { font-size: 16.5px; font-weight: 650; line-height: 1.3; }
.news-card__text { font-size: 14px; color: var(--muted); }
.news-card__date { font-size: 12.5px; color: var(--muted); margin-top: auto; }

.article { padding: 10px 0 20px; max-width: 900px; }
.article__head { padding: 18px 0 0; }
.article__title { font-size: clamp(24px, 3vw, 38px); font-weight: 800; letter-spacing: -.02em; }
.article__date { display: block; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.article__media { margin: 22px 0; border-radius: var(--radius); overflow: hidden; }
.article__body { margin-top: 22px; }
.article__foot { margin-top: 28px; }

/* ---------- поиск крупный ---------- */
.searchbig {
    display: flex;
    gap: 10px;
    margin: 22px 0;
    max-width: 720px;
}
.searchbig__input {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 15px;
}
.searchbig__input::placeholder { color: var(--muted); }
.searchbig__input:focus { outline: none; border-color: var(--border-strong); }

/* ---------- 404 ---------- */
.notfound { padding: 40px 0 10px; max-width: 620px; }
.notfound__code {
    font-size: clamp(64px, 12vw, 120px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
    background: linear-gradient(120deg, #ff8a4c, #ff3d00 60%, #7a3cff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.notfound__title { font-size: clamp(22px, 3vw, 30px); margin-top: 10px; }
.notfound__text { margin-top: 12px; color: var(--text-dim); }
.notfound__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- футер ---------- */
.ftr { margin-top: 44px; border-top: 1px solid var(--border); background: var(--bg-soft); }
.ftr__inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 28px;
    padding: 38px 0 28px;
}
.ftr__logo img { width: auto; height: 32px; }
.ftr__about { margin-top: 14px; color: var(--muted); font-size: 13.5px; max-width: 40ch; }
.ftr__social { display: flex; gap: 10px; margin-top: 16px; }
.ftr__social a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    color: var(--text-dim);
}
.ftr__social a:hover { color: #fff; border-color: var(--accent); }
.ftr__title { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.ftr__list { display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: var(--text-dim); }
.ftr__list a { color: var(--text-dim); }
.ftr__list a:hover { color: var(--accent-2); }
.ftr__bottom { border-top: 1px solid var(--border); padding: 16px 0 22px; }
.ftr__copy { font-size: 13px; color: var(--muted); }
.ftr__copy a { color: var(--text-dim); }
.ftr__disclaimer { margin-top: 6px; font-size: 12px; color: rgba(255, 255, 255, .55); max-width: 900px; }

/* ---------- кнопка «наверх» ---------- */
.to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(22, 22, 28, .92);
    border: 1px solid var(--border-strong);
    color: var(--text);
    box-shadow: var(--shadow-soft);
    z-index: 55;
    transition: opacity .2s ease, transform .2s ease;
}
.to-top:hover { background: var(--accent); }
.to-top[hidden] { display: none; }

/* ---------- модальные окна ---------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(4, 4, 6, .78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: fadeIn .16s ease;
}
.modal__dialog {
    position: relative;
    width: 100%;
    max-width: 760px;
    max-height: 86vh;
    overflow: auto;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
}
.modal__title { font-size: 22px; margin-bottom: 18px; padding-right: 40px; }
.modal__close {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    display: grid;
    place-items: center;
}
.modal__close:hover { background: var(--accent); }
.modal__close::before,
.modal__close::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 2px;
    background: currentColor;
}
.modal__close::before { transform: rotate(45deg); }
.modal__close::after { transform: rotate(-45deg); }
.modal__body { max-width: none; }
.modal--image .modal__dialog { max-width: 92vw; padding: 12px; background: #0a0a0c; }
.modal--image img { width: 100%; height: auto; border-radius: 12px; }

body.is-locked { overflow: hidden; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
    .product__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; }
    .ftr__inner { grid-template-columns: 1.4fr 1fr 1fr; }
    .ftr__col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
    .hero__inner { grid-template-columns: 1fr; gap: 26px; }
    .hero__hits .pcard { width: 152px; min-width: 152px; }
    .product__grid { grid-template-columns: 1fr; }
    .product__info { position: static; }
    .hdr__search { max-width: 260px; }
}

@media (max-width: 860px) {
    :root { --header-h: 58px; }

    .hdr__burger { display: flex; }
    .hdr__cta { display: none; }

    .hdr__nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--bg-soft);
        border-bottom: 1px solid var(--border);
        padding: 10px 16px 16px;
        box-shadow: var(--shadow);
    }
    .hdr.is-open .hdr__nav { display: block; }
    .hdr__nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
    .hdr__nav-item > a { padding: 12px; font-size: 16px; }

    .hdr__nav-sub {
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: 0 0 6px 12px;
        border-left: 2px solid rgba(255, 255, 255, .07);
        margin-left: 12px;
    }
    .hdr__nav-sub a {
        display: block;
        padding: 8px 12px;
        font-size: 14px;
        color: var(--muted);
    }
    .hdr__nav-sub a:hover { color: var(--text); }

    .hdr__search {
        order: 3;
        max-width: none;
        width: 100%;
        margin: 8px 0 0;
    }
    .hdr__inner { flex-wrap: wrap; padding-bottom: 8px; }

    .hdr__cats { display: none; }

    .hero { padding: 26px 0 14px; }
    .hero__facts { grid-template-columns: 1fr 1fr; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .pcard__title { font-size: 13px; -webkit-line-clamp: 3; }
    .pcard__price { font-size: 18px; }
    .section { padding: 24px 0; }
    .toolbar { padding: 10px 12px; }
    .ftr__inner { grid-template-columns: 1fr 1fr; gap: 20px; }
    .modal__dialog { padding: 20px; }
    .tabs__btn { padding: 12px 13px; font-size: 14px; }
}

@media (max-width: 560px) {
    .container { padding: 0 14px; }
    .hero__facts { grid-template-columns: 1fr; gap: 8px; }
    .hero__facts li { padding: 10px 12px; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .pcard__body { padding: 10px 11px 12px; gap: 6px; }
    .pcard__title { font-size: 12.5px; min-height: 3.4em; }
    .pcard__price { font-size: 17px; }
    .ftr__inner { grid-template-columns: 1fr; }
    .searchbig { flex-direction: column; }
    .searchbig .btn { width: 100%; }
    .ctabox { padding: 20px; }
    .ctabox .btn { width: 100%; }
    .product__price { font-size: 32px; }
    .to-top { right: 12px; bottom: 12px; }
}

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