:root {
  /* фирменные цвета ELTA — как на логотипе */
  --bg: #13231b;
  --surface: #1a2e23;
  --surface-2: #22392c;
  --line: rgba(241, 239, 226, .1);
  --text: #f1efe2;
  --muted: #9aa797;
  --sage: #8a9a86;
  --sage-light: #c3d0bb;
  --accent: #f1efe2;
  --accent-ink: #13231b;
  --photo-bg: #ecebe3;
  --ok: #8fd694;
  --danger: #ff7a6b;
  --radius: 18px;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); }
body { overflow-x: hidden; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ---------- шапка ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; gap: 12px;
  background: rgba(19, 35, 27, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 19px; width: auto; }
/* поиск по центру шапки */
.topbar .search { position: relative; flex: 1; min-width: 0; max-width: 460px; margin: 0 auto; }
.search input {
  width: 100%; height: 40px; border-radius: 20px; border: 1px solid var(--line);
  background: var(--surface); padding: 0 34px 0 38px; font-size: 16px; outline: none;  /* 16px — iPhone не увеличивает экран при вводе */
  -webkit-appearance: none; appearance: none;
}
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus { border-color: rgba(241,239,226,.45); background: var(--surface-2); }
.search input::placeholder { color: var(--muted); }
.search > svg { position: absolute; left: 13px; top: 11px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search .clear { position: absolute; right: 2px; top: 2px; width: 36px; height: 36px; display: none; place-items: center; color: var(--muted); }
.search.has .clear { display: grid; }
/* корзина: светлая кнопка с тележкой, число товаров — на зелёном кружке */
.cart-btn {
  position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--text); color: var(--bg);
}
.cart-btn svg { width: 22px; height: 22px; margin-left: -1px; }
.badge {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: #2c6a48; color: #fff; box-shadow: 0 0 0 2px var(--bg);
  font-size: 11px; font-weight: 800; display: grid; place-items: center;
  transform: scale(0); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.badge.on { transform: scale(1); }
.badge.bump { animation: bump .35s; }
@keyframes bump { 50% { transform: scale(1.35); } }

/* ---------- верх магазина: заголовок и категории плитками ---------- */
.cats-wrap { padding-top: 6px; }
/* категории: лента светлых кругов с товарами и зелёным кольцом, как истории в Instagram (листается вбок) */
.tiles { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; }
.tiles::-webkit-scrollbar { display: none; }
.tile { flex: none; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 7px; animation: rise .5s both; }
.tile .ring {
  width: 76px; height: 76px; border-radius: 50%; padding: 2.5px;  /* зелёное кольцо */
  background: linear-gradient(45deg, #1d5a38 0%, #3e9b62 50%, #a9dc8c 100%); transition: transform .15s;
}
.tile:active .ring { transform: scale(.95); }
.tile .im {
  width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--bg);  /* зазор между кольцом и кругом */
  background: radial-gradient(circle at 50% 35%, #ffffff 0%, #ecebe3 75%);
  display: grid; place-items: center; overflow: hidden;
}
.tile .im img { width: 86%; height: 86%; object-fit: contain; }
.tile .txt { font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--bg); }
.tile b { font-size: 12px; font-weight: 700; color: #cfccc3; }
/* выбранная категория: кольцо толще и ярче, подпись белая */
.tile.on .ring { padding: 3.5px; background: linear-gradient(45deg, #2c7a4b 0%, #5fd08a 50%, #e1f7c6 100%); }
.tile.on b { color: var(--text); }
/* ---------- каталог ---------- */
/* заголовок раздела: «ВСЕ ТОВАРЫ 40», «ОБУВЬ 6»… — меняется при выборе круга */
.section-head { margin: 22px 0 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
/* выбор бренда справа от заголовка */
.brand-wrap { position: relative; flex: none; }
.brand-btn {
  height: 38px; padding: 0 14px; border-radius: 19px; border: 1px solid var(--line); background: var(--surface);
  font-size: 13.5px; font-weight: 700; max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-btn.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.brand-menu {
  position: absolute; right: 0; top: 46px; z-index: 40; width: 230px; max-height: 330px; overflow-y: auto;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 6px;
  box-shadow: 0 14px 34px rgba(0,0,0,.4); display: none;
}
.brand-menu.open { display: block; animation: rise .18s both; }
.brand-menu button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 11px 12px; border-radius: 11px; font-size: 14px; font-weight: 600; text-align: left; }
.brand-menu button i { font-style: normal; font-size: 12px; color: var(--muted); }
.brand-menu button.on { background: var(--text); color: var(--bg); }
.brand-menu button.on i { color: rgba(19,35,27,.6); }
.section-head h2 { font-family: var(--display); font-size: 24px; font-weight: 600; margin: 0; text-transform: uppercase; letter-spacing: .1em; }
.section-head h2 i { font-family: var(--body); font-style: normal; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 8px; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding-bottom: 28px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface);
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); text-align: left;
  animation: rise .4s both;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.card .ph { aspect-ratio: 1; background: var(--photo-bg); overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:active .ph img { transform: scale(1.03); }
.card .new {
  position: absolute; top: 10px; left: 10px; background: var(--bg); color: var(--text);
  font-size: 10px; font-weight: 800; letter-spacing: .14em; padding: 5px 8px; border-radius: 8px;
}
.card .info { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.card .t {
  font-size: 13.5px; line-height: 1.3; font-weight: 600; margin: 0 0 10px; color: #e7e4dc;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 35px;
}
.card .row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.price { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1; }
/* ровные цифры в ценах и счётчиках (у шрифта с засечками по умолчанию «старинные») */
.price, .p-price, .stat b, .sum, .total b, .done h2 { font-variant-numeric: lining-nums; }
.add {
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; flex: none;
}
.add svg { width: 18px; height: 18px; }
.qty-pill {
  display: flex; align-items: center; height: 36px; border-radius: 18px; background: var(--accent); color: var(--accent-ink);
  font-weight: 800; font-size: 14px;
}
.qty-pill button { width: 32px; height: 36px; display: grid; place-items: center; font-size: 18px; font-weight: 700; }
.empty { text-align: center; color: var(--muted); padding: 48px 16px; grid-column: 1 / -1; line-height: 1.5; }
.empty b { display: block; color: var(--text); font-size: 17px; margin-bottom: 6px; }

/* подвал: «Не нашли нужное?» + контакты */
.foot { padding: 8px 16px calc(110px + var(--safe-b)); }
.help { max-width: 720px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.help-ttl { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.1; margin-bottom: 6px; }
.help-ttl em { font-style: italic; font-weight: 500; color: var(--sage-light); }
.help-sub { color: var(--muted); font-size: 13.5px; line-height: 1.45; margin-bottom: 14px; }
.help-btn { width: 100%; height: 50px; border-radius: 15px; background: var(--text); color: var(--bg); display: flex; align-items: center; justify-content: center; gap: 9px; font-weight: 800; font-size: 15px; }
.help-btn svg { width: 20px; height: 20px; }
.foot-info { text-align: center; color: var(--muted); font-size: 13px; line-height: 1.8; margin-top: 16px; }
.foot-info a { color: var(--muted); text-decoration: none; }
.foot-info .foot-ch { color: var(--sage-light); font-weight: 700; }

/* ---------- страницы поверх витрины ---------- */
.page {
  position: fixed; inset: 0; z-index: 50; background: var(--bg); overflow-y: auto; -webkit-overflow-scrolling: touch;
  transform: translateX(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1);
  padding-bottom: calc(110px + var(--safe-b));
}
.page.open { transform: none; }
.page-bar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: rgba(19,35,27,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.page-bar h3 { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.back { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); }
.back svg { width: 18px; height: 18px; }
.in-tg .back { display: none; }
.page-in { max-width: 720px; margin: 0 auto; }

/* карточка товара */
.gallery { position: relative; background: var(--photo-bg); }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slides img { flex: none; width: 100%; aspect-ratio: 1; object-fit: cover; scroll-snap-align: center; }
.dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(19,35,27,.3); transition: width .2s, background .2s; }
.dots i.on { width: 18px; background: var(--bg); }
.counter { position: absolute; top: 12px; right: 12px; background: rgba(19,35,27,.7); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 10px; }
.thumbs { display: flex; gap: 8px; padding: 12px 16px 0; overflow-x: auto; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumbs button { flex: none; width: 58px; height: 58px; border-radius: 12px; overflow: hidden; background: var(--photo-bg); border: 2px solid transparent; opacity: .55; }
.thumbs button.on { border-color: var(--text); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.p-body { padding: 18px 16px 0; }
.p-cat { font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--sage-light); }
.p-title { font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1.1; margin: 8px 0 12px; }
.p-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.p-price { font-family: var(--display); font-weight: 700; font-size: 36px; line-height: 1; }
.art { font-size: 12px; color: var(--muted); border: 1px dashed rgba(242,239,232,.25); border-radius: 8px; padding: 5px 8px; }
.p-actions { display: flex; gap: 8px; margin: 18px 0 6px; }
.btn2 {
  flex: 1; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 14px;
}
.btn2 svg { width: 17px; height: 17px; }
.desc { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); color: #cfccc4; font-size: 15px; line-height: 1.6; }
.desc p { margin: 0 0 12px; }
.desc b { color: var(--text); }
.desc h4 { margin: 18px 0 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.desc ul { list-style: none; margin: 0 0 12px; padding: 0; }
.desc li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.desc li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-radius: 2px; background: var(--sage); transform: rotate(45deg); }
.incart { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding: 10px 10px 10px 16px; border-radius: 14px; background: var(--surface-2); font-weight: 600; font-size: 14px; }

/* корзина */
.c-item { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.c-item .ph { width: 76px; height: 76px; border-radius: 14px; overflow: hidden; background: var(--photo-bg); flex: none; }
.c-item .ph img { width: 100%; height: 100%; object-fit: cover; }
.c-item .mid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.c-item .t { font-size: 14px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.c-item .u { font-size: 12.5px; color: var(--muted); }
.c-item .bottom { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; height: 36px; }
.stepper button { width: 36px; height: 36px; display: grid; place-items: center; font-size: 18px; color: var(--text); }
.stepper span { min-width: 22px; text-align: center; font-weight: 800; }
.sum { font-family: var(--display); font-weight: 700; font-size: 20px; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 16px; }
.total span { color: var(--muted); }
.total b { font-family: var(--display); font-size: 34px; font-weight: 700; }
/* «Как проходит заказ»: три шага, соединённые линией — сразу видно, что платить онлайн не нужно */
.note { margin: 0 16px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.note-ttl { font-weight: 800; font-size: 15px; margin-bottom: 14px; }
.note-ttl em { font-style: normal; color: #5fd08a; }
.step { display: flex; gap: 12px; position: relative; padding-bottom: 16px; }
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 13.5px; top: 28px; bottom: 0; width: 1.5px; background: rgba(241,239,226,.25); }
.step .n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--text); color: var(--bg); font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.step b { display: block; font-size: 14.5px; line-height: 1.3; }
.step span:not(.n) { font-size: 13px; color: var(--muted); }

/* оформление */
.form { padding: 8px 16px 0; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin: 0 0 7px 2px; letter-spacing: .02em; }
.field input, .field textarea {
  width: 100%; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  padding: 14px; font-size: 16px; outline: none; resize: none;
}
.field input:focus, .field textarea:focus { border-color: rgba(241,239,226,.45); }
.field.err input, .field.err textarea { border-color: var(--danger); }
.field .hint { font-size: 12px; color: var(--danger); margin: 6px 2px 0; display: none; }
.field.err .hint { display: block; }
.share-phone { margin-top: 8px; height: 40px; padding: 0 14px; border-radius: 12px; background: var(--surface-2); font-size: 13.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--surface); border: 1px solid var(--line); padding: 4px; border-radius: 14px; }
.seg button { height: 42px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--text); color: var(--bg); }
.summary { margin: 18px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; color: #d4d1c9; }
.summary div span:last-child { white-space: nowrap; }
.summary .tot { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; color: var(--text); font-weight: 800; font-size: 16px; }

/* успех */
.done { text-align: center; padding: 72px 24px 0; }
.done .mark { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 22px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; animation: pop .5s cubic-bezier(.3,1.6,.5,1); }
.done .mark svg { width: 44px; height: 44px; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.done h2 { font-family: var(--display); font-size: 30px; font-weight: 600; margin: 0 0 10px; }
.done p { color: #cfccc4; line-height: 1.55; margin: 0 auto 22px; max-width: 340px; }

/* своя кнопка, если открыто не в Telegram */
.mainbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; padding: 10px 16px calc(12px + var(--safe-b)); background: linear-gradient(transparent, var(--bg) 35%); display: none; }
.mainbar.on { display: block; }
.mainbar button { width: 100%; max-width: 720px; margin: 0 auto; display: block; height: 54px; border-radius: 16px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 16px; }
.in-tg .mainbar { display: none !important; }

.toast { position: fixed; left: 50%; bottom: calc(90px + var(--safe-b)); z-index: 90; transform: translate(-50%, 20px); opacity: 0; background: var(--text); color: var(--bg); padding: 11px 16px; border-radius: 14px; font-weight: 700; font-size: 14px; transition: .25s; pointer-events: none; white-space: nowrap; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
body:not(.paged) .toast { bottom: calc(100px + var(--safe-b)); }

/* нижнее меню: Главная · Разделы · Корзина · Менеджер (на страницах товара/корзины прячется) */
.tabbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); z-index: 45; height: 66px; max-width: 560px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(26,46,35,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.45); transition: transform .3s cubic-bezier(.3,.7,.3,1), opacity .3s; }
/* ❤️ избранное: сердечко на фото карточки и рядом с ценой на странице товара */
.fav { position: absolute; top: 9px; right: 9px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(19,35,27,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; transition: transform .15s; }
.fav svg { width: 18px; height: 18px; transition: fill .2s, color .2s; }
.fav:active { transform: scale(.88); }
.fav.on { color: #ff5a5f; }
.fav.on svg { fill: #ff5a5f; animation: favPop .35s; }
@keyframes favPop { 50% { transform: scale(1.3); } }
.fav.big { position: static; margin-left: auto; width: 44px; height: 44px; background: var(--surface); border: 1px solid var(--line); color: var(--text); backdrop-filter: none; }
.fav.big.on { color: #ff5a5f; }
.fav.big svg { width: 22px; height: 22px; }
.tile .heart, .sheet-cat .heart { display: grid; place-items: center; color: #ff5a5f; }
.tile .heart svg { width: 32px; height: 32px; fill: #ff5a5f; }
.sheet-cat .heart svg { width: 22px; height: 22px; fill: #ff5a5f; }

body.nav-hidden .tabbar { transform: translateY(calc(100% + 24px + var(--safe-b)));  /* листают вниз — меню плавно уезжает */
  transition: transform .7s cubic-bezier(.4, 0, .2, 1); }
body.nav-hidden:not(.paged) .toast { bottom: calc(24px + var(--safe-b)); }
body.paged .tabbar, body.intro-on .tabbar { transform: translateY(140%); opacity: 0; pointer-events: none; }
.tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: 11.5px; font-weight: 700; position: relative; }
.tabbar svg { width: 23px; height: 23px; position: relative; }
.tabbar span { position: relative; }
.tabbar button.on { color: var(--text); }
.tabbar button.on::before { content: ""; position: absolute; top: 7px; width: 46px; height: 32px; border-radius: 16px; background: rgba(195,208,187,.14); }
.tabbar i { position: absolute; top: 8px; left: 52%; min-width: 18px; height: 18px; border-radius: 9px; background: #5fd08a; color: #13231b; font-style: normal; font-size: 11px; font-weight: 800; display: none; place-items: center; padding: 0 5px; }
.tabbar i.on { display: grid; }

/* лист «Разделы» снизу */
.sheet { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .25s; }
.sheet-in { position: absolute; left: 0; right: 0; bottom: 0; max-width: 720px; margin: 0 auto; max-height: 78vh; overflow-y: auto; background: var(--surface);
  border-radius: 24px 24px 0 0; border-top: 1px solid var(--line); padding: 10px 16px calc(18px + var(--safe-b)); transform: translateY(100%); transition: transform .3s cubic-bezier(.3,.7,.3,1); }
.sheet.open { pointer-events: auto; }
.sheet.open .sheet-bg { opacity: 1; }
.sheet.open .sheet-in { transform: none; }
.sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: rgba(241,239,226,.25); margin: 0 auto 14px; }
.sheet h3 { font-family: var(--display); font-weight: 600; font-size: 26px; margin: 0 0 10px; }
.sheet-cat { width: 100%; display: flex; align-items: center; gap: 14px; padding: 9px 4px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 700; font-size: 15.5px; }
.sheet-cat:last-child { border-bottom: 0; }
.sheet-cat .im { width: 46px; height: 46px; border-radius: 50%; background: var(--photo-bg); overflow: hidden; display: grid; place-items: center; flex: none; font-size: 11px; font-weight: 800; color: var(--bg); }
.sheet-cat .im img { width: 100%; height: 100%; object-fit: contain; }
.sheet-cat .im svg { width: 22px; height: 22px; }
.sheet-cat em { margin-left: auto; font-style: normal; color: var(--muted); font-weight: 700; font-size: 13.5px; }
.sheet-cat.on { color: var(--sage-light); }
.skeleton { background: linear-gradient(90deg, var(--surface) 0, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); aspect-ratio: .72; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- интро: тёмно-зелёный фон, яркие буквы «зажигаются» на ударе баса (0.85 с) ---------- */
#intro { position: fixed; inset: 0; z-index: 200; overflow: hidden; cursor: pointer; }
.intro-bg { position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 44%, #15301f 0%, #0d1c14 55%, #07110b 100%); }
/* сияние за логотипом — раскрывается на ударе */
.intro-glow {
  position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(58% 34% at 50% 44%, rgba(70,150,102,.42) 0%, rgba(40,100,66,.15) 45%, transparent 75%);
}
.hit .intro-glow { animation: introGlow 1.4s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes introGlow { 0% { opacity: 0; transform: scale(.75); } 15% { opacity: 1; } 100% { opacity: .85; transform: scale(1); } }
/* едва заметная полоса света медленно проходит по фону — кадр «дышит» */
.intro-sweep {
  position: absolute; inset: -50%; transform: translateX(-60%);
  background: linear-gradient(115deg, transparent 43%, rgba(241,239,226,.05) 50%, transparent 57%);
}
.go .intro-sweep { animation: introSweep 3.4s ease-in-out forwards; }
@keyframes introSweep { to { transform: translateX(60%); } }

/* логотип: пропорции как на оригинале (линия 64% ширины слова, слоган 65%) */
.intro-c { --w: min(76vw, 340px); position: absolute; top: 40%; left: 50%; width: var(--w); margin-left: calc(var(--w) / -2); }
.intro-word { position: relative; aspect-ratio: 1077 / 252; }
/* Без CSS-фильтров (blur/brightness/drop-shadow) на буквах: на iPhone (WebKit) они превращают
   прозрачную часть картинки в белый прямоугольник. Свечение — отдельное световое пятно-градиент. */
.intro-word img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; }
/* буквы, тусклые, медленно стягиваются к центру… */
.go .intro-word img { animation: introGather .85s cubic-bezier(.2, .7, .3, 1) forwards; }  /* мягко подплывают и замедляются */
.go .intro-word img:nth-of-type(1) { --dx: -24%; }
.go .intro-word img:nth-of-type(2) { --dx: -8%; }
.go .intro-word img:nth-of-type(3) { --dx: 8%; }
.go .intro-word img:nth-of-type(4) { --dx: 24%; }
@keyframes introGather { 0% { opacity: 0; transform: translateX(var(--dx)) scale(.97); } 100% { opacity: .28; transform: none; } }
/* …и на ударе вспыхивают, волной слева направо */
.hit .intro-word img { animation: introIgnite 1s cubic-bezier(.2, .8, .2, 1) both; }
.hit .intro-word img:nth-of-type(2) { animation-delay: .045s; }
.hit .intro-word img:nth-of-type(3) { animation-delay: .09s; }
.hit .intro-word img:nth-of-type(4) { animation-delay: .135s; }
/* буквы после того как встали — неподвижны, меняется только яркость */
@keyframes introIgnite { 0% { opacity: .28; } 12% { opacity: 1; } 100% { opacity: 1; } }
/* световое пятно за буквами: яркая вспышка на ударе, потом мягкое свечение */
.intro-halo {
  position: absolute; left: -28%; right: -28%; top: -95%; bottom: -95%; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(255,250,232,.5) 0%, rgba(241,239,226,.16) 45%, rgba(241,239,226,0) 100%);
}
.hit .intro-halo { animation: introHalo 1.5s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes introHalo { 0% { opacity: 0; transform: scale(.55); } 10% { opacity: 1; transform: scale(1); } 100% { opacity: .38; transform: scale(1.12); } }
/* светящаяся линия из центра и слоган «шторкой» слева направо */
.intro-sub { transition: opacity .35s ease; }
.intro-line {
  width: 64.3%; height: 1px; margin: calc(var(--w) * .07) auto 0; transform: scaleX(0);
  background: linear-gradient(90deg, transparent, #cfe0c6 25%, #fff 50%, #cfe0c6 75%, transparent);
  box-shadow: 0 0 12px rgba(241,239,226,.5);
}
.hit .intro-line { animation: introLine .8s cubic-bezier(.65, 0, .35, 1) .35s forwards; }
@keyframes introLine { to { transform: scaleX(1); } }
.intro-tag {
  display: block; width: 65.5%; height: auto; margin: calc(var(--w) * .033) auto 0;
  filter: brightness(1.6); clip-path: inset(0 100% 0 0);
}
.hit .intro-tag { animation: introWipe .9s cubic-bezier(.65, 0, .35, 1) .65s forwards; }
@keyframes introWipe { to { clip-path: inset(0 0 0 0); } }

/* финал в два шага: 1) логотип улетает в шапку на зелёном фоне (позицию задаёт скрипт);
   2) только после приземления фон растворяется и открывает магазин — без «вспышки» светлой обложки */
#intro.out { pointer-events: none; }
#intro.out .intro-sub { opacity: 0; }
#intro.out .intro-word { transition: transform 1s cubic-bezier(.45, 0, .2, 1); }  /* спокойный полёт в шапку */
#intro.gone .intro-bg, #intro.gone .intro-glow, #intro.gone .intro-sweep, #intro.gone .intro-word { opacity: 0 !important; transition: opacity .45s ease; }
/* логотип в шапке скрыт, пока на его место летит логотип из интро — чтобы не было двух логотипов */
.logo img { transition: opacity .15s; }
body.intro-on .logo img { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  #intro *, #intro { animation-duration: .01s !important; animation-delay: 0s !important; transition-duration: .01s !important; }
}
/* обложка проявляется после интро */
