/*
Theme Name: Ilovly
Description: Тема сайта администрации поселения по образцу ilovly.online: шапка с гербом, левое меню, правая колонка виджетов, версия для слабовидящих и карусель баннеров внизу.
Author: PRO-INTEGRY
Author URI: https://pro-integry.ru
Version: 1.8.0
Text Domain: ilovly
*/

:root {
  --blue: #4a7fb5;
  --blue-dark: #31629b;
  --teal: #58aec5;
  --text: #444;
  --muted: #8a939c;
  --line: #e6e6e6;
  --widget-head: #a7b1bc;
  --bg: #f3f4f5;
  --surface: #fff;
  --topnav-bg: var(--blue-dark);
  --topnav-bg-hover: #285382;
  --topnav-text: #f8fbff;
  --topnav-border: rgba(255, 255, 255, .18);
  --topnav-focus: #f5d76e;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "PT Sans", Arial, "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--blue-dark); }
a:hover { color: var(--teal); }

.wrap { max-width: 1400px; margin: 0 auto; padding: 0 15px; }

/* ---------- ticker (бегущая строка) ---------- */
.ticker { background: #b3261e; color: #fff; overflow: hidden; white-space: nowrap; }
.ticker__inner {
  display: inline-block; padding: 8px 0 8px 100%;
  font-weight: 700; font-size: 14px; color: #fff; text-decoration: none;
  animation: ticker-scroll 30s linear infinite; will-change: transform;
}
a.ticker__inner:hover { color: #ffe3e0; }
.ticker:hover .ticker__inner { animation-play-state: paused; }
@keyframes ticker-scroll { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker { text-align: center; }
  .ticker__inner { animation: none; padding-left: 0; white-space: normal; }
}

/* ---------- top bar ---------- */
.topbar { background: #fff; border-bottom: 1px solid var(--line); font-size: 14px; color: #6b7885; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 44px; gap: 16px; flex-wrap: wrap; }
.topbar__item { display: flex; align-items: center; gap: 8px; }
.topbar__item svg { width: 16px; height: 16px; fill: #93a0ad; flex: none; }
.topbar__phone { font-weight: 700; color: #5a6875; white-space: nowrap; }
.topbar__socials { display: flex; align-items: center; gap: 10px; }
.topbar__socials a { display: block; line-height: 0; transition: transform .15s ease; }
.topbar__socials a:hover { transform: translateY(-2px); }
.topbar__socials img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; }

/* ---------- header ---------- */
.site-header { position: relative; color: #fff; }
.site-header__bg {
  position: absolute; inset: 0;
  background: url(images/header_bg.jpg) center/cover no-repeat;
}
/* Затемнение выключено по умолчанию; включается галочкой «Шапка сайта» в Настройщике. */
.site-header__bg::after { content: ""; position: absolute; inset: 0; background: transparent; }
.site-header--overlay .site-header__bg::after { background: rgba(74, 127, 181, .78); }
.site-header .wrap { position: relative; display: flex; align-items: center; gap: 28px; min-height: 150px; padding-top: 10px; padding-bottom: 10px; }
.site-header__logo img { width: 130px; max-width: none; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.site-header__title { flex: 1; text-align: center; }
/* Название слева — вариант «Слева, рядом с гербом» в Настройщике.
   Только на широких экранах: на телефоне герб встаёт по центру, и текст слева смотрится криво. */
@media (min-width: 801px) {
  .site-header--title-left .site-header__title { text-align: left; }
}
.site-header__title a {
  color: #fff; text-decoration: none; font-size: 30px; font-weight: 700; line-height: 1.25;
  /* Тень плотнее, чем была: без синей плёнки название должно читаться на любом фоне. */
  text-shadow: 0 1px 3px rgba(0,0,0,.55), 0 0 14px rgba(0,0,0,.35);
}

/* ---------- видео в шапке ---------- */
.site-header .wp-custom-header { position: absolute; inset: 0; overflow: hidden; line-height: 0; }
.site-header .wp-custom-header video,
.site-header .wp-custom-header iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.site-header .wp-custom-header img { display: none; }
/* Лёгкая подложка поверх кадра: без неё название тонет на светлых сценах.
   Галочка «Синее затемнение» делает её заметно плотнее. */
.site-header .wp-custom-header::after {
  content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .15); pointer-events: none;
}
.site-header--overlay .wp-custom-header::after { background: rgba(74, 127, 181, .6); }
/* кнопка паузы ядра: нужна для доступности, держим её незаметной в углу */
.wp-custom-header-video-button {
  position: absolute; z-index: 3; right: 10px; bottom: 10px;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6);
  background: rgba(0,0,0,.35); color: #fff; font-size: 0; cursor: pointer; opacity: .55; transition: opacity .2s;
}
.wp-custom-header-video-button:hover, .wp-custom-header-video-button:focus-visible { opacity: 1; }
.wp-custom-header-video-button::after { content: "❚❚"; font-size: 12px; letter-spacing: 1px; }
.wp-custom-header-video-button.wp-custom-header-video-play::after { content: "▶"; font-size: 13px; }
/* Кнопка звука: видео стартует беззвучным всегда, звук включает сам посетитель. */
.header-sound-button {
  position: absolute; z-index: 3; right: 54px; bottom: 10px;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6);
  background: rgba(0,0,0,.35); color: #fff; cursor: pointer; opacity: .55; transition: opacity .2s;
}
.header-sound-button:hover, .header-sound-button:focus-visible { opacity: 1; }
.header-sound-button::after { content: "🔇"; font-size: 15px; line-height: 1; }
.header-sound-button.is-on::after { content: "🔊"; }

/* ---------- верхнее горизонтальное меню ---------- */
.topnav {
  position: relative; z-index: 20; background: var(--topnav-bg);
  border-top: 1px solid var(--topnav-border); border-bottom: 1px solid var(--topnav-border);
}
.topnav .wrap { display: flex; align-items: stretch; }
.topmenu { flex: 1; min-width: 0; }
.topmenu ul { list-style: none; margin: 0; padding: 0; }
.topmenu__list { display: flex; align-items: stretch; flex-wrap: wrap; }
.topmenu__list > li { position: relative; border-inline-end: 1px solid var(--topnav-border); }
.topmenu__list > li:first-child { border-inline-start: 1px solid var(--topnav-border); }
.topmenu a {
  display: flex; align-items: center; min-height: 48px; padding: 10px 20px;
  color: var(--topnav-text); text-decoration: none; line-height: 1.25;
  transition: background-color .18s ease;
}
.topmenu__list > li:hover > a,
.topmenu__list > li:focus-within > a,
.topmenu__list > li.current-menu-item > a,
.topmenu__list > li.current-menu-ancestor > a { background: var(--topnav-bg-hover); }
.topmenu__list > li.current-menu-item > a,
.topmenu__list > li.current-menu-ancestor > a { box-shadow: inset 0 -3px 0 var(--topnav-focus); }
.topmenu .menu-item-has-children > a { padding-inline-end: 48px; }
.topmenu .top-sub-toggle {
  position: absolute; z-index: 2; inset-block-start: 2px; inset-inline-end: 2px;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; background: transparent; color: var(--topnav-text); cursor: pointer;
}
.topmenu .top-sub-toggle::after { content: "▾"; font-size: 13px; transition: transform .18s ease; }
.topmenu li.open > .top-sub-toggle::after { transform: rotate(180deg); }
.topmenu .sub-menu {
  position: absolute; inset-block-start: 100%; inset-inline-start: 0; z-index: 30;
  display: none; width: max-content; min-width: 240px; max-width: 320px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(32, 55, 78, .14);
}
.topmenu .sub-menu li + li { border-top: 1px solid var(--line); }
.topmenu .sub-menu li { position: relative; }
.topmenu .sub-menu a { min-height: 44px; padding: 10px 16px; color: var(--text); }
/* 3-й уровень (например, Документы → НПА → Постановления): выпадает вбок */
.topmenu .sub-menu .sub-menu {
  inset-block-start: 0; inset-inline-start: 100%;
}
.topmenu .sub-menu .menu-item-has-children > a { padding-inline-end: 48px; }
.topmenu .sub-menu .top-sub-toggle { color: #98a3ae; }
.topmenu .sub-menu .top-sub-toggle::after { content: "▸"; }
.topmenu .sub-menu li:hover > a,
.topmenu .sub-menu li:focus-within > a,
.topmenu .sub-menu .current-menu-item > a { background: #eef3f7; color: var(--blue-dark); }
.topmenu li.open > .sub-menu,
.topmenu li:focus-within > .sub-menu { display: block; }
@media (hover: hover) and (pointer: fine) {
  .topmenu li:hover > .sub-menu { display: block; }
}
.topmenu-toggle { display: none; }
.topmenu a:focus-visible,
.topmenu button:focus-visible,
.topmenu-toggle:focus-visible {
  outline: 2px solid var(--topnav-focus); outline-offset: -3px;
}
.topmenu .sub-menu a:focus-visible { outline-color: var(--blue-dark); outline-offset: -3px; }

/* ---------- accessibility bar ---------- */
.a11y-bar { display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding: 10px 0; color: #6b7885; }
.a11y-bar button {
  background: none; border: none; cursor: pointer; padding: 2px 6px;
  font: inherit; font-weight: 700; font-size: 17px; color: #5a6875;
}
.a11y-bar button:hover, .a11y-bar a:hover { color: var(--teal); }
.a11y-bar .a11y-link { font-size: 14px; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: 280px minmax(0, 1fr) 300px; gap: 24px; align-items: start; padding-bottom: 36px; }
/* Левая колонка исчезает только когда скрыто меню и в ней нет виджетов. */
.layout--no-left { grid-template-columns: minmax(0, 1fr) 300px; }

/* ---------- left column ---------- */
.searchform { display: flex; background: #fff; border: 1px solid var(--line); }
.searchform input[type="search"] { flex: 1; border: none; padding: 12px 14px; font: inherit; outline: none; min-width: 0; }
.searchform button {
  border: none; background: var(--teal); color: #fff; width: 48px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.searchform button svg { width: 18px; height: 18px; fill: #fff; }

.mainmenu { background: #fff; border: 1px solid var(--line); margin-top: 18px; }
.mainmenu ul { list-style: none; margin: 0; padding: 0; }
.mainmenu > ul > li { border-bottom: 1px solid var(--line); }
.mainmenu > ul > li:last-child { border-bottom: none; }
.mainmenu a {
  display: block; padding: 12px 34px 12px 16px; text-align: center;
  color: #555; text-decoration: none; position: relative; transition: background .15s;
}
.mainmenu a:hover { background: #f5f8fa; color: var(--blue-dark); }
.mainmenu li.current-menu-item > a, .mainmenu li.current-menu-ancestor > a { background: #eef3f7; font-weight: 700; }
.mainmenu .sub-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border: none; background: none; cursor: pointer; color: #98a3ae;
}
.mainmenu .sub-toggle::after { content: "▾"; font-size: 13px; }
.mainmenu li.open > a > .sub-toggle::after { content: "▴"; }
.mainmenu .sub-menu { display: none; background: #fafbfc; border-top: 1px solid var(--line); }
.mainmenu li.open > .sub-menu, .mainmenu li.current-menu-ancestor > .sub-menu { display: block; }
.mainmenu .sub-menu a { font-size: 14px; padding: 10px 12px; color: #6b7480; }
.mainmenu .sub-menu .sub-menu a { font-size: 13px; padding-left: 26px; }

/* ---------- content ---------- */
.content { background: #fff; border: 1px solid var(--line); padding: 26px 30px 32px; }
.content h1, .page-title {
  font-size: 21px; font-weight: 400; color: #7d8893; text-transform: uppercase;
  text-align: center; letter-spacing: .4px; margin: 0 0 22px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.content h2 { font-size: 19px; color: #4a5560; }
.welcome { display: flex; gap: 24px; align-items: flex-start; }
.welcome__photo {
  flex: none; width: 180px; aspect-ratio: 3 / 4; border: 1px solid #9fc3ad;
  background: #fff; display: flex; align-items: center; justify-content: center; color: #b6bec6; font-size: 13px; text-align: center; padding: 8px;
}
.welcome__photo img { width: 100%; height: 100%; object-fit: cover; }
.welcome__lead { font-weight: 700; color: #4a7fb5; margin-top: 0; }
.welcome__sign { text-align: right; font-style: italic; color: #6b7480; }

/* news list */
.news-list { display: grid; gap: 18px; margin-top: 8px; }
.news-item { border: 1px solid var(--line); padding: 16px 20px; background: #fdfdfd; }
.news-item__date { font-size: 13px; color: var(--muted); }
.news-item h2, .news-item h3 { margin: 4px 0 8px; font-size: 17px; }
/* превью новости слева от текста */
.news-item--has-thumb { display: flex; gap: 18px; align-items: flex-start; }
.news-item__thumb { flex: none; width: 160px; display: block; line-height: 0; }
.news-item__thumb img { width: 100%; height: 110px; object-fit: cover; border: 1px solid var(--line); background: #fff; }
.news-item__body { min-width: 0; }
.news-item__body > :first-child { margin-top: 0; }
.news-item a { text-decoration: none; }
.post-thumb { margin: 0 0 16px; }
.entry-content :first-child { margin-top: 0; }

/* ---------- выравнивание картинок из редактора ----------
   Стандартные классы WordPress: их ставит редактор, когда выбираешь
   обтекание текстом слева/справа или размещение по центру. */
.content .alignleft  { float: left;  margin: 4px 22px 14px 0; }
.content .alignright { float: right; margin: 4px 0 14px 22px; }
.content .aligncenter { display: block; margin: 14px auto; }
.content .alignnone { display: block; margin: 14px 0; }
.content .wp-caption { max-width: 100%; }
.content .wp-caption img { display: block; }
.content .wp-caption-text,
.content .wp-element-caption { margin: 6px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
/* блок не должен схлопываться из-за обтекания */
.content::after, .entry-content::after { content: ""; display: table; clear: both; }
@media (max-width: 600px) {
  /* на телефоне обтекание убираем: текст рядом с картинкой сжимается в узкую колонку */
  .content .alignleft, .content .alignright { float: none; margin: 14px auto; }
}

/* ---------- independent widget areas ---------- */
/* Отступы задаёт сама секция — оформление не зависит от наличия заголовка. */
.widget-area > section { background: #fff; border: 1px solid var(--line); padding: 16px; font-size: 14px; }
.widget-area--right > section { margin-bottom: 24px; }
.widget-area--left { display: grid; gap: 24px; }
.leftbar__navigation + .widget-area--left { margin-top: 16px; }
.widget-area .widget-title {
  /* растягиваем плашку на всю ширину секции поверх её отступов */
  margin: -16px -16px 16px; padding: 12px 16px; background: var(--widget-head); color: #fff;
  font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.widget-area .widget-body { font-size: inherit; }
.widget-area .widget_ilovly_events .widget-title { background: none; color: #5a6875; font-size: 22px; font-weight: 400; padding-bottom: 4px; margin-bottom: 4px; }
/* Картинки-баннеры показываем во всю ширину блока, без полей */
.widget-area > section.widget_media_image { padding: 0; }
.widget-area .widget_media_image .widget-title { margin: 0; }
.widget-area .widget_media_image img { display: block; width: 100%; height: auto; }
.widget-area ul { list-style: none; margin: 0; padding: 0; }
.widget-area li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.widget-area li:last-child { border-bottom: none; }
.tagcloud a { display: inline-block; margin: 2px 6px 2px 0; font-size: 13px !important; }

/* wp calendar */
.wp-calendar-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.wp-calendar-table caption { padding: 6px 0; font-weight: 700; color: #5a6875; }
.wp-calendar-table th, .wp-calendar-table td { text-align: center; padding: 5px 2px; }
.wp-calendar-table thead th { color: #7d8893; text-transform: lowercase; }
.wp-calendar-table thead th:nth-child(6), .wp-calendar-table thead th:nth-child(7),
.wp-calendar-table tbody tr td:nth-child(6), .wp-calendar-table tbody tr td:nth-child(7) { color: #c0392b; }
.wp-calendar-table td { background: #f1f2f4; border: 2px solid #fff; }
.wp-calendar-table td#today { background: var(--teal); color: #fff; }

/* ---------- banner carousel ---------- */
.banners { background: #fff; border-top: 1px solid var(--line); padding: 26px 0 30px; }
.banners__head { text-align: center; font-size: 15px; color: #7d8893; text-transform: uppercase; letter-spacing: .5px; margin: 0 0 18px; }
.carousel { position: relative; padding: 0 46px; }
.carousel__viewport { overflow: hidden; }
.carousel__track { display: flex; transition: transform .45s ease; will-change: transform; }
.carousel__slide { flex: 0 0 25%; padding: 0 8px; }
.carousel__slide a {
  display: flex; align-items: center; justify-content: center;
  height: 150px; padding: 6px; background: #fff; border: 1px solid var(--line);
}
/* contain — баннер виден целиком, любые пропорции, ничего не обрезается */
.carousel__slide img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: #5a6875; font-size: 18px; line-height: 1; cursor: pointer; z-index: 2;
}
.carousel__btn:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.carousel__btn:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 3px; }
.carousel__btn--prev { left: 0; }
.carousel__btn--next { right: 0; }
.carousel--static { padding-inline: 0; }
.carousel--static .carousel__btn { display: none; }

/* Один широкий баннер на слайд. Блок выводится только на главной и не обрезает изображение. */
.banners--wide { padding-block: 24px 28px; }
.carousel--wide { padding-inline: 52px; }
.carousel--wide .carousel__slide { flex-basis: 100%; padding-inline: 0; }
.carousel--wide .carousel__slide a {
  height: clamp(140px, 5rem + 17vw, 320px); padding: 0; overflow: hidden;
  background: var(--bg); border-color: var(--line);
}
.carousel--wide .carousel__slide img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
.carousel--wide .carousel__btn { width: 44px; height: 44px; }
@media (max-width: 900px) { .carousel__slide { flex-basis: 50%; } }
@media (max-width: 560px) { .carousel__slide { flex-basis: 100%; } }
@media (max-width: 560px) {
  .carousel--wide { padding-inline: 0; }
  .carousel--wide .carousel__btn { background: rgba(255,255,255,.94); }
  .carousel--wide .carousel__btn--prev { left: 8px; }
  .carousel--wide .carousel__btn--next { right: 8px; }
}

/* ---------- footer ---------- */
.site-footer { background: #5a6875; color: #cdd4da; font-size: 13px; }
.site-footer .wrap { padding: 18px 15px; text-align: center; }
.site-footer__links { margin-top: 8px; }
.site-footer__links a { color: #fff; text-decoration: underline; }
.site-footer__links a:hover { color: #d6e4ef; }
.cookie-note a { color: var(--blue-dark); }

/* ---------- cookie ---------- */
.cookie-note {
  position: fixed; left: 20px; bottom: 20px; z-index: 99; max-width: 440px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(0,0,0,.14);
  padding: 18px 20px; display: none; align-items: center; gap: 16px; font-size: 14px;
}
.cookie-note.show { display: flex; }
.cookie-note__btns { display: grid; gap: 8px; flex: none; }
.cookie-note button { border: none; padding: 9px 18px; cursor: pointer; font: inherit; font-size: 14px; }
.cookie-note__ok { background: var(--blue-dark); color: #fff; }
.cookie-note__no { background: #7d8893; color: #fff; }

/* ---------- accessibility modes ---------- */
body.a11y-font { font-size: 19px; }
body.a11y-font .mainmenu a { font-size: 17px; }
body.a11y-font .topmenu a, body.a11y-font .topmenu-toggle { font-size: 18px; }
body.a11y-contrast { background: #fff; }
body.a11y-contrast .site-header__bg { background: #000; }
body.a11y-contrast .site-header__bg::after { background: #000; }
body.a11y-contrast img:not(.site-header__logo img) { filter: grayscale(1); }
body.a11y-contrast .content, body.a11y-contrast .widget-area > section, body.a11y-contrast .mainmenu { border-color: #000; }
body.a11y-contrast, body.a11y-contrast .mainmenu a, body.a11y-contrast .content { color: #000; }
body.a11y-contrast .topnav { background: #000; border-color: #fff; }
body.a11y-contrast .topmenu__list > li { border-color: #fff; }
body.a11y-contrast .topmenu__list > li:hover > a,
body.a11y-contrast .topmenu__list > li:focus-within > a,
body.a11y-contrast .topmenu__list > li.current-menu-item > a,
body.a11y-contrast .topmenu__list > li.current-menu-ancestor > a { background: #333; }
body.a11y-contrast .topmenu .sub-menu { background: #fff; border-color: #000; }
body.a11y-contrast .topmenu .sub-menu a { color: #000; }
body.a11y-contrast .ticker { background: #000; border-bottom: 1px solid #fff; }

/* ---------- adaptive ---------- */
.menu-toggle {
  display: none; width: 100%; border: 1px solid var(--line); background: #fff;
  padding: 12px; font: inherit; font-weight: 700; color: #5a6875; cursor: pointer; margin-top: 14px;
}
.menu-toggle:focus-visible { outline: 2px solid var(--blue-dark); outline-offset: 2px; }
@media (max-width: 1100px) {
  .layout { grid-template-columns: 250px minmax(0, 1fr); }
  .layout--no-left { grid-template-columns: minmax(0, 1fr); }
  .rightbar { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
  .rightbar > section { margin-bottom: 0; }
}
@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; gap: 16px; }
  .topbar .wrap { align-items: flex-start; padding-block: 8px; }
  .topbar__item { width: 100%; min-width: 0; }
  .topbar__socials { width: 100%; justify-content: center; }
  .topbar__socials img { width: 32px; height: 32px; }
  .topbar__item span { overflow-wrap: anywhere; }
  .site-header .wrap { flex-direction: column; gap: 10px; min-height: 0; padding: 18px 15px; }
  /* с видео на телефоне шапке нужна высота, иначе от кадра остаётся полоска */
  .site-header:has(video) .wrap { min-height: 220px; }
  .site-header__logo img { width: 90px; }
  .site-header__title { width: 100%; min-width: 0; }
  .site-header__title a { display: block; font-size: 21px; overflow-wrap: anywhere; }
  .topnav .wrap { display: block; padding-block: 0; }
  .topmenu-toggle {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; min-height: 48px; padding: 8px 16px; border: 0;
    background: transparent; color: var(--topnav-text); font: inherit; font-weight: 700; cursor: pointer;
  }
  .topmenu { display: none; padding-bottom: 8px; }
  .topnav.open .topmenu { display: block; }
  .topmenu__list { display: block; border-top: 1px solid var(--topnav-border); }
  .topmenu__list > li, .topmenu__list > li:first-child {
    border: 0; border-bottom: 1px solid var(--topnav-border);
  }
  .topmenu__list > li:last-child { border-bottom: 0; }
  .topmenu a { min-height: 48px; padding-inline: 16px; }
  .topmenu .menu-item-has-children > a { padding-inline-end: 52px; }
  .topmenu .sub-menu {
    position: static; width: auto; min-width: 0; max-width: none;
    border: 0; border-top: 1px solid var(--line); box-shadow: none;
  }
  .topmenu .sub-menu a { min-height: 48px; padding-inline-start: 32px; }
  .topmenu .sub-menu .sub-menu a { padding-inline-start: 48px; }
  .topmenu .sub-menu .top-sub-toggle::after { content: "▾"; }
  .a11y-bar { justify-content: center; flex-wrap: wrap; }
  .layout--no-left-nav .content { order: 1; }
  .layout--no-left-nav .leftbar { order: 2; }
  .layout--no-left-nav .rightbar { order: 3; }
  .menu-toggle { display: block; }
  .leftbar .mainmenu { display: none; margin-top: 0; border-top: none; }
  .leftbar.open .mainmenu { display: block; }
  .content { padding: 20px 16px 26px; }
  .news-item--has-thumb { flex-direction: column; gap: 12px; }
  .news-item__thumb { width: 100%; }
  .news-item__thumb img { height: 180px; }
  .welcome { flex-direction: column; align-items: center; text-align: center; }
  .welcome__sign { text-align: center; }
  .cookie-note { left: 10px; right: 10px; max-width: none; flex-direction: column; }
}
