/* Витрина МАМИНО (shop.html). Сначала телефон: сетка 2 колонки, затем 3 (от 640px), 4 (от 900px), 5 (от 1120px).
   Цвета — только через токены ниже; светлая тема на :root, тёмная — по системе или по кнопке (data-theme). */

@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/onest-cyrillic-ext.woff2?v=1") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/onest-cyrillic.woff2?v=1") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/onest-latin-ext.woff2?v=1") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/onest-latin.woff2?v=1") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #F6F5F3; --surface: #FFFFFF; --tile: #F1EEEA; --ink: #1D1B19; --ink-2: #57534E; --muted: #79736C;
  --line: #ECE9E4; --line-strong: #DAD6CF;
  --brand: #B3261E; --brand-ink: #FFFFFF; --brand-soft: #FBEDEC; --brand-soft-ink: #8E1B15;
  --ok: #1F7A4D; --ok-soft: #E6F4EC; --warn: #8F5B00; --warn-soft: #FDF0D5;
  --shadow: 0 1px 2px rgba(29,27,25,.05), 0 6px 20px rgba(29,27,25,.06);
  --shadow-lift: 0 -8px 32px rgba(29,27,25,.14);
  --scrim: rgba(20,18,16,.42);
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 18px; --r-sm: 12px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #151413; --surface: #1F1D1B; --tile: #2A2724; --ink: #F3F1EE; --ink-2: #CFCAC3; --muted: #A39C94;
  --line: #2E2B28; --line-strong: #3D3935;
  --brand: #E0544A; --brand-ink: #1A0B09; --brand-soft: #3A1E1B; --brand-soft-ink: #F7B8B2;
  --ok: #5CC28E; --ok-soft: #173326; --warn: #E9B44C; --warn-soft: #36290F;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25); --shadow-lift: 0 -8px 32px rgba(0,0,0,.5);
  --scrim: rgba(0,0,0,.6); color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #151413; --surface: #1F1D1B; --tile: #2A2724; --ink: #F3F1EE; --ink-2: #CFCAC3; --muted: #A39C94;
  --line: #2E2B28; --line-strong: #3D3935;
  --brand: #E0544A; --brand-ink: #1A0B09; --brand-soft: #3A1E1B; --brand-soft-ink: #F7B8B2;
  --ok: #5CC28E; --ok-soft: #173326; --warn: #E9B44C; --warn-soft: #36290F;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25); --shadow-lift: 0 -8px 32px rgba(0,0,0,.5);
  --scrim: rgba(0,0,0,.6); color-scheme: dark }
/* Тема Папино: тот же интерфейс, синий акцент бренда. */
body.papino { --brand: #1D5FAD; --brand-soft: #E6F0FB; --brand-soft-ink: #164A87 }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.papino { --brand: #6EA8EE; --brand-soft: #182A40; --brand-soft-ink: #B9D5F7 } }
:root[data-theme="dark"] body.papino { --brand: #6EA8EE; --brand-soft: #182A40; --brand-soft-ink: #B9D5F7 }

* { box-sizing: border-box }
/* Android и iOS не увеличивают шрифты сами: размеры как задуманы. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100% }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.4 var(--font); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent }
body.locked { overflow: hidden }
button, input, textarea { font: inherit; color: inherit }
button { cursor: pointer; border: 0; background: none; padding: 0 }
img { display: block; max-width: 100% }
h1, h2, h3, p { margin: 0 }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px }
.num { font-variant-numeric: tabular-nums }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 16px }


/* Шапка */
.top { padding-block: 12px 4px; display: flex; align-items: center; gap: 10px }
.logo { height: 30px; width: auto; flex: none; border-radius: 6px }
.logo-papino { height: 34px; width: 34px; border-radius: 9px }
.city-chip { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); min-width: 0 }
.city-chip svg { flex: none; color: var(--brand) }
.city-chip b { font-weight: 600; white-space: nowrap }
.city-chip span { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.top .spacer { flex: 1 }
.theme-btn { width: 44px; height: 44px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--ink-2); flex: none }
.theme-btn svg { transition: transform .35s ease }
.theme-btn:active svg { transform: rotate(40deg) }
@media (prefers-reduced-motion: reduce) { .theme-btn svg { transition: none } }
.mode { display: flex; background: var(--tile); border-radius: 14px; padding: 3px; margin-top: 8px }
.mode button { flex: 1; min-height: 40px; padding: 0 12px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--ink-2) }
.mode button { border-radius: 11px }
.mode button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow) }
.mode-note { font-size: 13px; color: var(--muted); padding-block: 8px 6px }
.mode-note b { color: var(--ink-2); font-weight: 600 }

.install { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: var(--r); padding: 10px 10px 10px 14px; box-shadow: var(--shadow); margin-block: 6px 4px }
.install p { flex: 1; font-size: 13.5px; color: var(--ink-2); min-width: 0 }
.install p b { color: var(--ink); display: block; font-weight: 600; font-size: 14.5px }
.install .btn-sm { flex: none }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; color: var(--muted); flex: none }

/* Липкая полоса: поиск + бренды + категории */
.sticky { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); padding-block: 8px 6px; box-shadow: 0 6px 12px -12px rgba(0,0,0,.35) }
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 14px; padding-inline: 12px; height: 46px; box-shadow: var(--shadow) }
.search svg { color: var(--muted); flex: none }
.search input { border: 0; background: none; outline: none; flex: 1; min-width: 0; height: 100%; font-size: 16px }
.brands { display: flex; gap: 8px; margin-block: 10px 2px }
.brands button { flex: 1; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; background: var(--surface); font-weight: 600; font-size: 14.5px; color: var(--ink-2); border: 1.5px solid transparent }
.brands button img { width: 24px; height: 24px; border-radius: 6px }
.brands button[aria-pressed="true"] { border-color: var(--brand); color: var(--ink) }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 10px; padding-bottom: 2px; mask-image: linear-gradient(90deg, #000 88%, transparent) }
.chips::-webkit-scrollbar { display: none }
.chip { flex: none; min-height: 40px; padding: 0 14px 0 6px; border-radius: 999px; background: var(--surface); display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; color: var(--ink-2); white-space: nowrap }
.chip.text { padding-left: 14px }
.chip img { width: 28px; height: 28px; border-radius: 999px; object-fit: cover; background: var(--tile) }
.chip[aria-current="true"] { background: var(--ink); color: var(--bg) }

/* Разделы */
main { padding-bottom: 120px }
.section { scroll-margin-top: 190px; padding-top: 22px }
.section h2 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 12px; text-wrap: balance }
.section h2 small { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 6px }
.trust { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px }
.trust span { font-size: 12.5px; font-weight: 500; color: var(--ink-2); background: var(--surface); border-radius: 999px; padding: 6px 10px }

/* Сеты — горизонтальная лента */
.sets { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 340px); gap: 12px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; padding-bottom: 4px }
.sets::-webkit-scrollbar { display: none }
.set { scroll-snap-align: start; background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; text-align: left }
.set .ph { aspect-ratio: 16 / 9; background: var(--tile) }
.set .ph img { width: 100%; height: 100%; object-fit: cover }
.set .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1 }
.set .name { font-weight: 600; font-size: 16px }
.set .meta { font-size: 13px; color: var(--muted) }
.set .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px }
.set .price { font-weight: 700; font-size: 18px }

/* Сетка товаров */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)) } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px } }
@media (min-width: 1120px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)) } }
.card { background: var(--surface); border-radius: var(--r); padding: 8px 8px 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0 }
.card .ph { aspect-ratio: 4 / 3; border-radius: 12px; background: var(--tile); overflow: hidden; display: block; width: 100% }
.card .ph img { width: 100%; height: 100%; object-fit: cover }
.card .name { font-size: 14px; line-height: 1.3; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; text-align: left; padding-inline: 2px }
.card .weight { font-size: 13px; color: var(--muted); padding-inline: 2px; margin-top: -4px }
.card .foot { margin-top: auto }
.card.oos .ph img { opacity: .45 }
.badge { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 8px }
.badge.promo { background: var(--brand); color: var(--brand-ink) }
.badge.oos { background: var(--tile); color: var(--ink-2) }

/* Кнопка-цена и счётчик */
.buy { width: 100%; min-height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-soft-ink); font-weight: 600; display: flex; align-items: center; justify-content: space-between; padding-inline: 12px; font-size: 15px }
.buy svg { flex: none }
.buy:disabled { background: var(--tile); color: var(--muted); cursor: default; justify-content: center }
.buy s { color: var(--muted); font-weight: 500; font-size: 12.5px; margin-left: 4px }
.step { width: 100%; min-height: 44px; border-radius: 12px; background: var(--brand); color: var(--brand-ink); display: flex; align-items: center; justify-content: space-between; font-weight: 600 }
.step button { width: 44px; height: 44px; display: grid; place-items: center; color: inherit }
.step.sm { min-height: 38px; width: 118px; border-radius: 10px }
.step.sm button { width: 38px; height: 38px }

/* Нижняя панель корзины */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); pointer-events: none }
.cartbar .inner { pointer-events: auto; max-width: 560px; margin: 0 auto; background: var(--ink); color: var(--bg); border-radius: 20px; box-shadow: var(--shadow-lift); padding: 10px 10px 10px 16px; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left }
.cartbar .info { flex: 1; min-width: 0 }
.cartbar .t1 { font-weight: 600; font-size: 15px }
.cartbar .t2 { font-size: 12.5px; opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.cartbar .bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); margin-top: 6px; overflow: hidden }
:root[data-theme="dark"] .cartbar .bar { background: rgba(0,0,0,.18) }
.cartbar .bar i { display: block; height: 100%; background: var(--warn); border-radius: 4px; transition: width .3s }
.cartbar .bar i.done { background: var(--ok) }
.cartbar .sum { background: var(--brand); color: var(--brand-ink); border-radius: 14px; padding: 0 14px; min-height: 46px; display: flex; align-items: center; font-weight: 700; white-space: nowrap }

/* Экраны поверх: корзина, оформление, готово */
.layer { position: fixed; inset: 0; z-index: 50; background: var(--bg); overflow-y: auto; padding-top: env(safe-area-inset-top, 0px) }
.layer .head { position: sticky; top: 0; z-index: 2; background: var(--bg); display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 4px; max-width: 640px; margin: 0 auto }
.layer .head h1 { font-size: 19px; font-weight: 700; flex: 1 }
.layer .content { max-width: 640px; margin: 0 auto; padding: 4px 16px 140px; display: flex; flex-direction: column; gap: 14px }
.panel { background: var(--surface); border-radius: var(--r); padding: 14px }
.panel h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px }
.line { display: flex; gap: 12px; align-items: center; padding-block: 10px; border-top: 1px solid var(--line) }
.line:first-of-type { border-top: 0; padding-top: 0 }
.line .ph { width: 56px; height: 56px; border-radius: 10px; background: var(--tile); flex: none }
.line .ph { overflow: hidden }
.line .ph img { width: 100%; height: 100%; object-fit: cover }
.line .mid { flex: 1; min-width: 0 }
.line .mid b { font-weight: 500; font-size: 14px; display: block; line-height: 1.3 }
.line .mid span { font-size: 13px; color: var(--muted) }
.line .right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px }
.line .right b { font-weight: 600; white-space: nowrap }
.minbox { border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start }
.minbox.wait { background: var(--warn-soft); color: var(--warn) }
.minbox.ok { background: var(--ok-soft); color: var(--ok) }
.minbox svg { flex: none; margin-top: 1px }
.sugg { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 10px; overflow-x: auto; scrollbar-width: none; margin-top: 10px }
.sugg .card { background: var(--bg) }
.totals { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px }
.totals div { display: flex; justify-content: space-between; gap: 12px }
.totals .grand { font-size: 18px; font-weight: 700; padding-top: 6px; border-top: 1px solid var(--line); margin-top: 4px }
.cta-wrap { position: fixed; left: 0; right: 0; bottom: 0; z-index: 3; background: linear-gradient(transparent, var(--bg) 30%); padding: 18px 16px calc(12px + env(safe-area-inset-bottom, 0px)) }
.cta { display: flex; align-items: center; justify-content: center; gap: 10px; max-width: 608px; margin: 0 auto; width: 100%; min-height: 54px; border-radius: 16px; background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 16.5px; text-decoration: none }
.cta.ghost { background: var(--surface); color: var(--ink); box-shadow: var(--shadow) }
.cta[aria-disabled="true"] { background: var(--line-strong); color: var(--ink-2) }
.link { color: var(--brand); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center }

/* Форма */
.field { display: flex; flex-direction: column; gap: 6px }
.field + .field { margin-top: 12px }
.field label { font-size: 13.5px; font-weight: 500; color: var(--ink-2) }
.field input, .field textarea { border: 1.5px solid var(--line-strong); background: var(--surface); border-radius: 12px; min-height: 48px; padding: 10px 12px; font-size: 16px; outline: none; width: 100% }
.field textarea { min-height: 76px; resize: vertical }
.field input:focus, .field textarea:focus { border-color: var(--brand) }
.field.bad input, .field.bad textarea { border-color: var(--brand) }
.field .err { font-size: 13px; color: var(--brand); display: none }
.field.bad .err { display: block }
.readonly { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--tile); border-radius: 12px; padding: 4px 4px 4px 12px; min-height: 48px }
.pickup { display: flex; gap: 12px; align-items: flex-start }
.pickup svg { color: var(--brand); flex: none; margin-top: 2px }
.pickup p { font-size: 14px; color: var(--ink-2) }
.pickup b { color: var(--ink); font-weight: 600 }
.placeholder { background: var(--warn-soft); color: var(--warn); border-radius: 6px; padding: 0 5px }

/* Готово */
.done { text-align: center; padding-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 10px }
.done .mark { width: 72px; height: 72px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center }
.done h1 { font-size: 24px; font-weight: 700 }
.done .id { font-size: 14px; color: var(--muted) }
.done p { color: var(--ink-2); max-width: 34ch }

/* Нижний лист: товар, город */
.scrim { position: fixed; inset: 0; z-index: 60; background: var(--scrim); display: flex; align-items: flex-end; justify-content: center }
.sheet { background: var(--surface); width: 100%; max-width: 560px; max-height: 92%; overflow-y: auto; border-radius: 24px 24px 0 0; padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px)); animation: up .22s ease-out }
@media (min-width: 640px) { .scrim { align-items: center } .sheet { border-radius: 24px } }
@keyframes up { from { transform: translateY(24px); opacity: .6 } to { transform: none; opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none } .cartbar .bar i { transition: none } }
.grab { width: 40px; height: 5px; border-radius: 5px; background: var(--line-strong); margin: 4px auto 10px }
.sheet .big { aspect-ratio: 4 / 3; background: var(--tile); border-radius: 16px; overflow: hidden }
.sheet .big img { width: 100%; height: 100%; object-fit: cover }
.sheet .big.cover img { object-fit: cover; padding: 0 }
.sheet h2 { font-size: 20px; font-weight: 700; margin-top: 14px; text-wrap: balance }
.sheet .sub { color: var(--muted); font-size: 14px; margin-top: 2px }
.sheet .desc { color: var(--ink-2); font-size: 14.5px; margin-top: 10px }
.contents { margin: 12px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line) }
.contents li { display: flex; justify-content: space-between; gap: 12px; padding-block: 9px; border-bottom: 1px solid var(--line); font-size: 14px }
.contents li span { color: var(--muted); white-space: nowrap }
.sheet .actions { margin-top: 16px }
.city { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; padding-inline: 4px; border-bottom: 1px solid var(--line); text-align: left; font-size: 16px }
.city small { color: var(--muted); font-size: 13px; display: block }
.city svg { color: var(--brand) }
.warnline { background: var(--warn-soft); color: var(--warn); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin-bottom: 8px }
.btn-sm { min-height: 40px; padding: 0 14px; border-radius: 12px; background: var(--brand); color: var(--brand-ink); font-weight: 600; font-size: 14px }
.empty { text-align: center; color: var(--muted); padding: 40px 16px }

.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 90; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow-lift); max-width: calc(100% - 32px); text-align: center }

/* ---------- Состояния загрузки и ошибок ---------- */
.skeleton .ph, .skeleton .bar-s { background: var(--tile); border-radius: 12px; animation: pulse 1.2s ease-in-out infinite }
.skeleton .bar-s { height: 14px; margin-top: 8px }
.skeleton .bar-s.short { width: 60% }
@keyframes pulse { 50% { opacity: .55 } }
@media (prefers-reduced-motion: reduce) { .skeleton .ph, .skeleton .bar-s { animation: none } }
.state { text-align: center; padding: 48px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px }
.state h2 { font-size: 20px; font-weight: 700 }
.state p { color: var(--ink-2); max-width: 34ch }
.letter { width: 100%; height: 100%; display: grid; place-items: center; font-size: 34px; font-weight: 700; color: var(--brand) }
.send-error { background: var(--brand-soft); color: var(--brand-soft-ink); border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px }
.steps { margin: 8px 0 0; padding-left: 20px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px }
.cta.sending { opacity: .75; pointer-events: none }
noscript p { padding: 24px 16px; text-align: center }

/* ---------- Инфо-страницы: about, contacts, help, wholesale, partners, privacy (body.about) ---------- */
.about main { padding-bottom: 48px }
.about .top .catalog-link { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-weight: 600; text-decoration: none; white-space: nowrap }
.a-hero { display: grid; gap: 18px; padding-top: 16px }
@media (min-width: 820px) { .a-hero { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding-top: 32px } }
.a-hero .eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand) }
.a-hero h1 { font-size: clamp(30px, 7vw, 46px); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; text-wrap: balance }
.a-hero p { color: var(--ink-2); font-size: 16.5px; line-height: 1.55; margin-top: 12px; max-width: 60ch }
.a-hero .ph { border-radius: 24px; overflow: hidden; background: var(--tile); aspect-ratio: 4 / 5; max-height: 520px }
.a-hero .ph img { width: 100%; height: 100%; object-fit: cover }
.a-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px }
.a-actions .cta { width: auto; padding-inline: 22px; min-height: 50px; margin: 0 }
.a-section { padding-top: 44px }
.a-section > h2 { font-size: clamp(22px, 5vw, 30px); font-weight: 700; letter-spacing: -.01em; text-wrap: balance }
.a-section > .lead { color: var(--ink-2); margin-top: 8px; max-width: 62ch; font-size: 15.5px; line-height: 1.55 }
.a-cards { display: grid; gap: 12px; margin-top: 18px; grid-template-columns: repeat(1, minmax(0, 1fr)) }
@media (min-width: 640px) { .a-cards { grid-template-columns: repeat(3, minmax(0, 1fr)) } }
.a-card { background: var(--surface); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 8px }
.a-card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-soft-ink); display: grid; place-items: center }
.a-card h3 { font-size: 16.5px; font-weight: 600 }
.a-card p { color: var(--ink-2); font-size: 14.5px; line-height: 1.5 }
.a-products { display: grid; gap: 12px; margin-top: 18px; grid-template-columns: repeat(1, minmax(0, 1fr)) }
@media (min-width: 640px) { .a-products { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (min-width: 1000px) { .a-products { grid-template-columns: repeat(3, minmax(0, 1fr)) } }
.a-product { background: var(--surface); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit }
.a-product .ph { aspect-ratio: 16 / 9; background: var(--tile) }
.a-product .ph img { width: 100%; height: 100%; object-fit: cover }
.a-product .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1 }
.a-product h3 { font-size: 17px; font-weight: 600 }
.a-product p { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; flex: 1 }
.a-product .more { color: var(--brand); font-weight: 600; font-size: 14.5px; margin-top: 4px }
.a-quotes { display: grid; gap: 12px; margin-top: 18px; grid-template-columns: repeat(1, minmax(0, 1fr)) }
@media (min-width: 640px) { .a-quotes { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
.a-quote { background: var(--surface); border-radius: var(--r); padding: 18px; margin: 0 }
.a-quote p { font-size: 15.5px; line-height: 1.55 }
.a-quote footer { color: var(--muted); font-size: 14px; margin-top: 10px }
.a-band { background: var(--surface); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 12px; margin-top: 18px }
@media (min-width: 820px) { .a-band { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px 32px } }
.a-band h3 { font-size: 19px; font-weight: 700 }
.a-band p { color: var(--ink-2); margin-top: 4px; max-width: 56ch }
.a-band .cta { width: auto; padding-inline: 22px; margin: 0; flex: none }
.a-contacts { display: grid; gap: 12px; margin-top: 18px; grid-template-columns: repeat(1, minmax(0, 1fr)) }
@media (min-width: 640px) { .a-contacts { grid-template-columns: repeat(3, minmax(0, 1fr)) } }
.a-contact { background: var(--surface); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 6px }
.a-contact .label { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted) }
.a-contact a, .a-contact b { font-size: 17px; font-weight: 600; color: var(--ink); text-decoration: none; user-select: all }
.a-contact a:hover { color: var(--brand) }
.a-contact span { color: var(--ink-2); font-size: 14px }
.a-social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px }
.a-social a { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 500; text-decoration: none }
.a-social a:hover { color: var(--brand) }
.a-foot { margin-top: 48px; padding-block: 20px 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; align-items: center }
.a-foot a { color: var(--muted) }
.a-foot nav { display: flex; flex-wrap: wrap; gap: 0 16px; width: 100% }
.a-foot nav a { min-height: 40px; display: inline-flex; align-items: center; color: var(--ink-2); text-decoration: none; font-weight: 500 }
.a-foot nav a:hover { color: var(--brand) }
/* навигация между инфо-страницами под шапкой */
.info-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 8px 2px; margin-inline: -16px; padding-inline: 16px }
.info-nav::-webkit-scrollbar { display: none }
.info-nav a { flex: none; min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; background: var(--surface); color: var(--ink-2); font-weight: 500; font-size: 14.5px; text-decoration: none; white-space: nowrap }
.info-nav a:hover { color: var(--brand) }
.info-nav a[aria-current="page"] { background: var(--ink); color: var(--bg) }
.crumbs { font-size: 13.5px; color: var(--muted); padding-top: 14px }
.crumbs a { color: var(--muted) }
/* короткий заголовок страницы без фото */
.a-head { padding-top: 10px; max-width: 760px }
.a-head h1 { font-size: clamp(28px, 6.4vw, 42px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; text-wrap: balance }
.a-head .eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-top: 8px }
.a-head p { color: var(--ink-2); font-size: 16.5px; line-height: 1.55; margin-top: 12px; max-width: 62ch }
.a-head .a-actions { margin-top: 18px }
/* шаги 1-2-3 */
.a-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(1, minmax(0, 1fr)); counter-reset: step }
@media (min-width: 640px) { .a-steps { grid-template-columns: repeat(3, minmax(0, 1fr)) } }
.a-steps li { background: var(--surface); border-radius: var(--r); padding: 18px; counter-increment: step; display: flex; flex-direction: column; gap: 6px }
.a-steps li::before { content: counter(step); width: 36px; height: 36px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; margin-bottom: 4px }
.a-steps b { font-size: 16.5px }
.a-steps span { color: var(--ink-2); font-size: 14.5px; line-height: 1.5 }
/* вопросы и ответы */
.a-faq { margin-top: 18px; display: grid; gap: 8px; max-width: 820px }
.a-faq details { background: var(--surface); border-radius: var(--r-sm) }
.a-faq summary { list-style: none; cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 600; font-size: 15.5px; position: relative; min-height: 48px }
.a-faq summary::-webkit-details-marker { display: none }
.a-faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--muted) }
.a-faq details[open] summary::after { content: "−" }
.a-faq .ans { padding: 0 16px 16px; color: var(--ink-2); font-size: 15px; line-height: 1.55 }
.a-faq .ans p + p { margin-top: 8px }
.a-faq .ans a, .a-prose a, .a-card a, .a-contact span a { color: var(--brand) }
/* плашки-ссылки на другие страницы */
.a-links { display: grid; gap: 12px; margin-top: 18px; grid-template-columns: repeat(1, minmax(0, 1fr)) }
@media (min-width: 640px) { .a-links { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (min-width: 1000px) { .a-links { grid-template-columns: repeat(4, minmax(0, 1fr)) } }
.a-link { background: var(--surface); border-radius: var(--r); padding: 16px 18px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 4px }
.a-link b { font-size: 16px }
.a-link span { color: var(--ink-2); font-size: 14px; line-height: 1.45 }
.a-link:hover b { color: var(--brand) }
/* города партнёров */
.a-cities { display: grid; gap: 10px; margin-top: 18px; grid-template-columns: repeat(1, minmax(0, 1fr)) }
@media (min-width: 640px) { .a-cities { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (min-width: 1000px) { .a-cities { grid-template-columns: repeat(3, minmax(0, 1fr)) } }
.a-city { background: var(--surface); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px }
.a-city h3 { font-size: 17px; font-weight: 600 }
.a-city .tag { font-size: 12.5px; color: var(--muted) }
.a-city .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px }
.a-city .row a { min-height: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-soft-ink); font-weight: 600; font-size: 14px; text-decoration: none }
.a-city .row a.alt { background: var(--tile); color: var(--ink) }
.a-cities .empty { color: var(--muted) }
/* текст политики и справки */
.a-prose { max-width: 760px; margin-top: 12px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6 }
.a-prose h2 { color: var(--ink); font-size: 20px; font-weight: 700; margin-top: 32px }
.a-prose p, .a-prose ul { margin: 10px 0 0 }
.a-prose ul { padding-left: 20px }
.a-prose li + li { margin-top: 4px }
.a-prose b { color: var(--ink) }
.a-note { background: var(--warn-soft); color: var(--ink); border-radius: var(--r-sm); padding: 12px 14px; font-size: 14.5px; margin-top: 14px; max-width: 760px }
/* строка согласия в оформлении заказа */
.consent { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: -8px }
.consent a { color: var(--muted); text-decoration: underline }

/* Подвал витрины: ссылки на страницу о компании */
.shop-foot { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 18px }
.shop-foot a { color: var(--ink-2); font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none }
.shop-foot a:hover { color: var(--brand) }
