/* Тема inbalans — по макету главной v2 (design/home-v2.dc.html). Префикс ib- */
:root {
  --ib-bg: #FAFAF8;
  --ib-band: #F2F1ED;
  --ib-tile: #ECEBE6;
  --ib-ink: #1C1D1B;
  --ib-text: #44473F;
  --ib-muted: #5F625E;
  --ib-faint: #7A7D78;
  --ib-line: #E6E4DE;
  --ib-border: #CFCCC4;
  --ib-dark: #033D25;
  --ib-brand: #033D25;
  --ib-brand-deep: #022C1B;
  --ib-light: #F4F3EF;
  --ib-ok: #3D6B4F;
  --ib-low: #9A6B1F;
  --ib-sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ib-display: Montserrat, Inter, system-ui, sans-serif; /* Jost из Google Fonts ломает латышские ā ē ķ */
  --ib-wrap: 1280px;
}

/* База — и для страниц ядра с Bootstrap */
body.ib { margin: 0; background: var(--ib-bg); color: var(--ib-ink); font-family: var(--ib-sans); font-size: 16px; line-height: 1.5; }
body.ib a { color: var(--ib-ink); text-decoration: none; }
body.ib a:hover { color: #4A5A50; }
body.ib h1, body.ib h2, body.ib h3 { font-family: var(--ib-display); font-weight: 300; color: var(--ib-ink); }
body.ib .ib-dark h2 { color: var(--ib-light); }
body.ib .btn-primary { background: var(--ib-ink); border-color: var(--ib-ink); border-radius: 999px; padding: .6rem 1.4rem; }
body.ib .btn-primary:hover { background: #000; border-color: #000; }
body.ib .btn-light, body.ib .btn-secondary { border-radius: 999px; }
body.ib .form-control, body.ib .form-select { border-color: var(--ib-border); border-radius: 4px; }
body.ib .breadcrumb { font-size: 13px; }
body.ib .container, body.ib .container-fluid { max-width: var(--ib-wrap); }
.ib-main { min-height: 50vh; }
.ib-main > .container { padding-top: 32px; padding-bottom: 64px; }

.ib-wrap { max-width: var(--ib-wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }
.ib-section { padding-top: 96px; padding-bottom: 96px; }
.ib-band { background: var(--ib-band); padding: 88px 0; }
.ib-dark { background: var(--ib-dark); color: var(--ib-light); padding: 88px 0; }

/* Полоса и шапка */
.ib-announce { background: var(--ib-dark); color: var(--ib-light); font-size: 13px; letter-spacing: .02em; padding: 10px 16px; text-align: center; }
body.ib .ib-announce a { color: var(--ib-light); text-decoration: underline; }
.ib-header { border-bottom: 1px solid var(--ib-line); background: var(--ib-bg); }
.ib-header__in { max-width: var(--ib-wrap); margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; gap: 24px; }
.ib-logo { font-family: var(--ib-display); font-size: 26px; font-weight: 400; letter-spacing: .04em; flex-shrink: 0; color: var(--ib-ink); }
.ib-logo span { font-weight: 300; color: var(--ib-muted); }
.ib-nav { display: flex; flex-wrap: wrap; gap: 26px; font-size: 14px; flex: 1 1 auto; justify-content: center; }
.ib-actions { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.ib-icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; position: relative; }
.ib-langs { display: flex; gap: 10px; }
body.ib .ib-langs a { color: var(--ib-muted); }
body.ib .ib-langs a.is-active { color: var(--ib-ink); font-weight: 600; }
.ib-portal { border: 1px solid var(--ib-ink); border-radius: 999px; padding: 10px 18px; min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
/* значок корзины в шапке: не .ib-cart — этот класс у сетки страницы корзины */
.ib-cartlink__n { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--ib-dark); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.ib-burger { display: none; background: none; border: 0; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--ib-ink); margin-left: auto; }

/* Типографика */
.ib-eyebrow { margin: 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ib-muted); }
body.ib .ib-h1 { margin: 0; font-size: clamp(38px, 5vw, 66px); line-height: 1.05; letter-spacing: -.01em; }
body.ib .ib-h2 { margin: 0; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.15; }
.ib-lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ib-text); max-width: 540px; }
.ib-muted { margin: 0; font-size: 14px; color: var(--ib-muted); line-height: 1.5; }
body.ib .ib-muted a, body.ib .ib-link { text-decoration: underline; color: var(--ib-text); }
body.ib .ib-link { font-size: 14px; color: var(--ib-ink); }

/* Кнопки и чипы */
.ib-btns { display: flex; flex-wrap: wrap; gap: 12px; }
body.ib .ib-btn { display: inline-flex; align-items: center; justify-content: center; background: var(--ib-ink); color: var(--ib-bg); border: 1px solid var(--ib-ink); border-radius: 999px; padding: 15px 28px; font-size: 15px; min-height: 48px; box-sizing: border-box; }
body.ib .ib-btn:hover { background: #000; color: #fff; }
body.ib .ib-btn--o { background: transparent; color: var(--ib-ink); }
body.ib .ib-btn--o:hover { background: var(--ib-ink); color: var(--ib-bg); }
body.ib .ib-btn--light { background: var(--ib-light); color: var(--ib-dark); border-color: var(--ib-light); }
body.ib .ib-btn--olight { background: transparent; color: var(--ib-light); border-color: var(--ib-light); }
.ib-btn--block { width: 100%; }
.ib-chips { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.ib-chip { border: 1px solid var(--ib-border); border-radius: 999px; padding: 10px 16px; color: var(--ib-text); background: transparent; }
.ib-chip.is-on { border-color: var(--ib-ink); color: var(--ib-ink); background: var(--ib-bg); }
.ib-chip.is-dark { background: var(--ib-ink); border-color: var(--ib-ink); color: var(--ib-bg); }

/* Сетки */
.ib-grid { display: grid; gap: 16px; }
.ib-grid--4 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ib-grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ib-grid--steps { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.ib-grid--products { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.ib-sechead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 40px; }
.ib-sechead > div { display: flex; flex-direction: column; gap: 12px; }
.ib-sechead__text { margin: 0; font-size: 15px; color: var(--ib-muted); max-width: 460px; line-height: 1.6; }

/* Первый экран */
.ib-hero { padding-top: 72px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.ib-hero__copy { flex: 1 1 460px; display: flex; flex-direction: column; gap: 28px; }
.ib-hero__grid { flex: 1 1 500px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ib-tile { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: var(--ib-tile); border-radius: 4px; }
.ib-tile:nth-child(2), .ib-tile:nth-child(3) { background: #EFEEEA; }
.ib-tile img, .ib-brand__img img, .ib-card__img img { position: absolute; top: 12%; left: 12%; width: 76%; height: 76%; object-fit: contain; mix-blend-mode: multiply; }

/* Бренды */
.ib-brand { background: var(--ib-bg); border-radius: 4px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.ib-brand__img { position: relative; display: block; overflow: hidden; aspect-ratio: 1 / 1; background: var(--ib-band); border-radius: 2px; }
.ib-brand__img img { top: 10%; left: 10%; width: 80%; height: 80%; }
.ib-brand__copy { display: flex; flex-direction: column; gap: 6px; }
.ib-brand__name { font-family: var(--ib-display); font-size: 22px; letter-spacing: .06em; }
.ib-brand__about { font-size: 14px; color: var(--ib-muted); line-height: 1.5; }
.ib-brand__links { display: flex; flex-direction: column; border-top: 1px solid var(--ib-line); font-size: 14px; }
.ib-brand__links a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ib-line); }
.ib-brand__links a:last-child { border-bottom: 0; }
.ib-brand__links a span:last-child { color: var(--ib-muted); }

/* Портал: шаги и пример заказа */
.ib-step { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--ib-ink); padding-top: 24px; }
.ib-step__n { font-size: 13px; color: var(--ib-muted); }
body.ib .ib-step h3 { margin: 0; font-family: var(--ib-sans); font-size: 18px; font-weight: 500; }
.ib-step p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ib-text); }
.ib-demo { margin-top: 56px; background: var(--ib-band); border-radius: 6px; padding: 32px; display: flex; flex-wrap: wrap; gap: 32px; }
.ib-demo__list { flex: 2 1 560px; background: var(--ib-bg); border-radius: 4px; padding: 8px 24px; }
.ib-demo__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--ib-line); font-size: 13px; color: var(--ib-muted); }
.ib-demo__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--ib-line); }
.ib-demo__thumb { width: 56px; height: 56px; flex-shrink: 0; background: var(--ib-band); border-radius: 2px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--ib-faint); overflow: hidden; }
.ib-demo__thumb img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; }
.ib-demo__name { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.ib-demo__brand { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ib-muted); }
.ib-demo__brand .is-pro { color: var(--ib-dark); }
.ib-stock { font-size: 12px; }
.ib-stock.is-in { color: var(--ib-ok); }
.ib-stock.is-low { color: var(--ib-low); }
.ib-stock.is-order { color: var(--ib-muted); }
.ib-stock::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }
.ib-stock-line { margin: 2px 0 6px; line-height: 1.3; }
.ib-demo__price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 110px; font-size: 15px; }
.ib-demo__price strong { font-weight: 500; }
.ib-demo__price span { font-size: 12px; color: var(--ib-muted); }
.ib-qty { display: inline-flex; align-items: center; border: 1px solid var(--ib-border); border-radius: 999px; height: 40px; font-size: 14px; }
.ib-qty span { width: 32px; text-align: center; }
.ib-qty span:first-child, .ib-qty span:last-child { color: var(--ib-muted); width: 36px; }
.ib-demo__tools { padding: 16px 0; font-size: 13px; color: var(--ib-muted); }
.ib-demo__sum { flex: 1 1 280px; display: flex; flex-direction: column; gap: 18px; font-size: 14px; }
body.ib .ib-demo__sum h3 { margin: 0; font-family: var(--ib-sans); font-size: 18px; font-weight: 500; }
.ib-demo__line { display: flex; justify-content: space-between; gap: 12px; color: var(--ib-text); }
.ib-demo__total { border-top: 1px solid var(--ib-border); padding-top: 14px; font-weight: 500; color: var(--ib-ink); }

/* Каталог */
#catalog .ib-chips { margin-bottom: 32px; }
.ib-card { background: var(--ib-bg); border-radius: 4px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.ib-card__img { position: relative; aspect-ratio: 1 / 1; }
.ib-card__img img { top: 8%; left: 8%; width: 84%; height: 84%; }
.ib-card__ph { position: absolute; top: 8%; left: 8%; width: 84%; height: 84%; border: 1px dashed var(--ib-border); border-radius: 2px; display: flex; align-items: center; justify-content: center; color: var(--ib-faint); font-size: 13px; }
.ib-tag { position: absolute; top: 0; left: 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: var(--ib-line); color: var(--ib-ink); }
.ib-tag.is-pro { background: var(--ib-dark); color: var(--ib-light); }
.ib-card__brand { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ib-muted); }
.ib-card__name { font-size: 15px; line-height: 1.4; min-height: 42px; }
.ib-card__foot { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--ib-text); border-top: 1px solid var(--ib-line); padding-top: 14px; }
body.ib .ib-card__foot a { text-decoration: underline; color: var(--ib-text); }
.ib-lock { display: flex; align-items: center; gap: 8px; }

/* Обучение */
.ib-grid--events { grid-template-columns: repeat(4, 1fr); }
.ib-event { border: 1px solid var(--ib-line); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.ib-event__img { display: block; width: 100%; height: auto; aspect-ratio: 900 / 560; object-fit: cover; }
.ib-event__body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.ib-event__date { font-size: 13px; }
.ib-event__brand { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
body.ib .ib-event h3 { margin: 0; font-size: 19px; font-weight: 400; line-height: 1.35; }
.ib-event__text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ib-muted, #6b6b66); flex: 1; }
@media (max-width: 1100px) { .ib-grid--events { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ib-grid--events { grid-template-columns: 1fr; } }

/* Найти салон, регистрация */
.ib-split { display: flex; flex-wrap: wrap; gap: 48px 56px; align-items: flex-start; }
.ib-dark .ib-split { align-items: center; }
.ib-split__copy { flex: 1 1 380px; display: flex; flex-direction: column; gap: 20px; }
.ib-split__copy p { margin: 0; font-size: 16px; line-height: 1.6; }
.ib-dark .ib-split__copy p { color: #D9DCD6; }
.ib-map { flex: 1 1 520px; min-height: 320px; border: 1px dashed #7D8A82; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #C9CEC6; font-size: 14px; text-align: center; padding: 24px; box-sizing: border-box; }
.ib-ticks { margin: 0; padding: 0 0 0 18px; font-size: 15px; line-height: 1.9; color: var(--ib-text); }
.ib-contacts { font-size: 15px; line-height: 1.8; }

/* Подвал */
/* stylesheet.css ядра прижимает footer к низу (position: absolute) — у нас обычный поток */
body.ib footer.ib-footer { position: static; bottom: auto; width: auto; padding: 0; margin: 0; border: 0; border-top: 1px solid var(--ib-line); background: var(--ib-band); color: var(--ib-text); }
body.ib { padding-bottom: 0 !important; }
.ib-footer__in { max-width: var(--ib-wrap); margin: 0 auto; padding: 56px 24px 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; font-size: 14px; line-height: 1.8; color: var(--ib-text); }
.ib-footer__col { display: flex; flex-direction: column; }
.ib-footer__col:first-child { gap: 8px; }
.ib-footer__h { color: var(--ib-ink); font-weight: 500; }
body.ib .ib-footer a { color: var(--ib-text); }
.ib-footer__bottom { max-width: var(--ib-wrap); margin: 0 auto; padding: 0 24px 32px; font-size: 12px; color: var(--ib-muted); }

/* Кнопки ядра: светлый текст на тёмной кнопке; сравнение товаров салонам не нужно */
body.ib a.btn-primary, body.ib a.btn-primary:hover { color: #fff; }
body.ib #compare-total, body.ib .product-thumb [formaction*="compare"], body.ib #form-product [formaction*="compare"] { display: none !important; }

/* Гость: без корзины и избранного в карточках и на странице товара (цены видны только после входа) */
body.ib-guest .product-thumb button, body.ib-guest #button-cart, body.ib-guest #form-product .input-group,
body.ib-guest #form-product [name="quantity"], body.ib-guest #form-product label[for="input-quantity"] { display: none !important; }
.ib-guest-note { border: 1px solid var(--ib-line); border-radius: 4px; padding: 16px; margin: 16px 0; font-size: 14px; color: var(--ib-text); background: var(--ib-band); }
body.ib .ib-guest-note a { text-decoration: underline; }
#form-product:has(.ib-no-price) #button-cart, #form-product:has(.ib-no-price) .input-group { display: none; }

/* Телефон и планшет */
@media (max-width: 1100px) {
  .ib-header__in { flex-wrap: wrap; }
  .ib-burger { display: inline-flex; }
  .ib-nav { display: none; order: 3; flex-basis: 100%; flex-direction: column; gap: 0; justify-content: flex-start; }
  .ib-nav.is-open { display: flex; }
  .ib-nav a { padding: 12px 0; border-top: 1px solid var(--ib-line); }
  .ib-actions { order: 2; }
}
@media (max-width: 640px) {
  .ib-wrap, .ib-header__in { padding-left: 16px; padding-right: 16px; }
  .ib-section { padding-top: 64px; padding-bottom: 64px; }
  .ib-band, .ib-dark { padding: 64px 0; }
  .ib-hero { padding-top: 40px; padding-bottom: 56px; gap: 40px; }
  .ib-hero__copy, .ib-hero__grid, .ib-split__copy, .ib-map, .ib-demo__list, .ib-demo__sum { flex-basis: 100%; }
  .ib-portal span { display: none; }
  .ib-portal { padding: 10px 12px; }
  .ib-logo { font-size: 22px; }
  .ib-demo { padding: 16px; }
  .ib-demo__list { padding: 4px 14px; }
  .ib-grid--products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ib-card { padding: 12px; }
}

/* Каталог: страница бренда, линейки, «для салонов / домой» (22.11.2026) */
.ib-cat { padding-top: 24px; padding-bottom: 72px; }
.ib-bphero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; margin: 8px 0 48px; }
.ib-bphero__img { position: relative; aspect-ratio: 1 / 1; background: var(--ib-band); border-radius: 4px; overflow: hidden; }
.ib-bphero__img img { position: absolute; top: 10%; left: 10%; width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; }
.ib-bphero__copy { display: flex; flex-direction: column; gap: 16px; }
.ib-bp { display: flex; flex-direction: column; gap: 16px; }
.ib-bp p { margin: 0; }
.ib-bp__eyebrow { order: -1; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ib-muted); }
.ib-bphero__copy .ib-bp__eyebrow { order: 0; }
.ib-bp__title { font-family: var(--ib-display); font-weight: 300; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; color: var(--ib-ink); }
.ib-bp__lead { font-size: 16px; line-height: 1.7; color: var(--ib-text); max-width: 640px; }
.ib-bp__facts { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--ib-line); max-width: 640px; }
.ib-bp__facts li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--ib-line); font-size: 14px; color: var(--ib-text); position: relative; }
.ib-bp__facts li::before { content: "—"; position: absolute; left: 0; color: var(--ib-muted); }
.ib-cat__head { display: flex; flex-direction: column; gap: 12px; margin: 8px 0 32px; }
body.ib .ib-cat__brand { font-size: 13px; color: var(--ib-muted); letter-spacing: .04em; }
.ib-cat__desc { max-width: 720px; color: var(--ib-text); line-height: 1.7; }
.ib-cat__lines { margin-bottom: 16px; }
.ib-cat__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; margin-bottom: 24px; border-top: 1px solid var(--ib-line); border-bottom: 1px solid var(--ib-line); }
.ib-cat__sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ib-muted); }
.ib-cat__sort .form-select { width: auto; min-width: 200px; }
.ib-cat__pages { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; font-size: 14px; color: var(--ib-muted); }
.ib-cat__empty { color: var(--ib-muted); padding: 32px 0; }
.ib-cat__types { margin-top: 64px; }
body.ib .ib-cat__h { font-size: 24px; margin: 0 0 16px; }
.ib-brand--page { background: var(--ib-band); }
body.ib a.ib-brand__name { color: var(--ib-ink); }
@media (max-width: 900px) {
  .ib-bphero { grid-template-columns: 1fr; gap: 24px; }
  .ib-bphero__img { max-width: 360px; }
}
@media (max-width: 640px) {
  .ib-cat__lines { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; margin-right: -16px; }
  .ib-cat__lines .ib-chip { white-space: nowrap; flex-shrink: 0; }
  .ib-cat__sort { width: 100%; }
  .ib-cat__sort .form-select { flex: 1; min-width: 0; }
}
.ib-cat__pages > div { min-width: 0; max-width: 100%; }
.ib-cat__pages .pagination { flex-wrap: wrap; margin: 0; }

/* Палитра оттенков */
.ib-swatches .product-thumb .description > p { display: none; }
.ib-swatches .product-thumb h4 { font-size: 13px; line-height: 1.35; }
.ib-swatches .product-thumb .button-group button { padding: 6px 4px; font-size: 13px; }
/* Длинные названия в «хлебных крошках» не должны расширять страницу на телефоне */
body.ib .breadcrumb { max-width: 100%; flex-wrap: wrap; overflow: hidden; }
body.ib .breadcrumb-item { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.ib-chip__n { color: var(--ib-faint); font-size: 12px; margin-left: 2px; }
@media (max-width: 640px) {
  .ib-cat__tones { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; width: calc(100% + 16px); margin-right: -16px; }
  .ib-cat__tones .ib-chip { white-space: nowrap; flex-shrink: 0; }
}
.ib-social { display: flex; gap: 14px; margin-top: 4px; }
body.ib .ib-social a { color: var(--ib-ink); display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border: 1px solid var(--ib-border); border-radius: 50%; }

/* Знак inbalans group и первый экран в фирменном зелёном (вариант B, 22.11.2026) */
.ib-logo { display: inline-flex; align-items: center; }
.ib-logo img { height: 46px; width: auto; display: block; }
.ib-footer__logo { width: 96px; height: auto; display: block; margin-bottom: 6px; }
body.ib-home .ib-announce { background: var(--ib-brand-deep); }
.ib-header--brand { background: var(--ib-brand); border-bottom-color: rgba(243, 241, 234, .14); }
.ib-header--brand .ib-logo img { filter: brightness(0) invert(1); }
body.ib .ib-header--brand a, .ib-header--brand .ib-burger, .ib-header--brand .ib-icon { color: var(--ib-light); }
body.ib .ib-header--brand .ib-langs a { color: rgba(243, 241, 234, .65); }
body.ib .ib-header--brand .ib-langs a.is-active { color: var(--ib-light); }
.ib-header--brand .ib-portal { border-color: var(--ib-light); }
.ib-header--brand .ib-cartlink__n { background: var(--ib-light); color: var(--ib-dark); }
.ib-header--brand .ib-nav a { border-top-color: rgba(243, 241, 234, .14); }
.ib-hero2 { background: var(--ib-brand); color: var(--ib-light); overflow: hidden; }
.ib-hero2__in { position: relative; padding-top: 88px; padding-bottom: 96px; }
.ib-hero2__mark { position: absolute; right: 2%; top: 50%; transform: translateY(-50%); width: min(420px, 38%); height: auto; opacity: .09; filter: brightness(0) invert(1); pointer-events: none; }
.ib-hero2__copy { position: relative; display: flex; flex-direction: column; gap: 28px; max-width: 860px; }
body.ib .ib-hero2 .ib-h1 { color: var(--ib-light); }
.ib-hero2 .ib-eyebrow { color: rgba(243, 241, 234, .72); }
.ib-hero2 .ib-lead { color: rgba(243, 241, 234, .86); max-width: 600px; }
body.ib .ib-hero2 .ib-btn--light { color: var(--ib-brand); }
body.ib .ib-hero2 .ib-btn--light:hover { background: #fff; color: var(--ib-brand); }
body.ib .ib-hero2 .ib-btn--olight:hover { background: var(--ib-light); color: var(--ib-brand); }
.ib-hero2__self { margin: 0; font-size: 14px; color: rgba(243, 241, 234, .72); }
body.ib .ib-hero2__self a { color: var(--ib-light); text-decoration: underline; text-underline-offset: 3px; }
.ib-strip { border-bottom: 1px solid var(--ib-line); background: var(--ib-bg); }
.ib-strip__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 36px; padding-top: 30px; padding-bottom: 30px; }
.ib-strip__lbl { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ib-muted); }
.ib-strip__logo { display: flex; align-items: center; opacity: .82; transition: opacity .2s; }
.ib-strip__logo:hover, .ib-strip__logo:focus-visible { opacity: 1; }
.ib-strip__logo img { height: 34px; width: auto; display: block; }
.ib-strip__logo--sr img { height: 40px; }
.ib-strip__logo--k18 img { height: 38px; }
.ib-brand__img--logo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: var(--ib-band); }
.ib-brand__img--logo img { position: static; width: auto; height: auto; max-width: 62%; max-height: 22%; object-fit: contain; mix-blend-mode: normal; }
@media (prefers-reduced-motion: reduce) { .ib-strip__logo { transition: none; } }
@media (max-width: 640px) {
  .ib-logo img { height: 36px; }
  .ib-hero2__in { padding-top: 48px; padding-bottom: 56px; }
  .ib-hero2__mark { width: 60%; right: -18%; opacity: .07; }
  .ib-strip__in { justify-content: flex-start; gap: 18px 28px; }
  .ib-strip__lbl { flex-basis: 100%; }
  .ib-strip__logo img { height: 26px; }
  .ib-strip__logo--sr img { height: 32px; }
  .ib-strip__logo--k18 img { height: 30px; }
}
body.ib h1, body.ib h2, body.ib .ib-h1, body.ib .ib-h2 { letter-spacing: -.02em; }
@media (max-width: 640px) {
  body.ib .ib-h1 { font-size: clamp(27px, 8.1vw, 38px); overflow-wrap: break-word; }
}

/* Корзина (22.11.2026) */
.ib-cartpage { padding-top: 24px; padding-bottom: 80px; }
.ib-cart { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.ib-cart__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.ib-cart__head .ib-h2 { margin: 0; }
.ib-cart__count { font-size: 14px; color: var(--ib-muted); }
.ib-cart__alert { border-radius: 4px; padding: 12px 16px; font-size: 14px; margin-bottom: 16px; background: var(--ib-band); border-left: 3px solid var(--ib-ok); }
.ib-cart__alert.is-warn { border-left-color: var(--ib-low); }
.ib-cart__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ib-line); }
.ib-cart__row { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto 110px; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--ib-line); }
.ib-cart__thumb { display: block; width: 88px; height: 88px; background: var(--ib-band); border-radius: 4px; overflow: hidden; }
.ib-cart__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; display: block; }
.ib-cart__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ib-cart__brand { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ib-muted); }
body.ib .ib-cart__name { color: var(--ib-ink); font-size: 15px; line-height: 1.4; }
.ib-cart__opt, .ib-cart__unit { font-size: 13px; color: var(--ib-muted); }
.ib-cart__opt.is-warn { color: var(--ib-low); }
.ib-cart__qty { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; }
.ib-qty { display: inline-flex; align-items: center; border: 1px solid var(--ib-border); border-radius: 999px; height: 40px; }
.ib-qty__btn { width: 36px; height: 38px; border: 0; background: none; font-size: 18px; color: var(--ib-ink); cursor: pointer; }
.ib-qty input { width: 44px; border: 0; background: none; text-align: center; font-size: 15px; -moz-appearance: textfield; }
.ib-qty input::-webkit-outer-spin-button, .ib-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
body.ib .ib-cart__remove { font-size: 12px; color: var(--ib-muted); text-decoration: underline; text-underline-offset: 2px; }
.ib-cart__total { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
body.ib .ib-cart__back { display: inline-flex; gap: 6px; margin-top: 20px; font-size: 14px; color: var(--ib-text); }
.ib-cart__side { position: sticky; top: 24px; background: var(--ib-band); border-radius: 6px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
body.ib .ib-cart__h { margin: 0; font-size: 22px; }
.ib-cart__sum { margin: 0; display: flex; flex-direction: column; }
.ib-cart__sum > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ib-line); font-size: 14px; }
.ib-cart__sum dt { font-weight: 400; color: var(--ib-text); }
.ib-cart__sum dd { margin: 0; font-variant-numeric: tabular-nums; }
.ib-cart__sum > div.is-total { font-size: 17px; font-weight: 600; border-bottom: 0; order: 9; }
.ib-cart__sum > div.is-total dt { color: var(--ib-ink); font-weight: 600; }
.ib-cart__min { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--ib-low); }
.ib-cart__min p { margin: 0; }
.ib-cart__bar { height: 6px; border-radius: 3px; background: var(--ib-line); overflow: hidden; }
.ib-cart__bar span { display: block; height: 100%; background: var(--ib-brand); }
body.ib .ib-btn.is-disabled { background: var(--ib-border); border-color: var(--ib-border); color: var(--ib-bg); cursor: not-allowed; }
.ib-cart__note { margin: 0; font-size: 13px; color: var(--ib-muted); line-height: 1.5; }
.ib-cart__empty { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: 32px 0 48px; }
@media (max-width: 900px) {
  .ib-cart { grid-template-columns: 1fr; }
  .ib-cart__side { position: static; }
}
@media (max-width: 640px) {
  .ib-cart__row { grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "thumb info" "thumb qty"; gap: 10px 14px; }
  .ib-cart__thumb { width: 64px; height: 64px; grid-area: thumb; }
  .ib-cart__info { grid-area: info; }
  .ib-cart__qty { grid-area: qty; flex-direction: row; justify-content: space-between; }
  .ib-cart__total { grid-column: 2; text-align: left; }
}

/* Первый экран, вариант A (24.11.2026): светлый, справа плитки брендов; шапка на главной светлая */
.ib-heroa { border-bottom: 1px solid var(--ib-line); }
.ib-heroa__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 80px; padding-bottom: 88px; }
.ib-heroa__copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
body.ib .ib-heroa .ib-h1 { font-size: clamp(34px, 4vw, 54px); line-height: 1.08; text-wrap: balance; }
.ib-heroa__self { margin: 0; font-size: 14px; color: var(--ib-muted); }
body.ib .ib-heroa__self a { color: var(--ib-ink); text-decoration: underline; text-underline-offset: 3px; }
.ib-heroa__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body.ib .ib-heroa__tile { background: #fff; border: 1px solid var(--ib-line); border-radius: 6px; padding: 26px 20px 14px; display: flex; flex-direction: column; gap: 16px; min-height: 180px; box-sizing: border-box; transition: border-color .2s; }
body.ib .ib-heroa__tile:hover, body.ib .ib-heroa__tile:focus-visible { border-color: var(--ib-ink); }
.ib-heroa__logos { flex: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; }
.ib-heroa__logos img { display: block; width: auto; height: 34px; max-width: 100%; object-fit: contain; }
.ib-heroa__logos--cz img:first-child { height: 26px; }
.ib-heroa__logos--cz img + img { height: 32px; }
.ib-heroa__logos--k18 img { height: 40px; }
.ib-heroa__meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ib-muted); border-top: 1px solid var(--ib-line); padding-top: 10px; }
@media (prefers-reduced-motion: reduce) { body.ib .ib-heroa__tile { transition: none; } }
@media (max-width: 960px) {
  .ib-heroa__in { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; padding-bottom: 64px; }
}
@media (max-width: 640px) {
  .ib-heroa__in { padding-top: 40px; padding-bottom: 48px; gap: 32px; }
  .ib-heroa__grid { gap: 10px; }
  body.ib .ib-heroa__tile { min-height: 132px; padding: 18px 12px 10px; gap: 12px; }
  .ib-heroa__logos img { height: 24px; }
  .ib-heroa__logos--cz img:first-child { height: 18px; }
  .ib-heroa__logos--cz img + img { height: 24px; }
  .ib-heroa__logos--k18 img { height: 30px; }
  .ib-heroa__meta { font-size: 12px; }
}

/* Первый экран, вариант C (24.11.2026): заголовок и четыре колонки брендов; блок «Полные каталоги брендов» в этом варианте не выводится */
.ib-heroc { border-bottom: 1px solid var(--ib-line); }
.ib-heroc__in { display: flex; flex-direction: column; gap: 40px; padding-top: 72px; padding-bottom: 56px; }
.ib-heroc__top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: end; }
body.ib .ib-heroc .ib-h1 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.06; text-wrap: balance; }
.ib-heroc__right { display: flex; flex-direction: column; gap: 20px; }
.ib-heroc__right .ib-lead { font-size: 17px; }
.ib-heroc__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ib-heroc__col { background: var(--ib-band); border-radius: 6px; padding: 28px 22px 16px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ib-heroc__logos { height: 76px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; }
.ib-heroc__logos img { display: block; width: auto; height: 32px; max-width: 100%; object-fit: contain; object-position: left center; }
.ib-heroc__logos--cz img:first-child { height: 26px; }
.ib-heroc__logos--cz img + img { height: 30px; }
.ib-heroc__logos--k18 img { height: 40px; }
.ib-heroc__col p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ib-text); flex: 1; }
.ib-heroc__links { display: flex; flex-direction: column; border-top: 1px solid var(--ib-line); font-size: 14px; }
body.ib .ib-heroc__links a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--ib-line); }
body.ib .ib-heroc__links a:last-child { border-bottom: 0; }
.ib-heroc__links a span:last-child { color: var(--ib-muted); }
body.ib .ib-heroc__links a:hover span:first-child { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1100px) { .ib-heroc__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .ib-heroc__top { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 640px) {
  .ib-heroc__in { padding-top: 40px; padding-bottom: 40px; gap: 28px; }
  .ib-heroc__cols { grid-template-columns: 1fr; gap: 10px; }
  .ib-heroc__col { padding: 20px 18px 8px; gap: 12px; }
  .ib-heroc__logos { height: auto; flex-direction: row; justify-content: flex-start; align-items: center; gap: 14px; }
  .ib-heroc__logos img { height: 26px; }
  .ib-heroc__logos--cz img:first-child { height: 20px; }
  .ib-heroc__logos--cz img + img { height: 26px; }
  .ib-heroc__logos--k18 img { height: 32px; }
}

/* Формы: подсказки под полями, «глазик» пароля (24.11.2026) */
.ib-hint { font-size: 13px; color: var(--ib-muted); margin-top: 6px; }
.ib-hint--typo { color: var(--ib-low); }
body.ib .ib-linkbtn { background: none; border: 0; padding: 0; color: var(--ib-ink); text-decoration: underline; text-underline-offset: 2px; font: inherit; cursor: pointer; }
.ib-pass { position: relative; }
body.ib .ib-pass .form-control { padding-right: 48px; }
body.ib .ib-pass .form-control.is-invalid { background-position: right 44px center; }
.ib-pass__eye { position: absolute; top: 0; right: 0; height: 100%; min-height: 38px; width: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--ib-muted); cursor: pointer; }
.ib-pass__eye:hover, .ib-pass__eye:focus-visible { color: var(--ib-ink); }
.ib-pass__eye:focus-visible { outline: 2px solid var(--ib-ink); outline-offset: -4px; border-radius: 4px; }
.ib-pass:has(.is-invalid) + .invalid-feedback { display: block; }

/* Корзина: заказ (на складе) и заявка на поставку (24.11.2026) */
body.ib .ib-cart__block { font-family: var(--ib-sans); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ib-muted); margin: 8px 0 10px; }
.ib-cart__req { margin-top: 32px; background: var(--ib-band); border-radius: 6px; padding: 20px 20px 16px; }
.ib-cart__req .ib-cart__list { border-top-color: var(--ib-border); }
.ib-cart__req .ib-cart__row { border-bottom-color: var(--ib-border); }
.ib-cart__req-note { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: var(--ib-text); }
.ib-cart__req-send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 16px 0 0; }
.ib-cart__req-send .ib-cart__note { flex: 1 1 220px; }
.ib-cart__total--req { color: var(--ib-muted); font-weight: 400; }
.ib-cart__row--rest { grid-template-columns: 48px minmax(0, 1fr) auto; }
.ib-cart__thumb--sm { width: 48px; height: 48px; }
.ib-cart__side form { margin: 0; }
.ib-stock-note { display: block; margin-top: 4px; font-size: 13px; color: var(--ib-muted); line-height: 1.45; }
@media (max-width: 760px) {
  .ib-cart__row--rest { grid-template-columns: 48px minmax(0, 1fr); grid-template-areas: none; }
  .ib-cart__row--rest .ib-cart__thumb--sm { grid-area: auto; width: 48px; height: 48px; }
  .ib-cart__row--rest .ib-cart__total { grid-column: 2; }
  .ib-cart__req { padding: 16px 14px 12px; }
}

/* «Найти салон»: страница и карта партнёров (24.11.2026) */
.ib-map--live { border: 0; padding: 0; display: block; min-height: 360px; background: #e8ebe6; overflow: hidden; z-index: 0; }
.ib-salons { padding-top: 24px; padding-bottom: 80px; }
.ib-salons .ib-lead { margin: 12px 0 24px; }
.ib-salons__filter { margin-bottom: 24px; }
.ib-salons__filter .ib-chip { cursor: pointer; font: inherit; }
.ib-salons__filter .ib-chip span { opacity: .6; margin-left: 4px; }
.ib-salons__grid { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 24px; align-items: start; }
.ib-salons__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ib-line); max-height: 640px; overflow-y: auto; }
.ib-salon { display: flex; flex-direction: column; gap: 4px; padding: 16px 4px 16px 0; border-bottom: 1px solid var(--ib-line); }
.ib-salon[hidden] { display: none; }
.ib-salon__type { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ib-muted); }
body.ib .ib-salon__name { background: none; border: 0; padding: 0; text-align: left; font: 500 17px/1.35 var(--ib-sans); color: var(--ib-ink); cursor: pointer; }
body.ib .ib-salon__name:hover, body.ib .ib-salon__name:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.ib-salon__addr { font-size: 14px; color: var(--ib-text); }
.ib-salon__links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
body.ib .ib-salon__links a { color: var(--ib-ink); text-decoration: underline; text-underline-offset: 2px; }
.ib-salons__map { position: sticky; top: 16px; height: 640px; border-radius: 6px; overflow: hidden; background: #e8ebe6; z-index: 0; }
.ib-salons__join { margin: 32px 0 0; font-size: 15px; color: var(--ib-text); }
body.ib .ib-salons__join a { text-decoration: underline; }
body.ib .leaflet-popup-content { font: 14px/1.5 var(--ib-sans); color: var(--ib-ink); }
body.ib .leaflet-popup-content a { color: var(--ib-ink); text-decoration: underline; }
@media (max-width: 900px) {
  .ib-salons__grid { grid-template-columns: 1fr; }
  .ib-salons__map { position: static; height: 360px; order: -1; }
  .ib-salons__list { max-height: none; }
}
