/* Балаково Life — городской портал balakovolife.ru.
   Палитра «Волга»: глубокий речной синий, голубая вода, закатный оранжевый акцент.
   Один шрифт — Onest: в нём и заголовки (800), и текст. */

/* Onest со своего сервера: Google Fonts блокировал отрисовку и открывал два чужих соединения.
   Переменный шрифт — один файл на набор символов покрывает начертания 400–800. */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/onest-cyrillic.d1abf183873c.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/onest-latin-ext.960412f3c7e3.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/onest-latin.fd7dbbcb3633.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f3f5f8;
  --ink: #0f1b2b;
  --card: #ffffff;
  --line: #e2e7ee;
  --line-2: #dce2ea;
  --line-3: #c6d0dc;
  --muted: #586579;
  --muted-2: #647083;   /* 4,6:1 на белом — WCAG AA для мелких подписей */

  --brand: #0d5bd7;
  --brand-2: #1a9bd8;
  --brand-dark: #0a3f99;
  --brand-soft: #8cc4ff;
  --brand-pale: #d3e7ff;
  --brand-tint: rgba(13, 91, 215, 0.08);
  --sun: #ff7a2f;        /* декоративный акцент: точки, линии, иконки */
  --sun-strong: #c2410c; /* фон под белый текст: 5,2:1 */
  --sun-soft: #ffe2cf;

  --dark: #0a1728;
  --dark-2: #102540;
  --light: #eef3fa;
  --grad: linear-gradient(120deg, #0d5bd7, #1a9bd8);
  --grad-dark: linear-gradient(160deg, #0f2a4d 0%, #0a1728 70%);

  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Onest', system-ui, sans-serif;

  --r-lg: 20px;
  --r: 14px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 27, 43, 0.04), 0 6px 20px rgba(15, 27, 43, 0.06);
  --shadow-hover: 0 2px 4px rgba(15, 27, 43, 0.05), 0 14px 34px rgba(15, 27, 43, 0.12);

  --shell: 1280px;
  --pad: clamp(16px, 3vw, 40px);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
::selection { background: var(--brand); color: #fff; }
::-webkit-scrollbar { height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line-3); border-radius: 99px; }

@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

img { max-width: 100%; }
img[width][height] { height: auto; }

/* ------------------------------------------------------------ примитивы */

.shell { max-width: var(--shell); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.eyebrow {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 700; color: var(--brand);
}
.eyebrow--light { color: var(--brand-soft); }
.eyebrow__alt { color: var(--muted-2); letter-spacing: 0.02em; text-transform: none; font-weight: 500; }
.eyebrow--light .eyebrow__alt { color: rgba(238, 243, 250, 0.45); }

.h2 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; margin: 0;
}

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin: 6px 0 22px;
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--line-3); border-radius: var(--r-sm); padding: 9px 16px;
  background: var(--card); color: var(--ink); white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn-primary {
  display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600;
  background: var(--brand); color: #fff; border-radius: var(--r-sm); padding: 10px 20px; border: none;
  cursor: pointer; font-family: inherit;
}
.btn-primary:hover { color: #fff; background: var(--brand-dark); }

.btn-sun {
  display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700;
  background: var(--sun); color: #fff; border-radius: var(--r-sm); padding: 10px 18px;
}
.btn-sun:hover { color: #fff; filter: brightness(1.06); }

.btn-outline {
  display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--ink);
  border: 1px solid var(--line-3); border-radius: var(--r-sm); padding: 10px 18px;
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

.link-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }

/* слот изображения: картинка или подпись-заглушка */
.slot {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 100%, rgba(26, 155, 216, 0.22), transparent 60%),
    linear-gradient(150deg, #e7edf5, #d6e0ec);
}
.slot picture { display: contents; }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* заглушка без фото: название по центру и волжские волны снизу */
.slot__ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 18px 18px 40px; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(16px, 1.6vw, 21px); letter-spacing: -0.01em; color: var(--brand-dark); line-height: 1.2;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M0 14c15 0 15-8 30-8s15 8 30 8 15-8 30-8 15 8 30 8M0 30c15 0 15-8 30-8s15 8 30 8 15-8 30-8 15 8 30 8' fill='none' stroke='%231a9bd8' stroke-opacity='.28' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left bottom 10px / 120px 40px;
}
.slot__ph::before {
  content: ""; position: absolute; top: 16px; right: 16px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--sun); opacity: .85;
}
.slot--fill { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ------------------------------------------------------------ шапка */

.topstrip { background: var(--dark); color: rgba(238, 243, 250, 0.72); font-size: 13px; }
.topstrip__inner {
  max-width: var(--shell); margin: 0 auto; padding: 7px var(--pad);
  display: flex; align-items: center; gap: 22px;
}
.topstrip__city { color: #fff; font-weight: 600; }
.topstrip__links { display: flex; gap: 18px; margin-left: auto; }
.topstrip a { color: rgba(238, 243, 250, 0.72); }
.topstrip a:hover { color: #fff; }
.topstrip .topbar__weather { color: #fff; }

.topbar {
  position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex; align-items: center; gap: 28px;
  max-width: var(--shell); margin: 0 auto; padding: 12px var(--pad);
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); white-space: nowrap; }
.logo:hover { color: var(--ink); }
.logo__mark { flex: none; display: block; }
.logo__text { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.03em; }
.logo__dot {
  display: inline-block; margin-left: 4px; padding: 1px 7px 2px; border-radius: 7px;
  background: var(--sun-strong); color: #fff; font-size: 13px; letter-spacing: 0; vertical-align: 2px;
}

.topnav { display: flex; align-items: center; gap: 2px; font-size: 15px; font-weight: 600; flex-wrap: nowrap; flex: 1; min-width: 0; }
.topnav a, .topnav__more summary { color: var(--ink); white-space: nowrap; padding: 8px 11px; border-radius: 9px; }
.topnav a:hover, .topnav__more summary:hover { color: var(--brand); background: var(--brand-tint); }
/* «Ещё»: выпадающее меню без JS */
.topnav__more { position: relative; }
.topnav__more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.topnav__more summary::-webkit-details-marker { display: none; }
.topnav__more[open] summary { color: var(--brand); background: var(--brand-tint); }
.topnav__more[open] summary svg { transform: rotate(180deg); }
.topnav__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; min-width: 240px;
  display: grid; padding: 8px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-hover);
}
.topnav__menu a { font-weight: 500; padding: 9px 12px; }
.topnav__alt { display: none; }
/* средние экраны: второстепенные пункты уходят в «Ещё», а не обрезаются */
@media (max-width: 1240px) {
  .topnav__opt { display: none; }
  .topnav__alt { display: block; }
  .topnav a, .topnav__more summary { padding: 8px 9px; }
  .topbar__inner { gap: 18px; }
}

.topbar__search {
  display: inline-flex; width: 40px; height: 40px; border-radius: var(--r-sm); flex: none;
  align-items: center; justify-content: center; color: var(--ink); border: 1px solid var(--line);
}
.topbar__search:hover { color: var(--brand); border-color: var(--brand); }

.topbar__cta {
  display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600;
  background: var(--brand); color: #fff; border-radius: var(--r-sm); padding: 10px 18px; white-space: nowrap;
  flex: none;
}
.topbar__cta:hover { color: #fff; background: var(--brand-dark); }

/* ------------------------------------------------------------ герой */

.hero { max-width: var(--shell); margin: 0 auto; padding: 22px var(--pad) 8px; }
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }

.hero__main {
  grid-column: span 8; border-radius: 24px; padding: clamp(28px, 3.6vw, 52px);
  color: var(--light); display: flex; flex-direction: column; justify-content: space-between; gap: 34px;
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(520px 320px at 92% 0%, rgba(26, 155, 216, 0.38), transparent 62%),
    radial-gradient(420px 260px at 0% 110%, rgba(255, 122, 47, 0.22), transparent 60%),
    var(--grad-dark);
}
/* волжские волны — фоновый рисунок героя */
.hero__waves { position: absolute; inset: auto 0 0 0; width: 100%; height: 58%; z-index: -1; opacity: 0.55; pointer-events: none; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: #fff; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 99px; padding: 5px 12px 5px 10px;
}
.hero__pulse { width: 8px; height: 8px; border-radius: 99px; background: var(--sun); box-shadow: 0 0 0 4px rgba(255, 122, 47, 0.25); }
.hero__alt { color: rgba(238, 243, 250, 0.55); font-weight: 500; }
.hero h1 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.02; margin: 22px 0 16px; letter-spacing: -0.035em; max-width: 15ch;
}
.grad-text {
  background: linear-gradient(100deg, #8cc4ff, #ffb07a 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { max-width: 50ch; margin: 0; font-size: 17px; color: rgba(238, 243, 250, 0.72); }

.hero__search {
  display: flex; gap: 8px; background: #fff; border-radius: 14px; padding: 6px; max-width: 580px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.hero__search svg { margin: auto 0 auto 12px; flex: none; color: var(--muted-2); }
.hero__search input {
  flex: 1; font: inherit; font-size: 16px; padding: 9px 4px; border: none;
  background: transparent; color: var(--ink); outline: none; min-width: 0;
}
.hero__search input::placeholder { color: var(--muted-2); }
.hero__search button { font: inherit; font-size: 15px; font-weight: 600; padding: 10px 22px; }

.hero__tags { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.hero__tags a {
  color: rgba(238, 243, 250, 0.88); background: rgba(255, 255, 255, 0.08);
  border-radius: 8px; padding: 4px 10px;
}
.hero__tags a:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }

.hero__side { grid-column: span 4; display: grid; gap: 16px; align-content: stretch; }

.card-weather {
  border-radius: 20px; padding: 22px 24px; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
}
.card-weather__top { display: flex; align-items: flex-start; justify-content: space-between; }
.card-weather__top .icon, .card-weather__top svg { color: var(--brand-2); }
.card-weather__temp { display: flex; align-items: baseline; gap: 12px; margin-top: 6px; }
.card-weather__value { font-family: var(--font-display); font-weight: 800; font-size: 46px; line-height: 1; letter-spacing: -0.04em; }
.card-weather__cond { color: var(--muted); font-size: 14px; }
.card-weather__facts { display: flex; gap: 16px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.card-weather__facts b { color: var(--ink); }

.card-event {
  border-radius: 20px; padding: 22px 24px; background: var(--card);
  border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
}
.card-event__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-event__body { display: flex; gap: 16px; align-items: center; color: inherit; }
.datechip {
  flex: none; text-align: center; border-radius: 12px; padding: 9px 13px;
  background: var(--sun-soft); color: #b84a0c;
}
.datechip__day { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1; }
.datechip__mon { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 3px; font-weight: 600; }
.card-event__title { font-weight: 700; line-height: 1.3; }
.card-event__meta { font-size: 13.5px; color: var(--muted); margin-top: 3px; }

/* быстрые разделы под героем */
.quick {
  grid-column: span 12; display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.quick__item {
  display: flex; align-items: center; gap: 11px; padding: 13px 14px; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  font-weight: 600; font-size: 14.5px; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.quick__item:hover { color: var(--brand); border-color: var(--brand-pale); box-shadow: var(--shadow); transform: translateY(-2px); }
.quick__icon {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: inline-flex;
  align-items: center; justify-content: center; background: var(--brand-tint); color: var(--brand);
}

/* ------------------------------------------------------------ бегущая лента */

.ticker { max-width: var(--shell); margin: 0 auto; padding: 14px var(--pad) 0; }
.ticker__row {
  display: flex; gap: 22px; align-items: center; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 10px 16px; font-size: 14px; color: var(--ink); white-space: nowrap;
}
.ticker__label {
  flex: none; display: inline-flex; align-items: center; gap: 7px; color: #fff; background: var(--sun-strong);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 11.5px;
  border-radius: 6px; padding: 3px 8px;
}
.ticker__label span { width: 6px; height: 6px; border-radius: 99px; background: #fff; }
.ticker__viewport { overflow: hidden; flex: 1; min-width: 0; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker__track { display: flex; gap: 22px; align-items: center; width: max-content; animation: tickerScroll 50s linear infinite; }
.ticker__track > * { flex: none; }
.ticker__sep { color: var(--line-3); }

/* ------------------------------------------------------------ секции */

.section { max-width: var(--shell); margin: 0 auto; padding: 30px var(--pad); }
.section--news { padding-top: 40px; }
.section--blog { padding-bottom: 64px; }

.news__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(18px, 2.4vw, 32px); align-items: start; }
.news__lead { display: block; color: #fff; position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 420px; }
.news__lead:hover { color: #fff; }
.news__lead--text { background: radial-gradient(520px 300px at 90% 0%, rgba(26, 155, 216, 0.35), transparent 60%), var(--grad-dark); min-height: 340px; }
.news__lead--text .news__scrim { display: none; }
.news__scrim { position: absolute; inset: 0; background: linear-gradient(185deg, transparent 30%, rgba(8, 18, 32, 0.9) 85%); pointer-events: none; }
.news__lead-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 28px; pointer-events: none; }
.news__tags { display: flex; gap: 8px; align-items: center; font-size: 12.5px; }
.pill-tag { background: var(--sun-strong); font-weight: 700; border-radius: 6px; padding: 3px 9px; color: #fff; }
.news__date { color: rgba(238, 243, 250, 0.75); }
.news__lead-title { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.12; margin-top: 12px; max-width: 26ch; }
.news__lead-text { margin: 8px 0 0; color: rgba(238, 243, 250, 0.78); font-size: 15px; max-width: 54ch; }

.news__list { display: grid; align-content: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px 20px 18px; }
.news__item { display: flex; gap: 14px; align-items: flex-start; color: inherit; padding: 15px 0; border-bottom: 1px solid var(--line); }
.news__item:hover { color: var(--brand); }
.news__icon {
  flex: none; margin-top: 2px; display: inline-flex; width: 34px; height: 34px; border-radius: 10px;
  background: var(--brand-tint); align-items: center; justify-content: center; color: var(--brand);
}
.news__meta { font-size: 12.5px; color: var(--muted-2); }
.news__title { font-weight: 650; margin-top: 3px; line-height: 1.35; font-size: 15.5px; }

/* статьи: карточки без картинок, крупный заголовок и рубрика */
.entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.entry-card {
  display: flex; flex-direction: column; gap: 10px; color: inherit; padding: 22px 22px 20px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: box-shadow .18s, transform .18s, border-color .18s; position: relative;
}
.entry-card:hover { color: inherit; box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: transparent; }
.entry-card:hover .entry-card__title { color: var(--brand); }
.entry-card__meta { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted-2); flex-wrap: wrap; }
.entry-card__cat { color: var(--brand); background: var(--brand-tint); font-weight: 600; border-radius: 6px; padding: 2px 8px; }
.entry-card__title { font-family: var(--font-display); font-weight: 750; font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; }
.entry-card__text { font-size: 14.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.entry-card__text p { margin: 0; }
.entry-card__img { display: block; width: calc(100% + 44px); max-width: none; height: auto; margin: -22px -22px 6px; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
/* лид: схема слева, текст справа */
.entry-card--lead:has(.entry-card__img) {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-auto-rows: min-content;
  column-gap: 30px; row-gap: 12px; align-content: center; padding: 0 30px 0 0;
  background: var(--card); color: var(--ink); border: 1px solid var(--line);
}
.entry-card--lead:has(.entry-card__img) .entry-card__title { color: var(--ink); font-size: clamp(22px, 2.2vw, 30px); }
.entry-card--lead:has(.entry-card__img):hover .entry-card__title { color: var(--brand); }
.entry-card--lead:has(.entry-card__img) .entry-card__text { color: var(--muted); }
.entry-card--lead:has(.entry-card__img) .entry-card__meta { color: var(--muted-2); }
.entry-card--lead .entry-card__img {
  grid-column: 1; grid-row: 1 / span 3; align-self: center; width: 100%; height: auto; margin: 0;
  aspect-ratio: 16 / 9; border: none; border-right: 1px solid var(--line);
}
/* <picture> из {% picture %} не должен становиться ячейкой сетки — ячейкой остаётся сама картинка */
.entry-card picture { display: contents; }
.entry-card--lead:has(.entry-card__img) > :not(img, picture) { grid-column: 2; }
/* текст — единым блоком по центру напротив картинки: пустые строки сверху и снизу забирают лишнюю высоту */
.entry-card--lead:has(.entry-card__img) { grid-template-rows: 1fr auto auto auto 1fr; }
.entry-card--lead:has(.entry-card__img) .entry-card__img { grid-row: 1 / 6; height: 100%; object-fit: cover; }
.entry-card--lead:has(.entry-card__img) .entry-card__meta { grid-row: 2; }
.entry-card--lead:has(.entry-card__img) .entry-card__title { grid-row: 3; }
.entry-card--lead:has(.entry-card__img) .entry-card__text { grid-row: 4; }
.entry-card--lead:has(.entry-card__img) .entry-card__meta { margin-top: 30px; }
.entry-card--lead:has(.entry-card__img) .entry-card__text { margin-bottom: 30px; -webkit-line-clamp: 3; }
.article__cover { margin: 0 0 28px; }
.article__cover picture { display: contents; }
.article__cover img { display: block; width: 100%; height: auto; border-radius: var(--r); }
.prose figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.sources { margin-top: 2em; padding-top: 1.2em; border-top: 1px solid var(--line); font-size: 15px; }
.entry-card--lead { grid-column: span 2; background: var(--grad-dark); color: var(--light); border: none; padding: 30px 30px 26px; justify-content: flex-start; min-height: 260px; }
.entry-card--lead .entry-card__title { font-size: clamp(22px, 2.3vw, 30px); color: #fff; }
.entry-card--lead:hover .entry-card__title { color: #fff; }
.entry-card--lead .entry-card__text { color: rgba(238, 243, 250, 0.72); }
.entry-card--lead .entry-card__cat { color: #fff; background: var(--sun-strong); }
.entry-card--lead .entry-card__meta { color: rgba(238, 243, 250, 0.6); }

/* каталоги */
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; color: inherit;
  padding: 9px 16px 9px 10px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; transition: all 0.18s;
}
.chip:hover { border-color: var(--brand-pale); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--brand); }
.chip__icon {
  display: inline-flex; width: 32px; height: 32px; border-radius: 9px;
  background: var(--brand-tint); align-items: center; justify-content: center; color: var(--brand);
}
.chip__name { font-weight: 600; font-size: 14.5px; }
.chip__count { font-size: 12.5px; color: var(--muted-2); background: var(--bg); border-radius: 6px; padding: 1px 7px; }

.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 24vw, 300px);
  gap: 16px; overflow-x: auto; padding: 24px 2px 14px; scroll-snap-type: x mandatory;
}
.sight { scroll-snap-align: start; display: block; color: inherit; border-radius: var(--r-lg); overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: transform .18s, box-shadow .18s; }
.sight:hover { color: inherit; transform: translateY(-2px); box-shadow: var(--shadow); }
.sight .slot { position: relative; aspect-ratio: 16 / 9; }
.sight__scrim { display: none; }
.sight__body { padding: 12px 16px 16px; }
.sight__name { font-family: var(--font-display); font-weight: 750; font-size: 17px; line-height: 1.25; }
.sight__desc { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* карта */
.map {
  position: relative; border-radius: 24px; overflow: hidden; min-height: 360px; isolation: isolate;
  background:
    radial-gradient(500px 300px at 70% 40%, rgba(26, 155, 216, 0.25), transparent 65%),
    linear-gradient(150deg, #e9eff7, #dbe5f1);
}
.map__river { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.map__pin { position: absolute; color: var(--sun); }
.map__card {
  position: absolute; left: clamp(20px, 3.4vw, 48px); bottom: clamp(20px, 3vw, 44px); max-width: 460px;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 26px; box-shadow: var(--shadow);
}
.map__card h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; font-size: 26px; line-height: 1.12; margin: 8px 0 10px; }
.map__card p { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.map__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* жильё, афиша, блог — карточки с картинкой */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.tile { display: block; color: inherit; transition: transform 0.18s; }
.tile:hover { transform: translateY(-3px); color: inherit; }
.tile:hover .tile__name { color: var(--brand); }
.tile__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); }
.tile__media--wide { aspect-ratio: 16 / 9; }
.tile__price {
  position: absolute; left: 12px; top: 12px; font-size: 13px; font-weight: 700; color: var(--ink);
  background: rgba(255, 255, 255, 0.92); border-radius: 8px;
  padding: 4px 10px; pointer-events: none;
}
.tile__body { padding: 12px 4px 0; }
.tile__name { font-weight: 700; }
.tile__desc { font-size: 14px; color: var(--muted); margin-top: 2px; }
.tile__meta { font-size: 12.5px; color: var(--muted-2); }

/* работа и объявления */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); padding: clamp(22px, 2.6vw, 30px); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.panel__title { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; font-size: 24px; line-height: 1.1; margin: 6px 0 0; }
.row {
  display: flex; justify-content: space-between; gap: 14px; align-items: baseline;
  color: inherit; padding: 13px 0; border-bottom: 1px solid var(--line);
}
.row:hover { color: var(--brand); }
.row__title { font-weight: 600; font-size: 15px; }
.row__sub { font-size: 13px; color: var(--muted-2); margin-top: 2px; }
.row__value { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.panel__add { display: inline-flex; margin-top: 16px; font-size: 14px; font-weight: 600; }

/* участники */
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 12px; }
.member {
  display: flex; gap: 13px; align-items: center; color: inherit; padding: 14px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); transition: all 0.18s;
}
.member:hover { border-color: var(--brand-pale); transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.member__ava {
  flex: none; display: inline-flex; width: 42px; height: 42px; border-radius: 12px; color: #fff;
  align-items: center; justify-content: center; font-size: 14px; font-weight: 700; letter-spacing: 0.03em;
  background: var(--grad); overflow: hidden;
}
.member__ava--alt { background: linear-gradient(135deg, #5d6b80, #8592a5); }
.member__ava img { width: 100%; height: 100%; object-fit: cover; }
.member__name { font-weight: 600; font-size: 14.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member__line { font-size: 12.5px; margin-top: 2px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.member__status { font-weight: 600; color: var(--brand); }
.member__status--guest { color: var(--muted-2); }
.member__since, .member__meta { color: var(--muted-2); }
.member__meta { font-size: 12px; margin-top: 1px; }
.members__note { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }

/* организации */
.orgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 32px; margin-top: 36px; border-top: 1px solid var(--line-2); }
.org { display: flex; gap: 11px; align-items: flex-start; color: inherit; padding: 14px 2px; border-bottom: 1px solid var(--line-2); }
.org:hover { color: var(--brand); }
.org__icon { flex: none; margin-top: 2px; color: var(--brand); }
.org__name { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.org__info { font-size: 12.5px; color: var(--muted-2); margin-top: 1px; }

/* ------------------------------------------------------------ подвал */

.footer { color: rgba(238, 243, 250, 0.66); overflow: hidden; background: var(--dark); margin-top: 24px; }
.footer__waves { display: block; width: 100%; height: 26px; }
.footer__top {
  max-width: var(--shell); margin: 0 auto; padding: 48px var(--pad) 34px;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px);
  align-items: start; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__brand .logo { color: #fff; }
.footer__brand p { font-size: 15px; line-height: 1.6; }

.footer__subscribe p { font-size: 14px; margin: 6px 0 14px; }
.footer__subscribe-row { display: flex; gap: 10px; flex-wrap: wrap; }
.footer__subscribe input[type="email"] {
  flex: 1; min-width: 180px; font: inherit; font-size: 15px; padding: 11px 14px;
  border-radius: var(--r-sm); border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06); color: var(--light);
}
.footer__subscribe input[type="email"]::placeholder { color: rgba(238, 243, 250, 0.4); }
.footer__subscribe input[type="email"]:focus { outline: none; border-color: var(--brand-soft); }

.footer__cols {
  max-width: var(--shell); margin: 0 auto; padding: 40px var(--pad) 32px;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 36px);
}
.footer__about { font-size: 15px; margin: 14px 0 0; max-width: 48ch; }
.footer__social { display: flex; gap: 18px; margin-top: 18px; font-size: 14.5px; flex-wrap: wrap; }
.footer__social a { color: var(--brand-soft); }
.footer__col { display: grid; gap: 10px; align-content: start; font-size: 14.5px; }
.footer__col-title { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; font-weight: 700; margin-bottom: 6px; }
.footer__col a { color: rgba(238, 243, 250, 0.7); }
.footer__col a:hover { color: #fff; }
.footer__wordmark { max-width: var(--shell); margin: 0 auto; padding: 0 var(--pad); }
.footer__wordmark svg { display: block; margin-top: 12px; user-select: none; }
.footer__legal {
  max-width: var(--shell); margin: 0 auto; padding: 22px var(--pad) 30px; font-size: 13px;
  color: rgba(238, 243, 250, 0.45); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__legal a { color: rgba(238, 243, 250, 0.6); }

/* ------------------------------------------------------------ внутренние страницы */

.page { max-width: var(--shell); margin: 0 auto; padding: 32px var(--pad) 64px; min-height: 50vh; }
.page__title { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.08; margin: 10px 0 22px; max-width: 26ch; }
.page__list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.page__list li { padding: 14px 2px; border-bottom: 1px solid var(--line-2); }
.page__empty { color: var(--muted); }

/* статья */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.article__meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin: -8px 0 26px; }
.article__body { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 48px); }
.article__aside { position: sticky; top: 86px; display: grid; gap: 16px; }
.article__aside .panel { padding: 22px; }

.prose { font-size: 17.5px; line-height: 1.7; color: #1c2a3c; max-width: 72ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; font-size: 1.5em; line-height: 1.2; margin: 1.8em 0 0.6em; color: var(--ink); }
.prose h3 { font-family: var(--font-display); font-weight: 750; font-size: 1.22em; line-height: 1.25; margin: 1.6em 0 0.5em; color: var(--ink); }
.prose h4 { font-size: 1.05em; margin: 1.4em 0 0.4em; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin: 0.3em 0; }
.prose li::marker { color: var(--brand); }
.prose a { text-decoration: underline; text-decoration-color: var(--brand-pale); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--brand); }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--sun); background: #fff7f1; border-radius: 0 12px 12px 0; }
.prose blockquote p:last-child { margin: 0; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2em 0; }
.prose code { font-size: 0.9em; background: var(--bg); padding: 1px 5px; border-radius: 5px; }
.prose figure { margin: 1.4em 0; overflow-x: auto; }
.prose table { width: 100%; margin: 0 0 1.3em; border-collapse: collapse; font-size: 0.88em; line-height: 1.45; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg); font-weight: 700; }
.prose img { height: auto; border-radius: 12px; }

.byline { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.byline img { border-radius: 7px; }
.author-card {
  display: flex; gap: 16px; align-items: flex-start; color: inherit; margin-top: 36px;
  padding: 20px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line);
}
.author-card:hover { color: inherit; border-color: var(--brand-pale); }
.author-card img { flex: none; border-radius: 14px; }
.author-card__name { font-weight: 800; font-size: 17px; }
.author-card__role { font-size: 13.5px; color: var(--brand); font-weight: 600; margin-top: 2px; }
.author-card__bio { margin: 8px 0 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.author-card--head { margin: 0 0 24px; background: var(--card); max-width: 760px; }

/* обсуждение */
.discussion { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.discussion__head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.discussion__title { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; margin: 0; }
.discussion__count { min-width: 28px; height: 28px; padding: 0 9px; border-radius: 8px; background: var(--brand-tint); color: var(--brand); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.discussion .comments { margin: 0 0 18px; gap: 14px; }
.comment-thread { display: grid; gap: 10px; }
.discussion .comment { display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--r); }
.discussion .comment--child { margin-left: 44px; background: var(--bg); }
.comment__ava { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.comment__ava img { width: 100%; height: 100%; object-fit: cover; }
.comment__main { min-width: 0; flex: 1; }
.comment__head { justify-content: flex-start; flex-wrap: wrap; margin-bottom: 4px; }
.comment__date { color: var(--muted-2); }
.comment__text { font-size: 15.5px; line-height: 1.55; overflow-wrap: anywhere; }
.comment__text p { margin: 0 0 6px; }
.comment__reply { margin-top: 4px; padding: 0; border: none; background: none; color: var(--brand); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.comment-form { display: grid; gap: 10px; padding: 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.comment-form textarea { width: 100%; font: inherit; font-size: 15.5px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-3); resize: vertical; min-height: 92px; background: var(--card); color: var(--ink); }
.comment-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.comment-form__reply { font-size: 14px; color: var(--muted); }
.comment-form__reply button { border: none; background: none; padding: 0; color: var(--brand); font: inherit; cursor: pointer; }
.comment-form__foot { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.comment-form__note { font-size: 13px; color: var(--muted-2); }
.comment-login { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 14.5px; color: var(--muted); padding: 16px; border-radius: var(--r); background: var(--bg); }
/* поле-ловушка для ботов: убрано за экран, а не display:none — часть ботов это проверяет */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* погода: вкладки прогнозов и месяцы */
.weather-tabs { margin-bottom: 14px; }
.weather-months { display: flex; flex-wrap: wrap; gap: 6px 4px; align-items: baseline; font-size: 14px; margin: 0 0 22px; color: var(--muted-2); }
.weather-months span { margin-right: 6px; }
.weather-months a { padding: 2px 8px; border-radius: 6px; }
.weather-months a:hover { background: var(--brand-tint); }
.weather-months a.is-active { background: var(--ink); color: #fff; }
.week-table tr.is-weekend td:first-child b { color: var(--sun); }
a.stat-card { color: inherit; }
a.stat-card:hover { border-color: var(--brand); }

/* перелинковка: гиды по теме и разделы по теме */
.guides { margin-top: 8px; }
.guides__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 14px; }
.guide { display: flex; flex-direction: column; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.guide:hover { color: inherit; transform: translateY(-2px); box-shadow: var(--shadow); }
.guide:hover .guide__title { color: var(--brand); }
.guide picture { display: contents; }
.guide img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.guide__title { padding: 12px 14px 14px; font-weight: 700; font-size: 15px; line-height: 1.3; }
.related-sections { margin-top: 32px; }
.related-sections .chips { margin-top: 10px; }

.search-sections { margin: 0 0 22px; padding: 14px 16px; border-radius: var(--r); background: var(--brand-tint); }
.search-sections .chips { margin-top: 8px; }

/* карточка места: главные действия под заголовком, на телефоне — закреплены внизу */
.place-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.place-action { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 18px 8px 14px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line-3); color: var(--ink); }
.place-action:hover { border-color: var(--brand); color: var(--brand); }
.place-action span { display: grid; line-height: 1.2; }
.place-action b { font-size: 15px; }
.place-action small { font-size: 12.5px; color: var(--muted); max-width: 26ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place-action--call { background: var(--brand); border-color: var(--brand); color: #fff; }
.place-action--call small { color: rgba(255, 255, 255, .8); }
.place-action--call:hover { color: #fff; background: var(--brand-dark); }
@media (max-width: 760px) {
  .place-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; margin: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); flex-wrap: nowrap; }
  .place-action { flex: 1; justify-content: center; padding: 8px 10px; }
  .place-action small { display: none; }
  body:has(.place-actions) { padding-bottom: 76px; }
}

.pager { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 28px; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; font-size: 14.5px; }
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .is-current { background: var(--brand); border-color: var(--brand); color: #fff; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 24px; }
.tabs a { padding: 7px 14px; border-radius: 9px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 14px; }
.tabs a:hover { border-color: var(--brand); color: var(--brand); }
.tabs a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ------------------------------------------------------------ адаптив */

@media (max-width: 1080px) {
  .hero__main, .hero__side { grid-column: span 12; }
  .hero__side { grid-template-columns: 1fr 1fr; }
  .news__grid { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: 1fr; }
  .article { grid-template-columns: minmax(0, 1fr); }
  .article__aside { position: static; }
}

@media (max-width: 760px) {
  .topstrip__links { display: none; }
  .hero { padding-top: 14px; }
  .hero__side { grid-template-columns: 1fr; }
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news__lead { min-height: 320px; }
  .entry-card--lead { grid-column: auto; }
  .entry-card--lead:has(.entry-card__img) { display: flex; padding: 22px 22px 20px; }
  .entry-card--lead .entry-card__img { width: calc(100% + 44px); height: auto; margin: -22px -22px 6px; aspect-ratio: 16 / 9; }
  .entry-card--lead:has(.entry-card__img) .entry-card__meta { margin-top: 0; }
  .entry-card--lead:has(.entry-card__img) .entry-card__img { height: auto; object-fit: initial; }
  .entry-card--lead:has(.entry-card__img) .entry-card__text { margin-bottom: 0; }
  .entry-card--lead:has(.entry-card__img) .entry-card__text { margin-bottom: 0; }
  .map__card { position: static; margin: 200px 14px 14px; max-width: none; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; }
  .prose { font-size: 16.5px; }
  /* сенсорные цели не меньше 44 px (WCAG 2.5.5) */
  .topbar__search, .burger { width: 44px; height: 44px; }
  .hero__tags a, .chip, .fchip, .tabs a, .btn-ghost, .btn-primary, .btn-outline, .quick__item { min-height: 44px; display: inline-flex; align-items: center; }
  .section-head .btn-ghost { padding: 9px 14px; }
  .footer__col a { padding: 6px 0; }
  /* широкие таблицы листаются внутри себя, а не растягивают страницу */
  .prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .article__body { padding: 18px 16px; }
}

/* ============================================================ формы и UI */

.messages { max-width: var(--shell); margin: 14px auto 0; padding: 0 var(--pad); display: grid; gap: 8px; }
.msg { border-radius: 14px; padding: 12px 16px; font-size: 14.5px; border: 1px solid var(--line); background: var(--card); }
.msg--success { border-color: #bcd7f7; background: #eef6ff; color: var(--brand-dark); }
.msg--error { border-color: #e7bcb6; background: #fdf3f1; color: #8e3226; }
.msg--info { border-color: #c2d4e2; background: #f1f6fa; color: #2d4a5e; }

.form { display: grid; gap: 16px; max-width: 640px; }
.form--wide { max-width: none; }
.field { display: grid; gap: 6px; }
.field > label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="url"],
.field input[type="password"], .field input[type="number"], .field input[type="date"],
.field input[type="tel"], .field input[type="search"], .field input[type="file"],
.field select, .field textarea {
  font: inherit; font-size: 15px; padding: 11px 14px; border: 1px solid var(--line-3);
  border-radius: 14px; background: var(--card); color: var(--ink); width: 100%;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(13, 91, 215, 0.12);
}
.field--check { grid-auto-flow: column; justify-content: start; align-items: center; gap: 10px; }
.field--check label { font-weight: 500; color: var(--ink); font-size: 14.5px; }
.field__help { font-size: 12.5px; color: var(--muted-2); }
.field__error { font-size: 13px; color: #b03a2b; }
.form__actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.form__nonfield { border-radius: 14px; padding: 12px 16px; background: #fdf3f1; color: #8e3226; font-size: 14px; }

.stars { display: flex; gap: 4px; flex-direction: row-reverse; justify-content: flex-end; }
.stars label { cursor: pointer; font-size: 22px; color: var(--line-3); }
.stars input { display: none; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: #d8a13a; }

/* ------------------------------------------------------------ типовые блоки */

.grid-2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(18px, 2.4vw, 36px); align-items: start; }
.prose { font-size: 16.5px; line-height: 1.65; }
.prose--narrow { max-width: 72ch; }
.prose p { margin: 0 0 16px; }
.prose img { border-radius: 18px; }

.meta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 13.5px; color: var(--muted-2); margin-bottom: 14px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; border-radius: 99px; padding: 4px 12px; background: rgba(13, 91, 215, 0.1); color: var(--brand); }
.badge--warn { background: rgba(216, 161, 58, 0.16); color: #8a6014; }
.badge--muted { background: #eceff3; color: var(--muted); }
.badge--danger { background: rgba(176, 58, 43, 0.12); color: #b03a2b; }

.cover-lead { border-radius: 26px; overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 22px; position: relative; }

.dl { display: grid; gap: 0; }
.dl__row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.dl__row:last-child { border-bottom: none; }
.dl__key { color: var(--muted-2); flex: none; }
/* длинное значение переносим, а не выталкиваем строку за край панели */
.dl__val { font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }

.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
.table td { padding: 12px; border-bottom: 1px solid var(--line-2); }
.table tr:hover td { background: var(--card); }
.table-wrap { overflow-x: auto; }

.pagination { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 38px; text-align: center; padding: 8px 12px; border-radius: 99px;
  border: 1px solid var(--line-2); background: var(--card); font-size: 14px; font-weight: 600;
}
.pagination .is-current { background: var(--grad); color: #fff; border-color: transparent; }

/* отзывы и комментарии */
.reviews { display: grid; gap: 14px; }
.review, .comment { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.review__head, .comment__head { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.review__author, .comment__author { font-weight: 600; font-size: 14.5px; }
.review__date, .comment__date { font-size: 12.5px; color: var(--muted-2); }
.review__rating { color: #d8a13a; letter-spacing: 2px; }
.review__pros { color: var(--brand); font-size: 14px; margin-top: 6px; }
.review__cons { color: #b03a2b; font-size: 14px; }
.review__answer { margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(13, 91, 215, 0.07); font-size: 14px; }
.comments { display: grid; gap: 12px; margin-top: 16px; }
.comment--child { margin-left: 34px; }

.rating-line { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.rating-line b { font-family: var(--font-display); font-size: 20px; }

/* карта */
.map-page { height: 560px; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); }
.map-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

/* сетки-списки */
.list-rows { display: grid; }
.list-rows .row:last-child { border-bottom: none; }
.empty-box { border: 1px dashed var(--line-3); border-radius: 20px; padding: 34px; text-align: center; color: var(--muted); background: var(--card); }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 26px; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.stat-card__num { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1; color: var(--brand); }
.stat-card__label { font-size: 13px; color: var(--muted-2); margin-top: 6px; }

.lk-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.lk-nav a { font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); }
.lk-nav a:hover { border-color: var(--brand); color: var(--brand); }
.lk-nav a.is-active { background: var(--grad); color: #fff; border-color: transparent; }

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .map-page { height: 420px; }
}

/* ============================================================ доступность */

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 99px; font-weight: 600;
}
.skip-link:focus { left: 16px; color: #fff; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* поиск на светлом фоне (каталоги, страница поиска) */
.hero__search--light { background: var(--card); border-color: var(--line-2); }
.hero__search--light input { color: var(--ink); }
.hero__search--light input::placeholder { color: var(--muted-2); }

/* подпись авторства на фотографии */
.credit {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  font-size: 11.5px; line-height: 1.3; color: rgba(255, 255, 255, 0.82);
  background: rgba(8, 18, 32, 0.55); backdrop-filter: blur(6px);
  border-radius: 99px; padding: 4px 10px; max-width: calc(100% - 16px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.credit a { color: rgba(255, 255, 255, 0.92); text-decoration: underline; text-underline-offset: 2px; }
.credit a:hover { color: #fff; }

.credits-table td { vertical-align: top; }
.credits-thumb { width: 120px; height: 80px; object-fit: cover; border-radius: 10px; }

/* строка списка с миниатюрой (объявления, вакансии) */
.row--media { align-items: center; }
.row__thumb {
  flex: none; width: 86px; height: 64px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(150deg, #e7edf5, #d6e0ec); margin-right: 14px;
}
.row__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.row__main { display: flex; align-items: center; min-width: 0; flex: 1; }

/* ссылка-оверлей на фото героя: подпись авторства остаётся кликабельной */
.hero__photo-link { position: absolute; inset: 0; z-index: 1; }
.hero__geo { z-index: 2; }

/* в герое подпись авторства уводим наверх, чтобы не сталкивалась с плашкой места */
.hero__photo .credit { top: 12px; right: 12px; bottom: auto; }

/* карта */
.map-legend { font-size: 13px; color: var(--muted-2); margin-top: 10px; }
.map-pin {
  width: 18px; height: 18px; border-radius: 99px; background: var(--brand-2);
  border: 3px solid rgba(255, 255, 255, 0.9); box-shadow: 0 2px 8px rgba(15, 27, 43, 0.35);
  cursor: pointer;
}
.maplibregl-popup-content {
  border-radius: 14px; padding: 12px 14px; font-family: var(--font);
  font-size: 14px; line-height: 1.45; box-shadow: 0 10px 30px rgba(15, 27, 43, 0.18);
}
.maplibregl-popup-content a { font-weight: 600; }
.chip.is-active { border-color: var(--brand); background: rgba(13, 91, 215, 0.08); }

/* [hidden] обязателен: собственный display перебивает атрибут hidden */
.map-fallback[hidden] { display: none; }
.map-fallback {
  position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center;
  background: rgba(250, 253, 250, 0.94); text-align: center; padding: 24px;
}
.map-fallback p { color: var(--muted); font-size: 14.5px; max-width: 46ch; margin: 8px auto 16px; }
.map-fallback .form__actions { justify-content: center; }
.map-page { position: relative; }

/* карта в карточке объекта */
.place-map { height: 280px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); margin-top: 14px; }
.place-map__links { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13.5px; font-weight: 600; margin-top: 10px; }

/* ============================================================ погода */

.weather-now {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 44px);
  align-items: center; border-radius: 26px; padding: clamp(24px, 3vw, 36px); color: var(--light);
  background: radial-gradient(420px 260px at 15% -10%, rgba(140, 196, 255, 0.28), transparent 65%),
              linear-gradient(160deg, var(--dark-2), var(--dark));
}
.weather-now__main { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 28px); }
.weather-now__emoji { font-size: clamp(56px, 7vw, 92px); line-height: 1; }
.weather-now__temp { font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 6vw, 68px); line-height: 1; }
.weather-now__desc { font-size: 17px; margin-top: 8px; }
.weather-now__feels { color: rgba(238, 243, 250, 0.6); font-size: 14.5px; margin-top: 2px; }
.weather-now__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px 20px; }
.weather-now__facts div { display: grid; gap: 2px; }
.weather-now__facts span { font-size: 12.5px; color: rgba(238, 243, 250, 0.55); }
.weather-now__facts b { font-size: 15.5px; font-weight: 600; }

.weather-hours {
  display: grid; grid-auto-flow: column; grid-auto-columns: 92px; gap: 10px;
  overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity;
}
.weather-hour {
  scroll-snap-align: start; text-align: center; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; padding: 14px 8px;
}
.weather-hour__time { font-size: 12.5px; color: var(--muted-2); }
.weather-hour__emoji { font-size: 24px; margin: 6px 0 4px; }
.weather-hour__temp { font-weight: 600; font-size: 16px; }
.weather-hour__precip { font-size: 12px; color: var(--muted-2); margin-top: 4px; }
.weather-hour__precip.is-wet { color: #3e778c; font-weight: 600; }

.weather-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.weather-day { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; }
.weather-day__head { display: flex; justify-content: space-between; align-items: flex-start; }
.weather-day__label { font-weight: 600; font-size: 15.5px; }
.weather-day__date { font-size: 13px; color: var(--muted-2); }
.weather-day__emoji { font-size: 30px; line-height: 1; }
.weather-day__temp { display: flex; align-items: baseline; gap: 10px; margin: 12px 0 2px; }
.weather-day__temp b { font-family: var(--font-display); font-size: 26px; color: var(--brand); }
.weather-day__temp span { font-size: 14px; color: var(--muted); }
.weather-day__desc { font-size: 14.5px; color: var(--muted); margin-bottom: 10px; }

.weather-source { font-size: 13.5px; color: var(--muted-2); margin-top: 18px; }

.section-text { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line-2); }
.section-text .prose { max-width: none; }
.section-text .prose > * { break-inside: avoid; }
.section-text .prose h3 { break-after: avoid; margin: 0 0 8px; font-family: var(--font-display);
  font-weight: 600; font-size: 19px; }
.section-text .prose p { margin: 0 0 16px; }
.section-text__title { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; font-size: 24px; margin: 0 0 12px; }

@media (max-width: 860px) {
  .weather-now { grid-template-columns: 1fr; }
}

/* иконки вместо эмодзи */
.icon { display: inline-block; vertical-align: -0.15em; flex: none; }
.icon--weather { color: var(--brand); }
.weather-now__icon { color: var(--brand-pale); }
.weather-hour__icon { color: var(--brand); margin: 6px 0 4px; }
.weather-day__icon { color: var(--brand); }
.season-card__icon { color: var(--brand); }
.review__rating { display: flex; gap: 2px; color: #d8a13a; }
.rating-line .icon { color: #d8a13a; }
.ticker__sep .icon { color: var(--line-3); vertical-align: -0.1em; }

/* ---------- блоки лендинга ---------- */

.anchors { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 24px; }
.anchors a {
  font-size: 13.5px; font-weight: 600; padding: 8px 15px; border-radius: 99px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink);
}
.anchors a:hover { border-color: var(--brand); color: var(--brand); }

.block-title {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; margin: 44px 0 6px;
  scroll-margin-top: 90px;
}
.block-lead { color: var(--muted); font-size: 15.5px; margin: 0 0 18px; }

.climate-table td:first-child { font-weight: 600; }
.climate-table tr.is-now td { background: rgba(13, 91, 215, 0.07); }
.climate-table tr.is-now td:first-child { border-left: 3px solid var(--brand); }

.season-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; }
.season-card__top { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.season-card__icon { display: inline-flex; width: 46px; height: 46px; border-radius: 99px;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(13, 91, 215, 0.1), rgba(26, 155, 216, 0.18)); }
.season-card__title { font-weight: 600; font-size: 17px; }
.season-card__temp { font-size: 13.5px; color: var(--muted-2); }
.season-card__text { font-size: 14.5px; color: var(--muted); margin: 0 0 12px; }

.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 10px; align-items: start; }
.faq__item { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.faq__item[open] { border-color: var(--line-3); }
.faq__q {
  cursor: pointer; font-weight: 600; font-size: 16px; padding: 14px 0; list-style: none;
  display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted-2);
  border-bottom: 2px solid var(--muted-2); transform: rotate(45deg); transition: transform 0.2s;
}
.faq__item[open] .faq__q::after { transform: rotate(-135deg); }
.faq__a { padding: 0 0 16px; color: var(--muted); font-size: 15px; line-height: 1.6; }

.weather-hour__wind { font-size: 12px; color: var(--muted-2); margin-top: 2px; }

.week-table td:nth-child(2) { width: 34px; color: var(--brand); }
.week-table td:first-child { min-width: 130px; }

/* ---------- блоки перелинковки ---------- */

.linkblocks {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px; margin: 34px 0 8px; align-items: start;
}
.linkblock {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 20px 22px; color: inherit; display: block;
}
.linkblock--warn { border-color: #e7d3b6; background: #fdf8f0; }
.linkblock--weather { background: linear-gradient(160deg, var(--dark-2), var(--dark)); color: var(--light); border: none; }
.linkblock--weather .linkblock__title, .linkblock--weather .dl__val { color: var(--light); }
.linkblock--weather .dl__key { color: rgba(238, 243, 250, 0.55); }
.linkblock--weather .dl__row { border-color: rgba(255, 255, 255, 0.1); }
.linkblock--weather .linkblock__head span { color: var(--brand-pale); font-size: 13px; font-weight: 600; }
.linkblock:hover { border-color: var(--line-3); }
.linkblock--weather:hover { filter: brightness(1.08); }

.linkblock__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.linkblock__title { font-size: 16.5px; font-weight: 600; margin: 0; }
.linkblock__head a { font-size: 13px; font-weight: 600; white-space: nowrap; }
.linkblock__lead { font-size: 15px; color: var(--muted); margin: 0 0 12px; }
.linkblock .cards { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.linkblock .row { padding: 11px 0; }
.linkblock .tile__name { font-size: 14.5px; }
.linkblock .tile__desc, .linkblock .tile__meta { font-size: 12.5px; }

.phones { display: grid; gap: 8px; }
.phone { display: flex; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); color: inherit; }
.phone:last-child { border-bottom: none; }
.phone__num { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--brand); }
.phone__label { font-size: 14px; color: var(--muted); }

.weather-mini { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.weather-mini__icon { color: var(--brand-pale); display: inline-flex; }
.weather-mini__temp { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1; }
.weather-mini__desc { font-size: 13.5px; color: rgba(238, 243, 250, 0.7); line-height: 1.35; }

.poll-inline { display: grid; gap: 8px; }
.poll-inline__option { display: flex; gap: 10px; align-items: center; font-size: 14.5px; cursor: pointer; }
.poll-inline .btn-primary { justify-self: start; margin-top: 6px; }

/* погода в шапке */
.topbar__weather {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 7px 13px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--light); background: rgba(255, 255, 255, 0.07);
}
.topbar__weather:hover { border-color: var(--brand-soft); color: var(--brand-soft); }
.topbar__weather .icon { color: var(--brand-pale); }
.topbar__weather:hover .icon { color: var(--brand-soft); }
.topbar__temp { font-size: 14px; font-weight: 600; }

/* хлебные крошки */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 10px; }
.crumbs a { color: var(--muted-2); }
.crumbs a:hover { color: var(--brand); }
.crumbs a::after { content: "/"; margin-left: 8px; color: var(--line-3); }
.crumbs span { color: var(--muted); }

/* ---------- вход и регистрация ---------- */

.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
.auth-form { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 2.6vw, 32px); }
.form__hint { font-size: 13.5px; color: var(--muted-2); margin: 14px 0 0; }

.auth-side {
  border-radius: 22px; padding: clamp(22px, 2.6vw, 32px); color: var(--light);
  background: radial-gradient(420px 260px at 15% -10%, rgba(140, 196, 255, 0.26), transparent 65%),
              linear-gradient(160deg, var(--dark), var(--dark));
}
.auth-side__title { font-family: var(--font-display); font-weight: 800; font-size: 24px; margin: 0 0 18px; }
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.benefits li { display: flex; gap: 12px; align-items: flex-start; }
.benefits .icon { color: var(--brand-soft); margin-top: 3px; }
.benefits b { display: block; font-size: 15px; font-weight: 600; }
.benefits span { font-size: 13.5px; color: rgba(238, 243, 250, 0.65); line-height: 1.45; }

.auth-side__stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 14px;
  margin: 22px 0 16px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.auth-side__stats b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--brand-soft); }
.auth-side__stats span { font-size: 12.5px; color: rgba(238, 243, 250, 0.6); }
.auth-side__note { font-size: 13px; color: rgba(238, 243, 250, 0.55); margin: 0; line-height: 1.5; }

@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } }

/* ---------- объявления карточками ---------- */

.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.adcard { display: block; color: inherit; background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden; transition: transform 0.18s, border-color 0.18s; }
.adcard:hover { transform: translateY(-3px); border-color: var(--line-3); color: inherit; }
.adcard__media { position: relative; aspect-ratio: 4 / 3; }
.adcard__price {
  position: absolute; left: 10px; bottom: 10px; font-family: var(--font-display);
  font-weight: 700; font-size: 15px; color: #fff; background: rgba(10, 23, 40, 0.72);
  backdrop-filter: blur(8px); border-radius: 99px; padding: 7px 14px;
}
.adcard__price--free { background: linear-gradient(120deg, var(--brand), var(--brand-2)); }
.adcard__price--soft { font-family: var(--font); font-size: 13.5px; font-weight: 600; }
.adcard__body { padding: 14px 16px 16px; }
.adcard__title { font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.adcard__meta { font-size: 12.5px; color: var(--muted-2); margin-top: 4px; }
.adcard__author { display: flex; align-items: center; gap: 8px; margin-top: 12px;
  padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--muted); }
.member__ava--sm { width: 28px; height: 28px; font-size: 11px; }
.chip--free .chip__name { color: var(--brand); font-weight: 600; }
.chip.is-active { border-color: var(--brand); background: rgba(13, 91, 215, 0.08); }

.adprice__value { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--brand); line-height: 1; }
.adprice__free { background: linear-gradient(120deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.adprice__note { font-size: 13px; color: var(--muted-2); margin-top: 4px; }
.author { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.author__name { font-weight: 600; font-size: 15px; }
.author__meta { font-size: 12.5px; color: var(--muted-2); }
.review--new { border-color: var(--brand); }

/* ============================================================ мобильное меню */

.burger {
  display: none; flex: none; width: 42px; height: 42px; border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.07);
  cursor: pointer; padding: 0; align-items: center; justify-content: center; gap: 4px; flex-direction: column;
}
.burger span { display: block; width: 17px; height: 1.6px; border-radius: 2px; background: var(--light); transition: transform 0.2s, opacity 0.2s; }
.burger.is-open span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

.mobilemenu { position: fixed; inset: 0; z-index: 40; background: rgba(10, 23, 40, 0.55); backdrop-filter: blur(4px); overflow-y: auto; }
.mobilemenu[hidden] { display: none; }
.mobilemenu__sheet {
  background: var(--dark); color: var(--light); min-height: 100%;
  padding: 84px 20px 40px; display: grid; gap: 22px; align-content: start;
}
.mobilemenu__weather {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.06); color: var(--light);
}
.mobilemenu__weather .icon { color: var(--brand-pale); flex: none; }
.mobilemenu__temp { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.mobilemenu__wdesc { font-size: 13.5px; color: rgba(245, 242, 234, 0.66); flex: 1; line-height: 1.35; }
.mobilemenu__group { display: grid; gap: 2px; }
.mobilemenu__title {
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(245, 242, 234, 0.42); margin-bottom: 8px;
}
.mobilemenu__group a {
  color: rgba(245, 242, 234, 0.88); font-size: 17px; padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.mobilemenu__group a:last-child { border-bottom: none; }
.mobilemenu__foot { display: grid; gap: 10px; margin-top: 4px; }
.mobilemenu__foot .btn-ghost { color: var(--light); border-color: rgba(255, 255, 255, 0.22); text-align: center; }
.mobilemenu__foot .btn-primary { text-align: center; justify-content: center; }

/* ============================================================ мобильная вёрстка */

/* сетка FAQ не должна требовать 420px, если экран уже */
.faq { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }

@media (max-width: 900px) {
  .topnav, .topbar__cta { display: none; }
  .burger { display: flex; }
  .topbar__inner { gap: 12px; justify-content: space-between; padding: 9px 10px 9px 18px; }
  .topbar__weather { margin-left: auto; }
}

@media (max-width: 640px) {
  :root { --pad: 16px; }
  .page__title, .hero__title { font-size: clamp(28px, 8vw, 40px); }
  .ad-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .cards { grid-template-columns: 1fr; }
  .linkblock .cards { grid-template-columns: 1fr 1fr; }
  .linkblocks { grid-template-columns: 1fr; }
  .card-facts__grid { grid-template-columns: 1fr; }
  .lk-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); padding: 0 var(--pad); }
  .lk-nav::-webkit-scrollbar { display: none; }
  .lk-nav a { flex: none; }
  .chips { flex-wrap: wrap; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .form__actions { flex-wrap: wrap; }
  .form__actions .btn-primary, .form__actions .btn-ghost { flex: 1 1 auto; text-align: center; justify-content: center; }
  .filters { grid-template-columns: 1fr; }
  .weather-hours { margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); padding: 0 var(--pad); }
  .adprice__value { font-size: 26px; }
  .meta-row { flex-wrap: wrap; }
  .crumbs { font-size: 12.5px; }
  .map-page { height: 340px; }
  .table { font-size: 14px; }
}

@media (max-width: 420px) {
  .footer__cols { grid-template-columns: 1fr; }
  .ad-grid { grid-template-columns: 1fr 1fr; }
}

/* на телефоне цена и автор важнее описания — поднимаем колонку наверх */
@media (max-width: 900px) {
  .grid-2--ad > aside { order: -1; }
  .grid-2--ad { display: flex; flex-direction: column; }
}

/* пока меню открыто, шапка с крестиком должна быть поверх шторки */
.nav-open .topbar { z-index: 50; }
.nav-open .topbar__inner { background: rgba(10, 23, 40, 0.96); }

/* элементы грида по умолчанию не сжимаются меньше содержимого — из-за этого
   широкая картинка растягивала колонку и появлялась горизонтальная прокрутка */
.grid-2 > *, .cards > *, .ad-grid > *, .tiles > *, .linkblocks > *, .faq > *,
.duo > *, .live > * { min-width: 0; }
.prose img, .prose iframe, .prose table { max-width: 100%; }

/* ---- таблицы на телефоне: строка превращается в карточку ---- */
@media (max-width: 640px) {
  .table--stack { border-collapse: separate; border-spacing: 0; }
  .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table--stack tbody tr {
    display: grid; gap: 6px; background: var(--card); border: 1px solid var(--line);
    border-radius: 16px; padding: 14px 16px; margin-bottom: 10px;
  }
  .table--stack td {
    display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
    border: none; padding: 0; font-size: 14.5px; text-align: right;
  }
  .table--stack td::before {
    content: attr(data-label); flex: none; color: var(--muted-2); font-size: 13px; text-align: left;
  }
  .table--stack td:not([data-label]) { justify-content: flex-start; }
  .table--stack td[data-label=""]::before { content: none; }
  /* первая колонка — заголовок карточки */
  .table--stack td:first-child { display: block; text-align: left; font-weight: 600; font-size: 16px; margin-bottom: 4px; }
  .table--stack td:first-child::before { content: none; }
  .table--stack td[colspan] { display: block; text-align: left; }

  /* сводка кабинета: две колонки вместо одной длинной ленты */
  .stat-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px 15px; }
  .stat-card__num { font-size: 22px; }
  .stat-card__label { font-size: 12.5px; }
}

/* подсказка, что навигация кабинета прокручивается вбок */
@media (max-width: 640px) {
  .lk-nav-wrap { position: relative; }
  .lk-nav-wrap::after {
    content: ""; position: absolute; top: 0; right: calc(var(--pad) * -1); width: 34px; height: 100%;
    background: linear-gradient(90deg, rgba(244, 243, 239, 0), var(--bg)); pointer-events: none;
  }
}

@media (max-width: 640px) {
  .table--stack td[data-label=""] { justify-content: flex-start; padding-top: 6px; }
}

/* переключатели в формах: строка на всю ширину, палец попадает */
.field input[type="checkbox"] {
  width: 20px; height: 20px; accent-color: var(--brand); cursor: pointer; flex: none; margin: 0;
}
.field--check {
  display: flex; grid-auto-flow: unset; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-2);
}
.field--check:last-child { border-bottom: none; }
.field--check label { cursor: pointer; }
.form__panel { display: grid; }
.form__panel .field:not(.field--check) { margin-bottom: 16px; }

@media (max-width: 640px) {
  /* крошки — тоже ссылки, палец должен попадать */
  .crumbs { gap: 6px 10px; }
  .crumbs a, .crumbs span { padding: 5px 0; }
}

/* «Выйти» — кнопка формы, но выглядит как остальные пункты навигации кабинета */
.lk-nav__logout { display: inline-flex; }
.lk-nav__logout button {
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line-3);
  background: var(--card); color: var(--muted);
}
.lk-nav__logout button:hover { border-color: var(--brand); color: var(--brand); }

/* ============================================================ фильтры разделов */

/* у карточек и кнопок есть свой display, а он перебивает атрибут hidden —
   без этого спрятанные фильтром элементы остаются на экране */
[hidden] { display: none !important; }

.withside { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 26px; align-items: start; }
.withside__main { min-width: 0; }

.sidebar {
  position: sticky; top: 86px; display: grid; gap: 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px 20px 16px;
}
.sidebar__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sidebar__title { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.sidebar__reset {
  font: inherit; font-size: 13px; font-weight: 600; color: var(--brand);
  background: none; border: none; cursor: pointer; padding: 0;
}
.sidebar__reset:hover { text-decoration: underline; }
.sidebar__close { display: none; }
.sidebar__search {
  display: flex; align-items: center; gap: 9px; padding: 9px 14px;
  border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg); color: var(--muted-2);
}
.sidebar__search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(13, 91, 215, 0.1); }
.sidebar > * { min-width: 0; }
.sidebar__search { min-width: 0; }
/* у input собственная ширина ~20 символов — без width: 0 он распирает узкий столбец */
.sidebar__search input { flex: 1; width: 0; min-width: 0; border: none; background: none; font: inherit; font-size: 14.5px; color: var(--ink); }
.sidebar__search input:focus { outline: none; }
.sidebar__foot { font-size: 13px; color: var(--muted-2); border-top: 1px solid var(--line-2); padding-top: 12px; }

.filter-group { display: grid; gap: 9px; }
.filter-group__title { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.filter-group__options { display: flex; flex-wrap: wrap; gap: 7px; }

.fchip {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 500; padding: 6px 12px; border-radius: 99px;
  border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
}
/* длинные значения («Здравоохранение и социальное обеспечение») переносятся внутри колонки подбора */
.filter-group__options .fchip { white-space: normal; max-width: 100%; text-align: left; line-height: 1.3; }
.fchip:hover { border-color: var(--brand); color: var(--brand); }
.fchip.is-active { background: var(--grad); border-color: transparent; color: #fff; }
.fchip.is-empty { opacity: 0.4; }
.fchip__count { font-size: 11.5px; font-weight: 600; color: var(--muted-2); }
.fchip.is-active .fchip__count { color: rgba(255, 255, 255, 0.75); }

.sortbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid var(--line-2);
}
.sortbar__label { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.sortbar__options { display: flex; flex-wrap: wrap; gap: 7px; }
.sortbar__toggle { display: none; }

@media (max-width: 900px) {
  .withside { grid-template-columns: 1fr; gap: 0; }

  /* столбец подбора превращается в шторку снизу */
  .sidebar {
    position: fixed; inset: auto 0 0 0; top: 0; z-index: 45; border-radius: 0;
    padding: 18px 20px 90px; overflow-y: auto; align-content: start;
    transform: translateY(100%); transition: transform 0.22s ease; visibility: hidden;
  }
  .sidebar.is-open { transform: none; visibility: visible; }
  .sidebar__head {
    position: sticky; top: -18px; z-index: 2; align-items: center;
    background: var(--card); margin: -18px -20px 0; padding: 18px 20px 12px;
  }
  .sidebar__title { font-size: 17px; }
  .sidebar__close {
    display: inline-flex; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
    background: var(--grad); color: #fff; border: none; border-radius: var(--r-sm); padding: 9px 20px;
  }
  body.sidebar-open { overflow: hidden; }

  .sortbar { gap: 10px; }
  .sortbar__label { display: none; }
  .sortbar__toggle {
    display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
    font: inherit; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 99px;
    border: 1px solid var(--line-3); background: var(--card); color: var(--ink);
  }
  .sortbar__badge {
    display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px;
    border-radius: 99px; background: var(--grad); color: #fff; font-size: 11.5px; padding: 0 5px;
  }
  .sortbar__options {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; flex: 1;
    margin-right: calc(var(--pad) * -1); padding-right: var(--pad);
  }
  .sortbar__options::-webkit-scrollbar { display: none; }
  .fchip { flex: none; }
}

.tile__facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tile__fact {
  font-size: 12.5px; color: var(--muted); background: var(--bg);
  border: 1px solid var(--line-2); border-radius: 99px; padding: 3px 10px;
}

/* ============================================================ карточка объекта */

.gallery-lead { margin-bottom: 20px; }
.gallery-lead__main { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; position: relative; border: 1px solid var(--line); }
.gallery-lead__strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 10px;
  overflow-x: auto; scrollbar-width: none; margin-top: 10px; padding-bottom: 2px;
}
.gallery-lead__strip::-webkit-scrollbar { display: none; }
.gallery-lead__thumb {
  position: relative; display: block; border-radius: 14px; overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--line-2);
}
.gallery-lead__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-lead__caption {
  position: absolute; inset: auto 0 0 0; padding: 14px 8px 6px; font-size: 11.5px; color: #fff;
  background: linear-gradient(transparent, rgba(10, 23, 40, 0.8)); line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gallery-lead__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 10px; font-size: 13px; color: var(--muted-2);
}
.gallery-lead__foot a { color: var(--brand); font-weight: 600; }
.lead-text { font-size: 18px; line-height: 1.55; color: var(--muted); margin: 0 0 14px; }
.rating-line { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 640px) {
  .gallery-lead__main { border-radius: var(--r); }
  .gallery-lead__strip { grid-auto-columns: 108px; }
  .lead-text { font-size: 16px; }
}

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.photo-grid__item { margin: 0; }
.photo-grid__media {
  position: relative; display: block; overflow: hidden;
  border-radius: 18px; aspect-ratio: 4 / 3;
}
.photo-grid figcaption { font-size: 13px; color: var(--muted-2); padding: 8px 4px 0; line-height: 1.4; }
@media (max-width: 640px) { .photo-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }

/* шаги маршрута */
.steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
.steps__item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.steps__item:last-child { border-bottom: none; }
.steps__num {
  flex: none; width: 30px; height: 30px; border-radius: 99px; background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px;
}
.steps__title { font-weight: 600; font-size: 15.5px; }
.steps__text { font-size: 14.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }

/* ============================================================ главная: живые блоки */

.section--live { padding-top: 8px; }
.live { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.live__card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; color: inherit;
}
.live__card--alert { border-color: #e7c9b6; background: #fdf6f1; }
.live__card--camera { padding: 0; overflow: hidden; }
.live__card--camera:hover { border-color: var(--line-3); }
/* .slot--fill позиционируется абсолютно — контейнер обязан быть relative,
   иначе картинка «выпадает» и растягивается на весь экран */
.live__media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; }
.live__body { padding: 14px 18px 18px; display: grid; gap: 4px; }
.live__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: inherit; padding: 8px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.live__row:last-of-type { border-bottom: none; }
.live__title { font-weight: 600; font-size: 15px; line-height: 1.3; }
.live__meta { font-size: 12.5px; color: var(--muted-2); }
.live__text { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin: 0; }
.live__facts { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13.5px; color: var(--muted); }
.live__facts b { font-family: var(--font-display); font-size: 16px; color: var(--ink); }
.live__more { font-size: 13px; font-weight: 600; color: var(--brand); margin-top: auto; }

.actions {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px;
  background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 28px 30px;
  align-items: center;
}
.actions__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.actions__item {
  display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-radius: 18px;
  border: 1px solid var(--line-2); background: var(--bg); color: var(--ink);
  font-weight: 600; font-size: 14.5px; line-height: 1.25;
}
.actions__item:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.actions__item .icon { color: var(--brand); flex: none; }

@media (max-width: 860px) {
  .actions { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
}
@media (max-width: 640px) {
  .live { grid-template-columns: 1fr; }
  .actions__grid { grid-template-columns: 1fr; }
}

.freeline {
  display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; padding: 10px 14px;
  border-radius: 14px; background: #eef6ff; border: 1px solid #cfe1f7; color: var(--ink);
}
.freeline:hover { border-color: var(--brand); }
.freeline__badge {
  flex: none; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: #fff; background: var(--grad); border-radius: 99px; padding: 4px 10px;
}
.freeline__text {
  flex: 1 1 0; min-width: 0; font-size: 13.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.freeline .icon { color: var(--brand); flex: none; }

/* На телефоне карточные сетки главной листаются вбок: иначе главная
   растягивается на два десятка экранов и до низа никто не доходит. */
@media (max-width: 640px) {
  .cards--rail {
    grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(var(--pad) * -1); padding: 2px var(--pad) 6px;
  }
  .cards--rail::-webkit-scrollbar { display: none; }
  .cards--rail > * { scroll-snap-align: start; }
  .members--rail {
    grid-auto-flow: column; grid-auto-columns: 74%; grid-template-columns: none;
    overflow-x: auto; scrollbar-width: none;
    margin: 0 calc(var(--pad) * -1); padding: 2px var(--pad) 6px;
  }
  .members--rail::-webkit-scrollbar { display: none; }
}

/* ---- главная на телефоне: шапка героя и цифры компактнее ---- */
@media (max-width: 640px) {
  .hero__badge { flex-wrap: wrap; row-gap: 2px; }
  .hero__alt { display: none; }                 /* длинный вариант не влезает */
  .hero__photo { min-height: 220px; }
  .hero__search { flex-wrap: wrap; padding: 6px; gap: 6px; }
  .hero__search input { flex: 1 1 140px; min-width: 0; }
  .hero__search button { flex: none; padding: 9px 18px; }
  .card-facts__grid { grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .hero { padding-top: 54px; }
}

@media (max-width: 640px) {
  /* заголовок раздела и кнопка «всё» не должны наезжать друг на друга */
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-head .btn-ghost { align-self: flex-start; }
  .panel__head { flex-wrap: wrap; gap: 8px; }
}

@media (max-width: 640px) {
  /* текстовые ссылки «прогноз», «вся афиша» — по ним тоже попадают пальцем */
  .card-weather a, .panel__head a, .live__more, .section a.row__value { display: inline-block; padding: 6px 0; }
}

/* ============================================================ мобильные мелочи */

/* радио и галочки в опросах — такого же размера, как в формах */
.poll-inline input[type="radio"], .poll-inline input[type="checkbox"] {
  width: 20px; height: 20px; accent-color: var(--brand); cursor: pointer; flex: none; margin: 0;
}
.poll-inline__option { padding: 4px 0; }

@media (max-width: 640px) {
  /* текстовые ссылки внутри карточек: палец должен попадать, а не «почти» */
  .link-more, .panel__add, .section-head a, .panel__head a,
  .credits-table a, .row__value a, .review__answer a {
    display: inline-block; padding: 6px 0; min-height: 24px;
  }
  .datechip__mon { font-size: 11.5px; }
  .credits-table td { padding-top: 10px; padding-bottom: 10px; }
}

@media (max-width: 640px) {
  /* Ссылки внутри текста: вертикальный padding у строчного элемента не двигает
     вёрстку, но увеличивает область попадания пальцем. */
  main p a, .prose a, .empty-box a, .live__meta a, .page__empty a,
  .ticker a, .row__sub a, .tile__desc a, .credit a { padding: 4px 1px; }
}

@media (max-width: 640px) {
  .linkblock__head a { display: inline-block; padding: 6px 0; }
  .member__ava--sm { font-size: 11.5px; }
}

@media (max-width: 640px) {
  /* вариант опроса целиком — тач-цель, а не только кружок */
  .poll-inline__option { padding: 8px 0; }
  .card-event__head a { display: inline-block; padding: 6px 0; }
  /* список разделов на карте сайта: строки должны разделяться пальцем */
  main .panel .footer__col a { padding: 7px 0; }
}

@media (max-width: 640px) {
  /* ссылки-строки на карточке объекта: подпись раздела, контакты, действия карты */
  .eyebrow a, .dl__val a, .gallery-lead__foot a, .place-map__links a,
  .row__value, .review__author a, .steps__title a { display: inline-block; padding: 6px 0; }
}

@media (max-width: 640px) {
  /* подпись авторства — юридически значимая ссылка, пусть будет нажимаемой */
  .credit { padding: 5px 10px; }
  .credit a { padding: 3px 0; }
  .meta-row a, .photo-grid figcaption a { display: inline-block; padding: 5px 0; }
}

@media (max-width: 640px) {
  .members__note a { display: inline-block; padding: 5px 0; }
}

@media (max-width: 640px) {
  /* в карточках-строках кабинета ссылки «править/удалить» и названия */
  .table--stack td a { display: inline-block; padding: 5px 0; }
}

/* ============================================================ онлайн-услуги */

.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.svc-card {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  color: inherit; transition: transform 0.18s, border-color 0.18s;
}
.svc-card:hover { transform: translateY(-3px); border-color: var(--brand); color: inherit; }
.svc-card__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 15px; background: rgba(13, 91, 215, 0.08); color: var(--brand); margin-bottom: 4px;
}
.svc-card__name { font-weight: 600; font-size: 17px; }
.svc-card__desc { font-size: 14px; color: var(--muted); line-height: 1.45; }
.svc-card__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted-2);
}
.svc-card:hover .svc-card__meta { color: var(--brand); }

.svc-note {
  margin: 26px 0 0; padding: 14px 18px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted); line-height: 1.5;
}

.chip[aria-current] { border-color: var(--brand); background: rgba(13, 91, 215, 0.08); color: var(--brand); }

.offers { display: grid; gap: 14px; }
.offer { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; }
.offer__main { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.offer__logo {
  display: flex; align-items: center; justify-content: center; width: 56px; height: 56px;
  border-radius: 16px; background: var(--bg); border: 1px solid var(--line-2);
  color: var(--brand); overflow: hidden;
}
.offer__logo img { width: 100%; height: 100%; object-fit: contain; }
.offer__partner { font-weight: 600; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.offer__office { font-size: 12.5px; font-weight: 500; }
.offer__headline { font-size: 15px; margin-top: 2px; }
.offer__terms { font-size: 14px; color: var(--muted); margin-top: 2px; }
.offer__rate { font-size: 12.5px; color: var(--muted-2); margin-top: 4px; }
.offer__rating { display: flex; align-items: center; gap: 5px; font-size: 13px; margin-top: 6px; }
.offer__rating .icon { color: #d8a13a; }
.offer__rating span { color: var(--muted-2); }
.offer__cta { display: flex; }
.offer__details { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.offer__details summary { cursor: pointer; font-size: 13.5px; color: var(--brand); }
.offer__details .prose { font-size: 14px; margin-top: 8px; }

@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  /* на телефоне карточки-строки: иконка слева, текст справа — восемь штук
     иначе растягиваются на несколько экранов */
  .svc-grid { grid-template-columns: 1fr; gap: 10px; }
  .svc-card {
    display: grid; grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 14px; row-gap: 2px; padding: 14px 16px; align-items: start;
  }
  .svc-card__icon { grid-row: 1 / span 3; width: 44px; height: 44px; border-radius: 14px; margin: 0; }
  .svc-card__desc { font-size: 13.5px; }
  .svc-card__meta { border-top: 0; padding-top: 6px; }
  .offer__main { grid-template-columns: 44px minmax(0, 1fr); row-gap: 12px; }
  .offer__logo { width: 44px; height: 44px; border-radius: 13px; }
  .offer__cta { grid-column: 1 / -1; }
  .offer__cta .btn-primary { width: 100%; justify-content: center; text-align: center; }
}

/* ============================================================ шапка: светлая версия */
/* правила выше писались под тёмную шапку-«пилюлю»; здесь — под белую */
.topbar__weather { border-color: var(--line); color: var(--ink); background: var(--card); border-radius: var(--r-sm); }
.topbar__weather:hover { border-color: var(--brand); color: var(--brand); }
.topstrip .topbar__weather { border: none; padding: 0; color: #fff; background: none; }
.topbar__weather .icon { color: var(--brand-2); }
.burger { border-color: var(--line); background: var(--card); border-radius: var(--r-sm); }
.burger span { background: var(--ink); }
.nav-open .topbar__inner { background: none; }

/* ============================================================ мобильное меню: поиск и вход вверху */
/* сверху — полоска города и шапка (~100 px), шторка начинается под ними */
.mobilemenu__sheet { gap: 18px; padding-top: 116px; }
.mobilemenu__search {
  display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 48px;
  border-radius: var(--r); border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.07);
  color: rgba(245, 242, 234, 0.66);
}
.mobilemenu__search:focus-within { border-color: var(--brand-soft); }
.mobilemenu__search input {
  flex: 1; min-width: 0; border: 0; background: none; color: var(--light); font: inherit; font-size: 16px; padding: 12px 0;
}
.mobilemenu__search input::placeholder { color: rgba(245, 242, 234, 0.5); }
.mobilemenu__search input:focus { outline: none; }
.mobilemenu__foot { grid-template-columns: 1fr 1fr; margin-top: 0; }
.mobilemenu__foot .btn-primary, .mobilemenu__foot .btn-ghost { justify-content: center; min-height: 46px; }
.mobilemenu__wide { grid-column: 1 / -1; }
.mobilemenu__foot .btn-ghost { background: transparent; color: var(--light); border-color: rgba(255, 255, 255, 0.28); }
.mobilemenu a:focus-visible, .mobilemenu input:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 2px; }

/* ============================================================ подвал: колонки-аккордеоны */
details.footer__col > summary { list-style: none; cursor: default; }
details.footer__col > summary::-webkit-details-marker { display: none; }
.footer__col-links { display: grid; gap: 10px; align-content: start; }

@media (min-width: 761px) {
  /* на десктопе колонки всегда раскрыты: заголовок — просто подпись */
  details.footer__col::details-content { content-visibility: visible; }
  details.footer__col > summary { pointer-events: none; }
}

@media (max-width: 760px) {
  .footer__top { padding: 36px var(--pad) 26px; gap: 26px; }
  .footer .footer__cols { grid-template-columns: 1fr; gap: 0; padding: 8px var(--pad) 20px; }
  details.footer__col { display: block; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  details.footer__col > summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 52px; margin: 0; cursor: pointer; font-size: 13px;
  }
  details.footer__col > summary::after {
    content: ""; width: 9px; height: 9px; flex: none; margin-right: 4px;
    border-right: 2px solid var(--brand-soft); border-bottom: 2px solid var(--brand-soft);
    transform: translateY(-3px) rotate(45deg); transition: transform 0.2s;
  }
  details.footer__col[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
  details.footer__col > summary:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 2px; border-radius: 4px; }
  .footer__col-links { grid-template-columns: 1fr 1fr; gap: 0 16px; padding: 0 0 14px; }
  .footer__col-links a { padding: 9px 0; }
}

/* ============================================================ погода: компактная навигация */
.weather-now__label { grid-column: 1 / -1; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(238, 243, 250, 0.6); margin-bottom: -6px; }
.weather-now__range { font-size: 13.5px; color: rgba(238, 243, 250, 0.75); margin-top: 8px; }
.weather-anchors { margin: 18px 0 8px; }
.weather-months { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; padding-bottom: 2px; }
.weather-months::-webkit-scrollbar { display: none; }
.weather-months > * { flex: none; }

@media (max-width: 760px) {
  /* вкладки, месяцы и якоря — по одной строке с прокруткой вбок, чтобы «сейчас» было на первом экране */
  .weather-tabs, .weather-anchors {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); padding: 0 var(--pad);
  }
  .weather-tabs::-webkit-scrollbar, .weather-anchors::-webkit-scrollbar { display: none; }
  .weather-tabs a, .weather-anchors a { flex: none; white-space: nowrap; }
  .weather-tabs { margin-bottom: 10px; }
  .weather-months { margin: 0 calc(var(--pad) * -1) 16px; padding: 0 var(--pad); }
  .weather-months a { padding: 10px 8px; }
}

/* Закреплённые статьи на главной: обложка + анонс со ссылками */
.pinned { display: grid; gap: 20px; }
.pinned__card { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 28px; align-items: center;
  background: var(--card, #fff); border: 1px solid var(--line); border-radius: var(--r, 16px); padding: 20px; }
.pinned__img { display: block; border-radius: calc(var(--r, 16px) - 6px); overflow: hidden; }
.pinned__img img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }
.pinned__title { font-size: 26px; line-height: 1.2; margin: 10px 0 12px; }
.pinned__title a { color: inherit; text-decoration: none; }
.pinned__title a:hover { color: var(--brand); }
.pinned__text { font-size: 17px; line-height: 1.6; margin: 0 0 14px; }
.pinned__text a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
@media (max-width: 760px) {
  .pinned__card { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 14px; }
  .pinned__title { font-size: 21px; }
  .pinned__text { font-size: 16px; }
}

/* /karta-sayta/: список разделов на светлой панели (стиль подвала тут не подходит — он под тёмный фон) */
.sitemap-links { display: grid; gap: 2px; font-size: 15px; }
.sitemap-links a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--line); }
.sitemap-links a:last-child { border-bottom: none; }
.sitemap-links a:hover { color: var(--brand); }

/* /about/: лендинг портала */
.lp-hero { padding: 0; margin-top: 4px; }
.lp-hero h1 { max-width: 18ch; font-size: clamp(32px, 4vw, 54px); }
.lp-stats { grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; }
.lp-stat {
  display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; padding: 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.lp-stat:hover { border-color: var(--brand-pale); box-shadow: var(--shadow); color: var(--ink); }
.lp-stat__value { font-family: var(--font-display); font-size: clamp(26px, 2.8vw, 38px); font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--brand); }
.lp-stat__label { font-size: 14px; line-height: 1.3; color: var(--muted); }

.lp-section { margin-top: clamp(40px, 5vw, 64px); }
.lp-title { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; line-height: 1.12; letter-spacing: -0.025em; margin: 8px 0 22px; }

.lp-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.lp-guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.lp-group { display: flex; flex-direction: column; min-width: 0; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.lp-group__title { display: flex; align-items: center; gap: 11px; margin: 0; font-size: 18px; font-weight: 700; line-height: 1.25; }
.lp-group__title a { color: var(--ink); }
.lp-group__title a:hover { color: var(--brand); }
.lp-group__lead { margin: 10px 0 10px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.lp-links { list-style: none; margin: 0; padding: 0; }
.lp-links li + li { border-top: 1px solid var(--line); }
.lp-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 8px 0; color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.3; }
.lp-links a:hover { color: var(--brand); }
.lp-links a svg { flex: none; color: var(--muted-2); }
.lp-links__count { flex: none; font-size: 13px; font-weight: 600; color: var(--muted-2); }
.lp-more { margin-top: 16px; }

.lp-facts { padding: clamp(26px, 3.4vw, 44px); border-radius: 24px; background: var(--grad-dark); color: var(--light); }
.lp-facts .lp-title { color: var(--light); }
.lp-facts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.lp-fact { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--r); color: var(--light); transition: background .15s, border-color .15s; }
.lp-fact:hover { color: #fff; background: rgba(255, 255, 255, 0.07); border-color: rgba(140, 196, 255, 0.5); }
.lp-fact__value { font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.lp-fact__label { font-size: 14px; line-height: 1.35; color: rgba(238, 243, 250, 0.75); }

.lp-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-top: clamp(40px, 5vw, 64px); padding: clamp(22px, 3vw, 36px); background: var(--brand-tint); border: 1px solid var(--brand-pale); border-radius: var(--r-lg); }
.lp-cta__title { margin: 0 0 6px; font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.lp-cta__text { margin: 0; max-width: 58ch; color: var(--muted); }
.lp-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-cta .btn-sun { background: var(--sun-strong); }
@media (max-width: 720px) {
  .lp-cta__actions, .lp-cta__actions a { width: 100%; justify-content: center; }
}

/* плашка cookie: на компьютере — в левом нижнем углу, на телефоне — во всю ширину, ниже мобильного меню по слоям */
.cookie-bar {
  position: fixed; left: 16px; bottom: 16px; z-index: 38; display: flex; flex-direction: column; gap: 12px;
  width: min(440px, calc(100vw - 32px)); padding: 16px 18px; background: var(--card); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow-hover); font-size: 14px; line-height: 1.45;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; }
.cookie-bar a { text-decoration: underline; text-underline-offset: 2px; }
.cookie-bar__btns { display: flex; gap: 8px; }
.cookie-bar__btns button { flex: 1 1 auto; justify-content: center; font-family: inherit; cursor: pointer; white-space: nowrap; }
.footer__cookie { padding: 0; border: 0; background: none; font: inherit; color: rgba(238, 243, 250, 0.6); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer__cookie:hover { color: var(--light); }
@media (max-width: 720px) {
  .cookie-bar { left: 0; bottom: 0; width: 100%; padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom)); border-width: 1px 0 0; border-radius: 0; font-size: 13px; }
  .cookie-bar__btns button { min-height: 44px; padding-inline: 10px; }
  .footer__cookie { min-height: 44px; }
}
