/* cyrillic-ext */
@font-face {
  font-family: 'Alegreya';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/Alegreya-500i-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Alegreya';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/Alegreya-500i-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {
  font-family: 'Alegreya';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/Alegreya-500i-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Alegreya';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/Alegreya-500-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Alegreya';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/Alegreya-500-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {
  font-family: 'Alegreya';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/Alegreya-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Alegreya';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/Alegreya-700-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Alegreya';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/Alegreya-700-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {
  font-family: 'Alegreya';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/Alegreya-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/GolosText-400-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/GolosText-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/GolosText-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/GolosText-500-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/GolosText-500-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/GolosText-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/GolosText-600-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/GolosText-600-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/GolosText-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ============================================================
   University of St Andrews — дизайн «Камень и мантия»
   Палитра: известняк / грифель / Северное море / алая мантия
   Типографика: Alegreya (заголовки) + Golos Text (текст)
   ============================================================ */
:root {
  --paper: #f5f4ef;
  --white: #ffffff;
  --stone: #e2dfd4;
  --stone-tint: #edebe3;
  --ink: #212730;
  --ink-body: #3a434e;
  --ink-soft: #5b636d;
  --sea: #16365a;
  --sea-deep: #0f2540;
  --accent: #00539b;
  --gold: #ffb400;
  --accent-dark: #003e74;
  --radius: 10px;
  --wrap: 1140px;
  --serif: 'Alegreya', 'Iowan Old Style', Georgia, serif;
  --sans: 'Golos Text', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
}
img { max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }

h1, h2, h3, .stat-v {
  font-family: var(--serif);
  color: var(--ink);
  letter-spacing: -0.012em;
  text-wrap: balance;
  line-height: 1.15;
}
h2 { font-size: clamp(1.65rem, 2.6vw, 2.2rem); font-weight: 700; margin: 0 0 0.7em; }
h3 { font-size: 1.45rem; font-weight: 700; margin: 0 0 0.6em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }
section[id] { scroll-margin-top: 88px; }

/* ---------- плашка-дисклеймер (флотская) ---------- */
#top-header {
  background: #b58e00;
  color: #fff;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  padding: 6px 14px;
  /* системный шрифт: вебфонт доезжает позже и менял высоту плашки (1↔2 строки) — CLS-сдвиг всей страницы */
  font-family: -apple-system, 'Segoe UI', Arial, sans-serif;
}
#top-header .container { max-width: none; }

/* ---------- шапка ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--white);
  border-bottom: 1px solid var(--stone);
}
.head-in { display: flex; align-items: center; gap: 32px; min-height: 68px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 30px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 24px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s;
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.nav-dd { position: relative; }
.nav-dd summary {
  list-style: none;
  cursor: pointer;
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  padding: 4px 18px 4px 0;
  position: relative;
  user-select: none;
}
.nav-dd summary::-webkit-details-marker { display: none; }
.nav-dd summary::after {
  content: '';
  position: absolute;
  right: 2px; top: 50%;
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
}
.nav-dd summary:hover, .nav-dd.cur summary { color: var(--accent); }
.nav-dd .drop {
  position: absolute;
  top: calc(100% + 12px);
  left: -18px;
  background: var(--white);
  border: 1px solid var(--stone);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 18px 40px rgba(21, 43, 55, .14);
  padding: 10px 0;
  min-width: 250px;
  display: flex;
  flex-direction: column;
}
.nav-dd .drop a { padding: 8px 22px; border-bottom: none; font-weight: 400; }
.nav-dd .drop a:hover { background: var(--paper); color: var(--accent); }
.nav-dd .drop a[aria-current="page"] { color: var(--accent); font-weight: 500; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 83, 155, .3);
}
.nav a.btn-nav { padding: 12px 26px; font-size: 14px; }
.burger { display: none; }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(255, 255, 255, .07), transparent 60%),
    linear-gradient(160deg, var(--sea) 0%, var(--sea-deep) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after { /* контур ланцетной арки — мотив собора St Andrews */
  content: '';
  position: absolute;
  right: -140px;
  bottom: -180px;
  width: 420px;
  height: 640px;
  border: 1.5px solid rgba(255, 255, 255, .1);
  border-radius: 50% 50% 0 0 / 38% 38% 0 0;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(64px, 9vw, 110px);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  font-weight: 700;
  margin: 0;
}
.hero h1::after {
  content: '';
  display: block;
  width: 74px;
  height: 4px;
  background: var(--gold);
  margin-top: 22px;
}
.hero .lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, .85);
  max-width: 32em;
  margin: 26px 0 34px;
}
.hero strong, .hero b { color: #fff; }
.hero .btn {
  background: var(--gold);
  color: var(--ink) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .3);
}
.hero .btn:hover { background: #e6a200; }
.hero-media .arch { position: relative; }
.hero-media .arch img {
  width: 100%;
  aspect-ratio: 0.86;
  object-fit: cover;
  display: block;
  border-radius: 50% 50% 14px 14px / 34% 34% 14px 14px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .4);
}
.hero-media .arch::before { /* тонкая наружная линия арки */
  content: '';
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50% 50% 20px 20px / 34% 34% 20px 20px;
  pointer-events: none;
}
.hero-sub::after { display: none; }
.hero-sub .hero-copy {
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(52px, 7vw, 84px);
  max-width: 880px;
}
.hero-sub h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
.hero-sub .lead { margin-bottom: 0; }
.hero-sub .lead + .btn, .hero-sub .btn { margin-top: 30px; }

/* современный кампус (Warwick и т.п.) — скругления вместо готических арок */
.motif-modern .hero-media .arch img,
.motif-modern .split-media .arch img { border-radius: 22px; }
.motif-modern .hero-media .arch::before { border-radius: 30px; }
.motif-modern .hero::after { border-radius: 50%; width: 520px; height: 520px; right: -180px; bottom: -260px; }

/* ---------- статистика ---------- */
.stats { background: transparent; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  box-shadow: 0 24px 50px rgba(21, 43, 55, .1);
  padding: 8px 0;
}
.stat { padding: 26px 32px; }
.stat + .stat { border-left: 1px solid var(--stone); }
.stat::before {
  content: '';
  display: block;
  width: 26px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 14px;
}
.stat-v {
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.05;
}
.stat-num {
  font-size: clamp(2.3rem, 3.4vw, 3.1rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 2px;
}
.stat p { font-size: 14px; color: var(--ink-soft); line-height: 1.45; }

/* ---------- секции ---------- */
.sec { padding: clamp(36px, 5vw, 56px) 0; }
.sec .wrap { display: flex; flex-direction: column; gap: clamp(44px, 6vw, 64px); }
.sec h2::before, .contact h2::before, .sec-head h2::before {
  content: '';
  display: block;
  width: 54px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 18px;
}
.card h2::before, .card h3::before { display: none; }

.prose { max-width: 800px; }
.prose .btn, .split-copy .btn { margin-top: 26px; }

.ticklist { list-style: none; padding: 0; margin: 0 0 1em; }
.ticklist li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.ticklist li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

.card {
  background: var(--white);
  border: 1px solid var(--stone);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(26px, 3.4vw, 40px) clamp(24px, 3.6vw, 44px);
}
.card h2, .card h3 { font-size: 1.45rem; margin-bottom: 0.65em; }
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: stretch;
}
.feature {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: clamp(28px, 4.5vw, 64px);
  align-items: start;
}
.feature > h2 { margin-bottom: 0; }

.split {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(36px, 5.5vw, 72px);
  align-items: center;
}
.split-media img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(21, 43, 55, .16);
}
.split-media .arch img {
  aspect-ratio: 0.9;
  object-fit: cover;
  border-radius: 50% 50% 12px 12px / 32% 32% 12px 12px;
}
.split-media .deco img, .deco img { box-shadow: none; border-radius: 0; }
.split-media .deco { max-width: 320px; margin-inline: auto; }
.media-stack figure:first-child { width: 88%; }
.media-stack figure:last-child {
  width: 72%;
  margin-left: 28%;
  margin-top: -20%;
}
.media-stack img { border: 6px solid var(--white); }

.chips {
  /* 07.09.2026: flex вместо grid — неполный последний ряд (4, 5, 7, 8 карточек) центрируется */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.chip {
  flex: 0 1 calc((100% - 28px) / 3);
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  padding: 16px 20px 16px 40px;
  position: relative;
  display: flex;
  align-items: center;
}
.chip::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  background: var(--gold);
  transform: rotate(45deg);
}
.chip h4 {
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  line-height: 1.35;
}
.sec-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 0; }

.inline-fig { max-width: 320px; }
.inline-fig img { border-radius: 0; box-shadow: none; }

.band h2::before { background: var(--gold); }
/* ---------- тёмный пояс (CTA) ---------- */
.band {
  background: linear-gradient(150deg, var(--sea) 0%, var(--sea-deep) 100%);
  color: rgba(255, 255, 255, .85);
  padding: clamp(48px, 6vw, 72px) 0;
}
.band h2 { color: #fff; }
.band strong { color: #fff; }
.band-in { max-width: 860px; }
.band-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.band .btn {
  background: var(--gold);
  color: var(--ink) !important;
  margin-top: 10px;
}
.band .btn:hover { background: #e6a200; }
.band-fig img {
  display: block;
  max-width: 340px;
  margin-inline: auto;
  opacity: .55;
  box-shadow: none;
  border-radius: 0;
}
@media (max-width: 980px) {
  .band-grid { grid-template-columns: 1fr; }
  .band-fig { display: none; }
}

/* ---------- контакт ---------- */
.contact {
  background: var(--stone-tint);
  border-top: 1px solid var(--stone);
  padding: clamp(52px, 7vw, 80px) 0;
}
.contact-in { text-align: center; }
.contact h2::before { margin-inline: auto; }
.contact-form {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#amo-form-container {
  width: 100%;
  max-width: 520px;
  text-align: left;
}

/* ---------- «Другие проекты» (инжект poloska.js) ---------- */
.pmain {
  background: var(--white);
  border-top: 1px solid var(--stone);
  padding: 48px 20px 56px;
  text-align: center;
}
.pmain h3 { font-size: 1.35rem; margin-bottom: 18px; }
.pflex-projects {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 34px;
  font-size: 15px;
  font-weight: 500;
}
.pflex-projects a { color: var(--ink); text-decoration: none; }
.pflex-projects a:hover { color: var(--accent); }

/* ---------- футер ---------- */
#main-footer {
  background: var(--sea-deep);
  color: #c4c4c4;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.6;
  padding: 34px 20px;
}
#main-footer a { color: #e6e6e6; }
#footer-info { margin: 0 auto; }

/* ---------- адаптив ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-media { max-width: 440px; }
  .split { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 20px; }
  .pair { grid-template-columns: 1fr; }
  .stats { background: transparent; padding-bottom: 40px; }
  .stats-grid { grid-template-columns: 1fr 1fr; padding: 0; }
  .stat + .stat { border-left: none; }
  .stat:nth-child(even) { border-left: 1px solid var(--stone); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--stone); }
  .chip { flex-basis: calc((100% - 14px) / 2); }
}
@media (max-width: 920px) {
  .burger {
    display: block;
    margin-left: auto;
    background: none;
    border: none;
    padding: 10px 4px;
    cursor: pointer;
  }
  .burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    margin: 5px 0;
    transition: transform .2s, opacity .2s;
  }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--stone);
    box-shadow: 0 24px 40px rgba(21, 43, 55, .14);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 24px; border-bottom: none; }
  .nav a[aria-current="page"] { color: var(--accent); }
  .nav-dd summary { padding: 12px 24px; }
  .nav-dd summary::after { right: auto; margin-left: 10px; display: inline-block; position: static; transform: rotate(45deg); }
  .nav-dd .drop {
    position: static;
    border: none;
    box-shadow: none;
    background: var(--paper);
    border-radius: 0;
    padding: 4px 0;
  }
  .nav-dd .drop a { padding: 10px 40px; }
  .nav a.btn-nav { margin: 14px 24px 0; padding: 13px 26px; text-align: center; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat + .stat { border-left: none !important; border-top: 1px solid var(--stone); }
  .chip { flex-basis: 100%; }
  .media-stack figure:first-child { width: 100%; }
  .media-stack figure:last-child { width: 74%; margin-left: 26%; margin-top: -12%; }
  .brand img { height: 26px; }
}

/* ---- видео-эмбеды (YouTube в hero/контенте) ---- */
figure.video { margin: 0; aspect-ratio: 16/9; width: 100%; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 44px rgba(0,0,0,.18); }
figure.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.hero-media figure.video { min-width: 0; }

/* ---- сетка фото 3+ в сплит-блоке ---- */
.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.media-grid figure { margin: 0; }
.media-grid img { width: 100%; height: 100%; object-fit: cover; border: 6px solid var(--white); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.14); }

/* ---- логотип-водяной знак в форме, иконки блёрбов ---- */
.contact-logo { display: block; max-width: 190px; height: auto; margin: 30px auto 0; opacity: .9; }
.blurb-ico { width: 34px; height: auto; display: inline-block; }
.stat .blurb-ico { margin-bottom: 10px; }

/* подпись счётчика (донорский h4) — выглядит как текст-подпись */
.stat h4.stat-label { font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink-soft); line-height: 1.45; margin: 4px 0 0; letter-spacing: 0; }

/* заголовок над поясом статистики + водяной логотип */
.stats-head h2 { color: var(--ink); text-align: center; margin-bottom: 26px; }
.stats .contact-logo { margin-top: 26px; }

/* декоративные картинки в конверсионном поясе — на белой плашке, компактно */
.band-fig { display: flex; justify-content: center; }
.band-fig figure { margin: 0; }
.band-fig img { max-width: min(280px, 100%); max-height: 240px; width: auto; height: auto; object-fit: contain; background: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.22); }
/* line-art декорация (круги) — без белой плашки, полупрозрачным контуром на тёмном поясе */
.band-fig img[src*="online-university-68"] { background: transparent; padding: 0; box-shadow: none; border-radius: 0; opacity: .65; }
.sec-tight { padding-bottom: 0 !important; }

/* ---- секция «Видео об университете» ---- */
/* 12.09.2026 (владелец): фон блока видео такой же, как у остальных секций — тонировка снята */
.vid-sec { background: transparent; }
.vid-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin-top: 26px; }
.vid-grid.vid-grid1 { grid-template-columns: minmax(0, 720px); justify-content: center; }
.vid-card { margin: 0; background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 14px 36px rgba(15, 37, 64, .12); aspect-ratio: auto; }
.vid-card .vid-frame { position: relative; aspect-ratio: 16/9; background: #000; }
.vid-card .vid-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.vid-card figcaption { padding: 13px 18px 15px; color: var(--ink-soft); font-size: 15px; line-height: 1.45; }
@media (max-width: 768px) { .vid-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; } }
/* видео в текстовом потоке: сетка с воздухом, одиночное — компактно по центру */
.prose .vid-grid, .sec > .wrap > .vid-grid { margin: 26px 0; }
.prose .vid-grid.vid-grid1 { grid-template-columns: minmax(0, 620px); justify-content: center; }
/* 07.09.2026 (владелец): одно видео в секции — подзаголовок слева, ролик справа; ≤860px — в столбик */
.vid-sec .wrap.vid-side { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 680px); gap: 44px; align-items: center; }
.vid-sec .wrap.vid-side h2 { text-align: left; margin: 0; }
.vid-sec .wrap.vid-side > .vid-grid.vid-grid1 { margin: 0; grid-template-columns: minmax(0, 1fr); justify-content: stretch; }
@media (max-width: 860px) { .vid-sec .wrap.vid-side { grid-template-columns: minmax(0, 1fr); gap: 26px; } }
/* 07.09.2026 (владелец): три видео — в один ряд; ≤980px — 2 колонки, ≤600px — 1 */
.vid-grid.vid-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.vid-grid.vid-grid3 .vid-card figcaption { font-size: 14px; padding: 11px 14px 13px; }
@media (max-width: 980px) { .vid-grid.vid-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .vid-grid.vid-grid3 { grid-template-columns: minmax(0, 1fr); } }
.prose > figure.video { margin: 26px 0; }
.vid-grid figure.video, .split-media figure.video { margin: 0; }
/* картинка в общей сетке с видео — такая же карточка 16:9 */
.vid-grid figure:not(.video) { margin: 0; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 44px rgba(0,0,0,.18); max-width: none; }
.vid-grid figure:not(.video) img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; box-shadow: none; }
/* фото в текстовом потоке — компактно по центру, не на всю колонку */
.prose > figure:not(.inline-fig):not(.video) { max-width: 620px; margin: 26px auto; }
.prose > figure:not(.inline-fig):not(.video) img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 14px 34px rgba(0,0,0,.12); }
.prose > figure.deco img, .prose > figure.logochip img { box-shadow: none; }
/* белые лого аккредитаций — на тёмной плашке */
figure.logochip { background: var(--sea-deep); border-radius: 12px; padding: 16px 18px; display: flex; align-items: center; justify-content: center; margin: 0; }
figure.logochip img, .media-grid figure.logochip img { border: 0; box-shadow: none; background: transparent; border-radius: 0; width: auto; max-width: 100%; height: auto; object-fit: contain; }

/* ================= МОТИВ «ШКОЛА» (Heritage-флот, эталон buckswood) ================ */
body.motif-school { --cream: #f7f3ea; background: #fff; }
/* шапка: белая, плоское меню */
body.motif-school .site-head { background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.07); }
body.motif-school .nav a { color: #333; font-weight: 600; font-size: 13.5px; letter-spacing: 0; white-space: nowrap; }
body.motif-school .nav { gap: 4px 16px; flex-wrap: wrap; justify-content: flex-end; }
body.motif-school .head-in { gap: 26px; }
body.motif-school .nav a:hover { color: var(--accent); }
body.motif-school .nav a[aria-current="page"] { color: var(--accent); border-bottom: 2px solid var(--accent); padding-bottom: 3px; }
/* hero главной: фото во весь экран с вуалью, сериф по центру */
body.motif-school .hero-bleed { position: relative; min-height: 68vh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 0; }
body.motif-school .hero-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
body.motif-school .hero-bleed::after { content: ''; position: absolute; inset: 0; width: 100%; height: 100%; border: none; border-radius: 0; transform: none; left: 0; top: 0; right: auto; bottom: auto; background: linear-gradient(180deg, rgba(10,14,12,.56) 0%, rgba(10,14,12,.40) 45%, rgba(10,14,12,.66) 100%); }
body.motif-school .hero-center { position: relative; z-index: 2; text-align: center; max-width: 900px; padding: 96px 20px; }
body.motif-school .hero-bleed h1::after { margin-left: auto; margin-right: auto; }
body.motif-school .hero-bleed h1 { color: #fff; font-size: clamp(44px, 6vw, 84px); line-height: 1.05; text-shadow: 0 2px 18px rgba(0,0,0,.45), 0 1px 3px rgba(0,0,0,.6); margin: 0 0 18px; }
body.motif-school .hero-bleed .lead { color: #fff; font-family: inherit; font-style: normal; font-size: 19px; line-height: 1.6; text-shadow: 0 1px 10px rgba(0,0,0,.55); max-width: 62ch; margin: 0 auto 30px; }
body.motif-school .btn-glass { display: inline-block; border: 1.5px solid rgba(255,255,255,.85); color: #fff; background: rgba(255,255,255,.08); border-radius: 999px; padding: 14px 38px; text-transform: uppercase; letter-spacing: .12em; font-size: 14px; font-weight: 600; backdrop-filter: blur(2px); }
body.motif-school .btn-glass:hover { background: rgba(255,255,255,.18); }
/* hero подстраниц: плоский градиент бренда, по центру */
body.motif-school .hero-sub { background: linear-gradient(120deg, var(--accent-dark), var(--accent)); padding: 74px 0 64px; }
body.motif-school .hero-sub .hero-copy { text-align: center; max-width: 860px; margin: 0 auto; }
body.motif-school .hero-sub h1 { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
body.motif-school .hero-sub h1::after { margin-left: auto; margin-right: auto; }
body.motif-school .hero-sub .lead { color: rgba(255,255,255,.92); margin-left: auto; margin-right: auto; }
/* секции: чередование белый/крем, заголовки с серой чертой */
body.motif-school main > .sec:nth-of-type(even) { background: var(--cream); }
body.motif-school .sec h2 { color: var(--ink, #142019); }
body.motif-school .sec h2::after { content: ''; display: block; width: 56px; height: 3px; margin-top: 14px; background: #7d7e80; }
body.motif-school .prose strong { color: var(--accent); }
/* сплиты и фото: скругление и мягкая тень как у флота */
body.motif-school .split figure img, body.motif-school .prose figure img { border-radius: 18px; box-shadow: 0 18px 44px rgba(16,38,28,.14); }
body.motif-school figure.arch img { border-radius: 18px; aspect-ratio: auto; }
/* кнопки: pill бренд */
body.motif-school .btn { border-radius: 999px; }
/* тёмный конверсионный пояс */
body.motif-school .band { background: linear-gradient(120deg, var(--accent-dark), var(--accent)); }
/* форма: карточка на креме */
body.motif-school .contact { background: var(--cream); }
@media (max-width: 980px) {
  body.motif-school .hero-bleed { min-height: 54vh; }
  body.motif-school .nav a[aria-current="page"] { border-bottom: none; }
}

/* 17.09.2026 (Мария): секция-кнопка «Оставить заявку» перед формой — кнопка по левому краю,
   а не на всю ширину (.sec .wrap — колонка-флекс, элементы по умолчанию тянутся) */
.cta-sec .wrap { align-items: flex-start; }

:root {
  --accent: #1f7cac;
  --accent-dark: #134d6b;
  --gold: #ffb400;
  --sea: #134d6b;
  --sea-deep: #0d3549;
}
