/* Фильтр списков статей (новости, гид, места): одна строка + метки. */
body:not(#_) .afl { --afl-g: #0c6150; --afl-soft: #e8f2ee; --afl-line: #d7e1db; display: grid; gap: 12px; margin: 0 0 20px; padding: 12px; background: #f3f6f9; border-radius: 20px; box-sizing: border-box; min-width: 0; }
body:not(#_) .afl__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
body:not(#_) .afl .afl__search { position: relative; display: flex; flex: 1 1 280px; max-width: none; margin: 0; gap: 0; min-width: 0; }
body:not(#_) .afl .afl__search input { flex: 1; width: 100%; min-width: 0; height: 44px; min-height: 44px; margin: 0; padding: 0 112px 0 16px; border: 1px solid var(--afl-line); border-radius: 12px; background: #fff; font: inherit; font-size: 15px; box-sizing: border-box; }
body:not(#_) .afl .afl__search input:focus { outline: none; border-color: var(--afl-g); box-shadow: 0 0 0 3px rgba(12, 97, 80, .14); }
body:not(#_) .afl__go { position: absolute; top: 4px; right: 4px; bottom: 4px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border: 0; border-radius: 9px; background: var(--afl-g); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s; }
body:not(#_) .afl__go:hover { background: #084c3e; }
body:not(#_) .afl__go .ico { color: #fff; }

body:not(#_) .afl .afl__months { position: relative; margin: 0; flex: none; }
body:not(#_) .afl__months summary.afl__cal { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; margin: 0; padding: 0 11px; border: 1px solid var(--afl-line); border-radius: 12px; background: #fff; color: var(--afl-g); font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; white-space: nowrap; box-sizing: border-box; transition: background .18s, border-color .18s, color .18s, box-shadow .18s; -webkit-tap-highlight-color: transparent; }
body:not(#_) .afl__months summary::-webkit-details-marker { display: none; }
body:not(#_) .afl__months summary .ico { color: currentColor; flex: none; }
body:not(#_) .afl__months summary.afl__cal:hover { border-color: var(--afl-g); background: var(--afl-soft); }
body:not(#_) .afl__months summary.afl__cal:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(12, 97, 80, .22); }
body:not(#_) .afl__months[open] summary.afl__cal { border-color: var(--afl-g); background: var(--afl-soft); }
body:not(#_) .afl__months summary.afl__cal.is-on { border-color: var(--afl-g); background: var(--afl-g); color: #fff; }
body:not(#_) .afl__months summary.afl__cal.is-on:hover { background: #084c3e; }
body:not(#_) .afl__cal-l { letter-spacing: .01em; }
body:not(#_) .afl__menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; display: grid; min-width: 200px; max-height: 320px; overflow: auto; padding: 6px; background: #fff; border: 1px solid var(--afl-line); border-radius: 14px; box-shadow: 0 12px 30px rgba(0, 60, 50, .16); animation: afl-in .16s ease-out; }
body:not(#_) .afl__menu a { padding: 8px 12px; border-radius: 9px; color: #111; text-decoration: none; font-size: 14px; white-space: nowrap; }
body:not(#_) .afl__menu a:hover { background: #f3f6f9; }
body:not(#_) .afl__menu-h { margin: 2px 8px 6px; color: #6b7c74; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
body:not(#_) .afl__menu a.afl__menu-reset { margin-top: 4px; border-top: 1px solid #eef2f0; border-radius: 0 0 9px 9px; color: var(--afl-g); font-weight: 600; }
body:not(#_) .afl__menu a.is-on { background: var(--afl-soft); color: var(--afl-g); font-weight: 700; }

body:not(#_) .afl .afl__seg { display: inline-flex; flex: none; gap: 2px; margin: 0; padding: 3px; border: 1px solid var(--afl-line); border-radius: 12px; background: #fff; box-sizing: border-box; height: 44px; }
body:not(#_) .afl .afl__seg a { display: inline-flex; align-items: center; margin: 0; padding: 0 14px; border-radius: 9px; background: none; color: #33413b; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
body:not(#_) .afl .afl__seg a:hover { background: #f3f6f9; }
body:not(#_) .afl .afl__seg a.is-on { background: var(--afl-g); color: #fff; }

body:not(#_) .afl .afl__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
body:not(#_) .afl .afl__tags a, body:not(#_) .afl .article-tags__more { display: inline-flex; align-items: center; margin: 0; padding: 5px 11px; border: 1px solid transparent; border-radius: 99px; background: #fff; color: #33413b; font-size: 13px; line-height: 1.35; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
body:not(#_) .afl .afl__tags a::before { content: "#"; margin-right: 1px; color: #8fa49b; }
body:not(#_) .afl .afl__tags a:hover { border-color: var(--afl-g); color: var(--afl-g); }
body:not(#_) .afl .afl__tags a.is-on { background: var(--afl-g); border-color: var(--afl-g); color: #fff; font-weight: 600; }
body:not(#_) .afl .afl__tags a.is-on::before { color: rgba(255, 255, 255, .7); }
body:not(#_) .afl .article-tags__more { border: 1px dashed #9fb5ab; background: transparent; color: var(--afl-g); font-weight: 600; cursor: pointer; }
body:not(#_) .afl .article-tags__more:hover { background: #fff; }
body:not(#_) .afl .afl__tags [hidden] { display: none !important; }
/* свёрнуто: одна строка (без JS — просто обрезка по высоте строки) */
body:not(#_) .afl .afl__tags:not(.is-open):not(.is-measuring) { max-height: 30px; overflow: hidden; }
body:not(#_) .afl .afl__tags.is-open { animation: afl-in .25s ease-out both; }
body:not(#_) .afl .afl__tags .article-tags__more { flex: none; }
@keyframes afl-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Карточки: мало статей — не одна узкая колонка слева */
body:not(#_) .cms-page .cms-cards { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important; gap: 16px; }
body:not(#_) .cms-page .cms-cards--n2, body:not(#_) .cms-page .cms-cards--n3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important; }
body:not(#_) .cms-page .cms-cards--n1 { grid-template-columns: minmax(0, 1fr) !important; max-width: 820px; }
body:not(#_) .cms-page .cms-cards--n1 .cms-cards__item { display: grid; grid-template-columns: minmax(0, 300px) 1fr; grid-template-rows: auto auto 1fr; column-gap: 20px; align-items: start; }
body:not(#_) .cms-page .cms-cards--n1 .cms-cards__media { grid-row: 1 / span 3; }
body:not(#_) .cms-page .cms-cards--n1 .cms-cards__item img { height: 190px; }
body:not(#_) .cms-page .cms-cards--n1 .cms-cards__meta { align-self: end; }

/* Боковой блок «Новости» на страницах гида: белый текст был на прозрачном фоне */
body:not(#_) .main_block_announ .right_main .news_list.as { background: #0A5E4F; border-radius: 24px; padding: 0 0 12px; color: #fff; }
body:not(#_) .main_block_announ .right_main .news_list .title { padding: 24px 24px 8px; }
body:not(#_) .main_block_announ .right_main .news_list .title h2 { font-size: 22px; }
body:not(#_) .main_block_announ .right_main .news_list .inner .item { display: block; min-height: 0; padding: 12px; }
body:not(#_) .main_block_announ .right_main .news_list .inner .item .date { display: block; margin: 0 0 4px; }
body:not(#_) .main_block_announ .right_main .news_list .inner .item .name { display: block; font-size: 16px; line-height: 1.35; }
body:not(#_) .cms-page .main_block_announ { padding-top: 12px; }

@media (max-width: 760px) {
  body:not(#_) .afl { gap: 10px; margin: 0 -12px 16px; padding: 10px 12px; border-radius: 0; background: transparent; }
  body:not(#_) .afl__row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
  body:not(#_) .afl .afl__search { grid-column: 1 / -1; flex: none; }
  body:not(#_) .afl .afl__search input { padding-right: 52px; background: #f3f6f9; border-color: transparent; }
  body:not(#_) .afl__go { padding: 0 11px; }
  body:not(#_) .afl__go span { display: none; }
  body:not(#_) .afl .afl__seg { order: -0; min-width: 0; overflow-x: auto; scrollbar-width: none; height: 40px; }
  body:not(#_) .afl .afl__seg a { padding: 0 11px; font-size: 13px; }
  body:not(#_) .afl__months summary.afl__cal { min-width: 40px; height: 40px; padding: 0 9px; }
  body:not(#_) .afl__menu { left: auto; right: 0; }
  body:not(#_) .afl .afl__seg { grid-column: 1; grid-row: 2; justify-self: start; }
  body:not(#_) .afl .afl__months { grid-column: 2; grid-row: 2; }
  /* метки — одна строка с прокруткой и затуханием; «ещё N» прилипает справа */
  body:not(#_) .afl .afl__tags:not(.is-open) { flex-wrap: nowrap; max-height: none; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; margin: 0; padding: 0 0 2px; scroll-snap-type: x proximity; }
  body:not(#_) .afl .afl__tags::-webkit-scrollbar, body:not(#_) .afl .afl__seg::-webkit-scrollbar { display: none; }
  body:not(#_) .afl .afl__tags a { flex: none; background: #f3f6f9; scroll-snap-align: start; }
  body:not(#_) .afl .afl__tags a.is-on { background: var(--afl-g); }
  body:not(#_) .afl .afl__tags:not(.is-open) .article-tags__more { position: sticky; right: 0; background: #fff; box-shadow: -14px 0 12px 2px #fff; }
  body:not(#_) .cms-page .cms-cards--n1 .cms-cards__item { display: flex; }
  body:not(#_) .cms-page .main_block_announ { padding-top: 4px; }
  body:not(#_) .cms-page .cms-cards--n1 .cms-cards__item img { height: 180px; }
}
