/*
Theme Name: Администрация города Сунжа (Официальный сайт)
Theme URI: https://sunjagrad.ru/
Author: Администрация МО «Городской округ город Сунжа»
Description: Официальная тема сайта администрации муниципального образования «Городской округ город Сунжа» (Официальный сайт администрации города Сунжа). Компактное современное меню, карточка Главы города в главном блоке, боковая колонка для виджетов (сайдбар), адаптивные виджеты, расширенные настройки оформления и единый реестр документов на всех страницах.
Version: 5.8.1
License: GNU General Public License v2 or later
Text Domain: sunzha
*/

:root {
    --sz-green: #008751;
    --sz-dark: #005b36;
    --sz-darker: #004b2c;
    --sz-light: #edf7f3;
    --sz-green-light: #59b18e;
    --sz-gold: #d4af37;
    --sz-gold-dark: #b89830;
    --sz-on-gold: #111827;
    --sz-bg: #f4f6f8;
    --sz-footer: #111827;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --radius-m: 14px;
    --radius-lg: 18px;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 18px 40px rgba(0, 75, 44, 0.16);
}

/* Версия для слабовидящих */
html.a11y,
body.a11y {
    --sz-green: #000000;
    --sz-dark: #000000;
    --sz-darker: #000000;
    --sz-light: #ffffff;
    --sz-gold: #000000;
    --sz-gold-dark: #222222;
    --sz-on-gold: #ffffff;
    --sz-bg: #ffffff;
    --sz-footer: #000000;
    --text-main: #000000;
    --text-muted: #111111;
    --border-color: #000000;
    font-size: 19px !important;
}

html.a11y .service-card,
html.a11y .news-card,
html.a11y .head-card,
html.a11y .links-panel,
html.a11y .single-card,
html.a11y .widget {
    border: 2px solid #000000 !important;
    box-shadow: none !important;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--sz-bg);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

.container {
    width: 100%;
    max-width: var(--sz-container-width, 1320px);
    margin: 0 auto;
    padding: 0 16px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--sz-gold);
    color: var(--sz-on-gold);
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    z-index: 10000;
}
.skip-link:focus {
    top: 16px;
}

/* Верхняя панель (Topbar) */
.topbar {
    background-color: var(--sz-darker);
    color: #ffffff;
    font-size: 12.5px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.topbar-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
}

.topbar-contacts a {
    color: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.topbar-contacts a:hover {
    color: var(--sz-gold);
}

.a11y-toggle {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.a11y-toggle:hover {
    background: rgba(255, 255, 255, 0.22);
    color: var(--sz-gold);
}

/* Шапка сайта: компактная двухъярусная структура (бренд + тонкая современная панель меню в 1 ряд) */
.site-header {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 12px 16px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.site-logo-img,
.custom-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    display: block;
}

.site-brand__text {
    display: flex;
    flex-direction: column;
}

.site-brand__sub {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sz-green);
}

.site-brand__title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    color: #111827;
}

.site-brand__title span {
    color: var(--sz-green);
}

/* Современная компактная панель навигации (строго в 1 строку без растягивания) */
.site-header__nav-bar {
    background: var(--sz-dark);
    border-top: 2px solid var(--sz-gold);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 2px;
    width: 100%;
}

.menu > li {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.menu > li > a {
    display: inline-flex;
    align-items: center;
    padding: 11px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    border-radius: 6px;
    transition: background 0.18s ease, color 0.18s ease;
}

.menu > li:hover > a,
.menu > li.current-menu-item > a {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.14);
}

.submenu-toggle {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    padding: 4px 6px 4px 0;
    font-size: 10px;
    margin-left: -4px;
}

/* Выпадающие подменю 2 и 3 уровня */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 270px;
    max-width: 340px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
    border-radius: 0 0 12px 12px;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--sz-gold);
    list-style: none;
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.18s ease;
    z-index: 1200;
}

/* Чтобы правые пункты меню не уходили за край экрана */
.menu > li:nth-last-child(-n+2) > .sub-menu {
    left: auto;
    right: 0;
}

.menu li:hover > .sub-menu,
.menu li.submenu-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    position: relative;
    border-bottom: 1px solid #f3f4f6;
}

.sub-menu li:last-child {
    border-bottom: none;
}

.sub-menu li a {
    display: block;
    padding: 9px 15px;
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.35;
    white-space: normal;
}

.sub-menu li a:hover {
    background: var(--sz-light);
    color: var(--sz-green);
    padding-left: 19px;
}

.sub-menu .sub-menu {
    top: 0;
    left: 100%;
    border-radius: 12px;
}

.sub-menu .submenu-toggle {
    color: #6b7280;
    position: absolute;
    right: 8px;
    top: 10px;
}

/* Кнопки шапки */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.search-toggle,
.nav-toggle {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    border: 1px solid var(--border-color);
    background: #f9fafb;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
}

.search-toggle:hover,
.nav-toggle:hover {
    background: var(--sz-light);
    color: var(--sz-green);
    border-color: var(--sz-green);
}

.nav-toggle {
    display: none;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--sz-gold);
    color: var(--sz-on-gold);
    font-weight: 700;
    font-size: 13px;
    padding: 9px 16px;
    border-radius: 9px;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.25);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-gold:hover {
    background-color: var(--sz-gold-dark);
    color: var(--sz-on-gold);
    transform: translateY(-1px);
}

.btn-gold--lg {
    padding: 12px 22px;
    font-size: 14.5px;
}

.btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #ffffff;
    color: var(--sz-dark);
    font-weight: 700;
    font-size: 14.5px;
    padding: 12px 22px;
    border-radius: 9px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    background-color: var(--sz-light);
    color: var(--sz-darker);
    transform: translateY(-1px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 2px solid var(--sz-green);
    color: var(--sz-green);
    font-weight: 700;
    border-radius: 9px;
}

/* Поиск под шапкой */
.header-search {
    background: var(--sz-light);
    border-top: 1px solid var(--border-color);
}

.search-form {
    display: flex;
    gap: 8px;
    max-width: 680px;
    margin: 0 auto;
}

.search-field {
    flex-grow: 1;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    font-size: 14px;
    background: #ffffff;
}

.search-submit {
    background: var(--sz-green);
    color: #ffffff;
    border: none;
    padding: 0 18px;
    border-radius: 9px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Главный блок (Hero) с местом для Главы города и волной */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--sz-darker) 0%, var(--sz-dark) 52%, var(--sz-green) 100%);
    color: #ffffff;
    padding: 46px 0 100px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.18), transparent 55%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 10;
}

.hero-row {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 36px;
    align-items: center;
}

.hero-kicker {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 13px;
    border-radius: 99px;
    margin-bottom: 14px;
}

.hero-title {
    font-size: 34px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 14px;
}

.hero-lead {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    max-width: 620px;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Карточка Главы города Сунжа */
.hero-aside {
    display: flex;
    justify-content: flex-end;
}

.head-card {
    width: 100%;
    max-width: 380px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.head-card__photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--sz-head-photo-border, var(--sz-gold));
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.head-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.head-card__placeholder {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.85);
}

.head-card__role {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sz-head-role-color, var(--sz-gold));
    font-weight: 800;
    margin-bottom: 4px;
}

.head-card__name {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 14px;
    line-height: 1.3;
}

.head-card__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.head-card__btn {
    flex: 1;
    min-width: 140px;
}

.head-card__btn2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 15px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.head-card__btn2:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Волна внизу Hero */
.hero-wave-wrap {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
}

.hero-wave-svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 68px;
}

.hero-wave {
    fill: var(--sz-bg);
}

.hero-wave--double .hero-wave-svg { height: 84px; }
.hero-wave--arch .hero-wave-svg { height: 96px; }
.hero-wave--straight .hero-wave-svg { height: 2px; }
.hero-ornament--dots::after,
.hero-ornament--diagonal::after,
.hero-ornament--diamond::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 24px;
    pointer-events: none;
    opacity: .55;
}
.hero-ornament--dots::after {
    background-image: radial-gradient(circle, rgba(255,255,255,.7) 1.2px, transparent 1.5px);
    background-size: 16px 16px;
}
.hero-ornament--diagonal::after {
    background-image: repeating-linear-gradient(135deg, transparent 0 12px, rgba(255,255,255,.24) 12px 14px);
}
.hero-ornament--diamond::after {
    background-image: repeating-linear-gradient(45deg, transparent 0 13px, rgba(255,255,255,.22) 13px 14px, transparent 14px 27px), repeating-linear-gradient(-45deg, transparent 0 13px, rgba(255,255,255,.22) 13px 14px, transparent 14px 27px);
}

/* 4 карточки популярных разделов внахлест */
.cards-overlap {
    margin-top: -50px;
    position: relative;
    z-index: 20;
    padding-bottom: 24px;
}

.cards-grid-4 {
    display: grid;
    grid-template-columns: repeat(var(--sz-home-card-columns, 4), minmax(0, 1fr));
    gap: 20px;
}

.service-card {
    background: #ffffff;
    border-radius: var(--radius-m);
    padding: 20px 18px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    text-align: left;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    border-color: var(--sz-green);
}

.service-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.service-card--blue .service-card__icon {
    background: #eff6ff;
    color: #1d4ed8;
}
.service-card--green .service-card__icon {
    background: var(--sz-light);
    color: var(--sz-green);
}
.service-card--gold .service-card__icon {
    background: #fef9c3;
    color: #a16207;
}
.service-card--red .service-card__icon {
    background: #fef2f2;
    color: #dc2626;
}

.service-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.service-card__title {
    font-size: 15.5px;
    font-weight: 800;
    color: #111827;
    line-height: 1.25;
}

.service-card__text {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.45;
}

/* ДВУХКОЛОНОЧНАЯ СТРУКТУРА С БОКОВОЙ ПАНЕЛЬЮ ВИДЖЕТОВ (САЙДБАР СПРАВА) */
.main-with-sidebar-section {
    padding: 32px 0 56px;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

.main-content-col {
    min-width: 0;
}

.sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

/* Стили виджетов боковой колонки */
.widget {
    background: #ffffff;
    border-radius: var(--radius-m);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--sz-green);
}

.widget-title {
    font-size: 16.5px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title i {
    color: var(--sz-green);
}

/* Не даём плакатам и изображениям из виджетов растягивать боковую колонку. */
.widget img {
    display: block;
    max-width: 100%;
    max-height: 320px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-inline: auto;
}
.widget a,
.service-card__title,
.service-card__text {
    overflow-wrap: anywhere;
}
.widget--environment {
    background: linear-gradient(145deg, #008653, #006b45);
    color: #fff;
}
.widget--environment .widget-title {
    color: #fff;
    border-color: rgba(255,255,255,.3);
}

.widget ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.widget ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 9px;
    background: var(--sz-bg);
    font-size: 13.5px;
    font-weight: 600;
    color: #1f2937;
    transition: all 0.18s ease;
}

.widget ul li a:hover {
    background: var(--sz-green);
    color: #ffffff;
    transform: translateX(2px);
}

.widget-contacts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13.5px;
}

.widget-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: var(--sz-bg);
    border-radius: 9px;
}

.widget-contact-item i {
    color: var(--sz-green);
    margin-top: 3px;
    width: 16px;
    text-align: center;
}

/* Заголовок секции новостей */
.sec-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}

.sec-kicker {
    display: block;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sz-green);
    margin-bottom: 4px;
}

.sec-title {
    font-size: 26px;
    font-weight: 900;
    color: #111827;
}

.sec-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--sz-green);
}

.sec-link:hover {
    color: var(--sz-dark);
}

/* Сетка новостей в основной колонке (2 в ряд + 1 крупная сверху на главной) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.news-card {
    background: #ffffff;
    border-radius: var(--radius-m);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.news-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--sz-light);
    overflow: hidden;
    display: block;
}

.news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.news-card:hover .news-card__media img {
    transform: scale(1.05);
}

.news-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--sz-green);
}

.news-card__date {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(17, 24, 39, 0.82);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

.news-card__body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #111827;
}

.news-card__title a:hover {
    color: var(--sz-green);
}

.news-card__excerpt {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 14px;
    flex-grow: 1;
}

.news-card__more {
    font-size: 13px;
    font-weight: 700;
    color: var(--sz-green);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-card__more::after {
    content: "→";
}

/* Внутренние страницы и записи */
.single-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.breadcrumbs {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.breadcrumbs a {
    color: var(--sz-green);
    font-weight: 600;
}

.entry-title {
    font-size: 26px;
    font-weight: 900;
    color: #111827;
    line-height: 1.25;
    margin-bottom: 16px;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    padding-bottom: 16px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border-color);
}

.entry-content {
    font-size: 15.5px;
    line-height: 1.75;
}

.entry-content p {
    margin-bottom: 14px;
}

.entry-content h2,
.entry-content h3 {
    margin: 24px 0 12px;
    color: #111827;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 16px 22px;
}

.entry-content a {
    color: var(--sz-green);
    text-decoration: underline;
}

/* Пагинация */
.pagination-wrap {
    margin-top: 32px;
}

.nav-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 9px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 13.5px;
}

.page-numbers.current,
.page-numbers:hover {
    background: var(--sz-green);
    color: #ffffff;
    border-color: var(--sz-green);
}

/* Подвал сайта (Footer) */
.site-footer {
    background-color: var(--sz-footer);
    color: #d1d5db;
    padding: 56px 0 28px;
    border-top: 4px solid var(--sz-green);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.footer-brand__title {
    font-weight: 800;
    color: #ffffff;
    font-size: 16.5px;
    line-height: 1.25;
}

.footer-desc {
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.6;
}

.footer-heading {
    color: #ffffff;
    font-size: 15.5px;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 9px;
}

.footer-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 34px;
    height: 2px;
    background: var(--sz-gold);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: #d1d5db;
    font-size: 13px;
}

.footer-links a:hover {
    color: var(--sz-gold);
}

.footer-contacts {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13px;
}

.footer-contacts li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contacts i {
    color: var(--sz-green-light);
    margin-top: 4px;
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12.5px;
    color: #9ca3af;
}

/* Всплывающее модальное окно (Интернет-приёмная / ПОС Госуслуги) */
.sz-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.68);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 16px;
}

.sz-modal-overlay.active {
    display: flex;
}

.sz-modal-dialog {
    background: #ffffff;
    width: 100%;
    max-width: 620px;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
    padding: 32px;
}

.sz-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #374151;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ЕДИНЫЙ РЕЕСТР ДОКУМЕНТОВ НА ВСЕХ СТРАНИЦАХ (БЕЗ ЛИШНИХ ВКЛАДОК ПО ГОДАМ) */
.sz-doc-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    background: var(--sz-light);
    border: 1px solid #ccebd9;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.sz-doc-search {
    flex: 1;
    min-width: 240px;
    position: relative;
}

.sz-doc-search input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border-radius: 9px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    font-size: 14px;
    color: #111827;
}

.sz-doc-search input:focus {
    outline: none;
    border-color: var(--sz-green);
    box-shadow: 0 0 0 3px rgba(0, 135, 81, 0.12);
}

.sz-doc-search i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

.sz-doc-count {
    background: var(--sz-green);
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    padding: 9px 15px;
    border-radius: 9px;
    white-space: nowrap;
}

.sz-doc-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

.sz-doc-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--sz-green);
    border-radius: 12px;
    padding: 15px 18px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.sz-doc-card:hover {
    border-color: var(--sz-green);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.sz-doc-card--pdf { border-left-color: #dc2626; }
.sz-doc-card--doc { border-left-color: #2563eb; }
.sz-doc-card--map { border-left-color: #d97706; }
.sz-doc-card--folder { border-left-color: var(--sz-green); }

.sz-doc-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sz-doc-card__left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

.sz-doc-badge {
    width: 58px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
    font-weight: 800;
    flex-shrink: 0;
    background: var(--sz-light);
    color: var(--sz-dark);
    border: 1px solid #a7f3d0;
}

.sz-doc-badge i {
    font-size: 15px;
    margin-bottom: 2px;
}

.sz-doc-card--pdf .sz-doc-badge {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.sz-doc-card--doc .sz-doc-badge {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.sz-doc-card--map .sz-doc-badge {
    background: #fef3c7;
    color: #b45309;
    border-color: #fde68a;
}

.sz-doc-info {
    min-width: 0;
    flex: 1;
}

.sz-doc-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
    margin-bottom: 3px;
    word-wrap: break-word;
}

.sz-doc-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.sz-doc-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.sz-doc-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.sz-doc-btn--download {
    background: var(--sz-green);
    color: #ffffff !important;
}

.sz-doc-btn--download:hover {
    background: var(--sz-dark);
}

.sz-doc-btn--expand {
    background: var(--sz-gold);
    color: #111827 !important;
}

.sz-doc-btn--secondary {
    background: #f3f4f6;
    color: #374151 !important;
    padding: 8px 11px;
}

.sz-doc-subfiles {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #d1d5db;
    display: none;
    flex-direction: column;
    gap: 8px;
}

.sz-doc-subfiles.open {
    display: flex;
}

.sz-subfile-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #f9fafb;
    padding: 9px 13px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* Адаптивность */
@media (max-width: 1140px) {
    .cards-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .layout-with-sidebar {
        grid-template-columns: 1fr;
    }
    .hero-row {
        grid-template-columns: 1fr;
    }
    .hero-aside {
        justify-content: flex-start;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Homepage: full-width hero background and uniform editorial cards. */
.sz-home-layout > .sz-template-section--hero {
    grid-column: 1 / -1;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: visible;
}
.sz-home-layout > .sz-template-section--hero .hero {
    width: 100%;
    min-height: 430px;
    padding: 46px 0 92px;
    border-radius: 0;
    overflow: hidden;
}
.sz-home-layout > .sz-template-section--hero .hero-inner {
    width: 100%;
    max-width: var(--sz-container-width, 1320px);
    padding-inline: 16px;
    margin-inline: auto;
}
.sz-home-layout { max-width: min(1660px, max(var(--sz-container-width, 1320px), calc(100% - 32px))); }
.sz-home-layout .news-grid,
.sz-home-layout .sz-configurable-news {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}
.sz-home-layout .news-card,
.sz-home-layout .sz-news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
}
.sz-home-layout .news-card__media,
.sz-home-layout .sz-news-card .news-card__media {
    order: 0;
    display: block;
    width: auto;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    margin: 0;
    overflow: hidden;
    border-radius: 0;
}
.sz-home-layout .news-card__media img,
.sz-home-layout .sz-news-card .news-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.sz-home-layout .news-card__body,
.sz-home-layout .sz-news-card .news-card__body {
    order: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}
.sz-home-layout .news-card__title { min-height: 3.1em; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.sz-home-layout .news-card__excerpt { flex: 1; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.sz-home-layout .news-card__more { margin-top: auto; }
.sz-home-layout .sz-news-image-left .news-card__media,
.sz-home-layout .sz-news-image-right .news-card__media,
.sz-home-layout .sz-news-image-bottom .news-card__media { order: 0; grid-column: auto; }
.sz-home-layout > .sz-template-section--attractions_top,
.sz-home-layout > .sz-template-section--attractions_bottom { grid-column: 1 / -1; min-width: 0; }
.sz-attractions { margin: 24px 0 8px; padding: 20px; background: #fff; border: 1px solid var(--border-color); border-radius: 18px; box-shadow: var(--shadow-sm); }
.sz-section-heading { margin-bottom: 16px; }
.sz-section-heading h2 { font-size: clamp(22px, 2vw, 30px); line-height: 1.25; font-weight: 850; }
.sz-attraction-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.sz-attraction-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--border-color); border-radius: 14px; background: #fff; }
.sz-attraction-card > img,
.sz-attraction-card-placeholder { display: flex; width: 100%; aspect-ratio: 16 / 9; min-height: 0; object-fit: cover; align-items: center; justify-content: center; background: linear-gradient(145deg, #edf7f3, #d8eee4); color: var(--sz-green); font-size: 48px; }
.sz-attraction-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 16px; }
.sz-attraction-grid--slider { grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); grid-template-columns: none; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.sz-attraction-grid--slider .sz-attraction-card { scroll-snap-align: start; }
.sz-attraction-card h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.35; }
.sz-attraction-card p { flex: 1; margin: 0 0 10px; color: var(--text-muted); line-height: 1.55; }
.sz-attraction-address { color: #475569; font-size: 13px; margin-bottom: 8px; }
.sz-attraction-address i { color: var(--sz-green); }
.sz-attraction-map,.sz-attraction-more { display: inline-flex; gap: 7px; align-items: center; margin-top: 7px; color: var(--sz-green); font-size: 13px; font-weight: 750; }
.sz-attraction-map:hover,.sz-attraction-more:hover { text-decoration: underline; }
@media (max-width: 1140px) {
    .sz-home-layout > .sz-template-section--hero { grid-column: 1; }
}
@media (max-width: 680px) {
    .sz-home-layout > .sz-template-section--hero .hero { min-height: 0; padding: 32px 0 70px; }
    .sz-home-layout .news-grid,
    .sz-home-layout .sz-configurable-news { grid-template-columns: 1fr; }
    .sz-attractions { padding: 12px; }
    .sz-attraction-grid { grid-template-columns: 1fr; }
    .sz-attraction-grid--slider { grid-auto-columns: 86%; grid-template-columns: none; }
}

@media (max-width: 980px) {
    .nav-toggle {
        display: inline-flex;
    }
    .site-header__nav-bar {
        display: none;
        background: #ffffff;
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
    }
    .site-header__nav-bar.active {
        display: block;
    }
    .menu {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 0;
    }
    .menu > li {
        flex-wrap: wrap;
        justify-content: space-between;
        border-bottom: 1px solid #f3f4f6;
    }
    .menu > li > a {
        color: #1f2937;
        padding: 11px 14px;
    }
    .submenu-toggle {
        color: #374151;
        padding: 10px 14px;
    }
    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--sz-green);
        margin-left: 14px;
        max-width: 100%;
        width: 100%;
        display: none;
    }
    .menu li.submenu-open > .sub-menu {
        display: block;
    }
}

@media (max-width: 680px) {
    .hero-title {
        font-size: 26px;
    }
    .cards-grid-4,
    .news-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .sz-doc-card__row {
        flex-direction: column;
        align-items: flex-start;
    }
    .sz-doc-actions {
        width: 100%;
    }
    .sz-doc-btn {
        flex: 1;
        justify-content: center;
    }
}

/* Управление секциями и адаптивная раскладка страниц */
.sz-managed-layout {
    width: 100%;
    max-width: var(--sz-container-width, 1320px);
    margin: 0 auto;
    padding: 32px 16px 56px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--sz-sidebar-width, 340px);
    align-items: start;
    gap: 28px 32px;
}
.sz-home-layout {
    max-width: var(--sz-container-width, 1320px);
    padding: 0 16px 56px;
    margin-inline: auto;
    gap: 0 32px;
}
.sz-home-layout > .sz-template-section--hero .container,
.sz-home-layout > .sz-template-section--cards .container,
.sz-home-layout > .sz-template-section--resources .container,
.sz-home-layout > .sz-template-section--custom_sections .container {
    max-width: none;
    padding-inline: 0;
}
.sz-template-section { min-width: 0; order: var(--sz-section-order, 0); }
.sz-home-layout > .sz-template-section--hero,
.sz-home-layout > .sz-template-section--cards,
.sz-home-layout > .sz-template-section--resources,
.sz-home-layout > .sz-template-section--custom_sections,
.sz-home-layout > .sz-template-section--custom_buttons,
.sz-page-layout > .sz-template-section--breadcrumbs,
.sz-page-layout > .sz-template-section--custom_sections,
.sz-page-layout > .sz-template-section--custom_buttons,
.sz-page-layout > .sz-template-section--resources { grid-column: 1 / -1; }
.sz-home-layout > .sz-template-section--news,
.sz-page-layout > .sz-template-section--content,
.sz-page-layout > .sz-template-section--listing { grid-column: 1; }
.sz-home-layout > .sz-template-section--sidebar,
.sz-page-layout > .sz-template-section--sidebar { grid-column: 2; }
.sz-home-layout > .sz-template-section--news .main-with-sidebar-section { padding: 32px 0 0; }
.sz-template-section--news .main-content-col,
.sz-template-section--listing .main-content-col { width: 100%; }
.sz-template-section--sidebar .sidebar-col { width: 100%; }
.sz-template-section--resources { margin-top: 8px; }
.sz-custom-section { padding: 0; }
.sz-home-layout > .sz-template-section--sidebar,
.sz-page-layout > .sz-template-section--sidebar { min-width: 0; }
.sz-home-layout .cards-grid-4 { grid-template-columns: repeat(var(--sz-home-card-columns, 4), minmax(0, 1fr)); }
.sz-home-layout .service-card { min-width: 0; height: 100%; }
.sz-home-layout .service-card__body { min-width: 0; }
.sz-a11y-panel[hidden] { display: none !important; }
.sz-block-heading,.sz-sidebar-heading { margin: 0 0 16px; font-size: 24px; font-weight: 800; }
.service-card__icon .service-card__uploaded-icon {
    display: block;
    width: 38px;
    height: 38px;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    object-fit: contain;
    object-position: center;
    background: transparent;
    border: 0;
}
.widget--environment p { color: rgba(255,255,255,.92); margin-bottom: 16px; line-height: 1.55; }
.widget-environment-link { width: 100%; justify-content: center; }
.single-featured-image { margin-bottom: 24px; border-radius: 12px; overflow: hidden; }
.single-featured-image img { display: block; width: 100%; height: auto; }
.sz-modal-dialog h2 { font-size: 21px; font-weight: 800; color: #111827; margin-bottom: 10px; }
.sz-modal-dialog p { margin-bottom: 18px; }
.sz-modal-contact { background: var(--sz-light); border-left: 4px solid var(--sz-green); padding: 14px 16px; border-radius: 8px; margin-bottom: 18px; }
.topbar { position: relative; }
.sz-a11y-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.sz-a11y-close { border: 0 !important; background: transparent !important; font-size: 28px !important; min-height: 34px !important; padding: 0 8px !important; }
.sz-accessibility-panel p { margin: 8px 0 14px; }
.sz-a11y-controls [data-a11y-contrast="light"] { background: #fff; color: #000; }
.sz-a11y-controls [data-a11y-contrast="dark"] { background: #000; color: #fff; }
.sz-a11y-controls [data-a11y-contrast="yellow"] { background: #000; color: #ff0; }
.sz-a11y-selects label { display: flex; flex: 1 1 170px; flex-direction: column; gap: 6px; font-weight: 700; }
.sz-a11y-selects select { width: 100%; }
.sz-a11y-panel-head button:focus-visible,
.sz-accessibility-panel button:focus-visible { outline: 4px solid #c57900; outline-offset: 2px; }
html.a11y { font-size: 20px !important; }
html.a11y .site-header { position: static; }
html.a11y.a11y-contrast-light :where(button,.btn-gold,.btn-white,.btn-outline,.sz-doc-btn,.page-numbers) { background: #fff !important; color: #000 !important; border: 2px solid #000 !important; }
html.a11y.a11y-contrast-dark :where(button,.btn-gold,.btn-white,.btn-outline,.sz-doc-btn,.page-numbers) { background: #000 !important; color: #fff !important; border: 2px solid #fff !important; }
html.a11y.a11y-contrast-yellow :where(button,.btn-gold,.btn-white,.btn-outline,.sz-doc-btn,.page-numbers) { background: #000 !important; color: #ff0 !important; border: 2px solid #ff0 !important; }
html.a11y.a11y-contrast-light :where(.topbar,.topbar-contacts a) { background: #fff !important; color: #000 !important; }
html.a11y :where(.service-card__title,.service-card__text,.news-card__more,.breadcrumbs,.site-brand__title,.site-brand__sub,.head-card__role,.head-card__name,.footer-links a,.footer-contacts a,.widget-contact-item) { font-size: calc(1rem * var(--sz-a11y-scale)) !important; line-height: 1.65 !important; }
html.a11y.a11y-line-100 :where(h1,h2,h3,h4,p,li,a,button,input,select,textarea,label,td,th,.entry-content,.widget-contact-item) { line-height: 1.5 !important; }
html.a11y.a11y-line-150 :where(h1,h2,h3,h4,p,li,a,button,input,select,textarea,label,td,th,.entry-content,.widget-contact-item) { line-height: 1.8 !important; }
html.a11y.a11y-line-200 :where(h1,h2,h3,h4,p,li,a,button,input,select,textarea,label,td,th,.entry-content,.widget-contact-item) { line-height: 2.2 !important; }
html.a11y.a11y-letter-5 :where(h1,h2,h3,h4,p,li,a,button,input,select,textarea,label,td,th,.entry-content,.widget-contact-item) { letter-spacing: .05em !important; }
html.a11y.a11y-letter-10 :where(h1,h2,h3,h4,p,li,a,button,input,select,textarea,label,td,th,.entry-content,.widget-contact-item) { letter-spacing: .1em !important; }
@media (max-width: 1140px) {
    .sz-managed-layout { grid-template-columns: minmax(0, 1fr); }
    .sz-home-layout > .sz-template-section--news,
    .sz-home-layout > .sz-template-section--sidebar,
    .sz-page-layout > .sz-template-section--content,
    .sz-page-layout > .sz-template-section--listing,
    .sz-page-layout > .sz-template-section--sidebar { grid-column: 1; }
}

/* Final overrides for the approved homepage layout. */
.sz-home-layout { max-width: min(1660px, max(var(--sz-container-width, 1320px), calc(100% - 32px))); }
.sz-home-layout > .sz-template-section--hero { grid-column: 1 / -1; width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); overflow: visible; }
.sz-home-layout > .sz-template-section--hero .hero { width: 100%; min-height: 430px; padding: 46px 0 92px; border-radius: 0; overflow: hidden; }
.sz-home-layout > .sz-template-section--hero .hero-inner { width: 100%; max-width: var(--sz-container-width, 1320px); padding-inline: 16px; margin-inline: auto; }
.sz-home-layout .news-grid,.sz-home-layout .sz-configurable-news { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: stretch; gap: 18px; }
.sz-home-layout .sz-configurable-news.sz-news-columns-1 { grid-template-columns: 1fr; }
.sz-home-layout .sz-configurable-news.sz-news-columns-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.sz-home-layout .sz-configurable-news.sz-news-columns-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.sz-home-layout .news-card,.sz-home-layout .sz-news-card { display: flex; flex-direction: column; min-width: 0; height: 100%; overflow: hidden; border-radius: var(--sz-news-radius,14px); }
.sz-home-layout .news-card__media,.sz-home-layout .sz-news-card .news-card__media { order: 0; display: block; width: auto; min-width: 0; height: auto; min-height: 0; aspect-ratio: 16/9; margin: 0; overflow: hidden; border-radius: 0; }
.sz-home-layout .news-card__media img,.sz-home-layout .sz-news-card .news-card__media img { display: block; width: 100%; height: 100%; aspect-ratio: 16/9; object-fit: cover; }
.sz-home-layout .news-card__body,.sz-home-layout .sz-news-card .news-card__body { order: 1; display: flex; flex: 1; flex-direction: column; min-width: 0; }
.sz-home-layout .news-card__title { min-height: 2.7em; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.sz-home-layout .news-card__excerpt { flex: 1; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.sz-home-layout .news-card__more { margin-top: auto; }
.sz-home-layout .sz-news-image-left,.sz-home-layout .sz-news-image-right { display: grid; grid-template-columns: minmax(110px,40%) minmax(0,1fr); }
.sz-home-layout .sz-news-image-left .news-card__media,.sz-home-layout .sz-news-image-right .news-card__media { height: 100%; aspect-ratio: auto; }
.sz-home-layout .sz-news-image-right .news-card__media { order: 2; }
.sz-home-layout .sz-news-image-bottom .news-card__media { order: 2; }
.sz-home-layout .sz-news-image-bottom .news-card__body { order: 1; }
.sz-home-layout .sz-news-card[hidden] { display: none !important; }

.sz-home-layout > .sz-template-section--attractions_top,.sz-home-layout > .sz-template-section--attractions_bottom { grid-column: 1 / -1; min-width: 0; }
.sz-attractions { margin: 24px 0 8px; padding: 20px; background: #fff; border: 1px solid var(--border-color); border-radius: 18px; box-shadow: var(--shadow-sm); overflow: hidden; }
.sz-section-heading { margin-bottom: 16px; }
.sz-section-heading h2 { margin: 0; font-size: clamp(22px,2vw,30px); line-height: 1.25; font-weight: 850; }
.sz-attraction-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; align-items: stretch; }
.sz-attraction-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--border-color); border-radius: 14px; background: #fff; }
.sz-attraction-card > img,.sz-attraction-card-placeholder { display: flex; width: 100%; aspect-ratio: 16/9; min-height: 0; object-fit: cover; align-items: center; justify-content: center; background: linear-gradient(145deg,#edf7f3,#d8eee4); color: var(--sz-green); font-size: 48px; }
.sz-attraction-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 16px; }
.sz-attraction-card h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.35; }
.sz-attraction-card p { flex: 1; margin: 0 0 10px; color: var(--text-muted); line-height: 1.55; }
.sz-attraction-address { margin-bottom: 8px; color: #475569; font-size: 13px; }
.sz-attraction-address i { color: var(--sz-green); }
.sz-attraction-map,.sz-attraction-more { display: inline-flex; align-items: center; gap: 7px; margin-top: 7px; color: var(--sz-green); font-size: 13px; font-weight: 750; }
.sz-attraction-map:hover,.sz-attraction-more:hover { text-decoration: underline; }


.sz-attraction-slide { display: none; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); min-height: 320px; border: 1px solid var(--border-color); border-radius: 15px; overflow: hidden; background: #f8fafc; }
.sz-attraction-slide.is-active { display: grid; }
.sz-attraction-media,.sz-attraction-media img { display: block; width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.sz-attraction-placeholder { display: flex; align-items: center; justify-content: center; min-height: 320px; color: var(--sz-green); font-size: 60px; }
.sz-attraction-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; padding: clamp(20px,3vw,42px); }
.sz-attraction-copy h3 { margin: 0; font-size: 23px; }
.sz-attraction-copy p { line-height: 1.6; }
.sz-attraction-slider { position: relative; }
.sz-attraction-arrow { position: absolute; z-index: 2; top: 50%; width: 42px; height: 42px; border: 1px solid #d1d5db; border-radius: 50%; background: #fff; color: #111827; font-size: 28px; cursor: pointer; transform: translateY(-50%); }
.sz-attraction-arrow[data-direction="prev"] { left: 12px; }
.sz-attraction-arrow[data-direction="next"] { right: 12px; }
.sz-attraction-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.sz-attraction-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #aeb8c7; cursor: pointer; }
.sz-attraction-dots button.is-active { width: 24px; border-radius: 6px; background: var(--sz-green); }

.sz-modern-sidebar { display: flex; flex-direction: column; gap: 16px; }
.sz-feature-block { overflow: hidden; padding: 20px; border: 1px solid var(--border-color); border-top: 3px solid var(--sz-green); border-radius: 15px; background: #fff; color: #111827; box-shadow: var(--shadow-sm); }
.sz-feature-block--green { border-color: transparent; border-top-color: var(--sz-gold); background: linear-gradient(145deg,var(--sz-green),var(--sz-dark)); color: #fff; }
.sz-feature-block--gold { border-color: #e3c55b; background: linear-gradient(145deg,#fff7d7,#f5df83); color: #3f3100; }
.sz-feature-block h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; font-size: 20px; line-height: 1.25; color: inherit; }
.sz-feature-block h2 i { color: var(--sz-green); }
.sz-feature-block--green h2 i { color: #fff; }
.sz-feature-block p { margin: 12px 0 16px; color: inherit; line-height: 1.55; }
.sz-feature-image { margin-bottom: 14px; border-radius: 11px; overflow: hidden; }
.sz-feature-image img { display: block; width: 100%; max-height: 230px; object-fit: cover; }
.sz-feature-news,.sz-feature-links { display: flex; flex-direction: column; list-style: none; }
.sz-feature-news li { padding: 10px 0; border-bottom: 1px solid #e5e7eb; }
.sz-feature-news time { display: block; margin-bottom: 3px; color: #6b7280; font-size: 11px; }
.sz-feature-news a { color: inherit; font-size: 13px; font-weight: 750; line-height: 1.4; }
.sz-feature-links a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid currentColor; color: inherit; font-weight: 700; }
.sz-feature-button { display: flex; width: 100%; justify-content: center; margin-top: 14px; }

@media (max-width: 1140px) {
    .sz-home-layout > .sz-template-section--hero { grid-column: 1; }
    .sz-attraction-slide { grid-template-columns: 1fr; }
    .sz-attraction-media,.sz-attraction-media img { min-height: 260px; }
}
@media (max-width: 680px) {
    .sz-home-layout > .sz-template-section--hero .hero { min-height: 0; padding: 32px 0 70px; }
    .sz-home-layout .news-grid,.sz-home-layout .sz-configurable-news { grid-template-columns: 1fr; }
    .sz-home-layout .sz-news-image-left,.sz-home-layout .sz-news-image-right { display: flex; flex-direction: column; }
    .sz-home-layout .sz-news-image-left .news-card__media,.sz-home-layout .sz-news-image-right .news-card__media { height: auto; aspect-ratio: 16/9; }
    .sz-attractions { padding: 12px; }
    .sz-attraction-grid { grid-template-columns: 1fr; }
}

/* Настраиваемая волна, число карточек и типографика достопримечательностей. */
.hero-wave-wrap.hero-wave--straight .hero-wave-svg { height: 2px; }
.sz-attractions { font-family: var(--sz-attraction-font, inherit); }
.sz-section-heading h2 { font-size: var(--sz-attraction-title-size, clamp(22px, 2vw, 30px)); text-align: var(--sz-attraction-alignment, left); }
.sz-attraction-grid { grid-template-columns: repeat(var(--sz-attraction-columns, 3), minmax(0, 1fr)); }
.sz-attraction-grid--slider { grid-auto-columns: var(--sz-attraction-slider-column, calc((100% - 32px) / 3)); }
.sz-attraction-card h3,.sz-attraction-copy h3 { font-size: var(--sz-attraction-title-size, 23px); color: var(--sz-attraction-text-color, #334155); text-align: var(--sz-attraction-alignment, left); }
.sz-attraction-card p,.sz-attraction-copy p { font-size: var(--sz-attraction-text-size, 15px); color: var(--sz-attraction-text-color, #334155); text-align: var(--sz-attraction-alignment, left); }
.sz-attraction-copy { align-items: var(--sz-attraction-copy-align, flex-start); }
.sz-attractions[style*="--sz-attraction-alignment:center"] .sz-attraction-copy { --sz-attraction-copy-align: center; }
.sz-attractions[style*="--sz-attraction-alignment:center"] .sz-attraction-card__body { align-items: center; }
.sz-attractions[style*="--sz-attraction-alignment:center"] .sz-attraction-card__body > :where(.sz-attraction-address,.sz-attraction-map,.sz-attraction-more) { align-self: center; }
.cards-overlap .cards-grid-4 { grid-template-columns: repeat(var(--sz-home-card-columns, 4), minmax(0, 1fr)); }
@media (max-width: 1140px) {
    .cards-overlap .cards-grid-4,.sz-home-layout .cards-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sz-attraction-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sz-attraction-grid--slider { grid-auto-columns: calc((100% - 16px) / 2); }
}
@media (max-width: 680px) {
    .cards-overlap .cards-grid-4,.sz-home-layout .cards-grid-4,.sz-attraction-grid { grid-template-columns: 1fr; }
    .sz-attraction-grid--slider { grid-auto-columns: 86%; }
}

.sz-latest-news {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid currentColor;
}
.sz-latest-news ul { padding-inline-start: 1.4em; }
.sz-latest-news li + li { margin-top: .65em; }
.sz-latest-news a { text-decoration: underline; }
html:has(.sz-news-popup[open]) { overflow: hidden; }
.sz-news-popup {
    width: min(54rem, calc(100% - 2rem));
    max-height: 90vh;
    max-height: 90dvh;
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: #fff;
    color: #172033;
    overflow: auto;
}
.sz-news-popup::backdrop { background: rgb(16 24 39 / 65%); }
.sz-news-popup__bar {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    padding: .6em 1em;
    background: #edf7f3;
    color: #004b2c;
}
.sz-news-popup__permalink { text-decoration: underline; }
.sz-news-popup__close {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid currentColor;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}
.sz-news-popup__content { padding: clamp(.7rem, 2vw, 1.5rem); }
.sz-news-popup .single-card { margin: 0; box-shadow: none; }
html.a11y-contrast-dark .sz-news-popup,
html.a11y-contrast-dark .sz-news-popup__bar { background: #000; color: #fff; }
html.a11y-contrast-yellow .sz-news-popup,
html.a11y-contrast-yellow .sz-news-popup__bar { background: #000; color: #ff0; }
@media (max-width: 640px) {
    .sz-news-popup { width: calc(100% - 1rem); max-height: 96dvh; }
}

.sz-latest-news ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
}
.sz-latest-news li + li { margin: 0; }
.sz-latest-news a {
    display: grid;
    gap: .55rem;
    color: inherit;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.sz-latest-news a:hover strong,
.sz-latest-news a:focus-visible strong { text-decoration: underline; }
.sz-latest-news__image {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 10px;
    background: #eef3f1;
    color: #005b36;
}
.sz-latest-news__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sz-latest-news time { font-size: .875em; }
@media (max-width: 580px) {
    .sz-latest-news ul { grid-template-columns: minmax(0, 1fr); }
}

/* Keep the mobile page within the viewport without disabling pinch zoom. */
@media (max-width: 980px) {
    html, body {
        overflow-x: clip;
    }
    body {
        overflow-wrap: anywhere;
    }
    .site-header__top {
        flex-wrap: wrap;
        gap: 10px 14px;
        padding-block: 10px;
    }
    .site-brand {
        flex: 1 1 12rem;
        min-width: 0;
        max-width: 100%;
    }
    .site-brand__text {
        min-width: 0;
    }
    .site-brand .site-logo-img {
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
    }
    .header-actions {
        flex: 0 1 auto;
        flex-wrap: wrap;
        min-width: 0;
        max-width: 100%;
        gap: 8px;
    }
    .header-actions .btn-gold,
    .header-actions .sz-custom-button,
    .menu > li > a {
        min-width: 0;
        max-width: 100%;
        white-space: normal;
    }
    .sub-menu {
        width: calc(100% - 14px);
    }
    .sz-home-layout > .sz-template-section--hero {
        width: auto;
        max-width: none;
        margin-inline: -16px;
    }
    .hero-row,
    .hero-row.head-position-left,
    .hero-row.head-position-right,
    .hero-row.head-position-center {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero-row > *,
    .head-card {
        min-width: 0;
        max-width: 100%;
    }
    .entry-content :where(img, video, iframe, embed, object) {
        max-width: 100%;
    }
    .entry-content :where(.wp-block-table, pre, table),
    .sz-news-popup__content :where(.wp-block-table, pre, table) {
        max-width: 100%;
        overflow-x: auto;
    }
    .entry-content table {
        display: block;
    }
    .sz-doc-actions {
        flex-wrap: wrap;
        max-width: 100%;
    }
    .sz-doc-btn {
        white-space: normal;
        text-align: center;
    }
}

.sz-attractions--smaller-photos .sz-attraction-card > img,
.sz-attractions--smaller-photos .sz-attraction-media > img {
    display: block;
    width: var(--sz-attraction-photo-width);
    max-width: 100%;
    height: auto;
    min-height: 0;
    margin-inline: auto;
    object-fit: contain;
}
.sz-attractions--smaller-photos .sz-attraction-media:has(> img) {
    display: grid;
    place-items: center;
    min-height: 0;
}

.sz-combined-card { margin-block: 2rem; }
.sz-combined-card__section + .sz-combined-card__section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}
.sz-smart-registry [hidden] { display: none !important; }
.sz-doc-copy {
    position: relative;
    min-width: 38px;
    min-height: 38px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--sz-light);
    color: var(--sz-dark);
    cursor: pointer;
}
.sz-doc-copy[data-copied]::after {
    content: 'Ссылка скопирована';
    position: absolute;
    right: 0;
    bottom: calc(100% + 5px);
    z-index: 5;
    width: max-content;
    padding: 5px 8px;
    border-radius: 6px;
    background: #004b2c;
    color: #fff;
}
.sz-doc-target { outline: 3px solid var(--sz-gold); outline-offset: -3px; }
.sz-subfile-item { flex-wrap: wrap; }
.sz-subfile-name { flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; }

.sz-attraction-stage { min-width: 0; }
.sz-attractions--smaller-photos .sz-attraction-slider { padding-inline: 58px; }
.sz-attractions--smaller-photos .sz-attraction-slide {
    grid-template-columns: minmax(0, var(--sz-attraction-photo-width)) minmax(0, 1fr);
    grid-template-columns: minmax(0, min(55%, calc(var(--sz-attraction-photo-width) * .6))) minmax(0, 1fr);
    align-items: center;
    min-height: 0;
}
.sz-attractions--smaller-photos .sz-attraction-media { height: auto; min-height: 0; }
.sz-attractions--smaller-photos .sz-attraction-media > img { width: 100%; }
.sz-attractions--smaller-photos .sz-attraction-copy {
    min-width: 0;
    padding: 16px;
    overflow-wrap: anywhere;
}
.sz-attraction-stage:has(.sz-attraction-thumbs) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(65px, 10vw, 113px);
    gap: 12px;
}
.sz-attraction-thumbs { position: relative; min-width: 0; }
.sz-attraction-thumbs__list {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    overflow: auto;
    padding: 3px;
}
.sz-attraction-thumbs__list button {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 2px solid transparent;
    border-radius: 8px;
    background: var(--sz-light);
    color: var(--sz-dark);
    overflow: hidden;
    cursor: pointer;
}
.sz-attraction-thumbs__list button.is-active { border-color: var(--sz-green); box-shadow: 0 0 0 1px var(--sz-green); }
.sz-attraction-thumbs__list img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sz-attraction-thumbs__more {
    position: absolute;
    bottom: 4px;
    right: 6px;
    min-width: 36px;
    min-height: 30px;
    border: 1px solid #005b36;
    border-radius: 8px;
    background: rgb(255 255 255 / 84%);
    color: #004b2c;
    font-size: 20px;
    cursor: pointer;
}
@media (max-width: 720px) {
    .sz-attractions--smaller-photos .sz-attraction-slider {
        padding-inline: 0;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "stage stage stage" "prev dots next";
        align-items: center;
        gap: 8px;
    }
    .sz-attractions--smaller-photos .sz-attraction-stage { grid-area: stage; }
    .sz-attractions--smaller-photos .sz-attraction-dots { grid-area: dots; flex-wrap: wrap; margin: 0; }
    .sz-attractions--smaller-photos .sz-attraction-arrow {
        position: static;
        transform: none;
    }
    .sz-attractions--smaller-photos .sz-attraction-arrow[data-direction="prev"] { grid-area: prev; }
    .sz-attractions--smaller-photos .sz-attraction-arrow[data-direction="next"] { grid-area: next; }
    .sz-attractions--smaller-photos .sz-attraction-slide,
    .sz-attraction-stage:has(.sz-attraction-thumbs) { grid-template-columns: minmax(0, 1fr); }
    .sz-attractions--smaller-photos .sz-attraction-media > img { width: var(--sz-attraction-photo-width); }
    .sz-attraction-thumbs { padding-inline-end: 40px; }
    .sz-attraction-thumbs__list { position: static; flex-direction: row; }
    .sz-attraction-thumbs__list button { width: 70px; }
    .sz-attraction-thumbs__more { right: 0; bottom: 50%; transform: translateY(50%); }
}

.sz-head-mail { max-width: 780px; padding-block: 2rem; }
.sz-head-mail form { display: grid; gap: 1rem; margin-top: 1rem; }
.sz-head-mail label { display: grid; gap: .35rem; }
.sz-head-mail input:not([type="checkbox"]), .sz-head-mail textarea {
    width: 100%;
    min-width: 0;
    padding: .65rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font: inherit;
}
.sz-head-mail fieldset { min-width: 0; padding: .8rem; border: 1px solid var(--border-color); }
.sz-head-mail .sz-head-mail__consent { display: flex; gap: .5rem; align-items: center; margin-top: .5rem; }
.sz-head-mail a { text-decoration: underline; }
.sz-head-mail .btn-gold { justify-self: start; }
.sz-head-mail__notice { padding: .75rem; margin-block: .75rem; border-inline-start: 4px solid var(--sz-green); }
.sz-head-mail [hidden] { display: none !important; }
.sz-head-mail-dialog {
    width: min(48rem, calc(100% - 1.5rem));
    max-height: 92dvh;
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 14px;
    overflow: auto;
    background: #fff;
    color: var(--text-main);
}
.sz-head-mail-dialog::backdrop { background: rgb(16 24 39 / 65%); }
.sz-head-mail-dialog .sz-head-mail { margin: 0; padding: 1.1rem; min-width: 0; }
.sz-head-mail__close {
    display: block;
    margin-inline-start: auto;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    background: var(--sz-light);
    color: var(--sz-dark);
    font-size: 1.5rem;
    cursor: pointer;
}
.sz-head-mail__form [type=submit]:disabled { opacity: .65; cursor: wait; }
html:has(.sz-head-mail-dialog[open]) { overflow: hidden; }

.sz-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}
.sz-social .sz-social__link {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: var(--sz-social-size, 42px);
    height: var(--sz-social-size, 42px);
    border: 1px solid #bcd5c8;
    border-radius: 25%;
    background: #f0f8f3;
    color: var(--sz-social-color, #006443);
    text-decoration: none;
}
.sz-social .sz-social__link:hover { background: #e0f1e7; }
.sz-social .sz-social__link:focus-visible { outline: 3px solid #c57900; outline-offset: 2px; }
.sz-social__glyph, .sz-social__link > img {
    display: block;
    width: 64%;
    height: 64%;
    object-fit: contain;
}
.sz-social__glyph {
    background: currentColor;
    -webkit-mask: var(--sz-social-glyph) center / contain no-repeat;
    mask: var(--sz-social-glyph) center / contain no-repeat;
}
.sz-social__link > i { font-size: calc(var(--sz-social-size, 42px) * .46); }
.sz-social--head { justify-content: center; margin-top: .7rem; }
.sz-social--custom { margin-block: .75rem; }
.site-header__top:has(.sz-social--header) { flex-wrap: wrap; }
.header-actions:has(.sz-social--header) { min-width: 0; max-width: 100%; flex-wrap: wrap; }
html.a11y.a11y-contrast-dark .sz-social .sz-social__link,
html.a11y.a11y-contrast-yellow .sz-social .sz-social__link {
    background: #000;
    border-color: currentColor;
}
@media (forced-colors: active) {
    .sz-social__glyph { forced-color-adjust: none; background: LinkText; }
}

.news-card--open { cursor: pointer; }
.news-card--open:hover .news-card__title,
.news-card--open:focus-visible .news-card__title { color: var(--sz-green); }
.news-card--open:focus-visible {
    outline: 3px solid var(--sz-green);
    outline-offset: 2px;
}
.sz-news-popup__close {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
}
.sz-news-popup__close > span {
    position: relative;
    width: 28px;
    height: 28px;
}
.sz-news-popup__close > span::before,
.sz-news-popup__close > span::after {
    content: "";
    position: absolute;
    top: calc(50% - 1.5px);
    inset-inline: 0;
    height: 3px;
    border-radius: 3px;
    background: currentColor;
    transform: rotate(45deg);
}
.sz-news-popup__close > span::after { transform: rotate(-45deg); }
.sz-latest-news__heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.sz-latest-news__controls { display: flex; gap: .5rem; }
.sz-latest-news__controls button {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--sz-light);
    color: var(--sz-dark);
    font-size: 1.45rem;
    cursor: pointer;
}
.sz-latest-news ul {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 2rem) / 3);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    padding-block: .5rem;
}
.sz-latest-news li { min-width: 0; scroll-snap-align: start; }
@media (max-width: 760px) {
    .sz-latest-news ul { grid-auto-columns: calc((100% - 1rem) / 2); }
}
@media (max-width: 520px) {
    .sz-latest-news ul { grid-auto-columns: 84%; }
    .sz-news-popup__close { width: 52px; height: 52px; }
    .sz-news-popup__close > span { width: 32px; height: 32px; }
}

/* Contain horizontal page overscroll. Scrollable strips keep their own gestures. */
@media (any-pointer: coarse), (max-width: 980px) {
    html {
        overflow-x: hidden;
        overscroll-behavior-x: none;
    }
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }
    html:not(.sz-viewport-zoomed) {
        touch-action: pan-y pinch-zoom;
    }
    :where(.sz-resource-track, .sz-attraction-thumbs__list, .sz-latest-news ul, .entry-content .wp-block-table, .entry-content table) {
        overscroll-behavior-x: contain;
    }
}

/* v5.7.7: reliable mobile submenus and document actions. */
@media (max-width: 980px) {
    .menu li.menu-item-has-children {
        position: relative;
    }
    .menu > li.menu-item-has-children > a {
        flex: 1 1 auto;
        padding-right: 6px;
    }
    .menu li.menu-item-has-children > .submenu-toggle {
        display: inline-grid;
        place-items: center;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        margin: 0 6px 0 auto;
        padding: 0;
        border: 1px solid var(--border-color);
        border-radius: 9px;
        background: var(--sz-light);
        color: var(--sz-dark);
        font-size: 13px;
    }
    .menu li.menu-item-has-children.submenu-open > .submenu-toggle i {
        transform: rotate(180deg);
    }
    .menu li.menu-item-has-children > .submenu-toggle i {
        transition: transform .18s ease;
    }
    .sub-menu li.menu-item-has-children > a {
        padding-right: 58px;
    }
    .sub-menu li.menu-item-has-children > .submenu-toggle {
        position: absolute;
        top: 3px;
        right: 0;
    }
}

@media (max-width: 680px) {
    .sz-subfile-item {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        padding: 12px;
    }
    .sz-subfile-name {
        grid-column: 1 / -1;
        width: 100%;
        overflow-wrap: break-word;
        word-break: normal;
    }
    .sz-subfile-item > .sz-doc-btn--download {
        grid-column: 1;
        width: 100%;
        min-width: 0;
        min-height: 44px;
        flex: none;
        justify-content: center;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
        line-height: 1.25;
        text-align: center;
    }
    .sz-subfile-item > .sz-doc-copy {
        grid-column: 2;
        width: 44px;
        min-width: 44px;
        min-height: 44px;
    }
}
