/* Каталог школ и страница школы (2026). Подключается только на /mektepter/ и /ru/shkoly/ (home2026/schools.php) */
.erk-schools { --priv: #8a4fe6; --priv-bg: #f2eafd; --state: #1f63e0; --state-bg: #e8f0fd; padding-bottom: 56px; }
.erk-schools a:hover { color: inherit; }
.erk-schools [hidden] { display: none !important; }
.erk-schools h1, .erk-schools h2, .erk-schools h3 { font-family: inherit; text-shadow: none; }

/* Шапка каталога */
.erk-sch-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; padding: 40px 44px; border-radius: 24px; color: #fff; overflow: hidden;
	background: radial-gradient(circle at 92% 0%, rgba(31, 184, 179, .55), transparent 42%), linear-gradient(120deg, #13296b 0%, #1b2a7a 55%, #1f4fb8 100%); box-shadow: var(--shadow); }
.erk-sch-hero::after { content: ""; position: absolute; right: -60px; bottom: -90px; width: 280px; height: 280px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .05); pointer-events: none; }
.erk-sch-hero__kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .12); font-size: 13px; font-weight: 600; letter-spacing: .2px; }
.erk-sch-hero__kicker .ei { width: 16px; height: 16px; color: #7ee0d9; }
.erk-sch-hero h1 { margin: 14px 0 0; font-size: 42px; line-height: 1.1; font-weight: 800; letter-spacing: -.6px; color: #fff; }
.erk-sch-hero p { max-width: 620px; margin-top: 12px; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, .82); }
.erk-sch-hero__stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(128px, auto)); gap: 10px; }
.erk-sch-hero__stats li { padding: 14px 18px; border-radius: 16px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(4px); }
.erk-sch-hero__stats b { display: block; font-size: 28px; line-height: 1.1; font-weight: 800; }
.erk-sch-hero__stats span { font-size: 13px; color: rgba(255, 255, 255, .75); }

/* Фильтры */
.erk-sch-filters { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: -22px; margin-inline: 20px; padding: 16px; background: #fff; border-radius: 18px; box-shadow: 0 10px 30px rgba(27, 42, 122, .12); }
.erk-sch-filters__q { position: relative; flex: 1 1 300px; display: flex; align-items: center; }
.erk-sch-filters__q .ei { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--muted); }
.erk-schools input[type=search] { width: 100%; height: 46px; margin: 0; padding: 0 14px 0 42px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); font-size: 15px; color: var(--navy); outline: none; transition: border-color .2s, background .2s; }
.erk-schools input[type=search]:focus { border-color: #8fb3f5; background: #fff; }
.erk-sch-seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--bg); }
.erk-sch-seg button { height: 38px; padding: 0 14px; border: 0; border-radius: 9px; background: none; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.erk-sch-seg button:hover { color: var(--navy); }
.erk-sch-seg button.is-on { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(27, 42, 122, .1); }
.erk-sch-select { position: relative; display: inline-flex; align-items: center; }
.erk-sch-select .ei { position: absolute; left: 12px; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.erk-schools select { height: 46px; padding: 0 34px 0 38px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%236d7899' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; font-size: 14px; font-weight: 500; color: var(--navy); cursor: pointer; -webkit-appearance: none; appearance: none; }
.erk-sch-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--navy); cursor: pointer; user-select: none; }
.erk-sch-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--teal); }
.erk-sch-chips { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; padding-top: 12px; border-top: 1px solid var(--line); }
.erk-sch-chips button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; transition: all .2s; }
.erk-sch-chips button i { font-style: normal; font-weight: 500; color: var(--muted); }
.erk-sch-chips button:hover { border-color: #9dbcf4; color: var(--navy); }
.erk-sch-chips button.is-on { border-color: var(--navy); background: var(--navy); color: #fff; }
.erk-sch-chips button.is-on i { color: rgba(255, 255, 255, .7); }

.erk-sch-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 26px 4px 14px; }
.erk-sch-count { font-size: 15px; color: var(--muted); }
.erk-sch-count b { color: var(--navy); }
.erk-sch-sort { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.erk-sch-sort select { height: 40px; padding-left: 14px; }

/* Карточка школы */
.erk-sch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.erk-sc { min-width: 0; }
.erk-sc__link { display: flex; flex-direction: column; height: 100%; padding: 20px; background: #fff; border: 1px solid transparent; border-radius: 18px; box-shadow: var(--shadow); color: var(--ink); }
.erk-sc__link:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); border-color: #dbe6f8; }
.erk-sc__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.erk-sc__mono { display: inline-grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 14px; font-size: 15px; font-weight: 800; letter-spacing: -.3px; color: #fff; }
.erk-sc__mono.is-state { background: linear-gradient(135deg, #3d8bff, #1f63e0); }
.erk-sc__mono.is-private { background: linear-gradient(135deg, #a678f2, #7a3fe0); }
.erk-sc__mono.is-big { width: 84px; height: 84px; border-radius: 22px; font-size: 24px; }
.erk-sc__mono.is-small { width: 40px; height: 40px; border-radius: 11px; font-size: 12px; }
.erk-sc__tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.erk-tag { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 99px; background: var(--bg); font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.erk-tag .ei { width: 14px; height: 14px; }
.erk-tag.is-state { background: var(--state-bg); color: var(--state); }
.erk-tag.is-private { background: var(--priv-bg); color: var(--priv); }
.erk-tag.is-fee { background: #fff4d8; color: #b77900; }
.erk-sc__name { margin-top: 14px; font-size: 17px; line-height: 1.3; font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.erk-sc__dist { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.erk-sc__dist .ei { width: 15px; height: 15px; }
.erk-sc__rows { display: flex; flex-direction: column; gap: 8px; flex: 1; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.erk-sc__rows > span { display: flex; gap: 10px; font-size: 14px; line-height: 1.4; color: var(--ink); }
.erk-sc__rows .ei { width: 18px; height: 18px; margin-top: 1px; color: #7c8bb3; }
.erk-sc__rows .is-fee { font-weight: 700; color: var(--navy); }
.erk-sc__rows .is-fee .ei { color: #e0a100; }
.erk-sc__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--blue); }
.erk-sc__more .ei { width: 16px; height: 16px; transition: transform .2s; }
.erk-sc__link:hover .erk-sc__more .ei { transform: translateX(4px); }

.erk-sch-more { display: flex; justify-content: center; margin-top: 26px; }
.erk-sch-more .erk-btn--line { width: auto; height: 48px; padding: 0 36px; background: #fff; }
.erk-sch-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 56px 20px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); text-align: center; }
.erk-sch-empty > .ei { width: 40px; height: 40px; color: #b5c3e0; }
.erk-sch-empty b { font-size: 19px; color: var(--navy); }
.erk-sch-empty p { color: var(--muted); }
.erk-sch-empty .erk-btn { margin-top: 10px; }
.erk-sch-note { display: flex; gap: 14px; margin-top: 36px; padding: 20px 24px; border-radius: 16px; background: #eef4fd; font-size: 14px; line-height: 1.55; color: var(--ink); }
.erk-sch-note > .ei { width: 22px; height: 22px; margin-top: 1px; color: var(--blue); }
.erk-sch-note p + p { margin-top: 6px; }
.erk-sch-note a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Фото в карточке */
.erk-sc__link.has-photo { padding-top: 0; overflow: hidden; }
.erk-sc__photo { display: block; width: calc(100% + 40px); max-width: none; height: 170px; margin: 0 -20px 16px; object-fit: cover; }

/* Страница школы */
.erk-sp-photo { position: relative; margin: 0 0 20px; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.erk-sp-photo img { display: block; width: 100%; height: 380px; object-fit: cover; }
.erk-sp-photo figcaption { position: absolute; right: 12px; bottom: 10px; padding: 4px 10px; border-radius: 99px; background: rgba(0, 0, 0, .45); font-size: 12px; color: #fff; }
.erk-schools .erk-sp-photo figcaption a { color: #fff; text-decoration: underline; }
.erk-sp-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 30px 32px; background: #fff; border-radius: 22px; box-shadow: var(--shadow); }
.erk-sp-head .erk-sc__tags { justify-content: flex-start; }
.erk-sp-head h1 { margin: 12px 0 0; font-size: 34px; line-height: 1.15; font-weight: 800; letter-spacing: -.4px; color: var(--navy); overflow-wrap: anywhere; }
.erk-sp-head__alt { margin-top: 6px; font-size: 15px; color: var(--muted); }
.erk-sp-head__actions { display: flex; flex-direction: column; gap: 10px; }
.erk-sp-head__actions .erk-btn .ei { width: 18px; height: 18px; }
.erk-sp-head__actions .erk-btn:hover .ei { transform: none; }
a.erk-tag.is-dist:hover { background: #e3ecfb; color: var(--blue); }

.erk-sp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; margin-top: 24px; }
.erk-sp-main, .erk-sp-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.erk-sp-card { padding: 26px 28px; background: #fff; border-radius: 20px; box-shadow: var(--shadow); }
.erk-sp-card h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 20px; line-height: 1.25; font-weight: 700; color: var(--navy); }
.erk-sp-card h2 .ei { width: 22px; height: 22px; color: var(--teal); }
.erk-sp-card h2 small { margin-left: auto; padding: 4px 10px; border-radius: 99px; background: var(--bg); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.erk-sp-src { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.erk-sp-src a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.erk-sp-fees { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.erk-sp-fee { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(160deg, #fffaf0, #fff4dc); border: 1px solid #f7e6bd; }
.erk-sp-fee__grade { font-size: 13.5px; font-weight: 600; color: #8a6a1f; }
.erk-sp-fee__price { font-size: 22px; font-weight: 800; color: var(--navy); }
.erk-sp-fee__price small { font-size: 13px; font-weight: 500; color: var(--muted); }
.erk-sp-fee__cond { font-size: 12.5px; line-height: 1.45; color: #6b6f80; }

.erk-sp-addrs { display: flex; flex-direction: column; gap: 12px; }
.erk-sp-addrs li { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 14px; background: var(--bg); }
.erk-sp-addrs__kind { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.erk-sp-addrs b { font-size: 16px; font-weight: 600; color: var(--navy); }
.erk-sp-addrs__cap { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink); }
.erk-sp-addrs__cap .ei { width: 16px; height: 16px; color: var(--teal); }
.erk-schools .erk-sp-map { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 4px; font-size: 13.5px; font-weight: 600; color: var(--blue); }
.erk-sp-map .ei { width: 13px; height: 13px; }
.erk-schools .erk-sp-map:hover { color: var(--navy); }

.erk-sp-dl { display: grid; gap: 0; margin: 0; }
.erk-sp-dl div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.erk-sp-dl div:last-child { border-bottom: 0; }
.erk-sp-dl dt { font-size: 14px; color: var(--muted); }
.erk-sp-dl dd { margin: 0; font-size: 14.5px; font-weight: 500; color: var(--navy); overflow-wrap: anywhere; }
.erk-sp-sources ul { display: flex; flex-wrap: wrap; gap: 8px; }
.erk-sp-sources a { display: inline-flex; height: 32px; align-items: center; padding: 0 12px; border-radius: 99px; background: var(--bg); font-size: 13px; font-weight: 600; color: var(--ink); }
.erk-schools .erk-sp-sources a:hover { background: #e3ecfb; color: var(--blue); }

.erk-sp-contacts ul { display: flex; flex-direction: column; gap: 12px; }
.erk-sp-contacts li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.erk-sp-contacts li .ei { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: #e0f5f3; color: var(--teal); }
.erk-schools .erk-sp-contacts a:hover { color: var(--blue); }
.erk-sp-near ul { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.erk-sp-near li a { display: flex; align-items: center; gap: 12px; padding: 8px; margin: 0 -8px; border-radius: 12px; }
.erk-schools .erk-sp-near li a:hover { background: var(--bg); }
.erk-sp-near b { display: block; font-size: 14px; line-height: 1.3; font-weight: 600; color: var(--navy); }
.erk-sp-near small { font-size: 12.5px; color: var(--muted); }
.erk-sp-owner { background: linear-gradient(150deg, #13296b, #1f4fb8); color: #fff; }
.erk-sp-owner b { font-size: 18px; }
.erk-sp-owner p { margin-top: 6px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .8); }
.erk-sp-owner__btns { display: flex; gap: 8px; margin-top: 16px; }
.erk-sp-owner__btns a { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 8px; height: 42px; border-radius: 11px; background: rgba(255, 255, 255, .12); font-size: 14px; font-weight: 600; color: #fff; }
.erk-sp-owner__btns .ei { width: 18px; height: 18px; }
.erk-schools .erk-sp-owner__btns a:hover { background: #fff; color: var(--navy); }

@media (max-width: 1180px) {
	.erk-sch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.erk-sp-head { grid-template-columns: auto minmax(0, 1fr); }
	.erk-sp-head__actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 1080px) {
	.erk-sch-hero { grid-template-columns: 1fr; }
	.erk-sch-hero__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.erk-sp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	.erk-schools { padding-bottom: 32px; }
	.erk-sch-hero { padding: 26px 20px 44px; border-radius: 18px; gap: 20px; }
	.erk-sch-hero h1 { font-size: 30px; }
	.erk-sch-hero p { font-size: 15px; }
	.erk-sch-hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.erk-sch-hero__stats li { padding: 10px 14px; }
	.erk-sch-hero__stats b { font-size: 22px; }
	.erk-sch-filters { position: static; margin-inline: 0; padding: 12px; gap: 10px; }
	.erk-sch-filters__q { flex-basis: 100%; }
	.erk-sch-seg { width: 100%; }
	.erk-sch-seg button { flex: 1; padding: 0 6px; font-size: 13px; }
	.erk-sch-select { flex: 1 1 100%; }
	.erk-sch-check { flex-basis: 100%; }
	.erk-sch-select select { width: 100%; }
	.erk-sch-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 12px 12px 2px; scrollbar-width: none; }
	.erk-sch-chips::-webkit-scrollbar { display: none; }
	.erk-sch-chips button { flex: none; }
	.erk-sch-bar { flex-wrap: wrap; margin-top: 18px; }
	.erk-sch-grid { grid-template-columns: 1fr; gap: 12px; }
	.erk-sc__link { padding: 16px; }
	.erk-sch-note { padding: 16px; }
	.erk-sp-head { grid-template-columns: 1fr; padding: 22px 18px; gap: 14px; }
	.erk-sc__mono.is-big { width: 64px; height: 64px; font-size: 19px; border-radius: 18px; }
	.erk-sp-head h1 { font-size: 25px; }
	.erk-sp-head__actions .erk-btn { flex: 1; padding: 0 14px; }
	.erk-sp-card { padding: 20px 18px; }
	.erk-sp-photo img { height: 220px; }
	.erk-sc__photo { width: calc(100% + 32px); margin: 0 -16px 14px; height: 160px; }
	.erk-sp-dl div { grid-template-columns: 1fr; gap: 2px; }
}
