/* Флорида Сегодня — стили сайта. Без фреймворков, мобильный — в первую очередь. */

@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap;
  src: url("../fonts/golos-text-cyrillic-400-normal.a82793f97f91.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap;
  src: url("../fonts/golos-text-latin-400-normal.4b88b42724af.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; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap;
  src: url("../fonts/golos-text-cyrillic-600-normal.894768c4c711.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap;
  src: url("../fonts/golos-text-latin-600-normal.2938437410d6.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; }
@font-face { font-family: "Golos Text"; font-weight: 700; font-display: swap;
  src: url("../fonts/golos-text-cyrillic-700-normal.ee4900035a09.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 700; font-display: swap;
  src: url("../fonts/golos-text-latin-700-normal.12965d0becae.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; }
@font-face { font-family: "Golos Text"; font-weight: 800; font-display: swap;
  src: url("../fonts/golos-text-cyrillic-800-normal.890a59e14eb5.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 800; font-display: swap;
  src: url("../fonts/golos-text-latin-800-normal.30a708238298.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; }
@font-face { font-family: "Unbounded"; font-weight: 800; font-display: swap;
  src: url("../fonts/unbounded-cyrillic-800-normal.cd10036bebd0.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 800; font-display: swap;
  src: url("../fonts/unbounded-latin-800-normal.93124fd30a72.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 {
  --ink: #0f2433;
  --ink-2: #33495a;
  --muted: #566a78;
  --paper: #ffffff;
  --mist: #eaf5f3;
  --line: #d5e0e4;
  --gulf: #0b7a75;
  --gulf-deep: #07524f;
  --shallow: #7fd1c7;
  --storm: #c2410c;
  --storm-deep: #9a3412;
  --sun: #ffc93c;
  --sun-soft: #fff4d1;

  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Unbounded", "Golos Text", system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 3vw, 32px);
  --radius: 8px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 3px; }
.i { width: 1em; height: 1em; flex: none; vertical-align: -.125em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 10; background: var(--sun); color: var(--ink); padding: 10px 14px; font-weight: 600; border-radius: var(--radius); }
.skip:focus { top: 8px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; min-height: 44px;
  padding: .65em 1.1em; border-radius: 999px; border: 0;
  background: var(--gulf); color: #fff; font: 600 1rem/1.2 var(--font); text-decoration: none;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--gulf-deep); }
.btn:active { transform: translateY(1px); }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--sun:hover { background: #ffd866; }
.btn--tg { background: #fff; color: var(--ink); margin-top: 18px; }
.btn--tg:hover { background: var(--sun); }
.btn--ghost { background: transparent; color: var(--gulf-deep); box-shadow: inset 0 0 0 2px var(--line); }
.btn--ghost:hover { background: var(--mist); }

/* ---------- Шапка ---------- */
.demo-ribbon { background: var(--sun); color: var(--ink); text-align: center; font-weight: 600; font-size: .9rem; padding: 6px 16px; }

.masthead { background: var(--paper); }
.masthead__top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-block: 10px; font-size: .875rem; color: var(--muted);
}
.masthead__date::first-letter { text-transform: uppercase; }
.tg-link { display: inline-flex; align-items: center; gap: .4em; color: var(--gulf-deep); font-weight: 600; text-decoration: none; }
.tg-link:hover { text-decoration: underline; }

.masthead__brand { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 6px 18px; }
.logo { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.logo__mark { width: 56px; height: 56px; }
.logo__word {
  font: 800 1.6rem/1 var(--display); letter-spacing: -.02em; text-transform: uppercase;
}
.masthead__tagline { max-width: 28ch; color: var(--ink-2); font-size: .95rem; line-height: 1.4; text-align: right; }

/* Регионы — как зелёные указатели флоридских хайвеев */
.signs { background: var(--ink); }
.signs__row {
  display: flex; gap: 10px; padding-block: 12px; overflow-x: auto; scrollbar-width: thin;
  scrollbar-color: var(--gulf) transparent;
}
.sign {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  padding: .55em 1.05em; border-radius: 7px; white-space: nowrap;
  background: var(--gulf); color: #fff; font-weight: 600; text-decoration: none;
  box-shadow: inset 0 0 0 3px var(--gulf), inset 0 0 0 4.5px rgb(255 255 255 / .9);
  transition: background-color .2s var(--ease), transform .25s var(--ease);
}
.sign:hover { background: var(--gulf-deep); box-shadow: inset 0 0 0 3px var(--gulf-deep), inset 0 0 0 4.5px #fff; transform: translateY(-1px); }
.sign.is-current { background: var(--sun); color: var(--ink); box-shadow: inset 0 0 0 3px var(--sun), inset 0 0 0 4.5px var(--ink); }

.topics { border-bottom: 1px solid var(--line); }
.topics__row { display: flex; gap: 4px 20px; overflow-x: auto; padding-block: 2px; scrollbar-width: none; }
@media (max-width: 1279px) { .topics__row { column-gap: 10px; } }  /* все пункты в одну строку от ~950px */
.topics__link {
  display: inline-block; padding: 12px 0; white-space: nowrap; color: var(--ink-2);
  font-weight: 600; font-size: .95rem; text-decoration: none; border-bottom: 3px solid transparent;
}
.topics__link:hover { color: var(--ink); border-bottom-color: var(--shallow); }
.topics__link.is-current { color: var(--ink); border-bottom-color: var(--gulf); }

/* ---------- Срочно ---------- */
.urgent { background: var(--storm); color: #fff; }
.urgent__inner { display: flex; align-items: center; gap: 16px; padding-block: 10px; }
.urgent__label {
  flex: none; background: #fff; color: var(--storm-deep); border-radius: 4px; padding: 4px 8px 3px;
  font: 800 .72rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase;
  animation: signal 2.4s var(--ease) infinite;
}
@keyframes signal { 0%, 70%, 100% { box-shadow: 0 0 0 0 rgb(255 255 255 / .55); } 35% { box-shadow: 0 0 0 7px rgb(255 255 255 / 0); } }
.urgent__list { display: flex; gap: 6px 26px; overflow-x: auto; scrollbar-width: none; }
.urgent__list li { white-space: nowrap; font-weight: 600; }
.urgent__list a { text-decoration: none; }
.urgent__list a:hover { text-decoration: underline; }
.urgent__list time { opacity: .85; font-weight: 400; font-variant-numeric: tabular-nums; margin-left: 4px; }

.flag {
  display: inline-block; vertical-align: .18em; margin-right: .2em;
  padding: .28em .5em .24em; border-radius: 3px; background: var(--storm); color: #fff;
  font: 800 .55em/1 var(--display); letter-spacing: .06em; text-transform: uppercase;
}
.flag--lg { font-size: .38em; }

/* ---------- Реклама ---------- */
.ad-top { padding-top: 20px; }
.main .ad-top { padding-top: 36px; }
.ad { display: grid; gap: 6px; }
.ad__label { font-size: .75rem; color: var(--muted); letter-spacing: .02em; }
.ad__link { display: block; border-radius: var(--radius); overflow: hidden; background: var(--mist); text-decoration: none; }
.ad__link img { width: 100%; }
.ad__text { display: block; padding: 18px; font-weight: 600; color: var(--gulf-deep); }
.feed .ad { padding-block: 20px; border-bottom: 1px solid var(--line); }

/* ---------- Главная ---------- */
.main { padding-block: 24px 64px; }
.section-head { padding-block: 8px 20px; }
.section-head__h { font: 800 clamp(1.8rem, 4vw, 2.6rem)/1.08 var(--font); letter-spacing: -.025em; }
.section-head__sub { margin-top: 8px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border-radius: 999px;
  background: var(--mist); color: var(--gulf-deep); font-weight: 600; font-size: .9rem; text-decoration: none;
}
.chip:hover { background: var(--shallow); color: var(--ink); }

/* Погода и ураганы */
.weather {
  display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 28px;
  background: var(--ink); color: #fff; border-radius: 12px; padding: clamp(18px, 3vw, 28px); overflow: hidden;
}
.weather__h { display: flex; align-items: center; gap: 10px; font: 800 clamp(1.3rem, 2.6vw, 1.7rem)/1.15 var(--font); letter-spacing: -.02em; }
.weather__h .i { width: 1.3em; height: 1.3em; color: var(--sun); }
.weather__sub { margin-top: 6px; color: #b9cbd6; font-size: .95rem; }
.alerts { display: grid; gap: 8px; margin-top: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.alert { display: grid; grid-template-columns: 1fr; gap: 8px; align-content: start; padding: 10px 12px; border-radius: var(--radius); background: rgb(255 255 255 / .06); }
.alert__sev {
  justify-self: start; padding: 4px 8px 3px; border-radius: 4px; font: 800 .65rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .05em;
  background: var(--mist); color: var(--ink); white-space: nowrap;
}
.alert--extreme .alert__sev { background: var(--storm); color: #fff; }
.alert--severe .alert__sev { background: var(--sun); color: var(--ink); }
.alert__body { display: grid; gap: 2px; }
.alert__event { font-weight: 600; }
.alert__area { color: #c9d7e0; font-size: .9rem; }
.alert__time { color: var(--shallow); font-size: .85rem; font-variant-numeric: tabular-nums; }
.weather__more { margin-top: 10px; color: #c9d7e0; font-size: .9rem; }
.weather__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-weight: 600; }
.weather__links a { color: var(--sun); display: inline-flex; align-items: center; gap: 6px; }
.weather__art { display: none; border-radius: var(--radius); width: 100%; height: 100%; max-height: 260px; object-fit: cover; }
.weather a { color: var(--sun); }

/* Главная тема + дайджест */
.front { display: grid; gap: 28px; }
.lead__img, .tile__img, .row__img { display: block; overflow: hidden; border-radius: var(--radius); background: var(--mist); }
.lead__img img, .tile__img img, .row__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s var(--ease); }
.lead:hover img, .tile:hover img, .row:hover img { transform: scale(1.03); }
.lead__body { padding-top: 16px; }
.lead__title { font: 800 clamp(1.75rem, 4.2vw, 2.75rem)/1.08 var(--font); letter-spacing: -.028em; }
.lead__title a, .tile__title a, .row__title a, .digest__item > a { text-decoration: none; }
.lead__title a:hover, .tile__title a:hover, .row__title a:hover, .digest__item > a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--shallow); }
.lead__teaser { margin-top: 12px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.5; color: var(--ink-2); max-width: 62ch; }

.feed__h, .digest__h, .sidebar__h {
  display: flex; align-items: center; gap: 10px;
  font: 800 .78rem/1 var(--display); letter-spacing: .07em; text-transform: uppercase; color: var(--ink);
  padding-bottom: 12px; border-bottom: 3px solid var(--ink); margin-bottom: 4px;
}
.feed__h::before, .digest__h::before, .sidebar__h::before {
  content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--gulf); flex: none;
}
.digest__list { counter-reset: d; }
.digest__item {
  counter-increment: d; position: relative; display: grid; gap: 6px;
  padding: 14px 0 14px 46px; border-bottom: 1px solid var(--line); font-weight: 600; line-height: 1.35;
}
.digest__item::before {
  content: counter(d); position: absolute; left: 0; top: 12px; width: 32px;
  font: 800 1.5rem/1 var(--display); color: var(--gulf);
}
.digest__item:last-child { border-bottom: 0; }
.digest__empty { padding-top: 14px; color: var(--muted); }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: .85rem; color: var(--muted); font-weight: 400; }
.meta time { font-variant-numeric: tabular-nums; }
.meta a { text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.meta a:hover { color: var(--ink); text-decoration: underline; }
.meta__topic { color: var(--gulf-deep); font-weight: 600; }

.tiles { display: grid; gap: 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.tile { display: grid; gap: 10px; align-content: start; }
.tile__title { font: 700 1.15rem/1.25 var(--font); letter-spacing: -.012em; }

/* Лента + сайдбар */
.columns { display: grid; gap: 40px; margin-top: 40px; }
.row { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.row__img { align-self: start; }
.row__img img { aspect-ratio: 1; }
.row__body { display: grid; gap: 6px; align-content: start; }
.row__title { font: 700 1.08rem/1.28 var(--font); letter-spacing: -.01em; }
.row__teaser { display: none; color: var(--ink-2); font-size: .98rem; max-width: 70ch; }
.empty { padding: 40px 0; display: grid; gap: 12px; justify-items: start; color: var(--ink-2); }
.empty__title { font: 800 1.4rem/1.2 var(--font); color: var(--ink); }
.empty--page { padding-block: 80px; }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 28px; }
.pager__num { color: var(--muted); font-size: .9rem; }

.sidebar { display: grid; gap: 32px; align-content: start; }
.tg-cta {
  display: grid; gap: 10px; justify-items: start; padding: 24px; border-radius: 12px;
  background: var(--gulf-deep); color: #fff; position: relative; overflow: hidden;
}
.tg-cta__icon { width: 36px; height: 36px; color: var(--sun); }
.tg-cta__title { font: 800 1.3rem/1.2 var(--font); letter-spacing: -.015em; }
.tg-cta__text { color: #d4ece8; font-size: .95rem; }
.tg-cta .btn { margin-top: 6px; position: relative; z-index: 1; }

.topic-index ul { display: grid; }
.topic-index a { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.topic-index a:hover span { text-decoration: underline; }
.topic-index img { width: 64px; height: 36px; border-radius: 4px; object-fit: cover; }

/* ---------- Заметка ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--gulf-deep); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.preview-note { background: var(--sun-soft); border: 1px solid var(--sun); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 18px; font-weight: 600; }

.story-layout { display: grid; gap: 48px; }
.story { min-width: 0; }
.story__title { font: 800 clamp(1.85rem, 4.6vw, 2.9rem)/1.08 var(--font); letter-spacing: -.028em; max-width: 22ch; }
.story__lede { margin-top: 14px; font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.45; color: var(--ink-2); max-width: 60ch; }
.story__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font-size: .9rem; color: var(--muted); }
.story__meta > * { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.story__meta a { color: var(--gulf-deep); font-weight: 600; }
.story__figure { margin: 24px 0 0; }
.story__figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.story__figure figcaption { margin-top: 8px; font-size: .8rem; color: var(--muted); }
.story__body { margin-top: 28px; max-width: 68ch; font-size: 1.15rem; line-height: 1.7; }
.story__body p + p { margin-top: 1.05em; }
.story__body a { color: var(--gulf-deep); }

.sources { margin-top: 32px; max-width: 68ch; background: var(--mist); border-radius: 10px; padding: 18px 20px; }
.sources__h { font: 800 .78rem/1 var(--display); letter-spacing: .07em; text-transform: uppercase; color: var(--gulf-deep); }
.sources__list { display: grid; gap: 4px; margin-top: 12px; }
.sources__list a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 8px 0; text-decoration: none; }
.sources__list a + a, .sources__list li + li a { border-top: 1px solid rgb(11 122 117 / .18); }
.sources__list b { color: var(--ink); }
.sources__list span { grid-column: 1; color: var(--ink-2); font-size: .92rem; }
.sources__list .i { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--gulf); width: 20px; height: 20px; }
.sources__list a:hover b { text-decoration: underline; }
.story__disclaimer { margin-top: 20px; max-width: 68ch; font-size: .85rem; color: var(--muted); }
.story .chips { margin-top: 20px; }
.story .tg-cta { margin-top: 36px; max-width: 68ch; }
.story .ad { margin-top: 32px; max-width: 68ch; }
.story--page { max-width: 760px; }
.story--page .story__body { margin-top: 24px; }
.story--page .story__body h2 { margin-top: 1.6em; font-size: 1.25rem; line-height: 1.3; }
.story--page .story__body h2 + p, .story__body p + ol, .story__body p + ul { margin-top: .6em; }
.story--page .story__body ol, .story--page .story__body ul { padding-left: 1.4em; display: grid; gap: .4em; }
.story--page .story__body ol { list-style: decimal; }
.story--page .story__body ul { list-style: disc; }
.story--page .story__body ol + p, .story--page .story__body ul + p, .dmca-agent + p { margin-top: 1.05em; }
.dmca-agent { margin-top: .8em; padding: 14px 18px; border-left: 3px solid var(--gulf-deep); background: rgb(0 0 0 / .03); font-style: normal; }
.story__byline { margin-top: 10px; font-size: .9rem; font-weight: 600; }
.story__byline a { color: var(--ink); text-decoration: none; border-bottom: 1px solid rgb(0 0 0 / .2); }
.for-you { margin-top: 28px; max-width: 68ch; padding: 18px 22px; border-left: 4px solid var(--gulf-deep); background: rgb(11 122 117 / .06); border-radius: 0 10px 10px 0; }
.for-you__h { font-size: 1.15rem; line-height: 1.3; }
.for-you__list { margin-top: 10px; padding-left: 1.2em; list-style: disc; display: grid; gap: 6px; font-size: 1.05rem; line-height: 1.55; }
.more-guide { margin-top: 18px; max-width: 68ch; font-weight: 600; }
.more-guide a { color: var(--gulf-deep); }
.useful__list { display: grid; gap: 8px; margin-top: 10px; }
.useful__list a { color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.35; }
.useful__list a:hover { text-decoration: underline; }
.useful__all { display: inline-block; margin-top: 10px; color: var(--gulf-deep); font-weight: 600; text-decoration: none; }
.useful { margin-bottom: 28px; }
.biz-blocks { display: grid; gap: 32px; margin-bottom: 36px; }
.biz-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.biz-block__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-top: 14px; }
@media (min-width: 960px) {
  .biz-blocks { grid-template-columns: 1fr 1fr; gap: 40px; }
  .biz-block__grid { grid-template-columns: 1fr 1fr; }
}
.chip--on { background: var(--ink); color: #fff; }
/* Гайды: список по разделам */
.guides__nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.guides__section { margin-top: 44px; scroll-margin-top: 16px; }
.guides__section .section-head { padding-bottom: 14px; border-bottom: 3px solid var(--ink); }
.guides__section .section-head__h { font-size: clamp(1.4rem, 3vw, 1.9rem); display: flex; align-items: center; gap: 12px; }
.guides__section .section-head__h::before { content: ""; width: 10px; height: 10px; background: var(--gulf); border-radius: 2px; flex: none; }
.guides__grid { display: grid; gap: 28px 24px; margin-top: 22px; }
.guide-card a { display: grid; gap: 8px; color: var(--ink); text-decoration: none; }
.guide-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--mist); transition: opacity .3s var(--ease); }
.guide-card a:hover img { opacity: .9; }
.guide-card b { margin-top: 4px; font-size: 1.12rem; line-height: 1.3; }
.guide-card a:hover b { text-decoration: underline; text-decoration-color: var(--shallow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.guide-card span { color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.guide-card { min-width: 0; }

/* Справочник: полезные ссылки и бизнесы */
.dir { max-width: 1100px; }
.dir__intro { margin-top: 14px; max-width: 70ch; color: var(--ink-2); line-height: 1.55; }
.dir__groups { display: grid; gap: 28px 32px; margin-top: 22px; }
.dir__group-h { font-size: 1.1rem; line-height: 1.3; padding-bottom: 8px; border-bottom: 2px solid var(--gulf); }
.dir__links { display: grid; }
.dir__links li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.dir__links li:last-child { border-bottom: 0; }
.dir__links p { margin-top: 4px; color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.dir__link { display: inline-flex; align-items: baseline; gap: 6px; color: var(--ink); font-weight: 700; text-decoration: none; line-height: 1.3; }
.dir__link .i { width: .85em; height: .85em; color: var(--gulf); flex: none; }
.dir__link:hover { color: var(--gulf-deep); text-decoration: underline; }
.dir__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.dir__meta a { color: var(--gulf-deep); font-weight: 600; text-decoration: none; }
.dir__meta a:hover { text-decoration: underline; }
.dir__meta:empty { display: none; }
.dir__cats { display: grid; gap: 14px; margin-top: 22px; }
.dir__cat { display: grid; gap: 6px; height: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.dir__cat:hover { border-color: var(--gulf-deep); background: var(--mist); }
.dir__cat b { font-size: 1.08rem; line-height: 1.3; }
.dir__cat span { color: var(--ink-2); font-size: .93rem; line-height: 1.45; }
.dir__cat em { font-style: normal; font-weight: 700; font-size: .9rem; color: var(--gulf-deep); }
.dir__cat.is-empty em { color: var(--muted); font-weight: 600; }
.dir__suggest { margin-top: 32px; padding: 20px 22px; border-radius: 12px; background: var(--mist); max-width: 760px; }
.dir__suggest h3 { font-size: 1.15rem; line-height: 1.3; }
.dir__suggest p { margin-top: 8px; color: var(--ink-2); line-height: 1.55; }
.dir__suggest-actions, .dir__card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.dir__cards { display: grid; gap: 18px; margin-top: 26px; max-width: 820px; }
.dir__card { padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; }
.dir__card > p { margin-top: 8px; line-height: 1.6; }
.dir__card-h { font-size: 1.3rem; line-height: 1.25; }
.dir__card-h a { color: var(--ink); text-decoration: none; }
.dir__card-h a:hover { color: var(--gulf-deep); text-decoration: underline; }
.dir__badges { display: flex; gap: 6px; margin-bottom: 8px; }
.dir__badge { padding: 3px 10px; border-radius: 999px; background: var(--mist); color: var(--gulf-deep); font-weight: 700; font-size: .8rem; }
.dir__badge--partner { background: var(--sun-soft); color: var(--ink); }
.dir__facts { display: grid; gap: 6px; margin-top: 14px; font-size: .97rem; }
.dir__facts div { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; }
.dir__facts dt { color: var(--muted); }
.dir__facts a { color: var(--gulf-deep); }
.dir__empty { margin-top: 24px; padding: 18px 20px; border: 1px dashed var(--line); border-radius: 10px; color: var(--ink-2); max-width: 760px; }
.dir__others { margin-top: 40px; }
.dir__icon { display: inline-grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 12px; background: var(--mist); overflow: hidden; }
.dir__icon img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.dir__icon--sm { width: 36px; height: 36px; border-radius: 8px; }
.dir__icon--lg { width: 72px; height: 72px; border-radius: 14px; }
.dir__group-h { display: flex; align-items: center; gap: 10px; }
.dir__cat.has-icon { grid-template-columns: 56px 1fr; column-gap: 14px; align-content: start; }
.dir__cat.has-icon .dir__icon { grid-row: 1 / span 3; }
.dir__cat.has-icon b, .dir__cat.has-icon span:not(.dir__icon), .dir__cat.has-icon em { grid-column: 2; }
.dir__head { display: flex; align-items: center; gap: 16px; }
.dir__badge--owner { background: var(--line); color: var(--ink-2); }
.dir-form__rules { margin-top: 22px; padding: 14px 18px; border-radius: 10px; background: var(--mist); }
.dir-form__rules summary { cursor: pointer; font-weight: 700; }
.dir-form__rules p { margin-top: 10px; line-height: 1.55; color: var(--ink-2); }
.dir-form__form { display: grid; gap: 18px; margin-top: 26px; max-width: 640px; }
.dir-form__field { display: grid; gap: 6px; }
.dir-form__field label { font-weight: 600; }
.dir-form__field input:not([type=checkbox]), .dir-form__field select, .dir-form__field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; color: var(--ink); background: var(--paper);
}
.dir-form__field textarea { min-height: 120px; resize: vertical; }
.dir-form__field input:focus, .dir-form__field select:focus, .dir-form__field textarea:focus { outline: 3px solid var(--sun); outline-offset: 1px; border-color: var(--gulf); }
.dir-form__field.has-error input, .dir-form__field.has-error select, .dir-form__field.has-error textarea { border-color: #b42318; }
.dir-form__check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; line-height: 1.45; }
.dir-form__check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.dir-form__help { font-size: .9rem; color: var(--muted); }
.dir-form__field-error, .dir-form__error { color: #b42318; font-size: .92rem; }
.dir-form__error { padding: 10px 14px; border: 1px solid #f4c7c3; background: #fef3f2; border-radius: 8px; }
.dir-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.dir-form .btn { justify-self: start; }
.dir__city { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.dir__city .i { color: var(--gulf); width: 1em; height: 1em; }
.chip.is-current { background: var(--gulf); color: #fff; }
.topics__link--section { font-weight: 700; color: var(--gulf-deep); }

/* Гайды на главной: все разделы и ссылки */
.home-guides { margin-top: 48px; padding-top: 4px; }
.home-guides__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-bottom: 12px; border-bottom: 3px solid var(--ink); }
.home-guides__head .feed__h { padding: 0; border: 0; margin: 0; }
.home-guides__head .useful__all { margin-top: 0; }
.home-guides__grid { display: grid; gap: 28px 32px; margin-top: 20px; }
.home-guides__h { font-size: 1.05rem; line-height: 1.3; padding-bottom: 8px; border-bottom: 2px solid var(--gulf); }
.home-guides__h a { color: var(--ink); text-decoration: none; }
.home-guides__h a:hover { color: var(--gulf-deep); }
.home-guides__list { display: grid; margin-top: 4px; }
.home-guides__list a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.home-guides__list li:last-child a { border-bottom: 0; }
.home-guides__list a:hover { color: var(--gulf-deep); text-decoration: underline; }

/* Гайды: страница */
.toc { margin-top: 28px; max-width: 68ch; background: var(--mist); border-radius: 10px; padding: 16px 20px; }
.toc__h { cursor: pointer; font: 800 .78rem/1.4 var(--display); letter-spacing: .07em; text-transform: uppercase; color: var(--gulf-deep); }
.toc__h::marker { content: "▾\00a0\00a0"; }
.toc:not([open]) .toc__h::marker { content: "▸\00a0\00a0"; }
.toc__list { margin-top: 12px; padding-left: 1.5em; list-style: decimal; display: grid; gap: 6px; font-size: 1rem; line-height: 1.4; }
.toc__list ::marker { color: var(--gulf); font-weight: 700; }
.toc__list a { color: var(--ink); text-decoration: none; }
.toc__list a:hover { color: var(--gulf-deep); text-decoration: underline; }
.guide__body h2 { margin-top: 2em; font-size: clamp(1.35rem, 2.6vw, 1.6rem); line-height: 1.25; letter-spacing: -.015em; scroll-margin-top: 16px; }
.guide__body h3 { margin-top: 1.5em; font-size: 1.18rem; line-height: 1.3; }
.guide__body h2 + p, .guide__body h3 + p, .guide__body h2 + ul, .guide__body h2 + ol, .guide__body h3 + ul, .guide__body h3 + ol { margin-top: .6em; }
.guide__body > * + * { margin-top: 1.05em; }
.guide__body > h2:first-child { margin-top: 0; }
.guide__body ul, .guide__body ol { padding-left: 1.4em; display: grid; gap: .45em; }
.guide__body ul { list-style: disc; }
.guide__body ol { list-style: decimal; }
.guide__body li::marker { color: var(--gulf); }
.guide__body strong { font-weight: 700; }
.guide__note { padding: 14px 18px; border-left: 4px solid var(--sun); background: var(--sun-soft); border-radius: 0 10px 10px 0; font-size: 1.05rem; line-height: 1.6; }
.guide__table { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 10px; }
.guide__table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .95rem; line-height: 1.45; }
.guide__table th, .guide__table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.guide__table th { background: var(--mist); color: var(--gulf-deep); font-weight: 700; white-space: nowrap; }
.guide__table tr:last-child td { border-bottom: 0; }
.guide__table td:first-child { font-weight: 600; }
.guide__figure { margin: 1.6em 0; }
.guide__figure img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--mist); }
.guide__figure figcaption { margin-top: 8px; font-size: .88rem; line-height: 1.45; color: var(--muted); }
.guide__body h2 { margin-top: 1.4em; font-size: 1.3rem; line-height: 1.3; }
.guide__body h2 + p { margin-top: .5em; }
.about-team { margin-top: 32px; }
.about-team__h { font-size: 1.25rem; }
.about-team__list { display: grid; gap: 10px; margin-top: 12px; }
.about-team__list a { display: grid; color: var(--ink); text-decoration: none; }
.about-team__list span { color: var(--muted); font-size: .95rem; }
.about-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; font-weight: 600; }
.about-links a { color: var(--gulf-deep); }
.author__head { display: flex; gap: 20px; align-items: center; }
.author__photo { border-radius: 50%; object-fit: cover; }
.author__role { margin-top: 6px; color: var(--muted); }
.contact-line { margin-top: 20px; font-weight: 600; }
.contact-line a { color: var(--gulf-deep); }
.related { display: grid; gap: 24px; margin-top: 16px; }

/* ---------- Подвал ---------- */
.footer { background: var(--ink); color: #d6e2ea; padding-block: 48px 28px; }
.footer__grid { display: grid; gap: 32px; }
.logo--footer { color: #fff; }
.logo--footer .logo__word { font-size: 1.25rem; }
.logo--footer .logo__mark { width: 44px; height: 44px; }
.footer__note { margin-top: 16px; max-width: 42ch; font-size: .92rem; line-height: 1.5; }
.footer__mail { margin-top: 12px; font-size: .92rem; }
.footer__mail a { color: #fff; }
.footer__h { font: 800 .72rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--shallow); margin-bottom: 12px; }
.footer__list { display: grid; gap: 6px; }
.footer__list a { color: #fff; text-decoration: none; }
.footer__list a:hover { text-decoration: underline; }
.footer__legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .14); font-size: .82rem; color: #a9bccb; display: grid; gap: 8px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 0; }
.footer__links li + li::before { content: "·"; margin-inline: .55em; color: #6f8799; }
.footer__links a { color: #d6e2ea; text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }

/* ---------- Адаптив ---------- */
@media (max-width: 599px) {
  .masthead__tagline { display: none; }
  .footer__links { gap: 6px 16px; }
  .footer__links li + li::before { content: none; }
  .logo__mark { width: 44px; height: 44px; }
  .logo__word { font-size: 1.2rem; }
  .masthead__brand { padding-bottom: 12px; }
  .signs__row { gap: 8px; padding-block: 10px; }
  .sign { min-height: 40px; padding: .45em .9em; font-size: .95rem; }
  .urgent__inner { align-items: flex-start; }
  .alert { grid-template-columns: 1fr; gap: 6px; }
  .alert__sev { justify-self: start; }
}
/* Афиша: «Куда сходить» */
.ev { max-width: 1100px; }
.ev__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.ev__grid { display: grid; gap: 16px; margin-top: 24px; }
.ev-card__link { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: start; height: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.ev-card__link:hover { border-color: var(--gulf-deep); background: var(--mist); }
.ev-card__img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; background: var(--mist); }
.ev-card__date { display: grid; place-items: center; align-content: center; width: 76px; height: 76px; border-radius: 8px; background: var(--sun-soft); color: var(--ink); font-weight: 700; font-size: .85rem; line-height: 1.1; }
.ev-card__date b { font-size: 1.7rem; font-weight: 800; }
.ev-card__body { display: grid; gap: 4px; min-width: 0; }
.ev-card__when { color: var(--gulf-deep); font-weight: 700; font-size: .9rem; }
.ev-card__title { font-weight: 700; font-size: 1.08rem; line-height: 1.3; }
.ev-card__where { color: var(--ink-2); font-size: .92rem; line-height: 1.4; }
.ev-detail__facts { margin-top: 20px; }
.ev-detail__figure img { aspect-ratio: auto; max-height: 80vh; object-fit: contain; background: var(--mist); }
.ev-detail__past { display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px; background: var(--sun-soft); font-weight: 700; font-size: .85rem; }
.ev-detail__more { margin-top: 40px; }
.dir-form__field input[type=file] { padding: 8px; }
.dir-form__field input[type=date], .dir-form__field input[type=time] { max-width: 240px; }

@media (min-width: 600px) {
  .guides__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-guides__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dir__groups, .dir__cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { grid-template-columns: 200px 1fr; gap: 20px; }
  .row__img img { aspect-ratio: 16 / 9; }
  .row__teaser { display: block; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .related { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 760px) {
  .weather { grid-template-columns: minmax(0, 1fr) 180px; align-items: stretch; }
  .weather__art { display: block; }
}
@media (min-width: 960px) {
  .guides__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-guides__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dir__groups, .dir__cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .front { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; }
  .lead__img img { aspect-ratio: 21 / 9; }
  .columns { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
  .story-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; }
  .sidebar { position: sticky; top: 20px; }
  .related { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .masthead__top, .signs, .topics, .urgent, .sidebar, .footer, .ad, .tg-cta, .chips, .guides__nav { display: none !important; }
  .toc { break-inside: avoid; }
  body { font-size: 12pt; }
}

/* На телефоне «ещё главное» — компактными строками, а не тремя огромными картинками */
@media (max-width: 599px) {
  .tile { grid-template-columns: 112px 1fr; column-gap: 14px; row-gap: 6px; }
  .tile__img { grid-row: 1 / span 2; }
  .tile__img img { aspect-ratio: 1; }
  .tiles { gap: 18px; }
}
@media (max-width: 599px) {
  .weather__sub { display: none; }
  .alert__area { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .urgent__list { flex-direction: column; overflow: visible; }
  .urgent__list li { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .urgent__list li + li { display: none; }
  .signs__row, .topics__row { mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 48px; }
}

/* ---------- «Куда сходить»: избранные фестивали (news/featured.py) ---------- */
.fests__head { display: grid; gap: 6px; }
.fests__kicker { font-size: .85rem; font-weight: 600; color: var(--muted); }
.fests__list { display: grid; gap: 20px; margin-top: 14px; }
.fest {
  display: grid; border-radius: 14px; overflow: hidden; background: var(--paper);
  border: 1px solid var(--line); box-shadow: 0 1px 0 var(--line), 0 10px 24px -18px rgba(15, 36, 51, .45);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.fest:hover { transform: translateY(-2px); box-shadow: 0 1px 0 var(--line), 0 16px 30px -18px rgba(15, 36, 51, .55); }
.fest__media { position: relative; display: block; }
.fest__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.fest__media::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(15, 36, 51, .55)); pointer-events: none; }
.fest__date {
  position: absolute; top: 12px; left: 12px; z-index: 1; display: grid; justify-items: center;
  min-width: 58px; padding: 7px 8px 6px; border-radius: 10px; background: var(--sun); color: var(--ink);
  box-shadow: 0 6px 16px -8px rgba(15, 36, 51, .6); line-height: 1;
}
.fest__date b { font: 800 1.6rem/1 var(--display); }
.fest__date span { margin-top: 3px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.fest__tag {
  position: absolute; left: 12px; bottom: 12px; z-index: 1; padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--gulf-deep); font-size: .78rem; font-weight: 700;
}
.fest__body { display: grid; gap: 10px; padding: 16px 16px 18px; border-top: 4px solid var(--storm); }
.fest + .fest .fest__body, .fest:nth-child(2n) .fest__body { border-top-color: var(--gulf); }
.fest__title { font: 800 1.2rem/1.2 var(--font); letter-spacing: -.015em; }
.fest__title a { text-decoration: none; }
.fest__title a:hover { text-decoration: underline; text-decoration-color: var(--shallow); text-decoration-thickness: 2px; }
.fest__teaser { color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.fest__meta { display: grid; gap: 4px; font-size: .88rem; color: var(--ink-2); }
.fest__meta li { display: flex; align-items: flex-start; gap: 7px; }
.fest__meta .i { margin-top: .2em; color: var(--gulf); }
.fest__price { font-weight: 700; color: var(--ink); }
.fest__cta {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
  padding: 10px 16px; border-radius: 999px; background: var(--gulf-deep); color: #fff;
  font-weight: 700; font-size: .95rem; text-decoration: none; transition: background-color .2s var(--ease);
}
.fest__cta:hover { background: var(--gulf); }
.fests--wide { margin-bottom: 36px; }
@media (min-width: 720px) {
  .fests--wide .fests__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  /* Карточки делают колонку выше экрана — без «прилипания», иначе низ не увидеть до конца ленты. */
  .sidebar:has(.fests) { position: static; }
}
@media print { .fests { display: none !important; } }
.ev__featured { margin-top: 28px; }
.ev__featured .fests--wide { margin-bottom: 0; }
.ev__all-h { margin-top: 36px; }
/* Третье избранное событие в «Афише» — во всю ширину: фото слева, текст справа */
@media (min-width: 720px) {
  .fests--wide .fest:nth-child(3):last-child { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .fests--wide .fest:nth-child(3):last-child .fest__media { display: flex; align-items: center; background: #2a1d17; }
  .fests--wide .fest:nth-child(3):last-child .fest__body { border-top: 0; border-left: 4px solid var(--storm); align-content: center; padding: 24px 26px; }
  .fests--wide .fest:nth-child(3):last-child .fest__title { font-size: 1.45rem; }
}

/* Объявления */
.ads { max-width: 1100px; }
.ads__n { color: var(--muted); font-weight: 600; font-size: .85em; }
.chip .ads__n { margin-left: 2px; }
.ads__h { margin-top: 32px; }
.ads-filter { display: grid; gap: 10px; margin-top: 22px; max-width: 820px; }
.ads-filter__q { display: flex; gap: 8px; }
.ads-filter__q input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--paper); color: var(--ink); }
.ads-filter input:focus, .ads-filter select:focus { outline: 3px solid var(--sun); outline-offset: 1px; border-color: var(--gulf); }
.ads-filter__more summary { cursor: pointer; font-weight: 700; color: var(--gulf-deep); width: max-content; }
.ads-filter__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0 8px; }
.ads-filter__grid label { display: grid; gap: 4px; font-size: .9rem; font-weight: 600; }
.ads-filter__grid input, .ads-filter__grid select { min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-weight: 400; background: var(--paper); color: var(--ink); }
.ads-filter__grid .ads-filter__check { display: flex; align-items: center; gap: 8px; align-self: end; padding-bottom: 10px; }
.ads-filter__check input { width: 20px; height: 20px; }
.ads-filter__actions { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.ads-filter__actions a { color: var(--gulf-deep); }
.ads__sections { display: grid; gap: 14px; margin-top: 18px; }
.ads__section { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.ads__section-h { font-weight: 800; font-size: 1.12rem; color: var(--ink); text-decoration: none; }
.ads__section-h:hover { color: var(--gulf-deep); text-decoration: underline; }
.ads__subs { margin-top: 6px; font-size: .9rem; line-height: 1.6; }
.ads__subs li { display: inline; }
.ads__subs li:not(:last-child)::after { content: " · "; color: var(--line); }
.ads__subs a { color: var(--ink-2); text-decoration: none; }
.ads__subs a:hover { color: var(--gulf-deep); text-decoration: underline; }
.ads__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.ad-card__link { display: grid; height: 100%; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; color: var(--ink); text-decoration: none; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.ad-card__link:hover { border-color: var(--gulf-deep); background: var(--mist); }
.ad-card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--mist); }
.ad-card__img--none { display: grid; place-items: center; font: 800 2.4rem/1 var(--display); color: var(--shallow); }
.ad-card__body { display: grid; gap: 4px; align-content: start; padding: 10px 12px 14px; min-width: 0; }
.ad-card__price { font-weight: 800; font-size: 1.05rem; }
.ad-card__title { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-card__meta { color: var(--muted); font-size: .85rem; line-height: 1.35; }
.ad-card__dist { color: var(--gulf-deep); font-weight: 700; }

.ad-detail__price { margin-top: 10px; font: 800 1.6rem/1.2 var(--font); letter-spacing: -.02em; }
.ad-detail__price-label { font-size: .9rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.ad-detail__meta { margin-top: 6px; color: var(--muted); font-size: .95rem; }
.ad-gallery { display: flex; gap: 10px; margin-top: 20px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: 6px; }
.ad-gallery__item { flex: 0 0 min(88%, 640px); scroll-snap-align: start; }
.ad-gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--mist); }
.ad-gallery:has(.ad-gallery__item:only-child) .ad-gallery__item { flex-basis: 100%; max-width: 760px; }
.ad-gallery:has(.ad-gallery__item:only-child) img { object-fit: contain; max-height: 70vh; }
.ad-detail__cols { display: grid; gap: 24px; margin-top: 24px; }
.ad-detail__text { margin-top: 0; overflow-wrap: anywhere; }
.ad-contact { align-self: start; padding: 18px 20px; border-radius: 12px; background: var(--mist); }
.ad-contact__h { font-size: 1.15rem; line-height: 1.3; }
.ad-contact form, .ad-contact__list { margin-top: 12px; }
.ad-contact__list { display: grid; gap: 8px; }
.ad-contact__list .btn, .ad-contact form .btn { width: 100%; justify-content: center; }
.ad-contact .dir-form__help { margin-top: 8px; }
.ad-contact__safety { margin-top: 16px; padding: 12px 14px; border-radius: 8px; background: var(--sun-soft); font-size: .9rem; line-height: 1.45; }
.ad-contact__safety p { margin-top: 4px; color: var(--ink-2); }
.ad-detail__map { margin-top: 32px; }
.ad-detail__map > p { margin-top: 10px; color: var(--ink-2); }
.ad-detail__iframe { display: block; width: 100%; height: 280px; margin-top: 12px; border: 0; border-radius: 10px; background: var(--mist); }
.ad-report { margin-top: 18px; max-width: 640px; }
.ad-report summary { cursor: pointer; color: var(--muted); font-size: .92rem; }
.ad-report > p { margin-top: 10px; }
.ad-report .dir-form__form { margin-top: 12px; }
.ad-report__reasons { border: 0; padding: 0; margin: 0; }
.ad-report__reasons legend { font-weight: 600; margin-bottom: 6px; }
.ad-report__reasons label { display: flex; align-items: center; gap: 8px; font-weight: 400; }

.ads-form__row { display: grid; gap: 18px; align-items: start; }
.ads-form__row .dir-form__field { align-content: start; }
.ads-form__group { display: grid; gap: 14px; margin: 0; padding: 16px 18px 18px; border: 1px solid var(--line); border-radius: 12px; }
.ads-form__group legend { padding: 0 6px; font-weight: 800; }
.ads-form__photos { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.ads-form__photos li { display: grid; gap: 4px; justify-items: start; font-size: .85rem; }
.ads-form__photos img, .ads-form__photo-wait { width: 100px; height: 75px; object-fit: cover; border-radius: 6px; background: var(--mist); }
.ads-form__photo-wait { display: grid; place-items: center; color: var(--muted); font-size: .8rem; text-align: center; }
.ads-form__photos label { display: flex; gap: 4px; align-items: center; }
.ads-manage__link { margin-top: 22px; padding: 16px 18px; border-radius: 12px; background: var(--sun-soft); max-width: 640px; }
.ads-manage__link p { margin-top: 6px; color: var(--ink-2); line-height: 1.5; }
.ads-manage__link input { width: 100%; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: .9rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--paper); color: var(--ink); }
.ads-manage .dir__suggest-actions form { margin: 0; }
.ads-manage__photo-status { color: var(--muted); }

@media (min-width: 600px) {
  .ads-filter__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ads__sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ads__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .ads-form__row { grid-template-columns: 1fr 1fr; }
  .ad-detail__iframe { height: 340px; }
}
@media (min-width: 960px) {
  .ads__sections { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ads__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ad-detail__cols { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
  .ad-contact { position: sticky; top: 20px; }
}
@media print { .ad-contact form, .ad-report, .ads-filter, .ad-detail__map { display: none !important; } }

/* Сортировка по расстоянию от главного города */
.near { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.near__label { color: var(--muted); font-size: .9rem; font-weight: 600; margin-right: 2px; }
.dir__dist { color: var(--gulf-deep); font-weight: 700; }
.ev__news { margin-top: 40px; }
.ev__news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-top: 14px; }

/* Комментарии и отзывы */
.cmt { margin-top: 36px; max-width: 760px; }
.cmt-rating { margin-top: 10px; font-size: 1rem; }
.cmt-rating a { color: var(--ink); text-decoration: none; }
.cmt-rating__stars, .cmt-item__stars { color: #e0a100; letter-spacing: 1px; }
.cmt-mine { margin-top: 14px; padding: 12px 16px; border-radius: 10px; background: var(--mist); line-height: 1.5; }
.cmt-mine--approved { background: #e8f6ee; }
.cmt-mine--rejected, .cmt-mine--hidden { background: #fef3f2; }
.cmt-list { display: grid; margin-top: 12px; }
.cmt-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.cmt-item__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.cmt-item__head time { color: var(--muted); font-size: .88rem; }
.cmt-item__text { margin-top: 6px; line-height: 1.6; overflow-wrap: anywhere; }
.cmt-item__report { margin-top: 6px; }
.cmt-item__report button { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: .82rem; cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }
.cmt-item__reported { margin-top: 6px; color: var(--muted); font-size: .85rem; }
.cmt-empty { margin-top: 12px; color: var(--ink-2); }
.cmt-add { margin-top: 18px; }
.cmt-add > summary { list-style: none; width: max-content; cursor: pointer; }
.cmt-add > summary::-webkit-details-marker { display: none; }
.cmt-add[open] > summary { display: none; }
.cmt-form { margin-top: 4px; }
.cmt-form .btn { justify-self: start; }
.cmt-form__row { display: grid; gap: 18px; align-items: start; }
.cmt-stars { border: 0; margin: 0; padding: 0; }
.cmt-stars legend { font-weight: 600; margin-bottom: 4px; }
/* Звёзды справа налево: выбранная и все «левее» неё подсвечиваются без JS */
.cmt-stars__row { position: relative; display: flex; flex-direction: row-reverse; justify-content: flex-end; justify-self: start; gap: 2px; }
/* сильнее общего правила .dir-form__field input (width: 100%), иначе невидимые кнопки перекрывают звёзды */
.cmt-stars .cmt-stars__row input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; pointer-events: none; }
.cmt-stars__row label { font-size: 2rem; line-height: 1; color: var(--line); cursor: pointer; padding: 2px; }
.cmt-stars__row input:checked ~ label, .cmt-stars__row label:hover, .cmt-stars__row label:hover ~ label { color: #e0a100; }
.cmt-stars__row input:focus-visible + label { outline: 3px solid var(--sun); border-radius: 4px; }
.dir__reviews { margin-top: 6px; font-size: .92rem; }
.dir__reviews a { color: var(--gulf-deep); font-weight: 600; text-decoration: none; }
.dir__reviews a:hover { text-decoration: underline; }
@media (min-width: 600px) { .cmt-form__row { grid-template-columns: 1fr 1fr; } }
