/* ARAM63: первый экран с фото и ряд товаров. Цвета: белый, синий, голубой. */

/* В Sofia Sans нет знака рубля: берём только его из Golos Text. */
@font-face {
  font-family: 'ARAM Rub';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(fonts/golos-text-latin-ext.woff2) format('woff2');
  unicode-range: U+20BD;
}

:root {
  --navy: #0a1430;
  --blue: #1f4dff;
  --steel: #5b7fb5;
  --sky: #9ccfff;
  --white: #fff;
  --mute: #56627e;
  --line: #d3dcea;
  --error: #c8102e;
  --shade: 5, 11, 28;
  --pad: 56px;
  --gap: 20px;
  --head: 72px;
  --head-full: calc(var(--head) + env(safe-area-inset-top));
  --display: 'Sofia Sans Extra Condensed', 'Arial Narrow', Impact, sans-serif;
  --text: 'Sofia Sans', 'ARAM Rub', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
@media (max-width: 1023px) { :root { --pad: 32px; } }
@media (max-width: 767px) { :root { --pad: 16px; --gap: 12px; --head: 60px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Открыто окно товара или корзины: страница под ним не прокручивается. */
html.is-locked { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--white); color: var(--navy); font: 400 17px/1.45 var(--text); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }
/* Заголовок окна получает фокус при открытии, чтобы чтец начал с него. Это не кнопка, рамка ему не нужна. */
[tabindex="-1"]:focus { outline: none; }
/* Атрибут hidden сильнее любого display из классов ниже. */
[hidden] { display: none !important; }
/* Текст только для экранных чтецов. */
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
button { font: inherit; color: inherit; }

/* Рамка фокуса: синяя на белом, белая на тёмном фоне шапки и фото. */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.top :focus-visible, .hero :focus-visible { outline-color: var(--white); }

/* Кнопки: прямые углы, как в прежней подаче ARAM63. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 0;
  font: 700 17px/1 var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.btn--white { background: var(--white); color: var(--navy); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn.is-added { background: var(--navy); color: var(--white); }

/* Шапка: плотная тёмно-синяя плашка в тон ночного неба на фото и подвала, с чётким бортом снизу.
   Фото первого экрана начинается под ней. Логотип в виде номерного знака с белой каймой. */
.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--head-full);
  padding: env(safe-area-inset-top) calc(var(--pad) + env(safe-area-inset-right)) 0 calc(var(--pad) + env(safe-area-inset-left));
  border-bottom: 2px solid #223b68;
  background: linear-gradient(90deg, #050d1e 0%, #09152d 56%, #0f2344 86%, #071228 100%);
  box-shadow: inset 0 -1px 0 rgba(156, 207, 255, .24), 0 6px 24px rgba(5, 11, 28, .26);
  color: var(--white);
}
@media (max-width: 767px) {
  .top { gap: 12px; }
}
.top__logo { flex: none; }
/* Номерной знак в стиле современных армянских номеров (с 2014 года):
   белая табличка с чёрной рамкой и белой внешней каймой, слева флаг Армении и код AM,
   вертикальная голографическая полоса, справа номер ARAM 63. */
.plate { display: inline-flex; align-items: stretch; height: 40px; border: 2px solid #0c1220; border-radius: 4px; background: var(--white); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .92), 0 4px 14px rgba(2, 6, 18, .45); color: #0c1220; text-decoration: none; overflow: hidden; }
.plate__am { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0 7px 0 8px; }
.plate__flag { display: block; width: 20px; height: 12px; border-radius: 1px; background: linear-gradient(180deg, #d90012 0 33.33%, #0033a0 33.33% 66.66%, #f2a800 66.66% 100%); box-shadow: 0 0 0 .5px rgba(12, 18, 32, .22); }
.plate__am i { font: 800 10px/.9 var(--text); font-style: normal; letter-spacing: .06em; color: #0c1220; }
.plate__holo { width: 2px; align-self: stretch; margin: 3px 0; background: linear-gradient(180deg, rgba(91, 127, 181, .15) 0%, rgba(156, 207, 255, .75) 35%, rgba(215, 226, 240, .95) 55%, rgba(91, 127, 181, .2) 100%); }
.plate__num { display: inline-flex; align-items: baseline; align-self: center; gap: 5px; padding: 2px 13px 0 10px; font: 800 25px/.92 var(--display); letter-spacing: .08em; }
.plate__num b { font: 800 30px/.92 var(--display); letter-spacing: .06em; }
@media (max-width: 767px) {
  .plate { height: 34px; }
  .plate__am { gap: 2px; padding: 0 5px 0 6px; }
  .plate__flag { width: 17px; height: 10px; }
  .plate__am i { font-size: 8.5px; }
  .plate__num { gap: 4px; padding: 2px 10px 0 8px; font-size: 21px; }
  .plate__num b { font-size: 25px; }
}
.top__nav { display: flex; align-items: center; gap: 32px; font-size: 16px; font-weight: 600; }
.top__nav a { color: rgba(255, 255, 255, .88); text-decoration: none; transition: color .15s; }
.top__nav a[aria-current="page"] { color: var(--white); text-decoration: underline; text-decoration-color: var(--sky); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.top__nav .top__cart { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: none; font: inherit; color: var(--white); cursor: pointer; }
.top__cart b { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; background: var(--blue); color: var(--white); font-size: 15px; font-weight: 700; }
.top__cart b.is-bump { animation: bump .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes bump { 40% { transform: scale(1.28); } }
@media (max-width: 767px) { .hide-m { display: none; } }

/* Первый экран: фото под шапкой до низа экрана. На широком экране текст в левом верхнем углу,
   на вертикальном внизу (наверху там лицо блогера). Товары наезжают на фото при прокрутке. */
.hero { position: relative; z-index: 0; height: 100vh; height: 100svh; min-height: 380px; overflow: hidden; background: var(--navy); color: var(--white); }
@media (min-height: 380px) { .hero { position: sticky; top: 0; } }
.hero__pic img { position: absolute; top: var(--head-full); left: 0; width: 100%; height: calc(100% - var(--head-full)); object-fit: cover; object-position: 0% 50%; }
/* Холст со снегом: над фото, под затемнением, поэтому у текста хлопья приглушены. */
.hero__fx { position: absolute; top: var(--head-full); left: 0; width: 100%; height: calc(100% - var(--head-full)); pointer-events: none; }
/* Затемнение только под текстом слева. Блогер справа остаётся без затемнения. */
.hero::after {
  content: "";
  position: absolute;
  top: var(--head-full);
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(var(--shade), .55) 0%, rgba(var(--shade), .2) 32%, rgba(var(--shade), 0) 52%);
}
.hero__body {
  position: absolute;
  z-index: 1;
  top: var(--head-full);
  bottom: 0;
  left: var(--pad);
  width: min(560px, 46vw);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(26px, 5.5vh, 56px) 0 clamp(28px, 5.5vh, 52px);
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--sky);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(var(--shade), .85);
}
.hero__bar { display: inline-block; width: 28px; height: 2px; background: var(--blue); flex: none; }
.hero__kicker a { color: var(--white); text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-transform: none; letter-spacing: 0; }
.hero__title {
  margin: 18px 0 0;
  font: 900 clamp(76px, min(14vh, 10.5vw), 166px)/.88 var(--display);
  letter-spacing: -.005em;
  text-transform: uppercase;
  text-shadow: 0 4px 32px rgba(var(--shade), .55);
}
.hero__accent { display: block; color: var(--sky); }
.hero__lead {
  max-width: 400px;
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: 17px;
  line-height: 1.45;
  text-shadow: 0 1px 14px rgba(var(--shade), .9);
}
.hero__lead strong { color: var(--white); font-weight: 700; }
.hero__actions { margin-top: 18px; }
.hero__actions .btn { min-width: 236px; }

/* Экран почти квадратный: фото сдвигается вправо ровно настолько, чтобы блогер не обрезался. */
@media (min-aspect-ratio: 5/4) and (max-aspect-ratio: 3/2) {
  .hero__pic img { object-position: 50% 50%; }
}
@media (min-aspect-ratio: 1/1) and (max-aspect-ratio: 5/4) {
  .hero__pic img { object-position: 68% 50%; }
}
/* Очень широкий экран: фото режется сверху и снизу, голову блогера сохраняем. */
@media (min-aspect-ratio: 2/1) {
  .hero__pic img { object-position: 0% 18%; }
}
/* Низкий широкий экран, например телефон боком: видна верхняя часть фото с головой блогера.
   Текст компактнее, чтобы кнопка не заезжала на капот машины. */
@media (min-aspect-ratio: 3/2) and (max-height: 500px) {
  .hero__pic img { object-position: 0% 0%; }
  .hero__body { padding: 14px 0 16px; }
  .hero__kicker { font-size: 13px; }
  .hero__title { margin-top: 11px; font-size: 56px; }
  .hero__lead { display: none; }
  .hero__actions { margin-top: 12px; }
  .hero__actions .btn { min-height: 44px; min-width: 0; padding: 0 20px; font-size: 15px; }
}
/* Вертикальный экран: своё вертикальное фото, текст на всю ширину внизу. Затемнение только у нижнего края, под текстом. */
@media (max-aspect-ratio: 1/1) {
  .hero__pic img { object-position: 50% 22%; }
  .hero::after { background: linear-gradient(0deg, rgba(var(--shade), .94) 0%, rgba(var(--shade), .78) 28%, rgba(var(--shade), .36) 44%, rgba(var(--shade), 0) 60%); }
  .hero__body {
    top: auto;
    right: calc(var(--pad) + env(safe-area-inset-right));
    bottom: calc(20px + env(safe-area-inset-bottom));
    left: calc(var(--pad) + env(safe-area-inset-left));
    width: auto;
    padding: 0;
    justify-content: flex-end;
    gap: 10px;
  }
  .hero__kicker { gap: 8px; font-size: 12.5px; letter-spacing: .06em; flex-wrap: wrap; }
  .hero__bar { width: 18px; }
  .hero__title { margin-top: 12px; font-size: clamp(48px, min(17vw, 10svh), 92px); line-height: .88; }
  .hero__lead { font-size: 14.5px; line-height: 1.38; max-width: 34ch; }
  .hero__actions { margin-top: 12px; }
  .hero__actions .btn { width: 100%; min-width: 0; min-height: 52px; }
}
/* Телефон с невысоким экраном или браузер Instagram с панелями: текст компактнее, лицо и торс без затемнения. */
@media (min-aspect-ratio: 1/2) and (max-aspect-ratio: 2/3) {
  .hero__pic img { object-position: 50% 18%; }
  .hero::after { background: linear-gradient(0deg, rgba(var(--shade), .95) 0%, rgba(var(--shade), .82) 30%, rgba(var(--shade), .48) 44%, rgba(var(--shade), 0) 58%); }
  .hero__title { font-size: clamp(46px, min(16.5vw, 9.4svh), 82px); }
  .hero__lead { font-size: 14px; }
  .hero__actions .btn { min-height: 48px; }
}

/* Товары: ряд высоких кадров. Если не помещаются, ряд листается вбок, край следующего кадра виден.
   Блок не ниже экрана, чтобы в конце страницы он закрывал фото целиком. */
.shop { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; background: var(--white); padding: 104px 0 136px; scroll-margin-top: var(--head-full); }
.shop__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 var(--pad) 36px; }
.shop__kicker { color: var(--blue); font-size: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.shop__title { margin-top: 12px; font: 900 clamp(56px, 8vw, 128px)/.82 var(--display); text-transform: uppercase; }
/* Доставки нет: это видно сразу под заголовком, до выбора товара. */
.shop__note { margin-top: 16px; color: var(--mute); font-size: 17px; }
.shop__note a { color: var(--navy); font-weight: 600; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.strip-nav { display: none; gap: 8px; }
.shop.is-scrollable .strip-nav { display: flex; }
@media (hover: none), (pointer: coarse), (max-width: 767px) { .shop.is-scrollable .strip-nav { display: none; } }
.sq { display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 2px solid var(--navy); border-radius: 0; background: transparent; font-size: 22px; cursor: pointer; transition: background-color .15s, color .15s; }
.sq:disabled { opacity: .3; cursor: default; }

.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% + var(--pad)) / 4.35 - var(--gap));
  gap: var(--gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  scrollbar-width: none;
  padding: 0 var(--pad) 8px;
}
.strip::-webkit-scrollbar { display: none; }
/* Полоса под рядом: длина бегунка = видимая часть ряда, положение = сколько пролистано. Видна, только когда ряд листается. */
.strip-bar { display: none; position: relative; height: 2px; margin: 16px var(--pad) 0; background: var(--line); }
.strip-bar span { position: absolute; top: 0; bottom: 0; left: calc(var(--p, 0) * (100% - var(--v, 1) * 100%)); width: calc(var(--v, 1) * 100%); background: var(--navy); }
.shop.is-scrollable .strip-bar { display: block; }
.tile { display: flex; flex-direction: column; min-width: 0; scroll-snap-align: start; }
.tile__link { display: block; color: inherit; text-decoration: none; }
.tile__pic { aspect-ratio: 9 / 16; overflow: hidden; background: #e6ecf5; }
.tile__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.tile__row { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 16px; }
.tile__row h3 { font: 900 26px/1 var(--display); text-transform: uppercase; }
/* relative: скрытая подпись «Старая цена» остаётся внутри цены и не растягивает страницу вбок. */
.price { position: relative; font-size: 18px; font-weight: 700; white-space: nowrap; }
.price__note { color: var(--mute); font-size: 14px; font-weight: 500; }
.tile__notes { margin: 4px 0 16px; color: var(--mute); font-size: 15px; }
.tile__btn { width: 100%; min-height: 48px; margin-top: auto; padding: 0 12px; font-size: 16px; }

@media (min-width: 1200px) {
  .strip { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; }
}
@media (max-width: 899px) {
  .strip { grid-auto-columns: calc((100% + var(--pad)) / 3.4 - var(--gap)); }
}
@media (max-width: 767px) {
  .shop { padding: 28px 0 64px; }
  .shop__head { margin-bottom: 18px; }
  .shop__kicker { font-size: 13px; }
  .shop__title { margin-top: 6px; font-size: clamp(44px, 13.5vw, 66px); }
  .shop__note { margin-top: 10px; font-size: 14.5px; line-height: 1.4; }
  .strip { grid-auto-columns: 72vw; gap: 14px; }
  .tile__pic { aspect-ratio: 4 / 5; }
  .tile__row { margin-top: 12px; gap: 4px; }
  .tile__row h3 { font-size: 24px; }
  .price { font-size: 17px; }
  .tile__notes { margin: 4px 0 12px; font-size: 14px; }
  .tile__btn { min-height: 48px; }
  .strip-bar { height: 3px; margin-top: 16px; }
}
@media (max-width: 359px) {
  .qty { grid-template-columns: 40px 36px 40px; height: 50px; }
  .pd__buy .btn { min-height: 50px; font-size: 15px; }
}
/* Телефон боком: высокий кадр не помещается по высоте. Кадр квадратный, состав аромата скрыт,
   чтобы бирка, цена и кнопка были на экране вместе. */
@media (orientation: landscape) and (max-height: 500px) {
  .strip { grid-auto-columns: max(140px, calc(100svh - var(--head) - 150px)); }
  .tile__pic { aspect-ratio: 1 / 1; }
  .tile__row { margin: 10px 0; }
  .tile__notes { display: none; }
  .tile__btn { min-height: 40px; }
}

/* ---------- Окна: карточка товара и корзина ---------- */
.pd, .cart { padding: 0; border: 0; border-radius: 0; color: var(--navy); background: var(--white); }
.pd::backdrop, .cart::backdrop { background: rgba(var(--shade), .64); }
.sq--close { flex: none; font-size: 26px; line-height: 1; background: var(--white); }

/* Количество: квадратные кнопки, как у остальных кнопок. */
.qty { display: inline-grid; grid-template-columns: 48px 44px 48px; height: 56px; border: 2px solid var(--navy); }
.qty button { display: grid; place-items: center; padding: 0; border: 0; background: none; font-size: 22px; cursor: pointer; transition: background-color .15s, color .15s; }
.qty button:disabled { opacity: .3; cursor: default; }
.qty output { display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.qty--sm { grid-template-columns: 38px 36px 38px; height: 38px; border-width: 1.5px; }
.qty--sm button { font-size: 18px; }
.qty--sm output { font-size: 16px; }
.link { padding: 0; border: 0; background: none; color: var(--blue); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Карточка товара. Компьютер: фото слева на всю высоту, текст справа. */
.pd { width: min(1120px, calc(100vw - 64px)); height: min(820px, calc(100vh - 48px)); max-width: none; max-height: none; overflow: hidden; }
.pd__in { display: grid; grid-template-columns: minmax(0, 1fr) 440px; height: 100%; }
.pd__media { position: relative; min-height: 0; background: #e6ecf5; }
.pd__track { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.pd__track::-webkit-scrollbar { display: none; }
.pd__track:focus-visible { outline-offset: -3px; }
.pd__slide { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.pd__slide img { width: 100%; height: 100%; object-fit: cover; }
.pd__count { position: absolute; left: 20px; top: 20px; padding: 6px 10px; background: var(--white); font-size: 14px; font-weight: 700; }
.pd__nav { position: absolute; bottom: 20px; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; background: var(--white); font-size: 20px; cursor: pointer; transition: background-color .15s, color .15s; }
.pd__nav:disabled { opacity: .45; cursor: default; }
.pd__nav--prev { right: 80px; }
.pd__nav--next { right: 20px; }
.pd__dots { position: absolute; left: 20px; bottom: 34px; display: flex; gap: 8px; }
.pd__dots button { width: 28px; height: 4px; padding: 0; border: 0; background: rgba(10, 20, 48, .25); cursor: pointer; }
.pd__dots button[aria-current="true"] { background: var(--navy); }
.pd__close { position: absolute; top: 16px; right: 16px; z-index: 2; }
.pd__info { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 64px 44px 40px; }
.pd__kicker { color: var(--blue); font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pd__title { margin: 10px 0 14px; font: 900 64px/.86 var(--display); text-transform: uppercase; }
.pd__price { font-size: 24px; }
.pd__note { margin-top: 2px; color: var(--mute); font-size: 15px; }
.pd__notes { margin-top: 6px; color: var(--mute); font-size: 16px; }
.pd__buy { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pd__buy .btn { flex: 1; padding: 0 16px; }
.pd__added { flex-basis: 100%; margin-top: 2px; font-size: 15px; }
.pd__text { margin-top: 28px; font-size: 17px; }
.pd__specs { margin: 24px 0 0; border-top: 1px solid var(--line); }
.pd__specs div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.pd__specs dt { color: var(--mute); }
.pd__specs dd { margin: 0; text-align: right; font-weight: 600; }
.pd__how { margin-top: 4px; border-bottom: 1px solid var(--line); }
.pd__how summary { display: flex; justify-content: space-between; align-items: center; min-height: 48px; font-size: 15px; font-weight: 700; cursor: pointer; list-style: none; }
.pd__how summary::-webkit-details-marker { display: none; }
.pd__how summary::after { content: "+"; font-size: 22px; font-weight: 400; }
.pd__how[open] summary::after { content: "×"; }
.pd__how p { padding-bottom: 16px; color: var(--mute); font-size: 15px; }
/* Самовывоз рядом с покупкой: на компьютере под кнопкой, на телефоне сразу под ценой (порядок ниже). */
.pd__pickup { margin-top: 14px; color: var(--mute); font-size: 15px; }
.pd__pickup a { color: var(--navy); font-weight: 600; text-underline-offset: 3px; }

/* Телефон и планшет: окно на весь экран, листается целиком, кнопка покупки прилипает к низу. */
@media (max-width: 899px) {
  .pd { width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
  .pd__in { display: block; height: auto; }
  /* Фото ниже экрана на 296 px: название, цена и строка про самовывоз видны сразу, их не закрывает панель покупки. */
  .pd__media { width: 100%; aspect-ratio: 4 / 5; max-height: max(300px, calc(100svh - 296px)); }
  .pd__nav { display: none; }
  .pd__dots { left: 50%; bottom: 16px; transform: translateX(-50%); }
  .pd__count { left: 16px; top: 16px; }
  /* 44 px вместо 56: крестик меньше закрывает текст, когда карточка пролистана. */
  .pd__close { position: fixed; top: 12px; right: 12px; width: 44px; height: 44px; font-size: 24px; }
  .pd__info { display: flex; overflow: visible; padding: 24px var(--pad) 0; }
  .pd__title { font-size: min(15vw, 64px); }
  /* Порядок на телефоне: название, цена, самовывоз, ноты, описание. Панель покупки прилипает к низу. */
  .pd__kicker, .pd__title, .pd__price, .pd__note { order: 1; }
  .pd__pickup { order: 2; margin-top: 8px; }
  .pd__notes { order: 3; }
  .pd__text, .pd__specs, .pd__how { order: 4; }
  .pd__buy { order: 9; position: sticky; bottom: 0; z-index: 1; margin: 28px calc(var(--pad) * -1) 0; padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom)); background: var(--white); box-shadow: 0 -1px 0 var(--line); }
  .pd__added { order: -1; margin: 0 0 2px; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .pd__media { aspect-ratio: auto; height: min(64svh, calc(100svh - 300px)); max-height: none; }
}
/* Телефон боком: фото слева, текст справа листается сам, кнопка покупки прилипает к низу колонки. */
@media (max-width: 899px) and (orientation: landscape) and (max-height: 560px) {
  .pd { overflow: hidden; }
  .pd__in { display: grid; grid-template-columns: minmax(0, 44%) minmax(0, 1fr); height: 100%; }
  .pd__media { aspect-ratio: auto; height: 100%; max-height: none; }
  .pd__close { position: absolute; top: 8px; right: 8px; }
  .pd__info { overflow-y: auto; padding: 20px 24px 0; }
  .pd__title { margin-top: 6px; font-size: 44px; }
  .pd__buy { margin: 20px -24px 0; padding: 10px 24px; }
}

/* Корзина: панель справа, на телефоне на весь экран. */
.cart { position: fixed; inset: 0 0 0 auto; width: min(480px, 100vw); height: 100%; max-width: 100%; max-height: 100%; margin: 0; overflow: hidden; }
.cart[open] { display: flex; flex-direction: column; }
.cart__head { display: flex; align-items: center; gap: 12px; flex: none; min-height: 80px; padding: 12px 16px 12px 24px; border-bottom: 1px solid var(--line); }
.cart__back { flex: none; width: 48px; height: 48px; margin-left: -12px; font-size: 22px; border-color: transparent; }
.cart__title { flex: 1; font: 900 40px/1 var(--display); text-transform: uppercase; }
.cart__view { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.cart__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 24px 24px; }
.cart__foot { flex: none; padding: 16px 24px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--white); }
.cart__cta { width: 100%; }
.cart__empty { padding: 40px 0; }
.cart__empty p { margin-bottom: 20px; font-size: 18px; }
.line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.line__pic { width: 72px; height: 96px; object-fit: cover; object-position: 50% 46%; background: #e6ecf5; }
.line__name { font: 900 24px/1 var(--display); text-transform: uppercase; }
.line__unit { margin-top: 4px; color: var(--mute); font-size: 14px; }
.line__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.line__sum { font-weight: 700; white-space: nowrap; }
.line__del { min-height: 36px; padding: 0; border: 0; background: none; color: var(--mute); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.qty--sm { margin-top: 12px; }
/* Итог одной строкой: доставки нет, к оплате только товары. */
.sum { margin: 0 0 14px; }
.sum div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 20px; }
.sum dt { font-weight: 700; }
.sum dd { margin: 0; font-weight: 800; white-space: nowrap; }

/* Самовывоз в корзине и в оформлении. */
.pickup { margin: 20px 0 4px; padding: 16px 18px; background: #eef3fa; }
.pickup p + p { margin-top: 4px; }
.pickup__title { font-weight: 700; }
.pickup__addr { color: var(--navy); font-weight: 600; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.pickup__sub { color: var(--mute); font-size: 15px; }
.checkout .pickup { margin: 0 0 18px; }

/* Оформление заказа. */
.checkout fieldset { margin: 0 0 28px; padding: 0; border: 0; min-width: 0; }
.checkout legend { margin-bottom: 14px; padding: 0; font: 900 28px/1 var(--display); text-transform: uppercase; }
.checkout .cart__body { padding-top: 24px; }
.field { display: block; margin-bottom: 14px; }
.field > label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid #a9b8cf; border-radius: 0; background: var(--white); color: var(--navy); font: 400 17px/1.3 var(--text); }
.field textarea { min-height: 76px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--blue); }
.field.is-bad input { border-color: var(--error); }
.err { color: var(--error); font-size: 14px; }
.err:empty { display: none; }
.field .err { margin-top: 6px; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 4px 12px; align-items: start; margin-bottom: 14px; font-size: 15px; }
.check label { cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--blue); }
.check a { color: var(--blue); text-underline-offset: 3px; }
.check .err { grid-column: 2; }
.check.is-bad input { outline: 2px solid var(--error); outline-offset: 1px; }
.consent__note { margin-top: 4px; color: var(--mute); font-size: 14px; }
.consent__note a { color: inherit; text-underline-offset: 3px; }
.pay-note { margin-top: 12px; color: var(--mute); font-size: 13px; text-align: center; }

/* Шаг оплаты (демо). */
.pay { padding-top: 32px; }
.pay__kicker { color: var(--blue); font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pay__title { margin: 10px 0 20px; font: 900 56px/.88 var(--display); text-transform: uppercase; }
.pay__lines { margin: 0 0 20px; border-top: 1px solid var(--line); }
.pay__lines li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.pay__text + .pay__text { margin-top: 10px; }
.pay__demo { margin-top: 20px; padding: 14px 16px; border: 1.5px dashed var(--steel); color: var(--mute); font-size: 14px; }

@media (max-width: 767px) {
  .cart { width: 100%; }
  .cart__head { min-height: 64px; padding: 8px 8px 8px var(--pad); }
  .cart__title { font-size: 34px; }
  .cart__body, .cart__foot { padding-left: var(--pad); padding-right: var(--pad); }
}
/* Низкий экран (телефон боком, открытая клавиатура): итоги не прилипают, весь шаг листается целиком. */
@media (max-height: 560px) {
  .cart__view { display: block; overflow-y: auto; overscroll-behavior: contain; }
  .cart__body { overflow: visible; }
  .cart__head { min-height: 56px; padding-top: 4px; padding-bottom: 4px; }
  .cart__title { font-size: 30px; }
  .cart__foot { padding-top: 10px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .cart__foot .sum { margin-bottom: 8px; }
  .cart__cta { min-height: 48px; }
  /* В корзине клавиатуры нет: итог и «Оформить заказ» прилипают к низу, товары и самовывоз листаются над ними. */
  .cart__view[data-view="list"] .cart__foot { position: sticky; bottom: 0; }
}
/* Палец: кнопки «−/+» в корзине 40×44, «Удалить» высотой 44. Ширина степпера та же, строка не раздвигается. */
@media (pointer: coarse) {
  .qty--sm { grid-template-columns: 40px 32px 40px; height: 47px; }
  .line__del { min-height: 44px; }
}

@media (prefers-reduced-motion: no-preference) {
  .pd[open] { animation: rise .32s cubic-bezier(.2, .7, .2, 1); }
  .cart[open] { animation: slide .32s cubic-bezier(.2, .7, .2, 1); }
  .pd[open]::backdrop, .cart[open]::backdrop { animation: fade .32s ease-out; }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes slide { from { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Подвал ---------- */
.foot { position: relative; z-index: 1; padding: 96px var(--pad) 28px; background: var(--navy); color: var(--white); }
.foot a { color: inherit; text-decoration: none; }
.foot__cols { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.foot__lead { max-width: 300px; color: #c9d4e8; font-size: 17px; }
.foot__lead a { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.foot h2 { margin-bottom: 18px; color: var(--sky); font: 700 14px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; }
.foot li { margin-bottom: 10px; font-size: 16px; }
.foot li a { display: inline-block; padding: 2px 0; }
.foot__hours { color: #c9d4e8; font-size: 15px; }
.foot__mark { display: block; margin: 80px 0 24px; font: 900 clamp(96px, 25vw, 420px)/.76 var(--display); letter-spacing: -.01em; }
.foot__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .18); color: #b6c3da; font-size: 14px; }
.foot__legal p { max-width: 720px; }
.paylist { display: flex; flex-wrap: wrap; gap: 8px; }
.paylist li { margin: 0; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, .32); color: var(--white); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.foot :focus-visible { outline-color: var(--white); }
@media (max-width: 1023px) { .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .foot { padding: 52px var(--pad) calc(28px + env(safe-area-inset-bottom)); }
  .foot__cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .foot__mark { margin: 44px 0 18px; }
}
/* Палец: каждая строка подвала высотой 44 px, по ссылке легко попасть. */
@media (hover: none), (pointer: coarse) {
  .foot__cols li { display: flex; align-items: center; min-height: 44px; margin: 0; }
  .foot__cols li a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
  .foot h2 { margin-bottom: 8px; }
}

/* ---------- Страницы документов и «Покупателям» ---------- */
.page .top { position: sticky; }
.doc { max-width: 820px; margin: 0 auto; padding: 72px var(--pad) 120px; }
.doc__kicker { color: var(--blue); font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
/* 10.5vw: слово «КОНФИДЕНЦИАЛЬНОСТИ» помещается в строку даже на экране 320 px. */
.doc h1 { margin: 12px 0 16px; font: 900 clamp(32px, 10.5vw, 112px)/.84 var(--display); text-transform: uppercase; overflow-wrap: break-word; }
.doc__meta { margin-bottom: 40px; color: var(--mute); font-size: 15px; }
.doc__toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }
.doc__toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 2px solid var(--navy); font-weight: 700; text-decoration: none; }
.doc h2 { margin: 56px 0 16px; font: 900 34px/.95 var(--display); text-transform: uppercase; scroll-margin-top: calc(var(--head) + 24px); }
.doc h3 { margin: 28px 0 10px; font-size: 19px; font-weight: 700; }
.doc p, .doc li { margin-bottom: 12px; font-size: 17px; line-height: 1.6; }
.doc ol, .doc ul { margin: 0 0 16px; padding-left: 24px; list-style: revert; }
.doc a { color: var(--blue); text-underline-offset: 3px; }
.req { margin: 0 0 16px; border-top: 1px solid var(--line); }
.req div { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.req dt { color: var(--mute); }
.req dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 767px) {
  .doc { padding-top: 40px; padding-bottom: 88px; }
  .doc h2 { font-size: 30px; }
  .req div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* Наведение только там, где есть мышь: на телефоне цвет кнопки не залипает после нажатия. */
@media (hover: hover) and (pointer: fine) {
  .btn--white:hover { background: var(--sky); }
  .btn--blue:hover { background: var(--navy); }
  .sq:hover:not(:disabled) { background: var(--navy); color: var(--white); }
  .top__nav a:hover, .top__cart:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--sky); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
  .tile__link:hover .tile__pic img { transform: scale(1.04); }
  .tile__link:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
  .qty button:hover:not(:disabled), .pd__nav:hover:not(:disabled) { background: var(--navy); color: var(--white); }
  .line__del:hover, .link:hover { color: var(--navy); }
  .foot a:hover { text-decoration: underline; text-underline-offset: 4px; }
}
/* Палец: кнопка темнеет, пока на неё нажимают. Серую вспышку браузера убираем только там, где есть своя подсветка. */
@media (hover: none) {
  .btn, .sq, .qty button, .top__cart { -webkit-tap-highlight-color: transparent; }
  .btn--blue:active { background: var(--navy); }
  .btn--white:active { background: var(--sky); }
  .sq:active:not(:disabled), .qty button:active:not(:disabled) { background: var(--navy); color: var(--white); }
  .top__cart:active { opacity: .6; }
}
