/* Solid Engineering — общий стиль.
   Концепция: бетон, чертёж, фирменный оранжевый из логотипа.
   Светлая бетонная основа, графитовые тёмные блоки, акцент — обожжённый оранжевый крыши. */
:root {
  --canvas: #EDEEEB;        /* бетон */
  --surface: #FFFFFF;
  --surface-2: #F6F7F4;
  --tint: #E3E5E1;          /* заглушки, поля */
  --line: #D6D9D4;
  --line-strong: #B9BEB8;
  --ink: #16191C;           /* графит */
  --ink-soft: #565D63;
  --accent: #C9480C;        /* обожжённый оранжевый (скат крыши) */
  --accent-hover: #AE3D08;
  --accent-soft: #F7E3D6;
  --accent-ink: #FFFFFF;
  --gold: #F0B24E;          /* светлый край градиента логотипа */
  --graphite: #15181B;
  --graphite-2: #1F2327;
  --on-dark: #EEF0EE;
  --on-dark-soft: #A6AEB3;
  --water: #2D78AF;
  --ok: #1D7A44;

  --f-display: "Geologica", "Golos Text", system-ui, sans-serif;
  --f-text: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4.5vw, 64px);
  --wrap: 1280px;
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --shadow-1: 0 1px 2px rgba(22, 25, 28, .06), 0 4px 14px rgba(22, 25, 28, .05);
  --shadow-2: 0 2px 4px rgba(22, 25, 28, .06), 0 14px 34px rgba(22, 25, 28, .10);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--graphite);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; caret-color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }
.wrap {
  width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .02em; }
.nums { font-variant-numeric: tabular-nums; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 1.35em; border-radius: var(--r-s);
  font-family: var(--f-text); font-weight: 600; font-size: 1rem; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--surface); }
.btn--dark { background: var(--ink); color: var(--surface); }
.btn--dark:hover { background: #2A2F34; }
.btn--sm { min-height: 40px; padding: 0 1em; font-size: .9375rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------- верхняя полоса ---------- */
.topbar { background: var(--graphite); color: var(--on-dark-soft); font-size: .875rem; }
.topbar .wrap { display: flex; align-items: center; gap: 24px; min-height: 44px; }
.city-switch { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid #2E3439; border-radius: 9px; }
.city-switch button {
  border: 0; background: transparent; color: var(--on-dark-soft); padding: 4px 12px; border-radius: 6px;
  cursor: pointer; font-size: .8125rem; transition: background-color .15s, color .15s;
}
.city-switch button[aria-pressed="true"] { background: #2E3439; color: var(--on-dark); }
.city-switch button:hover { color: var(--on-dark); }
.topbar__info { margin-left: auto; display: flex; align-items: center; gap: 22px; min-width: 0; }
.topbar__addr { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__phone { color: var(--on-dark); font-weight: 600; text-decoration: none; white-space: nowrap; }
.topbar__wa { color: #6FD39B; font-weight: 600; text-decoration: none; }
.topbar__wa:hover, .topbar__phone:hover { text-decoration: underline; }

/* ---------- шапка ---------- */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand__roof { width: 54px; height: auto; }
.brand__words { display: grid; gap: 3px; }
.brand__solid { height: 22px; width: auto; }
.brand__eng { height: 7px; width: auto; }
.brand__note { font-size: .75rem; color: var(--ink-soft); line-height: 1.25; padding-left: 14px; border-left: 1px solid var(--line); max-width: 11em; }
.nav { display: flex; gap: 4px; }
.nav a {
  position: relative; text-decoration: none; font-weight: 500; font-size: .9688rem; padding: 8px 10px; border-radius: 6px;
  white-space: nowrap; transition: color .15s;
}
.nav a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .22s var(--ease);
}
@media (hover: hover) { .nav a:hover::after { transform: scaleX(1); } }
.header__tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search { position: relative; }
.search input {
  width: clamp(170px, 16vw, 260px); height: 46px; padding: 0 14px 0 42px;
  border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface-2);
  transition: border-color .15s, background-color .15s;
}
.search input::placeholder { color: #8A9096; }
.search input:focus { outline: none; border-color: var(--ink); background: var(--surface); }
.search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--ink-soft); }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px;
  border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); cursor: pointer; text-decoration: none;
  transition: border-color .15s, background-color .15s;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-badge {
  position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-size: .75rem; font-weight: 700; display: grid; place-items: center;
  font-variant-numeric: tabular-nums;
}
.cart-badge[data-count="0"] { display: none; }
.bump { animation: bump .45s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }
.burger { display: none; }

/* мобильное меню */
.drawer {
  position: fixed; inset: 0; z-index: 80; background: rgba(21, 24, 27, .45);
  opacity: 0; pointer-events: none; transition: opacity .2s var(--ease);
}
.drawer[data-open="true"] { opacity: 1; pointer-events: auto; }
.drawer__panel {
  position: absolute; inset: 0 0 0 auto; width: min(360px, 88vw); background: var(--surface);
  padding: calc(20px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) 24px;
  transform: translateX(100%); transition: transform .28s var(--ease); display: flex; flex-direction: column; gap: 22px; overflow-y: auto;
}
.drawer[data-open="true"] .drawer__panel { transform: none; }
.drawer__nav { display: grid; }
.drawer__nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; text-decoration: none; }
.drawer__close { align-self: flex-end; }

/* ---------- секции ---------- */
.section { padding-block: clamp(64px, 9vw, 128px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 3.5vw, 44px); }
.section-head h2, .h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); font-weight: 750; line-height: 1.02; letter-spacing: -0.03em; }
.lede { color: var(--ink-soft); font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); max-width: 60ch; margin-top: 12px; }
.link-arrow { font-weight: 600; text-decoration: underline; white-space: nowrap; display: inline-flex; gap: .35em; align-items: center; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .18s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* появление при прокрутке (только если движение разрешено) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .62s var(--ease), transform .62s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- плашка наличия ---------- */
.stock { display: inline-flex; align-items: center; gap: 7px; color: var(--ok); font-weight: 600; font-size: .875rem; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(29, 122, 68, .15); }
.stock--ask { color: var(--ink-soft); }
.stock--ask::before { box-shadow: none; }

/* ---------- заглушка упаковки ---------- */
.pack-ph { display: grid; place-items: center; background: var(--surface-2); color: #A5ABA6; }
.pack-ph svg { width: 46%; height: auto; }

/* ---------- футер ---------- */
.footer { background: var(--graphite); color: var(--on-dark-soft); padding-block: 56px calc(40px + env(safe-area-inset-bottom, 0px)); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand__solid { filter: brightness(0) invert(1); opacity: .95; }
.footer__logo { display: inline-block; }
.footer__logo img { width: 140px; height: auto; }
.footer h3 { font-family: var(--f-text); font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--on-dark); text-decoration: underline; }
.footer__note { margin-top: 16px; font-size: .875rem; max-width: 30ch; }
.footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid #2B3035; display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; font-size: .875rem; }

/* ---------- мобильная нижняя панель ---------- */
.mobile-bar { display: none; }

/* ---------- тост ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--surface); padding: 12px 18px; border-radius: 10px; font-weight: 500; font-size: .9375rem;
  box-shadow: var(--shadow-2); transition: opacity .2s var(--ease), transform .2s var(--ease); max-width: calc(100vw - 32px);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- адаптив ---------- */
@media (max-width: 1360px) { .brand__note { display: none; } }
@media (max-width: 1700px) { .search input { width: 140px; } .nav { gap: 0; } .nav a { padding: 8px 8px; } .header .wrap { gap: 14px; } }
@media (max-width: 1360px) { .search input { width: 150px; } .header .wrap { gap: 14px; } .header__tools { gap: 8px; } }
@media (max-width: 1400px) { .search input { width: 44px; padding: 0; color: transparent; cursor: pointer; } .search input::placeholder { color: transparent; } .search input:focus { width: 200px; padding: 0 14px 0 42px; color: var(--ink); position: absolute; right: 0; top: 0; z-index: 5; } .search { width: 46px; height: 46px; } }
@media (max-width: 1180px) {
  .nav a { padding: 8px 7px; font-size: .9375rem; }
}
@media (max-width: 1180px) { .nav a { padding: 8px 5px; font-size: .9rem; } .header .wrap { gap: 10px; } .citybtn { padding: 0 9px; } .citybtn svg:last-child { display: none; } .brand__roof { width: 44px; } .brand__solid { height: 19px; } }
@media (max-width: 1050px) {
  .nav, .header__tools .search { display: none; }
  .burger { display: inline-grid; }
  .topbar__addr { display: none; }
}
@media (max-width: 720px) {
  .topbar .wrap { gap: 12px; }
  .topbar__wa { display: none; }
  .header .wrap { min-height: 64px; gap: 12px; }
  .brand__roof { width: 44px; }
  .brand__solid { height: 18px; }
  .brand__eng { height: 6px; }
  .section-head { flex-direction: column; align-items: start; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; inset: auto 0 0; z-index: 55;
    background: var(--surface); border-top: 1px solid var(--line);
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  }
  .mobile-bar .btn { min-height: 50px; }
  .btn--wa { background: var(--ok); color: #fff; }
  body { padding-bottom: 72px; }
  .toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
}

[hidden] { display: none !important; }
.drawer__panel > * { flex-shrink: 0; }

/* ---------- плавающая кнопка WhatsApp: всегда в углу экрана ---------- */
.wa-float {
  position: fixed; z-index: 70; right: 3vw; bottom: 3vw;
  width: 70px; height: 70px; padding: 3px; border-radius: 50%; display: block; text-decoration: none;
  background: #4dc247; fill: #fff; cursor: pointer; opacity: .9;
  animation: waPulse 2.5s linear infinite; transition: all .5s;
}
.wa-float svg { display: block; width: 100%; height: 100%; fill: #fff; }
.wa-float:hover { opacity: 1; transform: rotate(-90deg); }
@keyframes waPulse {
  0% { box-shadow: 0 0 0 1px rgba(77, 194, 71, .9); }
  50% { box-shadow: 0 0 0 40px rgba(0, 0, 0, 0); }
  100% { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { .wa-float { animation: none; transition: none; } .wa-float:hover { transform: none; } }
@media (max-width: 720px) {
  .wa-float { width: 62px; height: 62px; right: 16px; bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
  .toast { bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
}

/* ---- боевая сборка: ссылки на разделы каталога в подвале ---- */
.footer__groups { margin-top: 36px; padding-top: 28px; border-top: 1px solid #2B3035; }
.footer__groups ul { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px 28px; font-size: .875rem; }
.footer__groups + .footer__bottom { margin-top: 28px; }
.footer__groups { margin-bottom: 28px; }
.footer .wrap > .footer__groups:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- корзина ---------- */
.toast { z-index: 140; }
.cartp { position: fixed; inset: 0; z-index: 120; visibility: hidden; }
.cartp[data-open="true"] { visibility: visible; }
.cartp__bg { position: absolute; inset: 0; background: rgba(21, 24, 27, .45); opacity: 0; transition: opacity .2s var(--ease); }
.cartp[data-open="true"] .cartp__bg { opacity: 1; }
.cartp__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--surface); display: flex; flex-direction: column;
  box-shadow: var(--shadow-2); transform: translateX(100%); transition: transform .25s var(--ease); }
.cartp[data-open="true"] .cartp__panel { transform: none; }
.cartp__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cartp__head h2 { font-family: var(--f-display); font-size: 1.35rem; font-weight: 700; }
.cartp__x { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.cartp__body { overflow-y: auto; padding: 8px 20px 28px; flex: 1; }
.cartp__empty { padding: 28px 0; color: var(--ink-soft); }
.cartp__list { list-style: none; margin: 0; padding: 0; }
.cartp__it { padding: 14px 0; border-bottom: 1px solid var(--line); }
.cartp__name a { color: var(--ink); font-weight: 600; text-decoration: none; line-height: 1.35; }
.cartp__row { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.cartp__qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-s); }
.cartp__qty button { width: 36px; height: 36px; border: 0; background: transparent; font-size: 1.2rem; cursor: pointer; }
.cartp__qty b { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.cartp__row > span { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.cartp__ask { color: var(--ink-soft); font-weight: 500 !important; }
.cartp__rm { border: 0; background: none; color: var(--ink-soft); text-decoration: underline; cursor: pointer; font-size: .875rem; padding: 4px; }
.cartp__sum { padding: 16px 0 6px; }
.cartp__sum div { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.15rem; }
.cartp__sum b { font-family: var(--f-display); font-size: 1.5rem; }
.cartp__sum p { margin-top: 6px; font-size: .875rem; color: var(--ink-soft); }
.cartp__form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.cartp__form h3 { font-family: var(--f-display); font-size: 1.1rem; font-weight: 700; }
.cartp__city { border: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.cartp__city legend { font-size: .875rem; color: var(--ink-soft); margin-bottom: 6px; padding: 0; }
.cartp__city label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-s); cursor: pointer; }
.cartp__city label:has(input:checked) { border-color: var(--ink); background: var(--surface-2); font-weight: 600; }
.cartp__f { display: grid; gap: 6px; font-size: .875rem; color: var(--ink-soft); }
.cartp__f input, .cartp__f textarea { font: inherit; color: var(--ink); padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); width: 100%; box-sizing: border-box; }
.cartp__f input:focus, .cartp__f textarea:focus { outline: none; border-color: var(--ink); }
.cartp__note { font-size: .875rem; line-height: 1.5; color: var(--ink-soft); }
.cartp__btns { display: grid; gap: 10px; }
.cartp__btns [hidden] { display: none; }
.cartp__clear { border: 0; background: none; color: var(--ink-soft); text-decoration: underline; cursor: pointer; justify-self: start; padding: 4px 0; }

/* ---------- город: кнопка в шапке и окно выбора ---------- */
.citybtn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink);
  font: 600 .9375rem/1 var(--f-text); cursor: pointer; white-space: nowrap;
}
.citybtn svg { flex: none; }
.citybtn svg:first-child { color: var(--accent); }
.citybtn:hover { border-color: var(--accent); background: var(--accent-soft); }
.citybtn:focus-visible, .linkbtn:focus-visible, .citysheet button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.linkbtn { appearance: none; border: 0; background: none; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.linkbtn:hover { color: var(--accent-hover); }
@media (max-width: 520px) { .citybtn { padding: 0 10px; min-height: 38px; font-size: .875rem; } }

.citysheet { position: fixed; inset: 0; z-index: 125; display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .2s var(--ease); pointer-events: none; }
.citysheet.is-on { opacity: 1; pointer-events: auto; }
.citysheet__bg { position: absolute; inset: 0; background: rgba(22, 25, 28, .5); }
.citysheet__card {
  position: relative; width: min(420px, 100%); background: var(--surface); border-radius: var(--r-m); padding: 22px 20px 20px;
  box-shadow: var(--shadow-2); transform: translateY(8px); transition: transform .2s var(--ease);
}
.citysheet.is-on .citysheet__card { transform: none; }
.citysheet__card h2 { margin: 0 28px 6px 0; font: 700 1.25rem/1.2 var(--f-display); }
.citysheet__card p { margin: 0 0 14px; color: var(--ink-soft); font-size: .9375rem; line-height: 1.45; }
.citysheet__x { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--ink-soft); cursor: pointer; }
.citysheet__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.citysheet__btns button {
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer;
}
.citysheet__btns b { font: 700 1rem/1.2 var(--f-text); }
.citysheet__btns span { font-size: .8125rem; color: var(--ink-soft); line-height: 1.3; }
.citysheet__btns button:hover { border-color: var(--accent); background: var(--accent-soft); }
.citysheet__btns button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
/* первое появление: мягкая карточка внизу, без затемнения и без блокировки страницы */
.citysheet--soft { place-items: end start; pointer-events: none; }
.citysheet--soft .citysheet__bg { display: none; }
.citysheet--soft .citysheet__card { pointer-events: auto; margin-left: max(0px, env(safe-area-inset-left, 0px)); }
@media (max-width: 720px) {
  .citysheet--soft { place-items: end center; padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 400px) { .citysheet__btns { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .citysheet, .citysheet__card { transition: none; } }

/* разделы каталога в подвале: свёрнуты, ссылки остаются в коде страницы */
details.footer__groups > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; width: fit-content; font: 600 .9375rem/1.3 var(--f-text); color: var(--on-dark); }
details.footer__groups > summary::-webkit-details-marker { display: none; }
details.footer__groups > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease); }
details.footer__groups[open] > summary::after { transform: rotate(-135deg); }
details.footer__groups > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
details.footer__groups > ul { margin-top: 18px; }
