/* Кашин 24 — пилот главной (Claude), второй круг. Дизайн-система: DESIGN.md рядом. */
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-cyrillic-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-cyrillic-wght-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-latin-wght-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Commissioner"; src: url("fonts/commissioner-cyrillic-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Commissioner"; src: url("fonts/commissioner-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: "Old Standard TT"; src: url("fonts/old-standard-tt-cyrillic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Old Standard TT"; src: url("fonts/old-standard-tt-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Old Standard TT"; src: url("fonts/old-standard-tt-cyrillic-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Old Standard TT"; src: url("fonts/old-standard-tt-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Old Standard TT"; src: url("fonts/old-standard-tt-cyrillic-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Old Standard TT"; src: url("fonts/old-standard-tt-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Forum"; src: url("fonts/forum-cyrillic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Old Standard TT"; src: url("fonts/old-standard-tt-cyrillic-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Old Standard TT"; src: url("fonts/old-standard-tt-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Forum"; src: url("fonts/forum-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* основа: бумага и чернила плана 1777 года */
  --paper: #ece9de;
  --paper-2: #e0dbcb;
  --plan-paper: #e8e4d1;
  --ink: #211d18;
  --ink-soft: #5a5146;
  --white: #ffffff;
  /* два акцента: синий куполов и рек, кирпич торговых рядов */
  --sinij: #23407a;
  --sinij-deep: #182e5a;
  --kirpich: #9a3a2c;
  --accent: var(--sinij);
  --accent-ink: #ffffff;

  /* шрифт заголовков переключается в твиках; по умолчанию Old Standard TT (решение Игоря 21.10.2026) */
  --display: "Old Standard TT", "Times New Roman", serif;
  --display-big: var(--display);
  --dw: 400;          /* вес мелких заголовков и подписей */
  --dw-big: 400;      /* вес заголовков разделов */
  --mw: 700;          /* вес титра «Кашин 24» */
  --mark-track: -0.035em;
  --mark-k: .8;
  --sans: "Commissioner", "Segoe UI", system-ui, sans-serif;
  --s-small: .9375rem;
  --s-body: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  --s-lead: clamp(1.1875rem, 1.05rem + .55vw, 1.4375rem);
  --s-head: calc(clamp(3rem, 1.4rem + 5.6vw, 7.5rem) * var(--head-k, 1));
  --s-mark: calc(clamp(5.75rem, 1rem + 17vw, 18.5rem) * var(--head-k, 1) * var(--mark-k, 1));
  --m: clamp(16px, 2.6vw, 40px);
  --gap: clamp(96px, 11vw, 176px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
:root[data-accent="kirpich"] { --accent: var(--kirpich); }
:root[data-font="corm-sb"] { --display: "Cormorant", "Times New Roman", serif; --display-big: var(--display); --dw: 600; --dw-big: 600; --mw: 600; --mark-track: -0.025em; --mark-k: 1; }
:root[data-font="corm"] { --display: "Cormorant", "Times New Roman", serif; --display-big: var(--display); --dw: 560; --dw-big: 560; --mw: 520; --mark-track: -0.025em; --mark-k: 1; }
:root[data-font="forum"] { --display: "Cormorant", "Times New Roman", serif; --display-big: "Forum", "Times New Roman", serif; --dw: 600; --dw-big: 400; --mw: 400; --mark-track: -0.02em; --mark-k: 1.04; }
:root[data-head="s"] { --head-k: .85; }
:root[data-head="l"] { --head-k: 1.14; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-synthesis: none; font-feature-settings: "lnum" 1; margin: 0; color: var(--ink); background: var(--paper) url("media/foto/bumaga.webp") repeat; background-size: 700px 900px; font: 400 var(--s-body)/1.55 var(--sans); overflow-x: clip; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: var(--dw); letter-spacing: -0.015em; line-height: .92; margin: 0; text-wrap: balance; font-variant-numeric: lining-nums; }
h1, h2 { font-family: var(--display-big); font-weight: var(--dw-big); }
h2 { font-size: var(--s-head); }
p { margin: 0; }
main p, .end p { max-width: 64ch; }
.lead { font-size: var(--s-lead); line-height: 1.45; max-width: 36ch; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: var(--m); top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { top: 12px; }

/* кнопки: прямые углы, одна заливка; второстепенное действие — ссылкой */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; font: 600 1rem/1 var(--sans); letter-spacing: -0.005em; text-decoration: none; border: 0; cursor: pointer; transition: transform .25s var(--ease), background-color .25s, color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--ink); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: var(--white); }
.link { font: 600 1rem var(--sans); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; transition: text-decoration-thickness .2s, color .2s; }
.link:hover { text-decoration-thickness: 3px; color: var(--accent); }
.link-paper:hover { color: var(--white); }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

/* шапка */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 40; display: flex; align-items: center; gap: 32px; height: 68px; padding: 0 var(--m); font-family: var(--sans); color: var(--white); transition: background-color .4s, color .4s; }
.bar.is-paper { background: var(--paper); color: var(--ink); }
.bar-mark { font: 600 1.625rem/1 var(--display); font-variant-numeric: lining-nums; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.bar-nav { display: flex; gap: 26px; margin-left: auto; }
.bar-nav a, .bar-action { font-size: .97rem; font-weight: 520; text-decoration: none; }
.bar-nav a { position: relative; }
.bar-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.bar-nav a:hover::after { transform: scaleX(1); }
.bar-action { padding: 12px 18px; background: var(--accent); color: var(--white); transition: background-color .25s; }
.bar-action:hover { background: var(--ink); }
.bar-menu { display: none; margin-left: auto; background: none; border: 0; color: inherit; font: 600 1rem var(--sans); padding: 12px 0 12px 12px; cursor: pointer; }
.menu { position: fixed; inset: 0; z-index: 60; background: var(--ink); color: var(--paper); padding: 84px var(--m) 32px; display: flex; flex-direction: column; gap: 28px; }
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; gap: 4px; }
.menu nav a { font: 560 clamp(2rem, 9vw, 2.75rem)/1.1 var(--display); text-decoration: none; padding: 4px 0; }
.menu-close { position: absolute; top: 14px; right: var(--m); background: none; border: 0; color: inherit; font: 600 1rem var(--sans); padding: 12px 0; cursor: pointer; }

/* ---------- первый экран: полёт ---------- */
.polet { position: relative; height: var(--polet-len, 760svh); background: #2a4b86; }
.stage { position: sticky; top: 0; height: 100vh; /* taste-skill-ignore: запасное значение перед 100lvh */ height: 100lvh; overflow: hidden; contain: strict; }
.l { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform, opacity; }
.l-nebo, .l-nebo-video, .l-more, .l-foto-img { object-fit: cover; }
.l-nebo { object-position: 50% 0%; }
.l-nebo-video { object-position: 50% 40%; }
.l-nebo-video { opacity: 0; transition: opacity 1.2s; }
.l-nebo-video.is-ready { opacity: 1; }
.l-more { opacity: 0; }
.l-map { background: #d8d2bf; opacity: 0; overflow: hidden; }
.l-map img { position: absolute; left: 0; top: 0; max-width: none; width: auto; height: auto; transform-origin: 0 0; will-change: transform, opacity; opacity: 0; }
.l-map img[data-level="karta-gorod"], .l-map img[data-level="karta-rayon"] { -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); /* taste-skill-ignore: маска растушёвки края карты */ mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); /* taste-skill-ignore: маска растушёвки края карты */ }
.l-tiles, .l-prolet { pointer-events: none; }
.l-prolet { opacity: 0; }
.l-labels { pointer-events: none; opacity: 0; }
.l-labels span { position: absolute; left: 0; top: 0; font: italic 500 22px/1 var(--display); color: var(--ink); white-space: nowrap; will-change: transform; -webkit-text-stroke: 5px var(--plan-paper); paint-order: stroke fill; }
.l-labels .is-town { font-style: normal; font-weight: 600; font-size: 19px; letter-spacing: .02em; }
.l-labels .is-town::before { content: ""; position: absolute; left: -12px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.l-labels .is-main { font-size: 26px; color: var(--kirpich); }
.l-labels .is-main::before { width: 10px; height: 10px; top: 7px; left: -15px; background: var(--kirpich); }
.l-labels .is-river { color: #3f5b6c; }
.l-labels .is-town.is-flip::before { left: auto; right: -12px; }
.l-labels .is-main.is-flip::before { right: -15px; }
.l-oblaka { object-fit: cover; opacity: 0; pointer-events: none; }
.l-foto-img { opacity: 0; }
.l-foto { pointer-events: none; }
.l-scrim { pointer-events: none; opacity: 0; background: linear-gradient(to top, rgba(14, 16, 18, .72), rgba(14, 16, 18, 0) 62%); /* taste-skill-ignore: нейтральное затемнение фото под текстом */ }

/* метки разделов в манере плана: чернильный номер в кружке и подпись антиквой */
.l-pins { pointer-events: none; }
.l-pins a { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); opacity: 0; will-change: transform, opacity; }
.l-pins.is-live a { pointer-events: auto; }
.l-pins b { font-variant-numeric: lining-nums; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--plan-paper); font: 600 18px/1 var(--display); flex: none; transition: background-color .25s, color .25s, transform .3s var(--ease); }
.l-pins span { font: italic 600 22px/1 var(--display); white-space: nowrap; -webkit-text-stroke: 5px var(--plan-paper); paint-order: stroke fill; transition: color .2s; }
.l-pins a:hover b, .l-pins a.is-hot b, .l-pins a:focus-visible b { background: var(--kirpich); border-color: var(--kirpich); color: var(--plan-paper); transform: scale(1.12); }
.l-pins a:hover span, .l-pins a.is-hot span { color: var(--kirpich); }

.cap { position: absolute; z-index: 5; color: var(--white); will-change: transform, opacity; }
.cap h2 { font-size: clamp(3rem, 1.6rem + 4.6vw, 6.5rem); }
.cap p { font-size: var(--s-lead); line-height: 1.4; max-width: 28ch; margin-top: 18px; }
/* заголовок первого экрана — как титр фильма у нижнего края, сверху остаётся небо */
.cap-1 { --cap-1-bottom: clamp(72px, 11svh, 120px); left: var(--m); right: var(--m); bottom: var(--cap-1-bottom); display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.mark { font-size: var(--s-mark); font-weight: var(--mw); letter-spacing: var(--mark-track); line-height: .8; white-space: nowrap; margin-left: -0.03em; }
/* мягкая нейтральная подложка под титром: облака светлые, тонкие штрихи иначе теряются */
.cap-1::before { content: ""; position: absolute; z-index: -1; left: calc(var(--m) * -1); right: calc(var(--m) * -1); bottom: calc(var(--cap-1-bottom) * -1); height: 78svh; background: linear-gradient(to top, rgba(10, 22, 46, .6), rgba(10, 22, 46, 0)); /* taste-skill-ignore: нейтральное затемнение фото под текстом */ pointer-events: none; }
.cap-1-side { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; max-width: 330px; padding-bottom: .5vw; }
.cap-1 .cap-lead { margin: 0; font-size: 1.1875rem; line-height: 1.45; }
.cap-1-title { display: grid; justify-items: start; gap: 22px; }
.cap-hint { padding: 6px 0; min-height: 44px; border: 0; background: transparent; color: inherit; text-align: left; text-shadow: 0 1px 5px #102345; font: 700 clamp(1rem, .85rem + .5vw, 1.25rem)/1.25 var(--sans); cursor: pointer; }
.cap-hint[hidden] { display: none; }
.cap-hint::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 10px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); animation: nod 1.8s var(--ease) infinite; }
@keyframes nod { 50% { transform: translateY(2px) rotate(45deg); } }
.cap-2, .cap-3, .cap-4 { left: var(--m); top: clamp(100px, 15svh, 160px); color: var(--ink); opacity: 0; }
.cap-2 p, .cap-3 p, .cap-4 p { max-width: 24ch; }
.cap-5 { left: var(--m); bottom: clamp(96px, 14svh, 150px); opacity: 0; max-width: 820px; }
.cap-5 .btn { margin-top: 30px; }
.cap-credit { font-size: var(--s-small) !important; opacity: .85; margin-top: 22px !important; max-width: none !important; }

/* «Описание плана»: семь разделов ровными колонками, номер над названием; на телефоне 4 + 3 по центру */
.legenda { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 8px var(--m) calc(8px + env(safe-area-inset-bottom)); background: var(--plan-paper); border-top: 1px solid rgba(43, 36, 28, .18); transform: translateY(100%); will-change: transform; }
.legenda a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; padding: 6px 6px; text-align: center; text-decoration: none; font: 400 1.0625rem/1.15 var(--display); transition: background-color .2s, color .2s; }
.legenda a + a { box-shadow: inset 1px 0 0 rgba(43, 36, 28, .14); }
.legenda a b { font: 700 .8125rem/1 var(--display); font-variant-numeric: lining-nums; letter-spacing: .02em; color: var(--kirpich); transition: color .2s; }
.legenda a:hover, .legenda a.is-hot { background: var(--ink); color: var(--plan-paper); }
.legenda a:hover b, .legenda a.is-hot b { color: var(--plan-paper); }
@media (max-width: 760px) {
  .legenda { display: flex; flex-wrap: wrap; justify-content: center; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .legenda a { flex: 0 0 25%; min-height: 50px; padding: 4px 3px; font-size: .875rem; }
  .legenda a + a { box-shadow: none; }
  .legenda a:not(:nth-child(4n + 1)) { box-shadow: inset 1px 0 0 rgba(43, 36, 28, .14); }
  .legenda a b { font-size: .8125rem; }
}
/* на плане только номера; название раздела всплывает у номера при наведении или при наведении на легенду */
.l-pins span { position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); opacity: 0; pointer-events: none; transition: opacity .2s, color .2s; }
.l-pins a.is-flip span { left: auto; right: calc(100% + 8px); }
.l-pins a:hover span, .l-pins a.is-hot span, .l-pins a:focus-visible span { opacity: 1; }
.atrib { position: absolute; z-index: 6; right: var(--m); bottom: 72px; margin: 0; font: 400 13px/1.3 var(--sans); color: var(--ink-soft); opacity: 0; visibility: hidden; text-align: right; max-width: 60vw; }

:is(.polet.is-static, html:not(.js) .polet) { height: auto; }
:is(.polet.is-static, html:not(.js) .polet) .stage { position: relative; height: 100svh; min-height: 560px; }
:is(.polet.is-static, html:not(.js) .polet) :is(.l-nebo, .l-nebo-video, .l-map, .l-oblaka, .l-more, .l-tiles, .l-prolet, .l-labels, .l-pins, .cap-hint, .cap-2, .cap-3, .cap-4, .cap-5, .l-foto, .atrib) { display: none; }
:is(.polet.is-static, html:not(.js) .polet) :is(.l-foto-img, .l-scrim) { opacity: 1; }
:is(.polet.is-static, html:not(.js) .polet) .legenda { transform: none; }
:is(.polet.is-static, html:not(.js) .polet) .cap-1 { --cap-1-bottom: 120px; }

/* серия иллюстраций разделов: оттиск в чернилах на бумаге (временная обработка до генерации серии) */
.ottisk { filter: grayscale(1) contrast(1.32) brightness(1.08) sepia(.32); mix-blend-mode: multiply; }

/* ---------- Специалисты: поиск по справочнику и мозаика 12 категорий ---------- */
main > section { position: relative; }
.spec { padding: var(--gap) var(--m) calc(var(--gap) * .8); }
.spec-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; margin-bottom: clamp(36px, 4vw, 56px); }
.spec-head h2 { grid-column: 1 / span 7; }
.spec-head .lead { grid-column: 9 / span 4; }
.poisk { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px 18px; padding: 18px 0; margin-bottom: clamp(28px, 3vw, 44px); }
.poisk-label { font: 400 clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem)/1 var(--display); white-space: nowrap; }
.poisk input { min-width: 0; height: 56px; padding: 0 18px; border: 0; border-bottom: 2px solid var(--ink); background: rgba(255, 255, 255, .5); font: 400 1.125rem var(--sans); color: var(--ink); border-radius: 0; }
.poisk input:focus { outline: none; background: var(--white); border-color: var(--accent); }
.poisk-hint { grid-column: 2 / -1; font-size: var(--s-small); color: var(--ink-soft); }
.poisk-res { grid-column: 2 / -1; list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.poisk-res:empty { display: none; }
.poisk-res a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 16px; background: var(--white); text-decoration: none; transition: background-color .2s; }
.poisk-res a:hover, .poisk-res a:focus-visible { background: var(--paper-2); }
.poisk-res b { font: 400 1.25rem var(--display); }
.poisk-res span { font-size: var(--s-small); color: var(--ink-soft); }
.poisk-res .poisk-none { padding: 12px 16px; background: var(--white); }
/* нет точного совпадения: три похожие категории плитками, ниже ссылка редакции */
.poisk-none p { margin: 0 0 10px; }
.poisk-kat { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.poisk-res .poisk-kat a { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 2px; aspect-ratio: 4 / 5; padding: 10px; overflow: hidden; color: var(--white); background: var(--ink); }
.poisk-kat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poisk-kat a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 16, 18, .82), rgba(14, 16, 18, 0) 85%); /* taste-skill-ignore: подложка под подписью плитки */ }
.poisk-res .poisk-kat b, .poisk-res .poisk-kat span { position: relative; z-index: 1; color: var(--white); }
.poisk-res .poisk-kat b { font-size: 1rem; line-height: 1.1; }
@media (min-width: 761px) { .poisk-res .poisk-kat a { aspect-ratio: 16 / 10; } .poisk-res .poisk-kat b { font-size: 1.25rem; } }
.poisk-res .poisk-kat span { font-size: .75rem; opacity: .85; }
.poisk-res .poisk-none > .link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; background: none; }

.kat { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(150px, 14vw, 230px); gap: 8px; }
.kat li { grid-column: span 3; }
.kat .kat-p1, .kat .kat-p2 { grid-column: span 6; grid-row: span 2; }
.kat .kat-p3, .kat .kat-p4, .kat .kat-p5 { grid-column: span 4; }
/* мастеров 13: ряды 2 + 3 + 4 + 4 на компьютере; на телефоне 2 крупные, затем пары, тринадцатая во всю ширину */
.kat a { position: relative; display: flex; align-items: flex-end; height: 100%; overflow: hidden; text-decoration: none; background: var(--paper-2); color: var(--ink); transition: background-color .3s; }
.kat a:hover { background: #d6d0bd; }
.kat-media { position: absolute; inset: 0; }
.kat-media img, .kat-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s; }
.kat-media video { opacity: 0; }
.kat-media video.is-on { opacity: 1; }
.kat a:hover .kat-media img, .kat a:hover .kat-media video { transform: scale(1.05); }
.kat .has-cover a { color: var(--white); }
.kat .has-cover a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 16, 18, .66), rgba(14, 16, 18, 0) 58%); /* taste-skill-ignore: нейтральное затемнение фото под подписью */ }
.kat-text { position: relative; z-index: 1; display: grid; gap: 6px; padding: clamp(14px, 1.4vw, 22px); }
.kat-name { font: 400 clamp(1.5rem, 1rem + 1.4vw, 2.5rem)/1 var(--display); transition: transform .5s var(--ease); }
.kat .kat-p1 .kat-name, .kat .kat-p2 .kat-name { font-size: clamp(2.25rem, 1.4rem + 2.6vw, 4.25rem); }
.kat-count { font-size: .9375rem; line-height: 1.35; opacity: .9; max-width: 40ch; }
.kat a:hover .kat-name { transform: translateX(8px); }

/* «Разместите своё дело»: пример карточки без выдуманных имён */
.delo { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; margin-top: clamp(56px, 6vw, 96px); padding: clamp(28px, 4vw, 64px); background: var(--ink); color: var(--paper); }
.delo-text { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 22px; }
.delo-text h3 { font: 400 clamp(2.5rem, 1.5rem + 3.4vw, 5rem)/.95 var(--display-big); }
.delo-text p { font-size: var(--s-lead); line-height: 1.45; max-width: 34ch; }
.delo .link { color: var(--paper); }
.delo-primer { grid-column: 8 / span 5; margin: 0; }
.primer-card { position: relative; display: grid; gap: 10px; padding: 0 0 22px; background: var(--paper) url("media/foto/bumaga.webp"); background-size: 700px 900px; color: var(--ink); transform: rotate(-1.5deg); }
.primer-cover { display: block; aspect-ratio: 16 / 8; background: var(--paper-2) center / cover no-repeat; }
.primer-badge { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 6px 10px; background: var(--kirpich); color: var(--white); font: 600 .875rem var(--sans); }
.primer-cat, .primer-name, .primer-desc, .primer-row { padding: 0 22px; }
.primer-cat { font-size: .9375rem; color: var(--ink-soft); }
.primer-name { font: 400 2rem/1 var(--display-big); color: var(--ink-soft); }
.primer-desc { font-size: 1rem; color: var(--ink-soft); }
.primer-row { font-size: .9375rem; color: var(--ink-soft); }
.primer-row b { display: inline-block; min-width: 90px; color: var(--ink); font-weight: 600; }
.delo-primer figcaption { margin-top: 18px; font: italic 400 1.25rem var(--display); }

/* ---------- Потеряно и найдено: заголовок, текст и две кнопки, ниже два равных фото-входа в списки; на 1440×900 в один экран ---------- */
.poter { padding: clamp(56px, 6vw, 88px) var(--m); background: var(--ink); color: var(--paper); }
.poter-head { display: grid; justify-items: start; gap: 20px; max-width: 46rem; margin: 0; text-align: left; }
.poter h2 { margin: 0; font-size: calc(clamp(2.5rem, 1.6rem + 3vw, 4.5rem) * var(--head-k, 1)); }
.poter-head p { margin: 0; max-width: 40ch; font-size: var(--s-lead); line-height: 1.45; }
.poter-head .poter-btns { width: min(100%, 440px); margin-top: 8px; }
.poter-foto { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1200px; margin: clamp(32px, 4vw, 56px) 0 0; }
.poter-card { position: relative; display: flex; align-items: flex-end; aspect-ratio: 16 / 9; overflow: hidden; color: var(--white); text-decoration: none; background: var(--ink); }
.poter-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: sepia(.6) saturate(1.15) contrast(1.04) brightness(.96); transition: transform 1.2s var(--ease); }
.poter-pet img { object-position: 50% 68%; }
.poter-veshch img { object-position: 50% 55%; }
.poter-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 16, 18, .74), rgba(14, 16, 18, 0) 62%); /* taste-skill-ignore: подложка под подписью, как у плиток */ }
.poter-cap { position: relative; z-index: 1; display: grid; gap: 6px; padding: 16px 20px; }
.poter-cap b { font: 400 1.75rem/1 var(--display); }
.poter-cap span { font-size: 1rem; line-height: 1.35; }
.poter-card:hover img { transform: scale(1.04); }
.poter-card:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
@media (max-width: 760px) { .poter-foto { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- Места: заголовок подписывает панораму ---------- */
.mesta { padding-top: var(--gap); }
.mesta-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; padding: 0 var(--m) 48px; }
.mesta-head h2 { grid-column: 1 / span 8; }
.mesta-note { grid-column: 9 / span 4; font-size: var(--s-body); }
.mesta-pano { position: relative; margin: 0; height: min(88svh, 64vw); overflow: hidden; }
.mesta-pano img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 60%; will-change: transform; }
.mesta-pano figcaption { position: absolute; left: var(--m); bottom: 16px; color: var(--white); background: var(--ink); padding: 8px 12px; font-size: 14px; }
.mesta-kinds { max-width: none !important; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px clamp(24px, 4vw, 64px); padding: clamp(28px, 3vw, 48px) var(--m) 0; }
.mesta-kinds a { font: var(--dw-big) clamp(2.5rem, 1.4rem + 3.6vw, 5rem)/1.05 var(--display-big); text-decoration: none; transition: color .25s; }
.mesta-kinds a::after { content: " →"; font-size: .55em; vertical-align: .2em; opacity: .5; transition: opacity .25s; }
.mesta-kinds a:hover { color: var(--accent); }
.mesta-kinds a:hover::after { opacity: 1; }
.mesta-kinds .mesta-add { margin-left: auto; font: 600 1rem var(--sans); text-decoration: underline; text-underline-offset: 6px; }
.mesta-kinds .mesta-add::after { content: none; }

/* ---------- Доска объявлений ---------- */
.doska { margin-top: var(--gap); padding: var(--gap) var(--m); background: var(--sinij); color: var(--paper); }
.doska-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; margin-bottom: 64px; }
.doska-head h2 { grid-column: 1 / span 7; }
.doska-head .lead { grid-column: 1 / span 7; }
.doska-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: start; }
.list { position: relative; background: var(--paper) url("media/foto/bumaga.webp"); background-size: 700px 900px; color: var(--ink); padding: 28px 24px 0; display: flex; flex-direction: column; gap: 14px; min-height: 100%; }
.list:nth-child(1) { transform: rotate(-1.2deg); margin-top: 26px; }
.list:nth-child(2) { transform: rotate(.6deg); }
.list:nth-child(3) { transform: rotate(-.4deg); margin-top: 54px; }
.list:nth-child(4) { transform: rotate(1.4deg); margin-top: 12px; }
.list h3 { font-size: clamp(2.25rem, 1.6rem + 1.8vw, 3.25rem); }
.list p { font-size: 1.0625rem; line-height: 1.5; }
.list-term { font-variant-numeric: lining-nums; font: italic 600 1.25rem var(--display) !important; color: var(--kirpich); }
.list-add { font: 600 1rem var(--sans); text-underline-offset: 5px; margin-bottom: 18px; }
.list-strips { display: flex; height: 120px; }

/* ---------- Правила: одно утверждение и таблица ---------- */
.pravila { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: var(--gap) var(--m); }
.pravila h2 { grid-column: 1 / -1; }
.pravila-big { grid-column: 1 / span 7; margin-top: 28px; font: 500 clamp(1.75rem, 1.2rem + 1.4vw, 2.25rem)/1.25 var(--display); max-width: 26ch !important; }
.pravila-sroki { grid-column: 9 / span 4; align-self: end; width: 100%; border-collapse: collapse; }
.pravila-sroki caption { text-align: left; font: italic 600 1.375rem var(--display); padding-bottom: 12px; }
.pravila-sroki th, .pravila-sroki td { padding: 14px 0; border-top: 1px solid rgba(33, 29, 24, .22); font-size: 1.0625rem; }
.pravila-sroki th { text-align: left; font-weight: 500; }
.pravila-sroki td { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }

/* ---------- Канал: последнее фото, текст справа ---------- */
.kanal { position: relative; height: 92svh; min-height: 620px; overflow: hidden; color: var(--white); background: var(--sinij-deep); }
.kanal-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; filter: brightness(.8); }
.kanal::after { content: ""; position: absolute; inset: 0 0 0 40%; background: linear-gradient(to left, rgba(14, 18, 30, .74), rgba(14, 18, 30, 0)); /* taste-skill-ignore: нейтральное затемнение фото под текстом */ pointer-events: none; }
.kanal-body { position: absolute; z-index: 1; right: var(--m); bottom: clamp(56px, 10svh, 110px); width: min(560px, 44vw); display: flex; flex-direction: column; gap: 24px; }
.kanal-body h2 { font-size: clamp(3rem, 1.6rem + 4.4vw, 6.25rem); }
.kanal-body p { font-size: var(--s-lead); line-height: 1.4; }
.kanal-credit { font-size: var(--s-small) !important; opacity: .85; }

/* ---------- Подвал ---------- */
.end { background: var(--ink); color: var(--paper); padding: 72px var(--m) 32px; }
.end-mark { font: var(--mw) calc(clamp(5rem, 1rem + 18vw, 19rem) * var(--mark-k, 1))/.8 var(--display-big); letter-spacing: var(--mark-track); font-variant-numeric: lining-nums; white-space: nowrap; margin: 0 0 64px -0.03em; max-width: none !important; }
.end-cols { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px 24px; }
.end-cols nav { grid-column: 1 / span 6; display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 56px; }
.end-cols nav a { font: 500 1.5rem/1.25 var(--display); text-decoration: none; }
.end-cols nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.end-redakciya { grid-column: 8 / span 5; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; font-size: var(--s-body); }
.end-credits { margin-top: 64px; font-size: 15px; line-height: 1.55; color: #b9b2a5; max-width: 72ch !important; }

[data-rise] { will-change: transform; }

/* заглушка разделов пилота */
.stub { min-height: 100svh; display: grid; place-items: center; padding: var(--m); }
.stub-main { max-width: 640px; display: grid; gap: 28px; }
.stub-main h1 { font-size: clamp(3rem, 9vw, 6rem); }

/* ---------- планшет и телефон ---------- */
@media (max-width: 960px) {
  .bar-nav, .bar-action { display: none; }
  .bar-menu { display: block; }
  .spec-head, .mesta-head, .doska-head, .pravila, .end-cols { grid-template-columns: 1fr; }
  .spec-head > *, .mesta-head > *, .doska-head > *, .pravila > *, .end-cols > * { grid-column: 1 !important; }
  .poisk { grid-template-columns: 1fr auto; }
  .poisk-label { grid-column: 1 / -1; }
  .poisk-hint, .poisk-res { grid-column: 1 / -1; }
  .kat { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .kat li, .kat .kat-p3, .kat .kat-p4, .kat .kat-p5 { grid-column: span 1; }
  .kat .kat-p1, .kat .kat-p2 { grid-column: span 2; }
  .kat:not(.kat-org) .kat-p13 { grid-column: span 2; }
  .kat .kat-p1, .kat .kat-p2 { grid-row: span 2; }
  .kat-name { font-size: 1.375rem; }
  .kat-count { font-size: .875rem; }
  .delo { grid-template-columns: 1fr; }
  .delo-text, .delo-primer { grid-column: 1; }
  .mesta-pano { height: 120vw; max-height: 80svh; }
  .mesta-kinds .mesta-add { margin-left: 0; width: 100%; }
  .doska-list { grid-template-columns: 1fr; gap: 28px; }
  .list:nth-child(n) { margin-top: 0; }
  .pravila-sroki { margin-top: 32px; }
  .pravila-big { font-size: 1.5rem; }
  .kanal { height: auto; min-height: 0; display: flex; flex-direction: column; }
  .kanal::after { display: none; }
  .kanal-foto { position: relative; height: 70vw; max-height: 60svh; }
  .kanal-body { position: relative; right: auto; bottom: auto; width: auto; padding: 40px var(--m) 72px; }
  .end-cols nav { grid-template-columns: 1fr 1fr; gap: 8px 24px; }
}
@media (max-width: 760px) {
  .cap-1 { --cap-1-bottom: 56px; flex-direction: column; align-items: flex-start; gap: 26px; }
  .mark { font-size: calc(23vw * var(--head-k, 1) * var(--mark-k, 1)); }
  .cap-1-side { max-width: none; width: 100%; }
  .cap-1-side .btn { width: 100%; }
  .cap-1-title { gap: 18px; }
  .cap-5 { right: var(--m); bottom: 64px; }
  .cap-5 .btn { width: 100%; }
  .cap h2 { font-size: clamp(2.75rem, 13vw, 3.5rem); }
  .cap p { font-size: 1.0625rem; }
  .cap-2, .cap-3, .cap-4 { background: var(--plan-paper); padding: 16px 18px 18px; left: 12px; right: 12px; top: 78px; }
  .cap-2 p, .cap-3 p, .cap-4 p { margin-top: 8px; max-width: none; }
  .l-labels span { font-size: 18px; }
  .l-labels .is-main { font-size: 21px; }
  .l-labels .is-sec { display: none; }
  .l-pins b { width: 26px; height: 26px; font-size: 16px; }
  .l-pins span { font-size: 18px; }
  .atrib { bottom: 64px; font-size: 13px; max-width: 80vw; }
  .tweaks { bottom: auto; top: 16px; right: 84px; }
  .tweaks-toggle { padding: 8px 10px; }
  .tweaks-panel { bottom: auto; top: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- панель твиков (только для показа, не часть продакшна) ---------- */
.tweaks { position: fixed; z-index: 80; right: 12px; bottom: 76px; font: 500 13px/1.3 var(--sans); color: var(--ink); }
.tweaks-toggle { background: var(--ink); color: var(--paper); border: 0; padding: 10px 14px; font: inherit; font-weight: 650; cursor: pointer; }
.tweaks-panel { position: absolute; right: 0; bottom: 46px; width: 290px; background: var(--paper); padding: 16px; display: grid; gap: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .28); /* taste-skill-ignore: плавающая панель показа, настоящий оверлей */ }
.tweaks-panel[hidden] { display: none; }
.tweaks-panel fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.tweaks-panel legend { font-weight: 650; margin-bottom: 4px; }
.tweaks-panel .opts { display: flex; flex-wrap: wrap; gap: 4px; }
.tweaks-panel button { border: 0; background: var(--paper-2); padding: 8px 10px; font: inherit; cursor: pointer; }
.tweaks-panel button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* ---------- обложки без видео: движение кодом (наезд и блик), в одном ряду с видео-обложками ---------- */
.kat .is-anim .kat-media img, .lt.is-anim .kat-media img, .is-anim > img { animation: kat-naezd 10s ease-in-out infinite alternate; transform-origin: 60% 45%; }
.kat .is-anim .kat-media::after, .lt.is-anim .kat-media::after, .s-spec-cover.is-anim::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(105deg, rgba(255, 244, 222, 0) 38%, rgba(255, 244, 222, .22) 50%, rgba(255, 244, 222, 0) 62%); background-size: 260% 100%; animation: kat-blik 9s ease-in-out infinite; mix-blend-mode: soft-light; /* taste-skill-ignore: блик света — замена видеоцикла на обложке без видео */ }
.kat .is-anim:nth-child(2n) .kat-media img, .lt.is-anim:nth-child(2n) .kat-media img { animation-delay: -4s; transform-origin: 40% 55%; }
.kat .is-anim:nth-child(2n) .kat-media::after, .lt.is-anim:nth-child(2n) .kat-media::after { animation-delay: -4s; }
@keyframes kat-naezd { from { transform: scale(1.03) translate3d(0, 0, 0); } to { transform: scale(1.16) translate3d(-2.5%, -1.5%, 0); } }
@keyframes kat-blik { 0%, 55% { background-position: 130% 0; } 100% { background-position: -30% 0; } }
@media (prefers-reduced-motion: reduce) { .kat .is-anim .kat-media img, .is-anim > img, .kat .is-anim .kat-media::after, .lt.is-anim .kat-media::after, .s-spec-cover.is-anim::after { animation: none; } }
@media (max-width: 760px) {
  /* маленькие плитки мозаики на телефоне: название и число профессий, без примеров */
  .kat li:not(.kat-p1):not(.kat-p2) .kat-ex { display: none; }
  .kat li:not(.kat-p1):not(.kat-p2) .kat-name { font-size: 1.25rem; }
}

/* ---------- плитки категорий: примеры профессий и число размещённых мастеров; если 0 — приглашение разместиться ---------- */
.kat li { position: relative; }
.kat-n { display: block; margin-top: 4px; font-weight: 650; }
.kat li.is-empty .kat-text { padding-bottom: calc(clamp(14px, 1.4vw, 22px) + 1.7em); }
.kat li a.kat-first { position: absolute; z-index: 2; left: clamp(14px, 1.4vw, 22px); right: clamp(14px, 1.4vw, 22px); bottom: clamp(12px, 1.2vw, 18px); display: inline; height: auto; overflow: visible; background: none; color: var(--white); font: 600 .9375rem/1.3 var(--sans); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.kat .has-cover a.kat-first::after { content: none; }
.kat li a.kat-first:hover { background: none; text-decoration-thickness: 3px; }
@media (max-width: 760px) {
  .kat li:not(.kat-p1):not(.kat-p2) a.kat-first { font-size: .75rem; }
  .kat li.is-empty:not(.kat-p1):not(.kat-p2) .kat-text { padding-bottom: calc(14px + 2.6em); }
}

/* ---------- доска: заметная кнопка «повесить», весь листок кликабелен, мягкие подсказки «оторвите» ---------- */
.doska-head .doska-side { grid-column: 1 / span 7; display: grid; gap: 16px; justify-items: start; position: relative; }
.doska-add { position: relative; }
.stamp-btn { display: inline-flex; align-items: center; min-height: 54px; padding: 0 22px; list-style: none; cursor: pointer; border: 2.5px solid var(--paper); color: var(--paper); background: rgba(255, 255, 255, .06); font: 700 1.0625rem/1 var(--sans); letter-spacing: .01em; transform: rotate(-2deg); transition: transform .3s var(--ease), background-color .25s, color .25s; }
.stamp-btn::-webkit-details-marker { display: none; }
.stamp-btn:hover, .doska-add[open] .stamp-btn { transform: rotate(0); background: var(--paper); color: var(--sinij); }
.doska-add-menu { position: absolute; z-index: 5; top: calc(100% + 8px); left: 0; min-width: 260px; display: grid; background: var(--paper); color: var(--ink); box-shadow: 0 16px 40px rgba(0, 0, 0, .3); /* taste-skill-ignore: выпадающий список поверх доски */ }
.doska-add-menu a { display: flex; align-items: center; min-height: 48px; padding: 0 18px; text-decoration: none; font-weight: 600; border-top: 1px solid rgba(33, 29, 24, .12); }
.doska-add-menu a:first-child { border-top: 0; }
.doska-add-menu a:hover { background: var(--white); }
.doska-rules { margin: 0; max-width: 40ch; font-size: var(--s-lead); line-height: 1.45; opacity: .92; }
.doska-list { grid-template-columns: repeat(5, 1fr); }
.list { cursor: pointer; transition: translate .35s var(--ease), box-shadow .35s; }
.list:hover { translate: 0 -8px; box-shadow: 0 18px 34px rgba(0, 0, 0, .28); /* taste-skill-ignore: листок приподнимается под рукой */ }
.list-open { position: absolute; inset: 0; z-index: 1; }
.list-add, .list-strips, .list-empty-links { position: relative; z-index: 2; }
.list-add { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; padding: 0 16px; background: var(--sinij); color: var(--white); text-decoration: none; font: 600 1rem var(--sans); transition: background-color .25s; }
.list-add:hover { background: var(--ink); }
.list-see { display: none; font: 600 1rem var(--sans) !important; color: var(--sinij); }
.list-hint { position: absolute; z-index: 2; right: 10px; bottom: 142px; font: italic 600 1.375rem var(--display); color: var(--kirpich); transform: rotate(-7deg); pointer-events: none; }
.list-empty { cursor: default; background: transparent; color: var(--paper); border: 2px dashed rgba(236, 233, 222, .55); padding-bottom: 24px; transform: none !important; margin-top: 0 !important; }
.list-empty:hover { translate: none; box-shadow: none; }
.list-empty h3 { font-size: clamp(1.75rem, 1.3rem + 1vw, 2.25rem); }
.list-empty-links { display: flex; flex-wrap: wrap; gap: 8px; }
.list-empty-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--paper); color: var(--paper); text-decoration: none; font-weight: 600; }
.list-empty-links a:hover { background: var(--paper); color: var(--sinij); }
@media (hover: none) { .list-see { display: block; } .list:hover { translate: none; box-shadow: none; } }
@media (max-width: 1200px) { .doska-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px) {
  .doska-list { grid-template-columns: 1fr; }
  .doska-head .doska-side { grid-column: 1; }
  .stamp-btn { width: 100%; justify-content: center; transform: none; }
  .doska-add { width: 100%; }
  .doska-add-menu { position: static; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { .list { transition: none; } }

/* ---------- твики (только ?tweaks=1): кнопка в шапке по центру, текст страницы не перекрывает ---------- */
.tweaks { top: 14px; bottom: auto; right: auto; left: 50%; transform: translateX(-50%); z-index: 45; }
.tweaks-panel { top: 46px; bottom: auto; right: auto; left: 50%; transform: translateX(-50%); }
@media (max-width: 760px) { .tweaks { top: 14px; right: auto; } .tweaks-panel { top: 46px; } }
@media (max-width: 760px) {
  /* телефон: строка «смотреть» видна всегда, хвостики короче — доска на экран меньше */
  .list-see { display: block; }
  .list-strips { height: 100px; }
  .list-hint { bottom: 108px; }
}

/* ---------- телефон: цели под палец не меньше 44×44, основной текст не меньше 16 px ---------- */
@media (max-width: 760px) {
  .link, .bar-mark, .bar-menu, .end-cols nav a, .end-redakciya .link, .kat li a.kat-first { min-height: 44px; display: inline-flex; align-items: center; }
  .end-cols nav a { display: flex; }
  .kat li a.kat-first { bottom: 4px; }
  .kat li.is-empty:not(.kat-p1):not(.kat-p2) .kat-text { padding-bottom: calc(14px + 2.9em); }
  .poisk-hint { font-size: 1rem; }
}
@media (max-width: 760px) {
  .l-pins a::after { content: ""; position: absolute; inset: -10px -6px; }   /* зона нажатия номера на плане ≥44 px, метка не сдвигается */
  .mesta-kinds a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* живое небо над торговыми рядами: видео поверх той же картинки, видно только после начала проигрывания */
.mesta-pano video { position: absolute; inset: 0; width: 100%; height: 118%; object-fit: cover; object-position: 50% 60%; opacity: 0; transition: opacity .8s; will-change: transform; }
.mesta-pano video.is-on { opacity: 1; }

/* живое небо над куполами в блоке MAX: видео поверх фото с тем же кадрированием */
/* блок MAX: плывущие облака над куполами (решение Игоря 25.10.2026; ускорено в 2 раза, ролик 7 с). Ролик сделан из того же фото: облака плывут,
   купола, кресты и земля неподвижны, повтор без скачка; первый кадр совпадает с фото (прежний ролик с ручной съёмки дёргался) */
.kanal-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; filter: brightness(.8); opacity: 0; transition: opacity .8s; }
.kanal-video.is-on { opacity: 1; }
@media (max-width: 960px) { .kanal-video { inset: 0 0 auto 0; height: 70vw; max-height: 60svh; } }

/* ===================== Проход 3 (решения 22.10.2026). Сначала телефон 360–390 px, потом шире ===================== */
@font-face { font-family: "PT Mono"; src: url("fonts/pt-mono-cyrillic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Mono"; src: url("fonts/pt-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Caveat"; src: url("fonts/caveat-cyrillic-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Caveat"; src: url("fonts/caveat-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
:root { --mono: "Courier New", monospace; --ruka: "Segoe Print", cursive; --shtamp: #b3261e; }
/* шрифты бумаги и кирпич доски грузятся, только когда доска близко (класс is-near ставит app.js); на внутренних страницах сразу */
.doska.is-near, .s, html:not(.js) .doska { --mono: "PT Mono", "Courier New", monospace; --ruka: "Caveat", "Segoe Print", cursive; }

/* --- кнопки «дороже»: глубина, едва заметный переход, мягкая тень, блик; на телефоне вдавливаются --- */
.btn { position: relative; overflow: hidden; border-radius: 3px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 1px rgba(16, 20, 30, .14), 0 6px 16px -6px rgba(16, 20, 30, .32); transition: transform .25s var(--ease), translate .3s var(--ease), background-color .25s, color .25s, box-shadow .25s; /* taste-skill-ignore: тень даёт кнопке глубину, по решению Игоря */ }
.btn-primary { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 86%, #fff) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 86%, #000) 100%); /* taste-skill-ignore: едва заметный переход цвета внутри кнопки */ }
.btn-primary:hover { background: linear-gradient(180deg, #3a3530, var(--ink)); }
.btn-paper { background: linear-gradient(180deg, #f6f3ea, var(--paper)); /* taste-skill-ignore: едва заметный переход */ }
.btn-paper:hover { background: var(--white); }
.btn:active { transform: translateY(1px) scale(.97); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .28); }

/* --- «Кашин. Город русского сердца»: контур по руслу Кашинки --- */
.l-serdce { position: absolute; left: 0; top: 0; right: auto; bottom: auto; width: 3072px !important; height: 3106px !important; max-width: none; z-index: 3; transform-origin: 0 0; pointer-events: none; opacity: 0; visibility: hidden; overflow: visible; }
.l-serdce path { fill: none; stroke: var(--kirpich); stroke-width: 3.5; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--dl, 10000); stroke-dashoffset: var(--do, 10000); filter: drop-shadow(0 0 3px rgba(236, 233, 222, .9)); }
.cap-serdce { font: italic var(--dw) clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem)/1.05 var(--display); color: var(--kirpich); margin-top: 6px !important; }

/* --- Мастера и организации Кашина: поиск и две ленты, листаются вбок --- */
.mo { padding: clamp(56px, 9vw, 140px) var(--m) clamp(24px, 4vw, 48px); scroll-margin-top: 68px; }
.mo-head { display: grid; gap: 16px; margin-bottom: 20px; }
.mo-head h2 { font-size: calc(clamp(2.6rem, 1.4rem + 5vw, 6.5rem) * var(--head-k, 1)); }
#mo-h { font-family: var(--sans); font-size: calc(clamp(1.9rem, 1.2rem + 3.4vw, 4.5rem) * var(--head-k, 1)); font-weight: 650; line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
.lenta-blok { margin-top: clamp(24px, 4vw, 48px); }
.lenta-head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.lenta-head h3 { font: var(--dw-big) clamp(1.75rem, 1.3rem + 1.4vw, 2.75rem)/1 var(--display-big); }
.lenta-head .link { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; }
.lenta-nav { display: flex; gap: 6px; }
.lenta-head h3 + .lenta-nav { margin-left: auto; }   /* у «Организаций» ссылки в заголовке нет, стрелки всё равно справа */
/* на узком экране стрелок нет (листают пальцем): с мышью в узком окне строка «Мастера · Все мастера · ← →» не помещалась,
   страница становилась шире экрана (396 px при 375) и закреплённая шапка с «Меню» уезжала за правый край */
@media (max-width: 760px) { .lenta-nav { display: none; } }
.lenta-btn { width: 44px; height: 44px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 600 1.125rem var(--sans); cursor: pointer; }
.lenta-btn:hover { background: var(--ink); color: var(--paper); }
.lenta { list-style: none; margin: 0 calc(var(--m) * -1); padding: 0 var(--m) 6px; display: grid; grid-auto-flow: column; grid-auto-columns: 78vw; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--m); overscroll-behavior-x: contain; scrollbar-width: none; }
.lenta::-webkit-scrollbar { display: none; }
.lt { scroll-snap-align: start; }
.lt a { position: relative; display: flex; align-items: flex-end; aspect-ratio: 16 / 11; overflow: hidden; text-decoration: none; color: var(--white); background: var(--ink); }
.lt .kat-media img, .lt .kat-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s; }
.lt .kat-media video { opacity: 0; }
.lt .kat-media video.is-on { opacity: 1; }
.lt a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 16, 18, .74), rgba(14, 16, 18, 0) 62%); /* taste-skill-ignore: подложка под подписью плитки */ }
.lt .kat-text { position: relative; z-index: 1; display: grid; gap: 6px; padding: 16px; }
.lt .kat-name { font: 400 1.75rem/1 var(--display); }
.lt .kat-count { font-size: 1rem; line-height: 1.35; }
.lt .kat-n { display: block; font-weight: 600; }
.lt a:hover .kat-media img, .lt a:hover .kat-media video { transform: scale(1.05); }
.mo-add { margin-top: clamp(24px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 24px; }
/* «Все организации» — маленькая текстовая ссылка под общей кнопкой (решение 23.10.2026) */
.mo-vse { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; }
/* под организациями тот же отступ, что между «Мастерами» и «Организациями» (решение 24.10.2026): доска идёт сразу за блоком */
.mo + .doska { margin-top: 0; }
/* общая кнопка после обеих лент: крупно действие, мельче — для кого; дальше в форме выбор «Я частный мастер / Организация» */
.btn-dve { flex-direction: column; gap: 6px; min-height: 68px; padding: 12px 32px; }
.btn-dve-big { font: 600 1.125rem/1.1 var(--sans); }
.btn-dve-small { font: 500 .875rem/1.2 var(--sans); opacity: .86; }
.mo-add .btn { width: auto; }
@media (max-width: 760px) { .mo-add { justify-content: flex-start; gap: 8px 16px; } .mo-add .btn-dve { padding: 12px 18px; } }
@media (min-width: 761px) { .lenta { grid-auto-columns: 320px; } .mo-add { justify-content: flex-start; } .mo-add .btn { width: auto; } }

/* --- «Важное в Кашине» (решение Игоря 24.10.2026): тёплая полоса во всю ширину с кирпичной линией сверху,
   слева листок отрывного календаря, заголовок размера заголовков разделов, строки новостей, погода тремя плашками
   с цветными значками, ветром и давлением. Контраст текста на полосе и плашках не ниже 4,5:1, контуров значков — не ниже 3:1 --- */
.vazhnoe { --vz-fon: #e6d2bf; --vz-plashka: #f4e8db; --vz-liniya: rgba(154, 58, 44, .45); --vz-myagko: #4a4238;
  position: relative; margin: 0; padding: 0 var(--m) 28px; background: var(--vz-fon); box-shadow: inset 0 6px 0 var(--kirpich); }
.vazhnoe[hidden] { display: none; }
.vazhnoe-head { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); padding: 30px 0 22px; border-bottom: 1px solid var(--vz-liniya); }
/* листок отрывного календаря: кирпичная полоска с днём недели, крупное число, месяц */
.vz-kal { flex: none; width: clamp(100px, 7vw + 60px, 152px); margin: 0; text-align: center; background: #fbf7ef; border: 1px solid rgba(33, 29, 24, .22); border-radius: 3px; box-shadow: 0 1px 0 rgba(33, 29, 24, .08), 0 6px 14px rgba(33, 29, 24, .16); overflow: hidden; }
.vz-kal-den { display: block; padding: 4px 3px 3px; background: var(--kirpich); color: #fff; font: 700 clamp(.6875rem, .55rem + .45vw, .9375rem)/1.2 var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.vz-kal-chislo { display: block; padding-top: clamp(4px, .6vw, 10px); font: 400 clamp(2.9rem, 2rem + 3.2vw, 5.4rem)/.9 var(--display-big); font-variant-numeric: lining-nums; letter-spacing: -.02em; color: var(--kirpich); }
.vz-kal-mesyac { display: block; padding: 2px 4px clamp(6px, .8vw, 12px); font: 400 clamp(.875rem, .75rem + .4vw, 1.1875rem)/1.2 var(--sans); color: var(--ink); }
.vz-titul { min-width: 0; }
.vz-titul h2 { font-size: calc(clamp(2.6rem, 1.4rem + 5vw, 6.5rem) * var(--head-k, 1)); line-height: .92; margin: 0; color: var(--ink); }
.vazhnoe-vremya { margin: 10px 0 0; font: 400 1.0625rem/1.3 var(--sans); color: #3d362e; }
.vazhnoe-vremya:empty { display: none; }
.vazhnoe-telo { display: grid; }
.vazhnoe-list, .vz-pl-ryad { list-style: none; margin: 0; padding: 0; }
.vazhnoe-list[hidden], .vazhnoe-tiho[hidden] { display: none; }
.vazhnoe-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 0 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid rgba(154, 58, 44, .25); font-size: 1.125rem; line-height: 1.4; }
.vazhnoe-list li:last-child { border-bottom: 0; }
.vz-tekst b { font-weight: 600; }
.vz-tekst small { display: block; margin-top: 2px; font-size: .9375rem; color: var(--vz-myagko); }
.vz-tekst a { color: var(--sinij); }
.vz-primer { color: var(--vz-myagko); font-style: italic; }
/* цвета значков типа затемнены до 4,5:1 к полосе: красный 5,14, оранжевый 4,90, синий 6,87, зелёный 5,28 */
.vazhnoe-list .vz-otklyuchenie { --vz-c: #a3211a; }
.vazhnoe-list .vz-dorogi { --vz-c: #8f4105; }
.vazhnoe-list .vz-pogoda { --vz-c: var(--sinij); }
.vazhnoe-list .vz-sobytie { --vz-c: #355a4b; }
.vz-ikon { width: 26px; height: 26px; margin-top: 1px; fill: none; stroke: var(--vz-c, var(--ink)); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.vz-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* новостей нет: зелёная галочка */
.vazhnoe-tiho { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 2px 12px; align-items: start; margin: 0; padding: 18px 0 4px; }
.vz-galka { width: 32px; height: 32px; fill: none; stroke: #22603a; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.vazhnoe-tiho b { align-self: center; font: 600 1.25rem/1.35 var(--sans); color: var(--ink); }
.vazhnoe-tiho small { grid-column: 2; font-size: .9375rem; line-height: 1.45; color: var(--vz-myagko); }
/* погода: три одинаковые плашки */
.vazhnoe-pogoda:not(:empty) { margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--vz-liniya); }
.vz-veter-preduprezhdenie { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 8px 12px; background: #fbe9d6; border-left: 4px solid #c25a0a; border-radius: 3px; color: #a04f08; font: 700 1rem/1.3 var(--sans); }
.vz-veter-preduprezhdenie svg { flex: none; width: 22px; height: 22px; fill: none; stroke: #a04f08; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vz-pl-ryad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vz-pl { display: flex; flex-direction: column; min-width: 0; padding: 10px 6px 11px; text-align: center; background: var(--vz-plashka); border: 1px solid rgba(154, 58, 44, .28); border-radius: 6px; }
.vz-pl-den { display: block; font: 700 .875rem/1.2 var(--sans); color: var(--ink); }
.vz-pl-ikon { display: block; width: 60px; height: 60px; margin: 4px auto 2px; overflow: visible; }
.vz-pl-t { display: block; font: 600 1.875rem/1.05 var(--sans); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.01em; color: var(--ink); }
.vz-pl-slovo { display: block; margin-top: 4px; font: 600 .9375rem/1.25 var(--sans); color: var(--ink); }
.vz-pl-noch { display: block; margin: 2px 0 8px; font: 400 .8125rem/1.3 var(--sans); color: var(--vz-myagko); }
.vz-pl-dop { display: block; margin: auto 2px 0; padding-top: 7px; border-top: 1px solid rgba(154, 58, 44, .28); font: 400 .8125rem/1.35 var(--sans); color: var(--vz-myagko); }
.vz-pl-dop > span { display: block; }
.vz-pl-dop b { font-weight: 600; color: var(--ink); white-space: nowrap; }
/* цветные значки погоды (25.10.2026): рисунки в наборе ZNACHKI в app.js, цвета внутри самих значков; рядом всегда слово погоды */
/* только «сейчас» без прогноза: одна строка */
.vz-pog-odna { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.0625rem; }
.vz-pog-odna .vz-pl-ikon { width: 40px; height: 40px; margin: 0; }
@media (min-width: 761px) {
  .vazhnoe-telo { grid-template-columns: minmax(0, 1fr) 420px; gap: 0 40px; align-items: start; }
  .vazhnoe-pogoda:not(:empty) { margin-top: 0; padding: 18px 0 0 32px; border-top: 0; border-left: 1px solid var(--vz-liniya); align-self: stretch; }
  .vazhnoe.is-bez-novostey .vazhnoe-telo { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); }
  .vz-pl { padding: 12px 8px 13px; }
  .vz-pl-den { font-size: .9375rem; }
  .vz-pl-t { font-size: 2.25rem; }
  .vz-pl-ikon { width: 68px; height: 68px; }
}
/* очень узкий экран: «Послезавтра» не влезает в треть ширины — плашки столбиком */
@media (max-width: 359px) {
  .vz-pl-ryad { grid-template-columns: 1fr; }
  .vz-pl { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 0 10px; text-align: left; padding: 8px 12px; }
  .vz-pl-ikon { margin: 0; width: 44px; height: 44px; }
  .vz-pl-slovo, .vz-pl-noch, .vz-pl-dop { grid-column: 1 / -1; }
}

/* --- Доска объявлений Кашина: кирпич торговых рядов, разная бумага, крепления, шрифты --- */
.doska { background: #3b2a24; color: var(--paper); }
.doska.is-near, .s .doska, html:not(.js) .doska { background: #3b2a24 url("media/foto/kirpich.webp") center top / 900px auto; }
.doska .doska-head h2 { text-shadow: 0 2px 14px rgba(0, 0, 0, .5); }
.doska .stamp-btn:hover, .doska .doska-add[open] .stamp-btn { color: var(--kirpich); }
.doska-list { gap: 30px 22px; }
.doska-all { margin-top: 40px; text-align: center; }
.list { padding: 30px 20px 0; background-image: none; box-shadow: 0 12px 26px rgba(0, 0, 0, .4); /* taste-skill-ignore: листок на стене, тень часть предмета */ }
.list.p-print { background: #f7f5ee; }
.is-near .list.p-print, .s .list.p-print { background: #f7f5ee url("media/foto/bumaga.webp"); background-size: 700px 900px; }
.list.p-grid { background-color: #fbfbf7; background-image: linear-gradient(rgba(70, 110, 170, .17) 1px, transparent 1px), linear-gradient(90deg, rgba(70, 110, 170, .17) 1px, transparent 1px); background-size: 18px 18px; /* taste-skill-ignore: тетрадь в клетку */ }
.list.p-lined { background-color: #fbf9f1; background-image: linear-gradient(transparent 27px, rgba(70, 110, 170, .22) 27px, rgba(70, 110, 170, .22) 28px); background-size: 100% 28px; /* taste-skill-ignore: тетрадь в линейку */ }
.list.p-lined::after { content: ""; position: absolute; top: 0; bottom: 0; left: 12px; width: 1px; background: rgba(190, 70, 70, .45); pointer-events: none; /* taste-skill-ignore: поле тетради */ }
.list.t-mono h3 { font: 400 clamp(1.6rem, 1.3rem + .8vw, 2.1rem)/1.05 var(--mono); letter-spacing: -.02em; text-transform: uppercase; }
.list.t-mono p:not(.list-see) { font-family: var(--mono); font-size: 1rem; }
.list.t-hand h3 { font: 600 clamp(2.3rem, 1.9rem + 1vw, 2.9rem)/1 var(--ruka); }
.list.t-hand p:not(.list-see) { font: 600 1.4rem/1.2 var(--ruka); }
.list.f-pin::before { content: ""; position: absolute; z-index: 3; top: -8px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e46b5a, #9a3a2c 60%, #5d1f17); box-shadow: 0 3px 4px rgba(0, 0, 0, .45); /* taste-skill-ignore: кнопка-гвоздик */ }
.list.f-tape::before { content: ""; position: absolute; z-index: 3; top: -12px; left: 50%; width: 96px; height: 26px; margin-left: -48px; background: rgba(236, 226, 190, .74); transform: rotate(-4deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); /* taste-skill-ignore: полоска скотча */ }
.list.f-glue { box-shadow: 0 5px 10px rgba(0, 0, 0, .32); }
.list.f-glue::before { content: ""; position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 12px; background: linear-gradient(rgba(120, 100, 60, .2), transparent); pointer-events: none; /* taste-skill-ignore: след клея по верхнему краю */ }
.list-open { position: absolute; z-index: 1; left: 0; right: 0; top: 0; bottom: 110px; }
.list h3, .list p { position: relative; }
/* штамп в верхнем углу листка и не закрывает название (решение 24.10.2026): листок со штампом выше сверху */
.list h3 { padding-right: 0; }
.list:has(> .shtamp) { padding-top: 88px; }
.shtamp { position: absolute; z-index: 2; top: 10px; right: 12px; transform: rotate(-8deg); color: var(--shtamp); border: 2.5px solid var(--shtamp); border-radius: 4px; padding: 4px 8px; text-align: center; font: 700 .875rem/1.1 var(--sans); letter-spacing: .06em; text-transform: uppercase; opacity: .9; mix-blend-mode: multiply; pointer-events: none; }
.shtamp b { display: block; font-weight: 700; }
.shtamp .sh-b { display: none; }
.shtamp .sh-b b { font-size: 1.05rem; }
.shtamp small { display: block; font: 600 .62rem/1.2 var(--sans); letter-spacing: 0; text-transform: none; }
:root[data-shtamp="b"] .shtamp .sh-a { display: none; }
:root[data-shtamp="b"] .shtamp .sh-b { display: block; }
.list-see { display: block !important; margin: 4px 0 40px; font: 600 1rem var(--sans) !important; color: var(--sinij); }
.list-hint { position: absolute; z-index: 2; right: 16px; bottom: 100px; font: 600 1.5rem/1 var(--ruka); color: var(--shtamp); transform: rotate(-4deg); pointer-events: none; }
.list-strips { position: relative; z-index: 2; height: 96px; }
.list-empty { display: grid; align-content: center; gap: 14px; min-height: 220px; padding: 28px 22px; text-decoration: none; color: var(--paper); background: rgba(20, 14, 12, .45); border: 2px dashed rgba(236, 233, 222, .65); box-shadow: none; transform: none !important; }
.list-empty h3 { font: 600 2.3rem/1.05 var(--ruka); padding-right: 0; }
.list-empty p { color: var(--paper); }
.list-empty-go { display: inline-flex; align-items: center; justify-self: start; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--paper); font-weight: 600; }
.list-empty:hover .list-empty-go { background: var(--paper); color: var(--ink); }
@media (min-width: 761px) { .doska-list { grid-template-columns: repeat(2, 1fr); } .list-strips { height: 120px; } .list-hint { bottom: 124px; } .list-open { bottom: 130px; } }
@media (min-width: 1100px) { .doska-list { grid-template-columns: repeat(4, 1fr); } .list:nth-child(5) { transform: rotate(.8deg); } .list:nth-child(6) { transform: rotate(-1deg); margin-top: 20px; } .list:nth-child(7) { margin-top: 40px; } }

/* --- Потеряно и найдено: две равные кнопки (главная и страница раздела) --- */
.poter-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.poter-btns .btn { width: 100%; padding: 0 12px; }

/* --- «Поздравить»: пока короткий анонс (проверка спроса) --- */
.pozdrav { padding: clamp(40px, 5vw, 72px) var(--m); background: var(--paper-2); }
.pozdrav-body { display: grid; gap: 12px; justify-items: start; max-width: 760px; }
.pozdrav-body > p:not(.pozdrav-mark) { margin: 0; max-width: 40ch; font-size: var(--s-lead); line-height: 1.45; }
.pozdrav-mark, .s-anons-mark { font: 600 .875rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--kirpich); }
.pozdrav h2 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 3rem); }
@media (max-width: 760px) { .pozdrav .btn { width: 100%; } }

/* --- подвал: две колонки, мелкая строка «Фото и источники» --- */
.end-cols { grid-template-columns: 1fr 1fr !important; gap: 28px 20px; }
.end-cols nav.end-col { grid-column: auto !important; display: flex; flex-direction: column; gap: 0; }
.end-h { font: 600 .875rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin-bottom: 6px; }
.end-cols nav.end-col a { display: flex; align-items: center; min-height: 44px; font: 500 1.0625rem/1.25 var(--display); }
.end-credits { margin-top: 36px; }
.end-credits a { color: inherit; display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 761px) { .end-cols { grid-template-columns: repeat(2, minmax(0, 380px)) !important; gap: 40px 80px; } .end-cols nav.end-col a { font-size: 1.375rem; } }

/* --- телефон: кадр «План 1777». Заголовок компактный и не наезжает на подписи; описание плана в две строки без прокрутки вбок --- */
@media (max-width: 760px) {
  .cap-4 { top: 70px; padding: 10px 14px 12px; }
  .cap-4 h2 { font-size: 2rem; }
  .cap-4 p { font-size: .9375rem; line-height: 1.35; margin-top: 4px; }
}
.doska-list > * { min-width: 0; }
/* поле-ловушка для ботов: сдвинуто за экран, людям не видно (kontrakt_api.md) */
/* сообщение об успехе не уходит под закреплённую шапку */
.s-success { scroll-margin-top: 96px; }
/* --- снятие объявлений и карточек (решение 24.10.2026) --- */
.s-snyat { display: grid; gap: 12px; justify-items: start; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(33, 29, 24, .18); }
.s-snyat-forma { display: grid; gap: 12px; width: 100%; max-width: 34rem; }
.s-snyat-forma[hidden] { display: none; }
.s-snyat-forma > p { margin: 0; }
.s-snyat .s-hint, .s-snyat-pomoshch { margin: 0; max-width: 46ch; font-size: .9375rem; line-height: 1.45; color: var(--ink-soft); }
.s-snyat-gotovo { margin: 0; padding: 12px 16px; border-left: 4px solid #22603a; background: #e4f1e6; color: #1d4a2e; font-weight: 600; }
.s-nashelsya { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 4px 0 8px; padding: 6px 14px; background: #22603a; color: #fff; font: 700 1.125rem/1.3 var(--sans); border-radius: 4px; }
.s-nashelsya span { font-weight: 500; font-size: .9375rem; opacity: .92; }
.s-note .s-nashelsya { font-size: 1rem; padding: 4px 10px; }
.s-form-head .s-hint { max-width: 46ch; font-size: .9375rem; color: var(--ink-soft); }
.s-lovushka { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* организаций девять: третий ряд из трёх равных, девятая плитка во всю ширину, без дыры в сетке */
.kat-org .kat-p6, .kat-org .kat-p7, .kat-org .kat-p8 { grid-column: span 4; }
.kat-org .kat-p9 { grid-column: span 12; }
@media (max-width: 960px) { .kat-org .kat-p6, .kat-org .kat-p7, .kat-org .kat-p8 { grid-column: span 1; } .kat-org .kat-p9 { grid-column: span 2; } }
@media (prefers-reduced-motion: reduce) { .lt.is-anim .kat-media img, .lt.is-anim .kat-media::after { animation: none; } }

/* --- Доска: отрывные полоски (решение Игоря 25.10.2026, вариант 2 «Средне») ---
   Полоски — нижняя часть того же листа, разрезанная до конца; лист кончается там, где начинаются полоски,
   между ними и под ними видна стена. Форма каждой полоски с изгибом задаётся в app.js и stranicy.js (clip-path: path),
   там же сила блика и тени. У каждой полоски своя бумага того же вида, что листок (--bumaga), рисунок совпадает. Всё неподвижно. */
.list { --hv: 120px; --bumaga: var(--paper) url("media/foto/bumaga.webp") 0 0 / 700px 900px; }
.list.p-print { --bumaga: #f7f5ee; }
.is-near .list.p-print, .s .list.p-print { --bumaga: #f7f5ee url("media/foto/bumaga.webp") 0 0 / 700px 900px; }
.list.p-grid { --bumaga: linear-gradient(rgba(70, 110, 170, .17) 1px, transparent 1px) 0 0 / 18px 18px, linear-gradient(90deg, rgba(70, 110, 170, .17) 1px, transparent 1px) 0 0 / 18px 18px, #fbfbf7; }
.list.p-lined { --bumaga: linear-gradient(transparent 27px, rgba(70, 110, 170, .22) 27px, rgba(70, 110, 170, .22) 28px) 0 0 / 100% 28px, #fbf9f1; }
.list:has(> .list-strips) { margin-bottom: var(--hv); padding-bottom: 4px; min-height: 0; }
/* ряд поднят на 2 px под край листка: без щели на линии надреза */
.list .list-strips { position: absolute; z-index: 2; left: 0; right: 0; top: calc(100% - 2px); height: var(--hv); margin: 0; display: flex; }
.list:has(> .list-strips) .list-open { bottom: 0; }
.list:has(> .list-strips) .list-hint { bottom: 6px; }
/* кончик и тень крайней полоски могут выйти на 2–4 px за край листка: на телефоне это не должно сдвигать страницу вбок */
.doska { overflow-x: clip; }
.list .strip { flex: 1; position: relative; display: block; color: var(--ink); text-decoration: none; }
.list .strip:focus-visible { outline: 3px solid var(--sinij); outline-offset: -3px; }
/* тень на стене: размытая, под отогнутым кончиком шире и дальше; не заходит на край листка */
.strip-ten { position: absolute; z-index: 0; left: -14px; top: 0; width: calc(100% + 28px); height: calc(100% + 20px); overflow: visible; pointer-events: none; filter: blur(var(--razmytie, 3px)); clip-path: inset(4px -40px -60px -40px); }
.strip-ten path { fill: rgba(10, 6, 4, .62); }
/* полоска: та же бумага, что листок, по контуру с изгибом; поверх — надрез у верхнего края, блик, тень на кончике и скрутке */
.strip-list { position: absolute; z-index: 1; top: 0; bottom: 0; left: -14px; right: -14px; background: var(--bumaga); }
.strip-list::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, rgba(33, 22, 14, var(--nadrez, 0)) 0, transparent 2.5px) 14px 0 / calc(100% - 14px) var(--b0, 60px) no-repeat,
    linear-gradient(var(--skrutka-ugol, 90deg), rgba(40, 30, 20, var(--skrutka, 0)), transparent 40%) 0 var(--b0, 60px) / 100% calc(100% - var(--b0, 60px)) no-repeat,
    linear-gradient(var(--bok-ugol, 90deg), rgba(40, 30, 20, var(--bok, 0)), transparent 22%) 0 var(--b0, 60px) / 100% calc(100% - var(--b0, 60px)) no-repeat,
    linear-gradient(to bottom, transparent calc(var(--b0, 60px) - 14px), rgba(60, 45, 30, var(--sgib, .08)) var(--b0, 60px), rgba(255, 255, 255, var(--blik, .3)) var(--b1, 80px), rgba(255, 255, 255, 0) calc(var(--b1, 80px) + (var(--b2, 110px) - var(--b1, 80px)) * .5), rgba(60, 45, 30, var(--konchik, .1)) var(--b2, 110px)); }
.strip-slovo { position: absolute; left: 14px; right: 14px; top: 0; height: 74%; display: flex; align-items: center; justify-content: center; writing-mode: vertical-rl; transform: rotate(180deg); font: italic 600 1.125rem var(--display); }
@media (max-width: 760px) { .list { --hv: 100px; } }

/* ==========================================================================
   Эмалевые таблички: все кнопки-действия сайта (решение Игоря 25.10.2026, вариант 3).
   Глянцевая эмаль, рамка внутри, мягкий блик сверху, толстая тёмная кромка того же цвета снизу
   и размытая тень на фон. Свет один, сверху. Синяя — главные действия; кирпичная — только «Потерял»;
   кремовая с синей рамкой и синим текстом — второстепенные. Нажатие: табличка опускается на кромку.
   ========================================================================== */
.btn, .stamp-btn, .list-add {
  --em-verh: #4a72bb; --em: #2d5196; --em-niz: #223f7a; --em-kromka: #142a58;
  --em-ramka: rgba(255, 255, 255, .85); --em-tekst: #fff; --em-blik: .34; --em-h: 6px;
  position: relative; isolation: isolate; overflow: visible;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px; border: 0; border-radius: 12px;
  color: var(--em-tekst); text-decoration: none; text-align: center; cursor: pointer;
  font: 700 1.0625rem/1.15 var(--sans); letter-spacing: .005em;
  background: linear-gradient(180deg, var(--em-verh) 0%, var(--em) 50%, var(--em-niz) 100%);
  box-shadow: 0 var(--em-h) 0 var(--em-kromka), 0 calc(var(--em-h) + 4px) 14px -3px rgba(10, 12, 20, .45); /* taste-skill-ignore: кромка и тень эмалевой таблички, решение Игоря */
  transform: none; transition: transform .07s ease-out, box-shadow .07s ease-out, filter .2s;
  -webkit-tap-highlight-color: transparent;
}
/* рамка внутри таблички */
.btn::before, .stamp-btn::before, .list-add::before {
  content: ""; position: absolute; z-index: -1; inset: 3px; border: 3px solid var(--em-ramka); border-radius: 9px; pointer-events: none;
}
/* мягкий блик сверху: пятно света без резкой границы (на месте прежнего пробегающего блика) */
.btn::after, .stamp-btn::after, .list-add::after {
  content: ""; position: absolute; z-index: -1; inset: 3px; width: auto; height: auto;
  border-radius: 9px; transform: none; transition: none; pointer-events: none;
  background: radial-gradient(130% 75% at 50% -8%, rgba(255, 255, 255, var(--em-blik)) 0%, rgba(255, 255, 255, calc(var(--em-blik) * .35)) 38%, rgba(255, 255, 255, 0) 68%); /* taste-skill-ignore: блик эмали */
}
/* кремовая: второстепенные кнопки, особенно на тёмном фоне */
.btn-paper, .btn.s-btn-back {
  --em-verh: #fffbf2; --em: #f4ecd9; --em-niz: #e6d8b6; --em-kromka: #a48f63;
  --em-ramka: var(--sinij); --em-tekst: var(--sinij); --em-blik: .7;
}
/* кирпичная: только «Потерял» */
.btn-kirpich { --em-verh: #b04a35; --em: #9a3a2c; --em-niz: #852f23; --em-kromka: #561a12; }
/* наведение — чуть светлее; цвета прежних наведений (чёрный, белый, кирпичный текст) больше не действуют */
.btn:hover, .btn-primary:hover, .btn-paper:hover, .btn.s-btn-back:hover, .list-add:hover,
.stamp-btn:hover, .doska-add[open] .stamp-btn, .doska .stamp-btn:hover, .doska .doska-add[open] .stamp-btn {
  color: var(--em-tekst); background: linear-gradient(180deg, var(--em-verh) 0%, var(--em) 50%, var(--em-niz) 100%); transform: none;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover, .stamp-btn:hover, .list-add:hover { filter: brightness(1.07); }
}
/* нажатие: табличка опускается на кромку, кромка и тень уходят */
.btn:active, .stamp-btn:active, .list-add:active, .doska-add[open] .stamp-btn:active {
  transform: translateY(var(--em-h)); filter: none;
  box-shadow: 0 0 0 var(--em-kromka), 0 1px 3px rgba(10, 12, 20, .3);
}
/* фокус с клавиатуры: рамка внутри становится янтарной, снаружи янтарный контур */
.btn:focus-visible, .stamp-btn:focus-visible, .list-add:focus-visible { outline: 3px solid #f0b43c; outline-offset: 4px; }
.btn:focus-visible::before, .stamp-btn:focus-visible::before, .list-add:focus-visible::before { border: 3px solid #f0b43c; }
@media (prefers-reduced-motion: reduce) {
  .btn, .stamp-btn, .list-add { transition: none; }
  .btn:active, .stamp-btn:active, .list-add:active, .doska-add[open] .stamp-btn:active {
    transform: none; filter: brightness(.94); box-shadow: 0 var(--em-h) 0 var(--em-kromka), 0 calc(var(--em-h) + 4px) 14px -3px rgba(10, 12, 20, .45);
  }
}
/* малые таблички: тоньше кромка */
.list-add { --em-h: 4px; min-height: 48px; padding: 0 20px; border-radius: 10px; font-size: 1rem; }
.list-add::before, .list-add::after { inset: 3px; border-radius: 7px; }
.list-add::before { border-width: 2.5px; }
/* «Повесить своё объявление» на доске: уже не штамп с наклоном, а такая же табличка */
.stamp-btn, .doska .stamp-btn { transform: none; border: 0; }
/* две строки: главное слово и подпись мелким шрифтом */
.btn-dve { flex-direction: column; gap: 4px; min-height: 74px; padding: 12px 32px; }
.btn-dve-small { font: 500 .875rem/1.2 var(--sans); opacity: .92; }

/* «Я потерял / Я нашёл» как на эскизе: значок слева, главные слова, ниже подпись мелким шрифтом */
.btn-znak { justify-content: flex-start; gap: 12px; min-height: 72px; padding: 12px 16px 12px 18px; text-align: left; }
.btn-znak .btn-ikon { flex: none; width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.btn-znak .btn-ikon-t { fill: currentColor; stroke: none; }
.btn-znak .btn-slova { display: grid; gap: 3px; min-width: 0; }
.btn-znak b { font: 700 1.1875rem/1.05 var(--sans); white-space: nowrap; }
.btn-znak small { font: 500 .875rem/1.2 var(--sans); opacity: .94; }
/* две кнопки в строку: на телефоне по половине ширины, на компьютере не уже 260 px каждая */
.poter-btns { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 374px) { .btn-znak b { font-size: 1.0625rem; } .s .poter-btns .btn-znak { gap: 6px; padding: 10px 8px; } .s .poter-btns .btn-ikon { width: 20px; height: 20px; } }
.poter-head .poter-btns { width: min(100%, 560px); }
.poter-btns .btn-znak { padding: 12px 14px; }
@media (max-width: 400px) { .btn-znak { gap: 8px; } .btn-znak .btn-ikon { width: 24px; height: 24px; } .poter-btns .btn-znak { padding: 10px 10px 10px 12px; } }
/* «Назад», «Вернуться» и другие s-btn-back: stranicy.css подключается позже и сбрасывает тень, возвращаем кромку */
.btn.s-btn-back { color: var(--em-tekst); background: linear-gradient(180deg, var(--em-verh) 0%, var(--em) 50%, var(--em-niz) 100%); box-shadow: 0 var(--em-h) 0 var(--em-kromka), 0 calc(var(--em-h) + 4px) 14px -3px rgba(10, 12, 20, .45); }
.btn.s-btn-back:active { box-shadow: 0 0 0 var(--em-kromka), 0 1px 3px rgba(10, 12, 20, .3); }
/* «Повесить объявление →» на пустом листке доски: малая кремовая табличка, нажимается вместе с листком */
.list-empty .list-empty-go {
  --em-verh: #fffbf2; --em: #f4ecd9; --em-niz: #e6d8b6; --em-kromka: #a48f63; --em-ramka: var(--sinij); --em-blik: .7; --em-h: 4px;
  position: relative; isolation: isolate; justify-self: start; display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px;
  border: 0; border-radius: 10px; color: var(--sinij); font: 700 1rem/1.15 var(--sans);
  background: linear-gradient(180deg, var(--em-verh) 0%, var(--em) 50%, var(--em-niz) 100%);
  box-shadow: 0 var(--em-h) 0 var(--em-kromka), 0 calc(var(--em-h) + 4px) 14px -3px rgba(10, 12, 20, .45);
  transition: transform .07s ease-out, box-shadow .07s ease-out, filter .2s;
}
.list-empty .list-empty-go::before { content: ""; position: absolute; z-index: -1; inset: 3px; border: 2.5px solid var(--em-ramka); border-radius: 7px; pointer-events: none; }
.list-empty .list-empty-go::after { content: ""; position: absolute; z-index: -1; inset: 3px; border-radius: 7px; pointer-events: none; background: radial-gradient(130% 75% at 50% -8%, rgba(255, 255, 255, var(--em-blik)) 0%, rgba(255, 255, 255, calc(var(--em-blik) * .35)) 38%, rgba(255, 255, 255, 0) 68%); }
.list-empty:hover .list-empty-go { color: var(--sinij); background: linear-gradient(180deg, var(--em-verh) 0%, var(--em) 50%, var(--em-niz) 100%); }
@media (hover: hover) and (pointer: fine) { .list-empty:hover .list-empty-go { filter: brightness(1.07); } }
.list-empty:active .list-empty-go { transform: translateY(var(--em-h)); box-shadow: 0 0 0 var(--em-kromka), 0 1px 3px rgba(10, 12, 20, .3); }
.list-empty:focus-visible { outline: 3px solid #f0b43c; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .list-empty .list-empty-go { transition: none; } .list-empty:active .list-empty-go { transform: none; filter: brightness(.94); box-shadow: 0 var(--em-h) 0 var(--em-kromka); } }

/* --- «Бизнесу в Кашине»: реклама и сайты студии «Фасад», перед подвалом главной (решение Игоря 25.10.2026) --- */
.biz { padding: clamp(56px, 7vw, 104px) var(--m); background: var(--paper) url("media/foto/bumaga.webp"); background-size: 700px 900px; color: var(--ink); }
.biz-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.biz-head h2 { margin: 0; font-size: clamp(2.5rem, 1.6rem + 3vw, 4.5rem); }
.biz-head p { margin: 0; font-size: var(--s-lead); line-height: 1.45; color: var(--ink-soft, #4a443c); }
.biz-ryad { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); max-width: 1200px; }
.biz-k { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(24px, 3vw, 40px); background: #fbf8f1; border: 1px solid rgba(33, 29, 24, .14); border-radius: 6px; box-shadow: 0 1px 2px rgba(33, 29, 24, .06), 0 14px 30px -18px rgba(33, 29, 24, .35); }
.biz-metka { margin: 0; font: 700 .8125rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--kirpich); }
.biz-k h3 { margin: 0; font: 400 clamp(1.75rem, 1.3rem + 1.2vw, 2.5rem)/1.08 var(--display); }
.biz-k p:not(.biz-metka) { margin: 0; max-width: 34ch; font-size: 1.0625rem; line-height: 1.5; }
.biz-k .btn { margin-top: auto; }
.biz-k p:not(.biz-metka) + .btn { margin-top: 10px; }
@media (max-width: 760px) { .biz-ryad { grid-template-columns: 1fr; } .biz-k .btn { width: 100%; } }

/* «Я потерял / Я нашёл» на телефоне: подпись в одну строку (меньше кегль, плотнее значок), обе кнопки одной высоты */
@media (max-width: 480px) {
  .btn-znak { gap: 8px; padding: 10px 10px 10px 12px; }
  .btn-znak .btn-ikon { width: 22px; height: 22px; }
  .btn-znak small { font-size: .78rem; }
  .poter-head .btn-znak small { white-space: nowrap; }   /* на главной подпись в одну строку; в карточках раздела узко, там две строки */
  .poter-btns .btn-znak { align-self: stretch; }
}
@media (max-width: 389px) { .poter-head .btn-znak { gap: 6px; padding: 10px 8px; } .poter-head .btn-znak .btn-ikon { width: 20px; height: 20px; } .poter-head .btn-znak small { font-size: .72rem; } }
@media (max-width: 330px) { .poter-head .btn-znak small { white-space: normal; } }
@media (max-width: 340px) { .poter-head .btn-znak b { font-size: 1rem; } .poter-head .btn-znak small { font-size: .66rem; } .poter-head .btn-znak .btn-ikon { width: 18px; height: 18px; } }
/* «Написать редакции» в шапке на компьютере: второстепенная кремовая табличка (решение 25.10.2026) */
.bar-action, .bar-action:hover {
  --em-verh: #fffbf2; --em: #f4ecd9; --em-niz: #e6d8b6; --em-kromka: #a48f63; --em-ramka: var(--sinij); --em-tekst: var(--sinij); --em-blik: .7; --em-h: 4px;
  position: relative; isolation: isolate; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 10px;
  color: var(--em-tekst); font-weight: 700; background: linear-gradient(180deg, var(--em-verh) 0%, var(--em) 50%, var(--em-niz) 100%);
  box-shadow: 0 var(--em-h) 0 var(--em-kromka), 0 calc(var(--em-h) + 3px) 10px -3px rgba(10, 12, 20, .35);
  transition: transform .07s ease-out, box-shadow .07s ease-out, filter .2s;
}
.bar-action::before { content: ""; position: absolute; z-index: -1; inset: 3px; border: 2.5px solid var(--em-ramka); border-radius: 7px; pointer-events: none; }
.bar-action::after { content: ""; position: absolute; z-index: -1; inset: 3px; border-radius: 7px; pointer-events: none; background: radial-gradient(130% 75% at 50% -8%, rgba(255, 255, 255, var(--em-blik)) 0%, rgba(255, 255, 255, calc(var(--em-blik) * .35)) 38%, rgba(255, 255, 255, 0) 68%); }
@media (hover: hover) and (pointer: fine) { .bar-action:hover { filter: brightness(1.05); } }
.bar-action:active { transform: translateY(var(--em-h)); box-shadow: 0 0 0 var(--em-kromka), 0 1px 3px rgba(10, 12, 20, .3); }
.bar-action:focus-visible { outline: 3px solid #f0b43c; outline-offset: 4px; }
@media (max-width: 960px) { .bar-action, .bar-action:hover { display: none; } }   /* на телефоне кнопки в шапке нет, как раньше: она в меню */
@media (prefers-reduced-motion: reduce) { .bar-action { transition: none; } .bar-action:active { transform: none; filter: brightness(.94); box-shadow: 0 var(--em-h) 0 var(--em-kromka); } }

/* --- «Новости Кашина» (25.10.2026): новость с фото слева или без, заголовок, короткий текст, время и ссылка --- */
.vazhnoe-list .vz-novost { grid-template-columns: minmax(0, 1fr); gap: 0 14px; }
.vazhnoe-list .vz-novost.s-foto { grid-template-columns: 96px minmax(0, 1fr); }
.vz-foto { display: block; width: 96px; height: 72px; object-fit: cover; border-radius: 4px; background: rgba(33, 29, 24, .08); }
.vz-abzac { display: block; margin-top: 4px; font-size: 1rem; line-height: 1.45; color: var(--ink); }
.vz-novost .vz-tekst small { margin-top: 6px; }
@media (min-width: 761px) { .vazhnoe-list .vz-novost.s-foto { grid-template-columns: 128px minmax(0, 1fr); } .vz-foto { width: 128px; height: 96px; } }
.vazhnoe-tiho.vz-tiho-max { display: block; padding: 18px 0 4px; font: 600 1.125rem/1.4 var(--sans); }
.vazhnoe-tiho.vz-tiho-max[hidden] { display: none; }
