/* v6: transform/opacity; page p-* */
@layer legacy-v3;

/* ── fonts ── */
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/manrope-cyrillic.e58febde317b.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/manrope-latin.938c6e8019b6.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, 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;
}

/* ── tokens ── */
:root {
  --mf-ink: #1A1C1A;
  --mf-yellow: #FCFA57;
  --mf-bg: #F3F3EE;
  --mf-surface: #FFFFFF;
  --mf-brand-grey: #ECEBE2;
  --mf-track: #E7E7E0;
  --mf-muted: #5C5F58;
  --mf-muted-on-grey: #5B5A51;
  --mf-line: #ECECE6;
  --mf-border: #E6E6E0;
  --mf-wave-line: #D9D8CE;
  --mf-toggle-off: #DADAD3;
  --mf-overlay: rgba(26, 28, 26, .45);
  --mf-footer: #1A1C1A;
  --mf-footer-muted: #A3A79C;
  --mf-water: #7A7E74;

  --mf-status-wait-bg: #FBE9CC;  --mf-status-wait-fg: #7A4A0B;
  --mf-status-ok-bg:   #E1EFD9;  --mf-status-ok-fg:   #2E5A1E;
  --mf-online: #3BAA4A;
  --mf-danger: #B84545;  --mf-danger-soft: #FCE7E5;

  --mf-font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mf-h1: 800 28px/1.05 var(--mf-font);
  --mf-h2: 800 20px/1.2 var(--mf-font);
  --mf-h3: 700 18px/1.25 var(--mf-font);
  --mf-sheet-title: 800 22px/1.2 var(--mf-font);
  --mf-title: 600 16px/1.3 var(--mf-font);
  --mf-body: 400 15px/1.5 var(--mf-font);
  --mf-small: 400 13px/1.4 var(--mf-font);
  --mf-micro: 600 11px/1.2 var(--mf-font);
  --mf-price: 800 17px/1.2 var(--mf-font);
  --mf-price-big: 800 24px/1.1 var(--mf-font);
  --mf-tracking-h1: -0.045em;
  --mf-tracking-h2: -0.035em;

  --mf-gutter: 16px;
  --mf-section-gap: 28px;
  --mf-block-gap: 12px;
  --mf-grid-gap-x: 12px;
  --mf-grid-gap-y: 20px;

  --mf-r-block: 20px;
  --mf-r-promo: 22px;
  --mf-r-sheet: 24px;
  --mf-r-image: 16px;
  --mf-r-button: 14px;
  --mf-r-control: 12px;
  --mf-r-chip: 10px;
  --mf-r-badge: 7px;

  --mf-screen-w: 390px;
  --mf-topbar-h: 56px;
  --mf-nav-h: 84px;
  --mf-btn-h: 52px;
  --mf-btn-h-md: 44px;
  --mf-btn-h-sm: 36px;
  --mf-input-h: 48px;
  --mf-toggle-w: 48px; --mf-toggle-h: 28px;

  --mf-pc-container: 1264px;
  --mf-pc-header-h: 76px;
  --mf-pc-section-gap: 32px;
  --mf-pc-grid-gap: 28px 20px;
  --mf-pc-side-w: 280px;
  --mf-pc-modal-w: 480px;
  --mf-r-modal: 24px;
  --mf-r-card: 20px;
  --mf-r-hero: 28px;
}
@media (min-width: 1024px) {
  :root { --mf-h1: 800 36px/1.05 var(--mf-font); --mf-h2: 800 24px/1.2 var(--mf-font); }
}

/* ── base ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mf-bg); color: var(--mf-ink); font: var(--mf-body); -webkit-font-smoothing: antialiased; }
/* Avoid a second body scroll container on iOS. */
@supports (overflow: clip) { body { overflow-x: clip; } }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--mf-ink); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--mf-ink); color: var(--mf-surface); padding: 10px 16px; border-radius: var(--mf-r-control); }
.skip-link:focus { top: 12px; }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic--fill { fill: currentColor; }
.wrap { width: 100%; max-width: var(--mf-pc-container); margin: 0 auto; padding: 0 var(--mf-gutter); }
@media (min-width: 1024px) { .wrap { padding: 0 32px; } }
.h1 { margin: 0; font: var(--mf-h1); letter-spacing: var(--mf-tracking-h1); }
.h2 { margin: 0; font: var(--mf-h2); letter-spacing: var(--mf-tracking-h2); }
.h3 { margin: 0; font: var(--mf-h3); letter-spacing: -.02em; }
.muted { color: var(--mf-muted); }
.small { font-size: 13px; }

.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mf-muted); }

/* ── primitives ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--mf-surface); height: var(--mf-btn-h); min-height: 0; padding: 0 24px; border: 0; border-radius: var(--mf-r-button); font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn--md { height: var(--mf-btn-h-md); border-radius: var(--mf-r-control); font-size: 15px; padding: 0 18px; }
.btn--sm { height: var(--mf-btn-h-sm); border-radius: var(--mf-r-chip); font-size: 14px; padding: 0 14px; }
.btn--block { width: 100%; }
.btn--dark { background: var(--mf-ink); color: var(--mf-surface); }
.btn--grey { background: var(--mf-brand-grey); color: var(--mf-ink); }
.btn--white { background: var(--mf-surface); color: var(--mf-ink); }
.btn--yellow { background: var(--mf-yellow); color: var(--mf-ink); font-weight: 700; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: default; }

.chip { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 16px; border: 0; border-radius: 11px; background: var(--mf-bg); font-size: 14px; font-weight: 500; color: var(--mf-ink); text-decoration: none; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--mf-yellow); font-weight: 700; }
.tabs { display: inline-flex; padding: 3px; border-radius: var(--mf-r-control); background: var(--mf-track); }
.tab { height: 36px; padding: 0 18px; border: 0; border-radius: var(--mf-r-chip); background: transparent; font-size: 14px; font-weight: 500; color: var(--mf-muted); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--mf-surface); color: var(--mf-ink); font-weight: 600; }

.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: var(--mf-r-badge); font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge--yellow { background: var(--mf-yellow); }
.badge--wait { background: var(--mf-status-wait-bg); color: var(--mf-status-wait-fg); font-weight: 600; }
.badge--ok { background: var(--mf-status-ok-bg); color: var(--mf-status-ok-fg); font-weight: 600; }
.badge--white { background: var(--mf-surface); font-weight: 600; }

.block { background: var(--mf-surface); border-radius: var(--mf-r-block); }

.input { display: block; width: 100%; height: var(--mf-input-h); min-height: 0; padding: 0 14px; border: 0; border-radius: var(--mf-r-control); background: var(--mf-bg); font-size: 15px; color: var(--mf-ink); box-shadow: none; }
textarea.input { height: auto; min-height: 110px; padding: 12px 14px; }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--mf-ink); }
.field { display: flex; flex-direction: column; gap: 8px; margin: 0; font-size: 14px; font-weight: 600; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; font-size: 15px; }
.rows > * { border-bottom: 1px solid var(--mf-line); }
.rows > *:last-child { border-bottom: 0; }

.switch { appearance: none; -webkit-appearance: none; position: relative; flex: none; display: inline-block; width: var(--mf-toggle-w); height: var(--mf-toggle-h); margin: 0; border: 0; border-radius: 14px; background: var(--mf-toggle-off); cursor: pointer; vertical-align: middle; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--mf-surface); box-shadow: none; transform: none; opacity: 1; }
.switch { transition: none; }
.switch::after { transition: transform .15s; }
.switch:checked { background: var(--mf-yellow); }
.switch:checked::after { transform: translateX(20px); box-shadow: 0 1px 3px rgba(26, 28, 26, .25); }
.switch:disabled { opacity: .45; }

/* сетки карточек (§4.2) */
.grid-cards, .grid-cards--side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--mf-grid-gap-y) var(--mf-grid-gap-x); }
@media (min-width: 1024px) {
  .grid-cards, .grid-cards--side { gap: 28px 20px; }
  .grid-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-cards--side, .prof__main .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .grid-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .grid-cards--side, .prof__main .grid-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* шторка и окно: один компонент (§4.4) */
.dlg { width: 100%; max-width: 100%; max-height: calc(100dvh - 24px); margin: auto 0 0; padding: 0 0 env(safe-area-inset-bottom); border: 0; border-radius: var(--mf-r-sheet) var(--mf-r-sheet) 0 0; background: var(--mf-surface); color: var(--mf-ink); box-shadow: none; overflow: auto; overscroll-behavior: contain; }
.dlg::backdrop { background: var(--mf-overlay); }
.dlg[open] { animation: mfSheetIn .25s ease-out; }
.dlg__in { position: relative; padding: 24px var(--mf-gutter) 20px; display: flex; flex-direction: column; gap: 18px; }
.dlg__handle { width: 40px; height: 4px; margin: 0 auto -6px; border-radius: 2px; background: var(--mf-track); }
.dlg__title { margin: 0; padding-right: 44px; font: var(--mf-sheet-title); letter-spacing: -.03em; }
.ic-btn.dlg__close { position: absolute; right: var(--mf-gutter); top: 16px; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--mf-brand-grey); cursor: pointer; } /* двойной класс: .ic-btn ниже по каскаду снимал серый круг */
.dlg__text { margin: 0; color: var(--mf-muted); }
.dlg__actions { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.dlg__actions > * { min-width: 0; }
.paybtns { display: grid; gap: 8px; } /* SBP and USDT, one under the other (ADR-064) */
.dlg__pay { margin-top: 20px; }
.dlg-loading { display: grid; place-items: center; min-height: 160px; color: var(--mf-muted); }
@media (min-width: 1024px) {
  /* the PC mockups pin a modal 150 px from the top (the tall tariff one 110 px); a short window lifts it to 24 px */
  .dlg { --dlg-top: clamp(24px, calc(100dvh - 750px), 150px); width: var(--mf-pc-modal-w); max-width: calc(100% - 32px); max-height: calc(100dvh - var(--dlg-top) - 24px); margin: var(--dlg-top) auto auto; padding-bottom: 0; border-radius: var(--mf-r-modal); box-shadow: 0 24px 60px -20px rgba(26, 28, 26, .35); }
  .dlg[open] { animation: mfFadeIn .2s ease-out; }
  .dlg__in { padding: 24px; }
  .dlg__handle { display: none; }
  .dlg--wide { width: 720px; }
  [id^="dlg-plan-"] { --dlg-top: clamp(24px, calc(100dvh - 790px), 110px); }
}

/* карточка товара (ADR-048; §4.7) */
.pc { position: relative; display: flex; flex-direction: column; min-width: 0; background: transparent; border: 0; border-radius: 0; overflow: visible; }
.pc__photo { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--mf-r-image); background: var(--mf-brand-grey); }
.pc__photo img { width: 100%; height: 100%; object-fit: cover; }
.pc:hover .pc__photo img { transform: none; }
.pc__body { display: flex; flex-direction: column; flex: 1; padding: 10px 0 0; }
.pc__meta { margin: 0 0 2px; font-size: 12px; line-height: 1.3; color: var(--mf-muted); }
.pc__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; height: 40px; min-height: 0; margin: 0; font-size: 14px; font-weight: 500; line-height: 20px; text-decoration: none; }
.pc__title:hover { text-decoration: none; }
.pc__bottom { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; }
.pc__price { margin-right: auto; font: var(--mf-price); letter-spacing: -.02em; white-space: nowrap; }
.pc__price s { margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--mf-muted); }
.pc__wait { animation: mfPulse 1.4s ease-in-out infinite; }
.pc--gone .pc__photo { filter: grayscale(1); opacity: .6; }
.pc--gone { opacity: 1; }
@media (min-width: 1024px) {
  .pc__title { height: 42px; font-size: 15px; line-height: 21px; }
  .pc__price { font-size: 19px; }
}
.act { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; padding: 0; border: 0; border-radius: 50%; background: var(--mf-bg); color: var(--mf-ink); text-decoration: none; cursor: pointer; }
.act:hover { background: var(--mf-brand-grey); }
.act[aria-pressed="true"] .ic, .pd__fav[aria-pressed="true"] .ic { fill: var(--mf-yellow); stroke: var(--mf-ink); }
.act[aria-busy="true"] { opacity: .5; }
.ic-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--mf-ink); text-decoration: none; cursor: pointer; }
.ic-btn:hover { background: var(--mf-bg); }

/* уведомления */
/* toast: bottom centre on a phone, bottom right on a PC */
.toasts { position: fixed; z-index: 60; left: 50%; bottom: 16px; transform: translateX(-50%); display: grid; gap: 8px; width: min(360px, calc(100% - 2 * var(--mf-gutter))); pointer-events: none; }
@media (min-width: 1024px) { .toasts { left: auto; right: 24px; bottom: 24px; transform: none; } }
.toast { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 6px 6px 12px; border: 1px solid var(--mf-border); border-radius: var(--mf-r-control); background: var(--mf-surface); color: var(--mf-ink); box-shadow: 0 10px 28px -12px rgb(26 28 26 / 30%); pointer-events: auto; font-size: 14px; animation: mfToastIn .18s ease-out; }
.toast__ic { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--mf-yellow); }
.toast__ic .ic, .toast__close .ic { width: 15px; height: 15px; stroke-width: 2.4; }
.toast--error { border-color: var(--mf-danger); }
.toast--error .toast__ic { background: var(--mf-danger-soft); color: var(--mf-danger); }
.toast__text { flex: 1; min-width: 0; }
.toast__action, .toast__close { flex: none; padding: 6px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.toast__close { display: grid; color: var(--mf-muted); }
.toast__close:hover { background: var(--mf-bg); }

/* продающий блок (PromoBlock стайлгайда) */
.promo { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--mf-r-block); background: var(--mf-brand-grey); color: var(--mf-ink); }
.promo__head { display: flex; align-items: center; justify-content: space-between; }
.promo__ic { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--mf-r-control); background: var(--mf-yellow); }
.promo__title { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.promo__text { font-size: 13px; line-height: 1.45; color: var(--mf-muted-on-grey); }
.promo .btn { width: 100%; }

/* логотип и волна (§4.8) */
.logo { display: inline-flex; align-items: baseline; gap: 2px; font-weight: 800; letter-spacing: -.055em; text-decoration: none; }
.logo__dot { display: inline-block; width: .3em; height: .3em; border-radius: 50%; background: var(--mf-yellow); transform-origin: 50% 100%; animation: mfJump 1.8s infinite; }
.wave { position: absolute; left: 0; right: 0; top: 100%; height: 12px; overflow: hidden; pointer-events: none; }
.wave::before { content: ""; position: absolute; inset: 0 -48px 0 0; background: url("mf/wave.368dcb24ae80.svg") repeat-x 0 0 / 48px 12px; animation: mfWaveBar 3.5s linear infinite; }

/* ── p-home ── */
/* главная, каталог, поиск, фильтры, подсказки, окно «Поиск по фото» (экраны 01…02.3) */
.page--home { padding-block: 16px 28px; }
@media (max-width: 1023.98px) { .only-lg { display: none !important; } }
@media (min-width: 1024px) { .only-sm { display: none !important; } .page--home { padding-block: 32px 72px; } }
.page-title { margin: 8px 0 0; }
.page-sub { margin: 4px 0 0; color: var(--mf-muted); font-size: 15px; }
.home-sec { margin-top: var(--mf-section-gap); }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-head .btn--sm { height: 32px; padding: 0 10px 0 12px; gap: 4px; border-radius: var(--mf-r-chip); font-size: 13px; font-weight: 600; }
.sec-head .ic-sm, .chip-btn .ic-sm, .slide .ic-sm { width: 16px; height: 16px; }
.sec-head__all { display: none; }
@media (min-width: 1024px) {
  .home-sec { margin-top: 48px; }
  .sec-head { margin-bottom: 18px; }
  .sec-head .h2 { font-size: 24px; }
  .sec-head .btn--sm { height: 36px; padding: 0 12px 0 14px; }
  .sec-head__all { display: inline; } .sec-head__short { display: none; }
}

/* баннеры: карусель на scroll-snap, на ПК рядом две карточки */
.home-top { display: grid; gap: 10px; }
.slides { position: relative; min-width: 0; }
.slides__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--mf-r-block); }
.slides__track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: space-between; height: 180px; padding: 20px; overflow: hidden; border-radius: var(--mf-r-block); background: var(--mf-brand-grey); }
.slide--hero { background: var(--mf-yellow); }
.slide--white { background: var(--mf-surface); }
.slide__txt { position: relative; display: flex; flex-direction: column; gap: 6px; max-width: 190px; }
.slide h1, .slide h2 { margin: 0; font-size: 24px; line-height: 1.04; font-weight: 900; letter-spacing: -.045em; }
.slide h1 { font-size: 27px; line-height: 1.02; }
.slide p { margin: 0; font-size: 13px; line-height: 1.4; color: #34372A; }
.slide--grey p, .slide--white p { color: var(--mf-muted-on-grey); }
.slide__foot { position: relative; display: flex; align-items: center; gap: 28px; }
.slide .btn { height: 40px; padding: 0 16px; border-radius: var(--mf-r-control); font-size: 14px; }
.slide:not(:first-child) .btn { padding: 0 14px; }
.slide .dots { display: none; }
.slide__art { position: absolute; right: 0; bottom: 0; width: 150px; height: 180px; object-fit: cover; object-position: center bottom; }
.slide__pic { position: absolute; object-fit: cover; border: 3px solid var(--mf-surface); border-radius: 14px; box-shadow: 0 6px 16px rgba(26, 28, 26, .12); }
.slide__pic--a { right: 18px; top: 16px; width: 92px; height: 92px; transform: rotate(6deg); }
.slide__pic--b { right: 70px; bottom: 14px; width: 96px; height: 96px; transform: rotate(-7deg); }
.slide__pic--ring { right: 20px; bottom: 18px; width: 120px; height: 120px; border-radius: 16px; transform: rotate(4deg); }
.slide__tag { position: absolute; right: 26px; top: 16px; z-index: 1; display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 9px; background: var(--mf-surface); font-size: 11px; font-weight: 700; }
.slide__tg { position: absolute; right: 14px; top: 22px; display: flex; flex-direction: column; gap: 8px; width: 150px; padding: 10px; border-radius: 16px; background: var(--mf-bg); transform: rotate(3deg); font-size: 11px; line-height: 1.35; }
.slide__tg p { margin: 0; font-size: 11px; color: var(--mf-ink); }
.slide__tg-head { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.slide__tg-ic { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--mf-yellow); }
.slide__tg-ic .ic { width: 12px; height: 12px; }
.slide__tg-item { display: flex; align-items: center; gap: 6px; padding: 5px; border-radius: 10px; background: var(--mf-surface); font-size: 10px; line-height: 1.25; font-weight: 600; }
.slide__tg-item img { width: 30px; height: 30px; flex: none; border-radius: 7px; object-fit: cover; }
.slide__tg-item b { font-weight: 700; }
.dots { display: flex; gap: 6px; }
.dots__d { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: #CDCDC6; }
.dots__d[aria-current="true"] { width: 18px; background: var(--mf-ink); }
.slides__dots--out { display: flex; justify-content: center; margin-top: 10px; }
.slides__track:focus-visible { outline: 2px solid var(--mf-ink); outline-offset: 2px; }
.home-side { display: none; }
@media (min-width: 1024px) {
  .home-top { grid-template-columns: 2fr 1fr; gap: 20px; }
  .slides__track { border-radius: var(--mf-r-hero); }
  .slide { height: 380px; padding: 48px; border-radius: var(--mf-r-hero); }
  .slide__txt { gap: 14px; max-width: 420px; }
  .slide h1 { font-size: 56px; line-height: .98; letter-spacing: -.05em; }
  .slide h2 { font-size: 48px; line-height: 1; letter-spacing: -.05em; }
  .slide p { font-size: 17px; }
  .slide .btn { height: 44px; padding: 0 24px; font-size: 15px; }
  .slide .dots { display: flex; margin-right: 8px; }
  .slide .dots__d { background: rgba(26, 28, 26, .25); }
  .slide .dots__d[aria-current="true"] { background: var(--mf-ink); }
  .slides__dots--out { display: none; }
  .slide__art { right: 40px; width: auto; height: 360px; }
  .slide__pic { border-width: 4px; border-radius: 20px; }
  .slide__pic--a { right: 40px; top: 70px; width: 190px; height: 190px; }
  .slide__pic--b { right: 230px; top: 50px; bottom: auto; width: 200px; height: 200px; }
  .slide__pic--ring { right: 40px; top: 50px; bottom: auto; width: 280px; height: 280px; border-radius: 24px; }
  .slide__tag { right: auto; left: 55%; top: 50px; height: 34px; font-size: 14px; }
  .slide__tg { right: 40px; top: 60px; width: 330px; padding: 16px; gap: 12px; font-size: 14px; border-radius: 22px; }
  .slide__tg p { font-size: 14px; }
  .slide__tg-ic { width: 32px; height: 32px; } .slide__tg-ic .ic { width: 16px; height: 16px; }
  .slide__tg-item { gap: 12px; padding: 10px; border-radius: 14px; font-size: 15px; }
  .slide__tg-item img { width: 56px; height: 56px; border-radius: 10px; }
  .home-side { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }
  .side-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; overflow: hidden; border-radius: 24px; color: var(--mf-ink); text-decoration: none; }
  .side-card--grey { background: var(--mf-brand-grey); }
  .side-card--white { background: var(--mf-surface); }
  .side-card img { position: absolute; right: 18px; top: 18px; width: 104px; height: 104px; border: 3px solid var(--mf-surface); border-radius: 16px; object-fit: cover; transform: rotate(6deg); }
  .side-card--white img { border-color: var(--mf-bg); transform: rotate(-5deg); }
  .side-card__t { position: relative; max-width: 190px; font-size: 22px; line-height: 1.05; font-weight: 900; letter-spacing: -.045em; }
  .side-card__go { position: relative; display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
}

.cat-picture{position:relative;display:inline-flex}.cat-verify{position:absolute;z-index:1;right:4px;bottom:4px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--mf-yellow)}
.verified-badge{justify-self:start;align-self:start;display:inline-flex;align-items:center;gap:4px;padding:3px 7px;border-radius:7px;background:var(--mf-yellow);font-size:11px;font-weight:600;line-height:1.3}
.verified-filter label{display:flex;align-items:center;justify-content:space-between;gap:8px}.verified-filter p{margin:6px 0 0}

/* категории, переключатель «Для вас / Новинки» */
.cat-row { display: flex; gap: 10px; margin: 0 calc(-1 * var(--mf-gutter)); padding: 0 var(--mf-gutter); overflow-x: auto; scrollbar-width: none; }
.cat-row::-webkit-scrollbar { display: none; }
.cat-tile { flex: none; display: flex; flex-direction: column; align-items: center; gap: 7px; width: 70px; color: var(--mf-ink); font-size: 12px; line-height: normal; font-weight: 500; text-decoration: none; }
.cat-tile img { width: 70px; height: 70px; border-radius: 18px; object-fit: cover; background: var(--mf-brand-grey); }
.cat-tile > .cat-picture { width: 100%; max-width: 124px; aspect-ratio: 1; }
.cat-tile > .cat-picture img { width: 100%; height: 100%; }
@media (min-width: 1024px) {
  .cat-row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; overflow: visible; }
  .cat-tile { width: auto; gap: 10px; font-size: 14px; line-height: 1.5; font-weight: 600; }
  .cat-tile img { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 22px; }
}
.seg { display: flex; padding: 3px; border-radius: var(--mf-r-chip); background: var(--mf-track); }
.seg .pill { min-height: 0; height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--mf-muted); font-size: 13px; font-weight: 500; }
.seg .pill:hover { background: transparent; color: var(--mf-ink); }
.seg .pill[aria-current="true"] { background: var(--mf-surface); color: var(--mf-ink); font-weight: 600; }

/* карточка товара: сердце на фото, корзина справа внизу */
.pc__fav { position: absolute; top: 8px; right: 8px; z-index: 1; margin: 0; }
.pc__fav .act { width: 32px; height: 32px; background: var(--mf-surface); }
.pc__fav .ic { width: 16px; height: 16px; }
.pc__more--l { right: auto; left: 8px; top: 8px; }
.pc__more--l > .ic-btn { width: 28px; height: 28px; background: rgb(255 255 255 / 80%); }
.pc__more--l .ic { width: 16px; height: 16px; }
.pc__img { position: relative; }
.pc__badge { left: 8px; top: auto; bottom: 8px; padding: 3px 8px; border-radius: var(--mf-r-badge); background: var(--mf-surface); color: var(--mf-ink); font-size: 11px; font-weight: 600; }
@media (hover: hover) { .pc__more--l { opacity: 0; } .pc:hover .pc__more--l, .pc__more--l:focus-within, .pc__more--l:has([aria-expanded="true"]) { opacity: 1; } }
.pc__bottom { flex-wrap: nowrap; }
.pc__bottom .act { background: var(--mf-surface); }
.pc__bottom .ic { width: 18px; height: 18px; }
.pc__title:hover { text-decoration: none; }
@media (min-width: 1024px) { .pc__fav { top: 10px; right: 10px; } .pc__fav .act { width: 36px; height: 36px; } .pc__bottom .act { width: 40px; height: 40px; } }

/* каталог */
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.cat-card { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 84px; padding: 0 8px 0 14px; border-radius: var(--mf-r-block); background: var(--mf-surface); color: var(--mf-ink); font-size: 16px; font-weight: 700; text-decoration: none; }
.cat-card > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cat-card .cat-picture { flex: none; overflow: visible; }
.cat-card img { width: 68px; height: 68px; flex: none; border-radius: 12px; object-fit: cover; }
.cat-all { height: 48px; margin-top: 12px; font-size: 16px; }
.mega { margin-top: 28px; }
.mega.is-ready { display: grid; grid-template-columns: 300px minmax(0, 1fr); grid-template-rows: auto; gap: 20px; align-items: start; }
.mega__list { display: flex; flex-direction: column; padding: 10px; border-radius: var(--mf-r-block); background: var(--mf-surface); }
.mega__group { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 0; height: 56px; padding: 0 12px 0 10px; border: 0; border-radius: var(--mf-r-control); background: transparent; color: var(--mf-ink); font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; }
.mega__group:hover { background: var(--mf-bg); }
.mega__group[aria-expanded="true"] { background: var(--mf-yellow); font-weight: 700; }
.mega__group img { width: 40px; height: 40px; border-radius: 10px; }
.mega__group span { flex: 1; min-width: 0; }
.mega__group .ic { width: 16px; height: 16px; margin: 0; }
.mega__main { padding: 32px; border-radius: var(--mf-r-block); background: var(--mf-surface); }
.mega__panel { grid-column: auto; grid-row: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.mega__panel[hidden] { display: none; }
.mega__title { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.035em; }
.mega__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; margin-top: 24px; columns: auto; }
.mega__sec { min-width: 0; padding: 0; }
.mega__head { display: block; margin: 0; font-size: 16px; font-weight: 700; color: var(--mf-ink); text-decoration: none; }
.mega__subs { display: flex; flex-wrap: wrap; gap: 0 .5em; margin: 8px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.7; color: var(--mf-muted); }
.mega__subs li + li::before { content: "·"; margin-right: .5em; }
.mega__subs a { color: var(--mf-muted); font-size: 14px; text-decoration: none; }
.mega__subs a:hover { color: var(--mf-ink); text-decoration: none; }
.promo-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 14px 14px 14px 16px; border-radius: var(--mf-r-block); background: var(--mf-brand-grey); }
.promo-row__ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--mf-r-control); background: var(--mf-yellow); }
.promo-row div { flex: 1; min-width: 0; }
.promo-row b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.promo-row small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.35; color: var(--mf-muted-on-grey); }
.promo-row .btn { flex: none; height: 36px; padding: 0 14px; font-size: 14px; }
.mega .promo-row { margin: 28px 0 0; padding: 12px 20px 12px 16px; }
@media (min-width: 1024px) { .promo-row { padding: 16px; gap: 14px; } .promo-row b { font-size: 16px; } .promo-row small { font-size: 13px; line-height: 1.45; } .promo-row .btn { height: 40px; padding: 0 20px; font-size: 15px; } .page--results .promo-row { padding: 12px 20px 12px 16px; margin-bottom: 24px; } }

/* поиск: заголовок, фильтры, выдача */
.results-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 8px 0 16px; }
.results-head .h1 { margin: 0; overflow-wrap: anywhere; }
.results-head__sub { margin: 0; font-size: 15px; color: var(--mf-muted); }
.results-head__tools { display: flex; align-items: center; gap: 10px; flex: 1 0 100%; margin-top: 8px; }
.results-head__tools > * { flex: none; }
.chip-btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border: 0; border-radius: var(--mf-r-control); background: var(--mf-brand-grey); color: var(--mf-ink); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.chip-btn__n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--mf-yellow); font-size: 13px; font-weight: 700; }
.page--results .crumbs { display: none; }
.with-filters { display: block; }
.with-filters > .filters-wrap { display: none; }
.with-filters.is-open > .filters-wrap { display: flex; align-items: flex-end; position: fixed; inset: 0; z-index: 50; padding: 0; background: var(--mf-overlay); overflow: hidden; }
.filters { position: static; display: flex; flex-direction: column; gap: 18px; width: 100%; max-height: calc(100dvh - 24px); margin: 0; padding: 20px var(--mf-gutter) calc(20px + env(safe-area-inset-bottom)); border: 0; border-radius: var(--mf-r-sheet) var(--mf-r-sheet) 0 0; background: var(--mf-surface); overflow: auto; }
.filters::before { content: ""; flex: none; align-self: center; width: 40px; height: 4px; margin-bottom: -4px; border-radius: 2px; background: var(--mf-track); }
.filters__head { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 0; border: 0; }
.filters__head h2 { margin: 0; font: var(--mf-sheet-title); letter-spacing: -.03em; }
.filters__reset--head { display: none; }
.filters__close { display: grid; place-items: center; width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--mf-brand-grey); color: var(--mf-ink); cursor: pointer; }
.fgroup { min-width: 0; margin: 0; padding: 0; border: 0; }
.fgroup legend, .fgroup__title { display: block; width: 100%; margin: 0 0 10px; padding: 0; font-size: 16px; font-weight: 600; }
.fgroup__note { font-weight: 400; color: var(--mf-muted); }
.fgroup .range { grid-template-columns: 1fr 1fr; gap: 12px; }
.fgroup .input { height: 48px; padding: 0 16px; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.fchip { position: relative; display: block; }
.fchip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.fchip span { display: flex; align-items: center; justify-content: center; height: 40px; padding: 0 22px; border-radius: var(--mf-r-control); background: var(--mf-bg); font-size: 16px; font-weight: 500; }
.fchip input:checked + span { background: var(--mf-yellow); font-weight: 700; }
.fchip input:focus-visible + span { outline: 2px solid var(--mf-ink); outline-offset: 2px; }
.fgroup-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fgroup .dd { display: block; }
.fgroup .select-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 0; height: 48px; padding: 0 14px 0 16px; border: 0; border-radius: var(--mf-r-control); background: var(--mf-bg); color: var(--mf-ink); font: inherit; font-size: 16px; cursor: pointer; }
.fgroup .select-btn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filters__foot { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; }
.filters__foot .btn { height: 52px; margin: 0; font-size: 18px; }
.results-main { min-width: 0; }
.subcats { margin-bottom: 16px; }
.subcats .pill[aria-current="true"] { background: var(--mf-yellow); border-color: var(--mf-yellow); font-weight: 700; }
.scan-note { margin-bottom: 16px; border: 0; border-radius: var(--mf-r-block); }
.pager { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.pager .btn { min-width: 200px; }
@media (min-width: 1024px) {
  .page--results .crumbs { display: flex; margin-top: -8px; font-size: 12px; }
  .page--results .crumbs a { color: var(--mf-muted); text-decoration: none; }
  .page--results .crumbs [aria-current] { color: var(--mf-ink); }
  .results-head { flex-wrap: nowrap; margin: 4px 0 24px; }
  .results-head .h1 { font-size: 36px; }
  .results-head__sub { flex: 1; }
  .results-head__tools { flex: none; margin: 0; }
  .filters-toggle { display: none; }
  .chip-btn { height: 36px; padding: 0 14px; border-radius: var(--mf-r-chip); font-size: 13px; }
  .with-filters { display: grid; grid-template-columns: var(--mf-pc-side-w) minmax(0, 1fr); gap: 20px; align-items: start; }
  .with-filters > .filters-wrap { display: block; position: static; padding: 0; background: none; overflow: visible; }
  .filters { position: sticky; top: 16px; max-height: none; gap: 16px; padding: 20px; border-radius: var(--mf-r-block); overflow: visible; }
  .filters::before, .filters__close { display: none; }
  .filters__head h2 { font: var(--mf-h3); font-size: 18px; letter-spacing: -.02em; }
  .filters__reset--head { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 9px; background: var(--mf-brand-grey); color: var(--mf-ink); font-size: 12px; font-weight: 600; text-decoration: none; }
  .fgroup legend, .fgroup__title { font-size: 13px; }
  .fgroup-pair { grid-template-columns: 1fr; gap: 16px; }
  .fchip span { height: 40px; padding: 0 16px; font-size: 14px; }
  .fgroup .input, .fgroup .select-btn { font-size: 14px; }
  .filters__foot { grid-template-columns: 1fr; }
  .filters__reset--foot { display: none; }
  .filters__foot .btn { height: 44px; font-size: 14px; }
}

/* подсказки поиска */
.hs__label { margin: 0; padding: 14px 4px 8px; font-size: 13px; font-weight: 600; color: var(--mf-muted); }
.hs__head { display: flex; align-items: center; justify-content: space-between; }
.hs__clear { height: 30px; padding: 0 12px; border: 0; border-radius: 9px; background: var(--mf-brand-grey); color: var(--mf-ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.sg-list { padding: 4px 16px; border-radius: var(--mf-r-block); background: var(--mf-surface); }
.sg { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 0; color: var(--mf-ink); text-decoration: none; }
.sg + .sg { border-top: 1px solid var(--mf-border); }
.sg__img { width: 44px; height: 44px; flex: none; border-radius: 10px; object-fit: cover; background: var(--mf-bg); }
.sg__text { flex: 1; min-width: 0; }
.sg__text b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 400; }
.sg__text strong { font-weight: 800; }
.sg .ic { color: var(--mf-muted); }
.sg--plain { padding-inline: 16px; }
@media (max-width: 1023.98px) {
  .hs__drop { position: fixed; inset: 116px 0 var(--mf-nav-h) 0; z-index: 40; padding: 4px var(--mf-gutter) 16px; overflow: auto; border: 0; border-radius: 0; background: var(--mf-bg); box-shadow: none; }
  .hs__drop[hidden] { display: none; }
  .hs__drop > .sg { background: var(--mf-surface); }
}
@media (min-width: 1024px) {
  .hs__drop { position: absolute; top: calc(100% + 8px); left: 0; right: 0; padding: 8px 8px 12px; border: 0; border-radius: var(--mf-r-block); background: var(--mf-surface); box-shadow: 0 16px 40px -12px rgba(26, 28, 26, .3); }
  .sg-list { padding: 0; background: none; }
  .sg { min-height: 56px; padding: 8px 12px; border: 0 !important; border-radius: var(--mf-r-control); }
  .sg:hover, .sg[aria-selected="true"] { background: var(--mf-bg); }
  .sg__img { width: 40px; height: 40px; }
  .sg__text b { font-size: 15px; }
}

/* окно «Поиск по фото», окно «Все категории» */
.dlg__actions--even, .scan-actions { grid-template-columns: 1fr 1fr; }
.photo-drop { gap: 6px; padding: 16px; border: 0; border-radius: var(--mf-r-block); background: var(--mf-bg); }
.photo-drop__ic { background: var(--mf-surface); }
.photo-drop .scan-sub { display: none; font-size: 13px; color: var(--mf-muted); }
.photo-drop.has-photo .scan-sub { display: block; }
.photo-drop .scan-name { color: var(--mf-ink); font-size: 14px; font-weight: 600; }
.photo-drop .scan-preview { width: 180px; aspect-ratio: 1 / 1; border-radius: 14px; }
.photo-drop .scan-change { display: none; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: var(--mf-r-chip); background: var(--mf-surface); font-size: 14px; font-weight: 600; }
.photo-drop.has-photo .scan-change { display: inline-flex; }
@media (max-width: 1023.98px) {
  .photo-drop.has-photo { grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "pre name" "pre sub" "pre chg"; justify-items: start; align-items: center; column-gap: 16px; text-align: left; }
  .photo-drop.has-photo .scan-preview { grid-area: pre; width: 96px; height: 96px; }
  .photo-drop.has-photo .scan-name { grid-area: name; font-size: 18px; }
  .photo-drop.has-photo .scan-sub { grid-area: sub; }
  .photo-drop.has-photo .scan-change { grid-area: chg; background: var(--mf-brand-grey); }
}
@media (max-width: 1023.98px) {
  .mega.is-shown { display: grid !important; grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
  .mega.is-shown .mega__cols { grid-template-columns: minmax(0, 1fr); }
  .mega.is-shown .mega__main { padding: 20px 16px; }
}
/* ── /p-home ── */
/* ── p-product ── */
.page.pd-page { padding-block: 16px 130px; }
.pd-crumbs { display: none; }
.pd { display: flex; flex-direction: column; gap: 16px; }
.pd__side { display: contents; }
/* gallery */
.pd__gal { order: 1; display: flex; flex-direction: column; gap: 8px; }
.pd__main { position: relative; order: 0; }
.pd__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--mf-r-promo); background: var(--mf-brand-grey); cursor: zoom-in; }
.pd__track img { flex: 0 0 100%; width: 100%; height: 330px; object-fit: cover; scroll-snap-align: start; display: block; }
.pd__nophoto { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 330px; border-radius: var(--mf-r-promo); background: var(--mf-brand-grey); color: var(--mf-muted); }
.pd__count { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; background: rgba(26, 28, 26, .78); color: #fff; font-size: 12px; font-weight: 600; pointer-events: none; }
/* arrows over the main photo (owner 02.11: a track without them reads as broken); the tap arrows hide on touch, the
   track itself swipes there */
.pd__nav { position: absolute; inset: 0; pointer-events: none; }
.pd__nav .act { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--mf-ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); pointer-events: auto; opacity: .95; }
.pd__nav .act:first-child { left: 10px; }
.pd__nav .act:last-child { right: 10px; }
.pd__nav .act:last-child .ic { transform: scaleX(-1); }
@media (hover: none) { .pd__nav { display: none; } }
.pd__favm { position: absolute; top: 12px; right: 12px; margin: 0; }
.pd__favm .act { width: 40px; height: 40px; }
.pd__thumbs { order: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.pd__thumbs:empty { display: none; }
.pd__thumb { display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--mf-track); cursor: pointer; }
.pd__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pd__thumb[aria-pressed="true"] { outline: 2px solid var(--mf-ink); outline-offset: 2px; }
.pd__thumb--more { font: inherit; font-size: 14px; font-weight: 700; color: var(--mf-ink); }
/* head */
.pd__head { order: 2; display: flex; flex-direction: column; gap: 10px; }
.pd__title { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.045em; line-height: 1.1; overflow-wrap: anywhere; }
.pd__seller-title { margin: 0; font-size: 13px; color: var(--mf-muted); overflow-wrap: anywhere; }
.pd__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.pd__stats:empty { display: none; }
.pd__stat { display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 8px; border-radius: 11px; background: var(--mf-brand-grey); color: var(--mf-muted-on-grey); font-size: 13px; }
.pd__stat b { color: var(--mf-ink); }
.pd__stat--gone { grid-column: 1 / -1; }
.pd__link { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--mf-ink); font: inherit; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* description and facts */
.pd__desc { order: 3; display: flex; flex-direction: column; gap: 12px; padding: 4px 16px; }
.pd__desc .tabs { display: inline-flex; align-self: flex-start; }
.pd__desc [role="tabpanel"] { display: flex; flex-direction: column; gap: 10px; }
.pd__desc [role="tabpanel"][hidden] { display: none; }
.pd__text { margin: 0; font-size: 15px; line-height: 1.55; color: #3E413B; overflow-wrap: anywhere; }
.pd__specs .kv { margin: 0; padding: 12px 0; border: 0; border-radius: 0; overflow: visible; font-size: 14px; }
.pd__specs .kv + .kv { border-top: 1px solid var(--mf-card-line); }
.pd__specs .kv span:last-child { font-weight: 500; text-align: right; }
.pd__orig { white-space: pre-wrap; }
/* buy card (phone: only the verification card; the price lives in the action bar) */
.pd__buy { display: contents; }
.pd__price, .pd__sub, .pd__cta, .pd__links { display: none; }
.pd__verify { order: 4; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--mf-r-block); background: var(--mf-surface); }
.pd__vic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--mf-bg); }
.pd__vtxt { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 13px; }
.pd__vtxt b { font-size: 15px; font-weight: 600; }
.pd__vbtn { display: inline-flex; align-items: center; gap: 4px; height: 30px; margin-top: 6px; padding: 0 8px 0 10px; border: 0; border-radius: 9px; background: var(--mf-brand-grey); color: var(--mf-ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.pd__verify .switch { flex: none; }
.pd .cheaper { order: 5; }
.pd__noscript { order: 5; margin: 0; }
/* seller card */
.pd__seller { order: 6; padding: 16px 16px 0; display: flex; flex-direction: column; }
.pd__shead { display: flex; align-items: center; gap: 12px; }
.pd__shead > a, .pd__shead > form, .pd__shead > .dd { flex-shrink: 0; }
.pd__shead .btn--sm { padding: 0 10px; white-space: nowrap; }
.pd__shead .ic-btn { width: 32px; margin-left: -4px; }
.pd__ava { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--mf-ink); color: var(--mf-yellow); font-size: 18px; font-weight: 800; object-fit: cover; }
.pd__sname { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.pd__sname b { display: block; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.pd__sname .muted { overflow-wrap: anywhere; }
@media (max-width: 1023px) {
  .pd__shead { display: grid; grid-template-columns: 48px minmax(0, 1fr) 32px; }
  .pd__shead > a, .pd__shead > .pd__ava { grid-column: 1; grid-row: 1; }
  .pd__shead > .pd__sname { grid-column: 2; grid-row: 1; }
  .pd__shead > .dd { grid-column: 3; grid-row: 1; }
  .pd__shead > form { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
  .pd__shead > form .btn { width: 100%; }
}
.pd__sstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0 0; }
.pd__sstats div { display: flex; flex-direction: column; gap: 2px; }
.pd__sstats dt { font-size: 15px; font-weight: 700; }
.pd__sstats dd { margin: 0; font-size: 12px; color: var(--mf-muted); }
.pd__all { display: flex; align-items: center; justify-content: space-between; height: 48px; margin-top: 12px; border-top: 1px solid var(--mf-line); color: var(--mf-ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.pd__all:hover { text-decoration: underline; }
.sp-note { margin: 0 0 12px; font-size: 13px; }
.pd__size { display: inline-block; padding: 4px 10px; border-radius: var(--mf-r-chip); background: var(--mf-bg); font-size: 13px; font-weight: 600; letter-spacing: 0; white-space: nowrap; }
.pd__staff { order: 7; margin: 0; }
/* action bar (phone) */
.pd__bar { gap: 16px; }
.pd__barp { display: flex; flex-direction: column; }
.pd__barp b { font-size: 24px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; white-space: nowrap; }
.pd__barp small { font-size: 12px; }
.pd__bar form { flex: 1; min-width: 0; }
.pd__bar > .btn { flex: 1; }
/* verification details sheet */
.pd-check__lead { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.pd-check__steps { list-style: none; margin: 0; padding: 0 16px; border-radius: var(--mf-r-block); background: var(--mf-bg); }
.pd-check__steps li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--mf-line); }
.pd-check__steps li:last-child { border-bottom: 0; }
.pd-check__steps span { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--mf-yellow); font-size: 13px; font-weight: 800; }
.pd-check__steps div, .pd-check__item div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pd-check__steps b { font-size: 16px; font-weight: 600; }
.pd-check__steps small, .pd-check__item small { font-size: 14px; line-height: 1.45; color: var(--mf-muted); }
.pd-check__item { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: var(--mf-r-block); background: var(--mf-bg); }
.pd-check__item img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.pd-check__item div { flex: 1; font-size: 15px; font-weight: 600; }
.pd-check__sum { font-size: 17px; font-weight: 800; white-space: nowrap; }
/* bargain sheet */
.bs { display: flex; flex-direction: column; gap: 16px; position: relative; }
.bs .dlg__close { top: -4px; right: 0; }
.bs__lock { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: var(--mf-r-block); background: var(--mf-brand-grey); }
.bs__lockhead { display: flex; align-items: center; gap: 12px; }
.bs__lockhead div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--mf-muted); }
.bs__lockhead small { font-size: inherit; }
.bs__lockhead b { font-size: 16px; color: var(--mf-ink); }
.bs__ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--mf-yellow); }
.bs__tiers { list-style: none; margin: 0; padding: 0 16px; display: flex; flex-direction: column; border-radius: var(--mf-r-image); background: var(--mf-surface); }
.bs__tiers li { display: flex; justify-content: space-between; padding: 14px 0; font-size: 15px; }
.bs__tiers li + li { border-top: 1px solid var(--mf-line); }
@media (min-width: 1024px) {  /* 03-2_D: no grey box, the tariffs are two grey tiles */
  .bs__lock { padding: 0; background: none; }
  .bs__tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0; background: none; }
  .bs__tiers li { flex-direction: column; justify-content: flex-start; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--mf-brand-grey); font-size: 14px; font-weight: 700; }
  .bs__tiers li + li { border-top: 0; }
  .bs__tiers li b { font-size: 12px; font-weight: 400; color: var(--mf-muted); }
}
.bs__quota { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 14px; border-radius: var(--mf-r-image); background: var(--mf-brand-grey); font-size: 14px; color: var(--mf-ink); }
.bs__quota b { color: var(--mf-ink); }
.bs__item { display: flex; align-items: center; gap: 12px; }
.bs__item img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.bs__item span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bs__item small { font-size: 13px; color: var(--mf-muted); }
.bs__state { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border-radius: var(--mf-r-block); background: var(--mf-bg); }
.bs__state p { margin: 0; }
.bs__big { font-size: 28px; font-weight: 800; letter-spacing: -.04em; }
.bs__lead { margin: 0; font-size: 15px; line-height: 1.45; color: var(--mf-muted); }
.bs__form { display: flex; flex-direction: column; gap: 12px; }
.bs__input { font-size: 18px; font-weight: 600; }
.bs__err { margin: 0; }
.bs__note { margin: 0; text-align: center; font-size: 13px; color: var(--mf-muted); }
.bs-page .bs { max-width: 480px; margin: 0 auto; }
.bs-page .dlg__close { top: 0; }
/* seller page */
.sp-hero { display: flex; align-items: center; gap: 12px 14px; margin-bottom: 20px; padding: 16px; flex-wrap: wrap; }
.sp-hero .sp-stats { flex: 0 0 100%; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--mf-line); border-radius: 0; background: none; }
.sp-hero .pd__ava { width: 64px; height: 64px; font-size: 24px; }
.sp-hero__name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sp-hero__name h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.sp-hero__tools { flex: 0 0 100%; order: 3; display: flex; align-items: center; gap: 8px; }
.sp-hero__tools form { flex: 1; min-width: 0; }
.sp-hero__tools form .btn { width: 100%; height: 48px; border-radius: var(--mf-r-button); }
.sp-hero__tools form .btn[aria-pressed="false"] { background: var(--mf-ink); color: var(--mf-surface); }
.sp-hero .sp-stats { order: 2; }
.sp-stats { display: flex; gap: 24px; margin: 0 0 20px; padding: 14px 16px; border-radius: var(--mf-r-block); background: var(--mf-surface); }
.sp-stats div { display: flex; flex-direction: column; gap: 2px; }
.sp-stats dt { font-size: 15px; font-weight: 700; }
.sp-stats dd { margin: 0; font-size: 12px; color: var(--mf-muted); }
.sp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sp-tabs { display: inline-flex; }
.sp-tabs .tab { display: inline-flex; align-items: center; text-decoration: none; }
.sp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 1024px) {
  .page.pd-page { padding-block: 24px 56px; }
  .pd-crumbs { display: block; margin-bottom: 20px; }
  .pd { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto 1fr; column-gap: 40px; row-gap: 20px; align-items: start; }
  .pd__side { display: flex; flex-direction: column; gap: 16px; grid-column: 2; grid-row: 1 / span 2; }
  .pd__gal { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: start; }
  .pd__main { order: 1; }
  .pd__thumbs { order: 0; display: flex; flex-direction: column; gap: 10px; }
  .pd__thumb { width: 88px; height: 88px; aspect-ratio: auto; border-radius: 14px; }
  .pd__track { border-radius: 24px; }
  .pd__track img, .pd__nophoto { height: 578px; }
  .pd__nophoto { border-radius: 24px; }
  .pd__favm { display: none; }
  .pd__desc { grid-column: 1; grid-row: 2; padding: 24px; border-radius: 24px; gap: 16px; }
  .pd__text { font-size: 16px; line-height: 1.6; max-width: 62ch; }
  .pd__specs { border-top: 1px solid var(--mf-line); }
  .pd__head, .pd__buy, .pd__seller, .pd .cheaper, .pd__verify { order: 0; }
  .pd__head { order: 0; gap: 14px; }
  .pd__title { font-size: 34px; }
  .pd__buy { display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: var(--mf-r-block); background: var(--mf-surface); order: 1; }
  .pd__price { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .pd__price .pd__sum { margin-right: auto; }
  .pd__sum { margin: 0; font-size: 40px; font-weight: 800; letter-spacing: -.045em; }
  .pd__sub { display: block; margin: -8px 0 0; font-size: 13px; }
  .pd__cta { display: flex; gap: 8px; }
  .pd__cta form:first-child, .pd__cta > .btn { flex: 1; }
  .pd__fav { width: 52px; padding: 0; }
  .pd__verify { padding: 16px 0 0; border-top: 1px solid var(--mf-line); border-radius: 0; background: none; }
  .pd__vic { width: 40px; height: 40px; }
  .pd__vtxt { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 8px; }
  .pd__vtxt b { flex: 0 0 100%; }
  .pd__vtxt .muted { flex: 1; }
  .pd__vbtn { margin: 0; height: 32px; padding: 0 12px; }
  .pd__links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; }
  .pd .cheaper { order: 2; }
  .pd__seller { order: 3; padding: 20px 20px 0; border-radius: var(--mf-r-block); }
  .pd__staff { order: 4; }
  .pd__bar { display: none; }
  .sp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .sp-hero { flex-wrap: nowrap; gap: 24px; padding: 32px; }
  .sp-hero .pd__ava { width: 88px; height: 88px; font-size: 36px; }
  .sp-hero__name { gap: 6px; }
  .sp-hero__name h1 { font-size: 36px; line-height: 1.05; letter-spacing: -.045em; }
  .sp-hero__name .muted { font-size: 15px; }
  .sp-hero .sp-stats { order: 0; flex: none; gap: 10px; padding: 0; border: 0; }
  .sp-hero .sp-stats div { min-width: 150px; padding: 14px 20px; border-radius: 16px; background: var(--mf-bg); }
  .sp-hero .sp-stats dt { font-size: 18px; }
  .sp-hero__tools { flex: none; order: 0; }
  .sp-hero__tools form { flex: none; }
  .sp-hero__tools form .btn { min-width: 190px; height: 44px; }
  .sp-hero__tools form .btn[aria-pressed="false"] { background: var(--mf-yellow); color: var(--mf-ink); }
}
.co-h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.co-lead { margin: 0 0 16px; font-size: 14px; }
.co { display: flex; flex-direction: column; gap: 12px; }
.co__item { display: flex; gap: 14px; padding: 14px; }
.co__item img { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; }
.co__title { margin: 0 0 6px; font-weight: 600; overflow-wrap: anywhere; }
.co__price { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.co__form { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.co__form textarea { height: auto; padding: 12px 14px; }
.co__sum { margin: 0; }
.co__sum div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--mf-line); }
.co__sum dd { margin: 0; }
.co__total { font-weight: 800; font-size: 18px; }
.co__rate { margin: 0; font-size: 13px; }
@media (min-width: 1024px) { .co { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; } .co-lead { margin-bottom: 20px; } }
/* ── /p-product ── */
/* ── p-monitors ── */
/* экраны 04…04.6: мониторинги, находки, продавцы, автовыкуп */
.page--mon { padding-block: 20px 28px; }
.mon-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.mon-head .h1 { font-weight: 900; }
.mon-head__sub { margin: 0; font-size: 14px; color: var(--mf-muted); }
@media (max-width: 1023.98px) { .mon-head:has(.mon-head__sub.only-lg) { margin-bottom: 20px; } } /* без подзаголовка (вкладки «Продавцы», «Автовыкуп») макет держит ту же высоту блока */
.mon-bar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.tabs.mon-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; width: 100%; overflow: visible; }
.mon-tabs .tab { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.mon-tabs .tab[aria-current="page"] { background: var(--mf-surface); color: var(--mf-ink); font-weight: 600; }
.mon-meter { display: flex; flex-direction: column; gap: 8px; padding: 4px 2px; }
.mon-meter--ab { flex-direction: row; align-items: center; justify-content: space-between; font-size: 13px; padding: 2px 2px 0; }
.mon-meter__row { display: flex; justify-content: space-between; margin: 0; font-size: 13px; }
.mon-meter__bar { appearance: none; -webkit-appearance: none; width: 100%; height: 6px; border: 0; border-radius: 3px; background: var(--mf-track); overflow: hidden; }
.mon-meter__bar::-webkit-progress-bar { background: var(--mf-track); border-radius: 3px; }
.mon-meter__bar::-webkit-progress-value { background: var(--mf-ink); border-radius: 3px; }
.mon-meter__bar::-moz-progress-bar { background: var(--mf-ink); border-radius: 3px; }
.mon-limit { display: none; }
.mon__grid { display: flex; flex-direction: column; gap: 12px; }
.mon__list, .mon__aside { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mon-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--mf-r-block); background: var(--mf-surface); }
.mon-card--off .mon-thumbs { opacity: .5; }
.mon-card__head { display: flex; align-items: center; gap: 12px; }
.mon-card__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mon-card__name { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.mon-card__cond, .mon-card__sub { margin: 0; font-size: 13px; color: var(--mf-muted); }
.mon-more { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--mf-bg); cursor: pointer; }
.mon-more .ic { width: 20px; height: 20px; }
.mon-ico { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--mf-r-control); background: var(--mf-bg); }
.mon-ico--y { background: var(--mf-yellow); }
.mon-ico--lg { width: 56px; height: 56px; border-radius: 16px; }
.mon-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mon-thumbs img, .mon-thumbs > span { width: 100%; aspect-ratio: 1 / 1; border-radius: var(--mf-r-control); object-fit: cover; background: var(--mf-brand-grey); display: block; }
.mon-thumbs__more { position: relative; display: block; }
.mon-thumbs__more b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--mf-r-image); background: rgba(26, 28, 26, .55); color: var(--mf-surface); font-size: 22px; font-weight: 800; }
.mon-card__foot { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; }
.mon-card__foot .badge { height: 26px; padding: 0 10px; border-radius: 8px; font-size: 13px; }
.mon-tg { flex: 1; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mf-muted); }
.mon-go { display: flex; align-items: center; gap: 4px; color: var(--mf-muted); }
.mon-new { display: flex; }
.mon-new__btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; border-radius: var(--mf-r-button); background: var(--mf-track); font-size: 15px; font-weight: 600; text-decoration: none; }
.mon-promo, .mon-find { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--mf-r-promo); background: var(--mf-brand-grey); color: var(--mf-ink); }
.mon-promo__txt { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.mon-promo__txt b { font-size: 16px; font-weight: 700; }
.mon-promo__txt span { font-size: 13px; line-height: 1.4; color: var(--mf-muted-on-grey); }
.mon-promo .btn { flex: none; width: auto; height: 40px; padding: 0 14px; border-radius: 11px; font-size: 14px; }
.mon-find { flex-direction: column; align-items: stretch; gap: 10px; }
.mon-find .btn { align-self: flex-start; height: 36px; padding: 0 12px 0 14px; border-radius: var(--mf-r-chip); background: var(--mf-surface); font-size: 14px; gap: 4px; }
.sl-card { padding-bottom: 4px; gap: 0; }
.sl-ava { flex: none; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--mf-ink); color: var(--mf-yellow); font-size: 18px; font-weight: 800; object-fit: cover; }
.sl-chip { display: flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px; border: 0; border-radius: var(--mf-r-chip); background: var(--mf-brand-grey); font-size: 13px; font-weight: 600; cursor: pointer; }
.sl-foot { margin-top: 14px; border-top: 1px solid var(--mf-line); min-height: 48px; }
.sl-go { flex: 1; display: flex; align-items: center; justify-content: space-between; height: 48px; font-size: 14px; font-weight: 600; text-decoration: none; }
.sl-go .ic { color: var(--mf-muted); }
.mon-tgnote { margin-top: 4px; }
.tg-row.mon-tgnote { align-items: center; gap: 12px; margin-top: 4px; padding: 14px 4px 0; }
.mon-tgnote > div { flex: 1; min-width: 0; }
.tg-row.mon-tgnote b { font-size: 15px; font-weight: 600; }
.mon-tgnote p { margin: 2px 0 0; font-size: 13px; line-height: 1.4; }
.mon-tgnote .ic-lg { width: 22px; height: 22px; flex: none; }
.mon-create { display: flex; flex-direction: column; }
.mon-main { display: flex; flex-direction: column; gap: 12px; }
.mon-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--mf-brand-grey); text-decoration: none; }
.mon-banner__txt { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.mon-banner__txt span { font-size: 13px; line-height: 1.35; color: var(--mf-muted-on-grey); font-weight: 400; }
.mon-banner__btn { display: flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px 0 12px; border-radius: var(--mf-r-chip); background: var(--mf-surface); font-size: 13px; font-weight: 600; }
.mon-form { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--mf-r-block); background: var(--mf-surface); }
.mon-f { gap: 6px; font-size: 13px; }
.mon-f .input { height: 46px; font-weight: 400; }
.mon-f2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mon-f2 .input { min-width: 0; }
.mon-hint { font-size: 12px; font-weight: 400; color: var(--mf-muted); }
.mon-cond { border: 0; padding: 0; margin: 0; min-width: 0; }
.mon-cond legend { padding: 0; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.mon-chips { display: flex; gap: 6px; }
.mon-chips .chip { position: relative; }
.mon-chips .chip:has(input:checked) { background: var(--mf-yellow); font-weight: 700; }
.mon-chips .chip:has(input:focus-visible) { outline: 2px solid var(--mf-ink); outline-offset: 2px; }
.mon-tgrow { display: flex; align-items: center; gap: 14px; padding-top: 12px; border-top: 1px solid var(--mf-line); }
.mon-tgrow__txt { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 15px; font-weight: 400; }
.mon-tgrow__txt b { font-weight: 400; }
.mon-hint--tg { margin: -4px 0 0; }
.mon-pitch { display: none; }
.actbar--mon { padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
@media (max-width: 1023.98px) { .actbar.actbar--two { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; } } /* .actbar из legacy-слоя стоит ниже и держит flex; на ПК панель скрыта */
.page--mon-form, .page--finds { padding-top: 16px; }
.fd { display: flex; flex-direction: column; gap: 16px; }
.fd-top { display: none; }
.fd-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 8px; }
.fd-chips { display: flex; gap: 6px; flex-basis: 100%; order: -1; }
.fd-chip { display: flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 9px; background: var(--mf-surface); font-size: 13px; }
.fd-title { display: flex; align-items: baseline; gap: 8px; margin: 0; font: var(--mf-h2); letter-spacing: var(--mf-tracking-h2); }
.fd-title .badge { align-self: center; }
.fd-sortbtn { display: flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px; border: 0; border-radius: var(--mf-r-chip); background: var(--mf-brand-grey); font-size: 13px; font-weight: 600; cursor: pointer; }
.fd-tg { display: flex; align-items: center; gap: 8px; }
.ab-head { display: none; }
.ab-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.ab-card { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 12px 12px; border-radius: var(--mf-r-block); background: var(--mf-surface); }
.ab-card__row { display: flex; align-items: center; gap: 12px; }
.ab-img img, .ab-img span { display: block; width: 52px; height: 52px; border-radius: var(--mf-r-control); object-fit: cover; background: var(--mf-brand-grey); }
.ab-card__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ab-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; text-decoration: none; }
.ab-pause { font-size: 12px; font-weight: 600; color: var(--mf-status-wait-fg); }
.ab-card .switch { width: 44px; height: 26px; border-radius: 13px; }
.ab-card .switch::after { width: 20px; height: 20px; }
.ab-card .switch:checked::after { transform: translateX(18px); }
.ab-limit { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 44px; padding: 0 6px 0 12px; border-radius: var(--mf-r-control); background: var(--mf-bg); font-size: 14px; }
.ab-limit__edit { display: flex; align-items: center; height: 32px; padding: 0 10px; border-radius: 9px; background: var(--mf-surface); font-size: 13px; font-weight: 600; text-decoration: none; }
.ab-limit__v { display: none; }
.ab-add { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; margin-top: 12px; border-radius: var(--mf-r-button); background: var(--mf-brand-grey); font-size: 15px; font-weight: 600; text-decoration: none; }
.page--ab { padding-top: 20px; }
.ab-set { display: flex; flex-direction: column; gap: 14px; }
.ab-hero, .ab-panel { display: flex; flex-direction: column; gap: 14px; }
.ab-intro { display: flex; flex-direction: column; gap: 6px; }
.ab-title { margin: 0; font: var(--mf-h1); font-weight: 900; letter-spacing: var(--mf-tracking-h1); }
.ab-sub { margin: 0; font-size: 14px; color: var(--mf-muted); }
.ab-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 18px; background: var(--mf-surface); text-decoration: none; }
.ab-item img, .ab-item > span:first-child { flex: none; width: 56px; height: 56px; border-radius: var(--mf-r-control); object-fit: cover; background: var(--mf-brand-grey); }
.ab-item__txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ab-item__txt b { font-size: 15px; font-weight: 600; }
.ab-item__chg { font-size: 13px; font-weight: 600; color: var(--mf-muted); }
.ab-limitfield { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.ab-limitfield .input { height: 54px; padding: 0 16px; border-radius: var(--mf-r-button); background: var(--mf-surface); font-size: 18px; font-weight: 700; }
.ab-hint { font-size: 13px; line-height: 1.4; font-weight: 400; color: var(--mf-muted); }
.ab-tier { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--mf-brand-grey); }
.ab-tier > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--mf-muted-on-grey); }
.ab-tier b { font-size: 14px; color: var(--mf-ink); }
.ab-tier__ic { flex: none; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--mf-yellow); }
.ab-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; cursor: pointer; }
.ab-consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--mf-ink); }
.ab-btns { display: none; }
.ab-pick { display: flex; flex-direction: column; }
.ab-pickrow { display: flex; align-items: center; gap: 12px; height: 76px; border-bottom: 1px solid var(--mf-border); text-decoration: none; }
.ab-pickrow:last-child { border-bottom: 0; }
.ab-pickrow img, .ab-pickrow > span:first-child { flex: none; width: 52px; height: 52px; border-radius: var(--mf-r-control); object-fit: cover; background: var(--mf-brand-grey); }
.ab-pickrow__txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ab-pickrow__txt b { font-size: 15px; font-weight: 600; }
.ab-pickwrap { display: flex; flex-direction: column; gap: 14px; }
.ab-pickwrap .ab-pick { padding: 4px 14px; border-radius: 24px; background: var(--mf-bg); }
.ab-pickwrap .dlg__close .ic { width: 16px; height: 16px; }
.dlg__in:has(.ab-pickwrap) { padding-top: 12px; } /* макет: ручка в 11px от края шторки, заголовок и крестик на одной линии */
.ab-pickwrap .dlg__title { margin: 5px 0 6px; }
.ab-pickwrap .dlg__close { top: 28px; }
.ab-pickpage { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: var(--mf-r-block); background: var(--mf-surface); }
@media (min-width: 1024px) {
  .page--mon { padding-block: 32px 56px; }
  .page--mon-form, .page--finds { padding-top: 32px; }
  .mon-head { gap: 8px; margin-bottom: 0; }
  .mon-head__sub { font-size: 15px; }
  .mon-bar { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0; }
  .tabs.mon-tabs { display: inline-flex; width: auto; }
  .mon-tabs .tab { padding: 0 18px; }
  .mon-meter { display: none; }
  .mon-limit { display: flex; align-items: center; gap: 12px; }
  .mon__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
  .mon__aside { gap: 20px; }
  .mon-card { padding: 24px; gap: 18px; }
  .mon-card__head { gap: 14px; }
  .mon-card__name { font: var(--mf-h3); letter-spacing: -.02em; }
  .mon-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .mon-thumbs--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .mon-thumbs img, .mon-thumbs > span { border-radius: var(--mf-r-image); }
  .mon-card__foot { gap: 12px; padding-top: 4px; }
  .mon-card__foot .badge { height: 24px; padding: 0 9px; border-radius: var(--mf-r-badge); font-size: 12px; }
  .mon-tg { flex: none; }
  .mon-go { margin-left: auto; height: 36px; padding: 0 14px; border-radius: var(--mf-r-chip); background: var(--mf-brand-grey); color: var(--mf-ink); font-size: 14px; font-weight: 600; }
  .mon-new { flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--mf-r-block); background: var(--mf-surface); }
  .mon-new__txt { display: flex; flex-direction: column; gap: 4px; }
  .mon-new__txt b { font-size: 18px; }
  .mon-new__btn { flex: none; height: 44px; border-radius: var(--mf-r-control); background: var(--mf-ink); color: var(--mf-surface); }
  .mon-promo, .mon-find { flex-direction: column; align-items: stretch; gap: 14px; padding: 24px; }
  .mon-promo__txt b { font-size: 18px; }
  .mon-promo .btn { width: 100%; height: 44px; border-radius: var(--mf-r-control); font-size: 15px; padding: 0 18px; }
  .mon-find { background: var(--mf-surface); }
  .mon-find .btn { align-self: stretch; height: 44px; border-radius: var(--mf-r-control); font-size: 15px; background: var(--mf-brand-grey); }
  .sl-card { padding-bottom: 24px; }
  .sl-ava { width: 56px; height: 56px; font-size: 22px; font-weight: 900; }
  .sl-chip { background: var(--mf-yellow); height: 36px; padding: 0 14px; font-size: 14px; }
  .sl-foot { margin-top: 0; border-top: 0; min-height: 0; }
  .sl-go { flex: none; margin-left: auto; height: 36px; padding: 0 14px; gap: 8px; border-radius: var(--mf-r-chip); background: var(--mf-brand-grey); }
  .mon-banner { padding: 16px 18px; gap: 14px; }
  .mon-banner__txt b { font-size: 15px; }
  .mon-banner__btn { height: 36px; padding: 0 14px; font-size: 14px; }
  .mon-formpage .title-row { margin-bottom: 24px; }
  .mon-create { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
  .mon-form { padding: 32px; gap: 22px; }
  .mon-f { font-size: 14px; }
  .mon-f .input { height: 48px; }
  .mon-f2 { gap: 16px; }
  .mon-cond legend { font-size: 14px; }
  .mon-tgrow { padding-top: 16px; }
  .mon-pitch { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: var(--mf-r-promo); background: var(--mf-brand-grey); }
  .mon-pitch h2 { margin: 0; font-size: 30px; line-height: 1.02; font-weight: 900; letter-spacing: -.045em; }
  .mon-pitch p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--mf-muted-on-grey); }
  .mon-pitch ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
  .mon-pitch li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
  .mon-pitch li span { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--mf-yellow); }
  .fd { gap: 24px; }
  .fd-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .fd-top .title-row { margin: 0; }
  .fd-top__acts { display: flex; align-items: center; gap: 10px; }
  .fd-bar { flex-wrap: nowrap; }
  .fd-chips { flex-basis: auto; order: 0; gap: 8px; }
  .fd-chip { height: 32px; padding: 0 12px; }
  .ab-head { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; }
  .ab-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
  .ab-card { padding: 20px; gap: 16px; }
  .ab-card__row { gap: 14px; }
  .ab-img img, .ab-img span { width: 72px; height: 72px; border-radius: 14px; }
  .ab-card__txt { gap: 4px; }
  .ab-name { font-size: 16px; white-space: normal; }
  .ab-card .switch { width: var(--mf-toggle-w); height: var(--mf-toggle-h); border-radius: 14px; }
  .ab-card .switch::after { width: 22px; height: 22px; }
  .ab-card .switch:checked::after { transform: translateX(20px); }
  .ab-limit { height: auto; padding: 12px 14px; border-radius: 14px; }
  .ab-limit__t { flex: 1; font-size: 13px; color: var(--mf-muted); }
  .ab-limit__v { display: block; font-size: 20px; }
  .ab-limit__edit { height: 36px; border-radius: var(--mf-r-chip); font-size: 14px; padding: 0 14px; }
  .ab-set { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 20px; align-items: start; }
  .ab-hero { padding: 40px; min-height: 420px; border-radius: var(--mf-r-promo); background: var(--mf-brand-grey); gap: 24px; }
  .ab-intro { gap: 10px; }
  .ab-intro .mon-ico { margin-bottom: 14px; }
  .ab-title { font-size: 40px; line-height: 1.02; letter-spacing: -.05em; }
  .ab-sub { font-size: 16px; color: var(--mf-muted-on-grey); }
  .ab-item { margin-top: auto; padding: 14px; gap: 14px; }
  .ab-item img, .ab-item > span:first-child { width: 64px; height: 64px; }
  .ab-item__txt b { font-size: 16px; }
  .ab-item__chg { display: flex; align-items: center; height: 36px; padding: 0 14px; border-radius: var(--mf-r-chip); background: var(--mf-brand-grey); font-size: 14px; color: var(--mf-ink); }
  .ab-panel { padding: 28px; border-radius: var(--mf-r-block); background: var(--mf-surface); gap: 18px; }
  .ab-limitfield .input { height: 60px; font-size: 24px; font-weight: 800; background: var(--mf-bg); border-radius: var(--mf-r-control); }
  .ab-hint { font-size: 12px; }
  .ab-tier { background: var(--mf-bg); padding: 14px; }
  .ab-tier__ic { width: 40px; height: 40px; border-radius: var(--mf-r-control); }
  .ab-consent { gap: 12px; line-height: 1.45; }
  .ab-consent input { width: 24px; height: 24px; margin: 0; appearance: none; -webkit-appearance: none; border-radius: 7px; background: var(--mf-bg); position: relative; }
  .ab-consent input:checked { background: var(--mf-yellow); }
  .ab-consent input:checked::after { content: ""; position: absolute; left: 8px; top: 4px; width: 5px; height: 10px; border: solid var(--mf-ink); border-width: 0 2.6px 2.6px 0; transform: rotate(45deg); }
  .ab-consent input:focus-visible { outline: 2px solid var(--mf-ink); outline-offset: 2px; }
  .ab-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ab-pickpage { padding: 28px; }
}
/* ── /p-monitors ── */
/* ── p-plans ── */
.page.plans-page, .page.prof { padding-block: 20px 24px; }
/* tariffs: head */
.plans-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 14px; }
.plans-head__t { display: flex; flex-direction: column; gap: 6px; }
.plans-head .crumbs { display: none; }
.plans-h1 { margin: 0; font: 900 28px/1.05 var(--mf-font); letter-spacing: var(--mf-tracking-h1); }
.plans-lead { margin: 0; color: var(--mf-muted); font-size: 14px; line-height: 1.45; }
.plans-now { display: none; }
/* tariffs: rows (phone) / cards (PC) */
.plans { display: flex; flex-direction: column; gap: 14px; }
.plans__grid { display: flex; flex-direction: column; gap: 8px; }
.plan { position: relative; display: block; border-radius: 18px; background: var(--mf-surface); cursor: pointer; }
.plan:has(input:checked) { background: var(--mf-brand-grey); box-shadow: inset 0 0 0 1.5px #D8D6CA; }
.plan:has(input:focus-visible) { outline: 2px solid var(--mf-ink); outline-offset: 2px; }
.plan__radio { position: absolute; opacity: 0; inset: 0; margin: 0; pointer-events: none; }
.plan__top { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 16px; }
.plan__dot { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px #CDCDC6; }
.plan:has(input:checked) .plan__dot { background: var(--mf-yellow); box-shadow: none; }
.plan:has(input:checked) .plan__dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mf-ink); }
.plan__name { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; }
.plan__name .badge { height: 22px; padding: 0 8px; font-size: 11px; }
.plan__price { display: flex; flex-direction: column; align-items: flex-end; }
.plan__price b { font-size: 17px; font-weight: 800; }
.plan__price small { font-size: 11px; color: var(--mf-muted); }
.plan:has(input:checked) .plan__price small { color: var(--mf-muted-on-grey); }
.plan__for { display: none; }
.plan__feat { display: none; }
/* «что входит» list */
.feat { margin: 0; padding: 0; list-style: none; }
.feat li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--mf-line); font-size: 15px; }
.feat li:last-child { border-bottom: 0; }
.plans__panel li { padding-block: 13px; }
[id^="dlg-plan-"] .dlg__in { padding-top: 12px; } /* шторка оплаты: как в макете, ручка у края, крестик на линии заголовка */
[id^="dlg-plan-"] .dlg__title { margin: 5px 0 3px; }
[id^="dlg-plan-"] .dlg__close { top: 28px; }
[id^="dlg-plan-"] .dlg__close .ic { width: 16px; height: 16px; }
.feat li > span:nth-child(2) { flex: 1; }
.feat b { font-weight: 700; }
.feat__ic { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--mf-yellow); }
.feat__ic .ic { width: 13px; height: 13px; stroke-width: 3; }
.feat--off .feat__ic { background: var(--mf-track); color: var(--mf-muted); }
.feat--off .feat__ic .ic { width: 12px; height: 12px; stroke-width: 1.9; }
.feat--off b { color: var(--mf-muted); }
.plans__panel { padding: 4px 16px; border-radius: var(--mf-r-block); background: var(--mf-surface); }
.plans__panel[hidden] { display: none; }
/* bar */
.plans__bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 16px calc(26px + env(safe-area-inset-bottom)); border-top: 1px solid var(--mf-border); background: var(--mf-surface); }
.plans__sum { display: none; }
.plans__bar .btn { width: 100%; height: 54px; font-size: 16px; font-weight: 800; }
/* cheaper */
.cheaper { display: flex; flex-direction: column; gap: 14px; padding: 18px 16px 16px; border-radius: var(--mf-r-promo); background: var(--mf-brand-grey); }
.cheaper__head { display: flex; flex-direction: column; gap: 4px; }
.cheaper__t { margin: 0; font: var(--mf-h2); letter-spacing: var(--mf-tracking-h2); }
.cheaper__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cheaper__tile { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 16px; background: var(--mf-surface); color: var(--mf-ink); text-decoration: none; }
.cheaper__ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--mf-yellow); }
.cheaper__tile b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.cheaper__tile small { color: var(--mf-muted-on-grey); font-size: 12px; line-height: 1.4; }
.cheaper__go { height: 48px; border-radius: 13px; font-size: 15px; font-weight: 700; }
/* sheets: sums, consent */
.tsum { margin: 0; padding: 4px 16px; border-radius: 18px; background: var(--mf-bg); }
.tsum > div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #E4E4DD; font-size: 15px; }
.tsum > div:last-child { border-bottom: 0; font-size: 16px; }
.tsum dt { color: var(--mf-muted); }
.tsum dd { margin: 0; font-weight: 600; }
.tsum__total dt { color: var(--mf-ink); font-weight: 600; }
.tsum__total dd { font-weight: 800; }
.psum { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 18px; background: var(--mf-brand-grey); }
.psum__top { display: flex; align-items: center; gap: 12px; }
.psum__tier { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 11px; background: var(--mf-yellow); font-size: 17px; font-weight: 800; }
.psum__days { flex: 1; color: var(--mf-muted-on-grey); font-size: 15px; }
.psum__rub { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.psum .feat { display: none; }
.psum__note { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--mf-muted); font-size: 13px; }
.psum__note .ic { width: 18px; height: 18px; }
.consent { display: flex; align-items: flex-start; gap: 10px; color: var(--mf-muted); font-size: 12px; line-height: 1.4; }
.consent input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--mf-ink); }
/* my subscription */
.sub-h1 { display: none; }
.sub { display: flex; flex-direction: column; gap: 12px; }
.sub__hero { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 18px 16px; border-radius: var(--mf-r-promo); background: var(--mf-brand-grey); }
.sub__ico, .sub__slogan { display: none; }
.sub__head { display: flex; align-items: center; justify-content: space-between; }
.sub__tier { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 9px; background: var(--mf-yellow); font-size: 15px; font-weight: 800; }
.sub__act { height: 26px; padding: 0 10px; border-radius: 8px; background: var(--mf-surface); color: var(--mf-ink); font-size: 12px; font-weight: 600; }
.sub__act i { width: 7px; height: 7px; border-radius: 50%; background: var(--mf-online); }
.sub__title { margin: 0; font-size: 24px; font-weight: 900; letter-spacing: -.045em; line-height: 1.1; }
.sub__until { margin: -10px 0 0; color: var(--mf-muted-on-grey); font-size: 14px; }
.sub__use { display: flex; flex-direction: column; margin: 0; padding: 6px 16px; list-style: none; border-radius: var(--mf-r-block); background: var(--mf-surface); }
.use { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--mf-line); }
.use:last-child { border-bottom: 0; }
.use__row { display: flex; justify-content: space-between; font-size: 15px; line-height: 1.3; }
.use__bar { appearance: none; -webkit-appearance: none; width: 100%; height: 6px; border: 0; border-radius: 3px; background: var(--mf-brand-grey); overflow: hidden; }
.use__bar::-webkit-progress-bar { background: var(--mf-brand-grey); }
.use__bar::-webkit-progress-value { border-radius: 3px; background: var(--mf-ink); }
.use__bar::-moz-progress-bar { border-radius: 3px; background: var(--mf-ink); }
.use--free .use__bar { display: none; }
.sub .sub__change { width: 100%; height: 48px; border-radius: 14px; font-size: 15px; font-weight: 600; }
.renew { display: flex; align-items: center; gap: 16px; margin-top: 12px; padding: 16px; border-radius: var(--mf-r-block); background: var(--mf-brand-grey); }
.renew__t { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.renew__t span { color: var(--mf-muted-on-grey); font-size: 13px; }
.tgl { position: relative; flex: none; width: var(--mf-toggle-w); height: var(--mf-toggle-h); padding: 0; border: 0; border-radius: 14px; background: var(--mf-toggle-off); cursor: pointer; }
.tgl::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--mf-surface); }
.tgl[aria-checked="true"] { background: var(--mf-yellow); }
.tgl[aria-checked="true"]::after { left: auto; right: 3px; box-shadow: 0 1px 3px rgba(26, 28, 26, .25); }
@media (min-width: 1024px) {
  .page.plans-page, .page.prof { padding-block: 32px 64px; }
  .sub-h1 { margin-bottom: 20px; }
  .renew { margin-top: 20px; }
  .plans-head { margin-bottom: 28px; }
  .plans-head .crumbs { display: flex; font-size: 13px; }
  .plans-head .crumbs a { text-decoration: none; }
  .plans-head .crumbs [aria-current] { color: var(--mf-ink); }
  .plans-head__t { gap: 10px; }
  .plans-h1 { font-size: 44px; }
  .plans-lead { font-size: 16px; }
  .plans-now { display: inline-flex; height: 36px; padding: 0 14px; font-size: 14px; }
  .plans { gap: 28px; }
  .plans__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .plan { display: flex; flex-direction: column; gap: 22px; padding: 28px; border-radius: 24px; }
  .plan__top { flex-wrap: wrap; height: auto; padding: 0; gap: 22px 10px; }
  .plan__dot { width: 24px; height: 24px; }
  .plan__name { flex: none; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
  .plan__price { order: 3; flex: 1 0 100%; flex-direction: row; align-items: baseline; gap: 8px; }
  .plan__price b { font-size: 44px; font-weight: 900; letter-spacing: -.05em; line-height: 1; }
  .plan__price small { font-size: 15px; }
  .plan__for { display: inline; }
  .plan__feat { display: block; }
  .plan__feat li { border-top: 1px solid var(--mf-line); border-bottom: 0; }
  .plan:has(input:checked) .plan__feat li { border-top-color: #DEDDD3; }
  .plans__panel { display: none; }
  .plans__bar { position: static; display: flex; align-items: center; gap: 20px; padding: 20px 24px; border: 0; border-radius: var(--mf-r-card); }
  .plans__sum { display: flex; flex: 1; flex-direction: column; gap: 2px; }
  .plans__sum b { font-size: 18px; }
  .plans__sum small { color: var(--mf-muted); font-size: 13px; }
  .plans__bar .btn { width: 280px; height: 52px; font-weight: 700; }
  .cheaper { padding: 20px; }
  .cheaper__tile { padding: 14px; }
  .cheaper__go { height: 44px; border-radius: 12px; }
  .psum { padding: 18px; gap: 12px; }
  .psum__tier { height: auto; padding: 0; background: none; font-size: 20px; }
  .psum__days { flex: none; font-size: 13px; }
  .psum__top { gap: 10px; }
  .psum__rub { margin-left: auto; font-size: 26px; }
  .psum .feat { display: block; }
  .feat--sm li { padding: 9px 0; border-bottom: 0; border-top: 1px solid #DEDDD3; font-size: 14px; }
  .sub-h1 { display: block; }
  .sub { gap: 20px; padding: 28px; border-radius: var(--mf-r-card); background: var(--mf-surface); display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .sub__hero { grid-template-columns: auto 1fr; grid-template-areas: "ico head" "ico until"; align-items: center; gap: 4px 16px; padding: 0; border-radius: 0; background: none; }
  .sub__ico { grid-area: ico; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--mf-yellow); }
  .sub__ico .ic { width: 28px; height: 28px; }
  .sub__head { grid-area: head; justify-content: flex-start; gap: 10px; }
  .sub__tier { height: auto; padding: 0; background: none; font: var(--mf-h2); letter-spacing: var(--mf-tracking-h2); }
  .sub__act { height: 24px; padding: 0 9px; border-radius: 7px; background: var(--mf-status-ok-bg); color: var(--mf-status-ok-fg); }
  .sub__act i { display: none; }
  .sub__title { display: none; }
  .sub__until { grid-area: until; margin: 0; font-size: 13px; }
  .sub__slogan { display: inline; }
  .sub__date { text-transform: lowercase; }
  .sub .sub__change { grid-column: 2; grid-row: 1; width: auto; height: 44px; padding: 0 18px; border-radius: 12px; }
  .sub__use { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0; background: none; }
  .use { gap: 12px; padding: 18px; border: 0; border-radius: 16px; background: var(--mf-bg); }
  .use__bar { height: 8px; border-radius: 4px; background: #E2E2DA; }
  .use__bar::-webkit-progress-bar { background: #E2E2DA; }
  .use--free .use__bar { display: block; }
  .renew { padding: 22px 24px; }
  .renew__t b { font-size: 16px; }
}
/* ── /p-plans ── */
/* ── p-cart ── */
.page.cart-page, .page.fav-page { padding-block: 20px 24px; }
.page.cart-page { padding-bottom: 130px; }
.ct-h1, .ct-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* cart: rows */
.ct { display: flex; flex-direction: column; gap: 12px; }
.ct__list { display: flex; flex-direction: column; gap: 12px; }
.ct__list .notice { margin: 0; background: var(--mf-brand-grey); }
.cr { padding: 14px 14px 4px; border-radius: var(--mf-r-block); background: var(--mf-surface); }
.cr--off .cr__main { opacity: .55; }
.cr__main { display: grid; grid-template-columns: 22px 76px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.cr__box { appearance: none; -webkit-appearance: none; position: relative; width: 22px; height: 22px; margin: 2px 0 0; border-radius: 7px; background: var(--mf-surface); box-shadow: inset 0 0 0 2px #CDCDC6; cursor: pointer; }
.cr__box:checked { background: var(--mf-ink); box-shadow: none; }
.cr__box:checked::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid var(--mf-yellow); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.cr__box:disabled { opacity: .45; cursor: default; }
.cr__photo { display: block; width: 76px; height: 76px; border-radius: 14px; overflow: hidden; background: var(--mf-brand-grey); }
.cr__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cr__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cr__meta { order: 1; font-size: 13px; color: var(--mf-muted); }
.cr__title { order: 0; font-size: 15px; font-weight: 600; line-height: 1.3; text-decoration: none; overflow-wrap: anywhere; }
.cr__price { order: 2; white-space: nowrap; margin-top: 2px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.cr__deal { order: 3; font-size: 13px; color: var(--mf-muted); }
.cr__warn { order: 4; font-size: 13px; color: var(--mf-ink); font-weight: 600; }
.cr__tools { display: flex; gap: 8px; }
.cr__tools .act { width: 32px; height: 32px; background: transparent; color: var(--mf-muted); }
.cr__tools form:first-child { display: none; }
.cr__check { display: flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 12px; border-top: 1px solid var(--mf-line); font-size: 14px; cursor: pointer; }
.cr__check-t { flex: 1; }
.cr__wish { padding-bottom: 10px; }
.cr__wish summary { width: fit-content; color: var(--mf-muted); font-size: 13px; cursor: pointer; }
.cr__wish textarea { margin-top: 10px; }
/* cart: totals and the pay bar */
.ct__sum { padding: 6px 16px; border-radius: var(--mf-r-block); background: var(--mf-surface); }
.ct__t { display: none; }
.ct__sum .kv { margin: 0; padding: 10px 0; border: 0; border-radius: 0; overflow: visible; font-size: 14px; line-height: 17px; }
.ct__sum .kv b { font-weight: 600; }
.ct__sum .rows { border-bottom: 1px solid var(--mf-line); }
.ct__sum .rows > :last-child { border-bottom: 0; }
.ct__auto { display: flex; gap: 10px; padding: 12px 0; cursor: pointer; }
.ct__abox { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--mf-ink); }
.ct__auto b { display: block; font-size: 14px; font-weight: 500; line-height: 17px; }
.ct__auto small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.4; color: var(--mf-muted); }
.ct__bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 12px var(--mf-gutter) calc(26px + env(safe-area-inset-bottom)); border-top: 1px solid var(--mf-border); background: var(--mf-surface); }
.ct__due { display: flex; flex-direction: column; }
.ct__due span { font-size: 12px; color: var(--mf-muted); }
.ct__due b { font-size: 24px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.ct__pay { flex: 1; }
.ct__offer { margin: 0; padding: 0 0 12px; font-size: 12px; line-height: 1.4; color: var(--mf-muted); }
/* payment dialogs */
.pay { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 8px; text-align: center; }
.pay .dlg__title { padding-right: 0; }
.pay__what { margin: 0; font-size: 14px; color: var(--mf-muted); }
.pay__sum { margin: 0; font-size: 40px; font-weight: 800; letter-spacing: -.05em; line-height: 1.1; }
.dlg[id^="dlg-pay-"] .dlg__close .ic, #dlg-topup .dlg__close .ic { width: 18px; height: 18px; }
@media (max-width: 1023px) {
  .pay--box { align-items: stretch; gap: 4px; margin-top: 8px; padding: 18px 16px; border-radius: 18px; background: var(--mf-brand-grey); text-align: left; }
  .pay--box .pay__what, .pay--box .pay__src { font-size: 13px; }
  .pay--box .pay__sum { font-size: 34px; letter-spacing: -.045em; }
  #dlg-pay-confirm .dlg__actions { gap: 8px; }
  #dlg-pay-confirm .pay--box { margin-top: 48px; }
  .dlg[id^="dlg-pay-"] .dlg__close { top: 42px; }
  #dlg-topup .dlg__close { top: 34px; }
}
.pay__src, .pay__note { margin: 0; font-size: 14px; color: var(--mf-muted); }
.pay__src { display: flex; align-items: center; justify-content: center; gap: 6px; }
@media (max-width: 1023px) { .pay__src { justify-content: flex-start; } .pay__src .ic { display: none; } }
.pay__ic { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: var(--mf-yellow); }
.pay__ic .ic { width: 36px; height: 36px; stroke-width: 2.2; }
.pay__ic--wait, .pay__ic--bad { background: var(--mf-brand-grey); }
/* favourites */
.fav-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.fav-head__t { display: flex; align-items: baseline; gap: 10px; margin-right: auto; }
.fav-count { font-size: 14px; }
.fav-auto { display: none; }
.fav-head .select-btn { min-height: 0; height: 36px; padding: 0 12px; gap: 4px; border: 0; border-radius: var(--mf-r-chip); background: var(--mf-brand-grey); font-size: 13px; font-weight: 600; }
.fav-head .menu { border: 0; border-radius: 16px; }
.fav-pills { gap: 8px; margin-bottom: 16px; }
.fav-pills .pill { min-height: 0; height: 38px; padding: 0 16px; border: 0; border-radius: 11px; background: var(--mf-surface); font-size: 14px; }
.fav-pills .pill[aria-current="true"] { background: var(--mf-yellow); font-weight: 700; }
.fav-grid .pc__bottom { flex-wrap: wrap; gap: 6px; }
.fav-grid .pc__bottom .act:not(.act--text) { width: 32px; height: 32px; }
.fav-grid .act--text { flex: 1 0 100%; height: 36px; border-radius: var(--mf-r-chip); background: var(--mf-brand-grey); font-weight: 600; }
.fav-recent { margin-top: 32px; }
.fav-recent .h2 { margin-bottom: 16px; }
.cart-page .empty, .fav-page .empty { gap: 0; padding: 48px 24px 40px; }
.cart-page .empty :is(img,.empty__icon), .fav-page .empty :is(img,.empty__icon) { box-sizing: content-box; width: 32px; height: 32px; margin: 0 0 20px; padding: 16px; border-radius: 50%; background: var(--mf-yellow); }
.cart-page .empty h2, .fav-page .empty h2 { margin-bottom: 8px; font-size: 22px; font-weight: 800; }
.cart-page .empty p, .fav-page .empty p { margin-bottom: 24px; }
.cart-page .empty .btn, .fav-page .empty .btn { width: auto; min-height: 0; height: 48px; padding: 0 24px; border: 0; border-radius: var(--mf-r-control); background: var(--mf-ink); color: var(--mf-surface); font-size: 15px; font-weight: 600; }
@media (min-width: 1024px) {
  .page.cart-page, .page.fav-page { padding-block: 32px 56px; }
  .ct-h1, .ct-head { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .ct-head { display: flex; align-items: baseline; gap: 12px; }
  .ct-h1 { margin-bottom: 20px; }
  .ct { display: grid; grid-template-columns: minmax(0, 1fr) 420px; column-gap: 20px; row-gap: 20px; align-items: start; }
  .ct-head { grid-column: 1 / -1; margin: 0; }
  .ct-head .muted { font-size: 15px; }
  .cr { padding: 20px; }
  .cr__main { grid-template-columns: 22px 112px minmax(0, 1fr) auto; gap: 18px; align-items: center; }
  .cr__photo { width: 112px; height: 112px; border-radius: var(--mf-r-image); }
  .cr__body { gap: 6px; }
  .cr__meta { font-size: 12px; }
  .cr__title { font-size: 17px; }
  .cr__price { font-size: 22px; }
  .cr__tools { align-self: start; gap: 8px; }
  .cr__tools .act { width: 40px; height: 40px; background: var(--mf-bg); color: var(--mf-ink); }
  .cr__tools form:first-child { display: block; }
  .cr__check { margin-top: 16px; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--mf-bg); font-size: 15px; }
  .cr__check-t { font-weight: 700; }
  .cr__check-t .muted { margin-left: 8px; font-weight: 400; }
  .cr__wish { padding: 12px 0 0; }
  .ct__sum { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--mf-r-card); }
  .ct__t { display: block; margin-bottom: 6px; }
  .ct__sum .kv { font-size: 15px; }
  .ct__auto { flex-direction: row-reverse; justify-content: space-between; align-items: center; }
  .ct__abox { appearance: none; -webkit-appearance: none; position: relative; width: 48px; height: 28px; margin: 0; border-radius: 14px; background: var(--mf-toggle-off); cursor: pointer; }
  .ct__abox::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--mf-surface); transition: transform .15s; }
  .ct__abox:checked { background: var(--mf-yellow); }
  .ct__abox:checked::after { transform: translateX(20px); }
  .ct__due span { font-weight: 700; }
  .ct__sum .rows { border-bottom: 0; }
  .ct__auto { margin-top: 8px; padding: 14px; border-radius: 14px; background: var(--mf-bg); }
  .ct__bar { position: static; flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 0 0; border-top: 0; background: transparent; }
  .ct__due { flex-direction: row; align-items: baseline; justify-content: space-between; }
  .ct__due span { font-size: 15px; color: var(--mf-ink); }
  .ct__due b { font-size: 28px; }
  .ct__pay { flex: none; width: 100%; }
  .ct__offer { padding: 8px 0 0; }
  .fav-head { margin-bottom: 20px; }
  .fav-head .h1 { font-size: 36px; }
  .fav-count { font-size: 15px; }
  .fav-auto { display: inline-flex; }
  .fav-recent { margin-top: 48px; }
  .cart-page .empty, .fav-page .empty { padding-block: 64px; }
  .cart-page .empty :is(img,.empty__icon), .fav-page .empty :is(img,.empty__icon) { width: 40px; height: 40px; padding: 28px; margin-bottom: 24px; }
  .cart-page .empty h2, .fav-page .empty h2 { font-size: 28px; }
  .cart-page .empty .btn, .fav-page .empty .btn { min-width: 220px; height: 50px; }
}
/* ── /p-cart ── */
/* ── p-orders ── */
.page.ord-page { padding-block: 20px 24px; }
.ord__h1 { margin: 0; }
.ord__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.ord__tabs { display: flex; gap: 4px; padding: 3px; border-radius: 14px; background: var(--mf-brand-grey); overflow-x: auto; }
.ord__tabs a { flex: 1; display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 14px; border-radius: 11px; color: var(--mf-muted); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ord__tabs a[aria-current] { background: var(--mf-surface); color: var(--mf-ink); }
.ord__list { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ord__search { position: relative; }
.ord__search .ic { position: absolute; left: 14px; top: 13px; width: 20px; height: 20px; color: var(--mf-muted); pointer-events: none; }
.ord__search .input { padding-left: 42px; }
.ordc { padding: 14px; border-radius: var(--mf-r-block); background: var(--mf-surface); }
.ordc__top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ordc__no { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.ordc__date { display: none; margin-left: auto; font-size: 13px; color: var(--mf-muted); }
.ordc__top .badge { margin-left: auto; }
.ordc__more { display: none; }
.ordc__row { display: flex; flex-direction: column; gap: 12px; }
.ordc__item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-decoration: none; }
.ordc__item img, .ordc__ph { display: block; width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: var(--mf-brand-grey); }
.ordc__t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ordc__name { font-size: 15px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.ordc__price { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.ordc__go { color: var(--mf-muted); }
.ordc__acts { display: flex; gap: 8px; }
.ordc__acts .btn { flex: 1 0 auto; min-width: 0; text-decoration: none; }
.ord__helpm { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border: 0; border-radius: var(--mf-r-button); background: var(--mf-brand-grey); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.ord__help { display: none; }
/* order: status steps (the line runs centre to centre; 24 px dots on the phone, 32 px on the PC) */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; color: var(--mf-muted); text-align: center; }
.step::before { content: ""; position: absolute; top: 11px; right: 50%; width: 100%; height: 2px; background: var(--mf-track); }
.step:first-child::before { display: none; }
.step--done::before, .step--now::before { background: var(--mf-ink); }
.step__dot { position: relative; z-index: 1; display: grid; place-items: center; box-sizing: border-box; width: 24px; height: 24px; border: 2px solid var(--mf-toggle-off); border-radius: 50%; background: var(--mf-surface); }
.step--done .step__dot { border: 0; background: var(--mf-yellow); color: var(--mf-ink); }
.step--now .step__dot { border-color: var(--mf-ink); border-width: 3px; background: var(--mf-yellow); }
.step--now .step__dot::after { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--mf-ink); }
.step--done, .step--now { color: var(--mf-ink); }
.step--now { font-weight: 700; }
.step__dot .ic { width: 12px; height: 12px; stroke-width: 3; }
/* order detail and window */
.od { display: flex; flex-direction: column; gap: 12px; }
.od .od__title { display: none; margin-bottom: 4px; }
.od__photos, .od__h2--side { display: none; }
.od__title .badge { display: none; }
.od__grid, .od__col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.od__main, .od__photos { padding: 16px; border-radius: var(--mf-r-block); background: var(--mf-surface); }
.od__main { display: flex; flex-direction: column; gap: 16px; }
.od__side { display: flex; flex-direction: column; gap: 12px; }
.od__item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.od__item img, .od__ph { display: block; width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: var(--mf-brand-grey); }
.od__it { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.od__bm { align-self: flex-start; }
.od__name { font-size: 15px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.od__cond { font-size: 13px; color: var(--mf-muted); }
.od__price { display: none; font-size: 18px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.od__h2 { margin: 0 0 12px; font: var(--mf-h3); letter-spacing: var(--mf-tracking-h2); }
.od__shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.od__shots button { padding: 0; border: 0; border-radius: var(--mf-r-image); overflow: hidden; background: var(--mf-brand-grey); cursor: pointer; }
.od__shots img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.od__rows { margin: 0; padding: 6px 16px; border-radius: var(--mf-r-block); background: var(--mf-surface); }
.od__rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; font-size: 14px; }
.od__rows dt { color: var(--mf-muted); }
.od__rows dd { margin: 0; font-weight: 600; text-align: right; }
.od__rows .od__total { border-top: 1px solid var(--mf-line); }
.od__rows .od__total dt { font-weight: 600; }
.od__rows .od__total dd { font-weight: 800; }
.od__note { margin: 0; padding: 0 4px; font-size: 13px; line-height: 1.45; color: var(--mf-muted); }
.od__quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.od__q { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 12px; border: 0; border-radius: 13px; background: var(--mf-track); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.od__pay { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px var(--mf-gutter) calc(26px + env(safe-area-inset-bottom)); border-top: 1px solid var(--mf-border); background: var(--mf-surface); }
.has-actbar .page.ord-page { padding-bottom: 110px; }
.od__support { display: none; margin-top: 12px; }
.od--win { display: block; }
.od__wh { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding-right: 44px; }
.od--win .dlg__title { margin: 0; }
.od--win .od__rows { margin-top: 12px; }
/* delivery payment sheet and «delivery paid» */
.dp { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0 4px; text-align: center; }
.dp__k { font-size: 14px; color: var(--mf-muted); }
.dp__sum { font-size: 40px; font-weight: 800; letter-spacing: -.05em; line-height: 1.1; }
.dp__sum--sm { font-size: 20px; letter-spacing: -.03em; }
.dp--row { flex-direction: row; justify-content: space-between; padding: 12px 16px; border-radius: 18px; background: var(--mf-bg); }
.dp__wallet { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 16px; font-size: 14px; color: var(--mf-muted); }
#dlg-paydel .dlg__title, #dlg-topup .dlg__title, .dlg[id^="dlg-pay-"] .dlg__title { font-weight: 800; letter-spacing: -.03em; }
@media (max-width: 1023px) {
  #dlg-paydel .dlg__close { top: 34px; }
  #dlg-paydel .dlg__close .ic { width: 18px; height: 18px; }
  #dlg-paydel .dp { align-items: stretch; gap: 4px; margin-top: 8px; padding: 18px 16px; border-radius: 18px; background: var(--mf-brand-grey); text-align: left; }
  #dlg-paydel .dp__k { font-size: 13px; }
  #dlg-paydel .dp__sum { font-size: 34px; letter-spacing: -.045em; }
  #dlg-paydel .dp__wallet { display: none; }
  #dlg-paydel .dlg__actions, #dlg-topup .dlg__actions, #dlg-pay-confirm .dlg__actions { margin-top: 16px; }
}
.dpaid { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 74px 0 24px; text-align: center; }
.dpaid__ic { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: var(--mf-yellow); }
.dpaid__ic .ic { width: 36px; height: 36px; stroke-width: 2.2; }
.dpaid__h1 { margin: 12px 0 0; font-size: 30px; font-weight: 800; letter-spacing: -.06em; }
.dpaid__no, .dpaid__note { margin: 0; font-size: 14px; color: var(--mf-muted); }
.dpaid__note { max-width: 320px; }
.dpaid__sum { margin: 8px 0 8px; font-size: 44px; font-weight: 800; letter-spacing: -.05em; }
.dpaid__act { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px var(--mf-gutter) calc(26px + env(safe-area-inset-bottom)); border-top: 1px solid var(--mf-border); background: var(--mf-surface); }
/* wallet */
.wl { display: flex; flex-direction: column; gap: 16px; }
.wl__h1 { margin: 0; display: none; }
.wl__top { display: flex; flex-direction: column; gap: 12px; }
.wl__bal, .wl__topup { padding: 16px; border-radius: var(--mf-r-block); background: var(--mf-surface); }
.wl__bal { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; gap: 2px 12px; padding: 18px 16px; border-radius: 22px; background: var(--mf-brand-grey); }
.wl__k { font-size: 13px; color: var(--mf-muted); }
.wl__sum { margin: 0; font-size: 36px; font-weight: 800; letter-spacing: -.05em; line-height: 1.2; }
.wl__id { grid-column: 2; grid-row: 1 / 3; align-self: start; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 0; border-radius: 8px; background: var(--mf-surface); color: var(--mf-muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.wl__id .ic { width: 14px; height: 14px; }
.wl__topup { display: flex; flex-direction: column; gap: 12px; }
.wl__h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.03em; }
.wl__h2--hist { font-size: 20px; letter-spacing: -.035em; }
.wl__amt .input { height: 54px; border: 0; border-radius: 14px; background: var(--mf-bg); font-size: 20px; font-weight: 800; }
.wl__quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.wl__quick button { height: 40px; padding: 0; border: 0; border-radius: 11px; background: var(--mf-bg); font: inherit; font-size: 14px; cursor: pointer; }
.wl__quick button[aria-pressed="true"] { background: var(--mf-yellow); font-weight: 700; }
.wl__quick .wl__cart { grid-column: 1 / -1; }
.wl__hist { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.wl__hh { display: flex; flex-direction: column; gap: 10px; }
.wl__tabs { display: flex; gap: 4px; padding: 3px; border-radius: 14px; background: var(--mf-brand-grey); overflow-x: auto; }
.wl__tabs a { flex: 1; display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 12px; border-radius: 11px; color: var(--mf-muted); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.wl__tabs a[aria-current] { background: var(--mf-surface); color: var(--mf-ink); }
.wl__tw { overflow-x: auto; padding: 4px 16px; border-radius: var(--mf-r-block); background: var(--mf-surface); }
.wl__tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.wl__tbl th { padding: 8px 12px 8px 0; text-align: left; font-size: 12px; font-weight: 600; color: var(--mf-muted); }
.wl__tbl td { padding: 12px 12px 12px 0; border-top: 1px solid var(--mf-line); }
.wl__plus { color: var(--mf-status-ok-fg); font-weight: 700; }
.wl__empty { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--mf-r-block); background: var(--mf-surface); }
.wl__eic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--mf-bg); }
.wl__eic-m { display: grid; place-items: center; }
.wl__eic-d { display: none; }
.wl__et { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--mf-muted); }
.wl__et b { font-size: 15px; font-weight: 700; color: var(--mf-ink); }
.wl__note { margin: 0; font-size: 13px; color: var(--mf-muted); }
@media (min-width: 1024px) {
  .page.ord-page { padding-block: 32px 56px; }
  .ord__head { flex-direction: row; align-items: center; justify-content: space-between; }
  .ord__grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
  .ord__helpm { display: none; }
  .ord__help { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px; border-radius: var(--mf-r-block); background: var(--mf-track); color: var(--mf-ink); }
  .ord__help-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--mf-yellow); color: var(--mf-ink); }
  .ord__help-t { margin-bottom: 8px; font-size: 14px; color: var(--mf-muted); }
  .ordc__row { flex-direction: row; align-items: center; justify-content: space-between; }
  .ordc__item { flex: 1; min-width: 0; }
  .ordc__go { display: none; }
  .ordc__date { display: block; }
  .ordc__top .badge { margin-left: 0; }
  .ordc__more { display: inline-flex; }
  .ord__tabs { align-self: flex-start; }
  .ord__tabs a { flex: none; height: 30px; font-size: 13px; }
  .ordc__acts { flex: none; }
  .steps { margin: 0; }
  .step { gap: 10px; font-size: 14px; }
  .step::before { top: 15px; height: 3px; }
  .step__dot { width: 32px; height: 32px; }
  .step--now .step__dot { border: 0; background: var(--mf-ink); box-shadow: 0 0 0 5px var(--mf-yellow); }
  .step--now .step__dot::after { display: none; }
  .step__dot .ic { width: 16px; height: 16px; }
  .od .od__title { display: flex; }
  .od__photos, .od__h2--side { display: block; }
  .od__main { gap: 24px; }
  .od__mp { display: none; }
  .od__side { padding: 24px; border-radius: var(--mf-r-block); background: var(--mf-surface); }
  .od__main, .od__photos { padding: 28px; }
  .od__main .steps { order: -1; }
  .od__item { padding: 12px 16px 12px 12px; border-radius: 16px; background: var(--mf-bg); }
  .od__note { padding: 12px 14px; border-radius: 14px; background: var(--mf-bg); }
  .od__rows { padding: 0; border-radius: 0; background: none; }
  .od__rows .od__total { font-size: 16px; }
  .od__price { display: block; }
  .od__pay { position: static; margin-top: 14px; padding: 0; border: 0; background: none; }
  .has-actbar .page.ord-page { padding-bottom: 56px; }
  .od__title .badge { display: inline-flex; }
  .od__bm { display: none; }
  .od__grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 20px; align-items: start; }
  .od__shots { grid-template-columns: repeat(4, 1fr); }
  .od__support { display: flex; }
  .od__quick { display: none; }
  .dpaid { width: 560px; max-width: 100%; margin: 72px auto 96px; padding: 48px 40px; gap: 14px; border-radius: var(--mf-r-block); background: var(--mf-surface); } /* 08-3: a white card */
  .dpaid__ic { width: 88px; height: 88px; }
  .dpaid__h1 { margin-top: 8px; }
  .dpaid__no { font-size: 15px; }
  .dpaid__sum { margin: 0; }
  .dpaid__note { box-sizing: border-box; width: 100%; max-width: none; padding: 14px 16px; border-radius: 14px; background: var(--mf-bg); line-height: 1.45; }
  .dpaid__act { position: static; width: 100%; padding: 8px 0 0; border: 0; background: none; }
  .wl__h1 { display: block; }
  .wl__top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .wl__bal { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--mf-r-block); }
  .wl__k { font-size: 15px; }
  .wl__sum { font-size: 64px; line-height: 1; }
  .wl__id { align-self: flex-start; margin-top: auto; height: 36px; padding: 0 14px; border-radius: var(--mf-r-chip); font-size: 13px; }
  .wl__topup { gap: 16px; padding: 28px; }
  .wl__h2 { font: var(--mf-h3); letter-spacing: var(--mf-tracking-h2); }
  .wl__amt { order: 3; }
  .wl__amt .input { height: 48px; font-size: 15px; font-weight: 400; }
  .wl__go { order: 4; }
  .wl__hist { gap: 16px; margin-top: 0; padding: 28px; border-radius: var(--mf-r-block); background: var(--mf-surface); }
  .wl__hh { flex-direction: row; align-items: center; justify-content: space-between; }
  .wl__empty, .wl__tw { padding: 0; background: none; }
  .wl__empty { flex-direction: column; justify-content: center; gap: 10px; padding: 40px 0; text-align: center; }
  .wl__eic { width: 56px; height: 56px; }
}
/* ── /p-orders ── */
/* ── p-profile ── */
/* shared: `.pf-m` is for the phone only, `.pf-pc` for the PC only (breakpoint 1024) */
@media (max-width: 1023.98px) { .pf-pc { display: none !important; } }
@media (min-width: 1024px) { .pf-m { display: none !important; } }
.page.prof { padding-block: 20px 24px; }
body[data-page="profile"] .main { display: block; } /* guests: the shared auth-shell centering would float the FAQ/support content */
.pf { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pf-h1 { margin: 0; font: var(--mf-h1); letter-spacing: var(--mf-tracking-h1); }
.pf-title { display: flex; align-items: center; gap: 12px; }
.pf-back { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mf-surface); color: var(--mf-ink); }
.pf-note { margin: 4px 4px 0; font-size: 13px; color: var(--mf-muted); }
.pf-card2 { padding: 4px 16px; border-radius: var(--mf-r-block); background: var(--mf-surface); }
/* profile head */
.pf-head { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.pf-ava, .side__ava { flex: none; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--mf-ink); color: var(--mf-yellow); font-size: 22px; font-weight: 800; }
.pf-ava--lg { width: 72px; height: 72px; font-size: 28px; }
.pf-who { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pf-name { margin: 0; line-height: 1.15; font-size: 22px; font-weight: 800; letter-spacing: -.035em; overflow-wrap: anywhere; }
.pf-tags { display: flex; gap: 8px; }
.pf-tg { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mf-muted); }
.pf-tg::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mf-toggle-off); }
.pf-tg--on::before { background: var(--mf-online); }
.pf-tier { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; background: var(--mf-bg); font-size: 12px; font-weight: 600; }
.pf-edit { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--mf-r-control); background: var(--mf-brand-grey); color: var(--mf-ink); font-size: 15px; font-weight: 600; text-decoration: none; }
/* wallet */
.pf-wallet { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l id" "sum sum" "act act"; align-items: start; gap: 2px 8px; padding: 16px; border-radius: 20px; background: var(--mf-brand-grey); }
.pf-wallet__l { grid-area: l; font-size: 13px; color: var(--mf-muted-on-grey); }
.pf-wallet__sum { grid-area: sum; font-size: 32px; font-weight: 800; letter-spacing: -.045em; line-height: 1.1; }
.pf-id { grid-area: id; margin-bottom: -10px; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 0; border-radius: 8px; background: var(--mf-surface); color: var(--mf-muted-on-grey); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.pf-id .ic { width: 14px; height: 14px; }
.pf-wallet__act { grid-area: act; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.pf-b { display: flex; align-items: center; justify-content: center; height: 44px; padding: 0 14px; border: 0; border-radius: var(--mf-r-control); font: inherit; font-size: 14px; font-weight: 600; color: var(--mf-ink); text-decoration: none; cursor: pointer; }
.pf-b--main { background: var(--mf-surface); font-weight: 700; }
.pf-b--side { background: var(--mf-bg); }
/* subscription block */
.pf-sub { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; background: var(--mf-yellow); color: var(--mf-ink); text-decoration: none; }
.pf-sub__ic { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--mf-ink); color: var(--mf-yellow); }
.pf-sub__txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pf-sub__txt b { font-size: 15px; font-weight: 700; line-height: 1.25; }
.pf-sub__txt > span { font-size: 13px; line-height: 1.3; color: #3B3E2C; }
.pf-sub__go { display: flex; }
/* phone list */
.pf-list { padding: 4px 16px; border-radius: 20px; background: var(--mf-surface); }
.pf-list a { display: flex; align-items: center; gap: 12px; height: 54px; border-bottom: 1px solid var(--mf-line); color: var(--mf-ink); font-size: 15px; text-decoration: none; }
.pf-list a:last-child { border-bottom: 0; }
.pf-list span { flex: 1; }
.pf-list em { font-style: normal; font-size: 14px; color: var(--mf-muted); }
.pf-list__go { color: var(--mf-muted); }
.pf-out { align-self: center; padding: 8px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--mf-muted); cursor: pointer; }
/* profile menu of the PC */
.side__me { display: flex; align-items: center; gap: 12px; padding: 10px 10px 16px; }
.side__ava { width: 48px; height: 48px; font-size: 19px; }
.side__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.side__who b { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.side__who span { font-size: 12px; color: var(--mf-muted); }
.side a[aria-current="page"] { font-weight: 700; }
/* notifications */
.pf-tgc { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "ic t act" "d d d" "lk lk lk"; align-items: center; gap: 0 12px; padding: 16px; border-radius: 22px; background: var(--mf-brand-grey); }
.pf-tgc__s { display: contents; }
.pf-tgc__ic { grid-area: ic; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--mf-yellow); }
.pf-tgc__t { grid-area: t; display: flex; flex-direction: column; gap: 2px; font-size: 16px; line-height: 1.25; }
.pf-tgc__st { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mf-muted-on-grey); }
.pf-tgc__st i { width: 7px; height: 7px; border-radius: 50%; background: var(--mf-toggle-off); }
.pf-tgc__st--on i { background: var(--mf-online); }
.pf-tgc__act { grid-area: act; margin: 0; }
.pf-tgc__d { grid-area: d; margin: 12px 0 0; font-size: 13px; line-height: 1.45; color: var(--mf-muted-on-grey); }
.pf-tgc__link { grid-area: lk; margin-top: 12px; }
.pf-tgc__link:empty { display: none; }
.pf-tgc__link p { margin: 0 0 8px; font-size: 13px; color: var(--mf-muted-on-grey); }
.pf-b--tg { height: 34px; padding: 0 12px; border-radius: 10px; background: var(--mf-surface); font-size: 13px; }
.pf-gh { margin: 12px 4px 0; font-size: 13px; font-weight: 600; color: var(--mf-muted); }
.pf-rows > * { border-bottom: 1px solid var(--mf-line); }
.pf-rows > *:last-child { border-bottom: 0; }
.pf-row { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.pf-row--solo { padding-block: 0; }
.pf-row__ic { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--mf-bg); font-weight: 800; }
.pf-row__t { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pf-row__t b { font-size: 15px; font-weight: 600; line-height: 1.25; }
.pf-row__t > span, .pf-row__t b + span { line-height: 1.3; font-size: 13px; color: var(--mf-muted); }
.pf-row .switch { width: 44px; height: 26px; border-radius: 13px; background: var(--mf-toggle-off); }
.pf-row .switch::after { top: 3px; left: 3px; width: 20px; height: 20px; }
.pf-row .switch:checked { background: var(--mf-yellow); }
.pf-row .switch:checked::after { transform: translateX(18px); }
.pf-more { display: flex; align-items: center; justify-content: space-between; height: 52px; color: var(--mf-ink); font-size: 14px; font-weight: 600; text-decoration: none; }
/* FAQ: native <details name>, the circle is CSS (AC-19.3) */
.faq { padding: 4px 16px; }
.pf-card2.faq { margin-top: 0; }
.faq__item { border-bottom: 1px solid var(--mf-line); }
.faq__item:last-child { border-bottom: 0; }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__sign { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--mf-bg); }
.faq__sign::before, .faq__sign::after { content: ""; position: absolute; left: 8px; top: 13px; width: 12px; height: 2px; border-radius: 1px; background: var(--mf-ink); }
.faq__sign::after { transform: rotate(90deg); }
.faq__item[open] .faq__sign { background: var(--mf-yellow); }
.faq__item[open] .faq__sign::after { display: none; }
.faq__item p { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: var(--mf-muted); }
.pf-ask { display: flex; }
.pf-ask__btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 14px; background: var(--mf-brand-grey); color: var(--mf-ink); font-size: 15px; font-weight: 600; text-decoration: none; }
/* support form (the sheet and the PC page) */
.sup { display: flex; flex-direction: column; gap: 16px; }
.sup .field { margin: 0; gap: 8px; }
.sup .input { height: 48px; border-radius: 12px; border: 0; background: var(--mf-bg); font-weight: 400; }
.sup textarea.input { height: 104px; padding: 12px 14px; resize: none; }
.sup__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sup__hint { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; color: var(--mf-muted); }
.pf-contact { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: 22px; background: var(--mf-brand-grey); }
.pf-contact__t { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pf-contact__t b { font-size: 16px; }
.pf-contact__t span { font-size: 13px; color: var(--mf-muted-on-grey); }
/* personal data */
.pf-acc { display: flex; flex-direction: column; gap: 20px; padding: 16px; }
.pf-form { display: flex; flex-direction: column; gap: 20px; }
.pf-fields { display: grid; grid-template-columns: 1fr; gap: 14px; }
.pf-fields .field { margin: 0; gap: 8px; }
.pf-fields .input { height: 48px; border: 0; border-radius: 12px; background: var(--mf-bg); }
.pf-tgbox { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--mf-bg); }
.pf-tgbox__ic { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--mf-yellow); }
.pf-tgbox__t { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--mf-muted); min-width: 0; }
.pf-tgbox__t b { font-size: 15px; color: var(--mf-ink); }
.pf-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
/* login and documents: no mockup, styleguide tokens */
.auth-shell .main > .wrap { min-width: 0; }
.login-card { padding: 28px 24px; border-radius: var(--mf-r-block); background: var(--mf-surface); }
.login-card .auth__h { margin: 0 0 8px; font: var(--mf-h1); letter-spacing: var(--mf-tracking-h1); }
.login-card .login-sub, .login-card .tg-steps { color: var(--mf-muted); }
.legal-doc { max-width: 860px; padding: 24px 20px; border-radius: var(--mf-r-block); background: var(--mf-surface); }
.legal-doc h1 { margin: 0 0 12px; font: var(--mf-h1); letter-spacing: var(--mf-tracking-h1); }
.legal-nav a { color: var(--mf-muted); text-decoration: none; }
.legal-nav a[aria-current="page"] { color: var(--mf-ink); font-weight: 700; background: var(--mf-yellow); border-radius: 8px; padding: 2px 8px; }
/* PC */
@media (min-width: 1024px) {
  .pf-h1 { font-size: 36px; font-weight: 900; letter-spacing: -.045em; }
  .page.prof { padding-block: 32px 72px; }
  .pf { gap: 20px; }
  .pf-note { margin: 0; }
  .pf-card2 { padding: 8px 24px; }
  .pf-head { padding: 28px; border-radius: 20px; background: var(--mf-surface); gap: 20px; margin: 0; }
  .pf-ava { width: 80px; height: 80px; font-size: 32px; font-weight: 900; }
  .pf-who { gap: 8px; }
  .pf-name { font-size: 28px; font-weight: 900; }
  .pf-tags { gap: 8px; }
  .pf-tg { display: inline-flex; height: 24px; padding: 0 9px; border-radius: 7px; background: var(--mf-status-ok-bg); color: var(--mf-status-ok-fg); font-size: 12px; font-weight: 600; }
  .pf-tg::before { display: none; }
  .pf-tg:not(.pf-tg--on) { background: var(--mf-status-wait-bg); color: var(--mf-status-wait-fg); }
  .pf:has(> .pf-cards) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .pf-head, .pf-cards, .pf-h1, .pf-title { grid-column: 1 / -1; }
  .pf-wallet { grid-template-areas: "l id" "sum sum" "act act"; gap: 12px 8px; padding: 24px; border-radius: 20px; background: var(--mf-surface); align-items: center; }
  .pf-wallet__l { font-size: 15px; color: var(--mf-muted); }
  .pf-wallet__sum { font-size: 44px; font-weight: 900; letter-spacing: -.05em; line-height: 1.1; }
  .pf-id { height: 30px; background: var(--mf-brand-grey); font-size: 13px; color: var(--mf-ink); }
  .pf-wallet__act { margin-top: 0; gap: 8px; }
  .pf-wallet .pf-b { height: 48px; border-radius: var(--mf-r-control); font-size: 15px; }
  .pf-wallet .pf-b--main { background: var(--mf-ink); color: var(--mf-surface); }
  .pf-wallet .pf-b--side { background: var(--mf-brand-grey); }
  .pf-sub { flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; border-radius: 22px; background: var(--mf-brand-grey); }
  .pf-sub__ic { width: 44px; height: 44px; background: var(--mf-yellow); color: var(--mf-ink); }
  .pf-sub__txt { flex: none; gap: 4px; }
  .pf-sub__txt b { font-size: 18px; }
  .pf-sub__txt > span { font-size: 13px; color: var(--mf-muted-on-grey); }
  .pf-sub__btn { margin-top: auto; display: inline-flex; align-items: center; height: 48px; padding: 0 24px; border-radius: var(--mf-r-control); background: var(--mf-yellow); font-size: 15px; font-weight: 700; }
  .pf-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .pf-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 20px; background: var(--mf-surface); color: var(--mf-ink); text-decoration: none; }
  .pf-card > span:last-child { margin-top: -12px; font-size: 13px; color: var(--mf-muted); }
  .pf-card b { font-size: 17px; }
  .pf-card__ic { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--mf-bg); }
  .pf-card em { font-style: normal; }
  /* notifications */
  .pf-tgc { grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "ic t act" "ic d act" "lk lk lk"; gap: 4px 16px; padding: 24px; border-radius: 20px; background: var(--mf-surface); }
  .pf-tgc__ic { width: 52px; height: 52px; border-radius: 14px; }
  .pf-tgc__t { flex-direction: row; align-items: center; gap: 10px; }
  .pf-tgc__t b { font-size: 18px; }
  .pf-tgc__st { height: 24px; padding: 0 9px; border-radius: 7px; background: var(--mf-status-wait-bg); color: var(--mf-status-wait-fg); font-size: 12px; font-weight: 600; }
  .pf-tgc__st--on { background: var(--mf-status-ok-bg); color: var(--mf-status-ok-fg); }
  .pf-tgc__st i { display: none; }
  .pf-tgc__d { font-size: 13px; color: var(--mf-muted); }
  .pf-b--tg { height: 48px; padding: 0 18px; border-radius: var(--mf-r-control); background: var(--mf-brand-grey); font-size: 15px; }
  .pf-ch { margin: 0; padding: 16px 0 6px; font: var(--mf-h3); }
  .pf-row { gap: 14px; padding: 16px 0; min-height: 0; }
  .pf-row--solo { padding: 24px; }
  .pf-more { height: auto; justify-content: flex-start; margin: 0 0 18px; width: max-content; padding: 0 14px; min-height: 40px; gap: 6px; border-radius: 10px; background: var(--mf-brand-grey); }
  /* FAQ */
  .faq { padding: 8px 28px; }
  .faq__item summary { min-height: 0; padding: 20px 0 14px; gap: 16px; font-size: 17px; }
  .faq__item p { margin: 0 48px 18px 0; font-size: 15px; line-height: 1.55; }
  .faq__sign { width: 32px; height: 32px; }
  .faq__sign::before, .faq__sign::after { left: 10px; top: 15px; }
  .pf-ask { align-items: center; gap: 16px; padding: 22px 24px; border-radius: 22px; background: var(--mf-brand-grey); }
  .pf-ask__t { flex: 1; display: flex; flex-direction: column; gap: 2px; }
  .pf-ask__t b { font-size: 16px; }
  .pf-ask__t span { font-size: 13px; color: var(--mf-muted-on-grey); }
  .pf-ask__btn { flex: none; height: 48px; padding: 0 24px; border-radius: var(--mf-r-control); background: var(--mf-ink); color: var(--mf-surface); font-size: 15px; }
  /* support */
  .pf-card2:has(.sup) { padding: 28px; }
  .sup { gap: 22px; }
  .sup .dlg__actions { display: flex; justify-content: flex-end; gap: 10px; }
  .sup .dlg__actions .btn { flex: none; min-width: 140px; }
  .sup .dlg__actions .btn--dark { min-width: 200px; }
  .sup textarea.input { height: 140px; padding: 14px; }
  /* personal data */
  .pf-acc { padding: 28px; }
  .pf-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .pf-actions { display: flex; justify-content: flex-end; gap: 10px; }
  .pf-actions .btn { min-width: 140px; }
  .pf-actions .btn--dark { min-width: 180px; }
  .login-card { padding: 40px 32px; }
  .legal-doc { padding: 40px 48px; }
}
/* ── /p-profile ── */

/* ── service pages (partner API preview, test payment: staff/demo only, no mockup) ── */
.svc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.svc-head p { margin-top: 6px; }
.svc-err { color: var(--mf-danger); font-weight: 600; }
.svc-pay { display: grid; gap: 16px; max-width: 480px; padding: 20px; }
.svc-sum > div { display: flex; justify-content: space-between; gap: 12px; }
.svc-total dd { font-weight: 800; font-size: 20px; }
.svc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.svc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.svc-table th, .svc-table td { padding: 8px 10px; border-bottom: 1px solid var(--mf-line); text-align: left; vertical-align: top; }
.svc-table th { width: 40%; color: var(--mf-muted); font-weight: 600; }

/* ── topbar ── */
.has-nav { padding-bottom: calc(var(--mf-nav-h) + env(safe-area-inset-bottom)); }
.has-actbar { --mf-actbar-h: 76px; padding-bottom: calc(var(--mf-actbar-h) + env(safe-area-inset-bottom)); }
.tb { position: relative; z-index: 3; background: var(--mf-surface); }
.tb__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo . acts"; align-items: center; gap: 10px 8px; padding-top: 10px; padding-bottom: 12px; }
.tb__logo { grid-area: logo; align-self: center; font-size: 24px; line-height: 40px; color: var(--mf-ink); }
.tb__back { grid-area: back; display: none; }
.tb__title { grid-area: title; display: none; min-width: 0; font: var(--mf-h2); letter-spacing: var(--mf-tracking-h2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb--inner .tb__row { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "back title acts"; }
.tb--inner .tb__logo { display: none; }
.tb--inner .tb__back, .tb--inner .tb__title { display: flex; }
.tb--inner .tb__back { align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: -8px; border-radius: 50%; color: var(--mf-ink); text-decoration: none; }
.tb__nav, .tb__wallet { display: none; }
.tb__acts { grid-area: acts; display: flex; align-items: center; gap: 8px; }
.tb__round { position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mf-bg); color: var(--mf-ink); text-decoration: none; }
.tb__round .ic { width: 20px; height: 20px; }
.tb__round.tb__fav { display: none; }
.tb__round[aria-current="page"], .tb__wallet[aria-current="page"] { background: var(--mf-yellow); color: var(--mf-ink); }
@media (max-width: 1023.98px) { .tb--inner .tb__round { background: none; box-shadow: none; } } /* inner screens: bare icons, the current one too (06, 07, 08-1, 08-2) */
.tb__round .badge-count { position: absolute; top: 0; right: 0; display: flex; align-items: center; justify-content: center; min-width: 0; width: 17px; height: 17px; padding: 0; border-radius: 50%; background: var(--mf-ink); color: var(--mf-yellow); font-size: 10px; font-weight: 700; line-height: 1; }
.tb__round .badge-count[hidden] { display: none; }
.tb__letter { display: none; }
.tb__avatar { font-size: 15px; font-weight: 800; }
.tb__avatar[aria-current="page"] { box-shadow: 0 0 0 2px var(--mf-surface), 0 0 0 4px var(--mf-ink); }
.tb .hs { display: none; grid-area: hs; position: relative; max-width: none; margin: 0; }
.tb--search .hs { display: block; }
.tb--search .tb__row { grid-template-areas: "logo . acts" "hs hs hs"; }
.hs__box { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 5px 0 14px; border: 0; border-radius: var(--mf-r-control); background: var(--mf-bg); color: var(--mf-muted); }
.hs__box:focus-within { background: var(--mf-bg); outline: 2px solid var(--mf-ink); outline-offset: 2px; }
.hs__box input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--mf-ink); font: inherit; font-size: 15px; }
.hs__box input::placeholder { color: var(--mf-muted); opacity: 1; }
.hs__lens { width: 20px; height: 20px; }
.hs__photo { flex: none; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 9px; background: var(--mf-yellow); color: var(--mf-ink); cursor: pointer; }
.hs__drop { z-index: 40; border: 1px solid var(--mf-border); border-radius: var(--mf-r-control); box-shadow: 0 12px 32px -12px rgba(26, 28, 26, .25); }
.sg:hover, .sg[aria-selected="true"] { background: var(--mf-bg); }
@media (min-width: 1024px) {
  .tb__row, .tb--inner .tb__row { display: flex; gap: 28px; height: var(--mf-pc-header-h); padding-block: 0; }
  .tb__logo { flex: none; font-size: 28px; }
  .tb--inner .tb__logo { display: inline-flex; }
  .tb--inner .tb__back, .tb--inner .tb__title { display: none; }
  .tb__nav { display: flex; gap: 4px; }
  .tb__nav a { display: flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 11px; color: var(--mf-muted); font-size: 15px; font-weight: 500; text-decoration: none; }
  .tb__nav a:hover { color: var(--mf-ink); }
  .tb__nav a[aria-current="page"] { background: var(--mf-yellow); color: var(--mf-ink); font-weight: 700; }
  .tb .hs { display: block; flex: 1; min-width: 200px; }
  .tb__acts { flex: none; }
  .tb__wallet { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 12px; border-radius: 20px; background: var(--mf-bg); color: var(--mf-ink); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
  .tb__round.tb__fav { display: flex; }
  .tb__avatar { background: var(--mf-ink); color: var(--mf-yellow); }
  .tb__ph { display: none; }
  .tb__letter { display: inline; }
  .tb__round .badge-count { top: -2px; right: -2px; width: 18px; height: 18px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .tb__row, .tb--inner .tb__row { gap: 16px; }
  .tb__nav a { padding: 0 8px; }
}

/* ── nav ── */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: calc(var(--mf-nav-h) + env(safe-area-inset-bottom)); padding: 8px 4px env(safe-area-inset-bottom); border-top: 1px solid var(--mf-border); background: var(--mf-surface); }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; color: var(--mf-muted); text-decoration: none; }
.nav__pill { display: flex; align-items: center; justify-content: center; width: 56px; height: 30px; border-radius: 15px; }
.nav__t { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 11px; font-weight: 500; line-height: 1.2; }
.nav a[aria-current="page"] { color: var(--mf-ink); }
.nav a[aria-current="page"] .nav__pill { background: var(--mf-yellow); }
.nav a[aria-current="page"] .nav__t { font-weight: 700; }

/* ── actbar ── */
.nav, .actbar { transform: translateY(var(--mf-dock-shift, 0px)); }
.actbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px var(--mf-gutter) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--mf-border); background: var(--mf-surface); }
.actbar > .btn { flex: 1; min-width: 0; }
.actbar--col > .btn { flex: none; }
.actbar--col { flex-direction: column; align-items: stretch; gap: 8px; padding-bottom: calc(26px + env(safe-area-inset-bottom)); border-top: 0; background: transparent; pointer-events: none; }
.actbar--col > * { pointer-events: auto; }
.actbar__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.actbar__row .btn { font-size: 15px; }
@media (min-width: 1024px) {
  .nav, .actbar { display: none; }
  .has-nav, .has-actbar { padding-bottom: 0; }
}

/* ── title-row ── */
.title-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.title-row h1 { margin: 0; font: var(--mf-h1); letter-spacing: var(--mf-tracking-h1); }
.title-row__back { display: none; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--mf-surface); color: var(--mf-ink); text-decoration: none; }
@media (min-width: 1024px) { .title-row__back { display: flex; } .title-row { margin-bottom: 28px; } }

/* ── empty ── */
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px 20px; border: 0; border-radius: var(--mf-r-block); background: var(--mf-surface); text-align: center; }
.empty__kicker { align-self: flex-start; margin: 0; color: var(--mf-muted); font: var(--mf-micro); letter-spacing: .06em; text-transform: uppercase; }
.empty :is(img,.empty__icon) { width: 64px; height: 64px; margin: 4px 0 8px; object-fit: contain; }
.empty h2 { margin: 0; font: var(--mf-h2); letter-spacing: var(--mf-tracking-h2); }
.empty p { max-width: 380px; margin: 0 0 12px; color: var(--mf-muted); font-size: 15px; line-height: 1.45; }
.empty .btn { min-width: 0; }
.empty .text-link { display: inline-block; margin-top: 8px; font-size: 15px; font-weight: 600; }
.empty .empty__icon { color: var(--mf-ink); stroke-width: 2.2; }
.empty-grid { grid-column: 1 / -1; }

/* ── side ── */
.prof__side { display: none; }
@media (min-width: 1024px) {
  .prof__grid { display: grid; grid-template-columns: var(--mf-pc-side-w) minmax(0, 1fr); gap: 32px; align-items: start; }
  .prof__side { display: block; }
  .prof__grid--solo { grid-template-columns: minmax(0, 880px); justify-content: center; }
}
.side { display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: var(--mf-r-block); background: var(--mf-surface); }
.side a, .side button { display: flex; align-items: center; gap: 12px; width: 100%; height: 48px; padding: 0 14px; border: 0; border-radius: var(--mf-r-control); background: transparent; color: var(--mf-ink); font: inherit; font-size: 15px; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
.side a:hover, .side button:hover { background: var(--mf-bg); }
.side a[aria-current="page"] { background: var(--mf-yellow); }
.side small { margin-left: auto; color: var(--mf-muted); font-size: 13px; font-weight: 500; }
.side__out { margin-top: 6px; color: var(--mf-muted); }

/* ── dlg-shell ── */
[data-remote-body] { display: flex; flex-direction: column; gap: 18px; }
.dlg__handle { touch-action: none; cursor: grab; }

/* ── foot ── */
.foot { --mf-ix: 219px; --mf-dive-x: 181px; display: flex; flex-direction: column; margin-top: 0; padding-top: 28px; overflow: hidden; border-radius: 28px 28px 0 0; background: var(--mf-footer); color: var(--mf-bg); }
@media (max-width: 1023.98px) { body:has(.actbar, .ct__bar, .od__pay, .dpaid__act, .plans__bar) .foot { display: none; } } /* phone screens with a bottom action bar show no footer in the mockups (03, 05, 06, 07) */
.foot .wrap { padding-inline: 20px; }
.foot a { color: var(--mf-bg); text-decoration: none; }
.foot a:hover { color: var(--mf-yellow); }
.foot .btn--yellow, .foot .btn--yellow:hover { color: var(--mf-ink); }
.foot__top { display: flex; justify-content: space-between; gap: 16px; }
.foot__links { display: flex; flex-direction: column; gap: 9px; }
.foot__col { display: flex; flex-direction: column; gap: 9px; }
.foot__col a { font-size: 13px; font-weight: 800; line-height: 1.2; letter-spacing: .04em; }
.foot__h, .foot__pc { display: none; }
.foot__side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; }
.foot__btns { display: flex; gap: 8px; }
.foot__btns .btn { width: 38px; height: 38px; padding: 0; border-radius: 50%; }
.foot__btns .foot__sup { background: #2F322D; color: var(--mf-bg); }
.foot__lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.foot__tel { font-size: 15px; font-weight: 700; }
.foot__req { color: var(--mf-footer-muted); font-size: 11px; line-height: 1.55; }
.foot__docs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 26px; font-size: 11px; color: var(--mf-footer-muted); }
.foot .foot__docs a { color: var(--mf-footer-muted); }
.foot .foot__docs a:hover { color: var(--mf-yellow); }
.foot__scene { --k: 1; position: relative; width: 100%; height: calc(160px * var(--k)); margin-top: 24px; overflow: hidden; }
.foot__stage { position: absolute; left: 0; top: 0; width: 390px; height: 160px; transform: scale(var(--k)); transform-origin: 0 0; }
.foot__word { position: absolute; left: 18px; font-size: 80px; line-height: 1; font-weight: 800; letter-spacing: -.065em; white-space: nowrap; color: var(--mf-bg); }
.foot__word--top { top: 44px; }
.foot__word.mf-refl { bottom: 38px; opacity: .13; transform-origin: 50% calc(100% - 11px); -webkit-mask-image: linear-gradient(to bottom, transparent 25%, #000 85%); mask-image: linear-gradient(to bottom, transparent 25%, #000 85%); }
.foot__clip { position: absolute; left: 0; right: 0; top: 0; height: 111px; overflow: hidden; }
.mf-ax { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.mf-ay { width: 0; height: 0; }
.mf-fish { position: absolute; left: -17px; top: -11px; width: 34px; height: 22px; }
.mf-fish svg { display: block; }
.mf-ball { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; }
.mf-bob { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--mf-yellow); }
.mf-rip1, .mf-rip2 { position: absolute; top: 106px; width: 36px; height: 10px; border-radius: 50%; border: 1.5px solid var(--mf-yellow); }
.mf-rip1 { left: 334px; }
.mf-rip2 { left: 178px; border-color: var(--mf-bg); }
.foot__wave { position: absolute; display: block; }
.foot__wave--a { left: 0; top: 107px; }
.foot__wave--b { left: -65px; top: 116px; opacity: .45; }
@media (min-width: 1024px) {
  .foot { padding-top: 0; border-radius: 32px 32px 0 0; }
  .foot .wrap { padding-inline: 32px; }
  .foot__top { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 40px; padding-top: 56px; }
  .foot__links { display: contents; }
  .foot__col { gap: 12px; }
  .foot__col a { font-size: 15px; }
  .foot__h { display: block; color: var(--mf-footer-muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; }
  .foot__pc { display: block; }
  .foot__side { gap: 14px; }
  .foot__btns { gap: 10px; }
  .foot__btns .btn { width: auto; height: var(--mf-btn-h-md); padding: 0 18px; border-radius: var(--mf-r-control); }
  .foot__lbl { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .foot__tel { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
  .foot__req { font-size: 13px; line-height: 1.6; }
  .foot__docs { gap: 8px 24px; margin-top: 36px; font-size: 13px; }
  .foot__scene { --k: 2.6; width: 1014px; max-width: 100%; height: 400px; margin: 24px auto 0; }
}

/* ── loading ── */
.ld { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: var(--mf-bg); }
.ld[hidden] { display: none; }
.ld--boot { pointer-events: none; animation: mfBootOut .25s 1s forwards; }
@keyframes mfBootOut { to { opacity: 0; } }
html.is-loading::before { content: ""; position: fixed; z-index: 90; inset: 0 0 auto; height: 3px; background: var(--mf-ink); transform-origin: 0 0; animation: mfProgress 1.4s infinite; }
@keyframes mfProgress { from { transform: scaleX(0); } to { transform: scaleX(1); opacity: .2; } }
.ld__logo { gap: 3px; font-size: 30px; line-height: 1; }
.ld__box { position: relative; width: 260px; height: 260px; }
.ld__scene { position: absolute; left: 0; top: 0; width: 260px; height: 260px; transform-origin: 0 0; }
.ld__ball { position: absolute; left: 75px; top: 75px; width: 110px; height: 110px; border-radius: 50%; background: var(--mf-yellow); }
.ld__arcs { position: absolute; left: 0; top: 0; }
.ld__orbit { position: absolute; left: 0; top: 0; width: 260px; height: 260px; }
.ld__fish { position: absolute; left: 101px; top: 4px; transform: scaleX(-1); }
.ld__bub { position: absolute; border-radius: 50%; background: #CFCFC7; }
.ld__bub--1 { left: 196px; top: 70px; width: 12px; height: 12px; }
.ld__bub--2 { left: 214px; top: 96px; width: 8px; height: 8px; animation-delay: 1s; }
.ld__bub--3 { left: 186px; top: 104px; width: 6px; height: 6px; animation-delay: 2s; }
.ld__t { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.045em; }
.ld__dots { display: flex; gap: 8px; }
.ld__dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--mf-ink); }
.ld__dots span:nth-child(2) { animation-delay: .2s; }
.ld__dots span:nth-child(3) { animation-delay: .4s; }
@media (min-width: 1024px) {
  .ld { gap: 26px; }
  .ld__logo { font-size: 36px; }
  .ld__box { width: 300px; height: 300px; }
  .ld__scene { transform: scale(1.15385); }
  .ld__t { font-size: 30px; }
  .ld__dots span { width: 9px; height: 9px; }
}

/* ── 404 ── */
.nf { display: flex; flex-direction: column; align-items: center; padding: 70px 24px 0; text-align: center; }
.nf-body { --mf-actbar-h: 150px; }
@media (max-width: 1023px) { .nf-body .foot { display: none; } }
.nf__num { position: relative; font-size: 140px; line-height: 1; font-weight: 800; letter-spacing: -.06em; padding-right: .06em; }
.nf__num--pc { display: none; }
.nf__disc { position: absolute; left: 50%; top: 50%; width: 112px; height: 112px; margin: -50px 0 0 -56px; border-radius: 50%; background: var(--mf-yellow); }
.nf__digits { position: relative; }
.nf__fish { position: absolute; right: -14px; top: -30px; transform: rotate(-24deg); }
.nf__h { margin: 36px 0 8px; font-size: 28px; line-height: 1.08; font-weight: 800; letter-spacing: -.045em; }
.nf__p { margin: 0; color: var(--mf-muted); font-size: 15px; line-height: 1.45; }
.nf__btns { display: none; }
.nf__btns--show { display: flex; margin-top: 28px; }
@media (min-width: 1024px) {
  .nf { gap: 20px; padding: 80px 32px 110px; }
  .nf__num--m { display: none; }
  .nf__num--m.nf__num--show { display: block; font-size: 200px; }
  .nf__num--pc { display: flex; align-items: center; gap: 12px; font-size: 200px; line-height: .85; }
  .nf__disc2 { display: inline-flex; align-items: center; justify-content: center; width: 150px; height: 150px; border-radius: 50%; background: var(--mf-yellow); }
  .nf__disc2 svg { transform: scaleX(-1) rotate(-12deg); }
  .nf__h { margin: 16px 0 0; font-size: 44px; line-height: 1.05; }
  .nf__br { display: none; }
  .nf__p { font-size: 17px; }
  .nf__btns { display: flex; gap: 10px; margin-top: 12px; }
  .nf__btns .btn:first-child { min-width: 180px; }
  .nf__btns .btn:not(:first-child) { min-width: 160px; }
}

/* ── animations ── */
@keyframes mfSheetIn { from { transform: translateY(100%); } }
@keyframes mfFadeIn { from { opacity: 0; } }
@keyframes mfToastIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes mfPulse { 50% { opacity: .35; } }
@keyframes mfJump { 0% { transform: translateY(0) scale(1, 1); } 8% { transform: translateY(0) scale(1.3, .7); animation-timing-function: ease-out; } 20% { transform: translateY(-.08em) scale(.88, 1.14); animation-timing-function: ease-out; } 44% { transform: translateY(-.42em) scale(1, 1); animation-timing-function: ease-in; } 70% { transform: translateY(0) scale(.92, 1.1); } 77% { transform: translateY(0) scale(1.3, .7); } 86%, 100% { transform: translateY(0) scale(1, 1); } }
@keyframes mfWaveBar { to { transform: translateX(-48px); } }
@keyframes mfWave { to { transform: translateX(-65px); } }
@keyframes mfRefl { 0%, 100% { transform: scaleY(-1) skewX(0deg); } 50% { transform: scaleY(-1.04) skewX(-3deg); } }
@keyframes mfAx { 0%, 18% { transform: translateX(352px); animation-timing-function: linear; } 36%, 59% { transform: translateX(var(--mf-ix, 234px)); animation-timing-function: linear; } 72%, 76% { transform: translateX(var(--mf-dive-x, 196px)); animation-timing-function: steps(1, end); } 78%, 100% { transform: translateX(352px); } }
@keyframes mfAy { 0%, 18% { transform: translateY(111px); animation-timing-function: cubic-bezier(.2, .65, .35, 1); } 27% { transform: translateY(8px); animation-timing-function: cubic-bezier(.6, 0, .8, .45); } 36% { transform: translateY(var(--mf-iy, 56px)); animation-timing-function: cubic-bezier(.3, 1.6, .6, 1); } 40%, 59% { transform: translateY(var(--mf-iy, 56px)); animation-timing-function: cubic-bezier(.2, .65, .35, 1); } 63% { transform: translateY(calc(var(--mf-iy, 56px) - 22px)); animation-timing-function: cubic-bezier(.6, 0, .85, .4); } 72%, 80% { transform: translateY(150px); animation-timing-function: cubic-bezier(.25, .8, .35, 1); } 88%, 100% { transform: translateY(111px); } }
@keyframes mfFish { 0%, 14% { opacity: 0; transform: scale(.2) rotate(40deg); } 18% { opacity: 1; transform: scale(1) rotate(40deg); } 27% { opacity: 1; transform: scale(1) rotate(0deg); } 34% { opacity: 1; transform: scale(1) rotate(-30deg); } 39%, 55% { opacity: 0; transform: scale(.2) rotate(-30deg); } 59% { opacity: 1; transform: scale(1) rotate(25deg); } 63% { opacity: 1; transform: scale(1) rotate(0deg); } 71% { opacity: 1; transform: scale(1) rotate(-65deg); } 74%, 100% { opacity: 0; transform: scale(1) rotate(-65deg); } }
@keyframes mfBall { 0%, 13% { opacity: 1; transform: scale(1); } 17%, 35% { opacity: 0; transform: scale(.2); } 40%, 54% { opacity: 1; transform: scale(1); } 58%, 76% { opacity: 0; transform: scale(.2); } 78%, 100% { opacity: 1; transform: scale(1); } }
@keyframes mfBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes mfRip1 { 0%, 15% { transform: scale(.2); opacity: 0; } 17% { opacity: .9; } 30% { transform: scale(1.9); opacity: 0; } 31%, 81% { transform: scale(.2); opacity: 0; } 83% { opacity: .9; } 96%, 100% { transform: scale(1.9); opacity: 0; } }
@keyframes mfRip2 { 0%, 68% { transform: scale(.2); opacity: 0; } 70% { opacity: .9; } 84%, 100% { transform: scale(1.9); opacity: 0; } }
@keyframes mfSpin { to { transform: rotate(360deg); } }
@keyframes mfBub { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-70px) scale(1); opacity: 0; } }
@keyframes mfDot { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes mfBallB { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
/* кадр 0% — базовое состояние: при animation:none мячик не уезжает в (0,0) */
.mf-wave { animation: mfWave 3.2s linear infinite; }
.mf-wave2 { animation: mfWave 5.4s linear infinite reverse; }
.mf-refl { transform: scaleY(-1); animation: mfRefl 3.2s ease-in-out infinite; }
.mf-ax { transform: translateX(352px); animation: mfAx 10s infinite; }
.mf-ay { transform: translateY(111px); animation: mfAy 10s infinite; }
.mf-fish { opacity: 0; transform: scale(.2) rotate(40deg); animation: mfFish 10s infinite; }
.mf-ball { opacity: 1; animation: mfBall 10s infinite; }
.mf-bob { animation: mfBob 2.5s ease-in-out infinite; }
.mf-rip1 { opacity: 0; transform: scale(.2); animation: mfRip1 10s ease-out infinite; }
.mf-rip2 { opacity: 0; transform: scale(.2); animation: mfRip2 10s ease-out infinite; }
.mf-orbit { animation: mfSpin 4.5s linear infinite; }
.mf-arcs { animation: mfSpin 9s linear infinite reverse; }
.mf-bub { animation: mfBub 3s ease-in infinite; }
.mf-dot { animation: mfDot 1.2s ease-in-out infinite; }
.mf-ballb { animation: mfBallB 2.2s ease-in-out infinite; }

/* ── reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ld--boot { display: none; }  /* no fade, no animationend: the splash would stay */
  .mf-ax { transform: translateX(var(--mf-ix)); } .mf-ay { transform: translateY(var(--mf-iy, 56px)); }
}

/* ── legacy-v3 ── */
/* v3 components that pages still use. A computed-style pass over every screen proved that no other legacy rule
   changes anything; unlayered v6 rules beat this layer. Shrinks as pages get v6 markup. */
@layer legacy-v3 {
:root {
  --mf-accent: #EAF064; --mf-accent-soft: #FAFBCB; --mf-field: #F3F3F1; --mf-chip: #F1F2EE; --mf-card-line: #E8E9E6;
  --mf-success: #418E45; --mf-success-soft: #E7F4E5; --mf-danger: #B84545; --mf-danger-soft: #FCE7E5;
  --mf-r-panel: 12px; --mf-content: 1440px; --mf-tap: 44px; --mf-shadow: 0 10px 30px rgb(32 35 34 / 10%);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--mf-bg); color: var(--mf-ink);
  font: 400 15px/1.45 var(--mf-font); font-feature-settings: "tnum" 0; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled, .btn[aria-disabled="true"] { cursor: default; opacity: .45; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--mf-ink); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.skip-link:focus { top: 12px; }
.wrap { width: min(var(--mf-content), 100% - 2 * var(--mf-gutter)); margin-inline: auto; }
.text-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; background: none; border: 0; padding: 0; cursor: pointer; }
.text-link:hover { text-decoration-thickness: 2px; }
.ic-btn:hover { background: var(--mf-chip); }
.badge-count { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--mf-accent); color: var(--mf-ink); font-size: 11px; font-weight: 800; line-height: 19px; text-align: center; }
.hs { position: relative; flex: 1; max-width: 700px; margin-inline: auto; }
.hs__box input::placeholder { color: #8C9194; }
.hs__drop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--mf-line); border-radius: 12px; box-shadow: var(--mf-shadow); padding: 8px; max-height: min(70vh, 560px); overflow: auto; }
.hs__rule { border: 0; border-top: 1px solid var(--mf-line); margin: 6px 12px; }
.sg { display: flex; align-items: center; gap: 14px; padding: 8px 12px; border-radius: 9px; text-decoration: none; }
.sg:hover, .sg[aria-selected="true"] { background: var(--mf-accent-soft); }
.sg--plain .sg__img { display: grid; place-items: center; color: var(--mf-muted); }
.dd { position: relative; display: inline-block; }
.menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 240px; background: #fff; border: 1px solid var(--mf-line); border-radius: 12px; box-shadow: var(--mf-shadow); padding: 6px; }
.menu--right { left: auto; right: 0; }
.menu__item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; padding: 9px 12px; border: 0; border-radius: 8px; background: none; text-align: left; text-decoration: none; font-size: 14px; color: var(--mf-ink); }
.menu__item:hover, .menu__item:focus-visible { background: var(--mf-accent-soft); outline: 0; }
.menu__item .menu__check { margin-left: auto; visibility: hidden; }
.menu__item[aria-checked="true"] .menu__check { visibility: visible; }
.menu__item[aria-checked="true"] { font-weight: 600; }
.menu__item--switch { justify-content: space-between; }
.menu__rule { border: 0; border-top: 1px solid var(--mf-line); margin: 4px 6px; }
.select-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 44px; padding: 8px 14px; background: #fff; border: 1px solid var(--mf-line); border-radius: var(--mf-r-control); font-size: 14px; white-space: nowrap; }
.btn { background: var(--mf-ink); text-align: center; }
.btn:hover { background: #000; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 18px; border: 1px solid var(--mf-chip); border-radius: 9px; background: var(--mf-chip); color: var(--mf-ink); text-decoration: none; font-size: 15px; white-space: nowrap; }
.pill:hover { background: #E8E9E4; }
.input { width: 100%; min-height: 48px; padding: 10px 14px; background: #fff; border: 1px solid var(--mf-line); border-radius: var(--mf-r-control); font-size: 15px; }
.input:focus { border-color: #9CA19D; outline: 0; box-shadow: 0 0 0 3px rgb(234 240 100 / 55%); }
.field > label { font-size: 15px; }
.field-error, .form-error { color: var(--mf-danger); font-size: 13px; }
.range { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--mf-chip); border: 1px solid var(--mf-line); border-radius: var(--mf-r-control); overflow: hidden; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 15%); transition: transform .15s; }
.switch:checked { background: var(--mf-accent); }
.switch:checked::after { transform: translateX(22px); }
.switch:disabled { opacity: .45; }
.main { flex: 1; }
.page { padding-block: 32px 56px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; color: var(--mf-ink); margin-bottom: 20px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs--small { font-size: 13px; margin-bottom: 8px; }
.tabs { display: flex; gap: 40px; border-bottom: 1px solid var(--mf-line); overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { display: inline-flex; gap: 8px; align-items: center; padding: 10px 2px 12px; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; background: none; color: var(--mf-muted); font-size: 17px; text-decoration: none; white-space: nowrap; }
.tabs a:hover, .tabs button:hover { color: var(--mf-ink); }
.badge { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 14px; border-radius: 8px; background: var(--mf-accent-soft); font-size: 14px; white-space: nowrap; }
.loading-line { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--mf-muted); font-size: 14px; padding: 24px 0 8px; grid-column: 1 / -1; text-decoration: none; }
.loading-line .ic { color: #BFC3BF; }
.pc:hover .pc__photo img { transform: scale(1.02); }
.pc__ph { position: absolute; inset: 0; display: grid; place-items: center; color: #A9ADAA; }
.pc__more { position: absolute; right: 10px; top: 10px; z-index: 2; }
.pc__more > .ic-btn:hover { background: #fff; }
.pc__more--baked > .ic-btn .ic { opacity: 0; }
.pc__title:hover { text-decoration: underline; }
.pc__meta { font-size: 13px; color: var(--mf-muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the seller under the name (owner 02.11): a link to his page and a one-tap subscribe, no page jump */
.pc__seller { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--mf-ink); text-decoration: none; }
.pc__seller span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc__seller:hover span { text-decoration: underline; }
.pc__follow { display: inline; margin: 0 0 0 6px; vertical-align: middle; }
.pc__follow .act--text { height: 24px; padding: 0 9px; font-size: 11px; border-radius: 12px; }
.pc__follow .act--text[aria-pressed="true"] { background: var(--mf-yellow); border-color: var(--mf-yellow); }
.pc__price { margin-right: auto; font-size: 20px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.act:hover { background: var(--mf-chip); }
.act--text { width: auto; padding: 0 14px; font-size: 14px; background: var(--mf-chip); border-color: var(--mf-chip); }
.dlg--center .dlg__in { text-align: center; padding-top: 40px; }
.dlg--center .dlg__title { padding-inline: 32px; }
.dlg__text { color: var(--mf-muted); font-size: 16px; margin-bottom: 8px; }
.dlg__actions { display: flex; gap: 12px; margin-top: 24px; }
.dlg__actions > * { flex: 1; }
.mega__group { grid-column: 1; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 12px 8px 8px; border: 1px solid transparent; border-radius: 10px; background: none; color: var(--mf-ink); font-size: 16px; font-weight: 500; text-align: left; }
.mega__group:hover { background: var(--mf-chip); }
.mega__group img { width: 40px; height: 40px; flex: none; border-radius: 8px; object-fit: cover; }
.mega__group .ic { width: 18px; height: 18px; margin-left: auto; color: var(--mf-muted); }
.mega__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 16px; font-weight: 700; text-decoration: none; }
.mega__head:hover { text-decoration: underline; }
.mega__subs a:hover { color: var(--mf-ink); text-decoration: underline; }
.cat-modal { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cat-modal a { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--mf-card-line); border-radius: 10px; text-decoration: none; }
.cat-modal a:hover { background: var(--mf-accent-soft); }
.cat-modal img { width: 82px; height: 82px; border-radius: 6px; object-fit: cover; flex: none; }
.cat-modal b { display: block; font-size: 15px; }
.cat-modal small { color: var(--mf-muted); font-size: 13px; line-height: 1.3; }
.cat-modal .ic { margin-left: auto; width: 18px; }
.with-filters { display: grid; grid-template-columns: 296px minmax(0, 1fr); gap: 28px; align-items: start; }
.filters { position: sticky; top: 16px; padding: 22px 18px 26px; background: #fff; border: 1px solid var(--mf-card-line); border-radius: var(--mf-r-panel); }
.filters__head a { color: var(--mf-muted); text-decoration: none; font-size: 15px; }
.filters__head a:hover { color: var(--mf-ink); text-decoration: underline; }
.results-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.results-head__tools { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 18px; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 8px; text-decoration: none; font-size: 15px; }
.pager a:hover { background: var(--mf-chip); }
.related { margin-top: 44px; }
.tg-row { display: flex; gap: 16px; align-items: flex-start; padding: 20px 4px 4px; margin-top: 20px; border-top: 1px solid var(--mf-line); }
.tg-row b { display: block; font-size: 18px; font-weight: 600; }
.tg-row p { color: var(--mf-muted); }
.faq { margin-top: 40px; }
.kv { border: 1px solid var(--mf-card-line); border-radius: 10px; overflow: hidden; margin: 18px 0; }
.surface { background: #fff; border: 1px solid var(--mf-card-line); border-radius: var(--mf-r-panel); padding: 24px; }
.auth-shell .main { display: grid; place-items: center; }
.auth-card { width: min(460px, 100%); margin: 40px auto; }
.auth-card h1 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 10px; }
.auth-form { display: grid; gap: 14px; margin-top: 16px; }
.auth-form input:not([type="checkbox"]), .auth-form select, .auth-form textarea, .pp-form input, .autobuy input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--mf-line); border-radius: 8px; background: #fff; }
.auth-form label { display: grid; gap: 6px; }
.login-sub { color: var(--mf-muted); margin-bottom: 18px; }
.legal-doc { max-width: 860px; line-height: 1.6; }
.legal-doc h2 { font-size: 20px; margin: 22px 0 8px; }
.legal-doc p, .legal-doc li { margin-bottom: 8px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 16px; font-size: 14px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-table td, .legal-table th { border-top: 1px solid var(--mf-line); padding: 8px 10px; text-align: left; vertical-align: top; }
.scan-page { max-width: 640px; }
.photo-drop { position: relative; display: grid; justify-items: center; gap: 10px; padding: 28px 20px 22px; border: 2px dashed #D6D9D6; border-radius: 12px; text-align: center; cursor: pointer; }
.photo-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-drop .scan-preview { width: 206px; max-width: 100%; aspect-ratio: 1.24; object-fit: cover; border-radius: 8px; }
.photo-drop__ic { width: 56px; height: 56px; border-radius: 50%; background: var(--mf-chip); display: grid; place-items: center; }
.photo-drop .scan-change { display: none; padding: 10px 26px; border-radius: 8px; background: var(--mf-chip); font-size: 15px; }
.photo-drop.has-photo .scan-change { display: inline-block; }
.photo-drop.has-photo .photo-drop__ic, .photo-drop.has-photo .photo-drop__hint { display: none; }
.photo-drop .scan-status { font-size: 14px; min-height: 18px; }
.viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(15 16 16 / 94%); color: #fff; overflow: hidden; }
html:has(.viewer[open]) { overflow: hidden; }
.viewer-stage { width: 100%; height: 100%; overflow: hidden; display: grid; place-items: center; touch-action: none; }
.viewer-stage img { max-width: 100vw; max-height: 100vh; max-height: 100dvh; object-fit: contain; transform-origin: 0 0; }
.viewer button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / 15%); color: #fff; font-size: 18px; cursor: pointer; }
.viewer button:focus-visible { outline: 2px solid var(--mf-yellow); }
.viewer-btn { position: absolute; top: 50%; transform: translateY(-50%); }
.viewer-nav { position: fixed; inset: 0; pointer-events: none; }
.viewer-nav .viewer-btn { pointer-events: auto; }
.viewer-close { top: 16px; right: 16px; transform: none; }
.viewer-prev { left: 12px; }
.viewer-next { right: 12px; }
.viewer-next .ic { transform: scaleX(-1); }
.viewer-bar { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: 99px; background: rgb(0 0 0 / 55%); font-size: 13px; white-space: nowrap; }
.viewer-bar span { padding: 0 8px; }
.viewer-bar button { width: 32px; height: 32px; }
.request-error { position: fixed; z-index: 70; left: 50%; top: 14px; transform: translateX(-50%); padding: 12px 18px; border-radius: 10px; background: var(--mf-danger); color: #fff; box-shadow: var(--mf-shadow); }
@media (max-width: 1180px) {
:root { --mf-gutter: 24px; }
.with-filters { grid-template-columns: 250px minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 900px) {
.with-filters, .product, .settings, .wallet { grid-template-columns: minmax(0, 1fr); }
.mega__title { display: none; }
}
@media (max-width: 640px) {
:root { --mf-gutter: 16px; }
.hs { order: 3; flex-basis: 100%; max-width: none; }
.page { padding-block: 22px 40px; }
.tabs { gap: 24px; }
.dlg__actions { flex-direction: column-reverse; }
.cat-modal { grid-template-columns: 1fr; }
.empty .btn { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation-duration: .01ms !important; transition: none !important; scroll-behavior: auto !important; }
}
.menu--block { right: 0; }
.menu--scroll { max-height: 340px; overflow: auto; }
.menu__item--sub { padding-left: 28px; font-weight: 400; }
.menu__search { position: sticky; top: 0; z-index: 1; padding: 6px; background: var(--mf-surface); }
@media (max-width: 900px) {
.with-filters.is-open > .filters-wrap { display: block; position: fixed; inset: 0; z-index: 50; padding: 16px; overflow: auto; background: rgb(28 30 29 / 42%); }
.with-filters.is-open .filters { max-width: 440px; margin: 0 auto; padding: 18px; border: 1px solid var(--mf-line); background: #fff; }
.filters__head a { margin-left: auto; }
}
@media (max-width: 480px) {
.pc__price { flex-basis: 100%; margin-bottom: 6px; }
}
}

.qr-img { display: block; width: min(260px, 100%); height: auto; margin: 16px auto; border-radius: 12px; image-rendering: pixelated; }
.qr-sum { font-size: 34px; font-weight: 800; letter-spacing: -.045em; margin: 8px 0 0; }
@media (min-width: 721px) { .qr-app { display: none; } }

[data-cart-added="1"] .act { background: var(--mf-yellow); color: var(--mf-ink); }
[data-cart-added="1"] .act .ic { fill: none; stroke-width: 2.4; }

.gallery-retry { grid-column: 1 / -1; order: 2; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.viewer > .gallery-retry { position: absolute; left: 16px; right: 16px; bottom: 72px; justify-content: center; }
.viewer > .gallery-retry button { width: auto; height: 36px; padding: 0 12px; border-radius: 8px; }
