/* ==========================================================================
   Sakura — оформление сайта «Графит» (бывший вариант B), поверх общей основы site.css.
   Все правила — под .design-b (класс у <body> всегда); вариант A удалён 15.10.2026.
   Палитра и Uni Sans — строго по брендбуку (skill sakura-brand-design):
   графит вместо чёрного, красный Pantone 200 C — акцентами, без больших заливок.
   Характер: кинематографичный первый экран с видео, крупная типографика капсом,
   строгая геометрия (малые скругления, тонкие линии), движение при прокрутке.
   Главная — шаблон pages/home.html (классы xb-*), поведение — js/site-b.js.
   ========================================================================== */

.design-b {
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: none;
  --shadow-hover: 0 24px 60px rgb(43 43 43 / 0.14);
  --xb-dark: var(--sakura-graphite);
  --xb-line-dark: rgb(247 245 242 / 0.14);
}

/* ---------- общие элементы всех страниц ---------- */
.design-b .section__title,
.design-b .page-title,
.design-b .help__title { text-transform: uppercase; font-weight: 700; letter-spacing: .01em; line-height: 1; }
.design-b .section__title { font-size: clamp(28px, 3.4vw, 48px); }
.design-b .page-title { font-size: clamp(32px, 4.4vw, 60px); }
.design-b .eyebrow { font-size: 12px; letter-spacing: .22em; }

.design-b .btn { border-radius: var(--radius-sm); text-transform: uppercase; letter-spacing: .1em; font-size: 13px; font-weight: 700; }
.design-b .btn--lg { min-height: 56px; padding: 0 34px; }
.design-b .chip,
.design-b .search__input,
.design-b .series-pill { border-radius: var(--radius-sm); }

.design-b .card { border: 1px solid var(--line); box-shadow: none; }
.design-b .card:hover { transform: translateY(-2px); border-color: var(--sakura-graphite); box-shadow: var(--shadow-hover); }
.design-b .badge { border-radius: 2px; }
.design-b .tile { border: 1px solid var(--line); box-shadow: none; }
.design-b .tile:hover { transform: none; border-color: var(--sakura-graphite); box-shadow: var(--shadow-hover); }
.design-b .help__card,
.design-b .panel,
.design-b .contact-card { border: 1px solid var(--line); box-shadow: none; }

/* верхняя строка */
.topbar { background: var(--xb-dark); color: rgb(247 245 242 / 0.7); font-size: 12.5px; letter-spacing: .02em; }
.topbar__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 36px; }
.topbar a { color: var(--sakura-warm-white); transition: color .2s; }
.topbar a:hover { color: var(--sakura-sand); }
.topbar__links { display: flex; gap: 28px; }

/* шапка: белая, строгая */
.design-b .header { --header-bg: rgb(255 255 255 / 0.96); border-bottom-color: var(--line); }
.design-b .nav__link { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.design-b .nav__link::after { bottom: 0; height: 3px; }

/* подвал: глубже, с красной линией */
.design-b .footer { border-top: 3px solid var(--accent); }

/* ==========================================================================
   Главная B
   ========================================================================== */
.page-home-b main { overflow-x: clip; }

.xb-kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--sakura-sand);
}
.xb-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.xb-kicker--dark { color: var(--text-muted); }
.xb-title {
  margin: 0; font-size: clamp(34px, 4.8vw, 76px); font-weight: 700; line-height: .95;
  letter-spacing: .005em; text-transform: uppercase;
}
.xb-title--light { color: var(--sakura-warm-white); }
.xb-text { max-width: 440px; margin: 20px 0 32px; font-size: 17px; color: var(--text-muted); }
.xb-section { padding: clamp(72px, 9vw, 140px) 0; }
.xb-section--muted { background: rgb(217 217 214 / 0.35); }
.xb-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); flex-wrap: wrap; }

/* появление при прокрутке (включает js/site-b.js) */
.js .design-b [data-xb-in] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .design-b [data-xb-in].is-in { opacity: 1; transform: none; }

/* ---------- 1. первый экран ---------- */
.xb-hero {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(640px, calc(100svh - var(--header-h) - 36px), 980px);
  overflow: hidden; background: var(--xb-dark); color: var(--sakura-warm-white); isolation: isolate;
}
.xb-hero__video {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%;
  transform: scale(1.04); will-change: transform;
}
.xb-hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgb(43 43 43 / 0.96) 0%, rgb(43 43 43 / 0.78) 26%, rgb(43 43 43 / 0.15) 58%, rgb(43 43 43 / 0) 72%),
    linear-gradient(to right, rgb(43 43 43 / 0.55), rgb(43 43 43 / 0) 45%);
}
.xb-hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end;
  gap: clamp(24px, 4vw, 64px); padding-top: 120px; padding-bottom: clamp(32px, 4vw, 56px);
}
.xb-hero__title {
  margin: 0; font-size: clamp(56px, 9.6vw, 176px); font-weight: 700; line-height: .86;
  letter-spacing: -0.005em; text-transform: uppercase;
}
.xb-line { display: block; overflow: hidden; padding-bottom: .04em; }
.xb-line > span { display: inline-block; }
.js .design-b .xb-line > [data-xb-in] { opacity: 1; transform: translateY(105%); transition: transform 1.1s cubic-bezier(.16, 1, .3, 1); }
.js .design-b .xb-line > [data-xb-in].is-in { transform: none; }
.xb-line:nth-child(2) > span { color: transparent; -webkit-text-stroke: 2px var(--sakura-warm-white); }
.xb-hero__lead { max-width: 440px; margin: 0 0 28px; font-size: clamp(16px, 1.3vw, 19px); color: rgb(247 245 242 / 0.78); }
.xb-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.xb-hero .btn:hover { background: var(--sakura-warm-white); border-color: var(--sakura-warm-white); color: var(--sakura-graphite); }

.xb-play {
  display: inline-flex; align-items: center; gap: 14px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--sakura-warm-white); font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.xb-play__icon {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  border: 1.5px solid rgb(247 245 242 / 0.6); transition: background .3s, border-color .3s;
}
.xb-play__icon::after {  /* пульс */
  content: ""; position: absolute; inset: -1.5px; border-radius: 50%; border: 1.5px solid var(--sakura-warm-white);
  animation: xb-pulse 2.4s var(--ease) infinite;
}
.xb-play__icon .icon { width: 18px; height: 18px; margin-left: 3px; }
.xb-play:hover .xb-play__icon { background: var(--accent); border-color: var(--accent); }
@keyframes xb-pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }

.xb-hero__stats { border-top: 1px solid var(--xb-line-dark); background: rgb(43 43 43 / 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.xb-stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.xb-stat { display: grid; gap: 4px; padding: 22px 0 24px 24px; border-left: 1px solid var(--xb-line-dark); }
.xb-stat:first-child { padding-left: 0; border-left: 0; }
.xb-stat__value { font-size: clamp(28px, 3vw, 44px); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.xb-stat:first-child .xb-stat__value { color: var(--sakura-red-bright); }
.xb-stat__label { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: rgb(247 245 242 / 0.6); }

/* ---------- 2. бегущая строка ---------- */
.xb-marquee { overflow: hidden; padding: 26px 0; border-bottom: 1px solid var(--line); background: var(--sakura-warm-white); }
.xb-marquee__track { display: flex; width: max-content; animation: xb-marquee 60s linear infinite; }
.xb-marquee:hover .xb-marquee__track { animation-play-state: paused; }
.xb-marquee__group { display: flex; align-items: center; }
.xb-marquee__group span {
  padding: 0 28px; white-space: nowrap; font-size: clamp(28px, 3.4vw, 52px); font-weight: 700; line-height: 1;
  text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.2px var(--sakura-graphite);
}
.xb-marquee__group span:nth-of-type(3n+1) { color: var(--sakura-graphite); -webkit-text-stroke: 0; }
.xb-marquee__group i { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--accent); }
@keyframes xb-marquee { to { transform: translateX(-50%); } }

/* ---------- 3. лента новинок ---------- */
.xb-rail-nav { display: flex; gap: 10px; }
.xb-arrow {
  display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--sakura-graphite); border-radius: 50%;
  background: transparent; cursor: pointer; transition: background .25s, color .25s;
}
.xb-arrow:hover { background: var(--sakura-graphite); color: var(--sakura-warm-white); }
.xb-arrow:disabled { opacity: .3; cursor: default; background: transparent; color: inherit; }
.xb-rail {
  --pad: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  display: flex; gap: 20px; overflow-x: auto; padding: 4px var(--pad) 8px; scroll-padding-inline: var(--pad);
  scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain;
}
.xb-rail::-webkit-scrollbar { display: none; }
.xb-rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.xb-rail.is-dragging a { pointer-events: none; }
.xb-product {
  flex: 0 0 clamp(260px, 23vw, 360px); scroll-snap-align: start; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-photo); overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.xb-product:hover { border-color: var(--sakura-graphite); box-shadow: var(--shadow-hover); }
.xb-product__media { position: relative; display: grid; place-items: center; aspect-ratio: 1; padding: 12%; }
.xb-product__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--ease); -webkit-user-drag: none; }
.xb-product:hover .xb-product__media img { transform: scale(1.07); }
.xb-product__badge {
  position: absolute; left: 16px; top: 16px; padding: 5px 10px; border-radius: 2px; background: var(--accent);
  color: var(--sakura-warm-white); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.xb-product__body { display: grid; gap: 6px; padding: 20px 22px 22px; border-top: 1px solid var(--line); }
.xb-product__cat { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.xb-product__title { font-size: 17px; font-weight: 700; line-height: 1.3; }
.xb-product__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); transition: color .25s; }
.xb-product:hover .xb-product__more { color: var(--accent); }
.xb-rail-progress { position: relative; height: 2px; margin-top: 32px; background: var(--line); }
.xb-rail-progress span { position: absolute; left: 0; top: 0; height: 100%; width: 20%; background: var(--sakura-graphite); transition: transform .15s linear; }

/* ---------- 4. мозаика разделов ---------- */
/* Плитка — сетка из двух областей: «фото» и «текст». Текст занимает сколько нужно, фото —
   остальное, поэтому они не пересекаются ни при какой длине названия и ширине экрана.
   Товар в своей панели по центру, увеличен и смещён к правому нижнему углу: крупный план,
   но главная часть предмета видна. Раскладка — переменными: «стопка» (фото сверху)
   или «рядом» (текст слева, фото справа). */
.xb-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(290px, 22vw, 340px); gap: 16px; }
.xb-tile {
  --pad: clamp(18px, 1.8vw, 28px);
  /* стопка — по умолчанию */
  --areas: "media" "body"; --cols: minmax(0, 1fr); --rows: minmax(0, 1fr) auto;
  --name-size: clamp(18px, 1.5vw, 23px); --list-lines: 1;
  --img-h: 150%; --img-top: 10%; --img-right: -6%;
  position: relative; display: grid; grid-template-areas: var(--areas); grid-template-columns: var(--cols);
  grid-template-rows: var(--rows); overflow: hidden; isolation: isolate;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-photo);
  transition: border-color .35s, box-shadow .35s;
}
.xb-tile:hover { border-color: var(--sakura-graphite); box-shadow: var(--shadow-hover); }
.xb-tile--1 { grid-column: span 2; grid-row: span 2; --list-lines: 2; --img-h: 135%; --img-top: 8%; --img-right: 0%; --img-maxw: 100%; }
.xb-tile--2, .xb-tile--5, .xb-tile--6 {
  grid-column: span 2;
  /* рядом: текст слева, фото справа */
  --areas: "body media"; --cols: minmax(0, 1fr) minmax(0, 1fr); --rows: minmax(0, 1fr);
  --name-size: clamp(20px, 1.9vw, 30px); --list-lines: 2;
  --img-h: 120%; --img-top: 4%; --img-right: -4%;
}

/* По макету заказчика: товар прижат к правому краю и выше своей области (≈1,3–1,5 раза) —
   видна верхняя, узнаваемая часть, низ и правый бок срезает край плитки; слева — воздух.
   Белые поля фото уже срезаны (pages/tiles.py), поэтому размер одинаково плотный у всех. */
.xb-tile__media { grid-area: media; position: relative; min-height: 0; overflow: hidden; }
.xb-tile__media img {
  position: absolute; right: var(--img-right); top: var(--img-top); bottom: var(--img-bottom, auto);
  height: var(--img-h); width: var(--img-w, auto);
  /* широкий предмет (утюг, сковорода) не шире области ×--img-maxw — вписывается, прижат вправо-вверх */
  max-width: var(--img-maxw, 120%); object-fit: contain; object-position: 100% 0; transform-origin: 100% 0;
  transition: transform 1s var(--ease);
}
.xb-tile:hover .xb-tile__media img { transform: scale(1.04); }

.xb-tile__body { grid-area: body; align-self: end; display: grid; gap: 6px; min-width: 0; padding: var(--pad); }
.xb-tile__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 2px; }
.xb-tile__count { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.xb-tile__name { font-size: var(--name-size); font-weight: 700; line-height: 1.02; text-transform: uppercase; overflow-wrap: anywhere; }
.xb-tile--1 { --name-size: clamp(28px, 3vw, 48px); }
.xb-tile__list {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--list-lines, 2); overflow: hidden;
  font-size: 13.5px; line-height: 1.45; color: var(--text-muted);
}
.xb-tile__go {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  transition: background .3s, border-color .3s, color .3s, transform .4s var(--ease);
}
.xb-tile__go .icon { width: 18px; height: 18px; }
.xb-tile:hover .xb-tile__go { background: var(--accent); border-color: var(--accent); color: var(--sakura-warm-white); transform: rotate(-45deg); }

/* ---------- 5. «Сделано, чтобы работать» ---------- */
.xb-tech { position: relative; overflow: hidden; padding: clamp(80px, 10vw, 160px) 0; background: var(--xb-dark); color: var(--sakura-warm-white); }
.xb-tech::before {
  content: ""; position: absolute; left: -15%; top: 10%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgb(186 12 47 / 0.30), transparent 62%); pointer-events: none;
}
.xb-tech__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.xb-tech__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); background: #1e1e1e; }
.xb-tech__media picture { display: block; height: 100%; }
.xb-tech__media video, .xb-tech__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.xb-tech__media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--accent); }
.xb-facts { margin: clamp(32px, 4vw, 48px) 0 clamp(32px, 4vw, 48px); padding: 0; list-style: none; }
.xb-facts li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 26px 0; border-top: 1px solid var(--xb-line-dark); }
.xb-facts li:last-child { border-bottom: 1px solid var(--xb-line-dark); }
.xb-facts__n { font-size: 14px; font-weight: 700; letter-spacing: .1em; color: var(--sakura-red-bright); padding-top: 4px; }
.xb-facts h3 { margin: 0 0 6px; font-size: clamp(18px, 1.6vw, 24px); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.xb-facts p { margin: 0; color: rgb(247 245 242 / 0.68); }

/* ---------- 6. посуда: серии ---------- */
.xb-cookware { background: var(--sakura-warm-white); }
.xb-cookware__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.xb-cookware__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.xb-cookware__preview {
  position: relative; aspect-ratio: 1; max-width: 420px; margin-top: 48px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-photo);
}
.xb-cookware__preview img {
  position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain;
  opacity: 0; transform: scale(.94); transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.xb-cookware__preview img.is-active { opacity: 1; transform: none; }
.xb-series { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--sakura-graphite); }
.xb-series a {
  display: grid; grid-template-columns: 1fr auto 28px; align-items: center; gap: 20px;
  padding: clamp(18px, 2vw, 28px) 0; border-bottom: 1px solid var(--line);
}
.xb-series__name {
  font-size: clamp(26px, 3.4vw, 56px); font-weight: 700; line-height: 1; text-transform: uppercase;
  transition: transform .5s var(--ease), color .3s;
}
.xb-series__n { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.xb-series .icon { opacity: 0; transform: translateX(-10px); color: var(--accent); transition: opacity .3s, transform .4s var(--ease); }
.xb-series a:hover .xb-series__name, .xb-series a:focus-visible .xb-series__name { transform: translateX(14px); color: var(--accent); }
.xb-series a:hover .icon, .xb-series a:focus-visible .icon { opacity: 1; transform: none; }

/* ---------- 7. помощь ---------- */
.xb-help { padding: 0 0 clamp(72px, 9vw, 140px); background: var(--sakura-warm-white); }
.xb-help__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.xb-help__grid--bot { grid-template-columns: minmax(150px, .5fr) 1fr 1fr; }
.xb-help__bot { display: grid; place-items: center; }
.xb-help__card {
  position: relative; display: grid; gap: 12px; align-content: start; min-height: 280px; padding: clamp(28px, 3vw, 48px);
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-photo);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s;
}
.xb-help__card > .icon { width: 36px; height: 36px; color: var(--accent); stroke-width: 1.3; }
.xb-help__title { margin-top: 18px; font-size: clamp(24px, 2.4vw, 36px); font-weight: 700; line-height: 1; text-transform: uppercase; }
.xb-help__text { max-width: 420px; color: var(--text-muted); transition: color .4s; }
.xb-help__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.xb-help__card:hover { background: var(--xb-dark); border-color: var(--xb-dark); color: var(--sakura-warm-white); }
.xb-help__card:hover .xb-help__text { color: rgb(247 245 242 / 0.7); }
.xb-help__card:hover .xb-help__go { color: var(--sakura-warm-white); }

/* ---------- ролик со звуком ---------- */
.xb-modal { width: min(1200px, 94vw); max-width: none; padding: 0; border: 0; border-radius: var(--radius-lg); background: #111; overflow: visible; }
.xb-modal::backdrop { background: rgb(20 20 20 / 0.88); backdrop-filter: blur(6px); }
.xb-modal__video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); background: #000; }
.xb-modal--image { width: auto; max-width: 94vw; background: transparent; }
.xb-modal__image { display: block; max-width: 94vw; max-height: 86vh; width: auto; height: auto; margin: 0 auto; border-radius: var(--radius-lg); object-fit: contain; }
.xb-modal__close {
  position: absolute; right: 0; top: -56px; display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid rgb(247 245 242 / 0.4); border-radius: 50%; background: transparent; color: var(--sakura-warm-white); cursor: pointer;
}
.xb-modal__close:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .xb-hero__inner { grid-template-columns: 1fr; padding-top: 80px; }
  .xb-bento { grid-template-columns: repeat(2, 1fr); }
  /* планшет: первая — «рядом», остальные — «стопкой» */
  .xb-tile--1 {
    grid-column: span 2; grid-row: span 1;
    --areas: "body media"; --cols: minmax(0, 1fr) minmax(0, 1fr); --rows: minmax(0, 1fr);
    --img-h: 120%; --img-top: 4%; --img-right: -4%;
  }
  .xb-tile--2, .xb-tile--5, .xb-tile--6 {
    grid-column: span 1;
    --areas: "media" "body"; --cols: minmax(0, 1fr); --rows: minmax(0, 1fr) auto;
    --name-size: clamp(18px, 2.2vw, 23px); --list-lines: 1;
    --img-h: 150%; --img-top: 10%; --img-right: -6%;
  }
  .xb-tech__grid, .xb-cookware__grid { grid-template-columns: 1fr; }
  .xb-tech__media { aspect-ratio: 16 / 10; }
  .xb-cookware__intro { position: static; }
  .xb-cookware__preview { display: none; }
}
@media (max-width: 900px) {
  .topbar__links { display: none; }
  /* робот — отдельной строкой над карточками */
  .xb-help__grid--bot { grid-template-columns: 1fr 1fr; }
  .xb-help__bot { grid-column: 1 / -1; }
  .xb-help__bot .helper-bot { max-width: 150px; }
}
@media (max-width: 640px) {
  .topbar__row { justify-content: center; }
  .xb-hero { min-height: 88svh; }
  .xb-hero__video { object-position: 30% 50%; }
  .xb-stats { grid-template-columns: 1fr 1fr; }
  .xb-stat { padding: 16px 0 18px 16px; }
  .xb-stat:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--xb-line-dark); }
  .xb-stat:nth-child(4) { border-top: 1px solid var(--xb-line-dark); }
  .xb-line:nth-child(2) > span { -webkit-text-stroke-width: 1.2px; }
  /* телефон: одна колонка, все — «рядом» */
  .xb-bento { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .xb-tile--1, .xb-tile--2, .xb-tile--5, .xb-tile--6 { grid-column: auto; }
  .xb-tile {
    --pad: 16px; --areas: "body media"; --cols: minmax(0, 1fr) minmax(0, 1fr); --rows: minmax(0, 1fr);
    --name-size: 18px; --list-lines: 3;
    --img-h: 120%; --img-top: 6%; --img-right: -6%;
  }
  .xb-tile__go { width: 34px; height: 34px; }
  .xb-tile__list { font-size: 12.5px; }
  .xb-help__grid, .xb-help__grid--bot { grid-template-columns: 1fr; }
  .xb-series a { grid-template-columns: 1fr auto; }
  .xb-series .icon { display: none; }
  .xb-rail-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .xb-marquee__track { animation: none; }
  .js .design-b [data-xb-in], .js .design-b .xb-line > [data-xb-in] { opacity: 1; transform: none; }
}

/* ---------- «О компании» (вариант B): тёмный первый экран с цифрами, как на главной ---------- */
.design-b .about-hero { padding: clamp(28px, 4vw, 48px) 0 clamp(32px, 5vw, 64px); background: var(--xb-dark); color: var(--sakura-warm-white); }
.design-b .about-hero .breadcrumbs, .design-b .about-hero .breadcrumbs a { color: rgb(247 245 242 / 0.6); }
.design-b .about-hero .breadcrumbs a:hover { color: var(--sakura-warm-white); }
.design-b .about-hero .breadcrumbs [aria-current] { color: var(--sakura-warm-white); } /* общий цвет — тёмный, на графите не виден */
.design-b .about-hero .eyebrow { color: var(--sakura-sand); }
.design-b .about-hero__title { max-width: 18ch; font-size: clamp(36px, 6vw, 88px); line-height: .95; }
.design-b .about-hero__lead { color: rgb(247 245 242 / 0.75); }
.design-b .about-facts { padding: 0; background: var(--xb-dark); color: var(--sakura-warm-white); }
.design-b .about-facts__grid { border-color: var(--xb-line-dark); border-bottom: 0; }
.design-b .about-fact { border-color: var(--xb-line-dark); }
.design-b .about-fact:first-child .about-fact__value { color: var(--sakura-red-bright); }
.design-b .about-fact__label { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: rgb(247 245 242 / 0.6); }
.design-b .about-principle { border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: none; transition: border-color .3s; }
.design-b .about-principle:hover { border-color: var(--sakura-graphite); }
.design-b .about-principle__title { text-transform: uppercase; letter-spacing: .02em; font-size: 16px; }
.design-b .about-quote { text-align: left; }
.design-b .about-quote blockquote p { text-transform: uppercase; font-weight: 700; letter-spacing: 0; line-height: 1.12; }
.design-b .about-near__slogan { text-transform: uppercase; line-height: 1; }
@media (max-width: 640px) {
  .design-b .about-fact:nth-child(n+3) { border-top-color: var(--xb-line-dark); }
}

.design-b .cookie { border-radius: var(--radius-sm); }
.design-b .avail, .design-b .avail__opt { border-radius: var(--radius-sm); }
.design-b .avail__opt { text-transform: uppercase; letter-spacing: .06em; font-size: 12.5px; }

/* ---------- сезонные подборки на главной B — сеткой ---------- */
.xb-season__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.xb-season__grid .xb-product { flex: none; }
.xb-product__badge--stock { background: #2E7D4F; }
@media (max-width: 1100px) { .xb-season__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .xb-season__grid { gap: 12px; }
  .xb-season__grid .xb-product__body { padding: 14px; }
  .xb-season__grid .xb-product__title { font-size: 15px; }
}
/* Подгонка под пример заказчика (data/info/razdely.jpg) — по замерам, только на компьютере:
   у каждого раздела свой предмет и своя форма фото. Значения — доли области фото. */
@media (min-width: 1101px) {
  .xb-bento .xb-tile--g-kitchen  { --img-h: 153%; --img-top: 9%;   --img-right: -17%; --img-maxw: none; }
  /* сковорода, утюг, вентилятор — свои «Фото плитки» (кадр как на примере: чаша без ручки,
     носик утюга с логотипом, головка вентилятора); стоят у правого и верхнего края */
  .xb-bento .xb-tile--g-cookware { --img-h: 87%; --img-top: 3%; --img-right: 2.5%; --img-maxw: none; }
  .xb-bento .xb-tile--g-home     { --img-h: 95%; --img-top: 5%; --img-right: 2.5%; --img-maxw: none; }
  .xb-bento .xb-tile--g-climate  { --img-h: 95%; --img-top: 5%; --img-right: 2.5%; --img-maxw: none; }
  .xb-bento .xb-tile--g-beauty   { --img-h: 130%; --img-top: -3%;  --img-right: -8%;  --img-maxw: none; }
  .xb-bento .xb-tile--g-garden   { --img-h: 256%; --img-top: -87%; --img-right: 15%;  --img-maxw: none; }
}
/* планшет и телефон — кадры утюга и вентилятора целиком по ширине, колышки по ширине */
@media (max-width: 1100px) {
  .xb-bento .xb-tile--g-climate,
  .xb-bento .xb-tile--g-home    { --img-h: auto; --img-w: 96%; --img-top: 6%; --img-bottom: auto; --img-right: 2%; --img-maxw: none; }
  .xb-bento .xb-tile--g-garden  { --img-h: auto; --img-w: 60%; --img-top: -20%; --img-right: 12%; --img-maxw: none; }
}
