/* Стили динамических элементов магазина. Дополняют собранный Tailwind из style.css. */

.cart-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.25rem; height: 1.25rem; padding: 0 0.375rem; margin-left: 0.125rem;
  border-radius: 999px; background: var(--color-accent, #ff5a1f); color: #fff;
  font-size: 0.75rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
}
.cart-badge[hidden] { display: none; }

/* кнопки выбора размера / фильтров */
.chip {
  min-width: 3rem; padding: 0.5rem 0.875rem; border-radius: 999px;
  border: 1px solid var(--color-line, #e5e3dd); background: #fff;
  font-size: 0.9375rem; line-height: 1.2; color: var(--color-ink, #141413); white-space: nowrap;
  cursor: pointer; transition: border-color .25s, background-color .25s, color .25s;
  font-variant-numeric: tabular-nums;
}
.chip:hover:not(:disabled) { border-color: var(--color-ink, #141413); }
.chip[aria-pressed="true"], .chip.is-active {
  background: var(--color-ink, #141413); border-color: var(--color-ink, #141413); color: #fff;
}
.chip:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.chip small { display: block; margin-top: .15rem; font-size: .6875rem; opacity: .6; }
/* размер уже едет: не зачёркиваем, а показываем пунктиром */
.chip.chip-soon:disabled { opacity: 1; text-decoration: none; border-style: dashed; color: var(--color-muted, #6b6a66); background: transparent; }
.chip.chip-soon small { color: var(--color-accent, #ff5a1f); opacity: 1; }

/* основная кнопка */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .875rem 1.75rem; border-radius: 999px; border: 1px solid var(--color-ink, #141413);
  background: var(--color-ink, #141413); color: #fff; font-size: .9375rem; font-weight: 600;
  cursor: pointer; transition: opacity .25s, background-color .25s, color .25s;
}
.btn:hover:not(:disabled) { opacity: .85; }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--color-ink, #141413); }
.btn--ghost:hover:not(:disabled) { background: var(--color-paper-2, #f4f2ed); opacity: 1; }
.btn--wa { background: #25d366; border-color: #25d366; color: #08301a; }
.btn--tg { background: #229ed9; border-color: #229ed9; color: #fff; }

/* поля формы заказа */
.form-row { display: grid; gap: .375rem; }
.form-row label { font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; color: var(--color-muted, #6f6d66); }
.form-row .field { width: 100%; }
.form-row .error { font-size: .8125rem; color: #c0392b; }
.field:invalid:not(:placeholder-shown) { border-color: #c0392b; }
textarea.field { min-height: 5.5rem; resize: vertical; font: inherit; }

/* строка корзины */
.cart-line { display: grid; grid-template-columns: 7.5rem 1fr auto; gap: 1.25rem; align-items: start;
  padding: 1.25rem 0; border-bottom: 1px solid var(--color-line, #e5e3dd); }
/* Кроссовки сняты на белом, обрезать их рамкой нельзя - показываем целиком на светлой плитке */
.cart-line img { width: 7.5rem; aspect-ratio: 4 / 3; height: auto; object-fit: contain; padding: .375rem;
  border-radius: .5rem; background: var(--color-paper-2, #f4f2ed); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--color-line, #e5e3dd); border-radius: 999px; }
.qty button { width: 2rem; height: 2rem; font-size: 1.125rem; line-height: 1; cursor: pointer; background: none; border: 0; color: inherit; }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty span { min-width: 1.75rem; text-align: center; font-variant-numeric: tabular-nums; }

/* уведомление */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1rem);
  z-index: 100; padding: .75rem 1.25rem; border-radius: 999px;
  background: var(--color-ink, #141413); color: #fff; font-size: .9375rem;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  box-shadow: 0 8px 30px rgba(0,0,0,.18); max-width: calc(100vw - 2rem); text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.skeleton { border-radius: .25rem; background: linear-gradient(90deg, #eeece6 25%, #f7f6f2 50%, #eeece6 75%);
  background-size: 200% 100%; animation: skeleton 1.4s infinite; }
@keyframes skeleton { from { background-position: 200% 0 } to { background-position: -200% 0 } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none } .toast { transition: none } }

.empty-state { padding: 4rem 0; text-align: center; color: var(--color-muted, #6f6d66); }

/* Мобильное меню: панель поверх страницы для узких экранов. */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: rgba(11, 11, 12, .45);
  opacity: 0; transition: opacity .2s;
}
.mobile-menu.is-open { opacity: 1; }
.mobile-menu__sheet {
  position: absolute; inset: 0 0 auto; padding: 5.5rem 1.5rem 2rem;
  display: flex; flex-direction: column; gap: .25rem;
  background: var(--color-paper, #faf9f5);
  transform: translateY(-100%); transition: transform .25s ease;
}
.mobile-menu.is-open .mobile-menu__sheet { transform: translateY(0); }
.mobile-menu__link {
  padding: .875rem .25rem; font-size: 1.125rem; color: var(--color-ink, #141413);
  border-bottom: 1px solid var(--color-line, #e6e3dc);
}
.mobile-menu__link.is-current { font-weight: 600; }
@media (min-width: 1024px) { .mobile-menu { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .mobile-menu, .mobile-menu__sheet { transition: none; }
}

/* Фото товара: снимки сняты на белом фоне - подложка тоже белая, чтобы
   кадр не читался как вставленный прямоугольник. Небольшой внутренний
   отступ не даёт кроссовку упираться в края плитки. */
.media { background: #fff; }
.media > img { padding: 6%; }

/* Снимки товара горизонтальные (1200×900) - плитки под них, иначе
   по краям остаются широкие пустые поля. Значения заданы здесь, а не
   утилитой Tailwind: css собран заранее и произвольные классы в него не попали. */
.media { aspect-ratio: 4 / 3; }
#gallery-main { aspect-ratio: 4 / 3; }

/* Баннер на главной: снимок снят на чёрном фоне и сильно вытянут по горизонтали.
   На узком экране кадрирование по ширине съедало кроссовку - показываем её
   целиком, а пустое место закрываем тем же чёрным. */


/* Кадр с бегуном вертикальный: в широкой полосе баннера центр приходится на
   голени - сдвигаем видимую область вниз, к кроссовкам. */
.community-img { object-position: center 72%; }

/* Официальный логотип BMAI (новый с 14.10.2026, как на аватарке @bmai_running). Рисуем маской: цвет берётся из currentColor,
   поэтому один и тот же знак белый на тёмной шапке главной и чёрный на светлых страницах. */
.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand-logo {
  display: block; width: 80px; height: 36px; background-color: currentColor;
  -webkit-mask: url(/assets/img/logo-white.png?v=lg261014) center / contain no-repeat;
          mask: url(/assets/img/logo-white.png?v=lg261014) center / contain no-repeat;
}
.brand-logo--lg { width: 112px; height: 50px; }
.brand:hover .brand-logo { opacity: .7; }

/* Плитки товаров: снимки приведены к чистому белому фону и одному масштабу,
   multiply окрашивает этот фон в цвет плитки - все карточки выглядят одинаково. */
.media { background: #f4f4f3; }
.media > img { padding: 3%; mix-blend-mode: multiply; }

/* ---------- Заставка: кинопоказ из фотосессий BMAI ----------
   Три кадра сменяют друг друга плавным наплывом, внутри кадра - медленный наезд камеры.
   Внизу - полоски прогресса: видно, сколько осталось до следующего кадра, по клику - переход. */
.hero { position: relative; min-height: 100svh; overflow: hidden; overflow: clip; background: #0b0b0b; color: #fff; display: flex; align-items: flex-end; }
.hero-slides, .hero-slide, .hero-slide picture, .hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; }
.hero-slide { opacity: 0; transition: opacity 1.4s cubic-bezier(.4,0,.2,1); }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { object-fit: cover; transform: scale(1.12); transition: transform 7.5s cubic-bezier(.25,.1,.25,1); }
.hero-slide.is-active img { transform: scale(1.0); }
.hero-shade { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.38) 42%, rgba(0,0,0,0) 72%),
    linear-gradient(0deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,0) 45%),
    linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 22%); }
.hero-content { position: relative; width: 100%; padding-top: 7rem; padding-bottom: 2.25rem; }
.hero-eyebrow { color: rgba(255,255,255,.72); }
.hero-title { margin-top: 1.25rem; font-size: clamp(2.4rem, 5.6vw, 5.75rem); line-height: .95; }
.hero-line { white-space: nowrap; }
@media (max-width: 767px) { .hero-line { white-space: normal; } }
.hero-line { display: block; animation: heroRise 1.1s cubic-bezier(.16,1,.3,1) both; }
.hero-line--2 { animation-delay: .12s; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.92); }
@keyframes heroRise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.hero-models { position: relative; height: 1.5rem; min-width: 12rem; }
.hero-model { position: absolute; left: 0; top: 0; white-space: nowrap; font-weight: 600; color: #fff;
  opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; pointer-events: none; }
.hero-model.is-active { opacity: 1; transform: none; pointer-events: auto; }
.hero-model:hover { opacity: .7; }
.hero-bars { margin-top: 2.75rem; display: flex; gap: .5rem; }
.hero-bar { width: 3.5rem; padding: .6rem 0 !important; text-align: left; color: rgba(255,255,255,.55); background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.hero-bar.is-active, .hero-bar:hover { color: #fff; }
.hero-bar__track { display: block; height: 2px; background: rgba(255,255,255,.25); overflow: hidden; }
.hero-bar__fill { display: block; height: 100%; width: 0; background: #fff; }
.hero-bar.is-done .hero-bar__fill { width: 100%; }
.hero-bar.is-active .hero-bar__fill { animation: heroFill var(--hero-interval, 8s) linear forwards; }
.hero.is-paused .hero-bar.is-active .hero-bar__fill { animation-play-state: paused; }
@keyframes heroFill { from { width: 0; } to { width: 100%; } }
.hero-bar__text { display: block; margin-top: .7rem; font-size: .8125rem; letter-spacing: .02em; }
.hero-bar__text .num { opacity: .6; margin-right: .35rem; }
@media (max-width: 767px) {
  .hero-content { padding-bottom: 1.5rem; }
  .hero-shade { background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 50%, rgba(0,0,0,.25) 100%); }
  .hero-bars { gap: .6rem; margin-top: 2rem; }
  .hero-bar__text { font-size: .6875rem; }
  .hero-bar__text .cap { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide img, .hero-model { transition: none; }
  .hero-slide img, .hero-slide.is-active img { transform: none; }
  .hero-line { animation: none; }
  .hero-bar.is-active .hero-bar__fill { animation: none; width: 100%; }
}

/* Шапка главной: над заставкой прозрачная, после неё - плотная белая,
   иначе белое меню пропадает на светлом фоне каталога. */
header.is-solid { background: rgba(255,255,255,.96) !important; color: var(--color-ink) !important;
  border-bottom: 1px solid var(--color-line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
/* Переходы по якорям не прячут заголовок раздела под фиксированной шапкой */
section[id] { scroll-margin-top: 88px; }
/* Блок «Технологии»: подошву с пластиной показываем целиком */
#about img { object-fit: contain; padding: 4%; mix-blend-mode: multiply; }

/* Класса object-contain в собранных стилях нет - без этого правила браузер растягивал
   снимки по рамке, и в квадратных миниатюрах кроссовки выходили сплюснутыми. */
.media img, #gallery-main img { object-fit: contain; }
/* Миниатюры галереи - в пропорции самих снимков, 4:3 */
#gallery-thumbs .media { width: 6.5rem; height: auto; aspect-ratio: 4 / 3; border-radius: .625rem; }
#gallery-thumbs .media > img { padding: 6%; }
@media (max-width: 767px) { #gallery-thumbs .media { width: 5rem; } }

/* Индикатор кадров - только три коротких штриха, без подписей */
.hero-bar__track { height: 2px; border-radius: 2px; }
@media (max-width: 767px) { .hero-bars { margin-top: 2rem; } .hero-bar { width: 2.75rem; } }

/* Заголовок блока каталога - на всю ширину сетки (класса col-span-full в сборке стилей нет) */
#grid > .cat-group { grid-column: 1 / -1; display: flex; align-items: baseline; gap: .75rem;
  padding-bottom: .25rem; border-bottom: 1px solid var(--color-line); }
#grid > .cat-group--next { margin-top: 2.5rem; }
#grid > .cat-group p { margin: 0; }


/* «Скоро в продаже»: тёмный блок-анонс перед разделом о технологиях.
   Скрыт, пока в upcoming.json нет позиций, - пустой анонс хуже, чем никакого. */
.upcoming { background: var(--color-ink); color: #fff; padding: 4.5rem 0; margin-top: 1rem; }
.hero + .upcoming { margin-top: 0; }
.upcoming[hidden] { display: none !important; }
.upcoming-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.upcoming-intro { max-width: 34rem; }
.upcoming-eyebrow { color: rgba(255,255,255,.45); }
.upcoming-title { margin-top: .75rem; font-size: clamp(1.75rem, 4vw, 3rem); }
.upcoming-lead { margin-top: 1rem; font-size: .9375rem; line-height: 1.7; color: rgba(255,255,255,.55); }
.upcoming-cta { flex: none; }
/* неполный последний ряд стоит по центру, а не прижат влево */
.upcoming-grid { margin-top: 3rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.upcoming-grid > * { flex: 0 0 calc((100% - 4.5rem) / 4); min-width: 0; }
@media (max-width: 1100px) { .upcoming-grid > * { flex-basis: calc((100% - 1.5rem) / 2); } }
@media (max-width: 767px) { .upcoming { padding: 3.25rem 0; } .upcoming-grid > * { flex-basis: 100%; } }
.upcoming-card { position: relative; overflow: hidden; border-radius: .625rem;
  border: 1px solid var(--color-line-dark, rgba(255,255,255,.14)); background: rgba(255,255,255,.04);
  display: flex; flex-direction: column; }
.upcoming-media { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 90% at 30% 0%, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 60%); }
.upcoming-media img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
/* Без фото - вместо пустоты крупный силуэт названия и логотип брендом-водяным знаком */
.upcoming-stub { display: grid; place-items: center; width: 100%; height: 100%; }
.upcoming-stub .brand-logo { opacity: .16; transform: scale(2.6); }
.upcoming-badge { position: absolute; top: 1rem; left: 1rem; z-index: 1; display: inline-flex; align-items: center;
  gap: .4rem; padding: .35rem .7rem; border-radius: 999px; background: rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.upcoming-badge::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: #fff;
  animation: upcoming-pulse 2.4s ease-in-out infinite; }
@keyframes upcoming-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.upcoming-body { padding: 1.5rem; border-top: 1px solid rgba(255,255,255,.08); }
.upcoming-model { font-size: 1.125rem; font-weight: 600; }
.upcoming-color { margin-top: .125rem; font-size: .9375rem; color: rgba(255,255,255,.55); }
.upcoming-note { margin-top: .875rem; font-size: .9375rem; line-height: 1.65; color: rgba(255,255,255,.55); }
@media (prefers-reduced-motion: reduce) { .upcoming-badge::before { animation: none; opacity: .8; } }
/* btn-light в собранных стилях остаётся тёмной - на чёрном фоне кнопка пропадала */
.upcoming-cta { background: #fff !important; color: var(--color-ink) !important; }
.upcoming-cta:hover { background: rgba(255,255,255,.85) !important; }

/* Стрелки листания кадров прямо на большом снимке */
#gallery-main { position: relative; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 2.75rem; height: 2.75rem; border-radius: 999px; display: grid; place-items: center;
  background: rgba(255,255,255,.9); color: var(--color-ink); font-size: 1.125rem; line-height: 1;
  box-shadow: 0 2px 12px rgba(0,0,0,.12); border: 1px solid var(--color-line);
  transition: background .2s, transform .2s; }
.gallery-nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.gallery-nav--prev { left: .75rem; }
.gallery-nav--next { right: .75rem; }
@media (max-width: 767px) { .gallery-nav { width: 2.25rem; height: 2.25rem; font-size: 1rem; } }

.upcoming-card { text-decoration: none; color: inherit; }
.upcoming-card:hover { border-color: rgba(255,255,255,.3); }
.upcoming-card:hover .upcoming-media img { transform: scale(1.04); }
.upcoming-media img { transition: transform .9s cubic-bezier(.16,1,.3,1); }
.upcoming-more { margin-top: .875rem; font-size: .875rem; color: rgba(255,255,255,.75); }
/* Плашка «скоро» на странице новинки */
.soon-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .8rem; border-radius: 999px;
  background: var(--color-ink); color: #fff; font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; }
.soon-chip::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: #fff;
  animation: upcoming-pulse 2.4s ease-in-out infinite; }
/* Метка «скоро» на карточке каталога */
.soon-tag { position: absolute; top: .625rem; left: .625rem; z-index: 1; padding: .25rem .55rem;
  border-radius: 999px; background: var(--color-ink); color: #fff; font-size: .6875rem;
  letter-spacing: .06em; text-transform: uppercase; }
.card-tags { position: absolute; top: .625rem; left: .625rem; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.card-tags .soon-tag { position: static; }
.card-feature { margin-top: .3rem; font-size: .8125rem; font-weight: 500; color: #1d5fd1; }
.card-feature--dark { color: #7fb0ff; }
.soon-tag--feature { background: #1d5fd1; }
.soon-tag--sale { background: #d7261e; }
.price-sale { color: #d7261e; }
.price-old { margin-left: .55rem; color: var(--color-muted-2, #9a988f); font-weight: 400; font-size: .85em; }
.price-off { margin-left: .55rem; padding: .1rem .45rem; border-radius: 999px; background: #d7261e; color: #fff; font-size: .7em; font-weight: 700; vertical-align: middle; }
.feature-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.feature-tag { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border-radius: 999px;
  background: #e8f0fe; color: #1d4fb8; font-size: .875rem; font-weight: 600; }
.feature-tag::before { content: ""; width: .55rem; height: .7rem; background: currentColor;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; clip-path: polygon(50% 0, 100% 62%, 50% 100%, 0 62%); }
/* Рекламные кадры бренда над карточками новинок */
.upcoming-posters { margin-top: 2.5rem; display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.upcoming-posters[hidden] { display: none !important; }
.upcoming-poster { overflow: hidden; border-radius: .625rem; aspect-ratio: 3 / 4; background: rgba(255,255,255,.05); }
/* Кадры бренда сняты вертикально - в горизонтальной рамке от них оставалась узкая полоса */
.upcoming-poster img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1.2s cubic-bezier(.16,1,.3,1); }
.upcoming-poster:hover img { transform: scale(1.05); }
@media (max-width: 767px) { .upcoming-posters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .upcoming-poster--wide { display: none; } }
/* Снимки новинок сняты на белом - даём карточке белую «полку», иначе фон выглядит заплаткой */
.upcoming-media { background: #fff; }
.upcoming-media img { padding: 7%; }
.upcoming-card { background: rgba(255,255,255,.06); }
/* Лента миниатюр должна прокручиваться внутри колонки, а не растягивать страницу на телефоне */
#product > div.grid > div, #soon-page > div.grid > div { min-width: 0; }
#gallery-thumbs { max-width: 100%; }

/* Корзина на телефоне: цена строки уезжала за экран - переносим её под товар */
.cart-line > div { min-width: 0; }
@media (max-width: 520px) {
  .cart-line { grid-template-columns: 6rem minmax(0, 1fr); gap: .875rem; }
  .cart-line img { width: 6rem; }
  .cart-line > p:last-child { grid-column: 2; margin-top: .625rem; }
}
/* Строки «Итого»: длинные подписи переносим, а не растягиваем блок */
#cart-body .flex.justify-between { flex-wrap: wrap; gap: .5rem 1.5rem; }

/* Заявка: карта для курьера и поле-ловушка для роботов */
.map-box { height: 17rem; border-radius: .625rem; overflow: hidden; border: 1px solid var(--color-line); background: var(--color-paper-2, #f4f2ed); }
@media (max-width: 767px) { .map-box { height: 14rem; } }
.map-box .leaflet-container { height: 100%; width: 100%; font: inherit; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#region-block select.field { appearance: auto; }
#order-status { white-space: pre-line; }

/* Экран после отправки заявки */
.order-done { margin-top: 2rem; border: 1px solid var(--color-line); border-radius: .625rem; padding: 1.75rem; }
.order-done[hidden] { display: none !important; }
/* Заголовки внутри формы заказа отделяем от полей, иначе подписи слипаются */
#order-form h2 { padding-bottom: .75rem; border-bottom: 1px solid var(--color-line); }
#order-form .form-row > label:first-child { margin-bottom: .375rem; display: block; }

/* Второстепенные действия: раньше были просто серым текстом и терялись */
.btn-quiet { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .9rem;
  border-radius: 999px; border: 1px solid var(--color-line); background: transparent;
  color: var(--color-muted); font-size: .8125rem; line-height: 1; cursor: pointer;
  transition: border-color .2s, color .2s, background-color .2s; }
.btn-quiet:hover { border-color: var(--color-ink); color: var(--color-ink); background: rgba(20,20,20,.04); }

/* Пункты меню подсвечиваются капсулой - на тёмной заставке светлой, на белой шапке тёмной */
header nav.items-center { gap: .25rem; }
header nav a { padding: .45rem .85rem; border-radius: 999px; border: 1px solid transparent;
  transition: background-color .25s, border-color .25s, color .25s; }
header nav a:hover { opacity: 1; background: rgba(20,20,20,.05); border-color: var(--color-line); }
header nav a[aria-current] { background: rgba(20,20,20,.06); }
header.bg-transparent:not(.is-solid) nav a:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.45); }
header.bg-transparent:not(.is-solid) nav a[aria-current] { background: rgba(255,255,255,.16); }

/* Блок «Итого»: в собранных стилях нет класса p-6 - текст лип к рамке */
#cart-body .border.p-6 { padding: 1.5rem; border-radius: .625rem; }
#cart-body .border.p-6 h2 { margin-bottom: .25rem; }
#cart-body .border.p-6 > div { padding-top: .875rem; padding-bottom: .875rem; }
#cart-body .border.p-6 > div:last-child { padding-bottom: 0; }

/* Переключатель языка в шапке */
.lang-switch { display: inline-flex; align-items: center; gap: .125rem; margin-right: .25rem;
  border: 1px solid var(--color-line); border-radius: 999px; padding: .15rem; }
.lang-switch__item { padding: .2rem .5rem; border-radius: 999px; font-size: .75rem; letter-spacing: .04em;
  color: inherit; opacity: .6; text-decoration: none; transition: background-color .2s, opacity .2s; }
.lang-switch__item:hover { opacity: 1; }
.lang-switch__item.is-active { opacity: 1; background: rgba(20,20,20,.08); font-weight: 600; }
header.bg-transparent:not(.is-solid) .lang-switch { border-color: rgba(255,255,255,.4); }
header.bg-transparent:not(.is-solid) .lang-switch__item.is-active { background: rgba(255,255,255,.2); }
@media (max-width: 420px) { .lang-switch__item { padding: .2rem .35rem; font-size: .6875rem; } }

/* ================= оформление заказа (корзина v2) ================= */
.co { background: var(--color-paper-2, #f6f5f3); }
.co-wrap { padding-top: 7.5rem; padding-bottom: 5rem; }
.co .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.co-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.co-kicker { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--color-accent, #c2562c); font-weight: 600; }
.co-title { font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: .95; font-weight: 800; letter-spacing: -.035em; text-transform: uppercase; margin-top: .5rem; }
.co-steps { display: flex; gap: .375rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.co-steps li { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem .45rem .45rem; border-radius: 999px;
  background: #fff; color: var(--color-muted, #7c7c7c); font-size: .8125rem; font-weight: 500; }
.co-steps li span { width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700;
  background: var(--color-paper-2, #f6f5f3); color: var(--color-muted, #7c7c7c); }
.co-steps li.is-on { color: var(--color-ink, #141414); }
.co-steps li.is-on span { background: var(--color-ink, #141414); color: #fff; }
.co-steps li.is-done span { background: var(--color-accent, #c2562c); color: #fff; }

.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 1.5rem; align-items: start; }
.co-main { display: grid; gap: 1rem; min-width: 0; }
.co-main form { display: grid; gap: 1rem; }
.co-card { background: #fff; border-radius: 1.75rem; padding: 1.75rem; box-shadow: 0 1px 2px rgba(20,20,20,.03); }
.co-card-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.co-card-head h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; }
.co-num { width: 2rem; height: 2rem; border-radius: 50%; background: var(--color-ink, #141414); color: #fff; display: grid; place-items: center;
  font-size: .8125rem; font-weight: 700; flex: none; }
.co-link { margin-left: auto; background: none; border: 0; color: var(--color-muted, #7c7c7c); font-size: .875rem; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0,0,0,.2); }
.co-link:hover { color: var(--color-accent, #c2562c); }
.co-optional { margin-left: auto; font-size: .8125rem; color: var(--color-muted-2, #a3a3a3); }

/* товары */
.co-lines { display: grid; gap: .75rem; }
.co-line { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; gap: 1.25rem; align-items: center;
  padding: .75rem; border-radius: 1.25rem; background: var(--color-paper-2, #f6f5f3); position: relative; }
.co-line-img { display: block; width: 7.5rem; aspect-ratio: 1; border-radius: 1rem; background: #fff; overflow: hidden; }
.co-line-img img { width: 100%; height: 100%; object-fit: contain; padding: .5rem; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.co-line:hover .co-line-img img { transform: scale(1.06) rotate(-2deg); }
.co-line-title { font-size: 1.0625rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.co-line-title:hover { color: var(--color-accent, #c2562c); }
.co-line-meta { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .5rem; }
.co-tag { display: inline-flex; align-items: center; padding: .25rem .65rem; border-radius: 999px; background: #fff; font-size: .8125rem; font-weight: 600; }
.co-tag--muted { color: var(--color-muted, #7c7c7c); font-weight: 500; }
.co-line-bottom { display: flex; align-items: center; gap: .75rem; margin-top: .75rem; flex-wrap: wrap; }
.co-qty { display: inline-flex; align-items: center; background: #fff; border-radius: 999px; padding: .2rem; }
.co-qty button { width: 2rem; height: 2rem; border-radius: 50%; border: 0; background: none; font-size: 1.125rem; line-height: 1; cursor: pointer;
  color: var(--color-ink, #141414); transition: background-color .2s, color .2s; }
.co-qty button:hover:not(:disabled) { background: var(--color-ink, #141414); color: #fff; }
.co-qty button:disabled { opacity: .3; cursor: default; }
.co-qty span { min-width: 1.75rem; text-align: center; font-weight: 700; }
.co-stock { font-size: .75rem; color: var(--color-muted-2, #a3a3a3); }
.co-line-price { font-size: 1.125rem; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; padding-right: .5rem; }
.co-remove { position: absolute; top: .6rem; right: .6rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 0; background: #fff;
  color: var(--color-muted, #7c7c7c); cursor: pointer; display: grid; place-items: center; transition: background-color .2s, color .2s; }
.co-remove:hover { background: var(--color-ink, #141414); color: #fff; }
.co-line .co-line-price { align-self: end; padding-bottom: .35rem; }

/* поля */
.co-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.co-field { display: grid; gap: .4rem; }
.co-field > span { font-size: .8125rem; font-weight: 600; color: var(--color-muted, #7c7c7c); padding-left: .25rem; }
.co-field input, .co-field select, .co-field textarea { width: 100%; font: inherit; color: var(--color-ink, #141414);
  background: var(--color-paper-2, #f6f5f3); border: 1.5px solid transparent; border-radius: 1rem; padding: .9rem 1.1rem; outline: none;
  transition: border-color .2s, background-color .2s, box-shadow .2s; }
.co-field input:hover, .co-field select:hover, .co-field textarea:hover { background: #efede8; }
.co-field input:focus, .co-field select:focus, .co-field textarea:focus { background: #fff; border-color: var(--color-ink, #141414);
  box-shadow: 0 0 0 4px rgba(20,20,20,.06); }
.co-field input:invalid:not(:placeholder-shown) { border-color: #c0392b; }
.co-field textarea { min-height: 6rem; resize: vertical; }
.co-field select { appearance: none; cursor: pointer; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23141414' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.1rem center; }
.co-note { margin-top: .75rem; font-size: .8125rem; color: var(--color-muted, #7c7c7c); padding-left: .25rem; }
.co-info { font-size: .875rem; line-height: 1.55; color: #6b4a3a; background: #f8ebe3; border-radius: 1rem; padding: 1rem 1.1rem; }

/* способы получения */
.co-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.co-method { position: relative; display: grid; gap: .9rem; align-content: start; padding: 1.1rem; border-radius: 1.25rem; cursor: pointer;
  background: var(--color-paper-2, #f6f5f3); border: 2px solid transparent; transition: border-color .25s, background-color .25s, transform .2s; }
.co-method:hover { transform: translateY(-2px); background: #efede8; }
.co-method input { position: absolute; opacity: 0; pointer-events: none; }
.co-method-icon { width: 3rem; height: 3rem; border-radius: 1rem; background: #fff; display: grid; place-items: center; color: var(--color-ink, #141414);
  transition: background-color .25s, color .25s; }
.co-method-text { display: grid; gap: .2rem; }
.co-method-text b { font-size: .9375rem; line-height: 1.25; }
.co-method-text small { font-size: .78rem; line-height: 1.35; color: var(--color-muted, #7c7c7c); }
.co-method-tick { position: absolute; top: 1rem; right: 1rem; width: 1.35rem; height: 1.35rem; border-radius: 50%; border: 2px solid #d9d5cd; background: #fff;
  transition: all .25s; }
.co-method:has(input:checked) { background: #fff; border-color: var(--color-ink, #141414); }
.co-method:has(input:checked) .co-method-icon { background: var(--color-ink, #141414); color: #fff; }
.co-method:has(input:checked) .co-method-tick { border-color: var(--color-accent, #c2562c); background: var(--color-accent, #c2562c);
  box-shadow: inset 0 0 0 3px #fff; }
.co-method:has(input:focus-visible) { outline: 3px solid rgba(194,86,44,.35); outline-offset: 2px; }
.co-sub { margin-top: 1.25rem; display: grid; gap: .9rem; animation: co-in .35s cubic-bezier(.16,1,.3,1); }
.co-sub[hidden] { display: none; }
@keyframes co-in { from { opacity: 0; transform: translateY(6px); } }
.co-map-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.co-map-head p { font-size: .875rem; color: var(--color-muted, #7c7c7c); }
.co-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--color-ink, #141414); color: #fff; font: inherit; font-size: .8125rem; font-weight: 600; transition: background-color .2s; }
.co-chip:hover:not(:disabled) { background: var(--color-accent, #c2562c); }
.co-chip:disabled { opacity: .5; }
.co-map { height: 18rem; border-radius: 1.25rem; overflow: hidden; background: var(--color-paper-2, #f6f5f3); isolation: isolate; }
.co-map .leaflet-container { height: 100%; width: 100%; font: inherit; }
.co-pickup { display: grid; gap: .25rem; padding: 1.1rem 1.25rem; border-radius: 1.25rem; background: var(--color-paper-2, #f6f5f3); }
.co-pickup:hover b { color: var(--color-accent, #c2562c); }
.co-pickup small { color: var(--color-muted, #7c7c7c); }

/* итог */
.co-side { position: sticky; top: 5.5rem; }
.co-summary { background: var(--color-ink, #141414); color: #fff; border-radius: 1.75rem; padding: 1.75rem; position: relative; overflow: hidden; }
.co-summary::before { content: ""; position: absolute; width: 16rem; height: 16rem; border-radius: 50%; right: -7rem; top: -8rem;
  background: radial-gradient(circle, rgba(194,86,44,.55), rgba(194,86,44,0) 70%); pointer-events: none; }
.co-summary > * { position: relative; }
.co-summary-kicker { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); font-weight: 600; }
.co-thumbs { display: flex; margin: 1.1rem 0 1.25rem; min-height: 3.5rem; }
.co-thumbs span { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: #fff; border: 3px solid var(--color-ink, #141414); overflow: hidden;
  margin-left: -.8rem; display: grid; place-items: center; font-size: .8125rem; font-weight: 700; color: var(--color-ink, #141414); }
.co-thumbs span:first-child { margin-left: 0; }
.co-thumbs img { width: 100%; height: 100%; object-fit: contain; padding: .25rem; }
.co-row { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .9375rem; color: rgba(255,255,255,.62); }
.co-row span:last-child { color: #fff; text-align: right; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 0 1.25rem;
  border-top: 1px solid rgba(255,255,255,.1); }
.co-total span:first-child { color: rgba(255,255,255,.62); }
.co-total span:last-child { font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; }
.co-cta { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 0; cursor: pointer;
  background: var(--color-accent, #c2562c); color: #fff; font: inherit; font-size: 1.0625rem; font-weight: 700;
  padding: .45rem .45rem .45rem 1.5rem; border-radius: 999px; transition: background-color .25s, transform .15s; }
.co-cta:hover:not(:disabled) { background: #d8643a; }
.co-cta:active:not(:disabled) { transform: scale(.98); }
.co-cta:disabled { opacity: .6; cursor: default; }
.co-cta-arrow { width: 3rem; height: 3rem; border-radius: 50%; background: #fff; color: var(--color-ink, #141414); display: grid; place-items: center;
  font-size: 1.25rem; transition: transform .3s cubic-bezier(.16,1,.3,1); }
.co-cta:hover:not(:disabled) .co-cta-arrow { transform: translateX(3px) rotate(-8deg); }
.co-status { margin-top: .9rem; font-size: .875rem; line-height: 1.5; color: #ffb4a8; white-space: pre-line; }
.co-trust { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .6rem; }
.co-trust li { display: flex; align-items: center; gap: .6rem; font-size: .8125rem; color: rgba(255,255,255,.6); }
.co-trust svg { color: var(--color-accent, #c2562c); flex: none; }

/* пусто и готово */
.co-empty, .co-done { background: #fff; border-radius: 2rem; padding: 4rem 1.5rem; text-align: center; display: grid; justify-items: center; gap: .75rem;
  max-width: 40rem; margin: 0 auto; }
.co-empty-icon, .co-done-check { width: 6rem; height: 6rem; border-radius: 50%; display: grid; place-items: center; margin-bottom: .5rem; }
.co-empty-icon { background: var(--color-paper-2, #f6f5f3); color: var(--color-ink, #141414); }
.co-empty-title { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; }
.co-empty-text, .co-done-sub { color: var(--color-muted, #7c7c7c); max-width: 26rem; line-height: 1.55; }
.co-done-check { background: var(--color-accent, #c2562c); color: #fff; animation: co-pop .6s cubic-bezier(.16,1.4,.3,1); }
.co-done-check svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: co-draw .5s .25s ease forwards; }
@keyframes co-pop { from { transform: scale(.4); opacity: 0; } }
@keyframes co-draw { to { stroke-dashoffset: 0; } }
.co-done-text { font-size: 1.375rem; font-weight: 700; line-height: 1.35; letter-spacing: -.015em; max-width: 30rem; }
.co-done-actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-top: .75rem; }
.co-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .9rem 1.5rem; border-radius: 999px; font-weight: 600; margin-top: .5rem;
  transition: background-color .25s, color .25s, border-color .25s; border: 1.5px solid transparent; }
.co-btn--dark { background: var(--color-ink, #141414); color: #fff; }
.co-btn--dark:hover { background: var(--color-accent, #c2562c); }
.co-btn--tg { background: #229ed9; color: #fff; }
.co-btn--tg:hover { background: #1b87ba; }
.co-btn--ghost { border-color: var(--color-line, #e6e4e0); }
.co-btn--ghost:hover { border-color: var(--color-ink, #141414); }

/* нижняя панель на телефоне */
.co-bar { display: none; }
@media (max-width: 1023px) {
  .co-grid { grid-template-columns: 1fr; }
  .co-side { position: static; }
  .co-bar:not([hidden]) { display: flex; position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 40; align-items: center; gap: 1rem;
    background: var(--color-ink, #141414); color: #fff; border-radius: 999px; padding: .4rem .4rem .4rem 1.4rem;
    box-shadow: 0 18px 40px rgba(20,20,20,.3); padding-bottom: calc(.4rem + env(safe-area-inset-bottom, 0px) * .3); }
  .co-bar-sum { display: grid; line-height: 1.15; }
  .co-bar-sum small { font-size: .6875rem; color: rgba(255,255,255,.55); }
  .co-bar-sum b { font-size: 1.125rem; font-weight: 800; }
  .co-cta--bar { width: auto; margin-left: auto; font-size: .9375rem; padding-left: 1.1rem; gap: .75rem; }
  .co-cta--bar .co-cta-arrow { width: 2.6rem; height: 2.6rem; }
  .co-wrap { padding-bottom: 7rem; }
}
@media (max-width: 767px) {
  .co-wrap { padding-top: 5.75rem; }
  .co-head { margin-bottom: 1.25rem; }
  .co-steps { display: none; }
  .co-card { padding: 1.25rem; border-radius: 1.5rem; }
  .co-card-head { margin-bottom: 1rem; }
  .co-fields { grid-template-columns: 1fr; }
  .co-methods { grid-template-columns: 1fr; gap: .5rem; }
  .co-method { grid-template-columns: auto 1fr; align-items: center; padding: .8rem; }
  .co-method-icon { width: 2.75rem; height: 2.75rem; }
  .co-method-tick { top: 50%; transform: translateY(-50%); }
  .co-method-text { padding-right: 2rem; }
  .co-line { grid-template-columns: 5.5rem minmax(0, 1fr); gap: .9rem; align-items: start; }
  .co-line-img { width: 5.5rem; }
  .co-line-title { font-size: .9375rem; padding-right: 2rem; }
  .co-line .co-line-price { grid-column: 2; padding: 0; font-size: 1rem; }
  .co-map { height: 15rem; }
  .co-summary { border-radius: 1.5rem; padding: 1.4rem; }
  .co-empty, .co-done { padding: 3rem 1.25rem; border-radius: 1.5rem; }
}
#order-form .co-card-head h2 { padding-bottom: 0; border-bottom: 0; }

/* подсказка «установить приложение» */
.app-hint { position: fixed; left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: flex; align-items: center; gap: .8rem; max-width: 26rem; margin: 0 auto; padding: .6rem .6rem .6rem .6rem;
  background: var(--color-ink, #141414); color: #fff; border-radius: 1.25rem; box-shadow: 0 18px 40px rgba(20,20,20,.3);
  animation: co-in .45s cubic-bezier(.16,1,.3,1); }
.app-hint img { width: 2.75rem; height: 2.75rem; border-radius: .7rem; flex: none; }
.app-hint-text { display: grid; line-height: 1.25; min-width: 0; }
.app-hint-text b { font-size: .9375rem; }
.app-hint-text span { font-size: .75rem; color: rgba(255,255,255,.62); }
.app-hint-go { margin-left: auto; border: 0; border-radius: 999px; background: var(--color-accent, #c2562c); color: #fff; font: inherit;
  font-weight: 700; font-size: .8125rem; padding: .55rem .95rem; cursor: pointer; }
.app-hint-close { margin-left: auto; width: 2rem; height: 2rem; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff;
  font-size: 1.125rem; cursor: pointer; flex: none; }
.app-hint-go + .app-hint-close { margin-left: 0; }
.co-line .co-tag--muted { }
@media (max-width: 767px) { .co-line .co-tag--muted { display: none; } }

/* Таблица размеров: ссылка под размерами в карточке и всплывающее окно. */
.sizechart__link {
  border: 0; background: none; padding: 0; font: inherit; font-size: .8125rem; cursor: pointer;
  color: var(--color-muted, #6b6a63); text-decoration: underline; text-underline-offset: .2em;
}
.sizechart__link:hover { color: var(--color-ink, #141413); }

.sizechart {
  position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center;
  padding: 1rem; background: rgba(11, 11, 12, .45);
}
.sizechart__sheet {
  width: 100%; max-width: 32rem; max-height: 86vh; overflow-y: auto;
  background: var(--color-paper, #faf9f5); padding: 1.5rem; border-radius: 1.25rem;
}
.sizechart__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.sizechart__title { font-size: 1.125rem; font-weight: 600; }
.sizechart__close {
  border: 0; background: none; padding: 0; width: 2rem; height: 2rem; flex: none;
  font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--color-muted, #6b6a63);
}
.sizechart__close:hover { color: var(--color-ink, #141413); }

.sizechart__table { width: 100%; border-collapse: collapse; margin-top: 1.25rem; font-size: .875rem; }
.sizechart__table th, .sizechart__table td {
  padding: .55rem .25rem; text-align: center; border-bottom: 1px solid var(--color-line, #e6e3dc);
  font-variant-numeric: tabular-nums;
}
.sizechart__table thead th {
  font-size: .6875rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--color-muted, #6b6a63); font-weight: 600;
}
.sizechart__table tbody th { font-weight: 600; }
.sizechart__table tbody tr:last-child th, .sizechart__table tbody tr:last-child td { border-bottom: 0; }

.sizechart__note { margin-top: 1.25rem; font-size: .8125rem; line-height: 1.55; color: var(--color-muted, #6b6a63); }
.sizechart__note p { margin-top: .625rem; }
.sizechart__note h3 { margin-top: 1.25rem; font-size: .875rem; font-weight: 600; color: var(--color-ink, #141413); }
.sizechart__note ol { margin-top: .5rem; padding-left: 1.1rem; list-style: decimal; }
.sizechart__note li { margin-top: .3rem; }
.sizechart__note a { color: var(--color-ink, #141413); text-decoration: underline; text-underline-offset: .2em; }

/* mt-20 нет в собранном Tailwind (style.css) - без него «Другие новинки» прилипали к галерее */
.mt-20 { margin-top: 5rem; }
@media (max-width: 767px) { .mt-20 { margin-top: 3.5rem; } }

/* Баннер-новинка первым слайдом героя (14.10.2026): Carbon Shock 4 + Soar Pro.
   Свой текст и кнопки; общий заголовок героя на этом кадре скрыт (.hero.is-promo). */
@font-face { font-family: AKONY; src: url(/assets/fonts/akony.woff2) format('woff2'); font-display: swap; }
.hero-eyebrow, .hero-title, .hero-actions, .hero-shade { transition: opacity .6s ease, visibility .6s; }
.hero.is-promo .hero-eyebrow, .hero.is-promo .hero-title, .hero.is-promo .hero-actions, .hero.is-promo .hero-shade { opacity: 0; visibility: hidden; }
.hero.is-promo .hero-content { pointer-events: none; }
.hero.is-promo .hero-bars { pointer-events: auto; }
.hero-promo { pointer-events: none;
  background: radial-gradient(70% 90% at 78% 40%, rgba(255,90,170,.55) 0%, rgba(255,90,170,0) 60%),
              linear-gradient(118deg, #15123f 0%, #2a2380 38%, #6a2f9c 66%, #d4458f 100%); }
.hero-promo.is-active { pointer-events: auto; }
.hero-slide.hero-promo img { position: static; inset: auto; width: 100%; height: 100%; object-fit: contain; transform: none; transition: none; }
.promo-mark { position: absolute; right: -2vw; bottom: -3vw; font-family: AKONY, sans-serif; font-size: 22vw; line-height: .8;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.10); white-space: nowrap; pointer-events: none; }
.promo-inner { position: relative; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center; gap: 4rem; padding-top: 5.5rem; padding-bottom: 4rem; }
.promo-pill { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem .95rem; border-radius: 999px;
  background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.promo-dot { width: .5rem; height: .5rem; border-radius: 50%; background: #3dff9a; box-shadow: 0 0 0 0 rgba(61,255,154,.7); animation: promoPulse 2s infinite; }
@keyframes promoPulse { 0% { box-shadow: 0 0 0 0 rgba(61,255,154,.6); } 70% { box-shadow: 0 0 0 .6rem rgba(61,255,154,0); } 100% { box-shadow: 0 0 0 0 rgba(61,255,154,0); } }
.promo-title { margin-top: 1.4rem; font-family: AKONY, sans-serif; font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.2rem, 4.1vw, 5rem); line-height: .98; letter-spacing: .01em; color: #fff; white-space: nowrap; }
.promo-lead { margin-top: 1rem; max-width: 30rem; font-size: 1rem; line-height: 1.6; color: rgba(255,255,255,.75); }
.promo-price { margin-top: 1.2rem; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; color: #fff; }
.promo-actions { margin-top: 1.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; }
.promo-link { font-weight: 600; color: #fff; }
.promo-link:hover { opacity: .7; }
.promo-also { margin-top: 1.5rem; display: grid; gap: .2rem; max-width: 30rem; padding: 1rem 1.2rem; border-radius: 1rem;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.07); color: #fff; transition: background .3s; }
.promo-also:hover { background: rgba(255,255,255,.14); }
.promo-also__eyebrow { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.promo-also__name { font-family: AKONY, sans-serif; font-size: 1.35rem; text-transform: uppercase; }
.promo-also__text { font-size: .875rem; color: rgba(255,255,255,.72); }
.promo-stage { position: relative; height: min(64vh, 36rem); }
.promo-card { position: absolute; display: block; background: #fff; border-radius: 1.6rem; padding: 4%; box-shadow: 0 30px 60px -20px rgba(10,6,40,.55);
  transition: translate .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, scale .35s; cursor: pointer; }
/* наведение: карточка приподнимается и выходит на передний план, клик ведёт в товар */
.promo-card:hover, .promo-card:focus-visible { translate: 0 -10px; scale: 1.02; z-index: 5; box-shadow: 0 40px 70px -18px rgba(10,6,40,.7); }
.promo-card img { transition: scale .5s cubic-bezier(.2,.8,.2,1); }
.promo-card:hover img { scale: 1.04; }
.promo-card--main { left: 4%; top: 6%; width: 78%; aspect-ratio: 4 / 3; transform: rotate(-5deg); z-index: 2; }
.promo-card--alt { right: 0; top: 0; width: 38%; aspect-ratio: 4 / 3; transform: rotate(7deg); z-index: 1; opacity: .96; }
.promo-card--soar { right: 4%; bottom: 2%; width: 46%; aspect-ratio: 4 / 3; transform: rotate(4deg); z-index: 3; }
.promo-tag { position: absolute; left: 1rem; top: 1rem; padding: .3rem .7rem; border-radius: 999px; background: #e0115f; color: #fff;
  font-family: AKONY, sans-serif; font-size: .75rem; letter-spacing: .06em; z-index: 1; }
.promo-tag--dark { background: #15123f; }
.hero-promo.is-active .promo-card--main { animation: promoIn 1.1s cubic-bezier(.16,1,.3,1) backwards; }
.hero-promo.is-active .promo-card--soar { animation: promoIn 1.1s .15s cubic-bezier(.16,1,.3,1) backwards; }
@keyframes promoIn { from { opacity: 0; translate: 0 2rem; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 1023px) {
  .promo-inner { grid-template-columns: 1fr; align-content: start; gap: 1.2rem; padding-top: 5.5rem; padding-bottom: 6rem; }
  .promo-stage { order: -1; height: 34vh; }
  .promo-card--alt { display: none; }
  .promo-card--main { left: 0; top: 4%; width: 66%; }
  .promo-card--soar { right: 0; bottom: 0; width: 46%; }
  .promo-title { margin-top: .9rem; font-size: clamp(2rem, 10vw, 3.4rem); }
  .promo-lead { display: none; }
  .promo-price { margin-top: .7rem; }
  .promo-actions { margin-top: 1rem; }
  .promo-also { margin-top: 1rem; padding: .75rem 1rem; }
  .promo-also__text { font-size: .8125rem; }
  .promo-stage { height: 27vh; }
  .promo-inner { padding-bottom: 2.5rem; }
  .promo-pill { font-size: .6875rem; padding: .35rem .8rem; }
  .promo-also__text { display: none; }
  .promo-also__name { white-space: nowrap; }
  .promo-also__name::after { content: " · 1 400 000"; font-family: Onest, sans-serif; font-size: .9rem; opacity: .8; white-space: nowrap; }
  .promo-tag { left: .55rem; top: .55rem; padding: .2rem .5rem; font-size: .5625rem; }
}
.promo-tag { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .promo-dot, .hero-promo.is-active .promo-card--main, .hero-promo.is-active .promo-card--soar { animation: none; } }

/* Свой выпадающий список (store.js enhanceSelect): скруглённый, как остальные поля сайта */
.bm-select-pop { position: fixed; z-index: 1000; max-height: 20rem; overflow-y: auto; overscroll-behavior: contain;
  padding: .4rem; background: #fff; border: 1px solid rgba(20,20,20,.08); border-radius: 1rem;
  box-shadow: 0 18px 40px -12px rgba(20,20,20,.22), 0 2px 6px rgba(20,20,20,.06);
  font-size: .9375rem; color: var(--color-ink, #141414); animation: bmPop .14s ease-out; }
@keyframes bmPop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.bm-select-opt { position: relative; padding: .6rem 2.2rem .6rem .85rem; border-radius: .7rem; cursor: pointer; white-space: nowrap; line-height: 1.3; }
.bm-select-opt.is-active { background: var(--color-paper-2, #f3f2ef); }
.bm-select-opt.is-selected { font-weight: 600; }
.bm-select-opt.is-selected::after { content: ""; position: absolute; right: .85rem; top: 50%; width: .45rem; height: .8rem; margin-top: -.5rem;
  border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.bm-select-opt.is-disabled { opacity: .4; cursor: default; }
.bm-select-pop::-webkit-scrollbar { width: 8px; }
.bm-select-pop::-webkit-scrollbar-thumb { background: rgba(20,20,20,.15); border-radius: 8px; border: 2px solid #fff; }
@media (prefers-reduced-motion: reduce) { .bm-select-pop { animation: none; } }

/* Фото товара на весь экран (product.js openLightbox) */
#gallery-main.is-zoomable { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center;
  background: rgba(10,10,12,.92); animation: lbIn .18s ease-out; cursor: zoom-out; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox__img { max-width: min(92vw, 1500px); max-height: 86vh; object-fit: contain; border-radius: 1.25rem; background: #f3f2ef;
  cursor: default; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.12); color: #fff; font-size: 1.75rem; line-height: 1; cursor: pointer; }
.lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; width: 3rem; height: 3rem; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.14); color: #fff; font-size: 1.25rem; cursor: pointer; }
.lightbox__nav--prev { left: 1rem; } .lightbox__nav--next { right: 1rem; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.26); }
.lightbox__count { position: absolute; bottom: 1.1rem; left: 50%; translate: -50% 0; color: rgba(255,255,255,.7); font-size: .875rem; }
html.lightbox-open { overflow: hidden; }
@media (max-width: 767px) { .lightbox__img { max-width: 100vw; border-radius: 0; } .lightbox__nav { display: none; } }
@media (prefers-reduced-motion: reduce) { .lightbox { animation: none; } }

/* Значок Telegram в подсказке про размер */
.tg-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem .15rem .45rem; border-radius: 999px;
  background: #229ed9; color: #fff; font-weight: 600; font-size: .75rem; vertical-align: middle; text-decoration: none; }
.tg-chip:hover { background: #1b8bc0; }
/* постеры новинок - ссылки на модели: приподнимаются при наведении */
.upcoming-poster { display: block; transition: translate .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.upcoming-poster:hover { translate: 0 -8px; box-shadow: 0 24px 50px -18px rgba(0,0,0,.6); }

/* Раздел «Статьи» (photo-work/articles/build.py) */
.article-hub { padding-top: 7.5rem; padding-bottom: 5rem; }
.article-hub__title { margin-top: .75rem; font-size: clamp(2rem, 5vw, 3.5rem); }
.article-hub__lead { margin-top: 1rem; max-width: 40rem; font-size: 1.0625rem; line-height: 1.65; color: var(--color-muted, #6b6a63); }
.article-grid { margin-top: 2.5rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.article-card { display: flex; flex-direction: column; gap: .6rem; padding: 1.5rem; border-radius: 1.25rem; background: var(--color-paper-2, #f3f2ef);
  color: inherit; text-decoration: none; transition: translate .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, background .3s; }
.article-card:hover { translate: 0 -4px; background: #fff; box-shadow: 0 20px 40px -20px rgba(20,20,20,.25); }
.article-card__tag { align-self: flex-start; padding: .25rem .65rem; border-radius: 999px; background: var(--color-ink, #141414); color: #fff;
  font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; }
.article-card__title { font-size: 1.1875rem; font-weight: 700; line-height: 1.25; }
.article-card__lead { font-size: .9375rem; line-height: 1.55; color: var(--color-muted, #6b6a63); flex: 1; }
.article-card__meta { font-size: .8125rem; color: var(--color-muted-2, #9a988f); }
.article { max-width: 46rem; padding-top: 7.5rem; padding-bottom: 3rem; }
.article-crumbs { font-size: .8125rem; color: var(--color-muted, #6b6a63); }
.article-crumbs a { text-decoration: underline; text-underline-offset: .2em; }
.article-title { margin-top: .75rem; font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.05; }
.article-lead { margin-top: 1.1rem; font-size: 1.1875rem; line-height: 1.55; color: var(--color-ink, #141414); }
.article-meta { margin-top: 1rem; font-size: .8125rem; color: var(--color-muted, #6b6a63); }
.article-body { margin-top: 2.25rem; font-size: 1.0625rem; line-height: 1.75; color: rgba(20,20,20,.86); }
.article-body h2 { margin-top: 2.25rem; font-size: 1.375rem; font-weight: 700; line-height: 1.25; color: var(--color-ink, #141414); }
.article-body p { margin-top: 1rem; }
.article-body ul { margin-top: 1rem; padding-left: 1.2rem; list-style: disc; }
.article-body li { margin-top: .45rem; }
.article-body a { text-decoration: underline; text-decoration-color: rgba(20,20,20,.35); text-underline-offset: .2em; }
.article-body a:hover { text-decoration-color: currentColor; }
.article-tip { margin-top: 1.75rem; padding: 1.1rem 1.25rem; border-radius: 1rem; background: #eef3ff; color: #1d3b8a; font-size: 1rem; }
.article-cta { margin-top: 2rem !important; }
.article-cta .btn { text-decoration: none !important; }
.article-more { padding-bottom: 5rem; }
.article-more__title { font-size: 1.5rem; font-weight: 700; }
.article-more .article-grid { margin-top: 1.25rem; }

/* 15.10.2026: плитка «Новинки» на главной — фон как у снимков (#f4f4f3), чтобы фото не читалось
   серым прямоугольником на белом; плашка «Новинка» тёмная, иначе белый текст терялся на светлом фоне. */
.upcoming-media { background: #f4f4f3; }
.upcoming-media img { mix-blend-mode: multiply; }
.upcoming-badge { background: rgba(17,17,17,.82); color: #fff; font-weight: 600; }
.upcoming-badge::before { background: #ff6b35; }

/* Первый экран с видео (17.10.2026, по UX-встрече): люди в кадре, слоган для новичков, выбор по уровню,
   подсказка листать вниз; низ экрана перетекает в чёрный блок «Новинки». */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero--video .hero-shade { opacity: 1; visibility: visible;
  background: linear-gradient(90deg, rgba(8,8,10,.78) 0%, rgba(8,8,10,.45) 45%, rgba(8,8,10,.1) 78%),
              linear-gradient(180deg, rgba(8,8,10,.35) 0%, rgba(8,8,10,0) 22%, rgba(8,8,10,0) 60%, var(--color-ink) 100%); }
.hero--video .hero-content { padding-bottom: 6.5rem; }
.hero-new { display: inline-flex; align-items: center; gap: .6rem; padding: .35rem .95rem .35rem .35rem; border-radius: 999px;
  background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; font-size: .875rem; font-weight: 500; transition: background .25s; }
.hero-new:hover { background: rgba(255,255,255,.24); }
.hero-new__tag { padding: .28rem .65rem; border-radius: 999px; background: #e0115f; font-family: AKONY, sans-serif; font-size: .7rem; letter-spacing: .06em; }
.hero--video .hero-eyebrow { margin-top: 1.4rem; }
.hero--video .hero-title { font-size: clamp(2.2rem, 4.9vw, 5.2rem); max-width: 15ch; }
.hero--video .hero-line { white-space: normal; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero--video .hero-line--2 { font-size: .58em; margin-top: .35em; -webkit-text-stroke-width: 1.2px; }
.hero-lead { margin-top: 1.3rem; max-width: 36rem; font-size: 1.0625rem; line-height: 1.6; color: rgba(255,255,255,.86); }
.hero--video .hero-actions { margin-top: 1.8rem; }
.hero-btn-ghost { background: transparent !important; color: #fff !important; border: 1.5px solid rgba(255,255,255,.75) !important; }
.hero-btn-ghost:hover { background: rgba(255,255,255,.12) !important; }
.hero-levels { margin-top: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.hero-levels__label { font-size: .875rem; color: rgba(255,255,255,.72); margin-right: .2rem; }
.hero-levels a { padding: .45rem .95rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); color: #fff; font-size: .875rem;
  transition: background .2s, color .2s, border-color .2s; }
.hero-levels a:hover { background: #fff; color: var(--color-ink, #141414); border-color: #fff; }
.hero-scroll { position: absolute; left: 50%; bottom: 1.3rem; translate: -50% 0; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .35rem;
  color: rgba(255,255,255,.8); font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; }
.hero-scroll:hover { color: #fff; }
.hero-scroll__arrow { width: .9rem; height: .9rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: 45deg; animation: heroScroll 1.6s ease-in-out infinite; }
@keyframes heroScroll { 0%, 100% { translate: 0 -3px; opacity: .6; } 50% { translate: 0 4px; opacity: 1; } }
@media (max-width: 767px) {
  .hero--video .hero-shade { background: linear-gradient(180deg, rgba(8,8,10,.45) 0%, rgba(8,8,10,.25) 35%, rgba(8,8,10,.6) 70%, var(--color-ink) 100%); }
  .hero--video .hero-content { padding-bottom: 5rem; }
  .hero-lead { font-size: .9375rem; }
  .hero-new { font-size: .8125rem; }
  .hero-levels__label { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .hero-scroll__arrow { animation: none; } }
/* карточка новинки: строка «почему эта модель» и заметная кнопка вместо «Подробнее →» */
.upcoming-pitch { margin-top: .55rem; font-size: .9375rem; font-weight: 600; line-height: 1.35; color: #fff; }
.upcoming-cta-btn { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; padding: .6rem 1.1rem; border-radius: 999px;
  background: #fff; color: var(--color-ink, #141414); font-size: .875rem; font-weight: 600; transition: background .2s, color .2s, translate .2s; }
.upcoming-cta-btn::after { content: "→"; transition: translate .2s; }
.upcoming-card:hover .upcoming-cta-btn { background: #e0115f; color: #fff; }
.upcoming-card:hover .upcoming-cta-btn::after { translate: 3px 0; }
.upcoming-badge { font-family: AKONY, sans-serif; letter-spacing: .06em; }
/* переключатель валюты (store.js mountCurrency) */
.cur-switch .lang-switch__item { border: 0; background: none; cursor: pointer; font: inherit; font-size: .75rem; }
.cur-switch .lang-switch__item.is-active { background: rgba(20,20,20,.08); }
header.bg-transparent:not(.is-solid) .cur-switch .lang-switch__item.is-active { background: rgba(255,255,255,.2); }
.cur-switch--menu { margin-top: 1rem; align-self: flex-start; }
@media (max-width: 767px) { .cur-switch--head { display: none; } }
.cur-note { margin-top: .35rem; font-size: .8125rem; opacity: .7; }

/* Шапка проще (17.10): «Доставка» и «О бренде» только в мобильном меню и подвале; язык+валюта одной кнопкой */
header nav .nav-extra { display: none; }
.prefs { position: relative; }
.prefs__btn { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--color-line);
  background: none; color: inherit; font: inherit; font-size: .8125rem; font-weight: 600; letter-spacing: .03em; cursor: pointer; }
.prefs__btn::after { content: ""; width: .38rem; height: .38rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; rotate: 45deg; translate: 0 -2px; opacity: .7; }
header.bg-transparent:not(.is-solid) .prefs__btn { border-color: rgba(255,255,255,.4); }
.prefs__pop { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 60; min-width: 13rem; padding: .9rem 1rem 1rem; border-radius: 1rem;
  background: #fff; color: var(--color-ink, #141414); box-shadow: 0 18px 40px -12px rgba(20,20,20,.25), 0 2px 6px rgba(20,20,20,.06); }
.prefs__pop[hidden] { display: none; }
.prefs__label { font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--color-muted, #6b6a63); margin: .2rem 0 .4rem; }
.prefs__label + .prefs__slot, .prefs__label + .cur-switch { margin-bottom: .6rem; }
.prefs__pop .lang-switch { margin: 0; border-color: var(--color-line) !important; }
.prefs__pop .lang-switch__item { color: var(--color-ink, #141414); }
.prefs__pop .lang-switch__item.is-active { background: rgba(20,20,20,.08) !important; }
.cur-switch--menu { display: none; }
/* NEW на карточках как в блоке новинок: тёмная плашка, оранжевая точка, AKONY */
.soon-tag--new { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .6rem .3rem .5rem; border-radius: 999px;
  background: rgba(17,17,17,.82); color: #fff; font-family: AKONY, sans-serif; font-size: .625rem; letter-spacing: .06em; font-weight: 400; }
.soon-tag--new::before { content: ""; width: .35rem; height: .35rem; border-radius: 50%; background: #ff6b35; animation: upcoming-pulse 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .soon-tag--new::before { animation: none; } }

/* Первый экран 29.10.2026: студийный кадр Carbon Shock 4 вместо видео; на компьютере кроссовки справа,
   на телефоне отдельная картинка сверху, текст под ней */
.hero-photo { object-position: 72% 50%; animation: heroPhoto 12s cubic-bezier(.2,.6,.3,1) both; }
@keyframes heroPhoto { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (orientation: portrait) and (min-width: 768px) { .hero-photo { object-position: 78% 50%; } }
@media (max-width: 767px) {
  .hero-photo { bottom: auto; height: auto; aspect-ratio: 1080 / 1300; object-position: 50% 0; }
  .hero--video .hero-content { padding-top: calc(100vw * 1.02); }
  .hero--video .hero-shade { background: linear-gradient(180deg, rgba(8,8,10,.35) 0%, rgba(8,8,10,0) 14%, rgba(8,8,10,0) 100%); }
}
@media (prefers-reduced-motion: reduce) { .hero-photo { animation: none; } }
