/* «JandS: Школы города» (18.11.2026) — Главная и лендинги: список школ и Яндекс.Карта (city-schools.js).
   Вид строк и меток — как «Где проходят занятия» у программы и карта страницы школы. */
.jands-cs { --jands-cs-accent: #00ADEF; --jands-cs-map: 62%; --jands-cs-h: 470px; display: flex; gap: 30px; align-items: stretch; font-family: "Open Sans", sans-serif; color: #1E2A33; }
.jands-cs--map-left { flex-direction: row-reverse; }
.jands-cs__side { flex: 1 1 0; min-width: 0; }
.jands-cs__map { position: relative; flex: 0 0 var(--jands-cs-map); min-height: var(--jands-cs-h); border-radius: 10px; overflow: hidden; background: #EEF3F6; }
.jands-cs__mapel { position: absolute; inset: 0; }
body .jands-cs .jands-cs__title { margin: 0 0 8px; font: 700 26px/1.25 "Open Sans", sans-serif; color: #1E2A33; text-align: left; }
.jands-cs .jands-cs__sub { margin: 0 0 16px; font-size: 16px; line-height: 1.45; color: #1E2A33; }

/* районы — как «таблетки» списка школ */
.jands-cs__pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.jands-cs .jands-cs__pills > button, .jands-cs .jands-cs__switch > button { padding: 6px 14px; font: 400 13px/1.2 "Open Sans", sans-serif; color: #1E2A33; background: #FFFFFF;
    border: 1px solid #D5E6F0; border-radius: 18px; white-space: nowrap; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.jands-cs .jands-cs__pills > button:hover { color: var(--jands-cs-accent); border-color: var(--jands-cs-accent); background: #FFFFFF; }
.jands-cs .jands-cs__pills > button.is-on, .jands-cs .jands-cs__switch > button.is-on { color: #FFFFFF; background: var(--jands-cs-accent); border-color: var(--jands-cs-accent); }
.jands-cs .jands-cs__pills > button:focus, .jands-cs .jands-cs__switch > button:focus { outline: none; }
.jands-cs .jands-cs__pills > button:focus-visible, .jands-cs .jands-cs__switch > button:focus-visible { outline: 2px solid var(--jands-cs-accent); outline-offset: 2px; }
.jands-cs__switch { display: none; }

/* строки школ */
.jands-cs .jands-cs__list { margin: 0; padding: 0; list-style: none; }
.jands-cs--cols2 .jands-cs__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
.jands-cs .jands-cs__row { position: relative; margin: 0; padding: 9px 10px 9px 30px; border-bottom: 1px solid #EEF1F4; cursor: pointer; transition: background .15s; list-style: none; }
.jands-cs .jands-cs__row::before { content: ""; position: absolute; left: 6px; top: 10px; width: 16px; height: 21px;
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='44' viewBox='0 0 34 44'%3E%3Cpath d='M17 2.5C9.5 2.5 3.5 8.5 3.5 16c0 10 13.5 25 13.5 25s13.5-15 13.5-25C30.5 8.5 24.5 2.5 17 2.5z' fill='%2300ADEF'/%3E%3Ccircle cx='17' cy='16' r='5.5' fill='%23FFFFFF'/%3E%3C/svg%3E") no-repeat center / contain; }
.jands-cs .jands-cs__row[hidden] { display: none; }
.jands-cs .jands-cs__row:hover { background: #F5FAFD; }
.jands-cs .jands-cs__row.is-active { background: #EAF6FC; box-shadow: inset 3px 0 0 var(--jands-cs-accent); }
.jands-cs__addr { display: block; font: 600 15px/1.3 "Open Sans", sans-serif; color: #1E2A33; }
.jands-cs .jands-cs__row:hover .jands-cs__addr, .jands-cs .jands-cs__row.is-active .jands-cs__addr { color: var(--jands-cs-accent); }
.jands-cs .jands-cs__phone { display: inline-block; margin-top: 3px; font: 400 15px/1.3 "Open Sans", sans-serif; color: #004B8D; text-decoration: none; white-space: nowrap; }
.jands-cs .jands-cs__phone small { font-size: 13px; color: #5B6670; }
.jands-cs .jands-cs__phone:hover { color: var(--jands-cs-accent); }
.jands-cs__note { display: block; margin-top: 2px; font: 400 12px/1.3 "Open Sans", sans-serif; color: #7A858E; }
.jands-cs .jands-cs__more { display: none; margin-top: 5px; font: 600 13px/1.2 "Open Sans", sans-serif; color: var(--jands-cs-accent); text-decoration: none; }
.jands-cs .jands-cs__more:hover { text-decoration: underline; }
.jands-cs .jands-cs__row.is-active .jands-cs__more { display: inline-block; }
/* одна колонка: телефон справа в строке адреса */
.jands-cs--cols1 .jands-cs__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline; }
.jands-cs--cols1 .jands-cs__addr, .jands-cs--cols1 .jands-cs__note, .jands-cs--cols1 .jands-cs__more { grid-column: 1; }
.jands-cs--cols1 .jands-cs__phone { grid-column: 2; grid-row: 1; margin-top: 0; }

.jands-cs .jands-cs__btn { display: inline-block; margin-top: 18px; padding: 8px 26px; font: 600 14px/1.2 "Open Sans", sans-serif; color: #FFFFFF; background: var(--jands-cs-accent);
    border-radius: 18px; text-decoration: none; transition: opacity .2s; }
.jands-cs .jands-cs__btn:hover { color: #FFFFFF; opacity: .88; }

/* «Как добраться» — как у карты страницы школы */
.jands-cs .jands-cs__route { position: absolute; left: 12px; bottom: 12px; z-index: 2; padding: 7px 14px; font: 600 13px/1.2 "Open Sans", sans-serif; color: #1E2A33;
    background: #FFFFFF; border-radius: 16px; box-shadow: 0 2px 8px rgba(30, 42, 51, .22); text-decoration: none; }
.jands-cs .jands-cs__route::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; background: #FF6A00; border-radius: 50%; vertical-align: 1px; }
.jands-cs .jands-cs__route:hover { color: var(--jands-cs-accent); }
.jands-cs .jands-cs__route[hidden] { display: none; }
.jands-cs [class*="-gototaxi"], .jands-cs [class*="-gototech"] { display: none !important; }

/* планшет: карта над списком */
@media (max-width: 991px) {
    .jands-cs, .jands-cs--map-left { flex-direction: column-reverse; gap: 20px; align-items: stretch; }
    .jands-cs__map { flex: none; width: 100%; min-height: 0; height: 380px; }
    .jands-cs__side { flex: none; }
}
/* телефон: список, «На карте» — переключателем */
@media (max-width: 767px) {
    .jands-cs, .jands-cs--map-left { flex-direction: column; gap: 0; }
    body .jands-cs .jands-cs__title { font-size: 22px; }
    .jands-cs .jands-cs__sub { font-size: 15px; }
    .jands-cs__pills { flex-wrap: nowrap; overflow-x: auto; margin: 0 -15px 12px; padding: 0 15px 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .jands-cs__pills::-webkit-scrollbar { display: none; }
    .jands-cs__switch { display: flex; width: max-content; margin: 0 0 12px; padding: 3px; gap: 0; background: #FFFFFF; border-radius: 18px; box-shadow: 0 2px 10px rgba(30, 42, 51, .15); }
    .jands-cs .jands-cs__switch > button { border: 0; padding: 6px 14px; font-weight: 600; font-size: 12px; color: #5B6670; background: transparent; }
    .jands-cs .jands-cs__switch > button.is-on { color: #FFFFFF; }
    .jands-cs--cols2 .jands-cs__list { display: block; }
    .jands-cs .jands-cs__row { cursor: default; }
    .jands-cs .jands-cs__row:hover { background: transparent; }
    .jands-cs .jands-cs__row:hover .jands-cs__addr { color: #1E2A33; }
    .jands-cs .jands-cs__more { display: inline-block; }
    .jands-cs__map { display: none; height: 440px; }
    .jands-cs.is-map .jands-cs__map { display: block; }
    .jands-cs.is-map .jands-cs__list, .jands-cs.is-map .jands-cs__btn { display: none; }
    .jands-cs .jands-cs__phone { font-size: 16px; }
    .jands-cs .jands-cs__row:active { background: #F5FAFD; }
}

/* Общие стили страниц Elementor ([data-elementor-type="wp-page"] :is(button…) — кнопки 14.4px 300, отступы .9em 2em;
   у лендингов .jands-landing a:not(.elementor-button):not(.btn) — тёмно-синие ссылки) сильнее по весу — закрепляем вид блока. */
.jands-cs .jands-cs__pills > button, .jands-cs .jands-cs__switch > button { padding: 6px 14px !important; font-size: 13px !important; font-weight: 400 !important; line-height: 1.2 !important; border-radius: 18px !important; }
.jands-cs .jands-cs__switch > button { font-weight: 600 !important; }
@media (max-width: 767px) { .jands-cs .jands-cs__switch > button { font-size: 12px !important; } }
.jands-cs a.jands-cs__phone { color: #004B8D !important; font-weight: 400 !important; }
.jands-cs a.jands-cs__phone:hover, .jands-cs a.jands-cs__more { color: var(--jands-cs-accent) !important; font-weight: 600 !important; }
.jands-cs a.jands-cs__btn, .jands-cs a.jands-cs__btn:hover { color: #FFFFFF !important; font-weight: 600 !important; }
.jands-cs a.jands-cs__route { color: #1E2A33 !important; }
.jands-cs a.jands-cs__route:hover { color: var(--jands-cs-accent) !important; }

/* Окошко школы на карте (как балун старой Главной, в стиле сайта): фото, название, адрес, телефоны, почта, ВК, руководитель, ссылки */
.jands-csb { width: 290px; max-width: 100%; padding: 4px 2px 2px; font: 400 13px/1.4 "Open Sans", sans-serif; color: #1E2A33; }
.jands-csb__photos { display: flex; gap: 6px; margin: 0 0 8px; }
.jands-csb__photos a { flex: 1 1 0; min-width: 0; }
.jands-csb__photos img { display: block; width: 100%; height: 50px; object-fit: cover; border-radius: 6px; }
.jands-csb__title { margin: 0 0 3px; font: 700 14px/1.3 "Open Sans", sans-serif; color: #1E2A33; }
.jands-csb__addr { margin: 0 0 6px; color: #5B6670; }
.jands-csb__phones, .jands-csb__links2 { display: flex; flex-direction: column; gap: 1px; margin: 0 0 6px; }
.jands-csb a { color: #004B8D !important; font-weight: 400 !important; text-decoration: none; }
.jands-csb a:hover { color: #00ADEF !important; }
.jands-csb__phones a { font-size: 14px; }
.jands-csb__info { margin: 0 0 8px; padding-top: 6px; border-top: 1px solid #EEF1F4; font-size: 12px; color: #5B6670; }
.jands-csb__info p { margin: 0; }
.jands-csb__act { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.jands-csb a.jands-csb__more { font-weight: 600 !important; color: #00ADEF !important; }
.jands-csb a.jands-csb__route { padding: 5px 12px; font-weight: 600 !important; color: #1E2A33 !important; background: #FFFFFF; border: 1px solid #D5E6F0; border-radius: 16px; }
.jands-csb a.jands-csb__route::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; background: #FF6A00; border-radius: 50%; vertical-align: 1px; }
.jands-csb a.jands-csb__route:hover { border-color: #00ADEF; }
