/* =====================================================================
   OLIVIN.KZ — дизайн-система витрины (2026).
   Белый фон, светло-серые карточки с крупным скруглением, без рамок и теней,
   один фирменный лаймовый акцент OLIVIN, Montserrat 400–800, линейные иконки Lucide.
   Стиль — по мотивам oasiscatalog.com + дизайн-промпта eDrive. Цвета — только через переменные.
   Префикс классов .o- — чтобы не пересекаться с Bootstrap (оставлен для сетки, модалок, вкладок).
   ===================================================================== */

/* ---------- Токены ---------- */
:root {
  color-scheme: only light;
  --brand: #9BCB2C;          /* фирменный зелёный OLIVIN: кнопки, активные состояния */
  --brand-hover: #8DBD1F;
  --brand-strong: #587F0B;   /* ссылки и текст на мягко-зелёном — контрастный */
  --brand-soft: #EFF7DC;     /* мягкая подложка: чипы, активные вкладки */
  --on-brand: #14200A;       /* текст на зелёной кнопке — тёмный, читается лучше белого */
  --bg: #FFFFFF;
  --surface: #F3F4F2;        /* карточки, поля ввода */
  --surface-2: #FFFFFF;      /* карточка в карточке, плитки иконок */
  --surface-press: #E8EAE6;
  --text: #151714;
  --text-2: #5C625D;
  --text-3: #8A908B;
  --line: #E4E6E3;
  --danger: #D6342C; --danger-soft: #FDECEB; --warning: #E6761B; --info: #0D6EFD;
  --shadow: 0 8px 28px rgba(20, 22, 20, .12);
  --scrim: rgba(10, 12, 10, .4);

  --r-card: 28px; --r-inner: 18px; --r-ctl: 18px; --r-pill: 999px;
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1360px;
  --gutter: clamp(16px, 3vw, 48px);
  --header-h: 76px;
  --topbar-h: 38px; /* верхняя строка (город, ссылки, язык, телефон) — закреплена над шапкой */

  --tap-hover: color-mix(in srgb, var(--text) 5%, transparent);
  --tap-press: color-mix(in srgb, var(--text) 11%, transparent);

  --bs-body-font-family: var(--font);
  --bs-body-color: var(--text);
  --bs-link-color: var(--brand-strong);
  --bs-link-hover-color: var(--text);
  --bs-border-color: var(--line);
  --bs-primary: var(--brand);
  --bs-primary-rgb: 155, 203, 44;
}

/* ---------- База ---------- */
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 16px; line-height: 1.45; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body.is-locked { overflow: hidden; }
a { color: var(--brand-strong); text-decoration: none; }
a:hover { color: var(--text); }
h1, h2, h3, h4, .o-h1, .o-h2, .o-h3 { font-family: var(--font); color: var(--text); line-height: 1.2; margin: 0; }
h1, .o-h1 { font-size: clamp(26px, 2.2vw, 36px); font-weight: 800; letter-spacing: -.02em; }
h2, .o-h2 { font-size: clamp(20px, 1.6vw, 28px); font-weight: 800; letter-spacing: -.015em; }
h3, .o-h3 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 1em; }
img { max-width: 100%; }
svg.o-i { width: 1.25em; height: 1.25em; flex: 0 0 auto; vertical-align: -.25em; stroke-width: 2; }
.o-muted { color: var(--text-2); }
.o-small { font-size: 13px; }
.o-nowrap { white-space: nowrap; }
.visually-hidden-focusable:focus { position: static !important; }
::selection { background: var(--brand-soft); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 70%, transparent); outline-offset: 2px; }

.o-wrap { max-width: 2400px; /* все страницы резиновые, предел — для сверхшироких мониторов */ margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.o-wrap--fluid { max-width: 2400px; }
.o-main { padding-bottom: clamp(48px, 5vw, 96px); min-height: 50vh; }

/* Отклик на нажатие (внутренняя тень, не фон) */
.tap { position: relative; cursor: pointer; transition: background-color .15s, transform .15s, box-shadow .15s, color .15s; }
@media (hover: hover) { .tap:hover { box-shadow: inset 0 0 0 999px var(--tap-hover); } }
.tap:active { box-shadow: inset 0 0 0 999px var(--tap-press); transform: scale(.985); }

/* ---------- Кнопки ---------- */
.o-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border: 0; border-radius: 20px; font: 700 16px/1.2 var(--font); text-align: center; cursor: pointer; text-decoration: none; transition: background-color .15s, transform .15s, box-shadow .15s, color .15s, opacity .15s; white-space: nowrap; }
.o-btn:active { transform: scale(.985); }
.o-btn:disabled, .o-btn.is-disabled { opacity: .45; pointer-events: none; }
.o-btn--primary { background: var(--brand); color: var(--on-brand); }
.o-btn--primary:hover { background: var(--brand-hover); color: var(--on-brand); }
.o-btn--secondary { background: var(--surface); color: var(--text); }
.o-btn--secondary:hover { background: var(--surface-press); color: var(--text); }
.o-btn--dark { background: var(--text); color: var(--bg); }
.o-btn--dark:hover { background: #2B2E2B; color: var(--bg); }
.o-btn--danger { background: var(--danger-soft); color: var(--danger); }
.o-btn--text { min-height: 44px; padding: 0 6px; background: none; color: var(--brand-strong); }
.o-btn--text:hover { color: var(--text); }
.o-btn--sm { min-height: 44px; padding: 0 18px; border-radius: 14px; font-size: 15px; }
.o-btn--xs { min-height: 36px; padding: 0 14px; border-radius: 12px; font-size: 14px; }
.o-btn--block { display: flex; width: 100%; }
.o-btn--icon { width: 44px; min-height: 44px; padding: 0; border-radius: 14px; }
.o-btn.is-done { background: var(--brand-soft); color: var(--brand-strong); }

.o-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand-strong); }
.o-link:hover { color: var(--text); }
.o-link .o-i { transition: transform .15s; }
.o-link:hover .o-i { transform: translateX(3px); }

/* ---------- Формы ---------- */
.o-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.o-label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.o-label .req { color: var(--danger); }
.o-input, .o-select, .o-textarea { width: 100%; min-height: 58px; padding: 0 20px; border: 2px solid transparent; border-radius: 20px; background: var(--surface); color: var(--text); font: 600 17px/1.3 var(--font); transition: border-color .15s, background-color .15s; appearance: none; }
.o-textarea { min-height: 120px; padding: 16px 20px; resize: vertical; font-weight: 500; font-size: 16px; }
.o-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%238A908B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 48px; }
.o-input::placeholder, .o-textarea::placeholder { color: var(--text-3); font-weight: 500; }
.o-input:focus, .o-select:focus, .o-textarea:focus { outline: none; border-color: var(--brand); background: var(--surface-2); }
.o-input.is-invalid, .o-textarea.is-invalid, .o-select.is-invalid { border-color: var(--danger); }
.o-input--sm { min-height: 48px; border-radius: 16px; font-size: 15px; padding: 0 16px; }
.o-hint { font-size: 13px; color: var(--text-3); line-height: 1.35; }
.o-error { font-size: 13px; color: var(--danger); }
.o-alert { padding: 14px 18px; border-radius: var(--r-inner); font-size: 15px; line-height: 1.4; margin-bottom: 16px; }
.o-alert--danger { background: var(--danger-soft); color: var(--danger); }
.o-alert--ok { background: var(--brand-soft); color: var(--brand-strong); }
.o-alert ul { margin: 6px 0 0; padding-left: 18px; }
.o-alert--warn { background: #FFF6EA; color: #8A4B0B; }
.o-alert--info { background: var(--surface); color: var(--text-2); }
.o-notice { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 0; font-size: 14px; }
.o-notice .o-i { flex: 0 0 auto; margin-top: .15em; }
.o-pass { position: relative; }
.o-pass .o-input { padding-right: 56px; }
.o-pass__btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 14px; background: none; color: var(--text-3); display: flex; align-items: center; justify-content: center; }
.o-pass__btn:hover { color: var(--text); }
.o-pass__btn .is-open { display: none; }
.o-pass__btn.is-on .is-open { display: block; }
.o-pass__btn.is-on .is-closed { display: none; }

.o-check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 14px; line-height: 1.4; color: var(--text-2); }
.o-check input { appearance: none; flex: 0 0 24px; width: 24px; height: 24px; margin: 0; border: 2px solid var(--line); border-radius: 8px; background: var(--surface-2); cursor: pointer; transition: .15s; }
.o-check input:checked { background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314200A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/16px no-repeat; border-color: var(--brand); }
.o-check input.is-invalid { border-color: var(--danger); }
.o-check a { color: var(--brand-strong); font-weight: 600; }

/* Выбор-строка (радио как пункт списка) */
.o-options { background: var(--surface); border-radius: var(--r-card); padding: 6px 20px; }
.o-option { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; }
.o-option:first-child { border-top: 0; }
.o-option input { position: absolute; opacity: 0; pointer-events: none; }
.o-option__radio { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface-2); transition: .15s; }
.o-option input:checked ~ .o-option__radio { border-color: var(--brand); box-shadow: inset 0 0 0 4px var(--surface-2), inset 0 0 0 12px var(--brand); }
.o-option input:focus-visible ~ .o-option__radio { outline: 3px solid color-mix(in srgb, var(--brand) 60%, transparent); outline-offset: 2px; }
.o-option__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.o-option__title { font-weight: 700; }
.o-option__desc { font-size: 13px; color: var(--text-2); line-height: 1.35; }
.o-option__side { font-weight: 700; white-space: nowrap; }

/* Сегментированный переключатель */
.o-segment { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: var(--surface); gap: 4px; flex-wrap: wrap; }
.o-segment label { position: relative; }
.o-segment input { position: absolute; opacity: 0; }
.o-segment span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: var(--r-pill); font-weight: 600; font-size: 15px; color: var(--text-2); cursor: pointer; transition: .15s; }
.o-segment input:checked + span { background: var(--surface-2); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.o-segment input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 60%, transparent); }

/* ---------- Чипы и бейджи ---------- */
.o-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--r-pill); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 500; line-height: 1.3; white-space: nowrap; }
a.o-chip:hover { background: var(--surface-press); color: var(--text); }
.o-chip--brand { background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; }
.o-chip--sale { background: var(--danger); color: #fff; font-weight: 700; }
.o-chip--hit { background: var(--warning); color: #fff; font-weight: 700; }
.o-chip--new { background: var(--brand); color: var(--on-brand); font-weight: 700; }
.o-chip--dark { background: var(--text); color: var(--bg); font-weight: 600; }
.o-chip.is-active { background: var(--text); color: var(--bg); }
.o-chip small { color: var(--text-3); font-weight: 600; }
.o-chip.is-active small { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.o-badge { position: absolute; top: -6px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--brand); color: var(--on-brand); border: 2px solid var(--bg); font-size: 11px; font-weight: 800; line-height: 16px; text-align: center; }
.o-badge.is-zero { display: none; }
.o-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill); font-size: 13px; font-weight: 700; background: var(--surface); color: var(--text-2); }
.o-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.o-status--new { background: var(--brand-soft); color: var(--brand-strong); }
.o-status--progress { background: #E7F0FF; color: var(--info); }
.o-status--wait { background: #FFF1E3; color: var(--warning); }
.o-status--done { background: var(--surface); color: var(--text); }
.o-status--cancel { background: var(--danger-soft); color: var(--danger); }

/* ---------- Карточки и списки ---------- */
.o-card { background: var(--surface); border-radius: var(--r-card); padding: clamp(18px, 2vw, 28px); }
.o-card--white { background: var(--surface-2); }
.o-card + .o-card { margin-top: 16px; }
.o-card__title { margin: 0 0 14px; font-size: 20px; font-weight: 800; }
.o-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.o-card__head .o-card__title { margin: 0; }
.o-section-title { margin: 22px 8px 10px; font-size: 15px; font-weight: 700; color: var(--text-2); }
.o-rows { list-style: none; margin: 0; padding: 0; }
.o-rows.o-card { padding: 6px clamp(18px, 2vw, 24px); } /* список внутри карточки: отступы карточки, а не 0 от .o-rows */
.o-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--text); }
.o-row:first-child { border-top: 0; }
a.o-row { text-decoration: none; }
a.o-row:hover { color: var(--text); }
a.o-row:hover .o-row__title { color: var(--brand-strong); }
.o-row__icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 13px; background: var(--surface-2); color: var(--text); display: flex; align-items: center; justify-content: center; }
.o-row__icon--brand { background: var(--brand-soft); color: var(--brand-strong); }
.o-row__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.o-row__title { font-weight: 700; line-height: 1.3; transition: color .15s; }
.o-row__desc { font-size: 13px; color: var(--text-2); line-height: 1.35; }
.o-row__side { flex: 0 0 auto; color: var(--text-3); font-weight: 600; }
.o-dl { list-style: none; margin: 0; padding: 0; }
.o-dl li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.o-dl li:first-child { border-top: 0; }
.o-dl li > span:first-child { color: var(--text-2); }
.o-dl li > span:last-child { text-align: right; font-weight: 600; }
.o-empty { background: var(--surface); border-radius: var(--r-card); padding: clamp(32px, 5vw, 64px) 24px; text-align: center; }
.o-empty__icon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 22px; background: var(--surface-2); color: var(--brand-strong); display: flex; align-items: center; justify-content: center; }
.o-empty__icon .o-i { width: 32px; height: 32px; }
.o-empty h2 { font-size: 22px; margin-bottom: 8px; }
.o-empty p { color: var(--text-2); max-width: 480px; margin: 0 auto 22px; }

/* ---------- Шапка ---------- */
.o-topbar { position: sticky; top: 0; z-index: 1031; background: var(--surface); font-size: 13px; color: var(--text-2); }
.o-topbar__inner { display: flex; align-items: center; gap: 22px; height: var(--topbar-h); }
.o-topbar a { color: var(--text-2); font-weight: 500; }
.o-topbar a:hover, .o-topbar a.is-active { color: var(--text); }
.o-topbar__city { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text); }
.o-topbar__nav { display: flex; gap: 20px; flex-wrap: wrap; }
.o-topbar__side { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.o-topbar__phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text) !important; }

.o-header { position: sticky; top: var(--topbar-h); z-index: 1030; background: var(--bg); transition: box-shadow .2s; }
.o-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(20, 22, 20, .05); }
.o-header__inner { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 24px); min-height: var(--header-h); }
.o-logo { flex: 0 0 auto; display: block; }
.o-logo img { display: block; width: 132px; height: auto; }
.o-catalog-btn { flex: 0 0 auto; }
.o-catalog-btn .is-open { display: none; }
.o-catalog-btn[aria-expanded="true"] .is-open { display: block; }
.o-catalog-btn[aria-expanded="true"] .is-closed { display: none; }
.o-search { position: relative; flex: 1 1 auto; min-width: 0; }
.o-search__form { position: relative; }
.o-search__input { width: 100%; height: 52px; padding: 0 56px 0 22px; border: 2px solid transparent; border-radius: 18px; background: var(--surface); font: 500 16px var(--font); color: var(--text); transition: .15s; }
.o-search__input::placeholder { color: var(--text-3); }
.o-search__input:focus { outline: none; border-color: var(--brand); background: var(--surface-2); }
.o-search__btn { position: absolute; right: 6px; top: 6px; width: 40px; height: 40px; border: 0; border-radius: 13px; background: var(--brand); color: var(--on-brand); display: flex; align-items: center; justify-content: center; }
.o-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 1060; max-height: min(70vh, 560px); overflow: auto; padding: 8px; border-radius: 22px; background: var(--bg); box-shadow: var(--shadow); }
.o-suggest:empty { display: none; }
.o-suggest__item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; color: var(--text); }
.o-suggest__item:hover { background: var(--surface); color: var(--text); }
.o-suggest__img { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 12px; background: var(--surface); object-fit: contain; }
.o-suggest__name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.o-suggest__meta { font-size: 13px; color: var(--text-2); }
.o-suggest__price { margin-left: auto; font-weight: 800; white-space: nowrap; }
.o-suggest__all { display: block; margin-top: 4px; padding: 12px; border-radius: 14px; background: var(--surface); text-align: center; font-weight: 700; }
.o-suggest__empty { padding: 18px; text-align: center; color: var(--text-2); }
.o-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; }
.o-action { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 64px; padding: 8px 6px; border: 0; border-radius: 16px; background: none; color: var(--text); font-size: 12px; font-weight: 600; line-height: 1; }
.o-action:hover { background: var(--surface); color: var(--text); }
.o-action__icon { position: relative; display: block; }
.o-action__icon .o-i { width: 24px; height: 24px; }
.o-burger { display: none; }

.o-qnav { border-bottom: 1px solid var(--line); background: var(--bg); }
.o-qnav__inner { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; min-height: 50px; }
.o-qnav__inner::-webkit-scrollbar { display: none; }
.o-qnav a { flex: 0 0 auto; padding: 7px 12px; border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.o-qnav a:hover, .o-qnav a.is-active { background: var(--surface); color: var(--text); }
.o-qnav a.is-strong { font-weight: 700; color: var(--text); }
.o-qnav a.is-sale { color: var(--danger); font-weight: 700; }
.o-qnav a.is-active { background: var(--brand-soft); color: var(--brand-strong); }
.o-qnav a.is-sale.is-active { background: var(--danger-soft); color: var(--danger); }
.o-qnav__sep { flex: 0 0 1px; height: 20px; margin: 0 8px; background: var(--line); }

/* Горизонтальная лента со стрелками и перетаскиванием мышью (data-hscroll, app.js).
   Стрелка видна только если в эту сторону есть куда листать; под ней — белый градиент поверх крайних пунктов. */
.o-hscroll { position: relative; }
.o-hscroll.is-scrollable [data-hscroll-track] { cursor: grab; }
.o-hscroll.is-dragging [data-hscroll-track] { cursor: grabbing; user-select: none; }
.o-hscroll.is-dragging [data-hscroll-track] a { pointer-events: none; }
.o-hscroll__arrow { position: absolute; z-index: 2; top: 0; bottom: 0; display: flex; align-items: center; width: 72px; padding: 0; border: 0; background: transparent; color: var(--text); opacity: 0; visibility: hidden; transition: opacity .18s, visibility .18s; }
.o-hscroll__arrow--prev { left: 0; justify-content: flex-start; background: linear-gradient(90deg, var(--bg) 45%, transparent); }
.o-hscroll__arrow--next { right: 0; justify-content: flex-end; background: linear-gradient(270deg, var(--bg) 45%, transparent); }
.o-hscroll__arrow .o-i { width: 22px; height: 22px; stroke-width: 2.4; transition: color .15s, transform .15s; }
.o-hscroll__arrow:hover .o-i { color: var(--brand-strong); }
.o-hscroll__arrow--prev:hover .o-i { transform: translateX(-2px); }
.o-hscroll__arrow--next:hover .o-i { transform: translateX(2px); }
.o-hscroll.can-prev .o-hscroll__arrow--prev, .o-hscroll.can-next .o-hscroll__arrow--next { opacity: 1; visibility: visible; }

/* Мега-меню */
.o-mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 1025; background: var(--bg); box-shadow: 0 24px 40px rgba(20, 22, 20, .12); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; max-height: calc(100vh - 140px); overflow: auto; }
.o-mega.is-open { opacity: 1; visibility: visible; transform: none; }
.o-mega__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 24px; padding: 28px 0 36px; }
.o-mega__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; color: var(--text); font-weight: 700; font-size: 16px; }
.o-mega__head:hover { color: var(--brand-strong); }
.o-mega__icon { flex: 0 0 44px; height: 44px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-strong); display: flex; align-items: center; justify-content: center; }
.o-mega__head small { display: block; font-size: 12px; font-weight: 600; color: var(--text-3); }
.o-mega ul { list-style: none; margin: 0; padding: 0 0 0 56px; display: grid; gap: 7px; }
.o-mega ul a { font-size: 15px; color: var(--text-2); }
.o-mega ul a:hover { color: var(--text); }
/* Вкладки каталогов в меню «Каталог» (Oasis / Artegifts) */
.o-mega__tabs { display: flex; gap: 14px; padding-top: 22px; overflow-x: auto; scrollbar-width: none; }
.o-mega__tabs button { flex: 0 0 auto; padding: 10px 18px; border: 0; border-radius: var(--r-pill); background: var(--surface); color: var(--text-2); font: 600 15px var(--font); cursor: pointer; transition: background .15s, color .15s; }
.o-mega__tabs button:hover { background: var(--surface-press); color: var(--text); }
.o-mega__tabs button.is-active { background: var(--brand); color: var(--on-brand); }
/* Вкладки каталогов в мобильном меню */
.o-ctabs { display: flex; gap: 10px; margin: 4px 0 14px; overflow-x: auto; scrollbar-width: none; }
.o-ctabs button { flex: 1 1 0; padding: 11px 12px; border: 0; border-radius: var(--r-pill); background: var(--surface); color: var(--text-2); font: 600 14px var(--font); white-space: nowrap; cursor: pointer; }
.o-ctabs button.is-active { background: var(--brand); color: var(--on-brand); }
/* Кнопки внизу мобильного меню: подборка, WhatsApp, язык, вход */
.o-menu-actions { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.o-menu-actions .o-lang--menu { margin: 4px 0; padding: 4px 0; }
.o-mega__pane { position: relative; }
.o-mega__all { position: absolute; right: 0; top: -38px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--brand-strong); }
.o-mega__all .o-i { width: 16px; height: 16px; }
.o-mega__all:hover { color: var(--text); }
.o-scrim { position: fixed; inset: 0; z-index: 1020; background: var(--scrim); opacity: 0; visibility: hidden; transition: opacity .18s, visibility .18s; }
.o-scrim.is-open { opacity: 1; visibility: visible; }

/* ---------- Шторка (bottom sheet) и боковое меню ---------- */
.o-sheet { position: fixed; z-index: 1060; left: 0; right: 0; bottom: 0; max-height: 92vh; display: flex; flex-direction: column; background: var(--bg); border-radius: 32px 32px 0 0; box-shadow: var(--shadow); transform: translateY(105%); transition: transform .25s ease; padding-bottom: env(safe-area-inset-bottom); }
.o-sheet.is-open { transform: none; }
.o-sheet__grip { width: 44px; height: 5px; margin: 10px auto 4px; border-radius: 3px; background: var(--line); flex: 0 0 auto; }
.o-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 20px 10px; }
.o-sheet__title { font-size: 20px; font-weight: 800; }
.o-sheet__body { overflow: auto; padding: 4px 20px 20px; }
.o-sheet__foot { padding: 12px 20px 16px; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.o-sheet__foot > * { flex: 1 1 0; }
.o-close { width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--surface); color: var(--text); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.o-close:hover { background: var(--surface-press); }
@media (min-width: 768px) { .o-sheet--side { left: auto; top: 0; bottom: 0; width: 420px; max-height: none; border-radius: 32px 0 0 32px; transform: translateX(105%); } .o-sheet--side .o-sheet__grip { display: none; } }

/* Мобильное меню */
.o-menu-list { list-style: none; margin: 0 0 16px; padding: 6px 20px; background: var(--surface); border-radius: var(--r-card); }
.o-menu-list a { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--text); font-weight: 600; }
.o-menu-list li:first-child a { border-top: 0; }
.o-menu-list .o-row__icon { background: var(--surface-2); }

/* Нижняя навигация (≤ 991px) */
.o-tabbar { position: fixed; z-index: 1035; left: 0; right: 0; bottom: 0; display: none; height: calc(70px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--bg); border-top: 1px solid var(--line); }
.o-tabbar__inner { display: grid; grid-template-columns: repeat(5, 1fr); height: 70px; }
.o-tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; color: var(--text-3); font-size: 11px; font-weight: 600; }
.o-tab__pill { position: relative; display: flex; align-items: center; justify-content: center; width: 52px; height: 32px; border-radius: 16px; transition: background-color .15s; }
.o-tab__pill .o-i { width: 24px; height: 24px; }
.o-tab.is-active { color: var(--text); }
.o-tab.is-active .o-tab__pill { background: var(--brand-soft); color: var(--brand-strong); }
.o-tab--accent .o-tab__pill { width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow); }
.o-tab--accent.is-active .o-tab__pill { background: var(--brand); color: var(--on-brand); }
.o-tab .o-badge { top: -4px; right: 4px; }

/* ---------- Подвал ---------- */
.o-footer { margin-top: clamp(40px, 5vw, 80px); background: var(--surface); }
.o-footer__grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr) 1.2fr; gap: 32px; padding: clamp(40px, 4vw, 64px) 0 36px; }
.o-footer__about p { margin: 16px 0 20px; color: var(--text-2); font-size: 14px; max-width: 320px; }
.o-footer__title { margin: 0 0 14px; font-size: 15px; font-weight: 800; }
.o-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.o-footer__links a { color: var(--text-2); font-size: 14px; font-weight: 500; }
.o-footer__links a:hover { color: var(--text); }
.o-footer__phone { display: block; font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.o-footer__contacts { display: grid; gap: 8px; font-size: 14px; color: var(--text-2); }
.o-footer__contacts a { color: var(--text-2); }
.o-socials { display: flex; gap: 8px; }
.o-socials a { width: 44px; height: 44px; border-radius: 14px; background: var(--surface-2); color: var(--text); display: flex; align-items: center; justify-content: center; }
.o-socials a:hover { background: var(--brand); color: var(--on-brand); }
.o-footer__bottom { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; padding: 20px 0 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
.o-footer__bottom a { color: var(--text-3); }
.o-footer__bottom a:hover { color: var(--text); }
.o-footer__bottom .o-footer__copy { margin-right: auto; }

/* ---------- Заголовок страницы и крошки ---------- */
.o-crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 20px 0 12px; font-size: 13px; color: var(--text-3); }
.o-crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.o-crumbs li + li::before { content: "/"; color: var(--line); }
.o-crumbs a { color: var(--text-2); }
.o-crumbs a:hover { color: var(--text); }
.o-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(20px, 2vw, 32px); }
.o-page-head__sub { margin: 10px 0 0; color: var(--text-2); max-width: 760px; }
.o-page-head__sub--wide { max-width: none; } /* длинная подпись в одну строку на широком экране */
.o-count { font-size: .55em; font-weight: 600; color: var(--text-3); letter-spacing: 0; vertical-align: .35em; }

/* ---------- Карточка товара ---------- */
.o-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: clamp(12px, 1.4vw, 24px); }
.o-grid--4 { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
/* Сетка карточек: число колонок — от ширины области, где она стоит (рядом фильтр или нет), а не от экрана.
   Карточка не уже ~200px: 2 → 3 → 4 → 5 → 6 в ряд. o-grid--row — только один ряд (похожие товары) */
:where(:has(> .o-grid--4)) { container-type: inline-size; }
@media (max-width: 767.98px) { .o-grid--4 { --cols: 2; } } /* браузеры без контейнерных запросов */
@container (min-width: 0) { .o-grid--4 { --cols: 2; } }
@container (min-width: 560px) { .o-grid--4 { --cols: 3; } }
@container (min-width: 880px) { .o-grid--4 { --cols: 4; } }
@container (min-width: 1240px) { .o-grid--4 { --cols: 5; } }
@container (min-width: 1560px) { .o-grid--4 { --cols: 6; } }
@container (max-width: 559.98px) { .o-grid--row > :nth-child(n+5) { display: none; } }
@container (min-width: 560px) and (max-width: 879.98px) { .o-grid--row > :nth-child(n+4) { display: none; } }
@container (min-width: 880px) and (max-width: 1239.98px) { .o-grid--row > :nth-child(n+5) { display: none; } }
@container (min-width: 1240px) and (max-width: 1559.98px) { .o-grid--row > :nth-child(n+6) { display: none; } }
.o-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.o-pcard { position: relative; display: flex; flex-direction: column; min-width: 0; height: 100%; }
.o-pcard__media { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 20px; background: var(--surface); overflow: hidden; }
.o-pcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform .35s ease, opacity .15s; mix-blend-mode: multiply; opacity: 0; }
.o-pcard__media img.is-on { opacity: 1; }
.o-pcard__dots { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 2; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.o-pcard__dots i { width: 18px; height: 3px; border-radius: 2px; background: rgba(20, 22, 20, .18); transition: background .15s; }
.o-pcard__dots i.is-on { background: var(--text); }
.o-pcard:hover .o-pcard__media img { transform: scale(1.04); }
.o-pcard__badges { position: absolute; left: 12px; top: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; }
.o-pcard__badges .o-chip { padding: 4px 10px; font-size: 12px; }
.o-wish { position: absolute; right: 10px; top: 10px; z-index: 2; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--text-2); display: flex; align-items: center; justify-content: center; transition: color .15s, transform .15s; }
.o-wish:hover { color: var(--danger); }
.o-wish:active { transform: scale(.92); }
.o-wish .o-i { width: 20px; height: 20px; }
.o-wish.is-on { color: var(--danger); }
.o-wish.is-on .o-i { fill: currentColor; }
.o-pcard__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 12px 2px 0; }
.o-pcard__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 12px; }
.o-price { font-size: 18px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.o-price-old { font-size: 14px; color: var(--text-3); text-decoration: line-through; white-space: nowrap; }
.o-pcard__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; margin-bottom: 6px; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--text); }
.o-pcard__title:hover { color: var(--brand-strong); }
.o-pcard__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 8px; font-size: 12.5px; color: var(--text-3); }
.o-pcard__meta b { font-weight: 600; color: var(--text-2); }
.o-pcard__buy { display: flex; gap: 8px; margin-top: auto; }
.o-pcard__buy .o-btn { flex: 1 1 auto; min-width: 0; padding: 0 12px; }

/* Счётчик количества */
.o-qty { display: inline-flex; align-items: center; flex: 0 0 auto; height: 44px; padding: 3px; border-radius: 14px; background: var(--surface); }
.o-qty button { width: 38px; height: 38px; border: 0; border-radius: 11px; background: none; color: var(--text); display: flex; align-items: center; justify-content: center; }
.o-qty button:hover { background: var(--surface-2); }
.o-qty button:disabled { opacity: .35; pointer-events: none; }
.o-qty input { width: 40px; height: 38px; border: 0; background: none; text-align: center; font: 700 15px var(--font); color: var(--text); -moz-appearance: textfield; }
.o-qty input::-webkit-outer-spin-button, .o-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.o-qty input:focus { outline: none; }
.o-qty--lg { height: 56px; border-radius: 20px; padding: 4px; }
.o-qty--lg button { width: 48px; height: 48px; border-radius: 16px; }
.o-qty--lg input { width: 56px; font-size: 17px; }

/* ---------- Каталог ---------- */
.o-subnav-box { margin-bottom: 24px; }
.o-subnav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; }
@media (max-width: 767.98px) { .o-subnav-box .o-hscroll__arrow { display: none; } } /* телефон — листается пальцем */
.o-subnav::-webkit-scrollbar { display: none; }
.o-listing { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(20px, 2.4vw, 40px); align-items: start; }
.o-filter { position: sticky; top: calc(var(--header-h) + var(--topbar-h) + 16px); z-index: 5; } /* над карточками: облачко «Найдено N» выходит за фильтр */
.o-filter__group { padding: 16px 0; border-top: 1px solid var(--line); }
.o-filter__group:first-child { border-top: 0; padding-top: 0; }
.o-filter__title { margin-bottom: 12px; font-size: 15px; font-weight: 700; }
.o-filter__list { display: grid; gap: 10px; }
.o-filter__list .o-check { color: var(--text); font-weight: 500; font-size: 15px; align-items: center; }
.o-filter__tree { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.o-filter__tree a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 12px; font-size: 15px; font-weight: 500; color: var(--text); }
.o-filter__tree a:hover { background: var(--surface-2); color: var(--text); }
.o-filter__tree a.is-active { background: var(--surface-2); font-weight: 700; }
.o-filter__tree a small { color: var(--text-3); font-weight: 600; }
.o-filter__tree .is-parent { color: var(--text-2); font-size: 14px; }
.o-price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.o-price-range .o-input { background: var(--surface-2); }
.o-filter__actions { display: grid; gap: 8px; margin-top: 16px; }
/* Облачко «Найдено N товаров · Показать» справа от изменённого пункта фильтра (app.js) */
.o-ftip { position: absolute; z-index: 30; left: calc(100% + 14px); top: 0; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 16px; border-radius: 16px; background: var(--text); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: 0 10px 30px rgba(20, 22, 20, .22); opacity: 0; visibility: hidden; transform: translate(-6px, -50%); transition: opacity .16s, transform .16s, visibility .16s, top .18s ease; }
.o-ftip::before { content: ""; position: absolute; left: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 2px; background: var(--text); transform: rotate(45deg); }
.o-ftip.is-on { opacity: 1; visibility: visible; transform: translate(0, -50%); }
.o-ftip.is-loading .o-ftip__text { opacity: .6; }
.o-ftip__go { min-height: 36px; padding: 0 14px; border: 0; border-radius: 11px; background: var(--brand); color: var(--on-brand); font: 700 14px var(--font); cursor: pointer; }
.o-ftip__go:hover { background: var(--brand-hover); }
.o-ftip.is-empty .o-ftip__go { display: none; }
.o-ftip.is-empty { padding-right: 16px; }
.o-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.o-sort { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.o-sort__label { margin-right: 6px; font-size: 14px; color: var(--text-3); }
.o-filter-toggle { display: none; }
.o-more { display: flex; justify-content: center; margin-top: 32px; }
.o-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 20px; list-style: none; padding: 0; }
.o-pager a, .o-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 14px; background: var(--surface); color: var(--text); font-weight: 600; }
.o-pager a:hover { background: var(--surface-press); color: var(--text); }
.o-pager .is-active span { background: var(--text); color: var(--bg); }
.o-pager .is-disabled span { opacity: .4; }

/* ---------- Товар ---------- */
.o-product { display: grid; grid-template-columns: minmax(0, var(--gal-w)) minmax(0, 1fr);
  /* фото + превью целиком влезают в экран: сверху ~230px (шапка, меню, крошки), снизу превью ~100px */
  --gal-w: min(44%, 720px, max(320px, calc(100svh - 312px))); gap: clamp(24px, 3.5vw, 64px); align-items: start; }
.o-gallery { position: sticky; top: calc(var(--header-h) + var(--topbar-h) + 16px); }
.o-gallery__main { position: relative; border-radius: var(--r-card); background: var(--surface); overflow: hidden; }
.o-gallery__main .swiper-slide { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.o-gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 6%; cursor: zoom-in; mix-blend-mode: multiply; }
.o-gallery__nav { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--text); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.o-gallery__nav.swiper-button-disabled { opacity: 0; pointer-events: none; }
.o-gallery__prev { left: 14px; } .o-gallery__next { right: 14px; }
.o-gallery__thumbs { margin-top: 12px; }
.o-gallery__thumbs .swiper-slide { width: 68px; aspect-ratio: 1 / 1; border-radius: 16px; background: var(--surface); overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border-color .15s; }
.o-gallery__thumbs .swiper-slide-thumb-active { border-color: var(--brand); }
.o-gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 6px; mix-blend-mode: multiply; }
.o-gallery .o-pcard__badges { left: 18px; top: 18px; }
.o-product__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.o-product__title { font-size: clamp(22px, 1.7vw, 28px); }
.o-buybox { margin-top: 22px; }
.o-buybox__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.o-buybox__price .o-price { font-size: clamp(26px, 1.9vw, 32px); }
.o-buybox__price .o-price-old { font-size: 18px; }
.o-buybox__note { margin: 6px 0 20px; font-size: 14px; color: var(--text-2); }
.o-buybox__row { display: flex; gap: 10px; flex-wrap: wrap; }
.o-buybox__row .o-btn--primary { flex: 1 1 200px; }
.o-buybox .o-wish { position: static; width: 56px; height: 56px; border-radius: 20px; background: var(--surface-2); flex: 0 0 auto; }
.o-perks { margin-top: 16px; }
.o-tabs-line { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: clamp(36px, 4vw, 64px) 0 20px; }
.o-tabs-line::-webkit-scrollbar { display: none; }
.o-tabs-line .nav-link, .o-tabs-line button { flex: 0 0 auto; padding: 10px 18px; border: 0; border-radius: var(--r-pill); background: var(--surface); color: var(--text-2); font: 600 15px var(--font); }
.o-tabs-line .nav-link.active, .o-tabs-line button.is-active { background: var(--text); color: var(--bg); }
/* Характеристики: серая панель, 2 колонки строк «название — значение» */
.o-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; padding: 6px 28px; background: var(--surface); border-radius: var(--r-inner); }
.o-specs li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 13px 0; }
.o-specs li:nth-child(2) { border-top: 0; }
.o-specs li > span:last-child { text-align: left; }
/* Упаковка: карточки по ширине содержимого (не больше ~420px на штуку) */
.o-pack { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; max-width: calc(var(--n, 3) * 440px); align-items: start; }
.o-pack__item { background: var(--surface); border-radius: var(--r-inner); padding: 18px 22px 8px; }
.o-pack__head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.o-pack__head b { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; }
.o-pack__head small { display: block; font-size: 13px; color: var(--text-2); }
.o-pack .o-dl li:first-child { border-top: 0; }
.o-pack__note { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); font-size: 13px; line-height: 1.45; color: var(--text-2); }

/* ---------- Текст (контентные страницы, описание) ---------- */
.o-prose { max-width: 860px; font-size: 16px; line-height: 1.6; color: var(--text); }
.o-prose > :first-child { margin-top: 0; }
.o-prose h2 { margin: 1.8em 0 .6em; font-size: 22px; }
.o-prose h3 { margin: 1.5em 0 .5em; font-size: 18px; }
.o-prose p, .o-prose ul, .o-prose ol { margin: 0 0 1em; }
.o-prose ul, .o-prose ol { padding-left: 1.3em; }
.o-prose li { margin-bottom: .35em; }
.o-prose li::marker { color: var(--brand-strong); }
.o-prose a { font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand) 60%, transparent); text-underline-offset: 3px; }
.o-prose img { border-radius: var(--r-inner); height: auto; }
.o-prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 1.4em; background: var(--surface); border-radius: var(--r-inner); overflow: hidden; font-size: 15px; }
.o-prose th, .o-prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.o-prose tr:first-child th, .o-prose tr:first-child td { border-top: 0; }
.o-prose th { font-weight: 700; color: var(--text-2); font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.o-prose blockquote { margin: 0 0 1em; padding: 16px 20px; border-radius: var(--r-inner); background: var(--brand-soft); color: var(--text); }
.o-lead { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; color: var(--text-2); }

/* ---------- Инфо-плитки (как мы работаем, преимущества) ---------- */
.o-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.o-tile { background: var(--surface); border-radius: var(--r-card); padding: 24px; }
.o-tile__icon { width: 48px; height: 48px; border-radius: 15px; background: var(--surface-2); color: var(--brand-strong); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.o-tile__title { margin-bottom: 6px; font-size: 17px; font-weight: 700; }
.o-tile__text { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.o-tile__num { margin-bottom: 14px; font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--brand-strong); }
.o-tile__num small { font-size: 16px; font-weight: 600; color: var(--text-3); letter-spacing: 0; }
.o-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.o-stat b { display: block; font-size: clamp(28px, 2.4vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.o-stat span { font-size: 14px; color: var(--text-2); }
.o-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-card); background: var(--brand-soft); }
.o-cta__title { font-size: clamp(20px, 1.6vw, 26px); font-weight: 800; margin-bottom: 6px; }
.o-cta p { margin: 0; color: var(--text-2); }
.o-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.o-cta .o-btn--secondary { background: var(--surface-2); }

/* ---------- Новости ---------- */
.o-news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(16px, 2vw, 28px); }
.o-news { display: flex; flex-direction: column; color: var(--text); }
.o-news:hover { color: var(--text); }
.o-news__img { aspect-ratio: 3 / 2; border-radius: 24px; overflow: hidden; background: var(--surface); margin-bottom: 14px; }
.o-news__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.o-news:hover .o-news__img img { transform: scale(1.04); }
.o-news__date { font-size: 13px; color: var(--text-3); margin-bottom: 6px; }
.o-news__title { font-size: 18px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.o-news:hover .o-news__title { color: var(--brand-strong); }
.o-news__text { font-size: 14px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.o-article { max-width: 860px; margin: 0 auto; }
.o-article__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 24px; }
.o-article__cover { border-radius: var(--r-card); overflow: hidden; margin-bottom: 28px; background: var(--surface); }
.o-article__cover img { width: 100%; display: block; }
.o-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- FAQ (аккордеон) ---------- */
.o-faq { background: var(--surface); border-radius: var(--r-card); padding: 6px clamp(18px, 2vw, 28px); }
.o-faq__item { border-top: 1px solid var(--line); }
.o-faq__item:first-child { border-top: 0; }
.o-faq__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 18px 0; border: 0; background: none; text-align: left; font: 700 16px/1.35 var(--font); color: var(--text); }
.o-faq__q .o-i { transition: transform .2s; color: var(--text-3); }
.o-faq__q:not(.collapsed) .o-i { transform: rotate(45deg); color: var(--brand-strong); }
.o-faq__a { padding: 0 0 18px; color: var(--text-2); max-width: 820px; }
.o-faq__a p:last-child { margin-bottom: 0; }

/* ---------- Корзина / оформление ---------- */
.o-two { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(20px, 2.6vw, 40px); align-items: start; }
.o-aside { position: sticky; top: calc(var(--header-h) + var(--topbar-h) + 16px); }
.o-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.o-line:first-child { border-top: 0; }
.o-line__img { display: block; width: 96px; height: 96px; border-radius: 20px; background: var(--surface-2); overflow: hidden; }
.o-line__img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; mix-blend-mode: multiply; }
.o-line__name { font-weight: 700; line-height: 1.3; color: var(--text); }
.o-line__name:hover { color: var(--brand-strong); }
.o-line__meta { margin-top: 4px; font-size: 13px; color: var(--text-3); }
.o-line__controls { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.o-line__controls .o-qty { background: var(--surface-2); }
.o-line__controls .o-qty button:hover { background: var(--surface); }
.o-line__sum { text-align: right; }
.o-line__sum .o-price { font-size: 18px; }
.o-line__remove { border: 0; background: none; color: var(--text-3); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; padding: 6px; border-radius: 10px; }
.o-line__remove:hover { color: var(--danger); background: var(--danger-soft); }
.o-summary .o-dl li > span:last-child { font-weight: 700; }
.o-summary__total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 14px 0 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.o-summary__total span { font-weight: 700; }
.o-summary__total b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.o-progress { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin: 10px 0 6px; }
.o-progress span { display: block; height: 100%; border-radius: inherit; background: var(--brand); transition: width .3s; }
.o-coupon { display: flex; gap: 8px; }
.o-coupon .o-input { background: var(--surface-2); min-height: 48px; border-radius: 16px; font-size: 15px; }
[data-cart].is-loading { opacity: .55; pointer-events: none; transition: opacity .15s; }
.o-step { background: var(--surface); border-radius: var(--r-card); padding: clamp(18px, 2vw, 28px); margin-bottom: 16px; }
.o-step__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.o-step__num { flex: 0 0 34px; height: 34px; border-radius: 12px; background: var(--brand); color: var(--on-brand); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.o-step__title { font-size: 20px; font-weight: 800; }
.o-step__edit { margin-left: auto; }
.o-step .o-input, .o-step .o-textarea, .o-step .o-select { background: var(--surface-2); }
.o-step .o-input:focus, .o-step .o-textarea:focus { background: var(--surface-2); }
.o-step .o-options { background: var(--surface-2); }
.o-step .o-segment { background: var(--surface-2); }
.o-step .o-segment input:checked + span { background: var(--brand-soft); color: var(--brand-strong); box-shadow: none; }
.o-mini-lines { list-style: none; margin: 0; padding: 0; }
.o-mini-lines li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.o-mini-lines li:first-child { border-top: 0; }
.o-mini-lines img { width: 52px; height: 52px; object-fit: contain; border-radius: 14px; background: var(--surface-2); padding: 4px; mix-blend-mode: multiply; }
.o-mini-lines b { white-space: nowrap; }
.o-done { max-width: 760px; margin: 0 auto; text-align: center; }
.o-done__icon { width: 88px; height: 88px; margin: 12px auto 20px; border-radius: 28px; background: var(--brand-soft); color: var(--brand-strong); display: flex; align-items: center; justify-content: center; }
.o-done__icon .o-i { width: 44px; height: 44px; }
.o-done .o-card { text-align: left; margin-top: 28px; }

/* ---------- Кабинет ---------- */
.o-account { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(20px, 2.4vw, 40px); align-items: start; }
.o-account__nav { position: sticky; top: calc(var(--header-h) + var(--topbar-h) + 16px); }
.o-user { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.o-avatar { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 18px; background: var(--brand); color: var(--on-brand); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; }
.o-user__name { font-weight: 800; font-size: 17px; line-height: 1.2; }
.o-user__phone { font-size: 13px; color: var(--text-2); }
.o-account__nav .o-row.is-active .o-row__title { color: var(--brand-strong); }
.o-account__nav .o-row.is-active .o-row__icon { background: var(--brand-soft); color: var(--brand-strong); }
.o-account__nav form { margin: 0; }
.o-account__nav button.o-row { width: 100%; border-left: 0; border-right: 0; border-bottom: 0; background: none; text-align: left; font: inherit; }
.o-order { background: var(--surface); border-radius: var(--r-card); padding: clamp(18px, 2vw, 24px); }
.o-order + .o-order { margin-top: 12px; }
.o-order__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.o-order__num { font-size: 18px; font-weight: 800; color: var(--text); }
.o-order__num:hover { color: var(--brand-strong); }
.o-order__date { color: var(--text-3); font-size: 14px; }
.o-order__head .o-status { margin-left: auto; }
.o-order__body { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 16px; }
.o-thumbs { display: flex; gap: 8px; }
.o-thumbs span { width: 56px; height: 56px; border-radius: 16px; background: var(--surface-2); overflow: hidden; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--text-2); }
.o-thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 4px; mix-blend-mode: multiply; }
.o-order__info { display: grid; gap: 4px; font-size: 14px; color: var(--text-2); }
.o-order__info b { color: var(--text); font-weight: 600; }
.o-order__sum { margin-left: auto; text-align: right; }
.o-order__foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.o-order__foot form { margin: 0; }

/* ---------- Контакты ---------- */
.o-contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; }
.o-map { min-height: 420px; border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.o-map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }

/* ---------- Бренды ---------- */
.o-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.o-brand { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 160px; padding: 20px; border-radius: var(--r-card); background: var(--surface); color: var(--text); text-align: center; }
.o-brand img { max-width: 70%; max-height: 64px; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.o-brand:hover { color: var(--text); }
.o-brand:hover img { filter: none; opacity: 1; }
.o-brand__name { font-weight: 700; }
.o-brand small { color: var(--text-3); font-weight: 600; }
/* «Нам доверяют» — логотипы клиентов (/brands и главная), в родных цветах */
.o-clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.o-client { display: flex; align-items: center; justify-content: center; min-height: 128px; padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface-2); }
.o-client img { display: block; width: auto; height: auto; max-width: 100%; max-height: 72px; object-fit: contain; }
.o-client--dark { border-color: #2b2b2b; background: #2b2b2b; }
/* Анимация: плавно из серого в цвет и подъём карточки при наведении, клик — логотип делает оборот 360° (app.js, класс is-flip) */
.o-client { cursor: pointer; perspective: 700px; -webkit-tap-highlight-color: transparent; user-select: none; transition: transform .4s cubic-bezier(.2, .7, .3, 1), box-shadow .4s ease, border-color .4s ease; }
.o-client img { transition: filter .5s ease, opacity .5s ease; }
.o-client.is-flip img { animation: o-client-flip .9s cubic-bezier(.45, .05, .25, 1); }
@keyframes o-client-flip { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
@media (hover: hover) { /* с мышью — серые, цветные при наведении; на телефоне наведения нет — сразу цветные */
  .o-client img { filter: grayscale(1) brightness(.62) contrast(1.6); opacity: .75; }
  .o-client:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--shadow); }
  .o-client:hover img { filter: none; opacity: 1; }
}
@media (max-width: 575.98px) { .o-clients { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .o-client { min-height: 96px; padding: 14px 16px; } .o-client img { max-height: 56px; } }

/* ---------- 404 ---------- */
.o-404 { text-align: center; padding: clamp(24px, 4vw, 56px) 0; }
.o-404__code { font-size: clamp(96px, 14vw, 180px); font-weight: 800; line-height: 1; letter-spacing: -.05em; color: var(--surface-press); }
.o-404__code span { color: var(--brand); }

/* ---------- Модалки (Bootstrap) → стиль шторок ---------- */
.modal-content { border: 0; border-radius: var(--r-card); box-shadow: var(--shadow); }
.modal-header { border: 0; padding: 24px 24px 8px; align-items: center; }
.modal-title { font-size: 22px; font-weight: 800; }
.modal-body { padding: 8px 24px 24px; }
.modal-footer { border: 0; padding: 0 24px 24px; gap: 10px; }
.modal-footer > * { margin: 0; }
/* Затемнение модалок: цвет и плотность — через переменные Bootstrap, а не только на .show.
   Иначе при закрытии .show снимается, фон на кадр становится чёрным #000 с полной плотностью — «чёрное моргание». */
.modal-backdrop { --bs-backdrop-bg: rgb(10, 12, 10); --bs-backdrop-opacity: .4; }
.modal-backdrop.fade { transition: opacity .22s ease; }
.o-modal-close { margin-left: auto; }
.o-modal-foot { margin-top: 16px; text-align: center; font-size: 14px; color: var(--text-2); }
.o-modal-foot a, .o-modal-foot button { font-weight: 700; color: var(--brand-strong); border: 0; background: none; padding: 0; }
.o-auth-switch { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 16px; font-size: 14px; }
.o-auth-switch a { font-weight: 600; }
/* Окно входа: панели Вход / Регистрация / Восстановление сменяются без закрытия окна (app.js authPane) */
.o-auth { overflow: hidden; } /* пока плавно меняется высота; на телефоне ниже снова overflow: auto */
.o-auth__pane:not([hidden]) { animation: o-auth-in .22s ease both; }
@keyframes o-auth-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .o-auth__pane:not([hidden]) { animation: none; } }
@media (max-width: 575.98px) {
  .modal-dialog { margin: 0; position: fixed; left: 0; right: 0; bottom: 0; max-width: none; transform: translateY(100%) !important; transition: transform .25s ease !important; }
  .modal.show .modal-dialog { transform: none !important; }
  .modal-content { border-radius: 32px 32px 0 0; max-height: 92vh; overflow: auto; padding-bottom: env(safe-area-inset-bottom); }
  .modal-content::before { content: ""; display: block; width: 44px; height: 5px; margin: 10px auto 0; border-radius: 3px; background: var(--line); }
  .modal-header { padding-top: 12px; }
}

/* Тост */
.o-toast { position: fixed; z-index: 1090; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 14px 20px; border-radius: 20px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 15px; box-shadow: var(--shadow); opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; }
.o-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.o-toast .o-i { color: var(--brand); }

/* ---------- Адаптив ---------- */
@media (max-width: 1399.98px) { .o-footer__grid { grid-template-columns: 1.2fr repeat(2, 1fr) 1.2fr; } .o-footer__catalog { display: none; } }
@media (max-width: 1199.98px) {
  .o-listing { grid-template-columns: 250px minmax(0, 1fr); }
  .o-two { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 991.98px) {
  :root { --header-h: 64px; --topbar-h: 0px; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .o-topbar, .o-qnav, .o-actions, .o-catalog-btn { display: none; }
  .o-burger { display: flex; }
  .o-header__inner { gap: 10px; }
  .o-logo img { width: 112px; }
  .o-search__input { height: 46px; border-radius: 16px; }
  .o-search__btn { top: 5px; right: 5px; width: 36px; height: 36px; border-radius: 12px; }
  .o-tabbar { display: block; }
  .o-listing { grid-template-columns: minmax(0, 1fr); }
  .o-filter { position: fixed; z-index: 1060; left: 0; right: 0; bottom: 0; top: auto; max-height: 88vh; overflow: auto; border-radius: 32px 32px 0 0; padding: 12px 20px 24px; background: var(--bg); box-shadow: var(--shadow); transform: translateY(105%); transition: transform .25s ease; }
  .o-filter.is-open { transform: none; }
  .o-filter.o-card { background: var(--bg); }
  .o-filter .o-price-range .o-input, .o-filter .o-filter__tree a:hover, .o-filter .o-filter__tree a.is-active { background: var(--surface); }
  .o-filter-toggle { display: inline-flex; }
  .o-filter__sheet-head { display: flex !important; }
  .o-filter__actions { position: sticky; bottom: -24px; z-index: 2; margin: 16px -20px -24px; padding: 12px 20px 24px; background: var(--bg); box-shadow: 0 -8px 16px rgba(255, 255, 255, .9); } /* шторка: «Показать N» всегда под пальцем */
  .o-product { grid-template-columns: minmax(0, 1fr); }
  .o-gallery { position: static; max-width: 560px; }
  .o-two, .o-account { grid-template-columns: minmax(0, 1fr); }
  .o-aside, .o-account__nav { position: static; }
  .o-account__nav { order: 2; }
  .o-contacts { grid-template-columns: minmax(0, 1fr); }
  .o-footer__grid { grid-template-columns: 1fr 1fr; }
  .o-footer__about { grid-column: 1 / -1; }
  .o-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .o-grid, .o-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .o-grid { gap: 12px; }
  .o-pcard__media { border-radius: 20px; }
  .o-pcard__body { padding-top: 10px; }
  .o-price { font-size: 17px; }
  .o-pcard__title { font-size: 14px; }
  .o-pcard__buy .o-qty { display: none; }
  .o-pcard__buy .o-btn { min-height: 44px; border-radius: 14px; font-size: 14px; }
  .o-wish { width: 38px; height: 38px; right: 8px; top: 8px; }
  .o-specs { grid-template-columns: minmax(0, 1fr); padding: 4px 18px; }
  .o-specs li:nth-child(2) { border-top: 1px solid var(--line); }
  .o-line { grid-template-columns: 76px minmax(0, 1fr); }
  .o-line__img { width: 76px; height: 76px; border-radius: 16px; }
  .o-line__sum { grid-column: 2; text-align: left; }
  .o-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; } /* «Покупателям» и «Компания» — в один ряд */
  .o-footer__about, .o-footer__grid > :last-child { grid-column: 1 / -1; }
  .o-order__sum { margin-left: 0; text-align: left; }
  .o-order__head .o-status { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- Каталог Oasis: цвета, остаток, альтернативное фото ---------- */
.o-swatches { display: flex; align-items: center; gap: 5px; margin-bottom: 8px; min-height: 16px; }
.o-swatch { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); flex: 0 0 auto; }
.o-swatches__more { font-size: 12px; font-weight: 600; color: var(--text-3); }
.o-stock { display: inline-flex; align-items: center; gap: 5px; color: var(--brand-strong); font-weight: 600; }
.o-stock i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.o-stock--order { color: var(--warning); }
.o-stock--order i { background: var(--warning); }
.o-stock--remote { color: var(--text-2); } /* склад производителя — поставка по графику */
.o-stock--remote i { background: #9AA7B8; }
.o-stock--none { color: var(--text-3); }
.o-stock--none i { background: var(--line); }
.o-price small { font-size: .7em; font-weight: 600; color: var(--text-2); }
.o-color-filter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 8px; }
.o-color-opt__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o-color-opt { position: relative; display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 10px; cursor: pointer; font-size: 14px; }
.o-color-opt input { position: absolute; opacity: 0; }
.o-color-opt .o-swatch { width: 20px; height: 20px; }
.o-color-opt input:checked ~ .o-swatch { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand); }
.o-color-opt input:checked ~ .o-color-opt__name { font-weight: 700; }
.o-color-opt input:focus-visible ~ .o-swatch { outline: 3px solid color-mix(in srgb, var(--brand) 60%, transparent); outline-offset: 2px; }
.o-filter__list--scroll { max-height: 240px; overflow: auto; padding-right: 4px; }

/* ---------- Товар: выбор цвета и размеров ---------- */
.o-product__info { min-width: 0; max-width: 900px; } /* на широком экране кнопка и блоки не растягиваются на пол-экрана */
.o-buybox { margin-top: 20px; }
.o-buybox .o-qty, .o-buybox .o-qty--lg { background: var(--surface-2); }
/* компактнее: кнопки 50px вместо 56, цвета 52 вместо 60 */
.o-buybox .o-qty--lg { height: 50px; border-radius: 16px; }
.o-buybox .o-qty--lg button { width: 42px; height: 42px; border-radius: 12px; }
.o-buybox .o-qty--lg input { width: 48px; font-size: 16px; }
.o-buybox__row .o-btn--primary { height: 50px; min-height: 50px; border-radius: 16px; }
.o-buybox__row .o-btn--primary { flex: 0 0 auto; width: 220px; padding: 0 20px; } /* фиксированная ширина, не тянется на всю строку */
@media (max-width: 575.98px) { .o-buybox__row { flex-wrap: nowrap; } .o-buybox__row .o-btn--primary { flex: 1 1 auto; width: auto; min-width: 0; padding: 0 12px; gap: 6px; } .o-buybox .o-qty--lg button { width: 36px; } .o-buybox .o-qty--lg input { width: 34px; } } /* на телефоне — до края, сердечко в той же строке */
.o-buybox .o-wish { width: 50px; height: 50px; border-radius: 16px; }
.o-buybox .o-color { width: 52px; height: 52px; border-radius: 14px; }
.o-buybox__note { margin-bottom: 16px; }
.o-buybox .o-qty button:hover { background: var(--surface); }
.o-pick { margin: 18px 0 4px; }
.o-pick__label { margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.o-pick__label b { color: var(--text); }
.o-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.o-color { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 16px; background: var(--surface-2); border: 2px solid transparent; overflow: hidden; transition: border-color .15s; }
.o-color img { width: 100%; height: 100%; object-fit: contain; padding: 3px; mix-blend-mode: multiply; }
.o-color:hover { border-color: var(--line); }
.o-color.is-active { border-color: var(--brand); }
.o-color .o-swatch { width: 28px; height: 28px; }
.o-sizes { margin-top: 18px; }
.o-sizes__table { border-radius: var(--r-inner); background: var(--surface-2); padding: 4px 14px; max-height: 420px; overflow: auto; }
.o-sizes__row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.o-sizes__row:first-child { border-top: 0; }
.o-sizes__name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.o-sizes__name b { font-size: 15px; }
.o-sizes__stock { font-size: 12.5px; }
.o-sizes__price { font-weight: 700; white-space: nowrap; font-size: 15px; }
.o-sizes__row .o-qty { background: var(--surface); height: 40px; }
.o-sizes__row .o-qty button { width: 34px; height: 34px; }
.o-sizes__row .o-qty button:hover { background: var(--surface-2); }
.o-sizes__row .o-qty input { width: 44px; }
.o-sizes__total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 2px; color: var(--text-2); }
.o-sizes__total b { color: var(--text); font-size: 20px; }
.o-buybox .o-buybox__row { margin-top: 14px; }
.o-product__details { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.o-product__details > :only-child { grid-column: 1 / -1; } /* нет размерной сетки / блока справа — текст на всю ширину */
.o-product__details .o-prose { max-width: none; }
.o-related { margin-top: clamp(40px, 5vw, 72px); }
@media (max-width: 991.98px) { .o-product__details { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 575.98px) { .o-sizes__row { grid-template-columns: minmax(0, 1fr) auto; } .o-sizes__row .o-qty { grid-column: 1 / -1; justify-self: start; } .o-color { width: 52px; height: 52px; } }
.o-input--white, .o-card .o-pass .o-input { background: var(--surface-2); }
.o-account__nav .o-row__side { width: 18px; height: 18px; color: var(--text-3); }
.o-card .o-line__img { background: var(--surface-2); }
.o-content-layout { display: grid; grid-template-columns: minmax(0, 900px) 320px; justify-content: start; /* меню справа рядом с текстом, а не у края широкого экрана */ gap: clamp(24px, 4vw, 64px); align-items: start; }
.o-content-side { position: sticky; top: calc(var(--header-h) + var(--topbar-h) + 16px); display: grid; gap: 16px; }
.o-content-side .o-row.is-active .o-row__title { color: var(--brand-strong); }
.o-content-side .o-row__side { width: 18px; height: 18px; color: var(--text-3); }
.o-content-side .o-card + .o-card { margin-top: 0; }
.o-help p { margin-bottom: 14px; }
@media (max-width: 991.98px) { .o-content-layout { grid-template-columns: minmax(0, 1fr); } .o-content-side { position: static; } }
@media (min-width: 992px) { .o-content-layout--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); } }
/* ---------- Нанесение логотипа: разделы по технологиям, первый метод раздела — крупно (фото слева), остальные сеткой ---------- */
.o-print-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 8px; }
.o-print-nav .o-chip span { margin-left: 4px; color: var(--text-3); font-weight: 600; }
.o-print-group { margin-top: clamp(28px, 3vw, 48px); scroll-margin-top: calc(var(--header-h) + var(--topbar-h) + 20px); }
.o-print-group__title { margin: 0 0 16px; font-size: clamp(22px, 2vw, 30px); }
.o-print-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.o-print { display: flex; flex-direction: column; border-radius: var(--r-card); background: var(--surface); overflow: hidden; }
.o-print__img { aspect-ratio: 16 / 10; background: var(--surface-2); }
.o-print__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.o-print__body { padding: 22px 24px 24px; }
.o-print__title { margin: 0; font-size: 19px; font-weight: 800; }
.o-print__text p { margin: 10px 0 0; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.o-print--noimg .o-print__title::before { content: ""; display: block; width: 36px; height: 4px; margin-bottom: 14px; border-radius: 2px; background: var(--brand); }
.o-print--lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.o-print--lead.o-print--noimg { grid-template-columns: minmax(0, 1fr); }
.o-print--lead .o-print__img { aspect-ratio: auto; min-height: 100%; }
.o-print--lead .o-print__body { padding: clamp(24px, 2.6vw, 40px); }
.o-print--lead .o-print__title { font-size: clamp(22px, 1.8vw, 28px); }
.o-print--lead .o-print__text p { font-size: 16px; }
@media (max-width: 1199.98px) { .o-print-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
  .o-print-grid { grid-template-columns: minmax(0, 1fr); }
  .o-print--lead { grid-template-columns: minmax(0, 1fr); }
  .o-print--lead .o-print__img { aspect-ratio: 16 / 10; }
  .o-print-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); }
  .o-print-nav .o-chip { flex: 0 0 auto; }
}
.o-sitemap { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; align-items: start; }
.o-sitemap__cat > ul { columns: 2; column-gap: 32px; }
.o-sitemap__cat li { break-inside: avoid; }
@media (max-width: 767.98px) { .o-sitemap { grid-template-columns: minmax(0, 1fr); } .o-sitemap__cat > ul { columns: 1; } }

.o-gallery__main .swiper-slide { background: var(--surface); }
.o-pcard__buy .o-btn--block { flex: 1 1 auto; }
.o-price-range .o-input { font-size: 14px; padding: 0 12px; }

/* Товар на планшете/телефоне: сначала название, цена и кнопка покупки, потом фото, потом наличие и сроки */
@media (max-width: 991.98px) {
  .o-product { display: flex; flex-direction: column; gap: 0; }
  .o-product__info { display: contents; }
  .o-product__title, .o-product__info > meta, .o-product__info > span, .o-product__chips, .o-buybox { order: 0; }
  .o-gallery { order: 1; width: 100%; min-width: 0; max-width: min(560px, 100%); margin-top: 20px; }
  .o-perks, .o-notice { order: 2; }
}

/* ---------- Переключатель языка «Рус | Қаз» (верхняя полоса + мобильное меню, partials/header, partials/menu) ---------- */
.o-lang { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1; white-space: nowrap; }
.o-lang__link { color: var(--text-3) !important; font-weight: 500; text-decoration: none; transition: color .15s; }
.o-lang__link:hover { color: var(--text) !important; }
.o-lang__link.is-active { color: var(--text) !important; font-weight: 700; pointer-events: none; }
.o-lang__sep { width: 1px; height: 12px; background: var(--line); }
.o-lang--menu { display: flex; justify-content: center; gap: 14px; margin-top: 14px; font-size: 15px; }
.o-lang--menu .o-lang__sep { height: 16px; }

/* Верхняя полоса в одну строку при любом языке (казахские подписи длиннее): ссылки не переносятся, лишнее обрезается, график работы прячется на узких экранах */
.o-topbar__inner { white-space: nowrap; }
.o-topbar__nav { flex-wrap: nowrap; min-width: 0; overflow: hidden; }
.o-topbar__side { flex: 0 0 auto; }
@media (max-width: 1699.98px) { .o-topbar__hours { display: none; } .o-topbar__nav { gap: 16px; } .o-topbar__inner { gap: 18px; } }
@media (max-width: 1199.98px) { .o-topbar__city { display: none; } .o-topbar__nav { gap: 10px; } .o-topbar__side { gap: 14px; } .o-topbar { font-size: 12px; } }

/* ---------- Окно «Подберём мерч» (partials/lead-modal): фото сверху, заголовок, три поля, зелёная кнопка ---------- */
.o-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#leadModal .modal-dialog { max-width: 560px; }
.o-lead { position: relative; overflow: hidden; background: var(--bg); }
.o-lead__close { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(255, 255, 255, .9); box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.o-lead__img { aspect-ratio: 1284 / 760; background: var(--surface); overflow: hidden; }
.o-lead__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.o-lead__body { padding: 24px 32px 28px; }
.o-lead__eyebrow { margin-bottom: 10px; color: var(--brand-strong); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.o-lead__title { margin: 0 0 10px; font-size: clamp(24px, 2.2vw, 30px); font-weight: 800; line-height: 1.15; }
.o-lead__sub { margin: 0 0 20px; color: var(--text-2); font-size: 16px; line-height: 1.5; }
.o-lead__form { display: grid; gap: 10px; }
.o-lead__form .o-input { background: var(--surface); }
.o-lead__form .o-btn { margin-top: 6px; }
.o-lead__consent { margin: 4px 0 0; color: var(--text-3); font-size: 13px; line-height: 1.45; text-align: center; }
.o-lead__consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.o-lead__done { text-align: center; padding-top: 32px; }
.o-lead__done-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); display: flex; align-items: center; justify-content: center; }
.o-lead__done-icon .o-i { width: 30px; height: 30px; }
@media (max-width: 575.98px) {
  .o-lead__img { aspect-ratio: 16 / 9; }
  .o-lead__body { padding: 18px 20px 24px; }
  .o-lead__close { top: 22px; }
}
.o-lead__perks { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: -6px 0 18px; padding: 0; list-style: none; font-size: 14px; font-weight: 600; color: var(--text); }
.o-lead__perks li { display: inline-flex; align-items: center; gap: 6px; }
.o-lead__perks .o-i { width: 16px; height: 16px; color: var(--brand-strong); }

/* Окно заявки «карточкой» (сам всплывает при прокрутке): без затемнения, в правом нижнем углу, страница доступна */
#leadModal.is-float { display: block; opacity: 1; pointer-events: none; overflow: visible; } /* .fade без .show держит opacity: 0 */
#leadModal.is-float .modal-dialog { position: fixed; right: 24px; bottom: 24px; left: auto; top: auto; width: calc(100% - 48px); max-width: 400px; min-height: 0; margin: 0; pointer-events: auto; opacity: 0; transform: translateY(24px) !important; transition: opacity .25s ease, transform .25s ease !important; }
#leadModal.is-float.is-in .modal-dialog { opacity: 1; transform: none !important; }
#leadModal.is-float .modal-content { max-height: calc(100vh - 48px); overflow: auto; box-shadow: 0 18px 60px rgba(20, 24, 16, .22), 0 0 0 1px rgba(0, 0, 0, .04); }
#leadModal.is-float .o-lead__img { aspect-ratio: 16 / 7; }
#leadModal.is-float .o-lead__body { padding: 18px 22px 20px; }
#leadModal.is-float .o-lead__title { font-size: 22px; }
#leadModal.is-float .o-lead__sub { font-size: 14px; margin-bottom: 14px; }
#leadModal.is-float .o-lead__perks { font-size: 13px; margin-bottom: 14px; }
#leadModal.is-float .o-input { min-height: 48px; font-size: 15px; border-radius: 16px; }
#leadModal.is-float .o-lead__form .o-btn { min-height: 50px; }
@media (max-width: 991.98px) { /* над нижним меню */
  #leadModal.is-float .modal-dialog { bottom: calc(82px + env(safe-area-inset-bottom)); }
}
@media (max-width: 575.98px) { /* телефон: панель снизу без фото, верх страницы остаётся виден */
  #leadModal.is-float .modal-dialog { left: 8px; right: 8px; width: auto; max-width: none; }
  #leadModal.is-float .modal-content { max-height: 70vh; border-radius: 24px; }
  #leadModal.is-float .modal-content::before { display: none; }
  #leadModal.is-float .o-lead__img, #leadModal.is-float .o-lead__perks { display: none; }
  #leadModal.is-float .o-lead__close { top: 10px; right: 10px; }
  #leadModal.is-float .o-lead__body { padding: 16px 18px 18px; }
  #leadModal.is-float .o-lead__eyebrow { padding-right: 44px; }
  #leadModal.is-float .o-lead__title { font-size: 20px; padding-right: 30px; }
}
/* Ссылка «Рассчитать стоимость с нанесением» на странице товара — открывает окно заявки */
.o-lead-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 0 0 4px; border: 0; background: none; color: var(--text); font: 700 15px/1.3 var(--font); text-decoration: underline dashed; text-decoration-thickness: 1px; text-underline-offset: 4px; cursor: pointer; }
.o-lead-link:hover { color: var(--brand-strong); }
.o-lead-link .o-i { width: 18px; height: 18px; color: var(--brand-strong); }

/* Окно заявки не выше экрана: фото по высоте экрана, компактные поля; на низких экранах прячем преимущества, ещё ниже — фото */
#leadModal .modal-dialog { max-width: 500px; }
.o-lead { display: flex; flex-direction: column; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; }
.o-lead__img { flex: 0 0 auto; aspect-ratio: auto !important; height: clamp(110px, 22vh, 230px); }
.o-lead__body { padding: 20px 28px 22px; }
.o-lead__eyebrow { margin-bottom: 8px; font-size: 12px; }
.o-lead__title { font-size: clamp(21px, 2vw, 26px); margin-bottom: 8px; }
.o-lead__sub { font-size: 15px; margin-bottom: 14px; }
.o-lead__perks { margin: -4px 0 14px; font-size: 13px; }
.o-lead__form { gap: 8px; }
.o-lead__form .o-input { min-height: 50px; font-size: 16px; border-radius: 16px; }
.o-lead__form .o-btn { min-height: 52px; margin-top: 4px; }
#leadModal.is-float .o-lead__img { height: clamp(90px, 15vh, 160px); }
#leadModal.is-float .modal-content { max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); }
@media (max-height: 760px) {
  .o-lead__perks { display: none; }
  .o-lead__sub { font-size: 14px; margin-bottom: 12px; }
}
@media (max-height: 620px) {
  .o-lead__img { display: none; }
  .o-lead__body { padding-top: 18px; padding-right: 56px; }
}
@media (max-width: 575.98px) {
  .o-lead { max-height: 92vh; max-height: 92dvh; }
  .o-lead__body { padding: 16px 20px 20px; }
}
@media (max-width: 575.98px) and (max-height: 700px) { .o-lead__img { display: none; } .o-lead__body { padding-right: 60px; } }

/* ---------- Товарные презентации (PDF) ---------- */
.o-pres .o-news__img { position: relative; aspect-ratio: 4 / 3; background: var(--surface); }
.o-pres .o-news__img img { object-fit: cover; }
.o-pres__ph { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: var(--text-3); }
.o-pres__ph .o-i { width: 48px; height: 48px; }
.o-pres__badge { position: absolute; right: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .92); color: var(--text); font-size: 12px; font-weight: 700; }
.o-pres__badge .o-i { width: 14px; height: 14px; color: var(--danger); }
.o-pres__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.o-pres__viewer { height: calc(100vh - 220px); min-height: 520px; border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.o-pres__viewer iframe { width: 100%; height: 100%; border: 0; display: block; }
.o-pres__mobile { display: none; }
.o-pres__cover { display: block; width: 100%; border-radius: var(--r-card); margin-bottom: 14px; }
@media (max-width: 767.98px) {
  .o-pres__viewer { display: none; }
  .o-pres__mobile { display: block; }
  .o-pres__actions { width: 100%; }
  .o-pres__actions .o-btn { flex: 1 1 auto; }
}
.o-footer__phone--2 { font-size: 16px; font-weight: 700; margin-top: -2px; }
.o-print--lead .o-print__img { aspect-ratio: 4 / 3; min-height: 0; align-self: stretch; max-height: 440px; }
.o-print--lead.o-print--noimg .o-print__text { max-width: 980px; }
.o-print-grid { align-items: stretch; }

/* ---------- Нанесение логотипа v3: вкладки разделов, под ними методы раздела, ниже одна карточка — страница короткая ---------- */
.o-print-nav, .o-print-group { display: none; }
.o-pm { margin-top: 8px; }
.o-pm__tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; border-radius: 22px; background: var(--surface); }
.o-pm__tab { flex: 1 1 auto; padding: 12px 16px; border: 0; border-radius: 16px; background: none; color: var(--text-2); font: 700 15px/1.2 var(--font); cursor: pointer; transition: background-color .15s, color .15s; white-space: nowrap; }
.o-pm__tab:hover { color: var(--text); }
.o-pm__tab.is-active { background: var(--text); color: #fff; }
.o-pm__methods { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.o-pm__method { padding: 9px 16px; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--bg); color: var(--text); font: 600 14px/1.2 var(--font); cursor: pointer; transition: border-color .15s, background-color .15s; white-space: nowrap; }
.o-pm__method:hover { border-color: var(--brand); }
.o-pm__method.is-active { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.o-pm__card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); border-radius: var(--r-card); background: var(--surface); overflow: hidden; animation: o-pm-in .25s ease; }
.o-pm__card[hidden] { display: none; }
.o-pm__card--noimg { grid-template-columns: minmax(0, 1fr); }
@keyframes o-pm-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.o-pm__img { background: var(--surface-2); max-height: 520px; }
.o-pm__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.o-pm__content { padding: clamp(24px, 2.8vw, 44px); display: flex; flex-direction: column; align-items: flex-start; }
.o-pm__card--noimg .o-pm__content { max-width: 900px; }
.o-pm__eyebrow { margin-bottom: 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-strong); }
.o-pm__title { margin: 0 0 12px; font-size: clamp(22px, 2vw, 30px); line-height: 1.15; }
.o-pm__text { margin-bottom: 20px; }
.o-pm__text p { margin: 0 0 10px; color: var(--text-2); font-size: 15px; line-height: 1.6; }
@media (max-width: 991.98px) {
  .o-pm__tabs, .o-pm__methods { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); }
  .o-pm__tabs { border-radius: 18px 0 0 18px; padding-right: var(--gutter); }
  .o-pm__tabs::-webkit-scrollbar, .o-pm__methods::-webkit-scrollbar { display: none; }
  .o-pm__tab, .o-pm__method { flex: 0 0 auto; }
  .o-pm__card { grid-template-columns: minmax(0, 1fr); }
  .o-pm__img { aspect-ratio: 16 / 10; max-height: none; }
  .o-pm__content { padding: 20px 18px 22px; }
}
.o-pm__img { max-height: 420px; } @media (max-width: 991.98px) { .o-pm__img { aspect-ratio: 16 / 9; max-height: 240px; } }
/* Нанесение v3 — компактнее: карточка не шире 1100px, фото небольшим квадратом слева, мельче шрифты и отступы */
.o-pm { max-width: 1100px; }
.o-pm__tabs { padding: 4px; border-radius: 18px; }
.o-pm__tab { flex: 0 0 auto; padding: 9px 14px; border-radius: 14px; font-size: 14px; }
.o-pm__methods { margin: 12px 0; gap: 6px; }
.o-pm__method { padding: 7px 13px; font-size: 13px; }
.o-pm__card { grid-template-columns: 280px minmax(0, 1fr); border-radius: 22px; }
.o-pm__card--noimg { grid-template-columns: minmax(0, 1fr); }
.o-pm__img { max-height: none; aspect-ratio: 1; align-self: start; margin: 20px 0 20px 20px; border-radius: 16px; overflow: hidden; background: var(--bg); }
.o-pm__content { padding: 22px 28px 24px; }
.o-pm__card--noimg .o-pm__content { max-width: none; }
.o-pm__eyebrow { font-size: 11px; margin-bottom: 6px; }
.o-pm__title { font-size: 22px; margin-bottom: 10px; }
.o-pm__text { margin-bottom: 16px; }
.o-pm__text p { font-size: 14px; line-height: 1.55; margin-bottom: 8px; }
.o-pm__content .o-btn { min-height: 44px; padding: 0 18px; font-size: 14px; border-radius: 14px; }
@media (max-width: 991.98px) {
  .o-pm { max-width: none; }
  .o-pm__card { grid-template-columns: minmax(0, 1fr); }
  .o-pm__img { aspect-ratio: auto; width: 140px; height: 140px; margin: 16px 0 0 16px; }
  .o-pm__content { padding: 14px 16px 18px; }
}
.o-pm { max-width: 1240px; } .o-pm__tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .o-pm__tabs::-webkit-scrollbar { display: none; }
/* Методы раздела — вертикальные вкладки слева от карточки */
.o-pm__stage { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 16px; }
.o-pm__side .o-pm__methods { flex-direction: column; flex-wrap: nowrap; gap: 2px; margin: 0; padding: 6px; border-radius: 18px; background: var(--surface); }
.o-pm__side .o-pm__methods[hidden] { display: none; }
.o-pm__side .o-pm__method { width: 100%; padding: 11px 14px; border: 0; border-radius: 12px; background: none; color: var(--text-2); font-size: 14px; font-weight: 600; text-align: left; white-space: normal; line-height: 1.3; }
.o-pm__side .o-pm__method:hover { background: var(--surface-2); color: var(--text); }
.o-pm__side .o-pm__method.is-active { background: var(--bg); color: var(--text); font-weight: 700; box-shadow: inset 3px 0 0 var(--brand), 0 2px 8px rgba(20, 32, 10, .06); }
.o-pm__main .o-pm__card { grid-template-columns: 220px minmax(0, 1fr); }
.o-pm__main .o-pm__card--noimg { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 991.98px) {
  .o-pm__stage { grid-template-columns: minmax(0, 1fr); margin-top: 12px; gap: 12px; }
  .o-pm__side .o-pm__methods { flex-direction: row; overflow-x: auto; scrollbar-width: none; background: none; padding: 0; gap: 6px; margin-right: calc(-1 * var(--gutter)); }
  .o-pm__side .o-pm__method { flex: 0 0 auto; width: auto; white-space: nowrap; border: 1.5px solid var(--line); border-radius: var(--r-pill); padding: 7px 13px; }
  .o-pm__side .o-pm__method.is-active { box-shadow: none; border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
  .o-pm__main .o-pm__card { grid-template-columns: minmax(0, 1fr); }
}
.o-pm__side .o-pm__method.is-active { box-shadow: inset -3px 0 0 var(--brand), 0 2px 8px rgba(20, 32, 10, .06); } /* зелёная полоса активного метода — справа, к карточке */
.o-cta--far { margin-top: clamp(56px, 7vw, 120px); }
.o-pm { max-width: none; } /* нанесение — на всю ширину страницы */
@media (min-width: 1400px) { .o-pm__main .o-pm__card { grid-template-columns: 300px minmax(0, 1fr); } .o-pm__stage { grid-template-columns: 280px minmax(0, 1fr); } }
.o-pcard__meta { margin-bottom: 2px; } .o-pcard__price { line-height: 1.15; } /* артикул и цена ближе друг к другу */
.o-pcard__meta { margin-bottom: 6px; }
@media (max-width: 359.98px) { .o-footer__grid { grid-template-columns: minmax(0, 1fr); } } /* совсем узкий экран — столбиком */
.o-wa { color: #25D366; }
.o-topbar__phone .o-wa { color: var(--brand); } /* в шапке — фирменный зелёный OLIVIN */
.o-footer__phone { display: flex; align-items: center; gap: 8px; }
.o-footer__phone .o-wa { width: 22px; height: 22px; flex: 0 0 auto; }
.o-footer__phone--2 .o-wa { width: 18px; height: 18px; }
.o-row__icon--wa { background: #e7f8ee; }
.o-footer__lead { margin-top: 16px; }
/* Соцсети фирменными цветами */
.o-socials a.o-socials__wa, .o-socials a.o-socials__tg, .o-socials a.o-socials__ig { color: #fff; transition: filter .15s, transform .15s; }
.o-socials a.o-socials__wa { background: #25D366; }
.o-socials a.o-socials__tg { background: #229ED9; }
.o-socials a.o-socials__ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.o-socials a.o-socials__wa:hover, .o-socials a.o-socials__tg:hover, .o-socials a.o-socials__ig:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); }
.o-socials a { width: 36px; height: 36px; border-radius: 11px; }
.o-socials a .o-i { width: 22px; height: 22px; }
.o-socials__wa .o-i, .o-socials__tg .o-i { width: 24px; height: 24px; }
@media (min-width: 992px) { .o-content-layout--full { grid-template-columns: minmax(0, 1fr) 320px; } }
.o-content-layout--full .o-prose { max-width: none; }
/* Казахская версия — без каталога: в шапке вместо поиска и корзины кнопка заявки, в подвале нет колонки «Каталог» */
.o-header__spacer { flex: 1 1 auto; }
@media (max-width: 991.98px) { .o-header__lead { display: none; } }
@media (min-width: 1400px) { .o-footer__grid--nocat { grid-template-columns: 1.2fr repeat(2, 1fr) 1.2fr; } }
.o-sitemap--single { grid-template-columns: minmax(0, 1fr); max-width: 720px; }
/* Обложки презентаций — 16:9, как сами презентации: первая страница PDF встаёт целиком */
.o-pres .o-news__img { aspect-ratio: 16 / 9; }
/* Просмотр презентации по слайдам (assets/ui/pres-viewer.js): слайд целиком в экране, счётчик, лента превью */
.o-slides { margin-top: 8px; }
.o-slides__stage { position: relative; margin: 0 auto; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-card); overflow: hidden; background: var(--surface); box-shadow: 0 1px 0 var(--line, #e3e5e8), 0 12px 32px rgba(29, 29, 27, .08); touch-action: pan-y; }
.o-slides__stage canvas { display: block; width: 100%; height: 100%; }
.o-slides__loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--text-2); font-weight: 600; }
.o-slides__loading[hidden] { display: none; }
.o-slides__loading .o-spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; animation: o-slides-spin .8s linear infinite; }
@keyframes o-slides-spin { to { transform: rotate(360deg); } }
.o-slides__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .92); color: var(--text); box-shadow: 0 4px 16px rgba(0, 0, 0, .15); cursor: pointer; opacity: 0; transition: opacity .2s, background .15s; }
.o-slides__nav--prev { left: 14px; }
.o-slides__nav--next { right: 14px; }
.o-slides__nav .o-i { width: 24px; height: 24px; }
.o-slides.is-ready .o-slides__stage:hover .o-slides__nav:not(:disabled), .o-slides.is-ready .o-slides__nav:focus-visible { opacity: 1; }
.o-slides__nav:hover { background: #fff; }
.o-slides__nav:disabled { cursor: default; }
@media (hover: none) { .o-slides.is-ready .o-slides__nav:not(:disabled) { opacity: .85; width: 38px; height: 38px; } .o-slides__nav--prev { left: 8px; } .o-slides__nav--next { right: 8px; } }
.o-slides__bar { display: flex; align-items: center; gap: 12px; margin: 12px auto 0; }
.o-slides__count { font-weight: 600; white-space: nowrap; }
.o-slides__count b { font-weight: 800; }
.o-slides__hint { flex: 1 1 auto; color: var(--text-3); font-size: 13px; }
.o-slides__thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 10px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.o-slides__thumb { position: relative; flex: 0 0 112px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--surface); cursor: pointer; scroll-snap-align: center; transition: border-color .15s, opacity .15s; opacity: .75; }
.o-slides__thumb:hover { opacity: 1; }
.o-slides__thumb.is-active { border-color: var(--brand, #8CB826); opacity: 1; }
.o-slides__thumb canvas { display: block; width: 100%; height: 100%; }
.o-slides__thumb span { position: absolute; left: 6px; bottom: 6px; min-width: 22px; padding: 1px 6px; border-radius: 6px; background: rgba(29, 29, 27, .72); color: #fff; font-size: 11px; font-weight: 700; text-align: center; }
.o-slides.is-full { background: #1d1d1b; padding: 20px; display: flex; flex-direction: column; justify-content: center; }
.o-slides.is-full .o-slides__bar { color: #fff; width: 100%; }
.o-slides.is-full .o-slides__hint { color: rgba(255, 255, 255, .55); }
.o-slides.is-full .o-slides__thumbs { width: 100%; }
@media (max-width: 767.98px) { .o-slides__hint { display: none; } .o-slides__bar { justify-content: space-between; } .o-slides__thumb { flex-basis: 96px; } }
.o-pres__mobile[hidden] { display: none; }
.o-slides.is-ready .o-slides__stage { cursor: grab; user-select: none; }
.o-slides__stage.is-drag { cursor: grabbing; }
.o-slides__thumbs { cursor: grab; user-select: none; }
.o-slides__thumbs.is-drag { cursor: grabbing; scroll-snap-type: none; }
.o-slides__thumbs.is-drag .o-slides__thumb { cursor: grabbing; }
/* Стрелки на слайде — компактнее */
.o-slides__nav { width: 36px; height: 36px; }
.o-slides__nav .o-i { width: 18px; height: 18px; }
.o-slides__nav--prev { left: 10px; }
.o-slides__nav--next { right: 10px; }
@media (hover: none) { .o-slides.is-ready .o-slides__nav:not(:disabled) { width: 30px; height: 30px; } .o-slides__nav--prev { left: 6px; } .o-slides__nav--next { right: 6px; } }
/* Карточка в поиске: каталог · артикул · остаток — одной строкой; артикул и остаток целиком, не влезает — сокращается название каталога */
.o-pcard__meta--line { flex-wrap: nowrap; align-items: center; gap: 5px; white-space: nowrap; font-size: 12px; }
.o-pcard__meta--line > * { flex: 0 0 auto; }
.o-pcard__src { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; padding: 1px 5px; border-radius: 6px; background: var(--surface); color: var(--text-2); font-size: 11px; font-weight: 600; line-height: 16px; }
