/* ============================================================
   Azbuka Pro — marketing site stylesheet.
   Built on top of the brand design system (../design/styles.css).
   ============================================================ */
/* Токены и базовые стили подключаются напрямую в <head> каждой страницы
   (параллельно, без @import-водопада) — это устраняет FOUC. */

/* ---------- Reset-lite ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Always reserve the vertical scrollbar so the usable width stays constant
     across pages. Without this, short pages (no scrollbar) are ~15px wider
     than tall pages (scrollbar present), so centered containers and full-width
     patterns shift sideways when navigating — reads as a layout "jump". */
  scrollbar-gutter: stable;
  overflow-y: scroll;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

/* Playfair Display defaults to oldstyle figures, so digits sit at uneven
   heights (8 rides high; 3,4,5,7,9 dip below the baseline). Force lining
   figures site-wide so every number aligns on the baseline — consistent
   across Playfair (display/stats) and Manrope (UI/body). */
body { font-variant-numeric: lining-nums; }

/* Фон документа — фирменный тёмно-синий, чтобы при полной перезагрузке не
   мелькал белый экран. Это статичный цвет, а не анимация. */
html { background: var(--az-navy-900); }

/* On touch devices a stray sub-pixel of horizontal overflow lets the page
   rubber-band sideways, exposing a strip of the navy html ground as a "blue
   line" at the right edge. Clip horizontal overflow to kill the drag. `clip`
   (not `hidden`/`auto`) does NOT create a scroll container, so the sticky
   header keeps working. */
body { overflow-x: clip; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 32px;
}
section { position: relative; }
.section-pad { padding: var(--sp-10) 0; }
@media (max-width: 720px) {
  .section-pad { padding: 56px 0; }
  .container { padding: 0 20px; }
}

.bg-navy  { background: var(--az-navy-900); }
.bg-ivory { background: var(--az-ivory); }
.bg-ivory-50 { background: var(--az-ivory-50); }
.bg-grad-navy { background: var(--az-grad-navy); }
.bg-grad-hero { background: var(--az-grad-hero); }

/* Decorative patterns live on a ::before background layer, never as a
   sibling of content — this guarantees buttons/cards always paint above
   them regardless of DOM order, so a pattern can never visually land on
   top of a solid UI element (button, card, form). */
.has-pattern { position: relative; isolation: isolate; }
.has-pattern::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--pattern-img);
  /* The pattern SVGs are full 1920×1080 artworks with fine ~1.2px gold
     strokes. `cover` scaled that whole artwork down to fit small/short
     sections (badly on mobile), so the strokes fell below one device pixel
     and the fine grid/mesh lines shimmered (moiré). Tiling the artwork at its
     native 1:1 scale instead keeps every stroke crisp and the texture density
     constant across every section and screen size. */
  background-repeat: repeat;
  background-size: auto;
  /* Стык плитки. При `top center` полотно центрируется, и оба боковых края
     режут мотив посередине — на тёмных секциях был виден обрубок дуги слева.
     Привязка к левому верхнему углу гарантирует, что плитка всегда начинается
     с целого мотива (все узоры нарисованы от x=0, y=0). */
  background-position: top left;
  opacity: var(--pattern-opacity, 0.4);
  pointer-events: none;
  z-index: 0;
}
.has-pattern > * { position: relative; z-index: 1; }

.pattern-emblem { --pattern-img: url('../design/assets/patterns/pff59h7000k31.svg'); }
/* Дуги: исходное полотно 1920×1080 не кратно шагу мотива (66×33), поэтому при
   повторе получался разрыв. Обрезано до 1914×1056 — ровно 29×32 мотива, стык
   сходится без шва. */
.pattern-arcs   { --pattern-img: url('../design/assets/patterns/arcs-seamless.svg'); }
.pattern-waves  { --pattern-img: url('../design/assets/patterns/infwsuxel49jv.svg'); }
.pattern-grid   { --pattern-img: url('../design/assets/patterns/bkl5lnxlefn7o.svg'); }
.pattern-mesh   { --pattern-img: url('../design/assets/patterns/ey7yxnn19zybv.svg'); }

/* Solid backing behind running text that sits on a pattern — same card
   language as .card--navy (the value cards), so the pattern never fights
   with letterforms for contrast. */
.scrim-panel {
  background: var(--az-navy-800);
  box-shadow: inset 0 0 0 1px var(--az-border-gold-16);
  border-radius: var(--r-card-lg);
  padding: 30px 34px;
}
@media (max-width: 560px) { .scrim-panel { padding: 22px 22px; } }

/* Crisp seam between two directly-adjacent patterned navy sections, so
   busy textures don't blend into one another at the boundary. */
.section-seam { border-top: 1px solid var(--az-border-gold-16); }

/* ---------- Eyebrow / section head ---------- */
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.section-head--center .section-kicker { justify-content: center; }
.section-kicker__index { font-family: var(--font-display); font-size: 15px; letter-spacing: 1.2px; color: var(--az-gold-500); }
.section-kicker__rule { width: 30px; height: 1px; background: var(--az-gold-500); }
.section-head h2 {
  font-weight: 600; font-size: var(--t-h2); line-height: var(--lh-h2);
  margin: 0;
}
.section-head--on-navy h2 { color: #fff; }
.section-head p {
  font-family: var(--font-sans); font-size: 16px; line-height: 1.7;
  margin-top: 14px; max-width: 560px;
}
.section-head--center p { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--az-warm-gray); }
.section-head--on-navy p { color: var(--az-blue-muted); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,29,54,0.97);
  border-bottom: 1px solid var(--az-border-gold-16);
  --pattern-opacity: 0.14;
}
.site-header__inner {
  display: flex; align-items: center; gap: 22px;
  padding: 14px 28px; flex-wrap: nowrap;
}
.site-logo { display: flex; align-items: center; gap: 13px; text-decoration: none; flex-shrink: 0; }
.site-logo img { height: 44px; width: auto; flex-shrink: 0; }
.site-logo__text { display: flex; flex-direction: column; line-height: 1.12; }
.site-logo__word {
  font-family: var(--font-display); font-weight: 700; font-size: 21px;
  color: #fff; letter-spacing: 0.5px; white-space: nowrap;
}
.site-logo__tag { font-family: var(--font-sans); font-size: 11.5px; color: var(--az-blue-muted); white-space: nowrap; }
/* ПРО-акроним как подпись под логотипом: золотые инициалы П·Р·О складываются
   в «ПРО» из строки выше, разделители — тоже золотые. Чуть мельче обычной
   подписи, чтобы строка целиком помещалась в шапке рядом с гербом. */
.site-logo__tag--pro { font-size: 10.5px; letter-spacing: 0.1px; }
.site-logo__tag--pro .pro-ini { color: var(--az-gold-400); font-weight: 700; }
.site-logo__tag--pro .pro-sep { color: var(--az-gold-500); font-weight: 700; margin: 0 5px; }

.site-nav { display: flex; align-items: center; gap: 19px; margin-left: auto; }
a.header-cta-mobile { display: none; }
.site-header__inner > .header-cta { flex-shrink: 0; white-space: nowrap; }
.site-nav a:not(.btn) {
  font-family: var(--font-sans); font-size: 15px; font-weight: 500; white-space: nowrap; flex-shrink: 0;
  color: var(--az-blue-muted); text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard);
}
.site-nav a:not(.btn):hover, .site-nav a:not(.btn).is-active { color: #fff; }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: none;
  width: 32px; height: 24px; position: relative; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px;
  background: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { top: 11px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1400px) {
  .site-header__inner .header-cta { display: none; }
  .site-nav {
    position: fixed; inset: 65px 0 0 0; margin: 0;
    flex-direction: column; gap: 0;
    background: var(--az-navy-900);
    padding: 12px 24px 32px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease-standard), transform .2s var(--ease-standard);
    border-top: 1px solid var(--az-border-gold-16);
  }
  .site-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  /* Scope the row padding/divider to real nav links only — the `.btn` CTA
     must keep its own pill padding (this rule used to win on specificity and
     zero out the button's horizontal padding, so the gold pill hugged its
     text). */
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--az-border-gold-16); }
  .site-nav a.header-cta-mobile { display: inline-flex; margin-top: 16px; padding: 13px 30px; border-bottom: none; }
  .nav-toggle { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 700; font-size: 14.5px;
  padding: 14px 26px; border-radius: var(--r-pill);
  border: none; cursor: pointer; text-decoration: none;
  transition: background var(--dur) var(--ease-standard), color var(--dur) var(--ease-standard), box-shadow var(--dur) var(--ease-standard), transform var(--dur-fast) ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn--sm { padding: 9px 18px; font-size: 13.5px; }
.btn--block { width: 100%; }
.btn--gold { background: var(--az-grad-gold); color: var(--az-navy-900); }
.btn--gold:hover { filter: brightness(1.05); }
.btn--primary { background: var(--az-navy-900); color: #fff; }
.btn--primary:hover { background: var(--az-navy-700); }
.btn--white { background: #fff; color: var(--az-navy-900); }
.btn--white:hover { background: var(--az-ivory-50); }
.btn--ghost { background: transparent; color: var(--az-gold-600); box-shadow: inset 0 0 0 1.5px var(--az-gold-400); }
.btn--ghost:hover { background: rgba(195,162,89,0.08); }
.btn--ghost-navy { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px var(--az-border-gold-25); }
.btn--ghost-navy:hover { background: rgba(230,214,173,0.08); }
.btn__arrow { transition: transform var(--dur) var(--ease-standard); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans); font-weight: 600; font-size: 12.5px;
  padding: 7px 16px; border-radius: var(--r-pill);
}
.badge--outline-navy { color: var(--az-gold-300); box-shadow: inset 0 0 0 1px var(--az-border-gold-25); }
.badge--ivory { background: var(--az-ivory); color: var(--az-gold-600); }

/* ---------- Cards ---------- */
.card {
  border-radius: var(--r-card-lg);
  padding: var(--sp-7);
}
.card--light { background: #fff; box-shadow: var(--stroke-card); }
.card--navy  { background: var(--az-navy-800); box-shadow: var(--stroke-card-navy); }
.card--ivory { background: var(--az-ivory-50); box-shadow: var(--stroke-card); }

.card-grid { display: grid; gap: 20px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .card-grid--3, .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .card-grid--2, .card-grid--3, .card-grid--4 { grid-template-columns: 1fr; }
}

.roman { font-family: var(--font-display); font-size: 26px; color: var(--az-gold-500); display: block; margin-bottom: 8px; }
.card-title { font-family: var(--font-display); font-weight: 600; font-size: 21px; margin: 6px 0 10px; }
.card--navy .card-title, .card--navy p { color: #fff; }
.card--navy p { color: var(--az-blue-muted); }
.card--light p, .card--ivory p { color: var(--az-warm-gray); }
.card p { font-size: 14.5px; line-height: 1.65; margin: 0; }
.card .emblem-icon { color: var(--az-gold-500); width: 32px; height: 32px; margin-bottom: 6px; }

/* ---------- Stats ---------- */
.stat-row { display: flex; gap: 48px; flex-wrap: wrap; }
.stat__value { font-family: var(--font-display); font-weight: 700; font-size: 34px; color: var(--az-gold-500); line-height: 1; }
.stat--light .stat__value { color: var(--az-gold-600); }
.stat__label { font-family: var(--font-sans); font-size: 13px; color: var(--az-blue-muted); margin-top: 6px; }
.stat--light .stat__label { color: var(--az-warm-gray); }

/* ---------- Hero ---------- */
.hero { overflow: hidden; }
.hero__inner {
  position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 56px; align-items: center;
  padding: 88px 0 72px;
}
.hero h1 {
  font-weight: 700; font-size: var(--t-display); line-height: var(--lh-display);
  color: #fff; margin: 22px 0 0;
}
.hero h1 em { color: var(--az-gold-500); font-style: italic; }
.hero__lead {
  font-family: var(--font-sans); font-size: 17px; line-height: 1.7;
  color: var(--az-blue-muted); max-width: 480px; margin: 20px 0 32px;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 48px; margin-top: 48px; flex-wrap: wrap; }
.hero__frame {
  display: flex; justify-content: center; align-items: center;
  background: rgba(255,255,255,0.03); border-radius: 18px;
  border: 1px solid transparent;
  padding: 40px;
  position: relative;
}
.corner-frame { position: relative; padding: 34px; }
.corner-frame::before, .corner-frame::after,
.corner-frame span::before, .corner-frame span::after {
  content: ""; position: absolute; width: 24px; height: 24px;
  border-color: var(--az-gold-500); border-style: solid; border-width: 0;
}
.corner-frame::before { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.corner-frame::after { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.corner-frame span::before { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.corner-frame span::after { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.hero__vertical-logo { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.hero__vertical-logo img { width: 88px; height: auto; }
.hero__vertical-logo .site-logo__word { color: var(--az-gold-500); font-size: 24px; }
.hero__vertical-logo .site-logo__tag { color: var(--az-blue-muted); }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; padding: 56px 0 48px; text-align: left; }
  .hero__frame { max-width: 280px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 38px; }
}

/* ---------- Page (interior) hero ---------- */
.page-hero {
  background: var(--az-grad-hero);
  padding: 64px 0 56px;
  overflow: hidden;
  /* Keep the hero band the same height on every interior page regardless of
     content (e.g. О школе has the extra ПРО strip). Column flex keeps the
     760px panel centered horizontally (via .container's auto margins) while
     justify-content centers it vertically within the fixed min-height. */
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 450px;
}
.page-hero__inner { position: relative; max-width: 760px; }
.page-hero h1 { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1.08; color: #fff; margin: 18px 0 0; }
.page-hero h1 em { color: var(--az-gold-500); font-style: italic; }
.page-hero p { font-family: var(--font-sans); font-size: 16.5px; line-height: 1.7; color: var(--az-blue-muted); margin-top: 16px; max-width: 620px; }
.breadcrumb { font-family: var(--font-sans); font-size: 13px; color: var(--az-blue-muted); }
.breadcrumb a { color: var(--az-blue-muted); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: var(--az-gold-500); margin: 0 6px; }
@media (max-width: 560px) { .page-hero h1 { font-size: 32px; } }

/* ---------- Divider ---------- */
.divider { display: flex; align-items: center; gap: 14px; }
.divider__line { flex: 1; height: 1px; background: var(--az-border-gold-16); }
.divider--light .divider__line { background: var(--az-border-cream); }
.divider__dot { width: 6px; height: 6px; background: var(--az-gold-500); transform: rotate(45deg); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--az-border-cream-2); padding: 16px 0; }
.faq-item:first-child { padding-top: 0; }
.faq-item summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  color: var(--az-navy-800);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-display); font-size: 20px; color: var(--az-gold-600); flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { font-family: var(--font-sans); font-size: 14px; line-height: 1.65; color: var(--az-warm-gray); margin: 12px 0 0; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--font-sans); font-weight: 600; font-size: 13px; color: var(--az-navy-800); }
.field input, .field textarea {
  font-family: var(--font-sans); font-size: 14.5px; color: var(--az-navy-900);
  padding: 13px 16px; border-radius: var(--r-input); border: none;
  box-shadow: inset 0 0 0 1px var(--az-border-cream);
  background: #fff; resize: vertical;
  transition: box-shadow var(--dur-fast) var(--ease-standard);
}
.field input::placeholder, .field textarea::placeholder { color: var(--az-placeholder); }
.field input:focus, .field textarea:focus {
  outline: none; box-shadow: inset 0 0 0 1.5px var(--az-gold-500);
}
.field-note { font-family: var(--font-sans); font-size: 12.5px; color: var(--az-warm-gray); }

.field-honeypot {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.field-captcha__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.field-captcha__question {
  font-family: var(--font-sans); font-size: 14px; color: var(--az-navy-800);
  background: var(--az-ivory-50, #F3EDE1); border-radius: var(--r-input);
  padding: 10px 14px; flex: 1 1 auto; min-width: 160px;
}
.field-captcha__row input[name="captcha_answer"] { width: 90px; flex: 0 0 auto; }
.field-error {
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 600;
  color: #B4302B; background: rgba(180,48,43,0.08); border-radius: var(--r-input);
  padding: 10px 14px; margin: 0;
}

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 720px; margin: 0 auto;
  background: var(--az-navy-900); color: #fff;
  border-radius: var(--r-card-lg); box-shadow: 0 12px 32px rgba(15,29,54,0.35);
  padding: 20px 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  animation: cookieBannerIn .4s var(--ease-standard);
}
.cookie-banner p {
  font-family: var(--font-sans); font-size: 13.5px; line-height: 1.6;
  color: rgba(255,255,255,0.85); margin: 0; flex: 1 1 320px;
}
.cookie-banner a { color: var(--az-gold-400); text-decoration: underline; }
.cookie-banner button { flex-shrink: 0; }
@keyframes cookieBannerIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { animation: none; }
}

/* ---------- Numbered steps ---------- */
.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--az-border-cream-2); }
.step:last-child { border-bottom: none; }
.step__num { font-family: var(--font-display); font-size: 32px; font-weight: 600; color: var(--az-gold-500); }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; color: var(--az-navy-800); margin: 0 0 8px; }
.step p { font-family: var(--font-sans); font-size: 15px; line-height: 1.7; color: var(--az-warm-gray); margin: 0; }
@media (max-width: 560px) { .step { grid-template-columns: 1fr; gap: 8px; } }

.doc-list { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.doc-list li { display: flex; gap: 12px; align-items: flex-start; font-family: var(--font-sans); font-size: 14.5px; line-height: 1.6; color: var(--az-navy-800); }
.doc-list li::before { content: "◆"; color: var(--az-gold-500); font-size: 9px; margin-top: 7px; flex-shrink: 0; }

/* ---------- News ---------- */
.news-item { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--az-border-cream-2); }
.news-item:first-child { padding-top: 0; }
.news-item__date { font-family: var(--font-sans); font-weight: 700; font-size: 13px; letter-spacing: 0.6px; color: var(--az-gold-600); text-transform: uppercase; }
.news-item h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--az-navy-800); margin: 0 0 6px; }
.news-item p { font-family: var(--font-sans); font-size: 14.5px; line-height: 1.65; color: var(--az-warm-gray); margin: 0; }
@media (max-width: 640px) { .news-item { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Contact tiles ---------- */
.contact-tile { display: flex; gap: 16px; align-items: flex-start; }
.contact-tile__icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px;
  background: rgba(230,214,173,0.1); display: flex; align-items: center; justify-content: center;
  color: var(--az-gold-500);
}
.contact-tile h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: #fff; margin: 0 0 6px; }
.contact-tile p, .contact-tile a { font-family: var(--font-sans); font-size: 14.5px; line-height: 1.6; color: var(--az-blue-muted); text-decoration: none; }
.contact-tile a:hover { color: #fff; }

.map-frame { border-radius: var(--r-card-lg); overflow: hidden; box-shadow: var(--shadow-card); border: none; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.review-links { display: flex; gap: 12px; flex-wrap: wrap; }
.review-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--r-pill);
  font-family: var(--font-sans); font-weight: 600; font-size: 13.5px;
  background: #fff; color: var(--az-navy-800); text-decoration: none;
  box-shadow: var(--stroke-card);
  transition: box-shadow var(--dur-fast) var(--ease-standard), transform var(--dur-fast) ease;
}
.review-link:hover { box-shadow: inset 0 0 0 1.5px var(--az-gold-500); transform: translateY(-1px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--az-navy-900); border-top: 1px solid var(--az-border-gold-16); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-col h4 { font-family: var(--font-sans); font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--az-gold-300); margin: 0 0 16px; }
.footer-col a, .footer-col p { display: block; font-family: var(--font-sans); font-size: 14px; color: var(--az-blue-muted); text-decoration: none; margin-bottom: 10px; line-height: 1.6; }
.footer-col a:hover { color: #fff; }
.footer-brand p { font-size: 13.5px; color: var(--az-blue-muted); max-width: 280px; margin-top: 14px; }
.footer-pro { font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.3px; color: var(--az-blue-muted); margin-top: 12px !important; }
.footer-pro b { color: var(--az-gold-300); font-weight: 700; }

.social-links { display: flex; gap: 10px; margin-top: 18px !important; }
.social-links a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(230,214,173,0.08); box-shadow: inset 0 0 0 1px var(--az-border-gold-16);
  color: var(--az-gold-300); transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.social-links a:hover { background: var(--az-grad-gold); color: var(--az-navy-900); }
.social-links svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--az-border-gold-16); flex-wrap: wrap; gap: 12px; }
.footer-bottom span { font-family: var(--font-sans); font-size: 12.5px; color: var(--az-blue-muted); }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Utility ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; gap: 32px; } }
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }

/* ---------- Feature photos (brand's "when photos exist" direction:
   cool navy duotone + soft arch) ---------- */
.feature-photo {
  position: relative; overflow: hidden;
  border-radius: var(--r-card-lg);
  box-shadow: var(--shadow-soft);
}
.feature-photo--arch { border-radius: 240px 240px 18px 18px; }
.feature-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(1) contrast(1.08) brightness(0.92);
}
.feature-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(155deg, rgba(26,48,86,0.30), rgba(15,29,54,0.68));
  mix-blend-mode: color;
  pointer-events: none;
}
.feature-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(230,214,173,0.28);
  pointer-events: none;
}
.feature-photo--plain img { filter: none; }
.feature-photo--plain::after { display: none; }

.hero__photo-frame { display: flex; justify-content: center; }
.hero__photo-frame .feature-photo { width: 340px; aspect-ratio: 1/1; }
@media (max-width: 900px) { .hero__photo-frame .feature-photo { width: 260px; } }

/* ---------- News: expandable cards + carousel ---------- */
.news-list { display: flex; flex-direction: column; }
.news-card { border-bottom: 1px solid var(--az-border-cream-2); padding: 22px 0; }
.news-card:first-child { padding-top: 0; }
.news-card__head {
  display: grid; grid-template-columns: 120px 1fr 32px; gap: 20px; align-items: center;
  width: 100%; background: none; border: none; padding: 0; margin: 0;
  font: inherit; text-align: left; cursor: pointer; color: inherit;
}
.news-card__date {
  font-family: var(--font-sans); font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.6px; color: var(--az-gold-600); text-transform: uppercase;
}
.news-card__headtext { min-width: 0; }
.news-card__title { display: block; font-family: var(--font-display); font-weight: 600; font-size: 18.5px; color: var(--az-navy-800); margin: 0 0 5px; }
.news-card__excerpt {
  display: block; font-family: var(--font-sans); font-size: 14px; line-height: 1.6; color: var(--az-warm-gray);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.news-card__toggle {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  box-shadow: inset 0 0 0 1.5px var(--az-border-cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 18px; color: var(--az-gold-600);
  transition: transform var(--dur) var(--ease-standard), background var(--dur) var(--ease-standard);
}
.news-card.is-open .news-card__toggle { transform: rotate(45deg); background: var(--az-ivory); }
.news-card__body { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease-standard); }
.news-card.is-open .news-card__body { max-height: 2400px; }
.news-card__body-inner { padding: 22px 0 4px 140px; }
.news-card__full-text { font-family: var(--font-sans); font-size: 15px; line-height: 1.75; color: var(--az-navy-800); }
.news-card__full-text p { margin: 0 0 14px; }
.news-card__full-text p:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .news-card__head { grid-template-columns: 1fr 28px; }
  .news-card__date { grid-column: 1 / -1; order: -1; }
  .news-card__body-inner { padding-left: 0; }
}

.carousel {
  position: relative; border-radius: var(--r-card); overflow: hidden;
  background: var(--az-ivory); margin-bottom: 22px; max-width: 480px;
}
.carousel__track { display: flex; transition: transform 0.35s var(--ease-standard); }
.carousel__slide { flex: 0 0 100%; aspect-ratio: 4/3; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(15,29,54,0.55); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  transition: background var(--dur-fast) ease;
}
.carousel__btn:hover { background: rgba(15,29,54,0.82); }
.carousel__btn--prev { left: 10px; }
.carousel__btn--next { right: 10px; }
.carousel__dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.carousel__dot { width: 6px; height: 6px; border-radius: 50%; border: none; padding: 0; cursor: pointer; background: rgba(255,255,255,0.5); }
.carousel__dot.is-active { background: #fff; }
.carousel__count {
  position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: var(--r-pill);
  background: rgba(15,29,54,0.55); color: #fff; font-family: var(--font-sans); font-size: 11.5px; font-weight: 600;
}

/* ---------- "ПРО" brand acronym strip ---------- */
.pro-strip { display: flex; gap: 32px; flex-wrap: wrap; }
.pro-strip--center { justify-content: center; }
.pro-strip__item { display: flex; align-items: baseline; gap: 8px; }
.pro-strip__letter { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--az-gold-500); line-height: 1; }
.pro-strip__word { font-family: var(--font-sans); font-size: 13px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; }
.pro-strip--on-navy .pro-strip__word { color: var(--az-blue-muted); }
.pro-strip--light .pro-strip__word { color: var(--az-warm-gray); }
@media (max-width: 560px) { .pro-strip { gap: 20px; } .pro-strip__letter { font-size: 24px; } }

/* ---------- Month-group divider (news archive / gallery) ---------- */
.month-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 44px 0 22px;
}
.month-divider:first-child { margin-top: 0; }
.month-divider__label {
  font-family: var(--font-display); font-weight: 600; font-size: 20px;
  color: var(--az-navy-800); white-space: nowrap;
}
.month-divider__line { flex: 1; height: 1px; background: var(--az-border-cream); }
.month-divider__count { font-family: var(--font-sans); font-size: 12.5px; color: var(--az-warm-gray); white-space: nowrap; }

/* ---------- Gallery grid + lightbox ---------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
  margin-bottom: 8px;
}
.gallery-thumb {
  position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden;
  border: none; padding: 0; cursor: pointer; background: var(--az-ivory);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--dur) var(--ease-standard); }
.gallery-thumb:hover img { transform: scale(1.06); }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; } }

.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(9,15,28,0.94);
  display: none; align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox__close, .lightbox__btn {
  position: absolute; background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast) ease;
}
.lightbox__close:hover, .lightbox__btn:hover { background: rgba(255,255,255,0.18); }
.lightbox__close { top: 20px; right: 20px; width: 42px; height: 42px; font-size: 20px; }
.lightbox__btn { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 20px; }
.lightbox__btn--prev { left: 20px; }
.lightbox__btn--next { right: 20px; }
.lightbox__count {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.7); font-family: var(--font-sans); font-size: 13px;
}
@media (max-width: 640px) {
  .lightbox { padding: 16px; }
  .lightbox__btn { width: 38px; height: 38px; }
  .lightbox__close { width: 36px; height: 36px; top: 10px; right: 10px; }
}

/* ---------- Trust stats band (Отзывы) ---------- */
.trust-stats { display: flex; gap: 48px; flex-wrap: wrap; justify-content: center; }
.trust-stat { text-align: center; }
.trust-stat__value { font-family: var(--font-display); font-weight: 700; font-size: 40px; color: var(--az-gold-500); line-height: 1; }
.trust-stat__label { font-family: var(--font-sans); font-size: 13px; color: var(--az-blue-muted); margin-top: 8px; max-width: 140px; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial-card { display: flex; flex-direction: column; gap: 14px; }
.testimonial-card__quote-mark {
  font-family: var(--font-display); font-size: 40px; font-style: italic; color: var(--az-gold-500);
  line-height: 1; height: 24px;
}
.testimonial-card__text { font-family: var(--font-sans); font-size: 14.5px; line-height: 1.65; color: var(--az-navy-800); margin: 0; flex: 1; }
.testimonial-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--az-border-cream-2); }
.testimonial-card__name { font-family: var(--font-sans); font-weight: 700; font-size: 13.5px; color: var(--az-navy-800); }
.testimonial-card__date { font-family: var(--font-sans); font-size: 12px; color: var(--az-warm-gray); }
.testimonial-card__source {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-sans); font-size: 11.5px; font-weight: 600; color: var(--az-gold-600);
  text-decoration: none;
}

/* ---------- Newspaper archive (Наша газета) ---------- */
.gazeta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 900px) { .gazeta-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .gazeta-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
.gazeta-card {
  display: block; text-decoration: none; border-radius: var(--r-card);
  overflow: hidden; background: #fff; box-shadow: var(--stroke-card);
  transition: transform var(--dur) var(--ease-standard), box-shadow var(--dur) var(--ease-standard);
}
.gazeta-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.gazeta-card__cover { aspect-ratio: 3/4; overflow: hidden; background: var(--az-ivory); }
.gazeta-card__cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.gazeta-card__foot { padding: 12px 14px 14px; }
.gazeta-card__title { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--az-navy-800); }
.gazeta-card__meta { display: flex; align-items: center; gap: 5px; font-family: var(--font-sans); font-size: 11.5px; color: var(--az-gold-600); font-weight: 600; margin-top: 4px; }

/* ---------- Quick on-page nav (Сведения / Учебный процесс) ---------- */
.quick-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.quick-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans); font-weight: 600; font-size: 13px;
  color: var(--az-navy-800); text-decoration: none;
  padding: 9px 16px; border-radius: var(--r-pill);
  background: #fff; box-shadow: var(--stroke-card);
  transition: box-shadow var(--dur-fast) var(--ease-standard), transform var(--dur-fast) ease;
}
.quick-nav a:hover { box-shadow: inset 0 0 0 1.5px var(--az-gold-500); transform: translateY(-1px); }

/* ---------- Fact grid (Основные сведения) ---------- */
.fact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--az-border-cream); border-radius: var(--r-card-lg); overflow: hidden; box-shadow: var(--stroke-card); }
.fact-grid__item { background: #fff; padding: 18px 22px; }
.fact-grid__item--wide { grid-column: 1 / -1; }
.fact-grid__label { font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: 0.3px; color: var(--az-warm-gray); text-transform: uppercase; margin-bottom: 6px; }
.fact-grid__value { font-family: var(--font-sans); font-size: 15px; color: var(--az-navy-800); line-height: 1.5; }
.fact-grid__value a { color: var(--az-gold-600); text-decoration: none; font-weight: 600; }
.fact-grid__value a:hover { text-decoration: underline; }
@media (max-width: 640px) { .fact-grid { grid-template-columns: 1fr; } }

/* ---------- Staff / leadership cards ---------- */
.staff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 640px) { .staff-grid { grid-template-columns: 1fr; } }
.staff-card { display: flex; gap: 16px; align-items: flex-start; }
.staff-card__avatar {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: var(--az-grad-gold); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--az-navy-900);
}
.staff-card__name { font-family: var(--font-display); font-weight: 600; font-size: 16.5px; color: var(--az-navy-800); }
.staff-card__role { font-family: var(--font-sans); font-size: 12.5px; font-weight: 600; color: var(--az-gold-600); text-transform: uppercase; letter-spacing: 0.3px; margin: 3px 0 8px; }
.staff-card__meta { font-family: var(--font-sans); font-size: 13.5px; line-height: 1.6; color: var(--az-warm-gray); margin: 0; }
.staff-card__meta + .staff-card__meta { margin-top: 4px; }

/* ---------- Teacher directory ---------- */
.teacher-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .teacher-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .teacher-grid { grid-template-columns: 1fr; } }
.teacher-card { background: #fff; border-radius: var(--r-card); padding: 18px 20px; box-shadow: var(--stroke-card); }
.teacher-card__name { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; color: var(--az-navy-800); }
.teacher-card__subject { font-family: var(--font-sans); font-size: 13px; color: var(--az-warm-gray); margin: 4px 0 10px; }
.teacher-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.teacher-card__tag {
  font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: var(--r-pill); background: var(--az-ivory); color: var(--az-gold-600);
}

/* ---------- People cards (photo + name) ---------- */
.people-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1040px) { .people-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .people-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .people-grid { grid-template-columns: 1fr; } }
.people-grid--lead { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1040px) { .people-grid--lead { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .people-grid--lead { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .people-grid--lead { grid-template-columns: 1fr; } }

.person-card {
  background: #fff; border-radius: var(--r-card); overflow: hidden;
  box-shadow: var(--stroke-card); display: flex; flex-direction: column;
}
.person-card__photo {
  position: relative; aspect-ratio: 4 / 5; background: var(--az-grad-gold);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.person-card__photo img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: center 20%;
}
.person-card__mono {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: 1px;
  color: var(--az-navy-900); opacity: 0.72;
}
.person-card__body { padding: 15px 17px 18px; display: flex; flex-direction: column; gap: 6px; }
.person-card__name { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; line-height: 1.3; color: var(--az-navy-800); }
.person-card__role { font-family: var(--font-sans); font-size: 12.5px; line-height: 1.45; color: var(--az-warm-gray); }
.person-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.person-card__tag {
  font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: var(--r-pill); background: var(--az-ivory); color: var(--az-gold-600);
}
.person-card--on-navy { background: rgba(255,255,255,0.05); box-shadow: none; outline: 1px solid rgba(230,214,173,0.22); outline-offset: -1px; }
.person-card--on-navy .person-card__name { color: #fff; }
.person-card--on-navy .person-card__role { color: var(--az-blue-muted); }
.person-card--on-navy .person-card__tag { background: rgba(230,214,173,0.14); color: var(--az-gold-300); }

/* ---------- Document list (regulatory PDFs) ---------- */
.doc-accordion { border-radius: var(--r-card-lg); overflow: hidden; box-shadow: var(--stroke-card); background: #fff; }
.doc-accordion + .doc-accordion { margin-top: 14px; }
.doc-accordion summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--az-navy-800);
}
.doc-accordion summary::-webkit-details-marker { display: none; }
.doc-accordion summary::after { content: "+"; font-family: var(--font-display); font-size: 20px; color: var(--az-gold-600); flex-shrink: 0; }
.doc-accordion[open] summary::after { content: "\2212"; }
.doc-accordion summary .doc-accordion__count { font-family: var(--font-sans); font-size: 12.5px; font-weight: 600; color: var(--az-warm-gray); margin-left: auto; margin-right: 4px; }
.doc-file-list { padding: 0 22px 18px; }
.doc-file-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-top: 1px solid var(--az-border-cream-2);
  font-family: var(--font-sans); font-size: 14px; color: var(--az-navy-800); text-decoration: none;
}
.doc-file-list a:first-child { border-top: none; }
.doc-file-list a:hover { color: var(--az-gold-600); }
.doc-file-list a::before {
  content: "PDF"; flex-shrink: 0; font-size: 10px; font-weight: 700; letter-spacing: 0.3px;
  color: #fff; background: var(--az-navy-700); padding: 3px 7px; border-radius: 4px;
}
.doc-file-list a.doc-file-list__link--plain::before { content: "→"; background: none; color: var(--az-gold-600); padding: 0; font-size: 14px; }

/* ---------- Simple two-column info list ---------- */
.info-list { display: flex; flex-direction: column; }
.info-list__row { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--az-border-cream-2); }
.info-list__row:last-child { border-bottom: none; }
.info-list__label { font-family: var(--font-sans); font-weight: 600; font-size: 13.5px; color: var(--az-navy-800); }
.info-list__value { font-family: var(--font-sans); font-size: 14px; color: var(--az-warm-gray); line-height: 1.6; }
@media (max-width: 640px) { .info-list__row { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Scroll-reveal (sequential appear-on-scroll) ---------- */
.js-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-standard), transform 0.7s var(--ease-standard);
  transition-delay: calc(var(--reveal-i, 0) * 90ms);
  will-change: opacity, transform;
}
.js-reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .js-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   Marketing media — school photos + video (added 22.07.2026)
   ============================================================ */

/* Hero: two stacked blocks — full-width video banner on top,
   info (text) + facade photo below. */
.hero__top { padding: 52px 0 0; }
.hero__video-block {
  width: 100%; height: 340px; max-height: 44vh; overflow: hidden;
  border-radius: var(--r-card-lg); background: #0b1a36;
  outline: 1px solid rgba(230,214,173,0.28); outline-offset: -1px;
  box-shadow: var(--shadow-soft);
}
.hero__video-block video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__top .hero__inner { padding: 36px 0 72px; }
@media (prefers-reduced-motion: reduce) { .hero__video-block video { display: none; } }
@media (max-width: 900px) {
  .hero__top { padding-top: 28px; }
  .hero__video-block { height: 210px; max-height: none; }
  .hero__top .hero__inner { padding: 28px 0 48px; }
}

/* Campus tour — bento photo grid (homepage) */
.tour-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px; grid-auto-flow: dense;
}
.tour-tile {
  position: relative; overflow: hidden;
  border-radius: var(--r-card-lg); box-shadow: var(--shadow-soft);
}
.tour-tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s var(--ease-standard);
}
.tour-tile:hover img { transform: scale(1.05); }
.tour-tile::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(230,214,173,0.22); pointer-events: none;
}
.tour-tile__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 16px 12px;
  font-family: var(--font-sans); font-size: 12.5px; letter-spacing: 0.04em;
  text-transform: uppercase; color: #fff;
  background: linear-gradient(0deg, rgba(15,29,54,0.72), rgba(15,29,54,0));
}
.tour-tile--wide { grid-column: span 2; }
.tour-tile--tall { grid-row: span 2; }
@media (max-width: 900px) {
  .tour-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 165px; }
  .tour-tile--tall { grid-row: span 1; }
}
@media (max-width: 560px) {
  .tour-grid { gap: 10px; grid-auto-rows: 138px; }
}

/* Director card (О школе) */
.director {
  max-width: 680px; margin: 0 auto; text-align: left;
  display: grid; grid-template-columns: 210px 1fr; gap: 30px; align-items: center;
}
.director__photo {
  border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-soft);
  outline: 1px solid rgba(230,214,173,0.35); outline-offset: -1px;
}
.director__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.director__info .card-title { margin-top: 0; }
@media (max-width: 600px) {
  .director { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .director__photo { width: 200px; }
}

/* Gallery — featured school video block */
.video-feature {
  position: relative; overflow: hidden;
  border-radius: var(--r-card-lg); box-shadow: var(--shadow-soft);
  outline: 1px solid rgba(230,214,173,0.28); outline-offset: -1px;
  background: #000; aspect-ratio: 16 / 9;
}
.video-feature video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }

/* ============================================================
   Mobile fixes (23.07.2026): переполнение, заголовки, PRO-строка, футер-логотип
   ============================================================ */

/* Длинные слова переносятся, а не вылезают за край экрана */
h1, h2, h3, .card-title { overflow-wrap: break-word; }

/* Грид/флекс-элементы могут сжиматься ниже ширины самого длинного слова
   (иначе одно длинное слово растягивает колонку и обрезает соседний блок) */
.grid-2 > *, .hero__inner > *, .card-grid > * { min-width: 0; }

/* Меньше заголовки на мобильных, чтобы длинные слова помещались целиком */
@media (max-width: 640px) {
  .section-head h2 { font-size: 27px; line-height: 1.18; }
  .hero h1 { font-size: 31px; }
}

/* PRO-строка на мобильных — в столбик, чтобы читалось П · Р · О по порядку,
   а не разрывалось на 2 строки как «ПОР» */
@media (max-width: 560px) {
  .pro-strip { flex-direction: column; gap: 12px; }
}

/* Логотип в футере: .footer-col a{display:block} ломал флекс и текст наезжал
   на герб — возвращаем строку, как в шапке */
.footer-col .site-logo { display: flex; }

/* ============================================================
   Fixes 23.07.2026 (доп.): плитки-кнопки, блокировка фона, отступы PRO
   ============================================================ */

/* Плитки экскурсии на главной — это кнопки (открывают фото на весь экран),
   убираем стандартный вид кнопки */
.tour-tile { appearance: none; -webkit-appearance: none; border: 0; padding: 0; background: transparent; cursor: zoom-in; font: inherit; color: inherit; }

/* Пока открыт полноэкранный просмотр — фон под ним не прокручивается */
.az-lb-open { overflow: hidden; }

/* PRO-строка компактнее — меньше отступы между «П · Р · О» */
.pro-strip { gap: 18px; }
.site-logo__tag--pro .pro-sep { margin: 0 3px; }
@media (max-width: 560px) { .pro-strip { flex-direction: column; gap: 8px; } }

/* ============================================================
   Режим для слабовидящих (один переключатель в шапке)
   ============================================================
   Кнопка-«глаз» в шапке включает/выключает html.az-a11y — заранее
   собранный набор правок: крупнее шрифт и межстрочный интервал, выше
   контраст (приглушённый текст и декоративные узоры убираются), у ссылок
   подчёркивание, у фокуса — заметная рамка. Состояние хранится через
   azGetFlag/azSetFlag (site.js) и применяется до отрисовки страницы
   инлайн-скриптом в <head>, чтобы избежать мигания. */

/* Зафиксирована относительно окна (а не строки шапки): у шапки уже мало
   свободного места для новых элементов на многих ширинах экрана, а кнопка
   должна оставаться доступной всегда — в том числе сразу после того как
   человек её включит и масштаб страницы увеличится. */
.az-a11y-toggle {
  position: fixed; top: 14px; right: 24px; z-index: 150;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%; border: 1.5px solid var(--az-border-gold-25, rgba(230,214,173,0.35));
  background: var(--az-navy-800, #16294d); color: var(--az-blue-muted, #b9c4d6);
  cursor: pointer; padding: 0;
  box-shadow: 0 2px 10px rgba(15,29,54,0.35);
  transition: background var(--dur-fast, .15s) ease, color var(--dur-fast, .15s) ease, border-color var(--dur-fast, .15s) ease;
}
.az-a11y-toggle svg { width: 19px; height: 19px; fill: currentColor; }
.az-a11y-toggle:hover { color: #fff; border-color: var(--az-gold-400, #d4af5a); background: var(--az-navy-700, #1a3056); }
.az-a11y-toggle[aria-pressed="true"] {
  background: var(--az-grad-gold, linear-gradient(135deg,#e6d6ad,#c3a259));
  color: var(--az-navy-900, #0f1d36);
  border-color: transparent;
}
/* Не наезжает на кнопку-«гамбургер» (у неё ~28px отступ справа и 32px
   ширина) — сдвигаем левее её зоны везде, где гамбургер виден: на узких
   экранах (обычная мобильная шапка) и в режиме для слабовидящих (шапка
   принудительно компактная на любой ширине — см. ниже). */
@media (max-width: 1400px) {
  .az-a11y-toggle { right: 76px; }
}
html.az-a11y .az-a11y-toggle { right: 76px; }
@media (max-width: 600px) {
  /* На узких телефонах в строке шапки уже тесно от одного длинного названия
     школы — переносим кнопку под шапку, а не втискиваем в неё саму. */
  .az-a11y-toggle { top: 82px; right: 12px; width: 32px; height: 32px; }
  .az-a11y-toggle svg { width: 17px; height: 17px; }
}

/* Увеличенный масштаб страницы (см. ниже) может не оставить в шапке места
   для полного меню на обычных ноутбучных экранах (напр. 1440px) — поэтому
   пока включён режим для слабовидящих, шапка всегда переходит в уже
   проверенный компактный вид (пункты — в выпадающем меню по кнопке-
   «гамбургеру»), тот же самый, что и на мобильных, независимо от реальной
   ширины окна. Правила продублированы из @media (max-width: 1400px) выше —
   тот же, отдельно протестированный код, но без привязки к ширине экрана. */
html.az-a11y .site-header__inner .header-cta { display: none; }
html.az-a11y .site-nav {
  position: fixed; inset: 65px 0 0 0; margin: 0;
  flex-direction: column; gap: 0;
  background: var(--az-navy-900);
  padding: 12px 24px 32px;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity .2s var(--ease-standard, ease), transform .2s var(--ease-standard, ease);
  border-top: 1px solid var(--az-border-gold-16);
}
html.az-a11y .site-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
html.az-a11y .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--az-border-gold-16); }
html.az-a11y .site-nav a.header-cta-mobile { display: inline-flex; margin-top: 16px; padding: 13px 30px; border-bottom: none; }
html.az-a11y .nav-toggle { display: block; }

/* Увеличенный масштаб (шрифт + межстрочный интервал + отступы разом)
   применяется через document.documentElement.style.zoom из site.js — вместе
   с обычным Ctrl+колесо масштабом, через один и тот же множитель на <html>,
   чтобы не было двойного зума/горизонтальной прокрутки. Здесь — только то,
   что не покрывает зум: контраст, подчёркивание ссылок, фокус, доп. интервал. */
html.az-a11y p,
html.az-a11y li,
html.az-a11y .card p,
html.az-a11y .field-note {
  line-height: 1.85 !important;
}
html.az-a11y p,
html.az-a11y li {
  font-weight: 500;
}
html.az-a11y a:not(.btn):not(.site-logo):not(.social-links a) {
  text-decoration: underline;
  text-underline-offset: 3px;
}
html.az-a11y *:focus-visible {
  outline: 3px solid var(--az-gold-400, #d4af5a) !important;
  outline-offset: 3px !important;
}
/* Декоративные узоры снижают контраст текста поверх них — убираем. Для
   приглушённого второстепенного текста (--az-blue-muted/--az-warm-gray)
   намеренно НЕ трогаем сами цвета: они используются и на тёмном, и на
   светлом фоне в разных местах сайта, и один и тот же «более контрастный»
   оттенок мог бы, наоборот, слиться с фоном там, где фон близок к этому
   оттенку. Вместо этого увеличиваем начертание — это всегда читается
   заметнее и никогда не понижает контраст. */
html.az-a11y .has-pattern::before { opacity: 0 !important; }
