/* Responsive additions for the PHP rebuild. Original Joomla files remain untouched. */
* { box-sizing: border-box; }
.site-header { padding-top: 12px; padding-bottom: 12px; }
.site-header .header-img { display: block; text-align: center; }
.site-header img { max-width: 100%; height: auto; }
.info-line { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 8px 15px; color: #fff; background: #0e8bff; }
.site-search { display: flex; width: min(100%, 360px); gap: 6px; margin: 0; }
.site-search input { min-width: 0; flex: 1; height: 34px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.7); border-radius: 4px; color: #333; background: #fff; }
.site-search button { min-height: 34px; padding: 6px 12px; border: 1px solid #075ca8; border-radius: 4px; color: #fff; background: #075ca8; }
.site-search button:hover, .site-search button:focus-visible { background: #064b87; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.search-results li { margin: 8px 0; }
.content-area { padding-top: 22px; padding-bottom: 30px; }
.home-slider { padding: 15px; background: #ffedc2; }
.slider { position: relative; overflow: hidden; background: #1c2933; }
.slider-track { position: relative; aspect-ratio: 16 / 6; min-height: 150px; max-height: 440px; }
.slider-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .55s ease; }
.slider-slide.is-active { z-index: 1; opacity: 1; visibility: visible; }
.slider-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.slider-arrow { position: absolute; z-index: 2; top: 50%; width: 42px; height: 52px; transform: translateY(-50%); border: 0; border-radius: 4px; color: #fff; background: rgba(0, 0, 0, .45); font-size: 22px; cursor: pointer; }
.slider-arrow:hover, .slider-arrow:focus-visible { background: rgba(0, 0, 0, .75); }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
.slider-dots { position: absolute; z-index: 2; right: 0; bottom: 12px; left: 0; display: flex; justify-content: center; gap: 9px; }
.slider-dot { width: 12px; height: 12px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: rgba(0, 0, 0, .35); cursor: pointer; }
.slider-dot.is-active { background: #fff; }
.main-content { min-width: 0; }
.contentbox { padding: 10px 20px 25px; background: #fff; line-height: 1.75; overflow-wrap: anywhere; }
.contentbox h1 { margin: 8px 0 22px; color: #df6e17; font-size: 27px; }
.contentbox h2 { color: #333; font-size: 21px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(180px, 1fr); gap: 22px; align-items: start; }
.contact-grid img { display: block; max-width: 100%; height: auto; border-radius: 6px; }
.menu-toggle { display: none; }
.sidebar-module-title { margin: 0 0 15px; padding: 5px 5px 8px 32px; border-radius: 6px; color: #fff; background: #e85534 url("../images/moduletable.png") no-repeat 7px center / 18px auto; font-size: 22px; font-weight: 300; line-height: 1.35; }
.weather-card h2.sidebar-module-title { margin-top: 0; }
.weather-widget { overflow: hidden; border: 1px solid #f0f0f0; background: #f2f2f2; font-family: Verdana, Arial, sans-serif; }
.weather-widget-title { display: block; min-height: 30px; padding: 7px 8px; color: #666; background: #f0f0f0; text-align: center; text-decoration: none; font-size: 12px; font-weight: 700; }
.weather-widget iframe { display: block; width: 100%; max-width: 100%; border: 0; }
.footer-message { margin-top: 22px; margin-bottom: 20px; padding: 0; background: url("../images/poslanie.jpg") center / cover no-repeat; }
.footer-message-overlay { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 40px 16px; background: rgba(0,0,0,.4); }
.footer-message-overlay a { display: inline-block; padding: 8px 20px; border: 1px solid #fff; border-radius: 6px; color: #fff; font-size: 18px; text-decoration: none; transition: background-color .2s, color .2s; }
.footer-message-overlay a:hover, .footer-message-overlay a:focus-visible { color: #0090cf; background: #fff; }
.footer-partners { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; padding-top: 16px; padding-bottom: 18px; border-top: 1px solid #ddd; }
.footer-partners a { display: inline-flex; justify-content: center; align-items: center; max-width: 150px; }
.footer-partners img { display: block; max-width: 100%; max-height: 105px; width: auto; height: auto; object-fit: contain; }
.site-footer { margin-top: 0; padding: 22px 20px; color: #fff; background: #0e8bff; border-top: 5px solid #d4d4d4; }
.site-footer p { margin: 0 0 10px; }
.site-footer p:last-child { margin-bottom: 0; }
.site-footer a { color: #fff; }
.footer-copyright { font-weight: 600; }
.footer-credit { min-height: 50px; padding-left: 58px; position: relative; }
.footer-credit img { position: absolute; left: 0; top: 0; width: 50px; height: auto; padding: 3px; border-radius: 4px; background: #c1e5f6; }
.skip-link { position: absolute; left: -10000px; top: auto; }
.skip-link:focus { left: 10px; top: 10px; z-index: 1000; padding: 10px; background: #fff; }
@media (max-width: 767px) {
    .info-line { flex-wrap: wrap; font-size: 14px; }
    .site-search { width: 100%; }
    .footer-message-overlay { padding: 28px 12px; }
    .footer-message-overlay a { width: 100%; text-align: center; font-size: 16px; }
    .footer-partners { gap: 12px; }
    .footer-partners a { max-width: 42%; }
    .content-area { padding-top: 12px; }
    .home-slider { padding: 8px; }
    .slider-track { aspect-ratio: 4 / 3; min-height: 150px; }
    .slider-arrow { width: 36px; height: 44px; }
    .menu-toggle { display: block; width: 100%; padding: 10px 14px; border: 0; border-radius: 4px; color: #fff; background: #0e8bff; text-align: left; font-size: 17px; }
    #site-menu { display: none; margin-top: 8px; }
    #site-menu.is-open { display: block; }
    .contentbox { padding: 10px 5px 22px; }
    .contentbox h1 { font-size: 23px; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-grid img { max-width: 420px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
    .slider-slide { transition-duration: .55s !important; }
}