/**
 * IVSHOPPER Catalog — стили каталога.
 */

:root {
    --ivs-primary: #1e3a2b;
    --ivs-primary-2: #2d543e;
    --ivs-accent: #c2410c;
    --ivs-accent-2: #9a3412;
    --ivs-ink: #111827;
    --ivs-muted: #6b7280;
    --ivs-line: #e5e7eb;
    --ivs-bg: #f7f6f2;
    --ivs-white: #ffffff;
    --ivs-radius: 14px;
    --ivs-shadow: 0 12px 32px rgba(17, 24, 39, .08);
    --ivs-font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body.ivs-body {
    margin: 0;
    font-family: var(--ivs-font);
    color: var(--ivs-ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

.ivs-body img { max-width: 100%; height: auto; }
.ivs-body a { color: inherit; text-decoration: none; }
.ivs-body button { font-family: inherit; }

.ivs-container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 20px;
}

.ivs-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

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

.ivs-main { min-height: 50vh; }

/* ---------- Кнопки ---------- */
.ivs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 9px;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease, color .18s ease, border-color .18s ease;
    text-align: center;
}
.ivs-btn:active { transform: translateY(1px); }
.ivs-btn--accent { background: var(--ivs-accent); color: #fff; }
.ivs-btn--accent:hover { background: var(--ivs-accent-2); }
.ivs-btn--dark { background: var(--ivs-primary); color: #fff; }
.ivs-btn--dark:hover { background: var(--ivs-primary-2); }
.ivs-btn--outline { background: transparent; color: var(--ivs-primary); border: 1.5px solid var(--ivs-primary); }
.ivs-btn--outline:hover { background: var(--ivs-primary); color: #fff; }
.ivs-btn--full { width: 100%; }
.ivs-btn--lg { padding: 14px 24px; font-size: 15px; }

/* ---------- Шапка ---------- */
.ivs-header {
    position: sticky;
    top: 0;
    z-index: 500;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ivs-line);
}
.ivs-header__wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 70px;
}
.ivs-logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ivs-logo__mark {
    width: 38px; height: 38px;
    border-radius: 9px;
    background: var(--ivs-primary);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 17px; letter-spacing: .5px;
}
.ivs-logo__meta { display: flex; flex-direction: column; line-height: 1.15; }
.ivs-logo__title { font-weight: 800; font-size: 16px; letter-spacing: .06em; color: var(--ivs-primary); }
.ivs-logo__sub { font-size: 9.5px; color: var(--ivs-muted); font-weight: 600; letter-spacing: .02em; }

.ivs-nav { display: flex; align-items: center; gap: 4px; }
.ivs-nav__link {
    padding: 8px 11px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    transition: background .15s ease, color .15s ease;
    white-space: nowrap;
}
.ivs-nav__link:hover, .ivs-nav__link.is-active { background: #f1f5f2; color: var(--ivs-primary); }

.ivs-header__right { display: flex; align-items: center; gap: 12px; }
.ivs-header__phone { display: flex; flex-direction: column; line-height: 1.2; }
.ivs-header__phone-num { font-weight: 800; font-size: 14px; color: var(--ivs-ink); }
.ivs-header__status { display: inline-flex; align-items: center; gap: 5px; font-size: 9.5px; color: var(--ivs-muted); font-weight: 600; }
.ivs-header__status i { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; display: inline-block; }
.ivs-header__cta { padding: 9px 15px; font-size: 12.5px; }

.ivs-burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.ivs-burger span { display: block; width: 22px; height: 2px; background: var(--ivs-ink); margin: 4px 0; border-radius: 2px; }

.ivs-subnav { border-top: 1px solid #f1f2f4; }
.ivs-subnav__wrap { display: flex; gap: 4px; overflow-x: auto; padding-top: 7px; padding-bottom: 7px; scrollbar-width: none; }
.ivs-subnav__wrap::-webkit-scrollbar { display: none; }
.ivs-subnav__link {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ivs-muted);
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.ivs-subnav__link:hover { color: var(--ivs-primary); background: #f3f5f3; }
.ivs-subnav__link.is-active { background: #e8f0ea; color: var(--ivs-primary); }

/* ---------- Хлебные крошки ---------- */
.ivs-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    padding-top: 16px;
    padding-bottom: 4px;
    font-size: 12px;
    color: var(--ivs-muted);
}
.ivs-breadcrumbs a:hover { color: var(--ivs-primary); text-decoration: underline; }
.ivs-breadcrumbs span[aria-current] { color: #374151; font-weight: 600; }

/* ---------- Hero ---------- */
.ivs-hero {
    padding: 26px 0 22px;
    background:
        radial-gradient(900px 320px at 85% -10%, rgba(230, 126, 34, .10), transparent 70%),
        linear-gradient(180deg, #fbfaf7 0%, #ffffff 100%);
    border-bottom: 1px solid var(--ivs-line);
}
.ivs-hero__eyebrow {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #92400e;
    background: #fef3c7;
    padding: 4px 11px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.ivs-hero__title {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -.02em;
    font-weight: 800;
    color: var(--ivs-primary);
    max-width: 800px;
}
.ivs-hero__desc { margin: 0 0 20px; max-width: 760px; color: var(--ivs-muted); font-size: 15px; }
.ivs-hero__facts { display: flex; flex-wrap: wrap; gap: 10px; }
.ivs-fact {
    background: #fff;
    border: 1px solid var(--ivs-line);
    border-radius: 10px;
    padding: 9px 14px;
    display: flex;
    flex-direction: column;
    min-width: 130px;
}
.ivs-fact strong { font-size: 16px; font-weight: 800; color: var(--ivs-primary); }
.ivs-fact span { font-size: 10.5px; color: var(--ivs-muted); }

/* ---------- Чипы категорий ---------- */
.ivs-catalog { padding: 22px 0 46px; }
.ivs-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.ivs-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid var(--ivs-line);
    border-radius: 24px;
    background: #fff;
    font-size: 12.5px;
    font-weight: 700;
    color: #374151;
    transition: all .15s ease;
}
.ivs-chip span {
    background: #eceff1;
    color: #4b5563;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 700;
}
.ivs-chip:hover { border-color: #cfd8d2; color: var(--ivs-primary); }
.ivs-chip.is-active { background: var(--ivs-primary); border-color: var(--ivs-primary); color: #fff; }
.ivs-chip.is-active span { background: rgba(255,255,255,.18); color: #fff; }

/* ---------- Раскладка ---------- */
.ivs-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 30px; align-items: start; }

/* ---------- Сайдбар: категории ---------- */
.ivs-cat-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 18px;
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid var(--ivs-line);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ivs-ink);
    cursor: pointer;
}
.ivs-cat-toggle:hover { border-color: var(--ivs-primary); color: var(--ivs-primary); }
.ivs-cat-toggle__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--ivs-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.ivs-sidebar {
    position: sticky;
    top: 96px;
    border: 1px solid var(--ivs-line);
    border-radius: var(--ivs-radius);
    padding: 22px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(17, 24, 39, .04);
}
.ivs-sidebar__header { display: none; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid #eef0f1; }
.ivs-sidebar__header h3 { margin: 0; font-size: 20px; font-weight: 800; color: var(--ivs-primary); }
.ivs-sidebar__close { border: 0; background: none; font-size: 26px; line-height: 1; color: #6b7280; cursor: pointer; padding: 2px 6px; }
.ivs-sidebar__close:hover { color: var(--ivs-ink); }

.ivs-filter-group { margin-bottom: 22px; }
.ivs-filter-group__title { margin: 0 0 12px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ivs-muted); }
.ivs-filter-chips { display: flex; flex-direction: column; gap: 8px; }
.ivs-cat-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: #f4f5f6;
    border: 1px solid var(--ivs-line);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    transition: all .18s ease;
}
.ivs-cat-chip:hover { border-color: var(--ivs-primary); color: var(--ivs-primary); background: #f4f8f5; transform: translateX(3px); }
.ivs-cat-chip.is-active { background: var(--ivs-primary); border-color: var(--ivs-primary); color: #fff; font-weight: 700; box-shadow: 0 4px 14px rgba(30,58,43,.18); transform: translateX(3px); }
.ivs-cat-chip__count { font-size: 11px; padding: 2px 7px; border-radius: 20px; background: rgba(15,23,42,.08); font-weight: 700; color: #4b5563; }
.ivs-cat-chip.is-active .ivs-cat-chip__count { background: rgba(255,255,255,.2); color: #fde047; }

.ivs-filter-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(239,68,68,.08);
    font-size: 12.5px;
    font-weight: 600;
    color: #dc2626;
    transition: background .15s ease;
}
.ivs-filter-reset:hover { background: rgba(239,68,68,.15); }

.ivs-sidebar-cta {
    margin-top: 26px;
    padding: 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--ivs-primary) 0%, #1e293b 100%);
    text-align: center;
    box-shadow: 0 6px 18px rgba(15,23,42,.16);
}
.ivs-sidebar-cta p { margin: 0 0 12px; font-size: 12.5px; line-height: 1.5; color: #cbd5e1; font-weight: 500; }
.ivs-sidebar-cta__btn {
    display: inline-block;
    padding: 10px 20px;
    border: 0;
    border-radius: 100px;
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(217,119,6,.3);
    transition: all .18s ease;
}
.ivs-sidebar-cta__btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(217,119,6,.4); }

.ivs-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
}
.ivs-sidebar-overlay.is-visible { opacity: 1; visibility: visible; }

/* ---------- Тулбар ---------- */
.ivs-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.ivs-toolbar__count { font-size: 12.5px; color: var(--ivs-muted); font-weight: 600; }
.ivs-sort { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ivs-muted); }
.ivs-sort select {
    border: 1px solid var(--ivs-line);
    border-radius: 8px;
    padding: 7px 9px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    background: #fff;
    color: #374151;
    cursor: pointer;
}

/* ---------- Сетка карточек ---------- */
.ivs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ivs-card {
    border: 1px solid var(--ivs-line);
    border-radius: var(--ivs-radius);
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ivs-card:hover { transform: translateY(-3px); box-shadow: var(--ivs-shadow); border-color: #d8ddd9; }
.ivs-card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    background: #f3f4f3;
    overflow: hidden;
}
.ivs-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ivs-card:hover .ivs-card__img { transform: scale(1.03); }
.ivs-card__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 800; color: #cbd5ce; }
.ivs-card__badge {
    position: absolute;
    left: 10px; top: 10px;
    background: rgba(30, 58, 43, .88);
    color: #fff;
    font-size: 9.5px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: .02em;
    backdrop-filter: blur(4px);
}
.ivs-card__body { padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ivs-card__cat { display: inline-block; font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ivs-accent-2); font-weight: 800; }
.ivs-card__title { margin: 0; font-size: 14px; line-height: 1.3; font-weight: 700; }
.ivs-card__title a:hover { color: var(--ivs-accent-2); }
.ivs-card__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.ivs-card__price { font-size: 15px; font-weight: 800; color: var(--ivs-primary); }
.ivs-card__price small { font-size: 10px; font-weight: 600; color: var(--ivs-muted); margin-left: 2px; }
.ivs-card__lead { font-size: 10.5px; color: var(--ivs-muted); white-space: nowrap; }

.ivs-empty { border: 1px dashed #d8dcd9; border-radius: var(--ivs-radius); padding: 46px 20px; text-align: center; background: #fbfbfa; }
.ivs-empty__title { font-weight: 800; font-size: 18px; margin-bottom: 6px; }
.ivs-empty p { margin: 0; color: var(--ivs-muted); font-size: 13px; }

/* ---------- Пагинация ---------- */
.ivs-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 30px; }
.ivs-page-link {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ivs-line);
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: #374151;
    background: #fff;
    transition: all .15s;
}
.ivs-page-link:hover { border-color: var(--ivs-primary); color: var(--ivs-primary); }
.ivs-page-link.is-active { background: var(--ivs-primary); border-color: var(--ivs-primary); color: #fff; }
.ivs-page-link.is-disabled { opacity: .4; pointer-events: none; }
.ivs-page-dots { padding: 0 4px; color: var(--ivs-muted); align-self: center; }

/* ---------- SEO-текст ---------- */
.ivs-seo-text { padding: 36px 0; background: #fbfaf7; border-top: 1px solid var(--ivs-line); }
.ivs-seo-text h2 { margin: 0 0 8px; font-size: 22px; font-weight: 800; color: var(--ivs-primary); }
.ivs-seo-text p { margin: 0; max-width: 860px; color: #4b5563; font-size: 14px; }

/* ---------- CTA ---------- */
.ivs-cta { padding: 34px 0; background: var(--ivs-primary); color: #fff; }
.ivs-cta__wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ivs-cta h2 { margin: 0 0 5px; font-size: 24px; font-weight: 800; }
.ivs-cta p { margin: 0; font-size: 13.5px; color: #cbd5cf; max-width: 640px; }

/* ---------- Карточка товара ---------- */
.ivs-product { padding: 18px 0 44px; }
.ivs-product__wrap { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 44px; align-items: start; }

.ivs-gallery { position: sticky; top: 96px; }
.ivs-gallery__main {
    border: 1px solid var(--ivs-line);
    border-radius: var(--ivs-radius);
    overflow: hidden;
    background: #f4f4f2;
    aspect-ratio: 4 / 5;
}
.ivs-gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ivs-gallery__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 60px; font-weight: 800; color: #cbd5ce; }
.ivs-gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.ivs-thumb {
    flex: 0 0 70px;
    width: 70px; height: 84px;
    border: 2px solid transparent;
    border-radius: 9px;
    overflow: hidden;
    background: #f4f4f2;
    padding: 0;
    cursor: pointer;
}
.ivs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ivs-thumb.is-active { border-color: var(--ivs-primary); }

.ivs-product__cat {
    display: inline-block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .09em;
    font-weight: 800;
    color: var(--ivs-accent-2);
    margin-bottom: 6px;
}
.ivs-product__title { margin: 0 0 14px; font-size: clamp(26px, 3vw, 36px); line-height: 1.12; font-weight: 800; color: var(--ivs-primary); letter-spacing: -.015em; }

.ivs-product__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.ivs-product__price, .ivs-product__fact {
    border: 1px solid var(--ivs-line);
    border-radius: 10px;
    padding: 8px 13px;
    display: flex;
    flex-direction: column;
    background: #fff;
}
.ivs-product__price-label, .ivs-product__fact span { font-size: 10px; color: var(--ivs-muted); font-weight: 600; }
.ivs-product__price-value { font-size: 19px; font-weight: 800; color: var(--ivs-primary); line-height: 1.2; }
.ivs-product__price-value small { font-size: 11px; color: var(--ivs-muted); font-weight: 600; }
.ivs-product__fact strong { font-size: 15px; font-weight: 800; color: var(--ivs-ink); }

.ivs-product__intro { font-size: 13.5px; color: #4b5563; margin-bottom: 14px; }
.ivs-product__intro p { margin: 0 0 8px; }

.ivs-product__quick { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 18px; }
.ivs-product__quick > div { background: #f8f8f6; border-radius: 8px; padding: 7px 10px; display: flex; flex-direction: column; }
.ivs-product__quick span { font-size: 9.5px; color: var(--ivs-muted); font-weight: 600; }
.ivs-product__quick strong { font-size: 11.5px; font-weight: 700; }

.ivs-option { margin-bottom: 16px; }
.ivs-option__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.ivs-option__label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: #374151; }
.ivs-option__value { font-size: 11.5px; color: var(--ivs-muted); font-weight: 600; }

.ivs-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.ivs-swatch {
    width: 32px; height: 32px;
    padding: 0;
    border: 1px solid rgba(0,0,0,.12);
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform .15s, box-shadow .15s;
}
.ivs-swatch span { width: 24px; height: 24px; border-radius: 50%; background: var(--dot); display: block; }
.ivs-swatch:hover { transform: scale(1.06); }
.ivs-swatch.is-active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ivs-primary); }

.ivs-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.ivs-method {
    border: 1.5px solid var(--ivs-line);
    border-radius: 9px;
    padding: 8px 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: all .15s;
    background: #fff;
}
.ivs-method input { position: absolute; opacity: 0; pointer-events: none; }
.ivs-method__name { font-size: 12px; font-weight: 800; }
.ivs-method__cost { font-size: 10px; color: var(--ivs-muted); font-weight: 600; }
.ivs-method:hover { border-color: #cfd8d2; }
.ivs-method.is-active { border-color: var(--ivs-primary); background: #f4f8f5; }
.ivs-method.is-active .ivs-method__cost { color: var(--ivs-primary); }

.ivs-tiers { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.ivs-tier {
    border: 1.5px solid var(--ivs-line);
    border-radius: 9px;
    background: #fff;
    padding: 7px 11px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    transition: all .15s;
}
.ivs-tier__qty { font-size: 11.5px; font-weight: 800; color: var(--ivs-ink); }
.ivs-tier__price { font-size: 10px; color: var(--ivs-muted); font-weight: 600; }
.ivs-tier:hover { border-color: #cfd8d2; }
.ivs-tier.is-active { border-color: var(--ivs-primary); background: var(--ivs-primary); }
.ivs-tier.is-active .ivs-tier__qty, .ivs-tier.is-active .ivs-tier__price { color: #fff; }

.ivs-calc { border: 1px solid var(--ivs-line); border-radius: 10px; padding: 12px; background: #fbfbfa; }
.ivs-calc__qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ivs-calc__qty span { font-size: 11.5px; font-weight: 700; color: #374151; }
.ivs-calc__qty input {
    width: 110px;
    border: 1px solid var(--ivs-line);
    border-radius: 8px;
    padding: 7px 9px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    text-align: right;
    background: #fff;
}
.ivs-calc__out { display: flex; flex-direction: column; gap: 4px; }
.ivs-calc__row { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: #4b5563; }
.ivs-calc__row strong { font-weight: 700; color: var(--ivs-ink); }
.ivs-calc__row--total { border-top: 1px dashed #d8dcd9; padding-top: 7px; margin-top: 3px; font-size: 13px; }
.ivs-calc__row--total strong { font-size: 17px; color: var(--ivs-primary); }

.ivs-product__actions { display: flex; gap: 9px; flex-wrap: wrap; margin: 18px 0 12px; }
.ivs-product__actions .ivs-btn--accent { flex: 1 1 220px; }
.ivs-product__trust { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--ivs-muted); }

.ivs-product-content { padding: 40px 0; background: #fbfaf7; border-top: 1px solid var(--ivs-line); }
.ivs-product-content__wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; align-items: start; }
.ivs-product-content h2 { font-size: 23px; font-weight: 800; color: var(--ivs-primary); margin: 0 0 14px; }
.ivs-product-content__main { font-size: 14px; color: #374151; }
.ivs-product-content__main ul { padding-left: 20px; }
.ivs-product-content__main li { margin-bottom: 5px; }

.ivs-branding-info { margin-top: 30px; }
.ivs-branding-info__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ivs-branding-info__card { background: #fff; border: 1px solid var(--ivs-line); border-radius: 10px; padding: 14px; }
.ivs-branding-info__card h3 { font-size: 13.5px; margin: 0 0 5px; color: var(--ivs-primary); }
.ivs-branding-info__card p { margin: 0; font-size: 11.5px; color: var(--ivs-muted); }

.ivs-specs { background: #fff; border: 1px solid var(--ivs-line); border-radius: var(--ivs-radius); padding: 18px; position: sticky; top: 96px; }
.ivs-specs h2 { font-size: 18px; margin-bottom: 10px; }
.ivs-specs dl { margin: 0 0 14px; }
.ivs-specs__row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid #f1f2f4; }
.ivs-specs__row:last-child { border-bottom: 0; }
.ivs-specs dt { font-size: 11.5px; color: var(--ivs-muted); margin: 0; }
.ivs-specs dd { font-size: 11.5px; font-weight: 700; margin: 0; text-align: right; max-width: 60%; }

.ivs-related { padding: 40px 0; }
.ivs-related__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.ivs-related__head h2 { margin: 0; font-size: 23px; font-weight: 800; color: var(--ivs-primary); }
.ivs-related__head a { font-size: 12.5px; font-weight: 700; color: var(--ivs-accent-2); }
.ivs-grid--related { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Подвал ---------- */
.ivs-footer { background: #14261c; color: #cbd5cf; padding: 40px 0 22px; font-size: 12.5px; }
.ivs-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
.ivs-footer__logo { color: #fff; font-weight: 800; font-size: 20px; letter-spacing: .06em; margin-bottom: 8px; }
.ivs-footer__brand p { margin: 0 0 12px; color: #9fb0a5; line-height: 1.55; max-width: 300px; }
.ivs-footer__phone, .ivs-footer__mail { display: block; color: #fff; font-weight: 700; margin-bottom: 2px; padding: 4px 0; }
.ivs-footer__mail { color: #7dd3a0; }
.ivs-footer__title { color: #fff; font-weight: 800; margin-bottom: 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.ivs-footer__col a, .ivs-footer__col span { display: block; color: #b9c8bf; margin-bottom: 4px; padding: 2px 0; line-height: 1.45; }
.ivs-footer__col a:hover { color: #fff; }
.ivs-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 16px; color: #8fa397; font-size: 11px; }

body.admin-bar .ivs-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .ivs-header { top: 46px; } }

/* ---------- Модалки ---------- */
.ivs-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.ivs-modal.is-open { display: flex; }
.ivs-modal__backdrop { position: absolute; inset: 0; background: rgba(12, 20, 15, .62); backdrop-filter: blur(3px); }
.ivs-modal__box {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 470px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 24px 22px;
    box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.ivs-modal__box--success { max-width: 400px; text-align: center; }
.ivs-modal__close {
    position: absolute;
    top: 10px; right: 12px;
    width: 34px; height: 34px;
    border: 0; border-radius: 50%;
    background: #f3f4f3;
    font-size: 22px; line-height: 1;
    color: #4b5563;
    cursor: pointer;
}
.ivs-modal__close:hover { background: #e8eae8; }
.ivs-modal__title { margin: 0 0 6px; font-size: 21px; font-weight: 800; color: var(--ivs-primary); padding-right: 30px; }
.ivs-modal__desc { margin: 0 0 14px; font-size: 12.5px; color: var(--ivs-muted); line-height: 1.45; }
.ivs-modal__summary {
    background: #f4f8f5;
    border: 1px solid #dbe6de;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 14px;
    color: #2f4536;
    white-space: pre-line;
}
.ivs-success__icon { width: 56px; height: 56px; border-radius: 50%; background: #dcfce7; color: #16a34a; display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 14px; }

.ivs-form { display: flex; flex-direction: column; gap: 11px; }
.ivs-hp { position: absolute; left: -9999px; opacity: 0; width: 0; height: 0; }
.ivs-field { display: flex; flex-direction: column; gap: 4px; }
.ivs-field__label { font-size: 11px; font-weight: 700; color: #374151; }
.ivs-req { color: #ef4444; }
.ivs-input {
    border: 1px solid #d8dcd9;
    border-radius: 8px;
    padding: 9px 11px;
    font-family: inherit;
    font-size: 13px;
    width: 100%;
    background: #fff;
    color: var(--ivs-ink);
    transition: border-color .15s, box-shadow .15s;
}
.ivs-input:focus { outline: 0; border-color: var(--ivs-primary); box-shadow: 0 0 0 3px rgba(30,58,43,.1); }
.ivs-input.is-invalid { border-color: #ef4444; }
.ivs-textarea { resize: vertical; min-height: 84px; }
.ivs-field__error { display: none; font-size: 10.5px; color: #ef4444; }
.ivs-field.has-error .ivs-field__error { display: block; }

.ivs-file {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px dashed #cbd5ce;
    border-radius: 10px;
    padding: 10px 11px;
    background: #fbfbfa;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.ivs-file:hover { border-color: var(--ivs-primary); background: #f6faf7; }
.ivs-file__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ivs-file__icon { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px; background: #e8f0ea; color: var(--ivs-primary); display: flex; align-items: center; justify-content: center; }
.ivs-file__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.ivs-file__title { font-size: 11.5px; font-weight: 700; color: #374151; }
.ivs-file__hint { font-size: 9.5px; color: var(--ivs-muted); line-height: 1.3; }
.ivs-file__name { display: none; font-size: 10px; font-weight: 700; color: var(--ivs-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ivs-file.has-file .ivs-file__name { display: block; }
.ivs-file.has-file .ivs-file__hint { display: none; }
.ivs-file__button { flex: 0 0 auto; padding: 6px 10px; border: 1px solid #d8dcd9; border-radius: 7px; background: #fff; font-size: 10.5px; font-weight: 700; color: #374151; }
.ivs-form__privacy { margin: 0; font-size: 10px; color: #6b7280; line-height: 1.4; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
    .ivs-nav { display: none; }
    .ivs-nav.is-open {
        display: flex;
        position: absolute;
        top: 70px; left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 10px 16px 16px;
        border-bottom: 1px solid var(--ivs-line);
        box-shadow: 0 12px 24px rgba(0,0,0,.08);
        z-index: 600;
    }
    .ivs-burger { display: block; }
    .ivs-header__phone { display: none; }
    .ivs-layout { grid-template-columns: minmax(0, 1fr); }
    .ivs-cat-toggle { display: flex; }
    .ivs-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        bottom: 0;
        width: min(320px, 85vw);
        z-index: 1000;
        overflow-y: auto;
        border-radius: 0 var(--ivs-radius) var(--ivs-radius) 0;
        padding: 22px;
        margin: 0;
        box-shadow: 0 20px 50px rgba(15,23,42,.25);
        visibility: hidden;
        transition: left .3s cubic-bezier(.4,0,.2,1), visibility .3s;
    }
    .ivs-sidebar.is-open { left: 0; visibility: visible; }
    .ivs-sidebar__header { display: flex; }
    .ivs-footer__top { grid-template-columns: 1fr 1fr; }
    .ivs-grid--related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .ivs-product__wrap { grid-template-columns: 1fr; gap: 26px; }
    .ivs-gallery { position: static; }
    .ivs-gallery__main { max-width: 560px; margin: 0 auto; }
    .ivs-product-content__wrap { grid-template-columns: 1fr; gap: 26px; }
    .ivs-specs { position: static; }
}

@media (max-width: 820px) {
    .ivs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .ivs-hero { padding: 20px 0 16px; }
    .ivs-hero__title { font-size: 28px; }
    .ivs-hero__desc { font-size: 13.5px; }
    .ivs-fact { flex: 1 1 40%; min-width: 0; }
    .ivs-branding-info__grid { grid-template-columns: 1fr; }
    .ivs-methods { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .ivs-container { padding: 0 14px; }
    .ivs-header__wrap { min-height: 62px; }
    .ivs-logo__sub { display: none; }
    .ivs-header__cta { display: none; }
    .ivs-grid { grid-template-columns: 1fr 1fr; }
    .ivs-card__body { padding: 9px 10px 10px; }
    .ivs-card__title { font-size: 12.5px; }
    .ivs-card__price { font-size: 13.5px; }
    .ivs-card__badge { font-size: 8.5px; left: 7px; top: 7px; }
    .ivs-product__quick { grid-template-columns: 1fr; }
    .ivs-methods { grid-template-columns: 1fr; }
    .ivs-tiers { display: grid; grid-template-columns: 1fr 1fr; }
    .ivs-tier { width: 100%; }
    .ivs-product__actions .ivs-btn--accent { flex: 1 1 100%; }
    .ivs-cta__wrap { flex-direction: column; align-items: flex-start; }
    .ivs-footer__top { grid-template-columns: 1fr; gap: 22px; }
    .ivs-grid--related { grid-template-columns: 1fr 1fr; }
    .ivs-modal__box { padding: 22px 16px; }
    .ivs-specs__row { flex-direction: column; gap: 2px; }
    .ivs-specs dd { text-align: left; max-width: none; }
    .ivs-related__head h2 { font-size: 19px; }
}
