/* EKKSO design overrides for Medusa storefront integration */

/* ---- Палитра: убираем бежевый, оставляем белый + нейтральный серый ---- */
:root {
  --paper: #FBFBFB;   /* фон страницы как на main-new (#fbfbfb), без бежевого */
  --cloud: #F0F1F0;   /* нейтральный серый для proof/чипов (без бежевого) */
}

/* ---- Плавающий хедер ----
   Дизайн использует position:fixed (стекло-навигация плывёт над hero, тень при
   скролле добавляет ekkso.js → .nav.scrolled). Спейсер резервирует высоту нав
   на внутренних страницах; на главной hero подтягивается под нав. */
/* Плавающая «пилюля» нав висит на top≈30 и высотой ≈66 → её низ ≈96px.
   Спейсер на внутренних страницах резервирует этот зазор (контент не под навом);
   на главной hero подтягивается ровно на ту же величину и нав плывёт над баннером. */
:root { --nav-clear: 104px; }
.ekkso-navspacer { height: var(--nav-clear); }
.hero, .hero-static { margin-top: calc(-1 * var(--nav-clear)); }
/* якоря не прячем под фикс-нав */
html { scroll-padding-top: var(--nav-clear); }

/* На всякий случай: контент .reveal виден, даже если JS не отработал */
.reveal { opacity: 1 !important; transform: none !important; }

/* Статичный hero главной (карусель добавим позже) */
.hero-static { position: relative; min-height: 82vh; display: flex; align-items: center; overflow: hidden; }
.hero-static-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.hero-static::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(20,28,18,.85) 22%, rgba(20,28,18,.30) 72%); }
.hero-static-inner { position: relative; z-index: 2; padding: 72px 20px; width: 100%; }
@media (max-width: 640px) { .hero-static { min-height: 76vh; } }

/* ---- Футер вплотную к контенту (как на main-new, без большого отступа) ---- */
.footer { margin-top: 0 !important; }

/* ---- Секция «Нам доверяют» (.proof) — фон как у остальных блоков (не тёмно-серый) ---- */
.proof { background: #FBFBFB; }

/* ---- Каталог: фильтры-сайдбар + грид на десктопе ---- */
@media (min-width: 1024px) {
  .cat-layout { grid-template-columns: 248px 1fr; align-items: start; }
}
.cat-layout .filters { position: sticky; top: calc(var(--nav-clear) + 8px); }
@media (max-width: 1023px) { .cat-layout .filters { position: static; } }

/* ---- Карточки каталога: фото 1:1, без рамки, «воздушные» (как ЗЯ) ---- */
.pcard { border: 0; background: transparent; border-radius: 0; overflow: visible; }
.pcard:hover { transform: translateY(-3px); box-shadow: none; }
.pcard-img { aspect-ratio: 1 / 1; background: #f4f4f2; border-radius: var(--r-card); box-shadow: 0 10px 28px rgba(20,40,30,.02); transition: box-shadow .3s var(--ease), transform .5s var(--spring); }
.pcard:hover .pcard-img { box-shadow: var(--sh-md); }
.pcard-img img { object-fit: cover; }
.pcard-in { padding: 16px 2px 4px; }
.pcard-in h4 { font-size: 15px; line-height: 1.3; margin-bottom: 7px; }
.pcard-meta { margin-bottom: 0; }
.pcard-price { font-size: 17px; }

/* ---- Аккуратная круглая кнопка «+» на карточке каталога ---- */
.pcard .add-btn {
  width: 40px; height: 40px; min-width: 40px; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--taiga-700); color: #fff; box-shadow: 0 4px 12px rgba(8, 92, 15, .22);
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.pcard .add-btn:hover { background: #06480b; transform: translateY(-2px) scale(1.05); box-shadow: 0 7px 18px rgba(8, 92, 15, .3); }
.pcard .add-btn:active { transform: translateY(0) scale(.96); }
.pcard .add-btn:disabled { opacity: .6; }
.pcard .add-btn svg { width: 20px; height: 20px; }

/* ---- Бейдж корзины — зелёный (как кружок наличия в открытой корзине), не рыжий ---- */
.cart-badge { background: var(--taiga-700) !important; color: #fff !important; }

/* ---- Меню: ОДНОРОДНОЕ стекло на весь экран (glass-dark, выезд сверху из ekkso.css).
   Закрытие — клик по стеклу ВНЕ контента (.mm-inner/.mm-foot делают stopPropagation). ---- */
.mobile-menu { padding: 0; }
.mm-inner { width: 100%; max-width: 1288px; margin: 0 auto; padding: 22px 24px 0; }
.mm-foot { width: 100%; max-width: 1288px; margin: auto auto 0; padding: 18px 24px; }

.mm-mega { padding-top: 26px; }
.mm-mega .mm-links { margin-top: 0; }
@media (min-width: 1024px) {
  .mm-mega { display: grid; grid-template-columns: 1.05fr 1fr 1.5fr; gap: 48px; align-items: start; }
}
@media (max-width: 1023px) { .mm-widgets, .mm-promo { display: none !important; } }
/* выравнивание верхушек колонок (нав-ссылки / виджеты / промо) по одной линии */
.mm-col-nav a:first-child { padding-top: 0; }

/* Apple-эмодзи как картинка */
.apple-emoji { display: inline-block; width: 1em; height: 1em; vertical-align: -.14em; object-fit: contain; }

/* Квадратные виджеты: фон-картинка региона + затемнение, белый текст */
.mm-widgets-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mm-widget { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); color: #fff; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.mm-widget:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.35); }
.mm-widget-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.02); transition: transform .6s var(--ease); }
.mm-widget:hover .mm-widget-bg { transform: scale(1.09); }
.mm-widget-bg--grad { background: linear-gradient(155deg, #4a6db5, #21305a); }
.mm-widget-mood { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.mm-widget::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,16,8,.08) 32%, rgba(8,12,6,.84)); z-index: 2; }
.mm-widget-in { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; padding: 13px 14px; }
.mm-widget-sub { white-space: normal; }
.mm-widget-ico { line-height: 1; }
.mm-widget-ico .apple-emoji { width: 26px; height: 26px; }
.mm-widget-temp { font-family: 'Montserrat'; font-weight: 700; font-size: 27px; line-height: 1; margin-top: auto; }
.mm-widget-label { font-size: 12.5px; font-weight: 600; margin-top: 5px; }
.mm-widget-sub { font-size: 10.5px; color: rgba(255,255,255,.75); }

.mm-promo { display: flex; flex-direction: column; gap: 16px; }
.mm-promo-card { display: flex; gap: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 12px; color: #fff; transition: background .2s, transform .2s; }
.mm-promo-card:hover { background: rgba(255,255,255,.13); transform: translateY(-2px); }
.mm-promo-img { width: 88px; height: 112px; flex: none; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.1); }
.mm-promo-img img { width: 100%; height: 100%; object-fit: cover; }
.mm-promo-b { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.mm-promo-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #D9A94B; }
.mm-promo-b h4 { font-size: 15px; font-weight: 600; margin: 5px 0 7px; line-height: 1.3; color: #fff; }
.mm-promo-price { font-family: 'Montserrat'; font-weight: 700; font-size: 17px; color: #fff; }

.mm-banner { position: relative; border-radius: 16px; overflow: hidden; min-height: 156px; display: flex; align-items: flex-end; padding: 18px; color: #fff; }
.mm-banner-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; transition: transform .5s var(--ease); }
.mm-banner:hover .mm-banner-bg { transform: scale(1.05); }
.mm-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,28,18,.1), rgba(20,28,18,.78)); z-index: 1; }
.mm-banner-txt { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 2px; }
.mm-banner-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.82); }
.mm-banner-txt strong { font-size: 20px; font-weight: 600; }
.mm-banner-cta { font-size: 13px; color: #fff; margin-top: 6px; }

/* ---- Авторизация: карточка-слайдер вход/регистрация (стиль codepen), зелёная ---- */
.auth-ov { position: fixed; inset: 0; z-index: 360; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(8, 14, 6, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.auth-ov.open { opacity: 1; pointer-events: auto; }
.auth2 { position: relative; width: 760px; max-width: 100%; min-height: 560px; background: #fff; border-radius: var(--r-card);
  box-shadow: 0 30px 90px rgba(0,0,0,.4); overflow: hidden; transform: translateY(14px) scale(.985); transition: transform .35s var(--spring); }
.auth-ov.open .auth2 { transform: none; }
.auth2-close { position: absolute; top: 14px; right: 14px; z-index: 200; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: rgba(255,255,255,.92); }
.auth2-close svg { width: 20px; height: 20px; }

/* трек: на десктопе исчезает (формы позиционируются абсолютно как в codepen), на мобиле — горизонтальный слайдер */
.auth2-track { display: contents; }

.auth2-form { position: absolute; top: 0; height: 100%; transition: all .6s ease-in-out; }
.auth2-form form { background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; padding: 0 46px; gap: 8px; }
.auth2-signin { left: 0; width: 50%; z-index: 2; }
.auth2-signup { left: 0; width: 50%; opacity: 0; z-index: 1; }
.auth2.active .auth2-signin { transform: translateX(100%); }
.auth2.active .auth2-signup { transform: translateX(100%); opacity: 1; z-index: 5; animation: auth2move .6s; }
@keyframes auth2move { 0%,49.99% { opacity: 0; z-index: 1; } 50%,100% { opacity: 1; z-index: 5; } }
.auth2-form .auth2-h1 { font-size: 24px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.auth2-or { font-size: 12.5px; color: var(--muted); margin: 2px 0; }
.auth2-input { width: 100%; height: 46px; border-radius: var(--r-btn); border: 1.5px solid var(--hairline); background: #f6f7f6; color: var(--ink); padding: 0 14px; font-size: 14.5px; font-family: inherit; transition: border-color .2s, background .2s; }
.auth2-input::placeholder { color: var(--muted); }
.auth2-input:focus { outline: none; border-color: #085c0f; background: #fff; }
.auth2-input[type=date]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .55; }
.auth2-date { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.auth2-date > span { font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding-left: 3px; }
.auth2-submit { width: 100%; height: 48px; margin-top: 8px; border-radius: var(--r-btn); background: #085c0f; color: #fff; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .03em; border: 0; transition: background .2s; }
.auth2-submit:hover { background: #06480b; }
.auth2-err { width: 100%; font-size: 12.5px; color: #a3261f; background: rgba(220,60,40,.1); border-radius: 10px; padding: 8px 11px; text-align: center; }
.auth2-note { width: 100%; font-size: 12.5px; color: #085c0f; background: rgba(8,92,15,.08); border-radius: 10px; padding: 8px 11px; text-align: center; }
.auth2-social { display: flex; gap: 10px; width: 100%; }
.auth2-soc { flex: 1; height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--r-btn); border: 1.5px solid var(--hairline); background: #fff; color: var(--ink); font-weight: 600; font-size: 13.5px; transition: border-color .2s, box-shadow .2s; }
.auth2-soc:hover { border-color: #c9c9c2; box-shadow: var(--sh-sm); }
.auth2-soc-ic { width: 24px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 13px; }
.auth2-soc-ic.ya { background: #fc3f1d; }
.auth2-soc-ic.vk { background: #0077ff; font-size: 10px; }

/* зелёный баннер сверху — только мобильный */
.auth2-mtop { display: none; background: linear-gradient(140deg, #0b5e12, #16280f); color: #fff; padding: 30px 24px 26px; text-align: center; }
.auth2-mtop-in { animation: auth2fade .45s var(--ease); }
.auth2-mtop-in strong { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.auth2-mtop-in span { display: block; font-size: 13px; color: rgba(255,255,255,.85); margin-top: 6px; }
@keyframes auth2fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.auth2-toggle-container { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; overflow: hidden; transition: all .6s ease-in-out; border-radius: 130px 0 0 100px; z-index: 100; }
.auth2.active .auth2-toggle-container { transform: translateX(-100%); border-radius: 0 130px 100px 0; }
.auth2-toggle { background: linear-gradient(150deg, #0b5e12, #1c2812); height: 100%; color: #fff; position: relative; left: -100%; width: 200%; transform: translateX(0); transition: all .6s ease-in-out; }
.auth2.active .auth2-toggle { transform: translateX(50%); }
.auth2-toggle-panel { position: absolute; top: 0; width: 50%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 36px; text-align: center; transform: translateX(0); transition: all .6s ease-in-out; }
.auth2-toggle-panel .auth2-h1 { font-size: 25px; font-weight: 600; }
.auth2-toggle-panel p { font-size: 14px; line-height: 1.5; margin: 14px 0 22px; color: rgba(255,255,255,.85); }
.auth2-toggle-left { transform: translateX(-200%); }
.auth2.active .auth2-toggle-left { transform: translateX(0); }
.auth2-toggle-right { right: 0; transform: translateX(0); }
.auth2.active .auth2-toggle-right { transform: translateX(200%); }
.auth2-ghost { height: 44px; padding: 0 30px; border-radius: var(--r-btn); background: transparent; border: 1.5px solid #fff; color: #fff; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; transition: background .2s; }
.auth2-ghost:hover { background: rgba(255,255,255,.14); }
.auth2-mobile-toggle { display: none; }
@media (max-width: 700px) {
  .auth2 { width: 100%; max-width: 420px; min-height: 0; display: flex; flex-direction: column; }
  .auth2-close { color: #fff; top: 12px; right: 12px; }
  .auth2-toggle-container { display: none; }
  .auth2-mtop { display: block; }
  .auth2-track { display: flex; width: 200%; transition: transform .5s var(--spring); }
  .auth2.active .auth2-track { transform: translateX(-50%); }
  .auth2-form { position: relative !important; flex: 0 0 50%; width: 50% !important; transform: none !important; opacity: 1 !important; z-index: auto !important; animation: none !important; }
  .auth2-form form { height: auto; padding: 22px 22px 4px; }
  .auth2-form .auth2-h1 { display: none; }
  .auth2-mobile-toggle { display: block; width: 100%; padding: 14px; text-align: center; font-size: 13.5px; color: #085c0f; font-weight: 600; background: #f6f7f6; border-top: 1px solid var(--hairline); }
}

/* ---- Сердечко избранного на карточке каталога ---- */
.pcard-fav { position: absolute; top: 10px; right: 10px; z-index: 3; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #4a4a46; box-shadow: 0 2px 8px rgba(0,0,0,0.07); transition: transform .2s var(--ease), background .2s, color .2s; }
.pcard-fav:hover { transform: scale(1.08); color: var(--taiga-700); background: #fff; }
.pcard-fav svg { width: 19px; height: 19px; fill: none; stroke: currentColor; }
.pcard-fav.active { color: #e0245e; }
.pcard-fav.active svg { fill: #e0245e; stroke: #e0245e; }
/* кнопка «Открыть» в панели избранного */
.drawer .fav-open { height: 34px; padding: 0 14px; font-size: 13px; display: inline-flex; align-items: center; }
/* Логотип в мобильном выезжающем меню — кликабелен (на главную) */
.mm-logo-link { display: inline-flex; align-items: center; }

/* Закрытое мобильное меню не должно «выглядывать» сверху: прячем переполнение и
   уводим чуть дальше за край (-110%). Открытое состояние (.mobile-menu.open) перебивает. */
.mobile-menu { overflow-y: auto; transform: translateY(-110%); }

/* ---- Кнопка/переключатель добавления НА изображении (как ЗЯ) ---- */
.add-on-img { position: absolute; right: 12px; bottom: 12px; z-index: 4; }
@media (hover: hover) and (min-width: 768px) {
  .pcard .add-btn.add-on-img { opacity: 0; transform: translateY(8px); transition: opacity .2s var(--ease), transform .2s var(--ease), background .2s, box-shadow .2s; }
  .pcard:hover .add-btn.add-on-img { opacity: 1; transform: none; }
}
.qty-switch { display: inline-flex; align-items: center; height: 40px; border-radius: var(--r-pill); background: #fff; box-shadow: 0 4px 14px rgba(8,92,15,.24); overflow: hidden; }
.qty-switch button { width: 36px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; color: var(--taiga-700); font-weight: 600; background: transparent; transition: background .15s; }
.qty-switch button:hover { background: var(--taiga-100); }
.qty-switch button:disabled { opacity: .5; }
.qty-switch span { min-width: 24px; text-align: center; font-weight: 700; font-size: 14px; color: var(--ink); font-family: 'Montserrat'; }

/* ---- Быстрый предпросмотр (quick add): панель справа (desktop) / шторка снизу (mobile) ---- */
.qa-ov { position: fixed; inset: 0; z-index: 370; background: rgba(8,14,6,.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.qa-ov.open { opacity: 1; pointer-events: auto; }
.qa-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; z-index: 375; display: flex; flex-direction: column; box-shadow: var(--sh-lg); transform: translateX(100%); transition: transform .4s var(--spring); }
.qa-ov.open .qa-panel { transform: none; }
.qa-head { display: flex; justify-content: flex-end; padding: 12px 12px 0; }
.qa-scroll { flex: 1; overflow-y: auto; padding: 4px 24px 18px; }
.qa-img { aspect-ratio: 1 / 1; background: #f4f4f2; border-radius: var(--r-card); overflow: hidden; }
.qa-img img { width: 100%; height: 100%; object-fit: cover; }
.qa-type { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px; }
.qa-name { font-size: 20px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.qa-price { font-size: 22px; font-weight: 700; margin-top: 12px; }
.qa-opts-label { font-size: 12.5px; color: var(--muted); margin: 20px 0 10px; }
.qa-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qa-chip { height: 42px; min-width: 52px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--hairline); background: #fff; font-size: 14px; font-weight: 600; color: var(--ink-soft); transition: all .15s; }
.qa-chip:hover { border-color: var(--taiga-300); }
.qa-chip.active { border-color: var(--taiga-700); background: var(--taiga-100); color: var(--taiga-700); }
.qa-chip.oos { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.qa-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.qa-thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; border: 1.5px solid var(--hairline); background: #f4f4f2; transition: border-color .15s; }
.qa-thumb img { width: 100%; height: 100%; object-fit: cover; }
.qa-thumb.active { border-color: var(--taiga-700); }
.qa-select { display: none; width: 100%; height: 48px; border-radius: 12px; border: 1.5px solid var(--hairline); padding: 0 36px 0 14px; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; -webkit-appearance: none; appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%237C857E' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E") no-repeat right 14px center; }
.qa-more { display: inline-block; margin-top: 20px; font-size: 13.5px; color: var(--muted); }
.qa-more:hover { color: var(--taiga-700); }
.qa-foot { display: flex; gap: 10px; padding: 14px 24px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hairline); }
.qa-add { flex: 1; height: 52px; border-radius: var(--r-btn); background: #085c0f; color: #fff; font-weight: 600; font-size: 15px; border: 0; transition: background .2s; }
.qa-add:hover { background: #06480b; }
.qa-add:disabled { opacity: .6; }
.qa-fav { width: 52px; height: 52px; flex: none; border-radius: var(--r-btn); border: 1.5px solid var(--hairline); display: flex; align-items: center; justify-content: center; color: #4a4a46; transition: all .2s; }
.qa-fav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; }
.qa-fav:hover { border-color: var(--taiga-300); }
.qa-fav.active { color: #e0245e; border-color: #e0245e; }
.qa-fav.active svg { fill: #e0245e; stroke: #e0245e; }
@media (max-width: 600px) {
  .qa-panel { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; transform: translateY(100%); }
  .qa-ov.open .qa-panel { transform: none; }
  .qa-chips { display: none; }
  .qa-select { display: block; }
}

/* ---- Контентные страницы: общий ритм (дизайн terra) ---- */
.content-page { padding-top: 6px; padding-bottom: 48px; }
.content-page .page-hero { margin-top: 6px; }
.content-page .about-split img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }

/* ---- Хлебные крошки: всегда в ОДНУ строку, последний пункт обрезаем … ---- */
.crumbs { display: flex; align-items: center; flex-wrap: nowrap; overflow: hidden; gap: 2px; }
.crumbs a, .crumbs .sep { flex: 0 0 auto; white-space: nowrap; }
.crumbs > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Страница товара (terra .pd) ---- */
/* DOM-порядок: голова(название) → галерея → покупка(цена/варианты) → доп.
   Мобилка стекает в этом порядке (название над фото, цена под фото).
   Десктоп — 2 колонки: галерея слева, голова/покупка/доп — справа. */
.pd, .pd-head, .pd-purchase, .pd-extra, .pd-gallery, .pd-thumbs { min-width: 0; }
.pd-head h1 { font-size: clamp(21px, 2.6vw, 27px); font-weight: 700; line-height: 1.18; letter-spacing: -.01em; margin: 0; color: var(--ink); }
.pd-extra { display: flex; flex-direction: column; }
/* Бренд — ссылка на каталог всех товаров бренда (у описания) */
.pd-brand { display: inline-block; align-self: flex-start; margin: 2px 0 16px; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--taiga-700); text-decoration: none; }
.pd-brand:hover { text-decoration: underline; color: #06480b; }

/* Кастомные разделы товара (богатый HTML: заголовки/списки/картинки/видео) */
.pd-rich { font-size: 15px; line-height: 1.6; color: var(--ink, #1c1c1c); }
.pd-rich h2, .pd-rich h3, .pd-rich h4 { margin: 18px 0 8px; line-height: 1.3; }
.pd-rich h2 { font-size: 19px; } .pd-rich h3 { font-size: 17px; } .pd-rich h4 { font-size: 15px; }
.pd-rich p { margin: 0 0 12px; }
.pd-rich ul, .pd-rich ol { margin: 0 0 12px; padding-left: 20px; }
.pd-rich li { margin: 3px 0; }
.pd-rich img { display: block; max-width: 100%; height: auto; border-radius: var(--r-card, 14px); margin: 14px 0; }
.pd-rich figure { margin: 14px 0; }
.pd-rich figure img { margin: 0; }
.pd-rich .pd-video { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 16px 0; border-radius: var(--r-card, 14px); overflow: hidden; }
.pd-rich .pd-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pd-rich iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-card, 14px); }
.pd-rich a { color: var(--taiga-700); }

/* Видео-слайд галереи: локальный mp4 + минималистичный плеер (плей/пауза центр, звук, фуллскрин) */
.pd-gallery .pd-main { position: relative; }
.pd-video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; overflow: hidden; }
.pd-video video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; cursor: pointer; }
.pd-vc-center { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.5); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(2px);
  transition: opacity .2s var(--ease, ease), transform .2s var(--ease, ease); }
.pd-vc-center svg { width: 30px; height: 30px; }
.pd-vc-center:hover { transform: scale(1.06); background: rgba(0,0,0,.62); }
.pd-video.playing .pd-vc-center { opacity: 0; pointer-events: none; }
.pd-video.playing:hover .pd-vc-center { opacity: 1; pointer-events: auto; }
.pd-vc-bar { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 8px; opacity: 0; transition: opacity .2s var(--ease, ease); }
.pd-video:not(.playing) .pd-vc-bar, .pd-video:hover .pd-vc-bar { opacity: 1; }
.pd-vc-btn { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff;
  display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(2px); transition: background .2s var(--ease, ease); }
.pd-vc-btn:hover { background: rgba(0,0,0,.68); }
.pd-vc-btn svg { width: 18px; height: 18px; }
.pd-thumb--video { position: relative; }
.pd-thumb-vph { display: block; width: 100%; height: 100%; background: #222; }
.pd-thumb-play { position: absolute; inset: 0; margin: auto; width: 24px; height: 24px; display: grid; place-items: center;
  color: #fff; background: rgba(0,0,0,.5); border-radius: 50%; pointer-events: none; }
.pd-thumb-play svg { width: 13px; height: 13px; margin-left: 1px; }

/* Документы: карточки-строки → модалка-превью */
.pd-docs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pd-doc { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--hairline, #e6e6e2);
  border-radius: 14px; background: #fff; cursor: pointer; text-align: left; text-decoration: none; color: inherit;
  transition: border-color .2s var(--ease, ease), box-shadow .2s var(--ease, ease); font: inherit; }
.pd-doc:hover { border-color: var(--taiga-400, #9bbf9b); box-shadow: var(--sh-sm, 0 2px 10px rgba(0,0,0,.06)); }
.pd-doc-ic { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px;
  background: var(--taiga-50, #eef4ee); color: var(--taiga-700, #0a5a12); }
.pd-doc-ic svg { width: 19px; height: 19px; }
.pd-doc-t { flex: 1 1 auto; font-size: 14.5px; font-weight: 600; min-width: 0; }
.pd-doc-arr { flex: 0 0 auto; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--muted, #8a8a84); }

.pd-docs-ov { position: fixed; inset: 0; z-index: 400; background: rgba(20, 24, 20, .62);
  backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.pd-docs-modal { width: min(880px, 100%); max-height: 92vh; background: #fff; border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--sh-lg, 0 20px 60px rgba(0,0,0,.3)); }
.pd-docs-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--hairline, #e6e6e2); }
.pd-docs-title { flex: 1 1 auto; font-weight: 700; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-docs-x { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; border-radius: 8px; }
.pd-docs-x:hover { background: #f1f1ee; }
.pd-docs-x svg { width: 20px; height: 20px; }
.pd-docs-body { flex: 1 1 auto; min-height: 0; overflow: auto; background: #f4f4f2; display: flex; justify-content: center; }
.pd-docs-body iframe { width: 100%; height: 78vh; border: 0; }
.pd-docs-body img { max-width: 100%; height: auto; object-fit: contain; }
@media (max-width: 640px) { .pd-docs-body iframe { height: 70vh; } .pd-docs-modal { max-height: 94vh; } }

@media (min-width: 900px) {
  .pd { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 48px; align-items: start;
    grid-template-areas: "gallery head" "gallery purchase" "gallery extra"; }
  .pd-gallery  { grid-area: gallery; position: sticky; top: 84px; align-self: start; }
  .pd-head     { grid-area: head; }
  .pd-purchase { grid-area: purchase; }
  .pd-extra    { grid-area: extra; }
}

.pd-main { aspect-ratio: 1 / 1; }
.pd-gallery--contain .pd-main { background: #fff; }
.pd-gallery--contain .pd-main img { object-fit: contain; }

/* Миниатюры: мобилка — горизонтальный свайп; десктоп — перенос в сетку (2+ ряда), не скроллятся вбок */
.pd-thumbs { overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.pd-thumbs::-webkit-scrollbar { height: 4px; }
.pd-thumb { flex: 0 0 auto; }
@media (min-width: 900px) {
  .pd-thumbs { flex-wrap: wrap; overflow-x: visible; }
}

/* Рекомендации/серия («Продукция из Пихты», «Похожие товары») — ряд как у ЗЯ:
   заголовок + стрелки ← → (десктоп), крупные карточки, листается вбок; на мобиле
   одна карточка выглядывает за край (подсказка к свайпу). Десктоп + мобилка. */
.pd-rec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.pd-rec-head .h2 { margin: 0; }
.pd-rec-arrows { display: none; gap: 8px; flex: 0 0 auto; }
@media (min-width: 1080px) { .pd-rec-arrows { display: flex; } }
.pd-rec-arrows button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--hairline);
  background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color .18s, color .18s, transform .18s; }
.pd-rec-arrows button:hover { border-color: var(--taiga-300); color: var(--taiga-700); }
.pd-rec-arrows svg { width: 20px; height: 20px; }
.pd-rec { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }
.pd-rec::-webkit-scrollbar { display: none; }
.pd-rec .pcard { flex: 0 0 auto; width: 80vw; max-width: 340px; scroll-snap-align: start; }
@media (min-width: 700px) { .pd-rec .pcard { width: 300px; max-width: none; } }
@media (min-width: 1080px) { .pd-rec .pcard { width: calc((100% - 60px) / 4); } }  /* 4 в ряд, gap 20 */
/* на случай карточки-героя — нейтрализуем 2×2 в ленте рекомендаций */
.pd-rec .pcard--featured { grid-column: auto; grid-row: auto; display: block; }
.pd-rec .pcard--featured .pcard-img { aspect-ratio: 1 / 1; }

/* Цена под галереей + задел под бонусы (E-Coins) */
.pd-price { margin: 2px 0 8px; }
.pd-price-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pd-price-val { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: clamp(26px, 4.5vw, 32px); color: var(--ink); line-height: 1.1; }
.pd-old { color: var(--muted); text-decoration: line-through; font-weight: 600; font-size: 18px; }
/* E-Coins — янтарная пилюля у цены справа */
/* E-Coins у цены — единый стиль с ЛК: число + зелёный кружок */
.pd-ecoins { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px;
  border-radius: 999px; background: #eef4e3; color: var(--accent, #3e5828);
  font-size: 14px; font-weight: 700; white-space: nowrap; }
.pd-ecoins .ec-dot { width: 15px; height: 15px; }

/* Плашка покупки */
.pd-buybar { display: flex; gap: 10px; align-items: center; margin-top: 16px; }
.pd-buybar .qty { height: 52px; border-radius: var(--r-btn); border-width: 1.5px; }
.pd-buybar .qty button { width: 48px; font-size: 20px; }
.pd-buybar .qty span { width: 38px; font-size: 16px; }
.pd-ozon-alt { display: inline-block; margin-top: 10px; }
/* Счётчик «− N +»: до добавления скрыт (кнопка во всю ширину); после — плавно
   выезжает слева, кнопка ужимается (flex:1 пересчитывается под анимацию max-width). */
.pd-qtybox { display: flex; flex: 0 0 auto; overflow: hidden; max-width: 0; opacity: 0; margin-right: -10px;
  transition: max-width .32s var(--ease, cubic-bezier(.4, 0, .2, 1)), opacity .26s, margin-right .32s var(--ease, cubic-bezier(.4, 0, .2, 1)); }
.pd-buybar.added .pd-qtybox { max-width: 160px; opacity: 1; margin-right: 0; }

/* «Сохранить» — иконка-сердце в размер кнопок */
.pd-fav { width: 52px; height: 52px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--hairline); border-radius: var(--r-btn); color: var(--ink); background: #fff;
  transition: border-color .18s, color .18s, transform .18s; }
.pd-fav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.pd-fav:hover { border-color: var(--taiga-300); color: var(--taiga-700); transform: translateY(-1px); }
.pd-fav.active { color: #e0245e; border-color: #e0245e; }
.pd-fav.active svg { fill: #e0245e; stroke: #e0245e; }

/* Мобилка: плашка «В корзину» фиксируется внизу с блюром (как растянутый хэдер) */
@media (max-width: 899px) {
  .pd-gallery { position: static; }
  .pd-buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; margin: 0;
    padding: 11px 16px calc(11px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
    border-top: 1px solid rgba(0, 0, 0, .07); box-shadow: 0 -8px 24px rgba(0, 0, 0, .07); }
  .pd-buybar .btn { min-width: 0; flex: 1; }
  .content-page { padding-top: 0; padding-bottom: 86px; }
  .content-page .crumbs { margin-top: 0; padding-top: 0; }
  /* мобилка: поджать вертикаль — gap секций и отступ снизу под «Авторизуйся» */
  .pd { gap: 16px; }
  .pd-price { margin-bottom: 0; }
  .pd-price-row { padding-top: 10px; padding-bottom: 10px; }
}

/* ---- Контентные страницы (О нас / Доставка / Контакты) ---- */
.info-page { max-width: 760px; }
.info-title { margin: 2px 0 14px; }
.info-lead { font-size: clamp(16px, 2vw, 19px); color: var(--ink-soft); line-height: 1.5; margin-bottom: 8px; }
.info-body { font-size: 15.5px; color: var(--ink-soft); line-height: 1.6; }
.info-body h2 { font-size: 21px; font-weight: 600; color: var(--ink); margin: 30px 0 12px; }
.info-body p { margin: 0 0 14px; }
.info-body ul { margin: 0 0 14px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.info-body ul li { position: relative; padding-left: 22px; }
.info-body ul li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--taiga-500); }
.info-body a { color: var(--taiga-700); text-decoration: underline; }
.info-body a:hover { color: #06480b; }
.info-note { margin-top: 24px; padding: 14px 16px; background: var(--cloud); border-radius: 12px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.info-body .btn { text-decoration: none; }

/* ---- Форма-заявка (контакты / партнёры / сотрудничество) ---- */
.lead-form { display: flex; flex-direction: column; gap: 14px; max-width: 520px; margin: 6px 0 4px; }
.lead-field { display: flex; flex-direction: column; gap: 6px; }
.lead-field > span { font-size: 13px; font-weight: 600; color: var(--ink); }
.lead-field input, .lead-field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line, #e4e7e0); border-radius: var(--r-btn, 14px);
  background: #fff; font: inherit; font-size: 15px; color: var(--ink); transition: border-color .15s; resize: vertical; }
.lead-field input:focus, .lead-field textarea:focus { outline: none; border-color: var(--taiga-500); }
.lead-form .btn { align-self: flex-start; margin-top: 4px; }
.lead-ok { padding: 18px 20px; background: var(--taiga-100); border: 1px solid var(--taiga-300);
  border-radius: 16px; color: var(--taiga-700); font-size: 15px; max-width: 520px; }

/* ---- Журнал ---- */
.journal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 6px; }
.jcard { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 18px;
  background: var(--cloud); text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
a.jcard:hover { transform: translateY(-3px); box-shadow: var(--sh-md); background: #fff; }
.jcard-cat { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--taiga-700); }
.jcard-title { font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.jcard-meta { font-size: 13px; color: var(--muted); margin-top: auto; }
.jcard--soon { opacity: .62; cursor: default; }
@media (max-width: 640px) { .journal-grid { grid-template-columns: 1fr; } }

/* ---- Статья ---- */
.article-body { font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
.article-body h2 { font-size: 22px; font-weight: 600; color: var(--ink); margin: 32px 0 12px; }
.article-body p { margin: 0 0 16px; }
.article-body ul { margin: 0 0 16px; }

/* ---- Отзывы на товаре ---- */
.rv { max-width: 880px; margin: 0 auto; }
.rv-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.rv-title { font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; color: var(--ink); }
.rv-add { height: 42px; padding: 0 18px; white-space: nowrap; }
@media (max-width: 640px) {
  .rv-head { row-gap: 10px; }
  .rv-add { height: 38px; padding: 0 14px; font-size: 14px; }
}
.rv-stars { display: inline-flex; gap: 2px; }
.rv-star { padding: 0; background: none; border: 0; line-height: 0; color: #d8ddd2; cursor: default; }
.rv-star svg { width: 17px; height: 17px; fill: currentColor; }
.rv-star.on { color: #f0a500; }
.rv-stars--pick .rv-star { cursor: pointer; }
.rv-stars--pick .rv-star svg { width: 26px; height: 26px; }
.rv-form { display: flex; flex-direction: column; gap: 14px; padding: 20px; background: var(--cloud);
  border-radius: 18px; margin-bottom: 24px; max-width: 560px; }
.rv-field { display: flex; flex-direction: column; gap: 6px; }
.rv-field > span { font-size: 13px; font-weight: 600; color: var(--ink); }
.rv-field input, .rv-field textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line, #e4e7e0); border-radius: var(--r-btn, 14px);
  background: #fff; font: inherit; font-size: 15px; color: var(--ink); resize: vertical; }
.rv-field input:focus, .rv-field textarea:focus { outline: none; border-color: var(--taiga-500); }
.rv-form .btn { align-self: flex-start; }
.rv-err { color: #c0392b; font-size: 13px; }
.rv-ok { margin: 14px 0 4px; padding: 14px 16px; background: var(--taiga-100); border: 1px solid var(--taiga-300); border-radius: 14px; color: var(--taiga-700); font-size: 14.5px; }
.rv-empty { color: var(--muted); font-size: 15px; padding: 8px 0 4px; }
.rv-list { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.rv-item { padding: 18px 0; border-top: 1px solid var(--line, #ececec); }
.rv-item:first-child { border-top: 0; }
.rv-item-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 7px; }
.rv-author { font-weight: 600; color: var(--ink); }
.rv-date { font-size: 13px; color: var(--muted); margin-left: auto; }
.rv-item-title { font-weight: 600; margin-bottom: 4px; color: var(--ink); }
.rv-item-text { color: var(--ink-soft); line-height: 1.6; white-space: pre-wrap; }
.rv-note { margin-top: 22px; padding: 12px 14px; background: var(--cloud); border-radius: 12px;
  font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ============ Каталог в стиле Gold Apple ============ */
/* Баннер — широкий, во всю ширину, уходит под плавающий хэдер (как hero) */
.cat-banner { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center;
  margin-top: calc(-1 * var(--nav-clear)); padding-top: var(--nav-clear);
  min-height: calc(clamp(230px, 23vw, 360px) + var(--nav-clear)); }
.cat-banner-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.cat-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,30,12,.82), rgba(12,30,12,.42) 58%, rgba(12,30,12,.1)); }
.cat-banner-in { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; color: #fff; }
.cat-banner-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.cat-banner-h { font-size: clamp(26px, 3.6vw, 42px); font-weight: 600; letter-spacing: -.015em; margin: 8px 0 0; line-height: 1.1; }
.cat-banner-p { font-size: clamp(14px, 1.4vw, 16px); color: rgba(255,255,255,.9); margin-top: 12px; line-height: 1.45; max-width: 540px; }
@media (max-width: 640px) { .cat-banner { min-height: calc(190px + var(--nav-clear)); } }

/* Тип/категория на карточке (как у ЗЯ) */
.pcard-type { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; line-height: 1.2; }

/* Промо-плитка в потоке грида */
.cat-promo { position: relative; grid-column: span 2; border-radius: var(--r-card); overflow: hidden; display: flex; align-items: flex-end; isolation: isolate; color: #fff; min-height: 240px; }
.cat-promo-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transition: transform .6s var(--spring); }
.cat-promo:hover .cat-promo-bg { transform: scale(1.06); }
.cat-promo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,28,12,.05), rgba(10,22,8,.82)); }
.cat-promo-in { padding: 22px 24px; }
.cat-promo-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.cat-promo-in strong { display: block; font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; line-height: 1.15; margin: 6px 0 12px; max-width: 340px; }
.cat-promo-cta { font-size: 13.5px; font-weight: 600; }

/* Тулбар */
.cat-toolbar { display: flex; align-items: center; gap: 14px; padding: 14px 0; position: sticky; top: 62px; z-index: 40; }
.cat-filtbtn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: var(--r-btn); border: 1.5px solid var(--hairline); background: var(--surface); font-weight: 600; font-size: 14px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.cat-filtbtn:hover { border-color: var(--taiga-300); box-shadow: var(--sh-sm); }
.cat-filtbtn svg { width: 18px; height: 18px; }
.cat-filtbtn-c { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #085c0f; color: #fff; font-size: 12px; font-weight: 700; }
.cat-count { font-size: 13.5px; color: var(--muted); }
.cat-toolbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.cat-sort { height: 42px; padding: 0 34px 0 14px; border-radius: var(--r-btn); border: 1.5px solid var(--hairline); font-family: inherit; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; -webkit-appearance: none; appearance: none;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%237C857E' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E") no-repeat right 13px center; }
.cat-sort:focus { outline: none; border-color: var(--taiga-600); }
.cat-density { display: flex; gap: 2px; border: 1.5px solid var(--hairline); border-radius: var(--r-btn); padding: 3px; background: var(--surface); }
.cat-density button { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: var(--muted); transition: background .2s, color .2s; }
.cat-density button svg { width: 18px; height: 18px; }
.cat-density button.active { background: var(--taiga-100); color: var(--taiga-700); }
@media (max-width: 640px) { .cat-count { display: none; } .cat-density { display: none; } }

/* Чипы активных фильтров */
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 14px; }
.cat-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--r-pill); background: var(--taiga-100); color: var(--taiga-700); font-size: 13px; font-weight: 600; }
.cat-chip span { opacity: .65; font-size: 15px; line-height: 1; }
.cat-chip:hover { background: #d9e3c8; }
.cat-chip--clear { background: transparent; color: var(--muted); text-decoration: underline; }
.cat-chip--clear:hover { background: transparent; color: var(--ink); }

/* Ширина каталога — контейнер по центру (чуть шире ЗЯ), НЕ во всю ширину */
/* ширина каталога = ширине контейнера карточки товара (.wrap 1240px) */
.cat-page { max-width: 1240px; padding-left: clamp(16px, 3vw, 32px); padding-right: clamp(16px, 3vw, 32px); }

/* Мобильный хэдер: убираем лого, крупнее иконки (как ЗЯ) */
@media (max-width: 640px) {
  .nav .nav-logo { display: none; }
  .nav .icon-btn { width: 48px; height: 48px; }
  .nav .icon-btn svg { width: 26px; height: 26px; }
  .nav .burger svg { width: 28px; height: 28px; }
  .nav-actions { gap: 2px; }
}

/* Тост — справа сверху (как ЗЯ), а не снизу по центру */
.toast { left: auto; right: 20px; bottom: auto; top: calc(var(--nav-clear) + 6px); transform: translateY(-18px); }
.toast.show { transform: translateY(0); }
/* Лого в мобильном меню — крупнее, пропорционально разделам */
.mm-logo { height: 34px; }

/* Карточка: название в 2 строки (ровно), меньше пустого отступа у цены */
.pcard-in h4 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.55em; }
.pcard-foot { margin-top: 0; }

/* Подменю типа «Ароматерапии»: вкладки-чипы (Эфирные масла / Гидролаты / Роллеры) */
.cat-typetabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 18px; }
.cat-typetab { padding: 8px 16px; border-radius: var(--r-pill, 999px); border: 1.5px solid var(--hairline, #e6e6e2);
  background: #fff; color: var(--ink, #1c1c1c); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: border-color .2s var(--ease, ease), background .2s var(--ease, ease), color .2s var(--ease, ease); }
.cat-typetab:hover { border-color: var(--taiga-400, #9bbf9b); }
.cat-typetab.active { background: var(--taiga-700, #0a5a12); border-color: var(--taiga-700, #0a5a12); color: #fff; }

/* Сетка: 4 колонки (как ЗЯ), крупные карточки, много воздуха; dense — под крупные плитки */
.cat-grid { gap: 46px 28px; grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; }
@media (min-width: 700px) {
  .catview--comfy .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .catview--compact .cat-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1080px) {
  .catview--comfy .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .catview--compact .cat-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Крупная (featured) карточка 2×2 — на всех экранах (как LANEIGE у ЗЯ) */
.pcard--featured { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.pcard--featured .pcard-img { aspect-ratio: auto; flex: 1 1 auto; min-height: 0; }
.pcard--featured .pcard-in { flex: 0 0 auto; }
/* Текст и цена крупной карточки — ровно как у обычных (не увеличиваем) */
.pcard--featured .pcard-in h4 { font-size: 15px; line-height: 1.3; }
.pcard--featured .pcard-type { font-size: 11px; }
.pcard--featured .pcard-price { font-size: 17px; }

/* Фото одежды 3:4 запекаются в квадрат 1:1 на сервере (sharp, см. localize-media:
   обрезка кромки + достройка краевым цветом) → показываются обычным cover, без
   боковин. Спец-класс .pcard--contain больше не нужен. */
/* Шахматка: на 4-колоночной раскладке герои чередуют стороны */
@media (min-width: 1080px) {
  .catview--comfy .pcard--featured-l { grid-column: 1 / span 2; }
  .catview--comfy .pcard--featured-r { grid-column: 3 / span 2; }
}

/* Показать ещё / пусто */
.cat-more { display: flex; justify-content: center; margin-top: 30px; }
.cat-more .btn { min-width: 220px; height: 50px; }
.cat-empty { text-align: center; padding: 56px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* Бейдж на карточке */
.pbadge2 { display: inline-block; padding: 4px 9px; border-radius: var(--r-pill); background: #085c0f; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; box-shadow: var(--sh-sm); }

/* Drawer фильтров (слева) */
.cat-drawer { position: fixed; top: 0; left: 0; bottom: 0; width: 380px; max-width: 90vw; z-index: 330; background: var(--surface); display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .4s var(--spring); box-shadow: var(--sh-lg); }
.cat-drawer.open { transform: none; }
.cat-drawer-body { flex: 1; overflow-y: auto; padding: 4px 22px 16px; }
.cat-drawer-foot { display: flex; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--hairline); }
.cat-drawer-foot .btn { flex: 1; height: 46px; }
.cf { padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.cf:last-child { border-bottom: 0; }
.cf-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.cf-cats { display: flex; flex-direction: column; gap: 4px; }
.cf-cat { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 10px; font-size: 14px; color: var(--ink-soft); transition: background .15s; }
.cf-cat:hover { background: var(--cloud); }
.cf-cat.active { background: var(--taiga-100); color: var(--taiga-700); font-weight: 600; }
.cf-cat-c { color: var(--muted); font-size: 12.5px; }
.cf-opts { display: flex; flex-direction: column; gap: 2px; max-height: 240px; overflow-y: auto; }
.cf-check { display: flex; align-items: center; gap: 10px; padding: 7px 4px; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.cf-check input { width: 18px; height: 18px; accent-color: #085c0f; flex: none; }
.cf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-chipbtn { height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1.5px solid var(--hairline); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-soft); transition: all .15s; }
.cf-chipbtn:hover { border-color: var(--taiga-300); }
.cf-chipbtn.active { background: var(--taiga-700); border-color: var(--taiga-700); color: #fff; }

/* Дабл-ползунок цены */
.cf-range { position: relative; height: 30px; }
.cf-trk { position: absolute; left: 0; right: 0; top: 13px; height: 4px; border-radius: 2px; background: var(--hairline); }
.cf-trk-fill { position: absolute; top: 13px; height: 4px; border-radius: 2px; background: #085c0f; }
.cf-range input[type=range] { position: absolute; left: 0; top: 0; width: 100%; height: 30px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.cf-range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid #085c0f; box-shadow: var(--sh-sm); cursor: pointer; }
.cf-range input[type=range]::-moz-range-thumb { pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid #085c0f; cursor: pointer; }
.cf-range-vals { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--ink); }

/* ---- Кнопка «Меню» в навигации (открывает боковое меню) — как обычная ссылка ---- */
.nav-links .nav-menu-btn {
  font-family: inherit; font-size: 15px; font-weight: 500; color: var(--ink);
  background: none; border: 0; padding: 4px 0; cursor: pointer; position: relative;
}
.nav-links .nav-menu-btn::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--taiga-700); transition: width .3s var(--ease);
}
.nav-links .nav-menu-btn:hover::after { width: 100%; }

/* стаггер для доп. пунктов бокового меню */
.mobile-menu.open .mm-links a:nth-child(6) { transition-delay: .38s; }
.mobile-menu.open .mm-links a:nth-child(7) { transition-delay: .44s; }

/* ---- Счётчик товаров в шапке drawer ---- */
.drawer-head h3 .cd-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; margin-left: 8px; padding: 0 6px;
  border-radius: 11px; background: var(--taiga-700); color: #fff;
  font-size: 12px; font-weight: 700; vertical-align: middle;
}
/* ---- Шкала «до бесплатной доставки» в drawer-корзине ---- */
.ship-nudge {
  display: flex; flex-direction: column; gap: 9px;
  font-size: 13px; line-height: 1.45; color: var(--ink-soft);
  background: var(--taiga-100); border-radius: 14px; padding: 12px 14px;
}
.ship-nudge .sn-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.ship-nudge .sn-row b {
  font-family: 'Montserrat'; font-size: 14px; font-weight: 700;
  color: var(--taiga-800); white-space: nowrap;
}
.ship-nudge .bar {
  display: block; height: 6px; margin: 0; border-radius: 999px;
  background: #fff; box-shadow: inset 0 0 0 1px rgba(28, 40, 18, .07);
  overflow: hidden;
}
.ship-nudge .bar i {
  display: block; height: 100%; min-width: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--taiga-500), var(--taiga-700));
  transition: width .45s var(--spring);
}
.ship-nudge.ok {
  flex-direction: row; align-items: center; gap: 10px;
  font-weight: 600; color: var(--taiga-800);
}
.ship-nudge.ok .apple-emoji { flex: none; }

/* ==== Контент-страницы паритета (#23): FAQ, посадочные подборки, «Где купить» ==== */

/* Посадочный грид товаров (без тулбара каталога) */
.landing-grid { display: grid; gap: 40px 24px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .landing-grid { grid-template-columns: repeat(3, 1fr); } }

/* FAQ-аккордеон */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.faq-item {
  border: 1px solid var(--line, #e5e1d8); border-radius: 14px;
  background: #fff; overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 48px 18px 20px;
  font-weight: 600; font-size: 16px; line-height: 1.35; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 20px; top: 50%;
  width: 10px; height: 10px; border-right: 2px solid var(--taiga-700, #3e5828);
  border-bottom: 2px solid var(--taiga-700, #3e5828);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease, ease);
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-item[open] { border-color: var(--taiga-700, #3e5828); }
.faq-a { padding: 0 20px 18px; color: var(--ink-soft, #4a4a44); font-size: 15px; line-height: 1.6; }
.faq-a p { margin: 0 0 10px; }
.faq-a ul { margin: 0 0 10px; padding-left: 20px; }
.faq-a li { margin: 4px 0; }
.faq-a a { color: var(--taiga-700, #3e5828); text-decoration: underline; }

/* «Где купить» */
.buy-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .buy-grid { grid-template-columns: repeat(3, 1fr); } }
.buy-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 26px 24px; border: 1px solid var(--line, #e5e1d8); border-radius: 16px;
  background: #fff; color: inherit; text-decoration: none;
  transition: border-color .25s var(--ease, ease), transform .25s var(--ease, ease), box-shadow .25s var(--ease, ease);
}
a.buy-card:hover { border-color: var(--taiga-700, #3e5828); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(35, 46, 24, .08); }
.buy-card p { margin: 0; color: var(--ink-soft, #6a6a62); font-size: 14px; }
.buy-card--main {
  grid-column: 1 / -1; background: var(--taiga-700, #3e5828); color: #fff; border-color: transparent;
}
.buy-card--main p { color: rgba(255, 255, 255, .82); max-width: 520px; }
.buy-card--soon { opacity: .62; }
.buy-go { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 600; color: var(--taiga-700, #3e5828); }
.buy-soon {
  margin-top: auto; padding: 3px 10px; border-radius: 999px;
  background: var(--paper, #f4f1ea); font-size: 12px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-soft, #6a6a62);
}
@media (max-width: 640px) {
  .buy-grid { grid-template-columns: 1fr; }
  .landing-grid { gap: 28px 14px; }
}

/* ==== Подбор по цели: фото товара — фикс 3:4, как большие карточки каталога.
   contain, не cover: у многих фото (коробка+флакон) композиция до краёв кадра ==== */
.gp-vis { width: 96px; aspect-ratio: 3 / 4; min-height: 0; align-self: center; background: #fff; }
.gp-vis img { object-fit: contain; padding: 4px; }

/* ==== Отзывы на главной: ссылка на товар, где оставлен отзыв ==== */
.reviewer .rev-product {
  display: block; font-size: 12.5px; color: var(--taiga-700, #3e5828);
  text-decoration: underline; text-underline-offset: 2px; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.reviewer > div { min-width: 0; }
/* кругляш-аватар не сжимается текстом соседа (иначе овал на моб/планшете) */
.reviewer .av, .av { flex-shrink: 0; }

/* тост — поверх ЛЮБЫХ слоёв (оверлей .ov и попап авторизации живут на 300+) */
.toast { z-index: 2000; }

/* «Наука природы» на главной: описание в карточке — максимум 2 строки, дальше многоточие */
#science .art-body p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==== Маркетплейс-товары (#41): кнопки вместо «В корзину» + строка «Также на…» ==== */
.pd-buybar--mp { align-items: stretch; }
.pd-mp-btns { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.pd-mp { text-align: center; }
.pd-mp--wb { background: #481173; border-color: #481173; }
.pd-mp--wb:hover { background: #5a1b8c; border-color: #5a1b8c; }
.pd-mp--ym { background: #21201f; border-color: #21201f; }
.pd-mp--ym:hover { background: #3a3836; border-color: #3a3836; }
.pd-mp-alt { margin-top: 10px; font-size: 13.5px; color: var(--muted, #6a6a62); }
.reviewer .rev-product:hover { color: var(--taiga-900, #2f4420); }

/* ==== Статья журнала: TL;DR, дата обновления, FAQ-блок ==== */
.article-updated { font-size: 13px; color: var(--muted, #6a6a62); margin: 0 0 14px; }
.article-tldr {
  margin: 22px 0 6px; padding: 16px 20px; border-radius: 14px;
  background: var(--taiga-50, #eef3e6); border-left: 3px solid var(--taiga-700, #3e5828);
}
.article-tldr b { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--taiga-700, #3e5828); margin-bottom: 6px; }
.article-tldr p { margin: 0; font-size: 15.5px; line-height: 1.55; }
.article-faq { margin-top: 34px; }
.article-faq h2 { margin-bottom: 14px; }

/* ==== Статья журнала: блоки Тильда-стиля (изображение/видео/введение/врезка/код/таблица) ==== */
.art-figure { margin: 26px 0; }
.art-figure img { width: 100%; border-radius: 16px; display: block; }
.art-figure figcaption { margin-top: 8px; font-size: 13px; color: var(--muted, #6a6a62); text-align: center; }
.art-video { position: relative; aspect-ratio: 16/9; margin: 26px 0; border-radius: 16px; overflow: hidden; background: #000; }
.art-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.art-video-file { width: 100%; border-radius: 16px; margin: 26px 0; display: block; background: #000; }
.art-lead-p { font-size: 19px !important; line-height: 1.6; color: var(--ink, #23281e); font-weight: 500; }
.art-note {
  margin: 22px 0; padding: 16px 20px; border-radius: 14px;
  background: var(--paper, #f4f1ea); border-left: 3px solid var(--taiga-700, #3e5828);
  font-size: 15.5px; line-height: 1.55;
}
.art-divider { border: 0; border-top: 1px solid var(--line, #e5e1d8); margin: 34px auto; width: 120px; }
.art-embed { margin: 22px 0; }
.art-embed iframe { max-width: 100%; }
.art-code {
  margin: 22px 0; padding: 16px 20px; border-radius: 12px; overflow-x: auto;
  background: #1f241b; color: #e8ecdf; font-size: 13.5px; line-height: 1.55;
}
.art-code code { font-family: "Roboto Mono", ui-monospace, monospace; white-space: pre; }
.art-table-wrap { margin: 22px 0; overflow-x: auto; }
.art-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.art-table th, .art-table td { padding: 10px 14px; border: 1px solid var(--line, #e5e1d8); text-align: left; vertical-align: top; }
.art-table th { background: var(--paper, #f4f1ea); font-weight: 600; }

/* ---- Гейт обязательной авторизации на чекауте: размытый скелет + попап ---- */
.checkout-gate { position: relative; min-height: 70vh; }

/* размытый скелет предчекаута */
.cg-skeleton { display: grid; grid-template-columns: 1fr; gap: 40px; max-width: 1240px; margin: 0 auto; padding: 40px 20px 80px; filter: blur(5px); opacity: .6; pointer-events: none; user-select: none; }
@media (min-width: 768px) { .cg-skeleton { grid-template-columns: 1fr 416px; gap: 64px; } }
.cg-sk-main { display: flex; flex-direction: column; gap: 20px; }
.cg-sk-card { border: 1px solid #ececec; border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.cg-sk-h { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.cg-sk-step { width: 26px; height: 26px; border-radius: 50%; background: #e8ede0; flex: none; }
.cg-sk-bar { height: 12px; border-radius: 6px; background: linear-gradient(90deg, #eee, #f6f6f4, #eee); }
.cg-sk-bar.tall { height: 20px; }
.cg-sk-bar.w40 { width: 40%; } .cg-sk-bar.w50 { width: 50%; } .cg-sk-bar.w60 { width: 60%; }
.cg-sk-bar.w70 { width: 70%; } .cg-sk-bar.w75 { width: 75%; } .cg-sk-bar.w80 { width: 80%; }
.cg-sk-bar.w90 { width: 90%; } .cg-sk-bar.w100 { width: 100%; }
.cg-sk-side .cg-sk-card { gap: 14px; }
.cg-sk-row { display: flex; align-items: center; gap: 12px; }
.cg-sk-thumb { width: 46px; height: 46px; border-radius: 10px; background: #f0f0ee; flex: none; }

/* fallback-CTA поверх скелета, когда попап закрыт */
.cg-cta { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; }
.cg-cta h1 { font-size: 26px; line-height: 1.2; color: var(--ink, #1c1c1c); margin: 0 0 12px; }
.cg-cta p { max-width: 460px; color: var(--ink-soft, #3a3a3a); font-size: 15px; line-height: 1.6; margin: 0 0 24px; }
.cg-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.cg-btn { padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer; border: 1.5px solid var(--accent, #3e5828); background: var(--accent, #3e5828); color: #fff; transition: opacity .2s; }
.cg-btn:hover { opacity: .88; }
.cg-btn.cg-ghost { background: transparent; color: var(--accent, #3e5828); }
.cg-back { display: inline-block; color: var(--muted, #999); font-size: 14px; text-decoration: none; }
.cg-back:hover { color: var(--ink, #1c1c1c); }

/* ---- Оплата баллами (E-Coins) на шаге «оплата», по образцу ЗЯ ---- */
.ebw { border-bottom: 1px solid #e5e5e5; padding: 4px 0 18px; margin-bottom: 14px; }
.ebw-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ebw-title { font-size: 16px; font-weight: 600; color: var(--ink, #1c1c1c); }
.ebw-switch { position: relative; width: 44px; height: 24px; border-radius: 999px; background: #ddd; transition: background .2s var(--ease, ease); flex: none; cursor: pointer; }
.ebw-switch i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .2s var(--ease, ease); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.ebw-switch.on { background: var(--accent, #3e5828); }
.ebw-switch.on i { left: 23px; }
.ebw-switch:disabled { opacity: .5; cursor: not-allowed; }
.ebw-body { margin-top: 14px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ebw-card { width: 104px; height: 66px; object-fit: cover; border-radius: 10px; flex: none; box-shadow: 0 4px 14px rgba(20,40,30,.14); }
.ebw-ctrl { flex: 1 1 220px; display: flex; align-items: center; gap: 14px; min-width: 0; }
.ebw-col { display: flex; flex-direction: column; gap: 1px; flex: none; }
.ebw-col b { font-size: 16px; }
.ebw-col--right { text-align: right; }
.ebw-cap { font-size: 11.5px; color: var(--muted, #7a7a7a); }
.ebw-range { flex: 1 1 auto; min-width: 90px; -webkit-appearance: none; appearance: none; height: 3px; border-radius: 3px; outline: none; cursor: pointer;
  background: linear-gradient(to right, var(--accent, #3e5828) var(--p, 100%), #dcdcd7 var(--p, 100%)); }
.ebw-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--accent, #3e5828); box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.ebw-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--accent, #3e5828); box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.ebw-range:disabled { opacity: .5; cursor: not-allowed; }
.ebw-foot { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.ebw-note { font-size: 12.5px; color: var(--muted, #7a7a7a); }
.ebw-apply { padding: 9px 22px; font-size: 13px; border-radius: 999px; }
.ebw-apply:disabled { opacity: .45; cursor: not-allowed; }
.ebw-err { font-size: 12px; color: #b3261e; margin-top: 8px; }
@media (max-width: 640px) {
  .ebw-body { gap: 12px; }
  .ebw-card { width: 88px; height: 56px; }
}


/* ============ Личный кабинет EKKSO ============ */
.lk { display: flex; flex-direction: column; gap: 28px; }
.lk-h1 { font-size: 28px; font-weight: 700; color: var(--ink, #1c1c1c); }
.lk-nav .lk-nav-user { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.lk-nav .lk-nav-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent, #3e5828); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.lk-nav .lk-nav-name { font-weight: 600; font-size: 15px; color: var(--ink, #1c1c1c); }
.lk-nav-list { display: flex; flex-direction: column; gap: 2px; }
.lk-nav-list li a, .lk-nav-list li .lk-nav-link { display: block; padding: 9px 0; font-size: 15px; color: var(--ink-soft, #3a3a3a); background: none; border: none; cursor: pointer; text-align: left; width: 100%; transition: color .15s; }
.lk-nav-list li a:hover, .lk-nav-list li .lk-nav-link:hover { color: var(--accent, #3e5828); }
.lk-nav-list .lk-nav-sep { margin-top: 10px; padding-top: 10px; border-top: 1px solid #eee; }
.lk-nav-list .lk-nav-link.muted { color: var(--muted, #999); }
.lk-hero { border-radius: 16px; background: linear-gradient(135deg, #f2f5ec 0%, #e7eede 100%); padding: 24px; }
.lk-hero-top { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.lk-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--accent, #3e5828); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; }
.lk-id h1 { font-size: 24px; font-weight: 700; color: var(--ink, #1c1c1c); line-height: 1.1; }
.lk-id .lk-tier { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--accent, #3e5828); background: #fff; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.lk-metrics { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.lk-metric { flex: 1; min-width: 180px; background: #fff; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; text-align: left; border: none; cursor: pointer; }
.lk-metric-label { font-size: 12px; color: var(--muted, #999); }
.lk-metric-val { font-size: 26px; font-weight: 700; color: var(--ink, #1c1c1c); display: flex; align-items: center; gap: 6px; }
.lk-metric-more { font-size: 12px; color: var(--accent, #3e5828); font-weight: 600; }
.lk-metric-more a { color: inherit; }
.ec-dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d6f24a, #9fce15); }
.lk-bar-track { height: 8px; border-radius: 999px; background: #fff; overflow: hidden; }
.lk-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #b9de5a, var(--accent, #3e5828)); }
.lk-bar-stops { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--muted, #999); }
.lk-bar-stops span.on { color: var(--accent, #3e5828); font-weight: 600; }
.lk-bar-hint { margin-top: 8px; font-size: 12px; color: var(--ink-soft, #3a3a3a); }
.lk-ref-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #f6f8f2; border: 1px solid #e2ead4; border-radius: 14px; padding: 18px 20px; flex-wrap: wrap; }
.lk-ref-title { font-size: 16px; font-weight: 700; color: var(--ink, #1c1c1c); }
.lk-ref-sub { font-size: 13px; color: var(--muted, #999); margin: 2px 0 8px; }
.lk-ref-link { font-family: monospace; font-size: 13px; color: var(--accent, #3e5828); background: #fff; border: 1px dashed var(--accent, #3e5828); border-radius: 8px; padding: 7px 12px; cursor: pointer; }
.lk-ref-btn { background: var(--accent, #3e5828); color: #fff; border-radius: 999px; padding: 11px 20px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.lk-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.lk-section-head h2 { font-size: 18px; font-weight: 700; color: var(--ink, #1c1c1c); }
.lk-section-head a, .lk-section-head button { font-size: 13px; color: var(--accent, #3e5828); font-weight: 600; background: none; border: none; cursor: pointer; }
.lk-empty { color: var(--muted, #999); font-size: 14px; }
.lk-empty a { color: var(--accent, #3e5828); }
.lk-orders { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.lk-order { border: 1px solid #eee; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 4px; transition: border-color .15s; }
.lk-order:hover { border-color: var(--accent, #3e5828); }
.lk-order-top { display: flex; justify-content: space-between; align-items: center; }
.lk-order-no { font-weight: 600; font-size: 14px; }
.lk-order-status { font-size: 11px; background: #eaf3dd; color: var(--accent, #3e5828); padding: 2px 8px; border-radius: 999px; }
.lk-order-status.off { background: #f0f0f0; color: #999; }
.lk-order-date { font-size: 12px; color: var(--muted, #999); }
.lk-order-sum { font-weight: 700; font-size: 15px; }
.lk-fav { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.lk-fav-item { display: flex; flex-direction: column; gap: 6px; }
.lk-fav-img { aspect-ratio: 1; background: #f6f6f4; border-radius: 10px; overflow: hidden; }
.lk-fav-img img { width: 100%; height: 100%; object-fit: cover; }
.lk-fav-title { font-size: 13px; color: var(--ink-soft, #3a3a3a); line-height: 1.3; }
.lk-fav-price { font-size: 14px; font-weight: 700; }
.lk-drawer-ov { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 200; display: flex; justify-content: flex-end; }
.lk-drawer { width: min(420px, 100%); height: 100%; background: #fff; padding: 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.lk-drawer-head { display: flex; justify-content: space-between; align-items: center; font-size: 18px; font-weight: 700; }
.lk-drawer-head button { font-size: 24px; background: none; border: none; cursor: pointer; color: var(--muted, #999); }
.lk-drawer-balance { font-size: 28px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.lk-drawer-cols { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted, #999); border-bottom: 1px solid #eee; padding-bottom: 6px; }
.lk-drawer-row { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; border-bottom: 1px dotted #eee; }
.lk-drawer-note { font-size: 12px; color: var(--muted, #999); margin-top: 10px; }
.lk-ref-hero { display: flex; justify-content: space-between; gap: 20px; background: linear-gradient(135deg, #f2f5ec, #e7eede); border-radius: 16px; padding: 22px; flex-wrap: wrap; }
.lk-ref-hero-bal { display: flex; flex-direction: column; gap: 4px; }
.lk-ref-hero-bal span:first-child { font-size: 13px; color: var(--muted, #999); }
.lk-ref-hero-bal b { font-size: 30px; color: var(--ink, #1c1c1c); }
.lk-ref-hero-sub { font-size: 12px; color: var(--ink-soft, #3a3a3a); }
.lk-ref-hero-stats { display: flex; gap: 24px; }
.lk-ref-hero-stats div { display: flex; flex-direction: column; align-items: center; }
.lk-ref-hero-stats b { font-size: 24px; }
.lk-ref-hero-stats span { font-size: 12px; color: var(--muted, #999); }
.lk-block { display: flex; flex-direction: column; gap: 10px; }
.lk-block h2 { font-size: 17px; font-weight: 700; }
.lk-muted { font-size: 13px; color: var(--muted, #999); }
.lk-hint { font-size: 12px; color: var(--muted, #999); }
.lk-msg { font-size: 13px; color: var(--accent, #3e5828); font-weight: 600; }
.lk-copy { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px dashed var(--accent, #3e5828); border-radius: 8px; padding: 10px 14px; background: #f6f8f2; cursor: pointer; font-family: monospace; font-size: 13px; }
.lk-copy-btn { color: var(--accent, #3e5828); font-weight: 600; white-space: nowrap; }
.lk-btn { background: var(--accent, #3e5828); color: #fff; border-radius: 999px; padding: 11px 22px; font-size: 14px; font-weight: 600; border: none; cursor: pointer; }
.lk-btn.ghost { background: transparent; color: var(--accent, #3e5828); border: 1.5px solid var(--accent, #3e5828); }
.lk-btn:disabled { opacity: .4; cursor: not-allowed; }
.lk-input { border: 1px solid #ddd; border-radius: 8px; padding: 10px 12px; font-size: 14px; flex: 1; }
.lk-ref-actions { display: flex; gap: 10px; }
.lk-payout { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.lk-txns { display: flex; flex-direction: column; }
.lk-txn { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 10px 0; border-bottom: 1px dotted #eee; font-size: 13px; align-items: center; }
.lk-txn-d { color: var(--muted, #999); font-size: 12px; }
.lk-txn-a { font-weight: 700; color: #b3261e; }
.lk-txn-a.plus { color: var(--accent, #3e5828); }


/* ============ ЛК: островок поддержки (как ЗЯ) ============ */
.lk-help { margin-top: 30px; padding-top: 22px; border-top: 1px solid #eee; display: flex; align-items: center; gap: 14px; }
.lk-help-txt { display: flex; flex-direction: column; gap: 2px; }
.lk-help-txt > span { font-size: 12px; color: var(--muted, #999); }
.lk-help-link { font-size: 15px; font-weight: 600; color: var(--ink, #1c1c1c); }
.lk-help-link:hover { color: var(--accent, #3e5828); }
.lk-help-badge { position: relative; width: 54px; height: 54px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #f2f5ec; color: var(--accent, #3e5828); transition: background .15s, color .15s; }
.lk-help-badge svg { width: 22px; height: 22px; position: relative; z-index: 1; }
.lk-help-badge::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed var(--accent, #3e5828); opacity: .5; animation: lk-spin 12s linear infinite; }
.lk-help-badge:hover { background: var(--accent, #3e5828); color: #fff; }
.lk-help-badge:hover::before { border-color: #fff; opacity: .6; }
@keyframes lk-spin { to { transform: rotate(360deg); } }

/* ============ ЛК: профиль (форма в стиле ЗЯ) ============ */
.lk-profile { display: flex; flex-direction: column; gap: 30px; max-width: 620px; }
.lk-pf-sec { display: flex; flex-direction: column; gap: 14px; }
.lk-pf-h2 { font-size: 18px; font-weight: 700; color: var(--ink, #1c1c1c); }
.lk-pf-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .lk-pf-grid { grid-template-columns: 1fr 1fr; } }
.lk-field { display: flex; flex-direction: column; gap: 6px; }
.lk-field > span { font-size: 12px; color: var(--muted, #999); text-transform: none; }
.lk-field input { border: none; border-bottom: 1.5px solid #ddd; padding: 8px 2px; font-size: 16px; color: var(--ink, #1c1c1c); background: transparent; transition: border-color .15s; }
.lk-field input:focus { outline: none; border-bottom-color: var(--accent, #3e5828); }
.lk-field input:disabled { color: var(--muted, #999); border-bottom-style: dotted; }
.lk-field--sm { max-width: 280px; }
.lk-pf-gender { display: flex; gap: 26px; margin-top: 4px; }
.lk-radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 15px; color: var(--ink-soft, #3a3a3a); }
.lk-radio input { accent-color: var(--accent, #3e5828); width: 17px; height: 17px; }
.lk-radio.on { color: var(--accent, #3e5828); font-weight: 600; }
.lk-pf-save { align-self: flex-start; margin-top: 6px; background: var(--accent, #3e5828); color: #fff; border: none; border-radius: 999px; padding: 13px 40px; font-size: 15px; font-weight: 600; cursor: pointer; transition: opacity .15s; }
.lk-pf-save:hover { opacity: .9; }
.lk-pf-save:disabled { opacity: .5; cursor: not-allowed; }
.lk-pf-ok { color: var(--accent, #3e5828); font-weight: 600; font-size: 14px; }
.lk-pf-err { color: #b3261e; font-weight: 600; font-size: 14px; }


/* ============ Попап авторизации: окно кода подтверждения ============ */
.auth2-code { background: #fff; position: relative; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; padding: 0 40px; gap: 12px; text-align: center; }
.auth2-code .auth2-h1 { font-size: 24px; font-weight: 700; }
.auth2-code-sub { font-size: 13px; color: #666; line-height: 1.5; }
.auth2-code-sub b { color: #1c1c1c; word-break: break-all; }
.auth2-code-input { text-align: center; font-size: 26px; letter-spacing: 12px; font-weight: 700; max-width: 240px; }
.auth2-code-links { display: flex; gap: 18px; margin-top: 4px; }
.auth2-code-links button { background: none; border: none; cursor: pointer; font-size: 12.5px; color: var(--accent, #3e5828); text-decoration: underline; }
.auth2-code-links button:last-child { color: #999; }


/* ============ Чекаут: бонусы E-Coins в саммари + валидация + скролл ============ */
.ec-dot--sm { width: 12px; height: 12px; }
.ec-item-pill { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 12px; font-weight: 700; color: var(--accent, #3e5828); background: #eef4e3; border-radius: 999px; padding: 2px 8px; }
.ec-accrue { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--accent, #3e5828); }

/* видимый тонкий скроллбар у длинного списка товаров в «сумме заказа» */
.sum-scroll { padding-right: 8px; scrollbar-width: thin; scrollbar-color: #c9cec2 transparent; position: relative; }
.sum-scroll::-webkit-scrollbar { width: 6px; }
.sum-scroll::-webkit-scrollbar-track { background: transparent; }
.sum-scroll::-webkit-scrollbar-thumb { background: #c9cec2; border-radius: 999px; }
.sum-scroll::-webkit-scrollbar-thumb:hover { background: var(--accent, #3e5828); }
/* затухание снизу — подсказка, что список продолжается */
.sum-scroll { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), rgba(0,0,0,.25) 100%); mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), rgba(0,0,0,.25) 100%); }

/* незаполненное обязательное поле */
.field-err { border-color: #c62828 !important; border-bottom-color: #c62828 !important; background: #fff6f6; }
.field-err::placeholder { color: #c62828; opacity: .85; }


/* ============ Страницы результата оплаты /success /fail ============ */
.pay-result { min-height: 58vh; display: flex; align-items: center; justify-content: center; padding: 56px 20px; }
.pay-card { max-width: 560px; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pay-ic { width: 84px; height: 84px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.pay-ic svg { width: 38px; height: 38px; }
.pay-ic--ok { background: #eef4e3; color: var(--accent, #3e5828); animation: pay-pop .45s cubic-bezier(.2,1.4,.4,1); }
.pay-ic--fail { background: #fdeeee; color: #c62828; }
@keyframes pay-pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.pay-card h1 { font-size: 28px; font-weight: 700; color: var(--ink, #1c1c1c); }
.pay-sub { font-size: 15px; line-height: 1.6; color: var(--ink-soft, #3a3a3a); max-width: 440px; }
.pay-hint { font-size: 13px; color: var(--muted, #999); max-width: 420px; }
.pay-steps { text-align: left; display: flex; flex-direction: column; gap: 10px; margin: 8px 0 4px; }
.pay-steps li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-soft, #3a3a3a); }
.pay-steps li span { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #eef4e3; color: var(--accent, #3e5828); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.pay-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.pay-btn { display: inline-flex; align-items: center; justify-content: center; background: var(--accent, #3e5828); color: #fff; border: 1.5px solid var(--accent, #3e5828); border-radius: 999px; padding: 13px 28px; font-size: 15px; font-weight: 600; cursor: pointer; transition: opacity .15s; }
.pay-btn:hover { opacity: .9; color: #fff; }
.pay-btn--ghost { background: transparent; color: var(--accent, #3e5828); }
.pay-btn--ghost:hover { color: var(--accent, #3e5828); }


/* ============ ЛК: деталь заказа (как ЗЯ) ============ */
.od { display: flex; flex-direction: column; gap: 34px; max-width: 720px; }
.od-back { font-size: 13px; color: var(--muted, #999); letter-spacing: .04em; text-transform: uppercase; }
.od-back:hover { color: var(--ink, #1c1c1c); }
.od-title { display: flex; align-items: center; gap: 14px; margin-top: -12px; }
.od-title h1 { font-size: 32px; font-weight: 700; color: var(--ink, #1c1c1c); }

/* таймлайн */
.od-timeline { margin-top: -6px; }
.od-tl-track { height: 2px; background: #e5e5e5; border-radius: 2px; position: relative; margin: 0 6px 10px; }
.od-tl-fill { position: absolute; inset: 0 auto 0 0; background: var(--accent, #3e5828); border-radius: 2px; transition: width .4s; }
.od-tl-steps { display: flex; justify-content: space-between; }
.od-tl-step { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; flex: 1; }
.od-tl-step i { width: 18px; height: 18px; border-radius: 50%; background: #e5e5e5; font-style: normal; font-size: 11px; color: #fff; display: flex; align-items: center; justify-content: center; margin-top: -20px; border: 3px solid #fff; }
.od-tl-step.on i { background: var(--accent, #3e5828); }
.od-tl-step b { font-size: 12px; font-weight: 600; color: var(--muted, #999); }
.od-tl-step.on b { color: var(--ink, #1c1c1c); }
.od-tl-step span { font-size: 11px; color: var(--muted, #999); }

/* секции с точками-лидерами */
.od-sec h2 { font-size: 22px; font-weight: 700; color: var(--ink, #1c1c1c); margin-bottom: 16px; }
.od-count { font-size: 16px; font-weight: 400; color: var(--muted, #999); }
.od-rows { display: flex; flex-direction: column; gap: 11px; }
.od-row { display: flex; align-items: baseline; gap: 8px; font-size: 14.5px; }
.od-k { color: var(--ink-soft, #3a3a3a); flex: none; }
.od-k--soft { color: #b08c68; }
.od-dots { flex: 1; border-bottom: 1.5px dotted #d7d7d7; transform: translateY(-3px); min-width: 24px; }
.od-v { color: var(--ink, #1c1c1c); text-align: right; max-width: 60%; }
.od-v--soft { color: #b08c68; }
.od-mono { font-family: ui-monospace, monospace; }

/* итого + бонусы */
.od-total { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid #eee; }
.od-total-sum { font-size: 15px; color: var(--ink-soft, #3a3a3a); }
.od-total-sum b { font-size: 24px; color: var(--ink, #1c1c1c); margin-left: 4px; }
.od-receipt { display: block; margin-top: 16px; text-align: center; border: 1px solid var(--ink, #1c1c1c); padding: 13px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink, #1c1c1c); }
.od-receipt:hover { background: var(--ink, #1c1c1c); color: #fff; }

/* состав */
.od-items { display: flex; flex-direction: column; }
.od-item { display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid #f0f0f0; align-items: center; }
.od-item:last-child { border-bottom: none; }
.od-item-img { aspect-ratio: 1; background: #f6f6f4; border-radius: 10px; overflow: hidden; display: block; }
.od-item-img img { width: 100%; height: 100%; object-fit: cover; }
.od-item-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.od-item-cat { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted, #999); }
.od-item-title { font-size: 15px; font-weight: 600; color: var(--ink, #1c1c1c); line-height: 1.35; }
.od-item-title:hover { color: var(--accent, #3e5828); }
.od-item-qty { font-size: 12.5px; color: var(--muted, #999); }
.od-item-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.od-item-price b { font-size: 15px; }
.od-item-old { font-size: 12.5px; color: var(--muted, #999); text-decoration: line-through; }

/* повторить заказ */
.od-repeat { margin-top: -8px; }
.od-repeat-btn { width: 100%; background: var(--ink, #1c1c1c); color: #fff; border: none; padding: 16px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; cursor: pointer; transition: opacity .15s; }
.od-repeat-btn:hover { opacity: .88; }
.od-repeat-btn:disabled { opacity: .5; cursor: default; }

@media (max-width: 640px) {
  .od-tl-step b { font-size: 10.5px; }
  .od-item { grid-template-columns: 72px 1fr auto; gap: 12px; }
  .od-v { max-width: 55%; }
}


/* ============ Деталь заказа v2: шкала как ЗЯ + кнопки EKKSO ============ */
.od-tl2 { position: relative; padding-top: 6px; margin: 4px 0 6px; }
.od-tl2-line { position: absolute; top: 14px; left: 9px; right: 9px; height: 1.5px; background: #dcdcdc; }
.od-tl2-fill { height: 100%; background: var(--ink, #1c1c1c); transition: width .4s; }
.od-tl2-steps { display: flex; justify-content: space-between; position: relative; }
.od-tl2-step { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.od-tl2-step i { width: 9px; height: 9px; border-radius: 50%; background: #dcdcdc; font-style: normal; font-size: 0; margin-bottom: 8px; position: relative; z-index: 1; box-shadow: 0 0 0 3px #fff; }
.od-tl2-step.on i { background: var(--ink, #1c1c1c); }
.od-tl2-step.cur i { width: 22px; height: 22px; margin-top: -7px; margin-bottom: 2px; background: #fff; border: 1.5px solid var(--ink, #1c1c1c); font-size: 12px; color: var(--ink, #1c1c1c); display: flex; align-items: center; justify-content: center; }
.od-tl2-date { font-size: 12px; font-weight: 700; color: var(--ink, #1c1c1c); min-height: 15px; }
.od-tl2-step b { font-size: 11px; font-weight: 400; color: var(--muted, #999); text-align: center; line-height: 1.25; padding: 0 3px; }
.od-tl2-step.on b { color: var(--ink-soft, #3a3a3a); }

/* возврат — только одежда/диффузоры/подушки */
.od-return { margin-top: 14px; font-size: 13px; color: var(--ink-soft, #3a3a3a); background: #f6f8f2; border-radius: 10px; padding: 12px 16px; }
.od-return a { color: var(--accent, #3e5828); text-decoration: underline; }

/* действия в стиле EKKSO (вместо чёрной плиты) */
.od-actions { display: flex; flex-direction: column; gap: 10px; margin-top: -6px; }
.od-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; background: var(--accent, #3e5828); color: #fff; border: 1.5px solid var(--accent, #3e5828); border-radius: 999px; padding: 15px 24px; font-size: 15px; font-weight: 600; cursor: pointer; transition: opacity .15s; }
.od-btn:hover { opacity: .9; color: #fff; }
.od-btn:disabled { opacity: .5; cursor: default; }
.od-btn--ghost { background: transparent; color: var(--accent, #3e5828); }
.od-btn--ghost:hover { color: var(--accent, #3e5828); background: #f2f5ec; }

/* старую чёрную кнопку и старый таймлайн не используем */
@media (max-width: 640px) {
  .od-tl2-step b { font-size: 9.5px; }
  .od-tl2-date { font-size: 10.5px; }
}


/* боты статусов на странице успеха */
.pay-bots { margin-top: 4px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.pay-bots p { font-size: 13px; color: var(--muted, #999); }
.pay-bots-row { display: flex; gap: 10px; }
.pay-bot { display: inline-flex; align-items: center; padding: 9px 22px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #fff; }
.pay-bot--tg { background: #2aabee; }
.pay-bot--vk { background: #0077ff; }
.pay-bot:hover { opacity: .88; color: #fff; }


/* ============ Список заказов (как ЗЯ): табы, фильтр, строки ============ */
.ol { display: flex; flex-direction: column; }
.ol-tabs { display: flex; gap: 34px; margin-bottom: 20px; }
.ol-tabs button { font-size: 26px; font-weight: 700; color: var(--muted, #999); padding-bottom: 6px; border-bottom: 2px solid transparent; background: none; border-top: none; border-left: none; border-right: none; cursor: pointer; line-height: 1.1; }
.ol-tabs button.on { color: var(--ink, #1c1c1c); border-bottom-color: var(--ink, #1c1c1c); }

.ol-bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 14px; border-bottom: 1px solid #f0f0f0; }
.ol-count { font-size: 13.5px; color: var(--muted, #999); }
.ol-filter { border: none; background: transparent; font-size: 13.5px; color: var(--ink, #1c1c1c); cursor: pointer; padding-right: 4px; }
.ol-filter:focus { outline: none; }

.ol-list { display: flex; flex-direction: column; }
.ol-row { display: block; padding: 20px 0 22px; border-bottom: 1px solid #f0f0f0; transition: background .12s; }
.ol-row:hover { background: #fafbf8; }
.ol-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ol-num { font-size: 13px; color: var(--muted, #999); }
.ol-grid { display: grid; grid-template-columns: minmax(210px, 1fr) minmax(0, 1.4fr) auto; gap: 18px; align-items: start; }

/* мини-таймлайн: дата заказа ●──☑ дата выполнен */
.ol-tl { display: flex; align-items: flex-start; gap: 10px; }
.ol-tl-p { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ol-tl-p b { font-size: 20px; font-weight: 700; color: var(--ink, #1c1c1c); white-space: nowrap; }
.ol-tl-p span { font-size: 11.5px; color: var(--muted, #999); white-space: nowrap; }
.ol-tl-line { flex: 1; min-width: 40px; height: 1.5px; background: var(--ink, #1c1c1c); margin-top: 13px; position: relative; }
.ol-tl-line::before { content: ""; position: absolute; left: -1px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink, #1c1c1c); }
.ol-tl-line i { position: absolute; right: -9px; top: -9px; width: 19px; height: 19px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink, #1c1c1c); font-style: normal; font-size: 10px; display: flex; align-items: center; justify-content: center; color: var(--ink, #1c1c1c); }
.ol-tl-line:not(.done) { background: #d9d9d9; }
.ol-tl-line:not(.done) i { border-color: #c9c9c9; color: #c9c9c9; }

/* состав */
.ol-items { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ol-items-t { font-size: 12.5px; color: var(--ink-soft, #3a3a3a); }
.ol-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.ol-thumb { position: relative; width: 56px; height: 56px; border-radius: 8px; background: #f5f5f3; overflow: hidden; flex: none; }
.ol-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ol-thumb em { position: absolute; right: 2px; bottom: 2px; font-style: normal; font-size: 10px; font-weight: 700; background: #fff; border-radius: 6px; padding: 1px 4px; color: var(--ink, #1c1c1c); box-shadow: 0 0 0 1px #eee; }
.ol-thumb--more { display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--muted, #999); }

/* сумма */
.ol-sum { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ol-sum span { font-size: 11.5px; color: var(--muted, #999); }
.ol-sum b { font-size: 17px; color: var(--ink, #1c1c1c); white-space: nowrap; }

.ol-products { padding-top: 16px; }

@media (max-width: 700px) {
  .ol-tabs button { font-size: 21px; }
  .ol-grid { grid-template-columns: 1fr; gap: 12px; }
  .ol-sum { flex-direction: row; align-items: baseline; gap: 8px; }
}


/* ============ Sticky footer: футер всегда прижат к низу вьюпорта ============ */
main.relative { display: flex; flex-direction: column; min-height: 100vh; }
main.relative > .footer { margin-top: auto; }


/* ============ Мобильный чекаут (как ЗЯ): чек-лист шагов ============ */
@media (max-width: 767px) {
  .ck-step { position: relative; }
  /* линия между точками шагов */
  .ck-steps .ck-step:not(:last-child)::before { content: ""; position: absolute; left: 3.5px; top: 20px; bottom: -34px; width: 1.5px; background: #1c1c1c; }
  .ck-m-head { display: flex; gap: 14px; width: 100%; text-align: left; background: none; border: none; padding: 0; align-items: flex-start; cursor: pointer; }
  .ck-m-dot { width: 8px; height: 8px; border-radius: 50%; background: #1c1c1c; margin-top: 9px; flex: none; position: relative; z-index: 1; box-shadow: 0 0 0 4px #fff; }
  .ck-m-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
  .ck-m-title { font-size: 19px; font-weight: 700; color: #1c1c1c; line-height: 1.25; }
  .ck-m-sum { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
  .ck-m-l1 { font-size: 13.5px; color: #333; }
  .ck-m-l2 { font-size: 13px; color: #6f6f6f; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; }
  .ck-m-l3 { font-size: 15px; font-weight: 700; color: #1c1c1c; margin-top: 6px; }
  .ck-m-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
  .ck-m-th { width: 52px; height: 52px; border-radius: 8px; background: #f4f4f2; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #999; flex: none; }
  .ck-m-th img { width: 100%; height: 100%; object-fit: cover; }
  .ck-m-arr { margin-top: 7px; color: #9a9a9a; flex: none; transition: transform .15s; }
  .ck-m-arr.open { transform: rotate(90deg); }
}


/* ============ Мобильный ЛК (как ЗЯ) ============ */
.lk-m-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink, #1c1c1c); padding: 2px 0 14px; }
.lk-m-back svg { width: 16px; height: 16px; }

@media (max-width: 767px) {
  /* hero компактнее: метрики в ряд с разделителем, аватар по центру */
  .lk-hero { padding: 20px 16px; border-radius: 14px; }
  .lk-hero-top { flex-direction: column; text-align: center; gap: 10px; margin-bottom: 16px; }
  .lk-id h1 { font-size: 21px; }
  .lk-metrics { flex-wrap: nowrap; gap: 0; margin-bottom: 14px; background: #fff; border-radius: 12px; }
  .lk-metric { min-width: 0; background: transparent; align-items: center; text-align: center; padding: 12px 8px; }
  .lk-metric + .lk-metric { border-left: 1px solid #e8ede0; border-radius: 0; }
  .lk-metric-val { font-size: 22px; justify-content: center; }
  .lk-metric-more { text-align: center; }
  /* шкала: только крайние подписи, как у ЗЯ */
  .lk-bar-stops span:nth-child(2), .lk-bar-stops span:nth-child(3) { display: none; }

  /* карточки-превью «уже покупали / избранное» */
  .lk-m-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .lk-m-card { display: flex; flex-direction: column; gap: 10px; }
  .lk-m-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #f6f6f4; border-radius: 12px; padding: 6px; aspect-ratio: 1.15; }
  .lk-m-collage span { background: #fff; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
  .lk-m-collage img { width: 100%; height: 100%; object-fit: cover; }
  .lk-m-card b { font-size: 14.5px; font-weight: 700; color: var(--ink, #1c1c1c); }

  /* меню строками */
  .lk-m-menu { display: flex; flex-direction: column; margin-top: 4px; }
  .lk-m-menu a { display: flex; align-items: center; justify-content: space-between; padding: 15px 2px; font-size: 16.5px; font-weight: 600; color: var(--ink, #1c1c1c); border-bottom: 1px solid #f0f0f0; }
  .lk-m-menu a i { font-style: normal; color: #b9b9b9; font-size: 20px; line-height: 1; }

  /* поддержка + выход */
  .lk-m-support a { display: flex; align-items: center; gap: 10px; padding: 15px 2px; font-size: 15px; color: var(--ink-soft, #3a3a3a); border-bottom: 1px solid #f0f0f0; }
  .lk-m-sup-ic { width: 22px; height: 22px; color: var(--accent, #3e5828); display: inline-flex; }
  .lk-m-sup-ic svg { width: 100%; height: 100%; }
  .lk-m-logout { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 18px 2px 6px; background: none; border: none; font-size: 16.5px; font-weight: 600; color: var(--ink, #1c1c1c); cursor: pointer; }
  .lk-m-logout svg { width: 20px; height: 20px; color: #999; }

  /* список заказов: счётчик по центру, стрелка-кнопка у суммы */
  .ol-bar { display: grid; grid-template-columns: 1fr auto; }
  .ol-count { justify-self: start; }
  .ol-sum { flex-direction: row; align-items: center; gap: 8px; justify-content: flex-start; position: relative; width: 100%; }
  .ol-sum span { order: 1; }
  .ol-sum b { order: 2; font-size: 19px; }
  .ol-go { order: 3; margin-left: auto; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #d9d9d9; display: flex; align-items: center; justify-content: center; color: var(--ink, #1c1c1c); }
  .ol-go svg { width: 17px; height: 17px; }
  .ol-tl-p b { font-size: 22px; }
  .ol-row { padding: 18px 0 20px; }

  /* деталь заказа: заголовок ближе, назад-строка сверху */
  .od { gap: 26px; }
  .od-title h1 { font-size: 27px; }
}


/* мета статьи журнала: блоки не рвутся внутри, аккуратный перенос целиком */
.article-meta { flex-wrap: wrap; row-gap: 6px; }
.article-meta > span { white-space: nowrap; }


/* время чтения + дата публикации: единый неразрывный блок */
.article-meta-info { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.article-meta-dot { color: #b5b5ad; }


/* ============ Страница «Доставка и оплата»: список способов ============ */
.dlv-opt { display: flex; align-items: center; gap: 14px; padding: 16px 0; }
.dlv-opt-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.dlv-opt-b b { font-size: 15.5px; color: var(--ink, #1c1c1c); line-height: 1.3; }
.dlv-opt-b > span { font-size: 13px; color: var(--muted, #999); line-height: 1.4; }
.dlv-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; text-align: right; }
.dlv-price b { font-size: 15px; color: var(--ink, #1c1c1c); white-space: nowrap; }
.dlv-price > span { font-size: 12px; color: var(--accent, #3e5828); white-space: nowrap; }
@media (max-width: 560px) {
  .dlv-opt { flex-wrap: wrap; }
  .dlv-price { flex-direction: row; align-items: baseline; gap: 8px; width: 100%; padding-left: 56px; text-align: left; justify-content: flex-start; }
}


/* ============ Правовой раздел /law ============ */
.law-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 32px; }
.law-card { display: flex; flex-direction: column; gap: 6px; border: 1px solid #ececec; border-radius: 14px; padding: 18px 20px; transition: border-color .15s, box-shadow .15s; }
.law-card:hover { border-color: var(--accent, #3e5828); box-shadow: 0 4px 14px rgba(62,88,40,.06); }
.law-card b { font-size: 16px; color: var(--ink, #1c1c1c); }
.law-card span { font-size: 13px; color: var(--muted, #999); line-height: 1.45; flex: 1; }
.law-card i { font-size: 13px; font-weight: 600; color: var(--accent, #3e5828); font-style: normal; }
.law-req { font-size: 12.5px; color: var(--muted, #999); margin-top: 28px; padding-top: 16px; border-top: 1px solid #eee; }

.law-doc { max-width: 780px; }
.law-doc h1 { font-size: clamp(26px, 4.5vw, 38px); margin-bottom: 20px; }
.law-doc h2 { font-size: 19px; font-weight: 700; color: var(--ink, #1c1c1c); margin: 28px 0 10px; }
.law-doc p { font-size: 15px; line-height: 1.65; color: var(--ink-soft, #3a3a3a); margin: 0 0 12px; }
.law-doc ul { margin: 0 0 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 7px; }
.law-doc li { font-size: 15px; line-height: 1.55; color: var(--ink-soft, #3a3a3a); }
.law-doc a { color: var(--accent, #3e5828); text-decoration: underline; }
.law-doc b { color: var(--ink, #1c1c1c); }

/* строки согласия под формами */
.form-consent, .auth2-consent { margin-top: 12px; font-size: 11.5px; line-height: 1.45; color: var(--muted, #999); text-align: center; }
.form-consent a, .auth2-consent a { color: var(--accent, #3e5828); text-decoration: underline; }
.auth2-consent { padding: 0 6px; }

/* «О нас»: четыре принципа в один ряд на десктопе (не трогаем .values других страниц) */
@media (min-width: 768px) { .values--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .values--4 { grid-template-columns: repeat(4, 1fr); } }

/* центрированный CTA-баннер: заголовок одной строкой, подзаголовок без сиротских переносов */
.sub-banner--center { text-align: center; padding: 56px 28px; }
.sub-banner--center h2 { max-width: none; margin: 0 auto 14px; }
.sub-banner--center p { max-width: none; margin: 0 auto 26px; }

/* подписка на рассылку в футере */
.foot-sub { margin: 14px 0 4px; }
.foot-sub__row { display: flex; gap: 8px; max-width: 320px; }
.foot-sub__row input { flex: 1; min-width: 0; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: 10px; padding: 9px 12px; font-size: 13px; color: #fff; }
.foot-sub__row input::placeholder { color: rgba(255,255,255,.45); }
.foot-sub__row button { background: var(--accent, #3e5828); color: #fff; border: 0; border-radius: 10px; padding: 9px 14px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.foot-sub__row button:hover { filter: brightness(1.1); }
.foot-sub__hint, .foot-sub__ok, .foot-sub__err { display: block; margin-top: 7px; font-size: 11px; line-height: 1.4; color: rgba(255,255,255,.5); }
.foot-sub__hint a { color: rgba(255,255,255,.7); text-decoration: underline; }
.foot-sub__ok { color: #9fce7f; }
.foot-sub__err { color: #e89a9a; }

/* фото-аватар в ЛК (перенос со старого сайта) */
.lk-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* «согласие» в подсказке подписки — инлайн-ссылка того же размера, что текст
   (глобальный .foot-col a { display:block; font-size:14px } ломал строку) */
.foot-sub__hint a { display: inline; font-size: inherit; padding: 0; line-height: inherit; }

/* смена фото профиля в ЛК */
.lk-avatar-wrap { position: relative; display: inline-block; }
.lk-avatar--btn { cursor: pointer; border: 0; padding: 0; position: relative; overflow: hidden; }
.lk-avatar--btn .lk-avatar__edit { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 10px; line-height: 1; padding: 4px 0 5px; text-align: center; opacity: 0; transition: opacity .15s; }
.lk-avatar--btn:hover .lk-avatar__edit, .lk-avatar--btn.is-busy .lk-avatar__edit { opacity: 1; }
.lk-avatar--btn.is-busy { pointer-events: none; opacity: .7; }
.lk-avatar__remove { position: absolute; top: -4px; right: -4px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: #fff; color: #666; box-shadow: 0 1px 4px rgba(0,0,0,.25); font-size: 13px; line-height: 1; cursor: pointer; }
.lk-avatar__remove:hover { color: #b33; }
.lk-avatar__err { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 4px; font-size: 10px; color: #b33; white-space: nowrap; }
@media (max-width: 767px) { .lk-avatar--btn .lk-avatar__edit { opacity: 1; } }

/* восстановление пароля */
.auth2-forgot { background: none; border: 0; margin-top: 10px; font-size: 12px; color: var(--accent, #3e5828); text-decoration: underline; cursor: pointer; }
.auth2-forgot:disabled { opacity: .6; cursor: default; }
.auth2-hint { margin: 8px 0 0; font-size: 12px; color: #3e5828; line-height: 1.4; }
.reset-pass { max-width: 420px; margin: 48px auto 80px; }
.reset-pass h1 { font-size: 28px; margin-bottom: 18px; }
.reset-pass__form { display: flex; flex-direction: column; gap: 12px; }
.reset-pass__form .auth2-input { width: 100%; border: 1px solid #ddd; border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.reset-pass__ok { color: #3e5828; margin-bottom: 16px; }

/* отзывы: агрегат-рейтинг в шапке (только карточка товара) + фото покупателей */
.rv-avg { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; margin-left: 14px; font-size: 15px; }
.rv-avg b { font-weight: 700; }
.rv-as { font-weight: 600; color: var(--accent, #3e5828); }
.rv-photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.rv-photos a { display: block; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; border: 1px solid #eee; }
.rv-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .15s; }
.rv-photos a:hover img { transform: scale(1.04); }

/* ответ магазина под отзывом */
.rv-reply { margin-top: 12px; padding: 12px 14px 10px; background: var(--cloud, #f4f6f2); border-left: 3px solid var(--accent, #3e5828); border-radius: 0 12px 12px 0; }
.rv-reply-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.rv-reply-badge { display: inline-flex; align-items: center; justify-content: center; padding: 2px 7px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: #fff; background: var(--accent, #3e5828); border-radius: 6px; }
.rv-reply .rv-item-text { margin: 0; }

/* ==== ЛК заказа: ссылка на фискальный чек (check.ofd.ru) ==== */
.od-receipt-link { color: var(--taiga-700, #3e5828); text-decoration: underline; text-underline-offset: 2px; }
.od-receipt-link:hover { color: var(--taiga-900, #24361a); }
