/* ==========================================================
   «Арман - M school»: сайттың негізгі стильдері
   Түстер мен өлшемдер variables.css ішіндегі айнымалылардан алынады
   ========================================================== */

.ic { flex: none; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header__bar { display: flex; align-items: center; gap: var(--space-4); min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 12px; flex: none; color: var(--ink-900); }
.logo:hover { text-decoration: none; }
.logo img { width: auto; height: 54px; }
.logo__text { display: none; }   /* логотиптің ішінде атауы бар; суретсіз болса ғана көрінеді */
.logo:not(:has(img)) .logo__text { display: grid; line-height: 1.15; }
.logo__text strong { font-size: 1.15rem; color: var(--navy-900); }
.logo__text small { font-size: var(--fs-xs); color: var(--ink-600); }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 11px; border: 0; border-radius: var(--radius-sm);
  background: none; color: var(--ink-900); font: 600 0.9rem/1.2 var(--font); white-space: nowrap; cursor: pointer; position: relative;
}
.nav__link:hover { color: var(--blue-500); text-decoration: none; }
.nav__link.is-active, .nav__sub.is-active > .nav__link { color: var(--blue-500); }
.nav__link.is-active::after, .nav__sub.is-active > .nav__link::after {
  content: ''; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--blue-500);
}
.nav__sub { position: relative; }
.nav__drop {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px; padding: 8px; display: none;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-float);
}
.nav__sub:hover .nav__drop, .nav__sub:focus-within .nav__drop, .nav__sub.is-open .nav__drop { display: grid; }
.nav__sub::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }   /* тышқан түсіп кетпеуі үшін */
.nav__drop a { padding: 9px 12px; border-radius: var(--radius-sm); color: var(--ink-900); font-weight: 500; font-size: var(--fs-sm); }
.nav__drop a:hover, .nav__drop a[aria-current] { background: var(--blue-100); color: var(--blue-500); text-decoration: none; }
.nav__mobile-extra { display: none; }

.header__tools { display: flex; align-items: center; gap: 6px; flex: none; }
.iconbtn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line);
  border-radius: 50%; background: var(--white); color: var(--navy-900); cursor: pointer; transition: border-color .2s, color .2s;
}
.iconbtn:hover { border-color: var(--blue-500); color: var(--blue-500); }
.iconbtn[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.burger { display: none; }

.search { border-top: 1px solid var(--line); background: var(--sky-50); }
.search__row { display: flex; gap: 8px; padding-block: 12px; }
.search input { flex: 1; min-width: 0; padding: 11px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }

/* ---------- Ортақ элементтер ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--blue-500); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.kicker::before { content: ''; width: 22px; height: 3px; border-radius: 3px; background: var(--blue-500); }
.kicker--light { color: var(--cyan-400); }
.kicker--light::before { background: var(--cyan-400); }
.section--white { background: var(--white); }
.section--tint { background: linear-gradient(180deg, var(--sky-50), var(--blue-100)); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: var(--space-4); }
.section__head h2 { margin: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--fs-sm); }
.link-arrow .ic { transition: transform .2s; }
.link-arrow:hover .ic { transform: translateX(3px); }
.empty { padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius-md); background: var(--white); text-align: center; color: var(--ink-600); max-width: none; }
.center { text-align: center; }

/* Сурет жоқ кездегі орын: панельден сурет жүктелгенде ауысады */
.ph {
  display: grid; place-items: center; width: 100%; height: 100%; min-height: 120px; color: rgba(255,255,255,.85);
  background:
    radial-gradient(circle at 78% 18%, rgba(56,198,244,.55), transparent 42%),
    radial-gradient(circle at 12% 92%, rgba(255,255,255,.18), transparent 38%),
    linear-gradient(135deg, var(--blue-500), var(--navy-800));
}
.ph .ic { width: 44px; height: 44px; opacity: .9; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy-900); color: var(--on-dark); padding: clamp(40px, 6vw, 72px) 0 clamp(88px, 10vw, 120px); }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 85% 0%, rgba(26,77,255,.35), transparent 55%); pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { color: var(--on-dark); margin-bottom: 20px; overflow-wrap: break-word; }
.hero__lead { color: var(--on-dark-soft); font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 34rem; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.collage { position: relative; display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 1.25; min-width: 0; }
.collage__cell { position: relative; z-index: 1; overflow: hidden; border-radius: var(--radius-md); background: var(--navy-800); }
.collage__cell > img, .collage__cell > .ph { width: 100%; height: 100%; object-fit: cover; }
.collage__cell--1 { grid-column: 1; grid-row: 1 / 3; }
.collage__cell--2 { grid-column: 2 / 4; grid-row: 1; }
.collage__cell--3 { grid-column: 2; grid-row: 2; }
.collage__cell--4 { grid-column: 3; grid-row: 2; }
.collage__cell--2 .ph { background: linear-gradient(135deg, var(--navy-700), var(--blue-500)); }
.collage__cell--3 .ph { background: linear-gradient(160deg, var(--cyan-400), var(--blue-500)); }
.collage__cell--4 .ph { background: linear-gradient(135deg, var(--blue-400), var(--navy-700)); }
.collage__arc { position: absolute; z-index: 0; left: -9%; bottom: 6%; width: 34%; aspect-ratio: 1; border-radius: 100% 0 0 0; background: var(--blue-500); }
.collage__ring { position: absolute; z-index: 2; right: -4%; top: -6%; width: 18%; aspect-ratio: 1; border: 5px solid var(--blue-500); border-radius: 50%; }

/* ---------- Санау блогы ---------- */
.stats-wrap { position: relative; z-index: 3; margin-top: clamp(-64px, -6vw, -48px); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-float); overflow: hidden; }
.stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats--1 { grid-template-columns: 1fr; }
.stats__item { padding: 24px 28px; border-left: 1px solid var(--line); }
.stats__item:first-child { border-left: 0; }
.stats dt { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; line-height: 1.1; color: var(--blue-500); }
.stats dd { margin: 6px 0 0; color: var(--ink-600); font-size: var(--fs-sm); line-height: 1.4; }

/* ---------- Артықшылықтар ---------- */
.adv__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.adv__head p { font-size: 1.05rem; }
.adv__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.adv-card { display: grid; grid-template-columns: auto auto 1fr; gap: 14px; align-items: start; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-card); transition: transform .2s, box-shadow .2s; }
.adv-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-float); }
.adv-card__num { font-size: 2rem; font-weight: 800; line-height: 1; color: var(--blue-200); }
.adv-card__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--blue-100); color: var(--blue-500); }
.adv-card h3 { font-size: 1.02rem; margin: 0 0 6px; }
.adv-card p { font-size: var(--fs-sm); margin: 0; }

/* ---------- Директор сөзі ---------- */
.director { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(20px, 3vw, 36px); background: var(--white); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); }
.director__photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-lg); }
.director__photo > img, .director__photo > .ph { width: 100%; height: 100%; object-fit: cover; }
.director blockquote { margin: 0 0 20px; }
.director__quote { font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 700; line-height: 1.3; color: var(--navy-900); max-width: none; }
.director__sign { display: grid; gap: 2px; padding-left: 16px; border-left: 3px solid var(--blue-500); }
.director__sign strong { font-size: 1.1rem; }
.director__sign span { color: var(--ink-600); font-size: var(--fs-sm); }

/* ---------- Білім беру деңгейлері ---------- */
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.level { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-md); background: var(--blue-500); color: var(--white); box-shadow: var(--shadow-card); transition: transform .2s, box-shadow .2s; }
.level:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-float); }
.level__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.level__img > img, .level__img > .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.level:hover .level__img > img { transform: scale(1.04); }
.level__bar { display: flex; align-items: center; gap: 14px; padding: 16px 20px; }
.level__text { flex: 1; display: grid; line-height: 1.25; }
.level__text strong { font-size: 1.05rem; }
.level__text small { color: rgba(255,255,255,.92); font-size: var(--fs-xs); }
.level__go { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.18); }

/* ---------- Жаңалықтар ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.news-card { display: flex; flex-direction: column; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); color: var(--ink-900); box-shadow: var(--shadow-card); transition: transform .2s, box-shadow .2s; }
.news-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-float); }
.news-card__img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--blue-100); }
.news-card__img > img, .news-card__img > .ph { width: 100%; height: 100%; object-fit: cover; }
.tag { position: absolute; left: 12px; top: 12px; padding: 4px 12px; border-radius: 999px; background: var(--white); color: var(--navy-900); font-size: var(--fs-xs); font-weight: 600; box-shadow: 0 2px 8px rgba(10,26,68,.12); }
.tag--inline { position: static; display: inline-block; margin-bottom: 12px; }
.news-card__body { display: grid; gap: 8px; padding: 18px 20px 22px; }
.news-card time { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-400); font-size: var(--fs-xs); }
.news-card__title { font-size: 1.08rem; line-height: 1.3; overflow-wrap: anywhere; }
.news-card:hover .news-card__title { color: var(--blue-500); }
.news-card__sum { color: var(--ink-600); font-size: var(--fs-sm); }

/* ---------- Басты беттегі «Өзін-өзі бағалау» ---------- */
.sa-promo { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.sa-promo__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.sa-promo__list a { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; height: 100%; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); color: var(--ink-900); transition: border-color .2s, transform .2s; }
.sa-promo__list a:hover { text-decoration: none; border-color: var(--blue-500); transform: translateY(-2px); }
.sa-promo__num { grid-row: 1 / 3; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--blue-100); color: var(--blue-500); font-weight: 800; }
.sa-promo__title { font-weight: 600; font-size: var(--fs-sm); line-height: 1.3; overflow-wrap: anywhere; }
.sa-promo__list small { color: var(--ink-400); font-size: var(--fs-xs); }

/* ---------- Байланыс карточкалары ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.contact-card { padding: 22px; background: var(--sky-50); border: 1px solid var(--line); border-radius: var(--radius-md); }
.contact-card__ic { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 14px; background: var(--blue-500); color: var(--white); }
.contact-card h3 { font-size: 1rem; margin-bottom: 6px; }
.contact-card p { margin: 0; font-size: var(--fs-sm); overflow-wrap: anywhere; }

/* ---------- Қабылдау блогы (CTA) ---------- */
.cta { position: relative; overflow: hidden; background: var(--navy-900); color: var(--on-dark); padding-top: clamp(48px, 6vw, 72px); }
.cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 100% 100%, rgba(26,77,255,.45), transparent 50%); pointer-events: none; }
.cta__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px) minmax(0, .8fr); gap: clamp(24px, 3vw, 40px); align-items: end; }
.cta__grid--noform { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.cta__text { align-self: center; padding-bottom: clamp(48px, 6vw, 72px); }
.cta h2 { color: var(--on-dark); }
.cta__text p { color: var(--on-dark-soft); }
.cta__photo { align-self: stretch; min-height: 280px; overflow: hidden; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.cta__photo > img, .cta__photo > .ph { width: 100%; height: 100%; object-fit: cover; }
.apply { align-self: center; margin-bottom: clamp(48px, 6vw, 72px); display: grid; gap: 12px; padding: 24px; background: var(--white); color: var(--ink-900); border-radius: var(--radius-lg); box-shadow: var(--shadow-float); }
.apply h3 { margin: 0 0 4px; }
.field { position: relative; display: block; }
.field > .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-400); pointer-events: none; }
.field input, .field select { width: 100%; min-height: 48px; padding: 10px 14px 10px 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--sky-50); color: var(--ink-900); }
.field input:focus, .field select:focus { border-color: var(--blue-500); background: var(--white); }
.apply .btn { width: 100%; }
.apply__note { color: var(--ink-400); font-size: var(--fs-xs); text-align: center; }
.apply__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.apply__msg { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); font-size: var(--fs-sm); max-width: none; }
.apply__msg--ok { background: #e7f7ee; color: #0b6b37; }
.apply__msg--error { background: #fdecec; color: #a32020; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: var(--on-dark-soft); padding-top: clamp(40px, 5vw, 64px); font-size: var(--fs-sm); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 32px; padding-bottom: 32px; }
.footer h2 { margin: 0 0 14px; color: var(--on-dark); font-size: 1rem; }
.footer a { color: var(--on-dark-soft); }
.footer a:hover { color: var(--on-dark); }
.footer__grid > div > a, .footer__grid > nav > a, .footer__grid > div > span { display: flex; align-items: flex-start; gap: 8px; padding: 4px 0; }
.footer__grid .ic { margin-top: 3px; }
.footer__grid > .footer__about > a.footer__logo { display: inline-block; margin-bottom: 14px; padding: 0; }
.footer__grid > .footer__links > a { display: block; }
.footer__links .ic { display: inline; margin: 0 0 0 4px; vertical-align: -1px; }
.footer__logo img { height: 64px; width: auto; }
.footer__about p { color: var(--on-dark-soft); }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--on-dark-line); border-radius: 50%; }
.socials a:hover { background: var(--blue-500); border-color: var(--blue-500); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 18px; border-top: 1px solid var(--on-dark-line); }
.totop { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--on-dark-line); border-radius: 50%; flex: none; }

/* ---------- Ішкі беттер ---------- */
.page-head { position: relative; overflow: hidden; background: var(--navy-900); color: var(--on-dark); padding: clamp(32px, 5vw, 56px) 0; }
.page-head::after { content: ''; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border: 28px solid rgba(26,77,255,.45); border-radius: 50%; pointer-events: none; }
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { color: var(--on-dark); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 8px; overflow-wrap: anywhere; }
.page-head p { color: var(--on-dark-soft); margin: 0; }
.crumbs { margin-bottom: 14px; font-size: var(--fs-sm); color: var(--on-dark-soft); }
.crumbs a { color: var(--on-dark); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink-900); font-size: var(--fs-sm); font-weight: 600; }
.chip:hover { border-color: var(--blue-500); color: var(--blue-500); text-decoration: none; }
.chip.is-active { background: var(--blue-500); border-color: var(--blue-500); color: var(--white); }
.news-search { display: flex; gap: 8px; margin-bottom: 18px; max-width: 520px; }
.news-search input { flex: 1; min-width: 0; padding: 11px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 32px; }
.pager a, .pager span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--ink-900); font-weight: 600; }
.pager a:hover { border-color: var(--blue-500); text-decoration: none; }
.pager a.is-active { background: var(--blue-500); border-color: var(--blue-500); color: var(--white); }

.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.article { padding: clamp(20px, 3vw, 40px); }
.side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 10px; }
.side h2 { font-size: 1.1rem; margin: 0 0 4px; }
.side-link { display: grid; gap: 4px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); color: var(--ink-900); }
.side-link:hover { border-color: var(--blue-500); text-decoration: none; }
.side-link small { color: var(--ink-400); }
.side-link span { font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }

.prose { font-size: 1.05rem; line-height: 1.75; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-900); max-width: none; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose img { border-radius: var(--radius-sm); margin: 1em 0; height: auto; }
.prose blockquote { margin: 1.2em 0; padding: 12px 20px; border-left: 4px solid var(--blue-500); background: var(--blue-100); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.prose td, .prose th { padding: 8px 12px; border: 1px solid var(--line); }
.prose a { text-decoration: underline; }

.info-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.info-card { padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.info-card .adv-card__icon { margin-bottom: 14px; }
.info-card h2 { font-size: 1.2rem; margin-bottom: 8px; }
.info-card p { margin: 0; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Көзі нашар көретіндерге ---------- */
html.a11y { font-size: 125%; }
html.a11y body { background: var(--white); }
html.a11y { --ink-600: #1a2440; --ink-400: #2e3a5c; --line: #8e9bbb; --blue-500: #0030c8; --on-dark-soft: #ffffff; }
html.a11y p, html.a11y li, html.a11y dd, html.a11y small { color: var(--ink-900); }
html.a11y .hero p, html.a11y .cta p, html.a11y .page-head p, html.a11y .footer p, html.a11y .footer a, html.a11y .footer span { color: var(--on-dark); }
html.a11y a:not(.btn):not(.nav__link):not(.news-card):not(.level):not(.chip) { text-decoration: underline; }
html.a11y .collage__arc, html.a11y .collage__ring, html.a11y .page-head::after { display: none; }
@media (min-width: 1241px) {   /* үлкен қаріпте мәзір логотиптің астына, жеке жолға түседі */
  html.a11y .header__bar { flex-wrap: wrap; align-content: flex-start; row-gap: 4px; padding-block: 8px 6px; }
  html.a11y .header__tools { margin-left: auto; }
  html.a11y .nav { order: 3; width: 100%; flex-wrap: wrap; margin-left: -11px; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1240px) {
  .burger { display: inline-grid; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 49; display: none; flex-direction: column; align-items: stretch;
    gap: 2px; margin: 0; padding: 16px; overflow-y: auto; background: var(--white); border-top: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .header__tools { margin-left: auto; }
  .nav__link { justify-content: space-between; width: 100%; padding: 14px 12px; font-size: 1rem; white-space: normal; text-align: left; }
  .nav__link.is-active::after, .nav__sub.is-active > .nav__link::after { display: none; }
  .nav__link.is-active, .nav__sub.is-active > .nav__link { background: var(--blue-100); }
  .nav__drop { position: static; display: none; min-width: 0; padding: 0 0 6px 12px; border: 0; box-shadow: none; }
  .nav__sub:hover .nav__drop, .nav__sub:focus-within .nav__drop { display: none; }
  .nav__sub.is-open .nav__drop { display: grid; }
  .nav__sub::after { display: none; }
  .nav__drop a { padding: 12px; font-size: 1rem; }
  .nav__mobile-extra { display: grid; gap: 8px; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
  .nav__mobile-extra a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-weight: 600; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 1100px) {
  .adv__grid, .sa-promo { grid-template-columns: 1fr; }
  .cta__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); }
  .cta__photo { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .collage { max-width: 620px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats__item:nth-child(3) { border-left: 0; }
  .stats--3 .stats__item:nth-child(3) { border-left: 1px solid var(--line); }
  .stats__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats--3 .stats__item:nth-child(n+3) { border-top: 0; }
  .director { grid-template-columns: 1fr; }
  .director__photo { max-width: 300px; }
  .levels, .news-grid, .info-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-grid { grid-template-columns: 1fr; }
  .side { position: static; }
  .cta__grid, .cta__grid--noform { grid-template-columns: 1fr; }
  .cta__text { padding-bottom: 0; }
}
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .header__bar { gap: 12px; }
  .logo img { height: 44px; }
  .iconbtn { width: 40px; height: 40px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .collage { gap: 8px; }
  .collage__ring { border-width: 4px; }
  .stats--3 { grid-template-columns: 1fr; }
  .stats--3 .stats__item { border-left: 0 !important; border-top: 1px solid var(--line) !important; }
  .stats--3 .stats__item:first-child { border-top: 0 !important; }
  .stats__item { padding: 18px; }
  .adv__cards, .levels, .news-grid, .info-cards, .contact-cards { grid-template-columns: 1fr; }
  .adv-card { grid-template-columns: auto 1fr; }
  .adv-card__num { grid-row: 1; }
  .adv-card__icon { grid-row: 1; justify-self: end; }
  .adv-card > div { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .footer__bottom { flex-direction: row; font-size: var(--fs-xs); }
  .apply { padding: 18px; }
  .search__row .btn { padding-inline: 14px; }
}
.contact-card h2.h3 { font-size: 1rem; margin-bottom: 6px; }
