/*
  Стиль iOS 26–27 (Liquid Glass).
  Правило Apple: контент — на чистом фоне, стекло — только у парящих элементов управления.
*/
:root {
  /* Цвета iOS */
  --bg: #f2f2f7;
  --card: #ffffff;
  --label: #0b0b0f;
  --secondary: #6a6a70;
  --separator: rgba(60, 60, 67, .14);
  --fill: rgba(120, 120, 128, .12);
  --fill-strong: rgba(120, 120, 128, .2);
  --tint: #0f8795;          /* фирменный бирюзовый для кнопок и ссылок */
  --tint-soft: rgba(15, 135, 149, .12);
  --teal: #3fa9b5;
  --aqua: #7fd6de;
  --mint: #a5efe0;

  /* Стекло */
  --glass-fill: rgba(255, 255, 255, .22);
  --glass-rim:
    inset 1px 1px 0 rgba(255, 255, 255, .85),
    inset -1px -1px 0 rgba(255, 255, 255, .45),
    inset 0 0 0 1px rgba(255, 255, 255, .22),
    inset 0 10px 16px -12px rgba(255, 255, 255, .7),
    inset 0 -12px 18px -14px rgba(255, 255, 255, .55);
  --glass-shadow: 0 0 0 .5px rgba(0, 0, 0, .16), 0 10px 34px rgba(0, 0, 0, .16), 0 2px 6px rgba(0, 0, 0, .08);

  --spring: cubic-bezier(.3, 1.45, .45, 1);
  --ease: cubic-bezier(.2, .9, .3, 1);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 28px rgba(0, 0, 0, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  font: 17px/1.45 "Golos Text", -apple-system, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: -.011em;
  color: var(--label);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
/* открыто окно поверх сайта (js/app.js, syncLock) — страница под ним не листается; место полосы прокрутки остаётся, ничего не прыгает */
html.locked, body.locked { overflow: hidden; }
html.locked { scrollbar-gutter: stable; }
dialog, .cart { overscroll-behavior: contain; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; letter-spacing: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Стекло ---------- */
.glass {
  position: relative;
  background: var(--glass-fill);
  box-shadow: var(--glass-rim), var(--glass-shadow);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  isolation: isolate;
}
/* блик, который идёт за курсором */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .5), transparent 70%);
  transition: opacity .4s ease;
}
.glass:hover::after { opacity: 1; }

/* ---------- «Обои» ---------- */
.wallpaper {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(55% 60% at 12% 18%, #5fe3d2 0%, transparent 62%),
    radial-gradient(45% 55% at 88% 12%, #2f8fd0 0%, transparent 66%),
    radial-gradient(60% 55% at 78% 92%, #7ff0d8 0%, transparent 60%),
    radial-gradient(60% 60% at 8% 96%, #1a5fa0 0%, transparent 62%),
    linear-gradient(160deg, #0a3d4a, #14808e 55%, #0b4658);
}
/* плывущие световые пятна */
.wallpaper::before, .wallpaper::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.wallpaper::before { width: 46%; aspect-ratio: 1; left: 22%; top: -18%; background: #a5efe0; opacity: .55; animation: blob 22s ease-in-out infinite alternate; }
.wallpaper::after { width: 40%; aspect-ratio: 1; right: 8%; bottom: -24%; background: #3aa0ff; opacity: .5; animation: blob 28s ease-in-out infinite alternate-reverse; }
@keyframes blob { to { transform: translate3d(22%, 16%, 0) scale(1.25); } }
.wallpaper > * { position: relative; z-index: 1; }

/* ---------- Логотип ---------- */
.brand {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.02em;
  text-decoration: none;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
  transition: transform .3s var(--spring);
}
.brand:active { transform: scale(.94); }
.brand__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #1b8c9a, #6fd3da); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6); }
.brand__mark img { width: 26px; }
/* над светлым контентом надпись темнеет (класс ставит app.js) */
.on-light .brand { color: var(--label); text-shadow: none; background: rgba(255, 255, 255, .5); }

/* ---------- Кнопки ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  /* главная кнопка: тонированное стекло */
  background: linear-gradient(180deg, #1ba3b2, #0b7c8a);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .5), inset -1px -1px 0 rgba(255, 255, 255, .18), inset 0 12px 14px -12px rgba(255, 255, 255, .6), 0 8px 22px rgba(11, 124, 138, .35);
  transition: transform .25s var(--spring), filter .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: scale(.95); filter: brightness(1.12); }
.btn--wide { width: 100%; min-height: 54px; }
/* прозрачное стекло поверх обоев */
.btn--glass { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .3); background: var(--glass-fill); box-shadow: var(--glass-rim), var(--glass-shadow); }
.btn--bright { color: #06343c; text-shadow: none; background: rgba(255, 255, 255, .62); }

/* маленькая кнопка-капсула, как «Загрузить» в App Store */
.get {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  min-height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  color: var(--tint);
  background: var(--fill);
  cursor: pointer;
  transition: transform .25s var(--spring), background .2s;
  -webkit-tap-highlight-color: transparent;
}
.get:hover { background: var(--fill-strong); }
.get:active { transform: scale(.92); }
.get--round { min-width: 34px; width: 34px; padding: 0; font-size: 22px; font-weight: 500; line-height: 1; color: #fff; background: var(--tint); }
.get--round:hover { background: #0b7684; }
.bloop { animation: bloop .5s var(--spring); }
@keyframes bloop { 0% { transform: scale(.9); } 50% { transform: scale(1.06); } 100% { transform: scale(1); } }

:is(.btn, .get, .card, .chip, .tab, .tabbar__item, .fab, .modal__close, .thumb):focus-visible, .pill input:focus-visible + span {
  outline: 3px solid rgba(15, 135, 149, .5);
  outline-offset: 3px;
}

/* ---------- Первый экран ---------- */
.hero { min-height: 100vh; display: grid; place-items: center; padding: 80px 20px 190px; text-align: center; }
.hero__inner { width: 100%; max-width: 900px; }
.hero__logo { width: min(240px, 56%); margin: 0 auto 14px; filter: drop-shadow(0 24px 30px rgba(0, 20, 30, .45)); animation: float 7s ease-in-out infinite alternate; }
@keyframes float { to { transform: translateY(-12px); } }
.hero__title { font-size: clamp(40px, 6.4vw, 76px); line-height: .98; font-weight: 800; letter-spacing: -.045em; text-shadow: 0 2px 24px rgba(0, 30, 40, .35); }
.hero__text { max-width: 540px; margin: 20px auto 0; font-size: clamp(17px, 2vw, 21px); line-height: 1.35; font-weight: 500; color: rgba(255, 255, 255, .88); text-shadow: 0 1px 10px rgba(0, 30, 40, .35); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

.widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 760px; margin: 36px auto 0; }
.widget { display: flex; flex-direction: column; gap: 4px; padding: 20px 18px; border-radius: 28px; text-align: left; text-shadow: 0 1px 8px rgba(0, 30, 40, .35); transition: transform .5s var(--spring); }
.widget:hover { transform: translateY(-4px) scale(1.02); }
.widget b { font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; letter-spacing: -.03em; }
.widget span { font-size: 14px; line-height: 1.3; color: rgba(255, 255, 255, .85); }

/* ---------- Контент: лист поверх обоев ---------- */
.content { position: relative; z-index: 1; margin-top: -40px; padding-bottom: 150px; border-radius: 40px 40px 0 0; background: var(--bg); }
.section { padding: 72px 0 0; }
.title { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.05; font-weight: 800; letter-spacing: -.04em; }
.lead { max-width: 640px; margin-top: 12px; font-size: 17px; color: var(--secondary); }
.lead--center { margin: 28px auto 0; text-align: center; }

.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

.grid { display: grid; gap: 16px; margin-top: 28px; }
.grid--products { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.grid--features { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-top: 20px; }
.grid--facts { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* ---------- Карточка трекера ---------- */
.card {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border: 0;
  border-radius: 30px;
  text-align: left;
  background: var(--card);
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: transform .45s var(--spring), box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px) scale(1.015); box-shadow: 0 2px 4px rgba(0, 0, 0, .05), 0 24px 50px rgba(0, 0, 0, .13); }
.card:active { transform: scale(.97); }
.card__photo { position: relative; aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: var(--bg); }
.card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__photo img { transform: scale(1.06); }
.card--off .card__photo img { filter: saturate(.5) opacity(.7); }
.card__body { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px 8px; flex: 1; }
.card__name { font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.card__tag { font-size: 14px; line-height: 1.3; color: var(--secondary); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 14px; }
.card__meta { font-size: 12px; line-height: 1.25; white-space: nowrap; color: var(--secondary); }
.card .get { min-width: 0; padding: 0 12px; }
.card .get { pointer-events: none; }
.card--off .get { color: var(--secondary); }

.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(40, 40, 46, .42);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .4), inset -1px -1px 0 rgba(255, 255, 255, .15);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
}
.badge--ok { background: rgba(15, 135, 149, .78); }

/* ---------- Списки в стиле «Настроек» iOS ---------- */
.list { border-radius: 26px; background: var(--card); box-shadow: var(--card-shadow); overflow: hidden; }
.group { margin: 28px 0 8px; padding: 0 18px; font-size: 13px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: var(--secondary); }

.table-scroll { margin-top: 28px; overflow-x: auto; border-radius: 26px; background: var(--card); box-shadow: var(--card-shadow); }
.compare { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 14px; line-height: 1.4; }
.compare th, .compare td { padding: 15px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--separator); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.compare tbody th { width: 120px; font-weight: 500; color: var(--secondary); white-space: nowrap; }

/* ---------- Аксессуары ---------- */
.groups { margin-top: 8px; }
.acc { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 16px; transition: opacity .3s, background .3s; }
.acc + .acc::before { content: ""; position: absolute; top: 0; left: 72px; right: 0; height: 1px; background: var(--separator); }
.acc__icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45); }
.acc__icon svg { width: 24px; height: 24px; }
.acc__icon--dongle { background: linear-gradient(180deg, #33b8c6, #0f8795); }
.acc__icon--cable { background: linear-gradient(180deg, #6f8cff, #4762e6); }
.acc__icon--charger { background: linear-gradient(180deg, #ffb340, #ff8a00); }
.acc__icon--mount { background: linear-gradient(180deg, #9a9aa2, #6d6d75); }
.acc__text { flex: 1; min-width: 0; }
.acc__name { font-weight: 600; line-height: 1.25; }
.acc__note { font-size: 14px; line-height: 1.3; color: var(--secondary); }
.acc__price { font-weight: 600; white-space: nowrap; text-align: right; }
.acc__in { display: block; font-size: 12px; font-weight: 600; color: var(--tint); }
.acc.is-locked { opacity: .38; }
.acc.is-locked .get { background: var(--secondary); cursor: not-allowed; }
.acc.is-pick { background: var(--tint-soft); }

/* ---------- Переключатели ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
/* сегментированный переключатель iOS */
.tabs, .pills { display: inline-flex; gap: 2px; max-width: 100%; padding: 3px; border-radius: 999px; background: var(--fill); }
.tabs { margin-top: 22px; }
.tab, .pill span, .chip {
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--label);
  background: transparent;
  cursor: pointer;
  transition: background .3s, color .2s, transform .25s var(--spring), box-shadow .3s;
  -webkit-tap-highlight-color: transparent;
}
.tab:active, .chip:active { transform: scale(.94); }
.tab.is-on, .pill input:checked + span { background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .06), 0 3px 10px rgba(0, 0, 0, .12); }
.chip { background: var(--fill); }
.chip.is-on { color: #fff; background: var(--tint); box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .35), 0 5px 14px rgba(15, 135, 149, .3); }
.pills { display: flex; }
.pill { flex: 1; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: block; text-align: center; }

/* ---------- Особенности и доставка ---------- */
.feature { padding: 22px; border-radius: 26px; background: var(--card); box-shadow: var(--card-shadow); transition: transform .45s var(--spring); }
.feature:hover { transform: translateY(-4px); }
.feature h3 { font-size: 19px; line-height: 1.2; font-weight: 700; letter-spacing: -.025em; }
.feature p { margin-top: 8px; font-size: 15px; line-height: 1.42; color: var(--secondary); }

.fact { padding: 22px; border-radius: 28px; background: var(--card); box-shadow: var(--card-shadow); transition: transform .45s var(--spring); }
.fact:hover { transform: translateY(-4px) scale(1.01); }
.fact__big { font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -.04em; }
.fact p { margin-top: 8px; font-size: 15px; line-height: 1.4; color: var(--secondary); }
.fact--tint { color: #fff; background: linear-gradient(160deg, #1fa9b8, #0a6f86); box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .4), 0 14px 34px rgba(11, 124, 138, .32); }
.fact--tint p { color: rgba(255, 255, 255, .86); }

.cta { padding: 64px 24px; border-radius: 40px; text-align: center; }
.cta__title { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.05; font-weight: 800; letter-spacing: -.04em; text-shadow: 0 2px 20px rgba(0, 30, 40, .3); }
.cta p { margin: 12px 0 26px; font-size: 18px; font-weight: 500; color: rgba(255, 255, 255, .88); }

.footer { padding: 40px 0 0; font-size: 14px; color: var(--secondary); }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a { color: var(--tint); text-decoration: none; }

/* ---------- Нижняя панель ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 12px;
  pointer-events: none;
}
.dock > * { pointer-events: auto; }
.tabbar { display: flex; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .42); transition: transform .4s var(--spring); }
.tabbar__item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 82px;
  padding: 8px 10px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  color: #2b2b30;
  transition: color .25s, transform .25s var(--spring), min-width .4s var(--ease), padding .4s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.tabbar__item svg, .fab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tabbar__item span { max-height: 14px; overflow: hidden; transition: max-height .4s var(--ease), opacity .3s; }
.tabbar__item:active { transform: scale(.9); }
.tabbar__item.is-on { color: var(--tint); }
/* ползунок под выбранной вкладкой */
.tabbar__thumb {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: var(--thumb-w, 0);
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 rgba(255, 255, 255, .6), 0 2px 10px rgba(0, 0, 0, .1);
  opacity: var(--thumb-on, 0);
  transform: translateX(var(--thumb-x, 0));
  transition: transform .55s var(--spring), width .45s var(--ease), opacity .3s;
}
/* при прокрутке вниз панель сжимается до значков */
.dock.is-compact .tabbar__item { min-width: 52px; padding: 11px 10px; }
.dock.is-compact .tabbar__item span { max-height: 0; opacity: 0; }

.fab { display: grid; place-items: center; flex: none; width: 62px; height: 62px; border: 0; border-radius: 50%; color: #2b2b30; background: rgba(255, 255, 255, .42); cursor: pointer; transition: transform .3s var(--spring), width .4s var(--ease), height .4s var(--ease); -webkit-tap-highlight-color: transparent; }
.fab:hover { transform: scale(1.06); }
.fab:active { transform: scale(.9); }
.dock.is-compact .fab { width: 56px; height: 56px; }
.fab__count { position: absolute; top: -2px; right: -2px; min-width: 22px; padding: 0 6px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; color: #fff; background: #ff3b30; box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }
.fab__count[hidden] { display: none; }

/* ---------- Листы: окно товара и корзина ---------- */
.modal {
  width: min(980px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  padding: 0;
  border: 0;
  border-radius: 40px;
  color: var(--label);
  background: var(--card);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .1), 0 40px 110px rgba(0, 0, 0, .4);
}
.modal::backdrop { background: rgba(0, 0, 0, .34); backdrop-filter: blur(10px) saturate(140%); }
.modal[open] { animation: sheet .55s var(--spring); }
@keyframes sheet { from { transform: translateY(60px) scale(.94); opacity: 0; } }
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: var(--secondary);
  background: var(--fill);
  cursor: pointer;
  transition: transform .25s var(--spring), background .2s;
}
.modal__close:hover { background: var(--fill-strong); }
.modal__close:active { transform: scale(.88); }
.modal__close--static { position: static; }
.modal__body { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 14px; }

.gallery__main { aspect-ratio: 1; border-radius: 28px; overflow: hidden; background: var(--bg); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 10px; }
.thumb { width: 66px; height: 66px; padding: 0; border: 0; border-radius: 18px; overflow: hidden; cursor: pointer; opacity: .55; transition: opacity .2s, transform .3s var(--spring); }
.thumb:hover { opacity: .85; transform: translateY(-2px); }
.thumb.is-on { opacity: 1; outline: 2.5px solid var(--tint); outline-offset: 2px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.product { padding: 18px 16px 12px 0; }
.product__name { padding-right: 44px; font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -.045em; }
.product__tag { margin-top: 8px; font-size: 17px; color: var(--secondary); }
.product__label { margin: 22px 0 8px; font-size: 13px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: var(--secondary); }
.specs { margin: 22px 0 0; font-size: 15px; line-height: 1.4; }
.specs div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--separator); }
.specs dt { color: var(--secondary); }
.specs dd { margin: 0; }

.buy { margin-top: 22px; padding: 16px; border-radius: 26px; background: var(--bg); }
.buy__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.buy__price { font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -.04em; }
.buy__unit { font-size: 14px; color: var(--secondary); }
.buy__save { color: var(--tint); font-weight: 600; }
.buy .btn--wide { margin-top: 16px; }
.buy .chip { background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .05), 0 1px 3px rgba(0, 0, 0, .06); }
.buy .chip.is-on { background: var(--tint); }

/* счётчик количества, как в iOS */
.stepper { display: inline-flex; align-items: center; border-radius: 999px; background: var(--fill); }
.buy .stepper { background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .05), 0 1px 3px rgba(0, 0, 0, .06); }
.stepper button { width: 40px; height: 36px; border: 0; border-radius: 999px; font-size: 20px; line-height: 1; color: var(--label); background: none; cursor: pointer; transition: transform .25s var(--spring), background .2s; }
.stepper button:hover { background: var(--fill); }
.stepper button:active { transform: scale(.82); }
.stepper output { min-width: 30px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.overlay { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .3); backdrop-filter: blur(8px) saturate(140%); animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; } }
.cart {
  position: fixed;
  top: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 31;
  display: flex;
  flex-direction: column;
  width: min(450px, calc(100% - 24px));
  border-radius: 40px;
  background: rgba(242, 242, 247, .84);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .9), inset -1px -1px 0 rgba(255, 255, 255, .5), 0 0 0 .5px rgba(0, 0, 0, .14), 0 40px 110px rgba(0, 0, 0, .38);
  backdrop-filter: blur(40px) saturate(190%);
  -webkit-backdrop-filter: blur(40px) saturate(190%);
  overflow: hidden;
  transform: translateX(calc(100% + 40px));
  visibility: hidden;
  transition: transform .6s cubic-bezier(.3, 1.18, .4, 1), visibility 0s .6s;
}
.cart.is-open { transform: none; visibility: visible; transition: transform .6s cubic-bezier(.3, 1.18, .4, 1); }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 18px 12px 24px; }
.cart__head h2 { font-size: 30px; font-weight: 800; letter-spacing: -.04em; }
.cart__scroll { flex: 1; overflow-y: auto; padding: 0 16px 22px; }
.cart__empty { padding: 60px 0; text-align: center; color: var(--secondary); }

.line { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 14px 16px; }
.line + .line::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--separator); }
.line .stepper { justify-self: start; }
.line__name { font-weight: 600; line-height: 1.25; }
.line__sub { font-size: 14px; line-height: 1.3; color: var(--secondary); }
.line__price { font-weight: 700; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.line__del { border: 0; padding: 0; font-size: 15px; font-weight: 500; color: #ff3b30; background: none; cursor: pointer; justify-self: end; align-self: center; }

.hint { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px 16px; border-radius: 24px; font-size: 15px; line-height: 1.38; background: var(--card); box-shadow: var(--card-shadow); animation: rise .5s var(--spring); }
@keyframes rise { from { transform: translateY(14px) scale(.96); opacity: 0; } }
.hint p { flex: 1; }
.hint .get { flex: none; min-width: 96px; }
.hint--choice { display: block; }
.option { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--separator); }
.option__text { flex: 1; font-size: 14px; line-height: 1.35; color: var(--secondary); }
.option__text strong { display: block; font-size: 17px; font-weight: 600; color: var(--label); }
.hint__tag { display: table; margin-bottom: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--tint); background: var(--tint-soft); }
.hint__actions { display: flex; flex-direction: column; gap: 8px; flex: none; }
.hint--warn { background: #fff6dd; box-shadow: inset 0 0 0 1px rgba(255, 159, 10, .35), var(--card-shadow); }
.hint--warn .get { color: #9a5b00; background: rgba(255, 159, 10, .2); }
.hint--ok { color: #0c6b3d; background: #e3f8ea; box-shadow: none; }
/* предзаказ: деталей нет на складе, ждём поставку — дата и таймер «Осталось: …» (js/app.js, cartHints) */
.hint--pre { box-shadow: inset 0 0 0 1px rgba(10, 132, 255, .35), var(--card-shadow); }
.hint__timer { display: block; margin-top: 6px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ремешки в корзине (js/app.js, renderStraps): место на теле и длина, стрелки ± 10 см; длиннее стандартной — оранжевая обводка */
.straps { margin-top: 12px; }
.straps[hidden] { display: none; }
.straps__head { display: grid; gap: 2px; padding: 0 6px 8px; }
.straps__head b { font-weight: 600; }
.straps__head small { font-size: 13px; line-height: 1.35; color: var(--secondary); }
.straps__list { margin: 0; padding: 0; list-style: none; }
.straps__list li { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 6px 8px 6px 16px; }
.straps__list li + li::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--separator); }
.straps__list li > span:first-child { display: grid; font-size: 15px; line-height: 1.25; }
.straps__list small { font-size: 12px; color: var(--secondary); }
.straps__list em { font-size: 13px; font-style: normal; color: var(--secondary); }
.straps__len { display: inline-flex; align-items: center; flex: none; border-radius: 999px; background: var(--fill); transition: box-shadow .2s; }
.straps__len b { min-width: 60px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.straps__len button { display: grid; place-items: center; width: 34px; height: 32px; padding: 0; border: 0; border-radius: 999px; color: var(--label); background: none; cursor: pointer; transition: transform .25s var(--spring), background .2s; }
.straps__len button svg { width: 16px; height: 16px; }
.straps__len button:hover:not(:disabled) { background: var(--fill-strong); }
.straps__len button:active:not(:disabled) { transform: scale(.85); }
.straps__len button:disabled { opacity: .25; cursor: default; }
.straps__list li.is-custom .straps__len { box-shadow: inset 0 0 0 1.5px #ff9f0a; }

.order { display: grid; gap: 16px; margin-top: 22px; }
.order[hidden] { display: none; }
.order__total { display: flex; align-items: baseline; justify-content: space-between; padding: 0 8px; }
.order__total span { color: var(--secondary); }
.order__total strong { font-size: 30px; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
/* Скидка по промокоду (js/app.js, paintTotal): старая цена мелко и перечёркнута тонкой линией, новая «загорается»,
   как лампочки «Комплекта на теле» (bulbOn в css/lot.css), но с маленьким ореолом — не мешает соседним цифрам.
   Шрифт — как цена в стопке трекеров (.stack__sum). is-lit — анимация при включении; !important — играет и при выключенных анимациях Windows */
.order__total > span { display: flex; flex-direction: column; gap: 4px; }
.order__total small { font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #8fd3ff; }
.order__total strong { display: inline-flex; align-items: baseline; gap: 14px; }
.total__old, .total__new { font-weight: 400; letter-spacing: -.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.total__old em, .total__new em { margin-left: .14em; font-size: .62em; font-style: normal; letter-spacing: 0; opacity: .55; }
.total__old { position: relative; font-size: .5em; line-height: 1; text-decoration: none; opacity: .42; }
/* линия — прямая, ровно через середину цифр (при line-height: 1 у Inter это середина строки) */
.total__old::after { content: ''; position: absolute; left: -.18em; right: -.18em; top: calc(.5em - .5px); height: 1px; border-radius: 1px; background: currentColor; transform-origin: left center; }
.is-off .total__new { color: #e4f6ff; text-shadow: 0 0 6px rgba(96, 184, 255, .45); }
.is-lit .total__old { animation: totalDim 1s ease-out .35s both !important; }
.is-lit .total__old::after { animation: totalStrike .55s cubic-bezier(.6, 0, .2, 1) .35s both !important; }
.is-lit .total__new { animation: totalOn 1.2s ease-out .85s both !important; }
#cartSave:not([hidden]) { animation: totalTag .6s ease-out 1.1s both !important; }
@keyframes totalStrike { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes totalDim { 0%, 45% { opacity: .9; } 100% { opacity: .42; } }
@keyframes totalOn {
  0% { opacity: 0; color: #7fc8ff; text-shadow: 0 0 0 rgba(120, 200, 255, 0); filter: blur(3px); transform: translateY(.12em); }
  40% { opacity: 1; color: #fff; text-shadow: 0 0 3px rgba(255, 255, 255, .9), 0 0 10px rgba(170, 225, 255, .7); filter: blur(0); transform: none; }
  100% { opacity: 1; color: #e4f6ff; text-shadow: 0 0 6px rgba(96, 184, 255, .45); }
}
@keyframes totalTag { from { opacity: 0; letter-spacing: .3em; } to { opacity: 1; letter-spacing: .14em; } }
.order__note { font-size: 13px; line-height: 1.38; color: var(--secondary); text-align: center; }
.order__error { padding: 12px 16px; border-radius: 18px; font-size: 15px; color: #c1271d; background: #ffe5e3; }
.pvz { display: flex; align-items: center; gap: 12px; margin-top: -8px; padding: 0 8px; font-size: 13px; line-height: 1.38; color: var(--secondary); }
.pvz p { flex: 1; }
.pvz .get { flex: none; }
.field { display: grid; gap: 6px; }
.field > span { padding: 0 16px; font-size: 13px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: var(--secondary); }
.field input[type="tel"], .field input[type="text"], .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 20px;
  font: inherit;
  color: var(--label);
  background: var(--card);
  box-shadow: var(--card-shadow);
  resize: vertical;
  transition: box-shadow .25s;
}
.field input[type="tel"] { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
#orderPromo { font-size: 17px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: 0 0 0 2px var(--tint), 0 0 0 6px var(--tint-soft); }

/* ---------- Сообщение об ошибке: баннер сверху, как уведомление iOS ---------- */
.toast {
  position: fixed;
  left: 50%;
  top: 14px;
  z-index: 50;
  width: min(520px, calc(100% - 24px));
  padding: 16px 20px;
  border-radius: 28px;
  font-size: 15px;
  line-height: 1.38;
  font-weight: 500;
  color: #fff;
  background: rgba(190, 40, 30, .78);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .4), inset -1px -1px 0 rgba(255, 255, 255, .15), 0 0 0 .5px rgba(0, 0, 0, .2), 0 24px 60px rgba(60, 10, 6, .4);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  transform: translateX(-50%);
  animation: toast .6s var(--spring);
}
.toast[hidden] { display: none; }
@keyframes toast { from { transform: translate(-50%, -120%) scale(.9); opacity: 0; } }

/* ---------- Телефон ---------- */
@media (max-width: 820px) {
  .hero { padding: 84px 16px 84px; }
  .widgets { grid-template-columns: 1fr; max-width: 360px; }
  .widget { flex-direction: row; align-items: baseline; gap: 10px; padding: 16px 18px; border-radius: 24px; }
  .section { padding-top: 54px; }
  .modal__body { grid-template-columns: 1fr; gap: 6px; padding: 10px; }
  .product { padding: 8px 10px 10px; }
  /* на телефоне подпись видна только у выбранной вкладки */
  .tabbar { flex: 1; max-width: 420px; justify-content: space-between; }
  .tabbar__item, .dock.is-compact .tabbar__item { flex-direction: row; gap: 6px; min-width: 46px; padding: 13px 11px; font-size: 13px; justify-content: center; }
  .tabbar__item span { display: none; }
  .tabbar__item.is-on span { display: block; max-height: none; }
  .dock.is-compact .tabbar__item.is-on span { display: none; }
  .fab { width: 58px; height: 58px; }
  /* корзина выезжает снизу, как лист iOS */
  .cart { top: 54px; left: 8px; right: 8px; bottom: 8px; width: auto; transform: translateY(calc(100% + 40px)); }
  .cart__head { padding-top: 26px; }
  .cart__head::before { content: ""; position: absolute; top: 8px; left: 50%; width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: rgba(60, 60, 67, .3); }
}

/* ---------- Живой первый экран: еле заметные волны (js/waves.js) ---------- */
.hero > .hero__waves { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Заставка при открытии (js/intro.js) ---------- */
/* пока заставка не начала рисовать — просто белый экран */
html.intro:not(.intro-live) body::before { content: ""; position: fixed; inset: 0; z-index: 999; background: #fff; }
html.intro .hero__logo:not(.intro__logo) { visibility: hidden; animation: none; }
.intro__canvas { position: fixed; inset: 0; z-index: 1000; width: 100%; height: 100%; pointer-events: none; }
.intro__logo { position: fixed; z-index: 1001; margin: 0; max-width: none; animation: none; pointer-events: none; transform-origin: 50% 64%; }
/* обводка логотипа: два блика бегут по контуру (угол --a крутит js/intro.js) */
.intro__trace {
  --a: -70deg;
  position: fixed;
  z-index: 1002;
  pointer-events: none;
  -webkit-mask-image: conic-gradient(from var(--a) at 50% 50%, rgba(0, 0, 0, .14) 0deg, #000 166deg, rgba(0, 0, 0, .14) 180deg, #000 346deg, rgba(0, 0, 0, .14) 360deg);
  mask-image: conic-gradient(from var(--a) at 50% 50%, rgba(0, 0, 0, .14) 0deg, #000 166deg, rgba(0, 0, 0, .14) 180deg, #000 346deg, rgba(0, 0, 0, .14) 360deg);
}
.intro__trace img { width: 100%; filter: url(#intro-outline); }
/* элементы страницы: волна дошла — поднялись и засветились */
/* подъём сделан через transform: свойства translate и rotate заняты волнами первого экрана (js/waves.js) */
.intro-item { opacity: 0; transform: translateY(38px) scale(.96); }
.intro-item.intro-in {
  opacity: 1;
  transform: none;
  transition: opacity 1.1s ease, transform 1.5s var(--ease);
}
.hero__title.intro-in, .hero__text.intro-in { animation: intro-glow 1.8s ease-out; }
@keyframes intro-glow {
  from { filter: brightness(1.9) drop-shadow(0 0 26px rgba(190, 255, 250, .95)); }
  to { filter: brightness(1) drop-shadow(0 0 0 rgba(190, 255, 250, 0)); }
}

/* Меньше движения и прозрачности — для тех, кто так настроил систему */
@media (prefers-reduced-motion: reduce) {
  /* новый дизайн «Сцена» (css/stage.css) — анимации всегда: у владельца они выключены в Windows, а смотреть их он хочет */
  :root:not([data-theme]) *, :root:not([data-theme]) *::before, :root:not([data-theme]) *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --glass-fill: rgba(255, 255, 255, .92); }
  .glass { color: var(--label) !important; text-shadow: none !important; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .cart { background: var(--bg); }
}

/* Заставку владелец хочет видеть всегда, даже если в системе анимации выключены */
.intro-item.intro-in { transition: opacity 1.1s ease, transform 1.5s var(--ease) !important; }
.hero__title.intro-in, .hero__text.intro-in { animation: intro-glow 1.8s ease-out !important; }
