/* osvita.city additions (kept apart from os.css, which the map of schools owns) */
/* contacts in the side menu: one line per phone, even spacing */
.aside-newsletter .os-contacts p { margin: 0 0 10px; }
.aside-newsletter .os-contacts p:first-child, .aside-newsletter .os-contacts p:has(b) { margin-top: 18px; }
.aside-newsletter .os-contacts p:first-child { margin-top: 0; }
/* «Увійти» / «Створити» are links here, not buttons */
.header .td-login a.login, .header .td-add a.add-event-btn { text-decoration: none; }
/* account pages (/login, /add, /account) */
.os-form { max-width: 560px; }
.os-form .form-group { margin-bottom: 18px; }
.os-form label { display: block; margin-bottom: 6px; font-weight: 600; }
.os-form .error { color: #9b1e3e; margin: 6px 0 0; }
.os-form .notice { padding: 14px 18px; background: #f0f8ff; border-left: 4px solid #6aace0; margin-bottom: 20px; }
.os-tabs { display: flex; gap: 24px; margin-bottom: 24px; border-bottom: 1px solid #c3def3; }
.os-tabs a { padding: 10px 0; color: #06293e; text-transform: uppercase; font-weight: 700; border-bottom: 3px solid transparent; }
.os-tabs a.active { border-color: #9b1e3e; }
.os-my-places { list-style: none; padding: 0; }
.os-my-places li { padding: 16px 0; border-bottom: 1px solid #c3def3; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.os-status { font-size: .85em; text-transform: uppercase; color: #6aace0; }
.os-status.pending { color: #b8860b; } .os-status.rejected { color: #9b1e3e; } .os-status.published { color: #2e7d32; }

/* 09.11.2026: icons in the «Поділитися» circles. The old site took them from a font (/assets/d0fb5a9e/css/style.min.css) that was not copied; drawn with SVG masks in the link colour */
.social-share li a { display: flex; align-items: center; justify-content: center; }
.social-share .si { display: block; width: 45%; height: 45%; min-width: 18px; min-height: 18px; background-color: currentColor; -webkit-mask: var(--si) center / contain no-repeat; mask: var(--si) center / contain no-repeat; }
.si-facebook { --si: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.5 22v-8h2.7l.4-3.2h-3.1V8.8c0-.9.3-1.5 1.6-1.5h1.7V4.4c-.3 0-1.3-.1-2.4-.1-2.4 0-4 1.5-4 4.1v2.4H7.6V14h2.8v8z'/%3E%3C/svg%3E"); }
.si-telegram { --si: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.5 3.6 2.9 10.8c-1.3.5-1.3 1.2-.2 1.6l4.8 1.5 1.8 5.6c.2.6.4.8.9.8.4 0 .6-.2.9-.4l2.3-2.2 4.7 3.5c.9.5 1.5.2 1.7-.8l3.1-14.6c.3-1.3-.5-1.9-1.4-1.5zM9.4 14.3l9.2-5.8c.4-.3.8-.1.5.2l-7.6 6.9-.3 3.2z'/%3E%3C/svg%3E"); }
.si-whatsapp { --si: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18.2c-1.5 0-3-.4-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.2-.4.2-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2c0 1.3.9 2.5 1 2.7.1.2 1.8 2.8 4.5 3.9 1.7.7 2.3.8 3.2.6.5-.1 1.5-.6 1.7-1.2.2-.6.2-1.1.2-1.2-.1-.1-.3-.2-.5-.3z'/%3E%3C/svg%3E"); }
.si-twitter { --si: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23 5.1c-.8.4-1.7.6-2.6.7.9-.6 1.6-1.4 2-2.5-.9.5-1.9.9-2.9 1.1a4.5 4.5 0 0 0-7.7 4.1A12.8 12.8 0 0 1 2.5 3.8a4.5 4.5 0 0 0 1.4 6c-.7 0-1.4-.2-2-.6 0 2.2 1.5 4 3.6 4.4-.7.2-1.4.2-2 .1.6 1.8 2.2 3.1 4.2 3.1A9 9 0 0 1 1 18.7a12.8 12.8 0 0 0 6.9 2c8.3 0 12.8-6.9 12.8-12.8v-.6c.9-.6 1.6-1.4 2.3-2.2z'/%3E%3C/svg%3E"); }
.si-gmail { --si: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18a1 1 0 0 1 1 1v.4l-10 6.3L2 6.4V6a1 1 0 0 1 1-1zm-1 3.7 10 6.2 10-6.2V18a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); }

/* 09.11.2026: place cards (list and «Поруч з …»): the name was cut in the middle of the second line; now up to 3 full lines */
.places-list-nearby .caption .h3, .places-list .caption .h3 { height: auto; max-height: none; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; margin-bottom: 8px; }

/* 09.11.2026: map on a school page — on the right on a computer (old CSS, fixed); on a phone under the list, not over the photo */
@media (max-width: 991px) {
  .location-page > #map-container { position: relative; top: auto; right: auto; bottom: auto; left: auto; width: 100%; height: 360px; display: block; clear: both; margin: 24px 0 0; transform: none; }
}

/* 09.11.2026: on a phone the section tiles go in a column, not a sideways scroll where only the first one shows */
@media (max-width: 768px) {
  .static-page .structure { white-space: normal; overflow: visible; margin: 0; }
  .static-page .structure li { display: flow-root; width: 100%; white-space: normal; clear: both; margin-bottom: 10px; }
}

/* 09.11.2026 (phone): header icons in the middle of the white bar (under the 25px blue strip); the link boxes on the home page as tall as their links; the welcome text on the left, as .welcome-body on the old site */
.welcome-message p { text-align: left; }
/* 10.11.2026: as on the old site — the lead line centred and larger (.welcome-header), the text below in two columns (.welcome-body, col-md-6);
   the stored text lost those classes, so the blocks are found by their place */
.welcome-message > div:first-of-type { font-size: 1.2em; line-height: normal; margin-bottom: 30px; }
.welcome-message > div:first-of-type p { text-align: center; }
.welcome-message > div:nth-of-type(2) { display: flex; gap: 30px; margin-bottom: 20px; }
.welcome-message > div:nth-of-type(2) > div { flex: 1 1 0; min-width: 0; }
@media (max-width: 991px) { .welcome-message > div:nth-of-type(2) { flex-direction: column; gap: 0; } }
@media (max-width: 991px) {
  .header .header-table { height: 62px; }
  .header .header-td { vertical-align: middle; }
  .top-links-col, .top-links-col ul { height: auto !important; min-height: 0 !important; padding-bottom: 24px; }
}


/* 09.11.2026: places on a phone — one pill «Фільтри | Карта» at the bottom and a filter sheet that slides up (as on MixSport) */
.os-mbar, .os-sheet, .os-sheet-bg { display: none; }
@media (max-width: 800px) {
  .search-page .search-cols, .search-page .map-switcher { display: none !important; }
  .search-page .list-col, .search-page #map-container { bottom: 0 !important; }
  .search-page .list-col { padding-bottom: 96px; }
  .os-mbar { display: flex; position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 40;
    background: #06293e; border-radius: 999px; box-shadow: 0 8px 24px rgba(6, 41, 62, .35); overflow: hidden; }
  .os-mbar-btn { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; color: #fff; background: none; border: 0;
    font: inherit; font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer; }
  .os-mbar-btn + .os-mbar-btn { border-left: 1px solid rgba(255, 255, 255, .25); }
  .os-mbar-btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .os-mbar-btn:focus-visible { outline: 2px solid #a3cef0; outline-offset: -4px; }
  .os-mbar-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #9b1e3e; font-size: 12px; line-height: 20px; text-align: center; }
  .os-toggle-map .to-list, body.os-map-on .os-toggle-map .to-map { display: none; }
  body.os-map-on .os-toggle-map .to-list { display: inline; }
  .os-sheet-bg { display: block; position: fixed; inset: 0; z-index: 50; background: rgba(6, 41, 62, .45); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .os-sheet { display: flex; flex-direction: column; position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-height: 82vh; background: #fff;
    border-radius: 16px 16px 0 0; box-shadow: 0 -8px 30px rgba(6, 41, 62, .2); transform: translateY(105%); transition: transform .25s ease;
    padding-bottom: env(safe-area-inset-bottom); visibility: hidden; }
  body.os-sheet-open .os-sheet { transform: none; visibility: visible; }
  body.os-sheet-open .os-sheet-bg { opacity: 1; pointer-events: auto; }
  body.os-sheet-open .os-mbar { display: none; }
  .os-sheet-grip { width: 40px; height: 4px; margin: 8px auto 0; border-radius: 2px; background: #c3def3; }
  .os-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 8px 20px; border-bottom: 1px solid #e3eef8; }
  .os-sheet-head b { font-size: 18px; color: #06293e; }
  .os-sheet-head .os-sheet-close { width: 44px; height: 44px; border: 0; background: none; font-size: 28px; line-height: 1; color: #06293e; cursor: pointer; }
  .os-sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px 20px 16px; }
  .os-sheet-t { margin: 16px 0 8px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #6a7f8f; }
  .os-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .os-chips a, .os-chips button { font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1px solid #c3def3; border-radius: 20px;
    color: #06293e; font-size: 14px; line-height: 1.25; text-decoration: none; background: #fff; }
  .os-chips a.active, .os-chips button.active { background: #06293e; border-color: #06293e; color: #fff; }
  .os-sheet-foot { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid #e3eef8; }
  .os-sheet-reset { border: 0; background: none; padding: 8px 0; font: inherit; color: #9b1e3e; font-weight: 600; text-decoration: underline; cursor: pointer; }
  .os-sheet-done, .os-sheet-apply { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border: 0; border-radius: 24px; background: #9b1e3e; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
}
  .os-sheet-apply.busy:before { content: ''; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: os-spin .7s linear infinite; }
  .os-sheet-apply.os-zero { background: #8a99a6; }
  body.os-loading .os-places-list, body.os-loading .location-list { opacity: .4; transition: opacity .2s; }
}
@keyframes os-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .os-sheet, .os-sheet-bg { transition: none; } }

/* 09.11.2026: school page on a phone — a lower photo so the name is seen at once */
@media (max-width: 800px) {
  .location-page .photo-gallery, .location-page .photo-gallery #w0, .location-page .photo-gallery .cat-image, .location-page .photo-gallery .photos-item { height: 220px !important; min-height: 0 !important; }
  .location-page .photo-gallery .photos-item { background-size: cover; background-position: center; }
}


/* 09.11.2026: «back» arrow over the photo of a school page */
.location-page .photo-gallery { position: relative; }
.os-back { position: absolute; top: 12px; left: 12px; z-index: 5; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 10px rgba(6, 41, 62, .25); color: #06293e; }
.os-back svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.os-back:hover, .os-back:focus-visible { background: #fff; color: #9b1e3e; }
/* side menu: contacts as label + value, tappable phones and e-mail */
.aside-newsletter .os-contacts p.os-c { margin: 0 0 12px; }
.aside-newsletter .os-contacts p.os-c span { display: block; font-size: 13px; line-height: 1.3; opacity: .7; margin-bottom: 2px; }
.aside-newsletter .os-contacts p.os-c a { color: #fff; text-decoration: none; white-space: nowrap; }
.aside-newsletter .os-contacts p.os-c a[href^="mailto:"] { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 991px) {
  .aside .main-menu .os-home { display: none; }
  .aside .custom-menu-item > a, .aside .custom-menu a, .aside .main-menu > li > a { padding-left: 24px !important; padding-right: 24px !important; }
  .aside-newsletter { padding: 28px 24px 32px !important; }
  .aside-newsletter .os-contacts { width: auto !important; font-size: 15px; line-height: 1.45; }
  .aside-newsletter .os-contacts p { margin: 0 0 8px; }
  .aside-newsletter .os-contacts p:has(b) { margin-top: 16px; }
  .aside-newsletter .os-contacts p:first-child { margin-top: 0; }
  .aside-newsletter .socials { margin-top: 16px; padding-left: 0; }
}
/* home: three promo banners, one at a time, arrows + dots */
.os-promos { padding: 40px 0 10px; }
.os-promos-box { position: relative; border-radius: 16px; overflow: hidden; }
.os-promos-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; }
.os-promos-track::-webkit-scrollbar { display: none; }
.os-promo { flex: 0 0 100%; scroll-snap-align: start; display: flex; align-items: center; gap: 28px; min-height: 240px; padding: 36px 96px; color: #fff; }
.os-promo-near { background: linear-gradient(120deg, #0965aa, #06293e); }
.os-promo-afisha { background: linear-gradient(120deg, #c2275a, #7c1430); }
.os-promo-book { background: linear-gradient(120deg, #1d7f74, #0d3b45); }
.os-promo-ic { flex: 0 0 88px; height: 88px; border-radius: 50%; background: rgba(255,255,255,.16) center / 44px no-repeat; }
.os-pi-pin { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
.os-pi-ticket { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8a2 2 0 0 0 2-2h14a2 2 0 0 0 2 2v2a2 2 0 0 0 0 4v2a2 2 0 0 0-2 2H5a2 2 0 0 0-2-2v-2a2 2 0 0 0 0-4z'/%3E%3Cpath d='M9 6v12' stroke-dasharray='2 2'/%3E%3C/svg%3E"); }
.os-pi-book { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5a2 2 0 0 1 2-2h13v16H6a2 2 0 0 0-2 2z'/%3E%3Cpath d='M4 21V5M8 7h7M8 11h5'/%3E%3C/svg%3E"); }
.os-promo-body h2 { color: #fff; font-size: 30px; line-height: 1.15; margin: 0 0 10px; text-transform: none; }
.os-promo-body p { color: rgba(255,255,255,.9); font-size: 17px; line-height: 1.45; margin: 0 0 20px; max-width: 620px; }
.os-promo-btn { display: inline-block; padding: 12px 26px; border-radius: 999px; background: #fff; color: #06293e !important; font-weight: 700; text-decoration: none !important; }
.os-promo-btn:hover, .os-promo-btn:focus-visible { background: #e8f1f8; }
.os-promos-arr { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92) center / 22px no-repeat; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.os-promos-arr.prev { left: 20px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306293e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E"); }
.os-promos-arr.next { right: 20px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306293e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E"); }
.os-promos-arr:focus-visible, .os-promos-dots button:focus-visible { outline: 3px solid #f6c10b; outline-offset: 2px; }
.os-promos-dots { position: absolute; left: 0; right: 0; bottom: 14px; pointer-events: none; display: flex; justify-content: center; gap: 8px; }
.os-promos-dots button { pointer-events: auto; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 5px; background: rgba(255,255,255,.45); cursor: pointer; transition: width .2s, background .2s; }
.os-promos-dots button.on { width: 26px; background: #fff; }
@media (max-width: 767px) {
  .os-promos { padding-top: 24px; }
  .os-promo { flex-direction: column; align-items: flex-start; gap: 14px; min-height: 0; padding: 26px 22px 64px; }
  .os-promo-ic { flex-basis: auto; width: 56px; height: 56px; background-size: 28px; }
  .os-promo-body h2 { font-size: 23px; }
  .os-promo-body p { font-size: 15px; margin-bottom: 16px; }
  .os-promos-arr { top: auto; bottom: 10px; margin-top: 0; width: 40px; height: 40px; background-size: 18px; }
  .os-promos-arr.prev { left: 14px; } .os-promos-arr.next { right: 14px; }
  .os-promos-dots { bottom: 25px; }
}
/* ЗапоріжБот: small robot bottom right (as on KyivMaps), the chat opens right on the page */
.os-bot-btn { position: fixed; right: 18px; bottom: 18px; z-index: 1040; width: 64px; height: 64px; padding: 0; border: 3px solid #0965aa; border-radius: 50%; background: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 28px rgba(6,41,62,.28); transition: transform .2s; }
.os-bot-btn:hover { transform: translateY(-3px); }
.os-bot-btn:focus-visible { outline: 3px solid #f6c10b; outline-offset: 3px; }
.os-bot-tip { position: absolute; right: 74px; white-space: nowrap; background: #06293e; color: #fff; font-weight: 700; font-size: 13px; padding: 8px 12px; border-radius: 14px 14px 4px 14px; box-shadow: 0 8px 20px rgba(6,41,62,.2); }
.os-bot.open .os-bot-tip, .os-bot.seen .os-bot-tip { display: none; }
.os-bot-panel { position: fixed; right: 18px; bottom: 94px; z-index: 1041; width: 380px; height: min(620px, calc(100vh - 120px)); background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(6,41,62,.3); display: none; flex-direction: column; overflow: hidden; }
.os-bot.open .os-bot-panel { display: flex; }
.os-bot-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; background: #06293e; color: #fff; }
.os-bot-head div { flex: 1; line-height: 1.2; }
.os-bot-head b { display: block; font-size: 16px; }
.os-bot-head small { font-size: 12px; opacity: .8; }
.os-bot-close { width: 36px; height: 36px; border: 0; background: transparent; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.os-bot-log { flex: 1; overflow-y: auto; padding: 14px; background: #f0f8ff; display: flex; flex-direction: column; gap: 10px; font: 14px/1.45 Montserrat, Arial, sans-serif; }
.os-bot-msg { max-width: 88%; padding: 10px 12px; border-radius: 14px; color: #06293e; background: #fff; box-shadow: 0 1px 3px rgba(6,41,62,.08); word-wrap: break-word; }
.os-bot-msg.bot { align-self: flex-start; border-bottom-left-radius: 4px; }
.os-bot-msg.me { align-self: flex-end; background: #06293e; color: #fff; border-bottom-right-radius: 4px; }
.os-bot-msg a { color: #9b1e3e; text-decoration: underline; }
.os-bot-links { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.os-bot-links li { padding: 6px 0 0; border-top: 1px solid #e3eef8; }
.os-bot-links small { display: block; color: #6b7f8e; font-size: 12px; }
.os-bot-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.os-bot-chip { border: 1px solid #a3cef0; background: #fff; color: #06293e; border-radius: 999px; padding: 6px 12px; font: 13px Montserrat, Arial, sans-serif; cursor: pointer; }
.os-bot-chip:hover, .os-bot-chip:focus-visible { background: #06293e; color: #fff; }
.os-bot-msg.wait { display: flex; gap: 4px; }
.os-bot-msg.wait span { width: 7px; height: 7px; border-radius: 50%; background: #9b1e3e; animation: osdot 1s infinite alternate; }
.os-bot-msg.wait span:nth-child(2) { animation-delay: .2s; } .os-bot-msg.wait span:nth-child(3) { animation-delay: .4s; }
@keyframes osdot { from { opacity: .25; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .os-bot-msg.wait span { animation: none; } }
.os-bot-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #e3eef8; background: #fff; }
.os-bot-form input { flex: 1; min-width: 0; height: 42px; border: 1px solid #a3cef0; border-radius: 21px; padding: 0 16px; font: 15px Montserrat, Arial, sans-serif; color: #06293e; }
.os-bot-form input:focus { outline: 2px solid #0965aa; outline-offset: 0; }
.os-bot-form button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: #9b1e3e; color: #fff; cursor: pointer; display: grid; place-items: center; }
@media (prefers-reduced-motion: reduce) { .os-bot-btn { transition: none; } }
@media (max-width: 800px) {
  .os-bot-btn { width: 56px; height: 56px; right: 14px; bottom: 14px; }
  .os-bot-tip { right: 64px; font-size: 12px; }
  .os-bot-panel { left: 0; right: 0; bottom: 0; width: auto; height: 88vh; border-radius: 18px 18px 0 0; }
  body:has(.os-mbar) .os-bot-btn { bottom: 84px; }
  body:has(.os-mbar) .os-bot-tip { display: none; }
}
/* map: grouped pins and round buttons «+», «−», «Поруч зі мною» one under another (as on our other sites) */
.os-cluster { background: none; border: 0; }
.os-cluster span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #9b1e3e; color: #fff; font: 700 14px/1 Montserrat, Arial, sans-serif; border: 3px solid #fff; box-shadow: 0 0 0 5px rgba(155, 30, 62, .25), 0 4px 12px rgba(6, 41, 62, .3); box-sizing: border-box; transition: transform .15s, background .15s; }
.os-cluster:hover span, .os-cluster.active span { background: #06293e; transform: scale(1.1); }
.leaflet-cluster-anim .leaflet-marker-icon, .leaflet-cluster-anim .leaflet-marker-shadow { transition: transform .3s ease-out, opacity .3s ease-in; }
.os-mapbtns { display: flex; flex-direction: column; gap: 8px; }
.leaflet-top.leaflet-right .os-mapbtns { margin: 14px 14px 0 0; }
.leaflet-top.leaflet-right .os-near { margin: 8px 14px 0 0; }
.os-mapbtn, .os-near.os-mapbtn { position: relative; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; gap: 0; border: 0; border-radius: 50%; background: #fff; color: #06293e; font: 400 26px/1 Arial, sans-serif; box-shadow: 0 4px 14px rgba(6, 41, 62, .22); cursor: pointer; }
.os-mapbtn:hover { color: #9b1e3e; background: #f4f8fb; }
.os-mapbtn:focus-visible { outline: 3px solid #f6c10b; outline-offset: 2px; }
.os-near-msg { position: absolute; right: 52px; top: 50%; transform: translateY(-50%); white-space: nowrap; background: #06293e; color: #fff; font: 600 13px/1.2 Montserrat, Arial, sans-serif; padding: 7px 10px; border-radius: 8px; }
.os-near-msg:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .os-cluster span, .leaflet-cluster-anim .leaflet-marker-icon { transition: none; } }

/* 10.11.2026: the menu item of the current section — magenta text and a full-width underline */
.menu-header a.os-active { color: #9b1e3e !important; }
.menu-header a.os-active:after { width: calc(100% - 30px); height: 3px; background-color: #9b1e3e !important; }
.custom-menu .submenu a.os-active, .main-menu a.os-active { color: #9b1e3e !important; font-weight: 700; }

/* 10.11.2026: the footer goes over the fixed map of a school page instead of under it */
footer { position: relative; z-index: 5; }

/* 10.11.2026: «вгору» on the left, the bot keeps the bottom right */
.gotop { right: auto !important; left: 18px; bottom: 18px; }
@media (max-width: 800px) { .search-page ~ .gotop, body:has(.os-mbar) .gotop { bottom: 84px; } }

/* 10.11.2026: /places filter popup (old «Виберіть тип місця») */
.os-fmodal .os-fpane { display: none; }
.os-fmodal .modal-dialog { max-width: 560px; }
.os-fmodal .tags-list ul { max-height: 60vh; overflow: auto; }
.search-cols button.col-styles { border: 0; font: inherit; text-align: left; cursor: pointer; }

/* 10.11.2026: header menu items that do not fit go under «▾» */
.menu-header .os-more-hidden { display: none !important; }
.menu-header .os-more { position: relative; display: inline-block; vertical-align: top; }
.menu-header .os-more-btn { cursor: pointer; white-space: nowrap; }
.menu-header .os-more-btn svg { display: inline-block; vertical-align: middle; margin: -2px 0 0 6px; color: #9b1e3e; transition: transform .15s; }
.menu-header .os-more.open .os-more-btn svg { transform: rotate(180deg); }
.menu-header .os-more .os-more-list { display: none; position: absolute; right: 0; top: 100%; z-index: 1050; min-width: 280px; max-height: 70vh; overflow: auto; margin: 0; padding: 8px 0; list-style: none; background: #fff; box-shadow: 0 8px 24px rgba(6, 41, 62, .2); }
.menu-header .os-more.open .os-more-list { display: block; }
.menu-header .os-more-list a { display: block; padding: 8px 16px; white-space: normal; }
.menu-header .os-more-list a:after { display: none; }
.menu-header .os-more-list .os-more-sub a { padding-left: 28px; font-family: Montserrat, Arial, sans-serif; text-transform: none; font-size: 13px; }

/* 10.11.2026: district map ↔ list of an «Освіта» page */
.osvita-map .sm { transition: opacity .2s, filter .2s; cursor: pointer; }
.osvita-map.os-ds-on .sm { opacity: .35; }
.osvita-map.os-ds-on .sm.os-ds-active { opacity: 1; filter: drop-shadow(0 4px 10px rgba(6, 41, 62, .35)); }
.poligon-list li.os-ds-active a { color: #9b1e3e; text-decoration: underline; }
.poligon-list li.os-ds-active:before { transform: scale(1.12); }
@media (prefers-reduced-motion: reduce) { .osvita-map .sm { transition: none; } }
.os-fmodal .os-fsub { margin: 16px 0 6px; font-weight: 700; color: #06293e; }

/* 10.11.2026: the sign-in popup (Google, Facebook) of «Увійти» */
.os-login-bg { position: fixed; inset: 0; background: rgba(6, 41, 62, .55); z-index: 10040; display: none; }
.os-login { position: fixed; inset: 0; z-index: 10050; display: none; align-items: center; justify-content: center; padding: 16px; }
.os-login.open, .os-login-bg.open { display: flex; }
body.os-login-on { overflow: hidden; }
.os-login-card { position: relative; background: #fff; width: 100%; max-width: 420px; padding: 36px 32px 28px; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); text-align: center; }
.os-login-card h2 { margin: 0 0 8px; font-size: 26px; font-weight: 700; color: #06293e; }
.os-login-sub { margin: 0 0 22px; color: #555; font-size: 15px; line-height: 1.45; }
.os-login-x { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; border: 0; background: none; font-size: 30px; line-height: 1; color: #06293e; cursor: pointer; }
.os-login-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 48px; margin-bottom: 12px; padding: 10px 16px; border-radius: 4px; font-size: 16px; font-weight: 600; text-decoration: none !important; transition: filter .15s; }
.os-login-btn[hidden], .os-login-none[hidden] { display: none; }
.os-login-btn:hover { filter: brightness(.95); }
.os-login-g { background: #fff; color: #06293e !important; border: 1px solid #c9d3da; }
.os-login-f { background: #1877f2; color: #fff !important; border: 1px solid #1877f2; }
.os-login-none { color: #9b1e3e; font-size: 15px; }
.os-login-note { margin: 10px 0 14px; color: #777; font-size: 13px; }
.os-login-mail { color: #06293e !important; font-size: 14px; text-decoration: underline !important; }
.os-login-page { background: none; box-shadow: none; padding: 0 0 8px; max-width: none; text-align: left; }

/* 10.11.2026 (Дмитро): on a narrower computer screen the menu stays in the header, what does not fit goes under «Ще ▾»;
   the burger alone only on tablets and phones (the old CSS hid the whole menu below 1100px) */
@media (min-width: 900px) and (max-width: 1100px) {
  .header .td-menu-header { display: table-cell !important; }
}

/* 11.11.2026 (Дмитро): a news item without a photo — a plain light-blue header instead of the faint placeholder picture,
   and «Поділитись» readable (dark-blue text and frame) */
.single-view-header.os-nocover { background: #e6f1fb none !important; }
.single-view-header.os-nocover:before, .single-view-header.os-nocover:after { display: none !important; }
.single-view-header.os-nocover .event-view-buttons .btn { border-color: #06293e !important; color: #06293e !important; background: transparent !important; }
.single-view-header.os-nocover .event-view-buttons .btn span { color: #06293e !important; }
.single-view-header.os-nocover .event-view-buttons .btn:hover { background: #06293e !important; }
.single-view-header.os-nocover .event-view-buttons .btn:hover span { color: #fff !important; }

/* 11.11.2026 (Дмитро): school page — «Маршрут» and «Поділитись» with a gap and dark-blue text;
   on a phone the contacts show icons (as on a computer) instead of the grey «Адреса», «Телефон»… captions */
.event-view-status .event-view-buttons > .btn.btn-direction, .event-view-status .event-view-buttons > .btn.btn-share { margin-right: 10px; }
.event-view-status .event-view-buttons > .btn.btn-direction span, .event-view-status .event-view-buttons > .btn.btn-share span { color: #06293e !important; font-weight: 600; }
@media (max-width: 600px) {
  .bottom-event-view-body .contacts-info-title { display: none !important; }
  .bottom-event-view-body .info-container p:before, .bottom-event-view-body .info-container .addr:before { display: block !important; }
  .bottom-event-view-body .info-container .addr:before { background: url(/images/contacts.svg) no-repeat center center !important; background-size: 16px auto !important; }
  .bottom-event-view-body .info-container p { overflow: hidden; }
  .bottom-event-view-body .info-container p a { display: block; }
  .event-view-status .event-view-buttons > .btn.btn-direction, .event-view-status .event-view-buttons > .btn.btn-share { margin-bottom: 10px; }
}

/* 11.11.2026 (Дмитро): files — the icon always left of the link, long names with «_» wrap inside the column */
.file-list a { display: inline-flex; align-items: flex-start; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.file-list a:before { flex: 0 0 23px; float: none !important; }
/* the footer contacts were light blue on dark blue: lighter for reading */
footer .footer-wrap, footer .footer-wrap a, footer .footer-wrap p, footer .footer-adress { color: #e4f1fc !important; }
footer .footer-wrap a:hover { color: #fff !important; text-decoration: underline; }

/* 11.11.2026 (Дмитро): date filter on a phone — «Дата від», «Дата до» and «Знайти» in one compact row */
@media (max-width: 767px) {
  .filters .row:has(> .cal-col) { display: flex; flex-wrap: wrap; align-items: stretch; margin-left: -4px; margin-right: -4px; }
  .filters .row:has(> .cal-col) > .filter-col { float: none; width: auto; padding: 0 4px; margin-bottom: 8px; }
  .filters .row:has(> .cal-col) > .cal-col { flex: 1 1 0; min-width: 0; }
  .filters .row:has(> .cal-col) > .submit-col { flex: 0 0 auto; }
  .filters .row:has(> .cal-col) > .filter-col:not(.cal-col):not(.submit-col) { flex: 0 0 100%; }
  .filters .cal-col .form-control { height: 44px; font-size: 14px; padding: 6px 30px 6px 10px; background-size: 18px auto; background-position: right 8px center; }
  .filters .submit-col .btn { height: 44px; min-height: 0; padding: 0 14px; font-size: 13px; line-height: 44px; width: auto; margin: 0; }
}
/* each phone of a school on its own line on every screen (three numbers ran together on a computer) */
.bottom-event-view-body .info-container p.phone a { display: block; }

/* «Поруч з …» of a school: white on light blue was unreadable (Дмитро, 11.11.2026), dark-blue text */
.next-to-title { color: #06293e !important; }
/* school page on a phone: the photo right under the header (no white strip), the name closer to the photo */
@media (max-width: 767px) {
  .location-page .afisha-footer .full-name h1 { margin-top: 0; }
  .location-page .afisha-footer .style { padding-top: 10px; }
}
/* «Освіта» tiles: the icon, the name and the arrow on one line (Дмитро, 11.11.2026) */
@media (max-width: 991px) {
  .static-page .structure li a { display: flex; align-items: center; min-height: 60px; padding-top: 0; padding-bottom: 0; }
  .static-page .structure li a:before { flex: 0 0 auto; float: none; margin-top: 0 !important; margin-bottom: 0; }
  .static-page .structure li a:after { top: 50% !important; transform: translateY(-50%); }
  .static-page .structure li p { margin: 0; }
  .static-page .structure li { margin-bottom: 0; }
}
/* the logo sat a little high next to the round buttons on a phone (Дмитро, 11.11.2026) */
@media (max-width: 991px) { .header .navbar-brand { background-position: 0 calc(50% + 4px); } }
/* district map of the «Освіта» sections: the heading above the map, district names on it */
.os-map-title { margin: 0 0 20px; }
.osvita-map svg .os-ds-label { font: 700 13px 'Montserrat-Bold', Arial, sans-serif; fill: #06293e; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
/* header search results */
.os-sr { position: absolute; left: 0; right: 0; top: 100%; z-index: 6; background: #fff; box-shadow: 0 8px 24px rgba(6, 41, 62, .18); max-height: 70vh; overflow-y: auto; text-align: left; padding: 6px 0; }
.os-sr[hidden] { display: none; }
.os-sr-title { margin: 10px 16px 4px; font: 700 12px 'Montserrat-Bold', Arial, sans-serif; text-transform: uppercase; letter-spacing: .04em; color: #9b1e3e; }
.os-sr-item { display: block; padding: 8px 16px; color: #06293e !important; text-decoration: none; line-height: 1.35; }
.os-sr-item span { display: block; font-size: .85em; color: #5b6b75; }
.os-sr-item:focus, .os-sr-item:active { background: #e6f1fb; }
@media (hover: hover) { .os-sr-item:hover { background: #e6f1fb; } }
.os-sr-empty { margin: 10px 16px; color: #5b6b75; }
.os-sr-all { display: block; margin: 6px 16px 8px; padding: 10px 0 2px; border-top: 1px solid #d5eaf7; font-weight: 600; color: #06293e !important; }
/* filter panel (Дмитро, 11.11.2026): slides up OVER the page and its header, the page stays visible above it under a shade;
   cross on the left of the panel head, «Скинути» in its top right corner */
@media (max-width: 767px) {
  .os-sheet-bg { z-index: 2000; }
  .os-sheet { z-index: 2001; max-height: 85vh; max-height: 85dvh; }
  body.os-sheet-open { overflow: hidden; }
  body.os-sheet-open .os-bot, body.os-sheet-open #os-bot { visibility: hidden; }
  .os-sheet-head { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; padding: 4px 16px 8px 8px; }
  .os-sheet-head b { text-align: center; }
  .os-sheet-head .os-sheet-reset { padding: 10px 4px; text-decoration: none; }
  .os-sheet-foot { padding: 12px 16px; }
}

/* the page starts right under the header, no white strip (Дмитро, 11.11.2026: «знизу і зверху однакова відстань»):
   the header is 87px high up to 600px wide and 85px above; the old CSS put the content at 90/95px */
@media (max-width: 600px) {
  .static-page { padding-top: 87px !important; }
  .location-page, .event-page { margin-top: 87px !important; }
  .map-search, .map-nav-col, #article_places, .single-view .map, .map-view { top: 87px !important; }
  .users-page { padding-top: 87px !important; }
}
@media (min-width: 601px) {
  .static-page { padding-top: 85px !important; }
  .location-page, .event-page { margin-top: 85px !important; }
  .map-search, .map-nav-col, #article_places, .single-view .map, .map-view { top: 85px !important; }
  .users-page { padding-top: 85px !important; }
}
/* «Для людей з вадами зору»: just a big eye, no circle (Дмитро, 11.11.2026) */
.os-a11y-btn { border: 0 !important; background-size: 34px !important; }
@media (max-width: 600px) { .os-a11y-btn { background-size: 30px !important; } }
/* photo gallery inside old texts (osGallery) */
.os-gal { position: relative; margin: 20px 0; }
.os-gal-track { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.os-gal-track::-webkit-scrollbar { display: none; }
.os-gal-item { flex: 0 0 100%; margin: 0; scroll-snap-align: center; background: #e6f1fb; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; }
.os-gal-item img { width: 100%; height: 100%; object-fit: contain; display: block; margin: 0 !important; }
.os-gal-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(6,41,62,.25); color: #06293e; font-size: 26px; line-height: 44px; cursor: pointer; z-index: 2; padding: 0; }
.os-gal-btn.prev { left: 10px; } .os-gal-btn.next { right: 10px; }
.os-gal-btn[disabled] { opacity: 0; pointer-events: none; }
.os-gal-count { position: absolute; right: 10px; bottom: 10px; padding: 3px 10px; border-radius: 12px; background: rgba(6,41,62,.75); color: #fff; font-size: 13px; }

/* 11.11 evening (Дмитро): «Поділитись» had an empty gap, its white icon file was missing; dark icon on the light header */
.single-view-header .event-view-buttons .btn-share:before { background-image: url(/images/share-white.svg) !important; background-size: 18px !important; }
.single-view-header.os-nocover .event-view-buttons .btn-share:before { background-image: url(/images/share-dark.svg) !important; }
.single-view-header.os-nocover .event-view-buttons .btn-share:hover:before { background-image: url(/images/share-white.svg) !important; }
/* news page header: much denser, title about half the size */
@media (max-width: 767px) {
  .single-view-header { height: auto !important; min-height: 0 !important; margin-bottom: 20px !important; padding-top: 28px !important; padding-bottom: 28px !important; }
  .single-view-header:not(.os-nocover) { min-height: 260px !important; display: flex; flex-direction: column; justify-content: center; }
  .single-view-header .title-container { margin: 0 auto !important; padding-left: 0 !important; padding-right: 0 !important; top: auto !important; transform: none !important; }
  .single-view-header .path { margin-bottom: 10px !important; }
  .single-view-header h1 { font-size: 20px !important; line-height: 1.3 !important; margin: 0 0 16px !important; }
  .single-view-header .event-view-buttons .btn-share { margin: 0 auto !important; }
}
/* lists with the date form (/news, /city-events): less air under the dark header, the form and the blue block */
@media (max-width: 767px) {
  .filter-header { padding-top: 24px !important; padding-bottom: 16px !important; }
  .static-body.form-search { margin-bottom: 0 !important; }
  .static-body.form-search .container-wrap { padding-top: 14px !important; padding-bottom: 16px !important; }
  .static-body.form-search .path { margin-bottom: 12px !important; }
  .page-long .page-wrap { padding-top: 8px !important; }
  .page-long .default-list { padding-top: 0 !important; }
}
/* more readable news titles in the lists */
.default-list .article_item_list a, .main-list li > a { font-family: 'Montserrat-Bold', Arial, sans-serif; font-size: 16px; line-height: 1.4; color: #06293e; }
.default-list .article_item_list .date, .main-list .date { color: #5b6b78; }

/* header search popup: a card with a title, a rounded field and quick links (Дмитро, 11.11.2026) */
.os-sq-head, .os-sq { display: none; }
@media (max-width: 1000px) {
  body:has(#search-overlay.active) .os-bot, body:has(#search-overlay.active) #os-bot { visibility: hidden; }
  #search-overlay.active .search-overlay-bg { background: rgba(6, 41, 62, .55) !important; }
  #search-overlay.active .search-overlay-input { margin: 12px; padding: 16px 16px 12px !important; background: #fff; border-radius: 16px; box-shadow: 0 12px 32px rgba(6, 41, 62, .25); }
  #search-overlay.active .search-overlay-input:before { display: none !important; }
  #search-overlay.active .os-sq-head { display: block; margin: 0 40px 12px 2px; font: 700 18px/1.3 'Montserrat-Bold', Arial, sans-serif; color: #06293e; }
  #search-overlay.active .close-search-container { top: 8px !important; right: 6px !important; width: 44px; height: 44px; background-size: 18px auto !important; }
  #search-overlay.active .tt-scrollable-menu { position: relative; }
  #search-overlay.active .tt-scrollable-menu:before { content: ''; position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; background: url(/images/search-dark.svg) center / contain no-repeat; pointer-events: none; }
  #search-overlay.active #main_search { height: 48px; padding: 10px 14px 10px 44px !important; font-size: 16px !important; color: #06293e; background: #f1f7fc !important; border: 1px solid #cfe3f3 !important; border-radius: 12px !important; }
  #search-overlay.active #main_search:focus { border-color: #0965aa !important; background: #fff !important; outline: none; }
  #search-overlay.active #main_search::placeholder { color: #6f8796; }
  #search-overlay.active .os-sq { display: block; margin-top: 6px; }
  #search-overlay.active .os-has-q .os-sq { display: none; }
  .os-sq .os-sr-title { margin: 10px 2px 8px; }
  .os-sq a { display: inline-block; margin: 0 6px 8px 0; padding: 8px 14px; border-radius: 20px; background: #e6f1fb; color: #06293e !important; font-size: 14px; text-decoration: none; }
  .os-sq a:active { background: #cfe3f3; }
  #search-overlay.active .os-sr { position: static; box-shadow: none; max-height: 60vh; margin: 8px -16px -12px; border-top: 1px solid #e3eef7; border-radius: 0 0 16px 16px; }
}

/* photo viewer of the place page */
.os-lb { display: none; position: fixed; inset: 0; z-index: 3000; background: #0b1a24; }
.os-lb.open { display: block; }
body.os-lb-open { overflow: hidden; }
body.os-lb-open .os-bot { visibility: hidden; }
.os-lb-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.os-lb-track::-webkit-scrollbar { display: none; }
.os-lb-item { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; padding: 56px 8px; }
.os-lb-item img { max-width: 100%; max-height: 100%; object-fit: contain; }
.os-lb-close { position: absolute; top: 8px; right: 8px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 32px; line-height: 48px; }
.os-lb-btn { position: absolute; top: 50%; margin-top: -24px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 30px; line-height: 44px; }
.os-lb-btn.prev { left: 8px; } .os-lb-btn.next { right: 8px; }
.os-lb-count { position: absolute; top: 20px; left: 16px; color: #fff; font-size: 15px; }
.os-lb.single .os-lb-btn, .os-lb.single .os-lb-count { display: none; }
@media (hover: none) { .os-lb-btn { display: none; } }
