/* Этек: внутренние страницы и блоки главной под первым экраном.
   Фон стена охрой с зерном, бумага для эскизов, таблиц и форм. Радиусы: кнопки и чипы 999, карточки и бумага 8,
   поля 10 (внутренний радиус = внешний минус отступ). Отступы кратны 8. */
:root {
  --page: 1320px;
  --paper-2: #e9e1d2;
  --line-2: rgb(27 26 23 / .16);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .05 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nojs .filters, .nojs .pdp-actions { display: none; }
body.inner { background: var(--wall) var(--grain); min-height: 100svh; display: flex; flex-direction: column; }
body.inner main { flex: 1; }
body[data-page="home"] { background: var(--floor) var(--grain); }
.muted { color: var(--soot-2); font-size: 14px; }
button.link { appearance: none; border: 0; background: none; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.page a:not(.btn):not(.card-link):not(.mini):not(.line-img), .foot a { text-underline-offset: 3px; text-decoration-thickness: 1.5px; }

/* шапка внутренних страниц: та же, что на главной, но в потоке */
body.inner .top { position: relative; }
.nav a[aria-current="page"], .bag[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

.page { width: min(100% - 2 * var(--pad), var(--page)); margin: 0 auto; padding: 24px 0 96px; }
.page-head { padding: 32px 0 40px; display: grid; gap: 16px; }
.page h1 { position: static; margin: 0; font: 700 clamp(40px, 6.4vw, 88px)/.98 Unbounded, sans-serif; letter-spacing: -.045em; }
.page-sub { font-size: 18px; max-width: 52ch; }
.page h2, .home-cat h2, .how h2 { margin: 0; font: 700 clamp(24px, 2.6vw, 34px)/1.1 Unbounded, sans-serif; letter-spacing: -.03em; }

/* сетка карточек */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.card { display: grid; gap: 4px; align-content: start; }
.card[hidden] { display: none; }
.card-link { display: grid; gap: 12px; text-decoration: none; }
.card-img { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: #e9a83a; }
.card-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale .5s cubic-bezier(.2, .7, .2, 1); }
.card-img.is-sketch { background: var(--paper); box-shadow: 0 1px 0 rgb(255 255 255 / .5) inset, 0 10px 24px -14px rgb(60 35 0 / .45); }
.card-img.is-sketch img { object-fit: contain; padding: 8% 4% 12%; }
.card-note { position: absolute; left: 16px; bottom: 12px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--soot-2); }
.card-link:hover .card-img img { scale: 1.025; }
.card-name { font-weight: 800; font-size: 16px; }
.card-link:hover .card-name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.card-kind { font-size: 14px; color: var(--soot-2); }
.card-price { font: 700 17px/1.3 Unbounded, sans-serif; letter-spacing: -.01em; margin-top: 4px; }
.swatches { display: flex; gap: 6px; list-style: none; margin: 6px 0 0; padding: 0; }
.swatches li { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(27 26 23 / .25); }
.card-fit { margin-top: 6px; font-size: 13px; font-weight: 700; }
.card-fit b, .size-pill { display: inline-grid; place-items: center; min-width: 28px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--madder); color: var(--paper); font-size: 12px; font-weight: 800; vertical-align: 1px; }
.card-fit.no b { background: var(--soot-2); }

/* чипы и образцы цвета */
.chip { position: relative; display: inline-flex; }
.chip input, .sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgb(27 26 23 / .55); font-weight: 700; font-size: 14px; transition: background-color .15s, color .15s, border-color .15s; }
.chip:hover span { border-color: var(--soot); background: rgb(27 26 23 / .06); }
.chip input:checked + span { background: var(--soot); border-color: var(--soot); color: var(--paper); }
.chip input:focus-visible + span, .sw input:focus-visible + span { outline: 2px solid var(--soot); outline-offset: 3px; }
/* круг рядом с чипом той же высоты чуть больше: оптически равны */
.sw { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; }
.sw span { width: 32px; height: 32px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(27 26 23 / .25); transition: box-shadow .15s; }
.sw input:checked + span { box-shadow: inset 0 0 0 1px rgb(27 26 23 / .25), 0 0 0 3px var(--wall), 0 0 0 5px var(--soot); }

/* каталог */
.filters { display: grid; gap: 16px; margin-bottom: 24px; }
.f-row { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.f-line { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.f-label { float: left; margin-right: 8px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.f-me { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; }
.f-me input { width: 20px; height: 20px; accent-color: var(--soot); }
.f-me[hidden], .f-me-link[hidden] { display: none; }
.f-me-link { font-weight: 700; }
.cat-count { font-size: 14px; font-weight: 700; color: var(--soot-2); margin: 0 0 24px; }
.cat-empty { display: grid; justify-items: start; gap: 16px; padding: 48px 0; }
.cat-empty[hidden] { display: none; }

/* страница вещи */
.crumbs { font-size: 14px; font-weight: 600; padding: 16px 0 24px; color: var(--soot-2); }
.crumbs a { color: var(--soot); }
.pdp-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, 1fr); gap: 56px; align-items: start; }
.pdp-media { display: grid; gap: 16px; }
.shot { margin: 0; border-radius: 8px; overflow: hidden; background: #e9a83a; }
.shot img { display: block; width: 100%; height: auto; }
.shot.fabric figcaption { padding: 12px 16px; background: var(--paper); font-size: 14px; }
.pdp-flat { margin: 0; padding: 32px 32px 24px; border-radius: 8px; background: var(--paper); box-shadow: 0 10px 28px -18px rgb(60 35 0 / .5); }
.pdp-flat svg { display: block; width: min(100%, 560px); height: auto; margin: 0 auto; }
.pdp-flat.is-main { padding-top: 48px; }
.pdp-flat figcaption { margin-top: 16px; font-size: 14px; font-weight: 600; display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.pdp-flat .soon { margin-left: auto; color: var(--soot-2); font-weight: 700; font-size: 12px; letter-spacing: .04em; }
.pdp-flat .soon[hidden] { display: none; }
.cloth { fill: var(--cloth); stroke: var(--line); stroke-width: 1.6; stroke-linejoin: round; transition: fill .25s; }
.seams path { fill: none; stroke: var(--line); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.seams .thin { stroke-width: 1; stroke-dasharray: 4 3; }
.seams .crease { stroke-dasharray: none; stroke-opacity: .5; }
.seams circle { fill: var(--line); }
.fringe { fill: none; stroke: var(--cloth); stroke-width: 1.8; stroke-linecap: round; }
.dim-halo { fill: none; stroke: var(--paper); stroke-width: 4.5; stroke-linecap: round; }
.dim-line { fill: none; stroke: var(--madder); stroke-width: 1.3; stroke-linecap: round; }
.dim-text { font: 800 14px Manrope, system-ui, sans-serif; fill: var(--madder); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }

.pdp-info { position: sticky; top: 24px; display: grid; gap: 16px; }
.pdp-info h1 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1; }
.pdp-kind { font-size: 17px; margin-top: -8px; }
.pdp-price { font: 700 26px/1.2 Unbounded, sans-serif; letter-spacing: -.02em; }
.pick { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.pick legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 700; width: 100%; }
.pick-color { gap: 4px; }
.chip.size span { min-width: 52px; justify-content: center; }
.chip.size.out span { color: rgb(27 26 23 / .55); background: linear-gradient(to top right, transparent calc(50% - .75px), rgb(27 26 23 / .45) 50%, transparent calc(50% + .75px)); }
.chip.size.out input:checked + span { color: var(--paper); background: linear-gradient(to top right, var(--soot) calc(50% - .75px), rgb(243 238 228 / .6) 50%, var(--soot) calc(50% + .75px)); }
.chip.size.rec::after { content: ""; position: absolute; top: -3px; right: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--madder); box-shadow: 0 0 0 2px var(--wall); }
.fit { padding: 16px 20px; border-radius: 8px; background: var(--paper); display: grid; gap: 8px; font-size: 15px; }
.fit-head { font-weight: 800; display: flex; align-items: center; gap: 8px; }
.stock { font-size: 14px; font-weight: 700; }
.stock.out { color: var(--madder); }
.pdp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pdp-actions .add { flex: 1 1 220px; }
.toast { min-height: 1.5em; font-size: 14px; font-weight: 700; opacity: 0; transition: opacity .2s; }
.toast.on { opacity: 1; }
details { border-top: 1.5px solid var(--line-2); padding-top: 12px; }
details > summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 4px 0 8px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: "+"; font: 600 20px/1 Manrope, sans-serif; }
details[open] > summary::after { content: "−"; }
details > p, details > table { margin: 0 0 12px; }
.dims-table, .body-table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 8px; overflow: hidden; font-size: 14px; font-variant-numeric: tabular-nums; }
.dims-table th, .dims-table td, .body-table th, .body-table td { padding: 10px 8px; text-align: center; border-bottom: 1px solid var(--line-2); }
.dims-table tbody th, .body-table tbody th { text-align: left; padding-left: 16px; font-weight: 600; }
.dims-table thead th:first-child { text-align: left; padding-left: 16px; color: var(--soot-2); font-weight: 600; }
.dims-table tr:last-child > *, .body-table tr:last-child > * { border-bottom: 0; }
.dims-table .sel { background: var(--soot); color: var(--paper); font-weight: 800; }
.dims-table thead .rec:not(.sel) { color: var(--madder); font-weight: 800; }
.pairs { margin-top: 96px; display: grid; gap: 32px; }
.pairs .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 900px; }

/* мерки */
.merki-grid { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.form-fig { margin: 0; padding: 32px; border-radius: 8px; background: var(--paper); position: sticky; top: 24px; }
.form-svg { display: block; width: 100%; max-width: 320px; height: auto; margin: 0 auto; }
.dummy { fill: var(--paper-2); stroke: var(--soot); stroke-width: 1.6; }
.pole { fill: none; stroke: var(--soot); stroke-width: 3; stroke-linecap: round; }
.tape path { fill: none; stroke: var(--madder); stroke-width: 2.2; stroke-linecap: round; transition: stroke-width .2s; }
.tape .back { stroke-dasharray: 3 4; stroke-opacity: .55; }
.tape text { font: 800 13px Manrope, sans-serif; fill: var(--madder); }
.tape.on path { stroke-width: 4; }
.tape.on text { font-size: 15px; }
.me-form { display: grid; gap: 24px; }
.field { display: grid; gap: 8px; padding: 16px 20px; border-radius: 8px; transition: background-color .2s; }
.field.on { background: rgb(243 238 228 / .45); }
.field label { font-weight: 800; font-size: 17px; }
.inp { display: flex; align-items: center; gap: 8px; }
.inp input { width: 140px; height: 52px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--soot); background: var(--paper); font: 700 20px Manrope, sans-serif; color: var(--soot); font-variant-numeric: tabular-nums; }
.inp input:focus { outline: 2px solid var(--soot); outline-offset: 2px; }
.inp input[aria-invalid="true"] { border-color: var(--madder); outline-color: var(--madder); }
.inp span { font-weight: 700; }
.hint { font-size: 14px; color: var(--soot-2); max-width: 52ch; }
.err { font-size: 14px; font-weight: 800; color: var(--madder); }
.err[hidden] { display: none; }
.me-form .actions, .order-out .actions { display: flex; flex-wrap: wrap; gap: 12px; padding: 0 20px; }
.saved { padding: 0 20px; font-weight: 700; min-height: 1.5em; }
.me-result { margin-top: 72px; display: grid; gap: 24px; }
.me-result[hidden] { display: none; }
.me-size .size-pill { margin-left: 8px; vertical-align: .2em; }
.me-size .size-pill { height: 40px; min-width: 52px; font-size: 20px; }
.me-result .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px 16px; }
.mini { display: grid; gap: 6px; text-decoration: none; font-size: 14px; }
.mini-img { display: block; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: #e9a83a; }
.mini-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-img.is-sketch { background: var(--paper); }
.mini-img.is-sketch img { object-fit: contain; padding: 12%; }
.mini-name { font-weight: 800; }
.mini:hover .mini-name { text-decoration: underline; text-underline-offset: 3px; }
.mini-fit b { color: var(--madder); }
.size-table { margin-top: 72px; display: grid; gap: 16px; max-width: 640px; }
.body-table .sel > * { background: var(--soot); color: var(--paper); font-weight: 800; }

/* корзина */
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.cart-list { display: grid; gap: 16px; }
.line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; grid-template-areas: "img info qty price" "img info del del"; gap: 8px 24px; align-items: center; padding: 16px; border-radius: 8px; background: var(--paper); }
.line-img { grid-area: img; display: block; aspect-ratio: 3 / 4; border-radius: 4px; overflow: hidden; background: #e9a83a; }
.line-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.line-img.is-sketch { background: var(--paper-2); }
.line-img.is-sketch img { object-fit: contain; padding: 8%; }
.line-info { grid-area: info; display: grid; gap: 4px; }
.line-name { font-weight: 800; font-size: 17px; text-decoration: none; }
.line-name:hover { text-decoration: underline; }
.warn { color: var(--madder); font-weight: 700; font-size: 14px; }
.qty { grid-area: qty; display: flex; align-items: center; border: 1.5px solid var(--soot); border-radius: 999px; }
.qty button { appearance: none; width: 40px; height: 40px; border: 0; background: none; font: 700 18px Manrope, sans-serif; color: var(--soot); cursor: pointer; border-radius: 999px; }
.qty button:hover:not(:disabled) { background: rgb(27 26 23 / .08); }
.qty button:disabled { opacity: .35; cursor: default; }
.qty output { min-width: 20px; text-align: center; font-weight: 800; }
.line-price { grid-area: price; font: 700 17px Unbounded, sans-serif; text-align: right; white-space: nowrap; }
.line-del { grid-area: del; justify-self: end; appearance: none; border: 0; background: none; font: 600 14px Manrope, sans-serif; color: var(--soot-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 4px 0; }
.cart-empty { display: grid; justify-items: start; gap: 16px; padding: 32px 0; font-size: 18px; }
.cart-sum { position: sticky; top: 24px; display: grid; gap: 20px; padding: 24px; border-radius: 8px; background: var(--paper); }
.cart-sum[hidden] { display: none; }
.ship { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; }
.ship legend { font-weight: 800; margin-bottom: 8px; padding: 0; }
.ship label { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; cursor: pointer; font-size: 15px; }
.ship input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--soot); }
.ship b, .ship i { display: block; font-style: normal; }
.ship i { font-size: 13px; color: var(--soot-2); }
.sum { margin: 0; display: grid; gap: 8px; border-top: 1.5px solid var(--line-2); padding-top: 16px; }
.sum div { display: flex; justify-content: space-between; gap: 16px; }
.sum dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.sum .total { font: 700 20px Unbounded, sans-serif; padding-top: 8px; }
.order-out { margin-top: 56px; display: grid; gap: 16px; max-width: 760px; }
.order-out[hidden] { display: none; }
.order-out textarea { width: 100%; padding: 16px 18px; border-radius: 10px; border: 1.5px solid var(--soot); background: var(--paper); font: 500 15px/1.55 Manrope, sans-serif; color: var(--soot); resize: vertical; }
.order-out .actions { padding: 0; }

/* мастерская и доставка */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.steps li { display: grid; gap: 12px; align-content: start; padding: 24px; border-radius: 8px; background: var(--paper); }
.step-n { font: 900 56px/.8 Unbounded, sans-serif; color: var(--ink); mix-blend-mode: multiply; }
.steps h2, .steps h3 { margin: 0; font: 700 20px/1.15 Unbounded, sans-serif; letter-spacing: -.02em; }
.wide-shot { margin: 48px 0; border-radius: 8px; overflow: hidden; }
.wide-shot img { display: block; width: 100%; height: auto; }
.fabrics { margin-top: 72px; display: grid; gap: 24px; }
.fabrics ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.fabrics li { display: grid; gap: 4px; padding: 20px; border-radius: 8px; background: var(--paper); }
.fab-sw { height: 96px; border-radius: 4px; margin-bottom: 12px; background-color: var(--c); background-image: repeating-linear-gradient(45deg, rgb(255 255 255 / .14) 0 1px, transparent 1px 16px), repeating-linear-gradient(-45deg, rgb(255 255 255 / .14) 0 1px, transparent 1px 16px); box-shadow: inset 0 0 0 1px rgb(27 26 23 / .15); }
.fabrics b { font-size: 17px; }
.fab-items { font-size: 14px; color: var(--soot-2); margin-top: 4px; }
.concept-note { margin-top: 48px; }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.way { display: grid; gap: 8px; align-content: start; padding: 24px; border-radius: 8px; background: var(--paper); }
.way h2 { font-size: 20px; }
.way-price { font: 700 18px/1.3 Unbounded, sans-serif; color: var(--madder); }
.rules { margin: 72px 0 0; display: grid; gap: 0; max-width: 820px; }
.rules div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 20px 0; border-top: 1.5px solid var(--line-2); }
.rules dt { font-weight: 800; font-size: 17px; }
.rules dd { margin: 0; }

/* главная под первым экраном */
.home-cat, .how { width: min(100% - 2 * var(--pad), var(--page)); margin: 0 auto; padding: 96px 0 0; display: grid; gap: 32px; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; }
.sec-head a { font-weight: 800; text-underline-offset: 4px; }
.home-cat .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 16px; }
.how { justify-items: start; padding-bottom: 96px; }
.how .steps { width: 100%; }

/* подвал */
.foot { width: min(100% - 2 * var(--pad), var(--page)); margin: 0 auto; padding: 40px 0 48px; border-top: 1.5px solid rgb(27 26 23 / .25); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 24px 48px; font-size: 14px; }
.foot-brand { display: grid; gap: 12px; max-width: 56ch; }
.foot .mark { font-size: 18px; }
.foot-nav { display: grid; grid-auto-flow: column; grid-template-rows: repeat(3, auto); gap: 8px 32px; align-content: start; }
.foot-nav a { font-weight: 700; text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
.foot-made { grid-column: 1 / -1; color: var(--soot-2); }

@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-cat .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pdp-grid, .merki-grid, .cart-grid { grid-template-columns: 1fr; gap: 32px; }
  .pdp-info, .form-fig, .cart-sum { position: static; }
  /* телефон: первый кадр, сразу покупка, остальные кадры и эскиз ниже */
  .pdp-media { display: contents; }
  .pdp-media > * { order: 2; }
  .pdp-media > :first-child { order: 0; }
  .pdp-info { order: 1; }
  .form-fig { padding: 20px; }
  .form-svg { max-width: 220px; }
  .ways { grid-template-columns: 1fr; }
  .rules div { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 700px) {
  .grid, .home-cat .grid, .pairs .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
  .page { padding-bottom: 72px; }
  .page-head { padding: 16px 0 24px; }
  .page h1 { font-size: clamp(36px, 11vw, 56px); }
  .page-sub { font-size: 16px; }
  .card-price { font-size: 15px; }
  .f-line { gap: 16px; }
  .filters .f-row:first-child { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad) 6px; scrollbar-width: none; }
  .filters .f-row:first-child .chip { flex: none; }
  .pdp-flat { padding: 20px 12px 16px; }
  .line { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "img info info" "img qty price" "img del del"; gap: 8px 12px; padding: 12px; }
  .home-cat, .how { padding-top: 72px; }
  .foot { grid-template-columns: 1fr; }
  .foot-nav { grid-auto-flow: row; grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  /* на внутренних страницах телефона меню строкой под шапкой */
  body.inner .top { flex-wrap: wrap; row-gap: 8px; }
  body.inner .nav { display: flex; order: 3; width: 100%; margin: 0; gap: 16px; overflow-x: auto; scrollbar-width: none; padding: 4px 0; }
  body.inner .nav a { font-size: 14px; }
  body.inner .nav a { flex: none; }
}
