:root {
  --navy: #0039a6;
  --navy-deep: #001f63;
  --ink: #16181e;
  --muted: #5d6573;
  --paper: #f3f5fa;
  --cream: #fcfcfc;
  --white: #fff;
  --line: rgba(0, 57, 166, .12);
  --red: #e21e2d;
  --red-dark: #b31320;
  --red-bright: #ff3b49;
  --gold: var(--red);
  --radius: 999px;
  --header: 100px;
  --font: "Nunito", "Segoe UI", sans-serif;
  --serif: "Literata", "Times New Roman", serif;
  --shadow: 0 18px 50px rgba(0, 31, 99, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  background: rgba(252, 252, 252, .88);
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 22px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0, 57, 166, .08);
  transition: box-shadow .35s ease, background .35s ease;
}
.site-header.is-scrolled {
  background: rgba(252, 252, 252, .96);
  box-shadow: 0 10px 28px rgba(0, 31, 99, .08);
}
.menu-toggle {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  border-radius: 0;
  display: grid;
  place-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--navy);
  transition: transform .28s ease, opacity .2s ease;
}
body.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}
.header-brand {
  display: flex;
  align-items: center;
  line-height: 0;
  margin-right: auto;
}
.header-brand img {
  height: 88px;
  width: auto;
  max-width: min(420px, 58vw);
  object-fit: contain;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-phone {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  color: #fff;
  background: var(--navy);
  border-radius: var(--radius);
  padding: 10px 16px;
}
.header-phone:hover { background: var(--navy-deep); }
.header-vk,
.header-max {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}
.header-max { color: #4f6bff; }
.viz-toggle {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
  border-radius: var(--radius);
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.viz-toggle:hover {
  color: var(--navy);
  border-color: var(--navy);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 18, 54, .46);
  z-index: 80;
  opacity: 0;
  transition: opacity .35s ease;
}
.nav-overlay.is-open { opacity: 1; }
.nav-panel {
  width: min(420px, 100%);
  height: 100%;
  background: var(--navy-deep);
  color: #fff;
  padding: 28px 32px 48px;
  overflow: auto;
  box-shadow: none;
  transform: translateX(-18px);
  transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}
.nav-overlay.is-open .nav-panel { transform: none; }
.nav-close {
  float: right;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}
.nav-list { display: grid; gap: 6px; clear: both; padding-top: 8px; }
.nav-list a {
  font-size: 22px;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff;
}
.nav-list a:hover { color: #fff; opacity: .85; }
.nav-contacts { margin-top: 28px; display: grid; gap: 6px; opacity: .85; color: #fff; font-weight: 600; }
.nav-list details { border-bottom: 1px solid rgba(255,255,255,.08); padding: 6px 0; }
.nav-list summary {
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
}
.nav-list details a {
  display: block;
  font-size: 15px;
  font-weight: 500;
  opacity: .85;
  padding: 6px 0;
  border: 0;
}

.hero {
  position: relative;
  min-height: max(760px, calc(100vh - var(--header)));
  background: #001433;
  color: #fff;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img, .hero-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1);
  transition: transform .8s ease;
}
.hero-slide.is-active img {
  transform: scale(1.08);
  transition: transform 14s linear;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 20, 51, .62) 0%, rgba(0, 20, 51, .18) 46%, transparent 70%),
    linear-gradient(180deg, transparent 38%, rgba(0, 20, 51, .55) 100%);
}
.hero-copy {
  position: absolute;
  left: 32px;
  bottom: 56px;
  z-index: 2;
  width: min(560px, calc(100% - 64px));
  display: flex;
  flex-direction: column;
  padding: 32px 34px 30px;
  border-radius: 28px;
  background: rgba(0, 16, 42, .42);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-shadow: 0 2px 16px rgba(0, 12, 40, .35);
}
.hero-copy .btn {
  margin-top: 6px;
  align-self: flex-start;
  min-height: 52px;
  padding: 0 26px;
  font-size: 16px;
}
.hero-copy .date {
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 12px;
  opacity: .95;
  margin: 0 0 12px;
}
.hero-copy h1, .hero-copy h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -.03em;
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.hero-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  font-size: 13px;
  font-weight: 800;
}
.hero-nav {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: grid;
  gap: 10px;
}
.hero-nav button,
.hero-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .92);
  color: var(--navy);
  cursor: pointer;
  font-size: 20px;
  transition: transform .2s ease, background .2s ease;
}
.hero-nav button:hover {
  transform: scale(1.08);
  background: #fff;
}
.hero-dots {
  position: absolute;
  right: 28px;
  bottom: 22px;
  z-index: 3;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 50%;
}
.hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .4);
  cursor: pointer;
  transition: width .28s ease, background .28s ease, border-radius .28s ease;
}
.hero-dots button.is-active {
  width: 22px;
  border-radius: 999px;
  background: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: .02em;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { box-shadow: 0 10px 24px rgba(0, 31, 99, .16); }
.btn--dark { background: var(--red); color: #fff; }
.btn--dark:hover { background: var(--red-dark); box-shadow: 0 12px 26px rgba(226, 30, 45, .28); }
.btn--line { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }

.section { padding: 88px 0; }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: #fff; }
.section--page { padding: 48px 0 88px; }
.map-section {
  padding: 0;
  background: #fff;
}
.map-section__head {
  padding: 64px 0 22px;
}
.map-section__head h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
}
.map-embed {
  width: 100%;
  height: 560px;
  min-height: 0;
  line-height: 0;
  background: #e8eef6;
  overflow: hidden;
}
.map-embed iframe,
.map-embed .leaflet-container {
  display: block;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}
.map-embed .leaflet-container {
  font-family: inherit;
}
.map-embed .leaflet-control-attribution {
  font-size: 11px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 800;
  color: var(--gold);
  margin: 0 0 12px;
}
h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -.02em;
}
.lead { font-size: 18px; color: var(--muted); max-width: 640px; }

.why-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: stretch;
}
.why-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.why-card img { width: 100%; height: 280px; object-fit: cover; }
.why-card .txt { padding: 28px; }
.why-card h3 { margin: 0 0 10px; font-size: 24px; font-family: var(--serif); }
.why-card p { margin: 0 0 16px; color: #445; }
.link-arrow { font-weight: 800; color: var(--navy); }
.link-arrow:hover { color: var(--red); }

.programs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.program {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  min-height: 340px;
  position: relative;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
}
.program img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.program::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(8,14,28,.82));
}
.program > * { position: relative; z-index: 1; }
.program span { opacity: .85; font-size: 14px; }
.program h3 { margin: 6px 0 0; font-size: 22px; }

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature {
  background: #fff;
  border-radius: 20px;
  padding: 22px;
  min-height: 180px;
}
.feature b { display: block; font-size: 42px; color: var(--gold); line-height: 1; margin-bottom: 12px; }
.feature p { margin: 0; font-size: 18px; font-weight: 700; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.news-card {
  display: block;
  color: inherit;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 31, 99, .06);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0;
  transition: transform .55s ease;
}
.news-card:hover img { transform: scale(1.05); }
.news-card time { display: block; margin: 14px 16px 6px; color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.news-card h3 { margin: 0 16px 18px; font-size: 18px; line-height: 1.3; font-family: var(--serif); }

.partners {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.partner {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  min-height: 150px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 10px;
}
.partner img { height: 42px; width: auto; object-fit: contain; }
.partner span { font-size: 13px; color: var(--muted); }

.cta-band { background: var(--navy-deep); color: #fff; padding: 80px 0; }
.cta-band__grid {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 48px;
  align-items: start;
}
.cta-band .eyebrow { color: #ffb4b8; }
.cta-band h2 { color: #fff; }
.cta-band .price-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: none;
  color: #fff;
}
.cta-band .price-card a { color: #fff; }
.cta-band .lead-form {
  background: #fff;
  color: var(--ink);
}
.lead-form {
  background: #fff;
  padding: 28px;
  border-radius: 22px;
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow);
}
.lead-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.lead-form input[type="text"],
.lead-form input[type="tel"],
.lead-form input[type="email"],
.lead-form select,
.lead-form textarea {
  height: 48px;
  border: 1px solid #e8e4da;
  border-radius: 14px;
  padding: 0 14px;
  font-size: 15px;
  background: #fbfaf6;
}
.lead-form textarea { height: 110px; padding: 12px 14px; resize: vertical; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.check input { margin-top: 3px; }
.form-note { margin: 0; padding: 10px 12px; border-radius: 8px; }
.form-note--ok { background: #e8f6ee; }
.form-note--err { background: #fdecec; }

.page-hero {
  min-height: 52vh;
  position: relative;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 0 0 56px;
  background: var(--navy-deep);
}
.page-hero--compact {
  min-height: 0;
  align-items: flex-end;
  padding: 44px 0 36px;
  background: var(--navy-deep);
}
.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero--compact img { display: none; }
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,14,28,.2), rgba(8,14,28,.75));
}
.page-hero--compact::after { display: none; }
.page-hero .wrap { position: relative; z-index: 1; }
.crumb { opacity: .8; margin: 0 0 10px; font-size: 14px; }
.crumb a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.page-hero h1 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 52px);
  letter-spacing: -.03em;
}
.page-hero .date { margin: 0; opacity: .85; }

.page-shell {
  background: #fff;
  border: 1px solid rgba(0, 57, 166, .08);
  border-radius: 28px;
  padding: clamp(22px, 3vw, 40px);
  box-shadow: 0 16px 50px rgba(0, 31, 99, .06);
}

.prose { max-width: 920px; font-size: 17px; }
.content-body { max-width: 980px; }
.content-body.prose { max-width: none; }
.prose p { color: #333; line-height: 1.7; }
.prose h2, .prose h3, .prose h4 {
  color: var(--ink);
  font-family: var(--serif);
  letter-spacing: -.02em;
  margin: 1.6em 0 .6em;
}
.prose ul, .prose ol { padding-left: 1.2em; color: #333; }
.prose a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.prose img {
  border-radius: 16px;
  margin: 12px 0 20px;
  max-width: 100%;
  height: auto;
}
.prose table,
.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 28px;
  background: #fff;
  border: 1px solid #ebe6dc;
  border-radius: 16px;
  overflow: hidden;
  font-size: 15px;
}
.prose th, .prose td,
.content-body th, .content-body td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid #f0ece4;
  vertical-align: top;
  color: var(--ink);
}
.prose th, .content-body th {
  width: 38%;
  background: var(--paper);
  font-weight: 800;
  color: var(--navy-deep);
}
.prose tr:last-child th,
.prose tr:last-child td,
.content-body tr:last-child th,
.content-body tr:last-child td {
  border-bottom: 0;
}
.prose figure { margin: 0 0 20px; }
.content-body .elementor-widget-navigation-menu,
.content-body .hfe-nav-menu,
.content-body nav.menu,
.content-body .elementor-location-header,
.content-body .elementor-location-footer {
  display: none !important;
}
.contacts-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 0 28px;
}
.contacts-card > div {
  padding: 18px 18px 16px;
  border: 1px solid #ebe6dc;
  border-left: 4px solid var(--red);
  border-radius: 16px;
  background: var(--paper);
}
.contacts-card .eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.contacts-card p { margin: 0; color: var(--ink); }
.contacts-card a { color: var(--navy); text-decoration: none; font-weight: 700; }
.contacts-card a:hover { text-decoration: underline; }

.cards-3, .cards-2 {
  display: grid;
  gap: 16px;
}
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.info-card, .price-card, .person {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(16,33,61,.06);
}
.info-card, .price-card { padding: 24px; }
.info-card img, .person img { width: 100%; height: 200px; object-fit: cover; }
.price-card h3 { margin: 0 0 8px; }
.price { font-size: 32px; font-weight: 800; margin: 8px 0; }
.price small { font-size: 16px; font-weight: 500; color: var(--muted); }
.person { text-align: center; padding-bottom: 18px; }
.person h3 { margin: 14px 16px 4px; font-size: 18px; }
.person p { margin: 0 16px; color: var(--muted); font-size: 14px; }

.docs-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}
.docs-table th, .docs-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}
.docs-table th { width: 42%; background: var(--paper); }

.staff-gallery {
  margin: 0 0 48px;
}
.staff-gallery > h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  margin: 0 0 28px;
}
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.team-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  min-height: 200px;
  text-align: left;
  background: #fff;
  padding: 16px 20px;
  border-radius: 24px;
  border: 1px solid rgba(0, 57, 166, .08);
  box-shadow: 0 10px 30px rgba(0, 31, 99, .05);
}
.team-card:has(.team-card__more[open]) {
  align-items: start;
}
.team-card__photo {
  margin: 0;
}
.team-card img {
  width: 168px;
  height: 168px;
  border-radius: 18px;
  object-fit: cover;
  object-position: center 12%;
  display: block;
  background: #eef2f8;
}
.team-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 168px;
}
.team-card__facts {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--navy-deep);
}
.team-card__facts span {
  display: block;
  margin-bottom: 2px;
  color: #5b7c9d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.team-card__more-slot {
  min-height: 28px;
  margin-top: 10px;
}
.team-card__more {
  font-size: 14px;
  color: #334;
}
.team-card__more summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--navy);
  list-style: none;
}
.team-card__more summary::-webkit-details-marker { display: none; }
.team-card__more summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 6px;
}
.team-card__more[open] summary::before { content: "▾"; }
.team-card__more ul {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}
.team-card__sub {
  margin: 12px 0 0;
  font-weight: 800;
  color: var(--navy-deep);
}
.team-card__name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  margin: 4px 0 0;
  color: var(--navy-deep);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}
.team-card__role {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #5b7c9d;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
@media (max-width: 720px) {
  .team-card {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 14px;
    min-height: 0;
  }
  .team-card img {
    width: 100%;
    height: 220px;
  }
  .team-card__body { min-height: 0; }
  .team-card__facts { grid-template-columns: 1fr; }
}
body.page-staff .page-shell.fs-reveal,
body.page-staff .staff-gallery.fs-reveal,
body.page-staff .team-card.fs-reveal {
  opacity: 1;
  transform: none;
}
body.page-staff .content-body > h2,
body.page-staff .content-body > h3 {
  margin-top: 36px;
}
.prose .team-card img {
  margin: 0;
  border-radius: 18px;
  width: 168px;
  height: 168px;
}
.prose .team-card__name { margin: 4px 0 0; letter-spacing: 0; }
.prose .team-card__role { color: #5b7c9d; line-height: 1.35; }
.prose .staff-gallery > h2 { margin-top: 0; }
.team-card__bio {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: #334;
}
.prose .team-card__bio p {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.55;
  color: #334;
}
.team-card__bio strong { color: var(--navy-deep); }
.prose .team-card__bio h4 {
  margin: 14px 0 4px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--navy-deep);
}
.prose .team-card__bio ul { margin: 6px 0 0; padding-left: 18px; }
.prose .team-card__bio li { margin-bottom: 6px; font-size: 14px; }
.prose .team-card__bio blockquote {
  margin: 10px 0;
  padding: 10px 14px;
  font-size: 14px;
  font-style: italic;
}
.prose .team-card__bio blockquote p { margin: 0; }
@media (max-width: 720px) {
  .prose .team-card img { width: 100%; height: 220px; }
}

.site-footer {
  background: #001433;
  color: #d5dbe8;
  padding: 64px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
.footer-title {
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  margin: 0 0 10px;
  font-size: 22px;
}
.footer-nav { display: grid; gap: 8px; }
.footer-nav a:hover { color: #fff; }
.footer-copy {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 2px solid var(--red);
  font-size: 13px;
  opacity: .75;
}

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.tabs button {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: var(--radius);
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 700;
}
.tabs button.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.panel { display: none; }
.panel.is-active { display: block; }

.hero-sub {
  margin: 0 0 18px;
  max-width: none;
  font-size: 17px;
  line-height: 1.45;
  opacity: .95;
  color: #fff;
}
.official-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.official-grid a {
  background: #fff;
  border-radius: 18px;
  padding: 18px 16px;
  font-weight: 800;
  font-size: 14px;
  min-height: 92px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(0, 57, 166, .08);
  border-left: 4px solid var(--red);
  color: var(--navy);
  box-shadow: 0 8px 22px rgba(0, 31, 99, .04);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease, border-color .2s ease;
}
.official-grid a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: var(--navy);
}
.social-section { padding-top: 56px; }
.social-qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  justify-content: center;
  gap: 22px;
  margin-top: 28px;
}
.social-qr-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 22px 22px 20px;
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(0, 57, 166, .08);
  box-shadow: 0 10px 30px rgba(0, 31, 99, .05);
  color: var(--navy-deep);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease;
}
.social-qr-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  color: var(--navy-deep);
}
.social-qr-card img {
  width: min(240px, 100%);
  height: auto;
  border-radius: 12px;
}
.social-qr-card span {
  font-size: 16px;
  font-weight: 800;
}
.cta-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 16px 0 0 !important;
}
.cta-socials a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff !important;
  font-weight: 800;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}
.lead-form--plain { box-shadow: none; padding: 0; }

.content-body .wpcf7,
.content-body form.wpcf7-form {
  max-width: 640px;
  margin: 28px 0 8px;
  padding: 28px;
  background: #fff;
  border: 1px solid rgba(0, 57, 166, .12);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(0, 31, 99, .06);
}
.content-body .wpcf7-form,
.content-body .wpcf7-form p {
  display: grid;
  gap: 12px;
  margin: 0;
}
.content-body .wpcf7-form br {
  display: none;
}
.content-body .wpcf7-form-control-wrap,
.content-body .wpcf7 label {
  display: block;
  width: 100%;
}
.content-body .wpcf7 input[type="text"],
.content-body .wpcf7 input[type="email"],
.content-body .wpcf7 input[type="tel"],
.content-body .wpcf7 input[type="url"],
.content-body .wpcf7 select,
.content-body .wpcf7 textarea {
  width: 100%;
  max-width: 100%;
  height: 48px;
  border: 1px solid #d9e0ea;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 15px;
  background: #f7f9fc;
  color: var(--ink);
  box-sizing: border-box;
}
.content-body .wpcf7 input[type="text"]:focus,
.content-body .wpcf7 input[type="email"]:focus,
.content-body .wpcf7 input[type="tel"]:focus,
.content-body .wpcf7 input[type="url"]:focus,
.content-body .wpcf7 select:focus,
.content-body .wpcf7 textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 57, 166, .12);
}
.content-body .wpcf7 textarea {
  height: 110px;
  padding: 12px 14px;
  resize: vertical;
}
.content-body .wpcf7 select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%230039a6' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.content-body .wpcf7-checkbox,
.content-body .wpcf7-acceptance {
  display: block;
}
.content-body .wpcf7-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}
.content-body .wpcf7-list-item-label {
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
}
.content-body .wpcf7 input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--navy);
}
.content-body .wpcf7 input[type="submit"],
.content-body .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  width: auto;
}
.content-body .wpcf7 input[type="submit"]:hover,
.content-body .wpcf7-submit:hover {
  background: var(--red-dark);
}
.content-body .wpcf7-response-output {
  display: none;
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 0;
}
.content-body .wpcf7-mail-sent-ok,
.content-body .wpcf7-validation-errors,
.content-body .wpcf7-mail-sent-ng,
.content-body .wpcf7-spam-blocked {
  display: block;
  background: #e8f6ee;
}
.content-body .wpcf7-validation-errors,
.content-body .wpcf7-mail-sent-ng {
  background: #fdecec;
}

.content-body { font-size: 16px; line-height: 1.65; }
.content-body a { color: var(--navy); text-decoration: underline; }
.content-body a:hover { color: var(--red); }
.content-body h2, .content-body h3 { margin: 1.4em 0 .5em; font-family: var(--serif); }
.content-body img, .content-body video { max-width: 100%; height: auto; }
.content-body table { width: 100%; border-collapse: collapse; margin: 16px 0; background: #fff; }
.content-body th, .content-body td { border: 1px solid #ebe6dc; padding: 10px 12px; text-align: left; vertical-align: top; }

.content-body a[href*=".pdf"] {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 14px 8px 12px;
  margin: 4px 0;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid #ebe6dc;
  text-decoration: none !important;
  font-weight: 800;
  color: var(--navy-deep) !important;
}
.content-body a[href*=".pdf"]:hover {
  border-color: var(--navy);
  color: var(--navy) !important;
}
.content-body a[href*=".pdf"] img {
  width: 18px;
  height: 18px;
  margin: 0;
  border-radius: 0;
}

.content-body .elementor-widget-nav-menu,
.content-body .elementor-nav-menu,
.content-body .elementor-nav-menu--main,
.content-body .elementor-menu-toggle,
.content-body nav.elementor-nav-menu--dropdown,
.content-body .elementor-widget-nav-menu .elementor-widget-container {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
}
.content-body .elementor,
.content-body .elementor-section,
.content-body .elementor-container,
.content-body .elementor-widget-wrap,
.content-body .elementor-element,
.content-body .elementor-widget,
.content-body .elementor-column {
  position: static !important;
  left: auto !important;
  top: auto !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0;
  float: none !important;
  display: block !important;
}
.content-body .elementor-accordion-icon {
  display: none !important;
}
.content-body .elementor-tab-title,
.content-body h2.elementor-tab-title,
.content-body .elementor-toggle-title {
  margin: 28px 0 12px !important;
  padding: 0 !important;
  font-size: clamp(24px, 2.4vw, 32px) !important;
  line-height: 1.2 !important;
  color: var(--navy-deep) !important;
  background: none !important;
  border: 0 !important;
  cursor: default;
}
.content-body .elementor-tab-content,
.content-body .elementor-tab-content.elementor-active {
  display: block !important;
  height: auto !important;
  padding: 0 0 8px !important;
  overflow: visible !important;
}
.content-body .elementor-accordion-item {
  margin: 0 !important;
  border: 0 !important;
}
.content-body .elementor-widget-nav-menu,
.content-body .elementor-widget-navigation-menu,
.content-body .elementor-widget-nav-menu.elementor-widget,
.content-body .elementor-widget-navigation-menu.elementor-widget,
.content-body .elementor-widget-nav-menu .elementor-widget-container,
.content-body .elementor-widget-navigation-menu .elementor-widget-container,
.content-body .elementor-nav-menu,
.content-body .elementor-nav-menu--main,
.content-body .elementor-menu-toggle,
.content-body nav.elementor-nav-menu--dropdown {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  margin: 0 !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.programs-section {
  padding-top: 40px;
  padding-bottom: 8px;
}
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.program-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 230px;
  padding: 26px 26px 22px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(0, 57, 166, .08);
  box-shadow: 0 10px 30px rgba(0, 31, 99, .05);
  color: var(--ink);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease;
}
.program-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.program-tile__kicker {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
}
.program-tile h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--navy-deep);
}
.program-tile p {
  margin: 0 0 auto;
  max-width: 30ch;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.program-tile__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
}
.program-tile__more::after {
  content: "→";
  transition: transform .22s ease;
}
.program-tile:hover .program-tile__more { color: var(--red); }
.program-tile:hover .program-tile__more::after { transform: translateX(4px); }

.school-video-section {
  padding: 56px 0 64px;
  background: var(--paper);
}
.school-video {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}
.school-video__copy h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.12;
  color: var(--navy-deep);
}
.school-video__lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  max-width: 42ch;
}
.school-video__facts {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}
.school-video__facts li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 18px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}
.school-video__facts strong { color: var(--navy); }
.school-video__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}
.school-video__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  background: #121a2a;
  border: 1px solid #ebe6dc;
  box-shadow: var(--shadow);
}
.school-video__badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  pointer-events: none;
}
.school-video__media video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #121a2a;
}

.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination a,
.pagination span {
  display: inline-flex;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #ebe6dc;
  font-weight: 800;
}
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

@media (max-width: 1400px) {
  .header-vk,
  .header-max { display: none; }
}
@media (max-width: 980px) {
  .why-grid, .cta-band__grid, .footer-grid { grid-template-columns: 1fr; }
  .programs, .features, .news-grid, .partners, .cards-3, .cards-2 { grid-template-columns: 1fr 1fr; }
  .contacts-card { grid-template-columns: 1fr 1fr; }
  .header-phone { display: none; }
  .hero-copy {
    left: 16px;
    right: 16px;
    top: auto;
    bottom: 16px;
    width: auto;
    padding: 22px 20px;
  }
  .header-brand img { height: 68px; }
  .official-grid { grid-template-columns: 1fr 1fr; }
  .programs-grid { grid-template-columns: 1fr; }
  .program-tile { min-height: 0; }
}
@media (max-width: 900px) {
  .school-video { grid-template-columns: 1fr; }
  .school-video__copy { order: 1; }
  .school-video__media { order: 2; }
  .school-video__lead { max-width: none; }
}
@media (max-width: 640px) {
  .social-qr-grid { grid-template-columns: 1fr; }
  .programs, .features, .news-grid, .partners, .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .contacts-card { grid-template-columns: 1fr; }
  .header-brand img { height: 56px; }
  .header-vk,
  .header-max { display: none; }
  .hero { min-height: max(640px, 88vh); }
  .footer-copy { flex-direction: column; }
  .prose table,
  .content-body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .programs-section { padding-top: 22px; }
  .program-tile { padding: 20px; border-radius: 18px; }
  .school-video-section { padding: 32px 0 36px; }
  .school-video__media { border-radius: 18px; }
  .page-shell { padding: 18px 16px; border-radius: 20px; }
}

/* Версия для слабовидящих (BVI): body.bvi-active + обёртка .bvi-body */
.bvi-show { display: none !important; }
body.bvi-active .site-header {
  position: static;
  height: auto;
  min-height: var(--header);
  flex-wrap: wrap;
  padding: 12px 22px;
  backdrop-filter: none;
}
body.bvi-active .hero {
  min-height: 0 !important;
  height: auto !important;
  overflow: visible !important;
  background: transparent !important;
}
body.bvi-active .hero-slide,
body.bvi-active .hero-nav,
body.bvi-active .hero-dots {
  display: none !important;
}
body.bvi-active .hero-copy {
  position: static !important;
  left: auto !important;
  bottom: auto !important;
  width: 100% !important;
  max-width: none !important;
  padding: 28px 22px !important;
  text-shadow: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
body.bvi-active .hero-copy .date,
body.bvi-active .hero-copy h1,
body.bvi-active .hero-copy h2,
body.bvi-active .hero-sub {
  text-shadow: none !important;
}
body.bvi-active .page-hero {
  min-height: 0 !important;
  padding: 28px 0 !important;
}
body.bvi-active .page-hero::before,
body.bvi-active .page-hero::after,
body.bvi-active .program::before,
body.bvi-active .program::after {
  display: none !important;
}
body.bvi-active .school-video__media {
  overflow: visible !important;
  background: #fff !important;
  border: 1px solid #000 !important;
  box-shadow: none !important;
}
body.bvi-active .bvi-body .school-video__media.bvi-no-styles video {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: 520px !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  background: transparent !important;
  filter: none !important;
}
body.bvi-active .school-video__badge {
  position: static !important;
  display: inline-flex !important;
  margin: 0 0 10px;
}
body.bvi-active .nav-panel { color: inherit; }
body.bvi-active .viz-toggle { display: none !important; }

/* Страница питания: без жёлтого, спокойная вёрстка */
body.page-food {
  --e-global-color-accent: #0039a6;
  --e-global-color-primary: #0039a6;
  --e-global-color-secondary: #e21e2d;
}
body.page-food .page-shell {
  background: #fff;
  border-color: rgba(0, 57, 166, .08);
}
body.page-food .content-body h1 {
  display: none;
}
body.page-food .content-body .elementor-element:not(.wpcf7):not(.wpcf7-form),
body.page-food .content-body .elementor-widget-container,
body.page-food .content-body .elementor-heading-title,
body.page-food .content-body [style*="background"]:not(img):not(.wpcf7):not(form) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}
body.page-food .content-body .elementor-heading-title {
  color: var(--navy-deep) !important;
  padding: 0 !important;
}
body.page-food .content-body > .elementor > .elementor-section:nth-child(2) p,
body.page-food .content-body .elementor-widget-text-editor p {
  max-width: 68ch;
  color: #2c3340;
  font-size: 17px;
  line-height: 1.75;
}
body.page-food .content-body .wpcf7 p,
body.page-food .content-body .wpcf7-form p {
  max-width: none;
  font-size: 15px;
}
body.page-food .content-body h2,
body.page-food .content-body h3,
body.page-food .content-body h4 {
  color: var(--navy-deep);
  letter-spacing: -.02em;
}
body.page-food .content-body h3 {
  margin: 1.4em 0 .4em;
  font-size: clamp(22px, 2.2vw, 28px);
}
body.page-food .content-body .elementor-col-25 h3 {
  margin: 4px 0 8px;
  font-size: 20px;
  line-height: 1.25;
}
body.page-food .content-body .elementor-col-25 h3:last-child {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
}
body.page-food .content-body img {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 20px;
  margin: 0 0 12px;
  box-shadow: 0 14px 36px rgba(0, 31, 99, .1);
}
body.page-food .content-body .elementor-col-33 img {
  height: 220px;
  object-fit: cover;
}
body.page-food .content-body .elementor-col-25 img {
  height: 280px;
  object-fit: cover;
  object-position: top;
}
body.page-food .content-body .elementor-container {
  display: flex !important;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}
body.page-food .content-body .elementor-col-100 {
  width: 100% !important;
  flex: 1 1 100%;
}
body.page-food .content-body .elementor-button-wrapper {
  display: inline-block;
  margin: 4px 10px 12px 0;
}
body.page-food .content-body .elementor-button br {
  display: none;
}
body.page-food .content-body a[href*=".pdf"] {
  background: #fff;
  border: 1px solid rgba(0, 57, 166, .14);
  color: var(--navy-deep) !important;
  box-shadow: 0 8px 22px rgba(0, 31, 99, .05);
  margin: 6px 8px 6px 0;
}
body.page-food .content-body a.elementor-button[href*=".pdf"],
body.page-food .content-body .elementor-button,
body.page-food .content-body .elementor-button-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 220px;
  padding: 10px 22px !important;
  margin: 0;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--navy) !important;
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: none !important;
}
body.page-food .content-body .elementor-button:hover,
body.page-food .content-body .elementor-button-link:hover {
  background: var(--navy-deep) !important;
  color: #fff !important;
}
body.page-food .content-body .wpcf7,
body.page-food .content-body form.wpcf7-form {
  max-width: none;
  margin-top: 8px;
  padding: 28px;
  background: #fff !important;
  border: 1px solid rgba(0, 57, 166, .12) !important;
  box-shadow: 0 16px 40px rgba(0, 31, 99, .06);
}
body.page-food .content-body .wpcf7-form,
body.page-food .content-body .wpcf7-form p {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
body.page-food .content-body .wpcf7-form p > label,
body.page-food .content-body .wpcf7-form p > .your-phone,
body.page-food .content-body .wpcf7-form p > .your-text,
body.page-food .content-body .wpcf7-form p > .sogl,
body.page-food .content-body .wpcf7-form p > [type="submit"] {
  grid-column: 1 / -1;
}
body.page-food .content-body .wpcf7 input[type="submit"],
body.page-food .content-body .wpcf7-submit {
  width: 100%;
}
@media (min-width: 800px) {
  body.page-food .content-body .elementor-col-33 {
    width: calc(33.333% - 12px) !important;
    flex: 1 1 calc(33.333% - 12px);
  }
  body.page-food .content-body .elementor-col-33:has(.wpcf7) {
    width: 100% !important;
    flex: 1 1 100%;
  }
  body.page-food .content-body .elementor-col-25 {
    width: calc(25% - 12px) !important;
    flex: 1 1 calc(25% - 12px);
  }
  body.page-food .content-body .elementor-col-50 {
    width: calc(50% - 12px) !important;
    flex: 1 1 calc(50% - 12px);
  }
}
@media (max-width: 799px) {
  body.page-food .content-body .elementor-col-33,
  body.page-food .content-body .elementor-col-25 {
    width: calc(50% - 8px) !important;
    flex: 1 1 calc(50% - 8px);
  }
  body.page-food .content-body .elementor-col-33:has(.wpcf7) {
    width: 100% !important;
    flex: 1 1 100%;
  }
  body.page-food .content-body .elementor-col-33 img,
  body.page-food .content-body .elementor-col-25 img {
    height: 200px;
  }
}
@media (max-width: 720px) {
  body.page-food .content-body .wpcf7-form,
  body.page-food .content-body .wpcf7-form p {
    grid-template-columns: 1fr;
  }
  body.page-food .content-body .wpcf7,
  body.page-food .content-body form.wpcf7-form {
    padding: 22px 18px;
  }
}
@media (max-width: 560px) {
  body.page-food .content-body .elementor-col-33,
  body.page-food .content-body .elementor-col-25 {
    width: 100% !important;
    flex: 1 1 100%;
  }
}

@keyframes fs-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.hero-copy > * {
  animation: fs-rise .7s cubic-bezier(.22, 1, .36, 1) both;
}
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .14s; }
.hero-copy > *:nth-child(3) { animation-delay: .22s; }
.hero-copy > *:nth-child(4) { animation-delay: .3s; }
.hero-copy > *:nth-child(5) { animation-delay: .38s; }

.page-hero .wrap {
  animation: fs-rise .65s cubic-bezier(.22, 1, .36, 1) both;
}

.header-phone,
.header-vk,
.viz-toggle,
.link-arrow,
.nav-list a,
.footer-nav a {
  transition: color .2s ease, background .2s ease, border-color .2s ease, opacity .2s ease, transform .2s ease;
}
.header-phone:hover,
.header-vk:hover,
.header-max:hover,
.viz-toggle:hover {
  transform: translateY(-1px);
}

.fs-reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(28px);
}
.fs-reveal {
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1) var(--d, 0ms),
              transform .7s cubic-bezier(.22, 1, .36, 1) var(--d, 0ms);
}
.fs-reveal.is-in {
  opacity: 1;
  transform: none;
}

.nav-list a,
.nav-list details {
  transition: opacity .35s ease, transform .4s cubic-bezier(.22, 1, .36, 1);
}
.nav-overlay:not(.is-open) .nav-list a,
.nav-overlay:not(.is-open) .nav-list details {
  opacity: 0;
  transform: translateX(-8px);
}
.nav-overlay.is-open .nav-list a,
.nav-overlay.is-open .nav-list details {
  opacity: 1;
  transform: none;
}
.nav-overlay.is-open .nav-list > *:nth-child(1) { transition-delay: .05s; }
.nav-overlay.is-open .nav-list > *:nth-child(2) { transition-delay: .08s; }
.nav-overlay.is-open .nav-list > *:nth-child(3) { transition-delay: .11s; }
.nav-overlay.is-open .nav-list > *:nth-child(4) { transition-delay: .14s; }
.nav-overlay.is-open .nav-list > *:nth-child(5) { transition-delay: .17s; }
.nav-overlay.is-open .nav-list > *:nth-child(6) { transition-delay: .2s; }
.nav-overlay.is-open .nav-list > *:nth-child(7) { transition-delay: .23s; }
.nav-overlay.is-open .nav-list > *:nth-child(8) { transition-delay: .26s; }

.lead-form input,
.lead-form select,
.lead-form textarea,
.content-body .wpcf7 input[type="text"],
.content-body .wpcf7 input[type="email"],
.content-body .wpcf7 input[type="tel"],
.content-body .wpcf7 select,
.content-body .wpcf7 textarea {
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

body.bvi-active .hero-copy > *,
body.bvi-active .page-hero .wrap,
body.bvi-active .fs-reveal {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
body.bvi-active .hero-slide img,
body.bvi-active .news-card img,
body.bvi-active .btn,
body.bvi-active .program-tile,
body.bvi-active .official-grid a {
  transform: none !important;
  transition: none !important;
}

/* Галереи и карусели в материалах */
.content-body .wp-block-gallery,
.content-body .gallery,
.content-body .fs-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin: 20px 0 28px;
  padding: 0;
  list-style: none;
}
.content-body .wp-block-gallery figure,
.content-body .gallery figure,
.content-body .fs-gallery figure,
.content-body .gallery .gallery-item { margin: 0; }
.content-body .wp-block-gallery img,
.content-body .gallery img,
.content-body .fs-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: 0;
  border-radius: 12px;
}
.content-body [hidden] { display: none !important; }

.fs-carousel {
  margin: 24px 0 32px;
  outline: none;
}
.fs-carousel__stage {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #0b1630;
}
.fs-carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.fs-carousel__track::-webkit-scrollbar { display: none; }
.fs-carousel__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  height: clamp(260px, 56vw, 560px);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.fs-carousel__slide img {
  width: 100%;
  height: 100%;
  margin: 0 !important;
  border-radius: 0 !important;
  object-fit: contain;
}
.fs-carousel__nav {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--navy-deep);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  transition: transform .2s ease, background .2s ease;
}
.fs-carousel__nav:hover { background: #fff; transform: scale(1.06); }
.fs-carousel__nav--prev { left: 14px; }
.fs-carousel__nav--next { right: 14px; }
.fs-carousel__count {
  position: absolute;
  right: 14px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.fs-carousel.is-single .fs-carousel__nav,
.fs-carousel.is-single .fs-carousel__count { display: none; }
.fs-carousel__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.fs-carousel__thumb {
  flex: 0 0 auto;
  width: 84px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: #eef2f8;
  cursor: pointer;
  opacity: .65;
  transition: opacity .2s ease, border-color .2s ease;
}
.fs-carousel__thumb img {
  width: 100%;
  height: 100%;
  margin: 0 !important;
  border-radius: 0 !important;
  object-fit: cover;
}
.fs-carousel__thumb:hover,
.fs-carousel__thumb.is-active { opacity: 1; }
.fs-carousel__thumb.is-active { border-color: var(--navy); }

.fs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 10, 25, .94);
}
.fs-lightbox.is-open { display: flex; }
body.fs-lightbox-open { overflow: hidden; }
.fs-lightbox__figure {
  margin: 0;
  max-width: calc(100vw - 140px);
  max-height: calc(100vh - 80px);
  text-align: center;
}
.fs-lightbox__figure img {
  max-width: 100%;
  max-height: calc(100vh - 110px);
  margin: 0 auto;
  border-radius: 8px;
  object-fit: contain;
}
.fs-lightbox__figure figcaption { margin-top: 8px; color: #dfe5f2; font-size: 14px; }
.fs-lightbox__nav,
.fs-lightbox__close {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
}
.fs-lightbox__nav {
  top: 50%;
  width: 54px;
  height: 54px;
  margin-top: -27px;
  font-size: 36px;
}
.fs-lightbox__nav:hover,
.fs-lightbox__close:hover { background: rgba(255, 255, 255, .24); }
.fs-lightbox__nav--prev { left: 20px; }
.fs-lightbox__nav--next { right: 20px; }
.fs-lightbox__close {
  top: 18px;
  right: 20px;
  width: 46px;
  height: 46px;
  font-size: 30px;
  line-height: 1;
}
.fs-lightbox__count {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-weight: 700;
}
.fs-lightbox.is-single .fs-lightbox__nav,
.fs-lightbox.is-single .fs-lightbox__count { display: none; }
@media (max-width: 720px) {
  .fs-carousel__nav { width: 38px; height: 38px; margin-top: -19px; font-size: 24px; }
  .fs-lightbox__figure { max-width: 100vw; }
  .fs-lightbox__nav { top: auto; bottom: 10px; margin-top: 0; }
}

.content-body .fs-video {
  position: relative;
  margin: 20px 0 28px;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
}
.content-body .fs-video iframe,
.content-body .fs-video video {
  width: 100%;
  height: 100%;
  border: 0;
}
.content-body .fs-button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
}
.content-body .fs-button:hover { background: var(--navy-deep); }
.content-body blockquote {
  margin: 16px 0;
  padding: 10px 18px;
  border-left: 4px solid var(--red);
  background: var(--paper);
  border-radius: 0 14px 14px 0;
  font-style: italic;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .fs-reveal,
  .hero-copy > *,
  .page-hero .wrap {
    opacity: 1 !important;
    transform: none !important;
  }
}
