/* The site in the app's new look (lib/core/theme/home_theme.dart), light only: warm ground, white
   cards without shadows, one blue for a choice, graphite for an action, Unbounded headings over
   Onest. The feed, a work and a master are the app's screens (docs/backend/16#сайт); a computer
   gets them wider. */

@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url("fonts/Onest-Regular.5eeae248726a.ttf") format("truetype"); }
@font-face { font-family: "Onest"; font-weight: 500; font-display: swap; src: url("fonts/Onest-Medium.1b1febf357b2.ttf") format("truetype"); }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap; src: url("fonts/Onest-SemiBold.17ccf9b9c6ca.ttf") format("truetype"); }
@font-face { font-family: "Unbounded"; font-weight: 500; font-display: swap; src: url("fonts/Unbounded-Medium.8e34584df035.ttf") format("truetype"); }

:root {
  --bg: #f3f2ee; --surface: #fff; --text: #1f1f24; --muted: #6b6a70; --line: #e4e2dc;
  --accent: #3f8cff; --on-accent: #1f1f24; --accent-text: #1f5fcc; --accent-soft: #e6f0ff;
  --graphite: #1f1f24; --on-graphite: #fff; --on-graphite-muted: rgba(255, 255, 255, 0.64);
  --star: #f5a623; --skeleton: #e9e7e1; --glass: rgba(255, 255, 255, 0.92); --shadow: rgba(31, 31, 36, 0.16);
  --display: "Unbounded", "Onest", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/20px "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.muted { color: var(--muted); }
.i { width: 20px; height: 20px; flex: none; }
.i.star { color: var(--star); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 26px; border: 0;
  background: var(--graphite); color: var(--on-graphite); font-size: 16px; line-height: 22px; font-weight: 600; text-align: center; white-space: nowrap; }
.button.small { min-height: 44px; padding: 0 18px; font-size: 14px; }
.button.secondary { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.button:disabled { opacity: 0.5; cursor: default; }
.circle { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 0; padding: 0; background: var(--surface); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; }
.circle .i { width: 22px; height: 22px; }
.circle.small { width: 44px; height: 44px; }
.circle.glass { width: 44px; height: 44px; background: var(--glass); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
.link { height: 44px; padding: 0 8px; display: inline-flex; align-items: center; color: var(--accent-text); font-size: 14px; font-weight: 500; }

/* The feed's header: the place as the app's, search and the filters */
.top { height: 64px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font: 500 20px/26px var(--display); flex: none; }
.brand img { border-radius: 9px; }
.loc { display: flex; flex-direction: column; min-width: 0; }
.loc-city { display: flex; align-items: center; gap: 4px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--muted); }
.loc-city .i { width: 14px; height: 14px; }
.loc-title { display: flex; align-items: center; gap: 6px; min-width: 0; font: 500 22px/28px var(--display); white-space: nowrap; }
.loc-title span { overflow: hidden; text-overflow: ellipsis; }
.loc-title .i { width: 16px; height: 16px; }
.search-row { padding: 4px 16px 12px; display: flex; gap: 10px; }

/* The search box and what drops down under it */
.search { position: relative; flex: 1; min-width: 0; height: 52px; margin: 0; padding: 0 18px; border-radius: 26px; background: var(--surface);
  display: flex; align-items: center; gap: 10px; }
.search:focus-within { box-shadow: inset 0 0 0 1.5px var(--accent); }
.search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; background: transparent; font-size: 15px; line-height: 20px; }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { display: none; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40; max-height: min(420px, 60vh); padding: 6px; overflow-y: auto;
  border-radius: 20px; background: var(--surface); box-shadow: 0 12px 40px var(--shadow); }
.suggest a { min-height: 44px; padding: 0 12px; border-radius: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.suggest a span:last-child { flex: none; font-size: 13px; color: var(--muted); }
.suggest a:hover, .suggest a.on { background: var(--bg); }
.suggest p { padding: 12px; color: var(--muted); }
.filter { position: relative; width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; }
.filter .i { width: 22px; height: 22px; }
.count { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; border: 2px solid var(--bg);
  background: var(--graphite); color: var(--on-graphite); font-size: 11px; line-height: 16px; font-weight: 600; text-align: center; }

/* The services pinned at the top, the catalogue first */
.pills { position: sticky; top: 0; z-index: 10; background: var(--bg); }
.pills-row { display: flex; gap: 8px; padding: 8px 16px 10px; overflow-x: auto; scrollbar-width: none; }
.pills-row::-webkit-scrollbar { display: none; }
.pill { flex: none; height: 44px; padding: 0 18px; border-radius: 22px; background: var(--surface); display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap; }
.pill .i { width: 18px; height: 18px; }
.pill.on { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.sep { flex: none; width: 1px; height: 24px; align-self: center; margin: 0 4px; background: var(--line); }

/* The feed under its heading */
/* The heading on its own line (it's the page's name for search engines), the numbers and the sort under it */
.feed-head { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; padding: 6px 8px 0 16px; }
.feed-head h1 { width: 100%; padding-right: 8px; font: 500 18px/24px var(--display); }
.facts { flex: 1; min-width: 0; font-size: 13px; line-height: 18px; color: var(--muted); }
.sort { position: relative; flex: none; }
.sort summary { height: 44px; padding: 0 8px; display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; cursor: pointer; list-style: none; }
.sort summary::-webkit-details-marker { display: none; }
.sort summary .i { width: 14px; height: 14px; }
.menu { position: absolute; right: 0; top: 44px; z-index: 20; min-width: 220px; padding: 6px; border-radius: 20px; background: var(--surface); box-shadow: 0 12px 40px var(--shadow); }
.menu a { height: 44px; padding: 0 12px; border-radius: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.menu a:hover { background: var(--bg); }
.menu a.on { font-weight: 600; }
.menu .i { width: 18px; height: 18px; color: var(--accent-text); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 6px 16px 0; }
.more { width: fit-content; min-width: 200px; height: 48px; margin: 16px auto 0; padding: 0 24px; border-radius: 24px; background: var(--surface);
  display: flex; align-items: center; justify-content: center; font-weight: 600; }
.empty { margin: 12px 16px 0; padding: 24px 20px; border-radius: 22px; background: var(--surface); text-align: center; }
.empty h2 { font: 500 18px/24px var(--display); }
.empty p { margin-top: 6px; color: var(--muted); }
.empty-actions { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.empty-line { padding: 16px 0; color: var(--muted); }

/* The app's work card (G9) */
.wcard { min-width: 0; display: flex; flex-direction: column; padding: 6px 6px 12px; border-radius: 20px; background: var(--surface); }
.photo { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--skeleton); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-badge { position: absolute; left: 8px; top: 8px; height: 24px; padding: 0 9px; border-radius: 12px; background: rgba(31, 31, 36, 0.62); color: #fff;
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; }
.photo-badge .i { width: 11px; height: 11px; }
.price-row { height: 36px; margin-top: 4px; padding-left: 6px; display: flex; align-items: center; }
.price-row > a:first-child { flex: 1; min-width: 0; font-size: 16px; line-height: 22px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heart { width: 40px; height: 36px; flex: none; display: flex; align-items: center; justify-content: center; }
.heart .i { width: 21px; height: 21px; }
.wcard-title { height: 36px; padding: 0 6px; font-size: 13px; line-height: 18px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wcard-meta { margin-top: 6px; padding-left: 6px; display: flex; align-items: center; gap: 3px; font-size: 12px; line-height: 16px; white-space: nowrap; overflow: hidden; }
.wcard-meta .i { width: 12px; height: 12px; }
.wcard-meta .seal { width: 13px; height: 13px; margin-left: 1px; }
.wcard-meta b { font-weight: 600; }
.wcard-meta span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.wcard-slot { min-height: 16px; margin-top: 4px; padding-left: 6px; display: flex; align-items: center; gap: 4px; font-size: 12px; line-height: 16px; font-weight: 500;
  color: var(--accent-text); white-space: nowrap; overflow: hidden; }
.wcard-slot .i { width: 13px; height: 13px; }
.wcard-slot.none { visibility: hidden; }

/* In place of the app's tab bar on a phone */
.capsule { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; max-width: 520px; height: 64px; margin: 0 auto;
  padding: 0 10px 0 12px; border-radius: 32px; background: var(--graphite); color: var(--on-graphite); display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 24px rgba(31, 31, 36, 0.18); }
.app-icon { width: 40px; height: 40px; flex: none; border-radius: 11px; }
.capsule-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.capsule-text b { font-size: 15px; line-height: 20px; font-weight: 600; }
.capsule-text span { font-size: 12px; line-height: 16px; color: var(--on-graphite-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.capsule-get { flex: none; height: 44px; padding: 0 18px; border-radius: 22px; background: #fff; color: #1f1f24; display: flex; align-items: center; font-size: 14px; font-weight: 600; }

/* The filters on a phone: the whole screen over the feed. No padding at the bottom: the sticky
   «Показать» would stop above it. */
.screen { display: none; position: fixed; inset: 0; z-index: 50; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); }
html:not(.js) .screen:target, .screen.open { display: block; }
.screen-bar { position: sticky; top: 0; z-index: 1; height: 64px; padding: 0 16px; display: flex; align-items: center; gap: 12px; background: var(--bg); }
.screen-bar h1, .screen-bar h2 { flex: 1; min-width: 0; font: 500 18px/24px var(--display); }

/* Windows next to their button: the place (under the header's place) and «Скачать» */
.pop { display: none; position: fixed; inset: 0; z-index: 60; }
html:not(.js) .pop:target, .pop.open { display: block; }
.pop-card { position: absolute; top: 72px; left: 12px; right: 12px; padding: 20px; border-radius: 22px; background: var(--surface); box-shadow: 0 16px 48px var(--shadow); }
.pop-x { position: absolute; top: 10px; right: 10px; background: var(--bg); }
.pop-head { display: flex; align-items: center; min-height: 24px; padding-right: 44px; }
.pop-head h2 { font: 500 18px/24px var(--display); }
.field { height: 48px; padding: 0 16px; border-radius: 24px; background: var(--bg); display: flex; align-items: center; gap: 10px; }
.field input { flex: 1; min-width: 0; padding: 0; border: 0; outline: none; background: transparent; font-size: 15px; line-height: 20px; }
.field input::-webkit-search-cancel-button { display: none; }
.place-card { display: flex; flex-direction: column; max-height: calc(100vh - 96px); padding: 16px 8px 8px; }
.place-card .pop-head, .place-card .field { margin: 0 8px; }
.place-card .field { margin-top: 12px; margin-bottom: 4px; }
.pop-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.group-title { padding: 16px 16px 4px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--muted); }
.row { width: 100%; min-height: 52px; padding: 0 16px; border: 0; border-radius: 14px; background: none; display: flex; align-items: center; gap: 12px;
  text-align: left; font-size: 15px; line-height: 20px; }
.row:hover { background: var(--bg); }
.row > span:first-of-type { flex: 1; min-width: 0; }
.row .n { flex: none; font-size: 13px; color: var(--muted); }
.row .i { color: var(--muted); }
.row.on { font-weight: 600; }
.row.on .i { color: var(--accent-text); }
.row.accent { color: var(--accent-text); font-weight: 500; }
.row.accent .i { color: var(--accent-text); }
.dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--dot, var(--muted)); }

/* The filters: radio buttons as the app's pills */
.filters .screen-bar { padding-right: 8px; }
.fgroup { min-width: 0; margin: 0; padding: 20px 16px 0; border: 0; }
.fgroup legend { float: left; width: 100%; margin-bottom: 10px; padding: 0; font-size: 16px; line-height: 22px; font-weight: 600; }
.js .fgroup[data-for]:not(.current) { display: none; }
.opts { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.opt span { height: 40px; padding: 0 16px; border-radius: 20px; background: var(--surface); display: inline-flex; align-items: center; font-size: 14px; line-height: 20px;
  font-weight: 500; cursor: pointer; }
.opt input:checked + span { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.opt input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 2px; }

/* The price: two thumbs on one line, the rail between them in blue */
.range { clear: both; }
.range-value { font-size: 15px; line-height: 20px; font-weight: 600; }
.range-track { position: relative; height: 32px; margin-top: 8px; }
.range-rail { position: absolute; left: 14px; right: 14px; top: 14px; height: 4px; border-radius: 2px; background: var(--line); }
.range-fill { position: absolute; top: 0; bottom: 0; left: 0; right: 0; border-radius: 2px; background: var(--accent); }
.range input[type=range] { position: absolute; left: 0; top: 0; width: 100%; height: 32px; margin: 0; background: none; pointer-events: none;
  -webkit-appearance: none; appearance: none; }
.range input[type=range]::-webkit-slider-runnable-track { height: 32px; background: none; }
.range input[type=range]::-moz-range-track { background: none; }
.range input[type=range]::-webkit-slider-thumb { width: 28px; height: 28px; margin-top: 2px; border: 0; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 6px rgba(31, 31, 36, 0.28); cursor: grab; pointer-events: auto; -webkit-appearance: none; appearance: none; }
.range input[type=range]::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 6px rgba(31, 31, 36, 0.28); cursor: grab; pointer-events: auto; }
.range input[type=range]:focus-visible { outline: none; }
.range input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 5px var(--accent); }
.range input[type=range]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 5px var(--accent); }
.apply { position: sticky; bottom: 0; margin-top: 24px; padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 72%, transparent); }
.apply .button { width: 100%; }

/* A computer's window with the stores */
.get-card { padding-top: 24px; text-align: center; }
.get-icon { margin: 0 auto 12px; border-radius: 14px; }
.get-card h2 { font-size: 17px; line-height: 22px; font-weight: 600; }
.get-card p { margin-top: 6px; font-size: 13px; line-height: 18px; color: var(--muted); }
.get-card .stores { justify-content: center; margin-top: 16px; }
.stores { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.store { height: 48px; padding: 0 16px; border-radius: 14px; background: var(--graphite); color: var(--on-graphite); display: inline-flex; flex-direction: column;
  justify-content: center; font-size: 15px; line-height: 18px; font-weight: 600; }
.store small { font-size: 10px; line-height: 12px; font-weight: 400; opacity: 0.8; }

/* The work (H7) */
.work, .master { padding-bottom: 104px; }
.gallery-wrap { position: relative; background: var(--skeleton); }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: center; }
.gallery-wrap .photo-badge { top: auto; bottom: 14px; left: 16px; }
.over { position: absolute; left: 16px; right: 16px; top: 12px; display: flex; justify-content: space-between; }
.over-right { display: flex; gap: 8px; }
.dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.55); transition: width 0.2s; }
.dots i.on { width: 18px; background: #fff; }
.body { padding: 16px 16px 0; display: flex; flex-direction: column; gap: 24px; }
.body h1 { font: 500 20px/26px var(--display); }
.body section > h2 { margin-bottom: 10px; font-size: 16px; line-height: 22px; font-weight: 600; }
.w-price { margin-top: 6px; font-size: 16px; line-height: 22px; font-weight: 600; }
.w-price span { font-weight: 400; color: var(--muted); }
.desc { margin-top: 10px; }
.clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.list { padding: 4px 16px; border-radius: 20px; background: var(--surface); list-style: none; }
.list li { padding: 12px 0; display: flex; align-items: center; gap: 10px; }
.list li + li { box-shadow: inset 0 1px 0 var(--line); }
.list li > span:first-of-type { flex: 1; min-width: 0; }
.list .i { width: 18px; height: 18px; color: var(--accent-text); }
.panel { padding: 16px; border-radius: 20px; background: var(--surface); }
.who { display: flex; align-items: center; gap: 12px; }
.av { width: 48px; height: 48px; flex: none; border-radius: 50%; object-fit: cover; background: var(--skeleton); display: flex; align-items: center; justify-content: center;
  font-weight: 600; color: var(--muted); }
.who-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.who-name { display: flex; align-items: center; gap: 4px; font-size: 16px; line-height: 22px; font-weight: 600; }
.who-name .seal, .m-head .seal { width: 16px; height: 16px; }
.who-meta { display: flex; align-items: center; gap: 3px; font-size: 13px; line-height: 18px; color: var(--muted); }
.who-meta .i { width: 12px; height: 12px; }
.who-meta b { color: var(--text); font-weight: 600; }
.who .next { color: var(--muted); }
.line { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: var(--muted); }
.line .i { width: 16px; height: 16px; }
.note { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--muted); }
.slots-label { margin: 14px 0 8px; font-size: 13px; line-height: 18px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 40px; padding: 0 16px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); display: inline-flex; align-items: center;
  font-size: 14px; font-weight: 600; }
.thumbs-row { margin: 0 -16px; padding: 0 16px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.thumbs-row::-webkit-scrollbar { display: none; }
.thumbs-row .thumb { flex: none; width: 114px; }
.thumb { position: relative; display: block; }
.thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--skeleton); }
.price-tag { position: absolute; left: 6px; bottom: 6px; height: 22px; padding: 0 8px; border-radius: 11px; background: var(--glass); display: inline-flex; align-items: center;
  font-size: 11px; line-height: 14px; font-weight: 600; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
.body .grid { padding: 0; }
.review-head { display: flex; align-items: center; gap: 10px; }
.initial { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); display: flex; align-items: center;
  justify-content: center; font-weight: 600; }
.review-head b { font-weight: 600; }
.review-head .muted { font-size: 12px; line-height: 16px; }
.stars { display: flex; gap: 2px; color: var(--star); }
.stars .i { width: 14px; height: 14px; }
.review p { margin-top: 10px; }
.review p.reply { margin-top: 8px; padding-left: 12px; border-left: 2px solid var(--line); color: var(--muted); }
.review + .review { margin-top: 8px; }
.actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 10px; padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 72%, transparent); }
.actions .button { flex: 1 1 0; }
.actions .button:last-child { flex-grow: 1.4; }

/* The master (M1) */
.m-bar { height: 64px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; }
.m-head { padding: 4px 16px 0; display: flex; align-items: center; gap: 16px; }
.avatar { width: 88px; height: 88px; flex: none; border-radius: 50%; object-fit: cover; background: var(--skeleton); display: flex; align-items: center; justify-content: center;
  font: 500 32px/1 var(--display); color: var(--muted); }
.m-head h1 { display: flex; align-items: center; gap: 6px; font: 500 20px/26px var(--display); }
.m-head p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.stats { margin: 16px 16px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stats > * { padding: 12px; border-radius: 16px; background: var(--surface); text-align: center; }
.stats b { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 18px; line-height: 24px; font-weight: 600; }
.stats b .i { width: 16px; height: 16px; }
.stats span { font-size: 13px; line-height: 18px; color: var(--muted); }
.m-lines { margin: 16px 16px 0; display: flex; flex-direction: column; gap: 8px; }
.m-lines .line { margin: 0; font-size: 15px; }
.m-lines .line.strong { color: var(--text); font-weight: 500; }
.m-lines .line.strong .i { color: var(--accent-text); }
.about { margin: 12px 16px 0; }
.m-slots { margin: 0 16px; }
.m-slots .slots-label { margin-top: 16px; }
.m-slots .chip { box-shadow: none; }
.tabs { margin: 20px 16px 0; padding: 4px; border-radius: 22px; background: var(--surface); display: flex; gap: 4px; }
.tabs a { flex: 1; height: 40px; padding: 0 8px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; white-space: nowrap; }
.tabs a.on { background: var(--graphite); color: var(--on-graphite); font-weight: 600; }
.tab { margin: 12px 16px 0; }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.prices li { align-items: baseline; }
.prices small { display: block; font-size: 13px; color: var(--muted); }
.terms { margin-top: 12px; padding-left: 4px; list-style: none; font-size: 14px; color: var(--muted); }
.terms li { padding: 4px 0; }
.trust { margin-bottom: 12px; padding: 12px 16px; border-radius: 20px; background: var(--surface); list-style: none; display: grid; gap: 8px; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust .i { width: 16px; height: 16px; color: var(--accent-text); }
.criteria { margin-bottom: 12px; padding: 16px; border-radius: 20px; background: var(--surface); display: grid; gap: 8px; }
.criteria div { display: grid; grid-template-columns: 120px 1fr 32px; align-items: center; gap: 12px; font-size: 14px; }
.criteria i { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.criteria i b { display: block; height: 100%; background: var(--accent); }

/* The catalogue (H8) */
.page-bar h1 { font: 500 18px/24px var(--display); }
.catalogue { padding-bottom: 8px; }
.svc { margin: 12px 16px 0; padding: 16px; border-radius: 22px; background: var(--surface); }
.svc-head { display: flex; align-items: center; gap: 8px; }
.svc-head h2 { flex: 1; min-width: 0; font: 500 17px/22px var(--display); }
.svc-head .n { font-size: 13px; color: var(--muted); }
.svc-head .i { color: var(--muted); }
.svc .opts { margin-top: 12px; }
.svc .pill { height: 40px; background: var(--bg); }
.section-title { margin: 24px 16px 12px; font: 500 18px/24px var(--display); }
.ideas { margin: 0 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.idea img, .idea i { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; background: var(--skeleton); }
.idea span { display: block; margin-top: 6px; font-size: 13px; line-height: 18px; font-weight: 500; }
.idea small { display: block; font-size: 12px; line-height: 16px; color: var(--muted); }

/* Plain pages: the app, masters, documents, contacts, payment */
.bar { max-width: 1200px; height: 64px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; }
.page { max-width: 720px; margin: 0 auto; padding: 8px 16px 32px; }
.page h1 { margin: 8px 0 16px; font: 500 24px/30px var(--display); }
.page h2 { margin: 24px 0 8px; font-size: 18px; line-height: 24px; }
.page p { margin: 8px 0; }
.page a:not(.button):not(.store) { color: var(--accent-text); }
.app-hero { display: flex; align-items: center; gap: 16px; margin: 8px 0 8px; }
.app-hero img { border-radius: 18px; }
.app-hero h1 { margin: 0; }
.card { margin: 12px 0; padding: 16px; border-radius: 20px; background: var(--surface); }
.price { padding: 10px 0; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.card .price:last-child { border-bottom: 0; }
.doc h2 { margin: 24px 0 8px; font-size: 18px; }
.doc ul { padding-left: 20px; }
.error { color: #c62828; }
label.plan { margin: 8px 0; padding: 14px 16px; border-radius: 16px; background: var(--surface); display: flex; justify-content: space-between; align-items: center; }
.page input[type=text] { width: 100%; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }

.foot { max-width: 1200px; margin: 32px auto 0; padding: 16px 16px calc(104px + env(safe-area-inset-bottom)); font-size: 13px; line-height: 18px; color: var(--muted); }
.foot nav { margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.toast { position: fixed; left: 50%; bottom: 100px; z-index: 70; transform: translateX(-50%); padding: 10px 16px; border-radius: 12px; background: var(--graphite);
  color: var(--on-graphite); font-size: 14px; }

@media (min-width: 640px) and (max-width: 959px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 959px) {
  .wide-only { display: none !important; }
}
@media (min-width: 960px) {
  .phone-only, .capsule { display: none !important; }
  .top { max-width: 1440px; height: 88px; margin: 0 auto; padding: 0 40px; justify-content: flex-start; gap: 32px; }
  .top-search { flex: 1; min-width: 0; max-width: 520px; display: flex; }
  .top .get-app { margin-left: auto; }
  .pills-row { max-width: 1440px; margin: 0 auto; padding: 8px 40px 10px; }
  .pop-card { top: 80px; left: auto; right: 40px; width: 380px; }
  .place-card { max-height: min(640px, calc(100vh - 120px)); }
  .layout { max-width: 1440px; margin: 0 auto; padding: 8px 40px 0; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
  #filters { position: sticky; top: 72px; z-index: auto; display: block; max-height: calc(100vh - 88px); padding-bottom: 20px; border-radius: 22px; background: var(--surface); }
  #filters .screen-bar { position: static; height: 56px; padding: 0 12px 0 20px; background: none; }
  #filters .screen-bar h2 { font-size: 16px; }
  #filters .fgroup { padding: 14px 20px 0; }
  #filters .fgroup legend { margin-bottom: 8px; font-size: 14px; line-height: 20px; }
  #filters .opts { gap: 6px; }
  #filters .opt span { height: 34px; padding: 0 12px; border-radius: 17px; background: var(--bg); font-size: 13px; }
  #filters .opt input:checked + span { background: var(--accent); }
  #filters .apply { position: static; margin: 0; padding: 16px 20px 0; background: none; }
  .feed-head { padding: 0; }
  .feed-head h1 { margin-bottom: 2px; font-size: 28px; line-height: 36px; }
  .facts { font-size: 14px; line-height: 20px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 16px 0 0; }
  .empty { margin: 16px 0 0; padding: 40px; }
  .work { max-width: 1200px; margin: 0 auto; padding: 24px 40px 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .work .gallery-wrap { position: sticky; top: 24px; border-radius: 24px; overflow: hidden; }
  .work .body { padding: 0; }
  .body .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .thumbs-row { margin: 0; padding: 0; }
  .actions { position: sticky; bottom: 0; padding: 16px 0 24px; }
  .master { max-width: 1200px; margin: 0 auto; padding: 24px 40px 40px; display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 40px; align-items: start; }
  .m-side { position: sticky; top: 24px; }
  .m-bar, .m-head { padding-left: 0; padding-right: 0; }
  .m-bar { height: 56px; }
  .stats, .m-lines, .about, .m-slots { margin-left: 0; margin-right: 0; }
  .master .actions { position: static; padding: 24px 0 0; background: none; }
  .tabs { margin: 0; }
  .tab { margin: 16px 0 0; }
  .thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .catalogue { max-width: 960px; margin: 0 auto; }
  .ideas { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bar { height: 80px; padding: 0 40px; }
  .foot { padding: 24px 40px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
