:root {
  --ink: #15324b;
  --sky: #4aa8e8;
  --brand-yellow: #ff9b00;
  --brand-yellow-soft: #fff0d6;
  --brand-yellow-deep: #b96f00;
  --yellow: var(--brand-yellow);
  --line: #cfe7f7;
  --paper: #f7fbff;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: var(--font-body);
  --brand-logo-width: 620px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); }
button,
input,
textarea,
select { font: inherit; }
img { max-width: 100%; }
.shell { width: 100%; margin-inline: 0; }
h1,
h2,
h3,
.stats strong,
.button,
.eyebrow { font-family: var(--font-display); }
h1,
h2,
h3 { text-wrap: balance; }

.site-header {
  position: relative;
  z-index: 20;
  height: 88px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding-left: calc(var(--brand-logo-width) + 16px);
  overflow: visible;
}
.animated-brand {
  position: absolute;
  top: 8px;
  left: 0;
  z-index: 4;
  display: block;
  width: var(--brand-logo-width);
  aspect-ratio: 850.394 / 255.118;
  color: var(--ink);
  text-decoration: none;
}
.animated-brand iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  pointer-events: none;
}
.site-header nav { display: flex; gap: 20px; margin-left: auto; white-space: nowrap; }
.site-header a { color: var(--ink); font-size: 14px; text-decoration: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 17px 25px;
  border: 0;
  border-radius: 100px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.button-small { padding: 12px 19px; font-size: 13px !important; }

.hero {
  min-height: 790px;
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: center;
  overflow: hidden;
  background: #fff;
}
.hero-copy { padding-left: 25px; }
.eyebrow { margin: 0 0 18px; color: #397ea9; font-size: 13px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.hero h1 { max-width: 650px; margin: 0; font-size: 78px; line-height: 1.035; letter-spacing: -.035em; }
.lead { max-width: 575px; font-size: 19px; line-height: 1.62; }
.hero-copy .button { margin-top: 18px; }
.facts { margin-top: 42px; font-size: 15px; font-weight: 650; line-height: 1.5; }
.facts i { display: inline-block; width: 5px; height: 5px; margin: 0 11px; border-radius: 50%; background: var(--sky); vertical-align: middle; }
.hero-image { height: 660px; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 340px 0 0 340px; box-shadow: 0 30px 60px #77acd055; }

section:not(.hero) { margin-top: 145px; }
.section-head { max-width: 690px; }
.section-head h2,
.experience h2,
.turnkey h2,
.contact h2 {
  margin: 0;
  font-size: 56px;
  line-height: 1.075;
  letter-spacing: -.028em;
}
.section-head > p:last-child { font-size: 18px; line-height: 1.65; }

.program-grid { display: grid; grid-template-columns: 1.15fr .85fr 1fr; gap: 20px; margin-top: 48px; }
.program { position: relative; height: 490px; overflow: hidden; border-radius: 28px; background: #123; color: #fff; }
.program img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.program:hover img { transform: scale(1.04); }
.program::after { position: absolute; inset: 0; background: linear-gradient(0deg, #102c43e8, transparent 68%); content: ""; }
.program > div { position: absolute; inset: auto 30px 28px; z-index: 1; }
.program span { font-weight: 800; color: #b9e7ff; }
.program h3 { margin: 9px 0; font-size: 30px; line-height: 1.1; letter-spacing: -.018em; }
.program p { margin: 0; line-height: 1.52; }
.program ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; padding: 0; list-style: none; }
.program li { padding: 5px 8px; border: 1px solid #ffffff66; border-radius: 99px; font-size: 12px; }
.program-more { padding: 0; border: 0; background: transparent; color: #fff; font-weight: 750; cursor: pointer; }

.experience { display: grid; grid-template-columns: 5fr 7fr; overflow: hidden; border-radius: 32px; background: #fff; }
.experience-photo { min-height: 440px; }
.experience-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.experience-content { padding: 58px 54px 54px; background: #eef8ff; }
.experience-top h2 { max-width: 620px; }
.experience-top p { max-width: 430px; margin-top: 22px; font-size: 19px; line-height: 1.62; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 34px; margin-top: 42px; }
.stats div { min-height: 82px; padding-left: 22px; border-left: 1px solid var(--line); }
.stats strong { display: flex; align-items: baseline; gap: 9px; font-size: 50px; line-height: 1.08; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats em { font-size: 20px; font-style: normal; letter-spacing: -.01em; }
.stats span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.35; }



.showreel {
  display: grid;
  grid-template-columns: 4fr 8fr;
  min-height: 520px;
  overflow: hidden;
  border-radius: 32px;
  background: var(--ink);
  color: #fff;
}
.showreel-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 70px 58px; }
.showreel-copy .eyebrow { color: #8fd2ff; }
.showreel-copy h2 { margin: 0; font-size: 54px; line-height: 1.08; letter-spacing: -.028em; }
.showreel-copy p:not(.eyebrow) { margin: 24px 0 0; color: #c5e5f5; font-size: 18px; line-height: 1.62; }
.showreel-copy .button { margin-top: 32px; }
.button-on-dark { background: var(--yellow); color: var(--ink); }
.showreel-poster {
  position: relative;
  min-height: 520px;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #0b2437;
  color: #fff;
  cursor: pointer;
}
.showreel-poster::after { position: absolute; inset: 0; background: linear-gradient(0deg, #0c263bc9 0, transparent 48%); content: ""; }
.showreel-poster img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.showreel-poster:hover img { transform: scale(1.035); }
.video-play,
.media-video-play {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ff9b00eb;
  color: var(--ink);
  box-shadow: 0 16px 35px #071a2b55;
}
.video-play { top: 50%; left: 50%; width: 82px; height: 82px; padding-left: 5px; transform: translate(-50%, -50%); font-size: 27px; }
.showreel-poster-caption { position: absolute; z-index: 2; right: 32px; bottom: 28px; left: 32px; display: flex; align-items: end; justify-content: space-between; gap: 20px; text-align: left; }
.showreel-poster-caption strong { font-size: 24px; }
.showreel-poster-caption small { color: #cde9f7; font-size: 13px; }

.media-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.media-controls { display: flex; align-items: center; gap: 8px; }
.media-controls span { min-width: 72px; color: #55758c; font-size: 12px; font-weight: 750; text-align: right; }
.media-controls button {
  min-width: 40px;
  height: 38px;
  padding: 0 13px;
  border: 1px solid #bfdeed;
  border-radius: 999px;
  background: #f7fcff;
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
}
.media-controls button:hover { border-color: #72b7dc; background: #e2f4ff; }
.media-controls button:disabled { opacity: .38; cursor: default; }
.media-video-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 22px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.media-video-row::-webkit-scrollbar { display: none; width: 0; height: 0; }
.media-video-row.is-at-start {
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%);
}
.media-video-row.is-at-end {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 100%);
}
.media-video-row.is-at-start.is-at-end { -webkit-mask-image: none; mask-image: none; }
.media-video-card {
  flex: 0 0 calc((100% - 54px) / 4);
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 16px 34px #37668517;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform .3s ease, box-shadow .3s ease;
}
.media-video-card:hover { transform: translateY(-5px); box-shadow: 0 22px 42px #37668525; }
.media-video-cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #dbeefa; }
.media-video-cover::after { position: absolute; inset: 0; background: linear-gradient(0deg, #102b4155, transparent 55%); content: ""; }
.media-video-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.media-video-card:hover img { transform: scale(1.045); }
.media-video-play { right: 16px; bottom: 14px; width: 44px; height: 44px; padding-left: 3px; font-size: 15px; }
.media-video-copy { display: grid; gap: 8px; padding: 20px 20px 23px; }
.media-video-copy small { color: #397ea9; font-size: 11px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.media-video-copy strong { font-family: var(--font-display); font-size: 21px; line-height: 1.23; letter-spacing: -.018em; }
.media-video-copy > span { color: #49687e; font-size: 13px; line-height: 1.5; }

.video-dialog { width: min(1120px, 92vw); max-height: 92vh; overflow: auto; border-radius: 24px; background: #fff; color: var(--ink); }
.video-dialog .close { position: fixed; }
.video-dialog-frame { position: relative; background: #071925; }
.video-dialog video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 70vh; background: #071925; }
.video-dialog-copy { padding: 28px 34px 34px; }
.video-dialog-copy .eyebrow { margin-bottom: 10px; }
.video-dialog-copy h2 { margin: 0; font-size: 38px; line-height: 1.12; letter-spacing: -.022em; }
.video-dialog-copy > p:last-child { max-width: 760px; margin: 14px 0 0; color: #49687e; font-size: 16px; line-height: 1.58; }
.video-error { position: absolute; inset: auto 24px 24px; margin: 0; padding: 13px 16px; border-radius: 12px; background: #fff1cf; color: #6b4d00; font-size: 13px; line-height: 1.45; }
.video-error code { font-size: 12px; }

.turnkey { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; padding: 70px; border-radius: 32px; background: #fff; }
.turnkey ol { display: grid; align-content: center; margin: 0; padding: 0; list-style: none; }
.turnkey li { padding: 19px 0; border-bottom: 1px solid var(--line); font-size: 18px; line-height: 1.45; }
.turnkey li span { display: inline-block; width: 55px; color: #58a7d7; font-size: 13px; font-weight: 800; }

.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 42px; }
.pilot { flex: 0 1 calc((100% - 54px) / 4); min-width: 0; overflow: hidden; border-radius: 20px; background: #e8f6ff; }
.pilot img { display: block; width: 100%; height: 245px; object-fit: cover; }
.pilot div { padding: 16px; }
.pilot h3 { margin: 0; font-size: 18px; line-height: 1.2; letter-spacing: -.012em; }
.pilot small { display: block; margin-top: 8px; color: #397ea9; font-size: 11px; font-weight: 800; line-height: 1.35; }
.pilot p { margin: 8px 0 0; font-size: 12px; line-height: 1.5; }

.geography { display: grid; grid-template-columns: 4fr 8fr; gap: 62px; align-items: center; }



.letter-controls button {
  min-width: 40px;
  height: 38px;
  padding: 0 13px;
  border: 1px solid #bfdeed;
  border-radius: 999px;
  background: #f7fcff;
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
}
.letter-controls button:hover { border-color: #72b7dc; background: #e2f4ff; }
.letter-controls button:disabled { opacity: .38; cursor: default; }

























.letters-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.letter-controls { display: flex; align-items: center; gap: 8px; }
.letter-controls span { min-width: 72px; color: #55758c; font-size: 12px; font-weight: 750; text-align: right; }
.letter-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 28px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}
.letter-row::-webkit-scrollbar { display: none; width: 0; height: 0; }
.letter-row.is-at-start {
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
}
.letter-row.is-at-end {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 100%);
}
.letter-row.is-at-start.is-at-end { -webkit-mask-image: none; mask-image: none; }
.letter {
  flex: 0 0 clamp(220px, 16vw, 292px);
  aspect-ratio: 210 / 297;
  height: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #eef0f1;
  box-shadow: 0 15px 32px #37668520;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform .28s ease, box-shadow .28s ease;
}
.letter:hover { transform: translateY(-5px); box-shadow: 0 22px 42px #3766852a; }
.letter img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
/* These three scans are slightly wider than their document cards; crop their edges instead of showing side bands. */
.letter[data-letter="letter-002"] img,
.letter[data-letter="letter-003"] img,
.letter[data-letter="letter-004"] img,
.letter[data-letter="letter-005"] img { object-fit: cover; }

.gallery-grid {
  display: grid;
  height: 820px;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  grid-template-areas:
    "a a b c"
    "a a d e"
    "f g h h";
  gap: 18px;
}
.gallery-grid figure { position: relative; overflow: hidden; margin: 0; border-radius: 22px; transition: transform .5s; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s; }
.gallery-grid figcaption { position: absolute; right: 14px; bottom: 14px; left: 14px; padding: 9px 11px; border-radius: 12px; background: #15324bcc; color: #fff; font-size: 13px; }
.gallery-grid figure:hover { transform: translateY(-6px); }
.gallery-grid figure:hover img { transform: scale(1.055); }
.gallery-1 { grid-area: a; }
.gallery-2 { grid-area: b; }
.gallery-3 { grid-area: c; }
.gallery-4 { grid-area: d; }
.gallery-5 { grid-area: e; }
.gallery-6 { grid-area: f; }
.gallery-7 { grid-area: g; }
.gallery-8 { grid-area: h; }

.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 110px; padding: 78px 84px; margin-bottom: 80px; border-radius: 32px; background: linear-gradient(135deg, #e4f6ff, #fff); }
.contact p:not(.eyebrow) { font-size: 18px; line-height: 1.62; }
.contact form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact label { font-size: 13px; font-weight: 700; }
.contact input,
.contact textarea { display: block; width: 100%; padding: 12px 0; margin-top: 7px; border: 0; border-bottom: 1px solid #9ec9e3; background: transparent; }
.contact .comment { grid-column: span 2; }
.contact button { justify-self: start; margin-top: 10px; }

dialog { padding: 0; border: 0; border-radius: 16px; background: #fff; }
dialog::backdrop { background: #15324baa; }
dialog img { display: block; max-width: 80vw; max-height: 88vh; }

/* Fullscreen trust-letter viewer: keyboard arrows on desktop, swipe on touch. */
.letter-dialog {
  overflow: visible;
  background: transparent;
  box-shadow: none;
  touch-action: pan-y;
}
.letter-dialog img {
  max-width: min(82vw, 1040px);
  max-height: 90vh;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 80px #07192566;
}
.letter-dialog-nav {
  position: fixed;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  padding: 0;
  border: 1px solid #ffffff88;
  border-radius: 50%;
  background: #15324bd9;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.letter-dialog-nav:hover {
  border-color: #fff;
  background: #15324b;
  transform: translateY(-50%) scale(1.06);
}
.letter-dialog-prev { left: 24px; }
.letter-dialog-next { right: 24px; }
.letter-dialog-status {
  position: fixed;
  z-index: 4;
  bottom: 20px;
  left: 50%;
  min-width: 68px;
  padding: 8px 14px;
  border: 1px solid #ffffff55;
  border-radius: 999px;
  background: #15324bd9;
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  text-align: center;
  transform: translateX(-50%);
}
@media (max-width: 760px) {
  .letter-dialog img { max-width: 94vw; max-height: 88vh; }
  .letter-dialog-nav { display: none; }
  .letter-dialog-status { bottom: 12px; }
}

.close { position: fixed; top: 22px; right: 30px; border: 0; background: none; color: #fff; font-size: 40px; cursor: pointer; }
.program-dialog { width: min(820px, 90vw); max-height: 84vh; padding: 42px; background: #f7fbff; color: var(--ink); }
.program-dialog .close { position: absolute; top: 10px; right: 18px; color: var(--ink); }
.program-dialog h2 { margin: 0; font-size: 50px; line-height: 1.08; letter-spacing: -.025em; }
.dialog-lead { font-size: 19px; line-height: 1.6; }
.program-dialog-image { display: block; width: 100%; height: auto; margin: 22px 0 4px; object-fit: cover; }
.dialog-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; margin: 28px 0; }
.dialog-columns ul { padding-left: 20px; line-height: 1.62; }

.site-footer { padding: 58px 0; background: #15324b; color: #e7f6ff; }
.site-footer .shell { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.1fr; gap: 42px; align-items: start; }
.site-footer p { margin: 10px 0 0; color: #b9ddf0; font-size: 14px; line-height: 1.55; }
.site-footer h3 { margin: 0 0 13px; color: #8fd2ff; font-size: 13px; letter-spacing: .09em; text-transform: uppercase; }
.site-footer a { display: block; margin: 7px 0; color: #e7f6ff; font-size: 14px; line-height: 1.45; text-decoration: none; }
.footer-actions { display: flex; flex-direction: column; align-items: flex-start; }
.footer-actions .button { margin-top: 16px; color: var(--ink); }

.design-toggle {
  position: fixed;
  z-index: 1002;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #9ccde7;
  border-radius: 50%;
  background: #ffffffee;
  color: var(--ink);
  box-shadow: 0 12px 30px #15324b24;
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform .2s ease, background .2s ease;
}
.design-toggle:hover { transform: translateY(-2px); background: #e9f7ff; }
.design-toggle[hidden],
.design-panel[hidden] { display: none !important; }

.design-panel {
  position: fixed;
  z-index: 1001;
  top: 18px;
  right: 18px;
  width: 340px;
  max-height: calc(100vh - 92px);
  overflow-y: auto;
  padding: 18px;
  border: 1px solid #bdddec;
  border-radius: 20px;
  background: #fffffff2;
  box-shadow: 0 24px 60px #15324b2c;
  backdrop-filter: blur(14px);
  scrollbar-width: thin;
  scrollbar-color: #a4cade transparent;
}
.design-panel-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.design-panel-head > div { display: grid; gap: 3px; }
.design-panel-head small,
.design-help,
.design-preview small { color: #5e7c91; font-size: 11px; line-height: 1.45; }
.design-close { width: 32px; height: 32px; padding: 0 !important; border-radius: 50% !important; font-size: 19px !important; }
.design-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 13px; padding: 4px; border-radius: 13px; background: #edf7fc; }
.design-tabs button { border-color: transparent !important; background: transparent !important; }
.design-tabs button.is-active { border-color: #b6d8e9 !important; background: #fff !important; box-shadow: 0 4px 12px #15324b10; }
.design-tab-panel[hidden] { display: none; }
.design-panel label { display: grid; gap: 7px; margin-top: 13px; font-size: 12px; font-weight: 750; }
.design-panel select { width: 100%; padding: 10px 12px; border: 1px solid #bcddec; border-radius: 12px; background: #fff; color: var(--ink); }
.design-preview { display: grid; grid-template-columns: 94px 1fr; gap: 12px; align-items: center; margin-top: 12px; padding: 9px; border: 1px solid #d1e7f2; border-radius: 14px; background: #f6fbfe; }
.design-preview img { display: block; width: 94px; height: 70px; object-fit: cover; border-radius: 9px; }
.design-preview div { display: grid; gap: 5px; min-width: 0; }
.design-preview strong { font-size: 12px; line-height: 1.35; }
.design-preview small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.design-panel-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.design-panel button { padding: 9px 10px; border: 1px solid #bcddec; border-radius: 12px; background: #f4fbff; color: var(--ink); font-size: 12px; font-weight: 750; cursor: pointer; }
.design-panel button:hover { border-color: #7fb9d7; background: #eaf7fd; }
.design-reset-one { width: 100%; margin-top: 9px; }
.design-panel-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 15px; padding-top: 14px; border-top: 1px solid #d7eaf4; }
.design-panel .design-reset { background: #fff7dd; border-color: #efd17e; }

.design-mode [data-design-slot] { cursor: pointer !important; }
.design-mode [data-design-slot]:hover,
.design-mode [data-design-slot].is-design-selected {
  outline: 4px solid #ff9b00;
  outline-offset: -4px;
  filter: saturate(1.05);
}

.reveal { opacity: 1; transform: none; transition: none; }
.reveal-enabled .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease var(--reveal-delay, 0ms), transform .7s ease var(--reveal-delay, 0ms); }
.reveal-enabled .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .hero-image .hero-slide.is-active { animation: none !important; transform: none !important; }

  html { scroll-behavior: auto; }
  *,
*::before,
*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal-enabled .reveal { opacity: 1; transform: none; transition: none !important; }
  
}

/* Прямоугольная визуальная система: без скруглений у контентных блоков и элементов интерфейса. */
.button,
.hero-image img,
.program,
.program li,
.experience,
.showreel,
.media-controls button,
.media-video-card,
.video-dialog,
.video-error,
.turnkey,
.pilot,
.letter-controls button,
.letter,
.gallery-grid figure,
.gallery-grid figcaption,
.contact,
dialog,
.design-panel,
.design-tabs,
.design-panel select,
.design-preview,
.design-preview img,
.design-panel button {
  border-radius: 0 !important;
}

.design-logo-scale { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; margin-top: 9px; }
.design-logo-scale input { width: 100%; accent-color: var(--ink); }
.design-logo-scale output { min-width: 48px; font-size: 12px; font-weight: 800; text-align: right; }
.design-logo-preview { position: relative; height: 92px; margin-top: 12px; overflow: hidden; border: 1px solid #d1e7f2; background: #fff; }
.design-logo-preview iframe { width: 100%; height: 100%; border: 0; pointer-events: none; }
.design-mode [data-design-logo] { cursor: pointer; outline-offset: 5px; }
.design-mode [data-design-logo]:hover { outline: 2px solid #39a8df; }

/* 2026-08-04: адаптивная полноширинная компоновка и публичные элементы. */
:root {
  --page-gutter: clamp(18px, 3.25vw, 68px);
  --hero-title-size: 66px;
  --section-title-size: 50px;
  --social-icon-size: 52px;
}

html { min-width: 0; }
body { overflow-x: hidden; }
.shell {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: var(--page-gutter);
}

.site-header {
  height: 150px;
  padding-right: var(--page-gutter);
  padding-left: calc(min(var(--brand-logo-width), 46vw) + var(--page-gutter) + 28px);
}
.animated-brand {
  top: 12px;
  left: var(--page-gutter);
  width: min(var(--brand-logo-width), 46vw);
}
.site-header nav { gap: clamp(16px, 2vw, 34px); }
.site-header a { font-size: clamp(13px, 1vw, 16px); }

.hero.shell {
  min-height: calc(100vh - 150px);
  grid-template-columns: minmax(420px, 5fr) minmax(0, 7fr);
  padding: clamp(62px, 6vw, 104px) 0 clamp(78px, 7vw, 124px) var(--page-gutter);
}
.hero-copy {
  padding: 0 clamp(32px, 4.3vw, 88px) 0 0;
}
.hero h1 {
  max-width: 760px;
  font-size: clamp(46px, 5.15vw, var(--hero-title-size));
}
.hero .lead { margin-top: 24px; }
.hero-image {
  height: min(720px, 72vh);
  min-height: 520px;
}
.hero-image img {
  border-radius: 0;
  box-shadow: none;
}
.facts { margin-top: 36px; }

section:not(.hero) { margin-top: clamp(96px, 9vw, 160px); }
.section-head h2,
.experience h2,
.turnkey h2,
.contact h2,
.showreel-copy h2,
.video-dialog-copy h2,
.program-dialog h2 {
  font-size: clamp(36px, 3.7vw, var(--section-title-size));
}

.program-grid { gap: clamp(14px, 1.5vw, 26px); }
.program { height: clamp(410px, 34vw, 560px); }
.experience,
.showreel,
.turnkey,
.contact { width: 100%; }

.floating-cta {
  position: fixed;
  z-index: 1000;
  right: clamp(18px, 2.2vw, 38px);
  bottom: clamp(18px, 2.2vw, 34px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 58px;
  padding: 17px 27px;
  border: 0;
  border-radius: 0;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 15px 34px #15324b2b;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.floating-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px #15324b38;
}
.floating-cta:focus-visible { outline: 3px solid #318fbe; outline-offset: 3px; }
.design-toggle { bottom: 94px; }

.site-footer { padding: 66px 0 104px; }
.site-footer .shell {
  grid-template-columns: minmax(240px, 1.4fr) minmax(180px, .8fr) minmax(250px, 1fr) minmax(170px, .7fr);
  gap: clamp(30px, 4vw, 72px);
}
.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer .social-link {
  display: grid;
  width: var(--social-icon-size);
  height: var(--social-icon-size);
  margin: 0;
  place-items: center;
  border: 1px solid #79b7d5;
  background: #f7fbff;
  color: var(--ink);
  transition: transform .2s ease, background .2s ease;
}
.site-footer .social-link:hover { transform: translateY(-3px); background: var(--yellow); }
.social-link svg,
.design-social-preview svg {
  width: 62%;
  height: 62%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.social-link-facebook svg,
.social-link-rutube svg,
.design-social-preview span:nth-child(2) svg,
.design-social-preview span:nth-child(3) svg {
  fill: currentColor;
  stroke: none;
}
.social-icon-accent { fill: var(--yellow); }
.social-link:hover .social-icon-accent { fill: var(--ink); }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.design-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  gap: 10px;
  align-items: center;
}
.design-range input {
  width: 100%;
  accent-color: var(--ink);
}
.design-range output {
  min-width: 56px;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}
.design-social-preview {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #d1e7f2;
  background: #f6fbfe;
  color: var(--ink);
}
.design-social-preview span {
  display: grid;
  width: min(46px, var(--social-icon-size));
  height: min(46px, var(--social-icon-size));
  place-items: center;
  border: 1px solid #bcddec;
  background: #fff;
}
.design-mode [data-design-socials] { cursor: pointer; }
.design-mode [data-design-socials]:hover { outline: 2px solid #39a8df; outline-offset: 6px; }

@media (max-width: 1180px) {
  .site-header {
    height: 136px;
    padding-left: calc(min(var(--brand-logo-width), 50vw) + var(--page-gutter) + 18px);
  }
  .animated-brand { width: min(var(--brand-logo-width), 50vw); }
  .site-header nav { gap: 15px; }
  .hero.shell {
    min-height: auto;
    grid-template-columns: minmax(380px, 5fr) minmax(0, 7fr);
    padding-top: 68px;
  }
  .hero h1 { font-size: clamp(46px, 5.5vw, var(--hero-title-size)); }
  .experience-content { padding: 48px 42px; }
  .showreel-copy { padding: 58px 44px; }
  .team-grid { gap: 14px; }
  .pilot { flex-basis: calc((100% - 42px) / 4); }
  .geography { grid-template-columns: 1fr 2fr; gap: 38px; }
}

@media (max-width: 980px) {
  :root { --page-gutter: clamp(18px, 4.5vw, 44px); }
  .site-header {
    height: 128px;
    padding-left: calc(min(var(--brand-logo-width), 65vw) + var(--page-gutter));
  }
  .animated-brand { width: min(var(--brand-logo-width), 65vw); }
  .site-header nav { display: none; }

  .hero.shell {
    grid-template-columns: 1fr;
    gap: 46px;
    padding: 62px var(--page-gutter) 86px;
  }
  .hero-copy { padding: 0; }
  .hero h1 { max-width: 780px; font-size: clamp(46px, 8vw, var(--hero-title-size)); }
  .hero-image { height: min(690px, 78vw); min-height: 420px; }

  .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .program:last-child { grid-column: 1 / -1; height: 470px; }
  .experience,
.showreel,
.turnkey,
.geography,
.contact { grid-template-columns: 1fr; }
  .experience-photo { min-height: 520px; }
  .showreel-copy { min-height: 390px; }
  .turnkey { gap: 48px; padding: 58px var(--page-gutter); }
  .geography { gap: 34px; }
  .contact { gap: 54px; padding: 62px var(--page-gutter); }
  .team-grid { justify-content: flex-start; }
  .pilot { flex-basis: calc((100% - 28px) / 3); }
  .site-footer .shell { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  :root { --page-gutter: 18px; }
  body { padding-bottom: 84px; }
  .site-header {
    height: 114px;
    padding: 0 var(--page-gutter);
  }
  .animated-brand {
    top: 12px;
    left: var(--page-gutter);
    width: min(var(--brand-logo-width), calc(100vw - 36px));
  }
  .hero.shell { padding-top: 52px; padding-bottom: 72px; }
  .hero h1 { font-size: clamp(40px, 12vw, var(--hero-title-size)); line-height: 1.02; }
  .lead { font-size: 17px; }
  .facts { display: block; line-height: 2; }
  .facts i { display: inline-block; margin: 0 7px; }
  section:not(.hero) { margin-top: 90px; }
  .section-head h2,
.experience h2,
.turnkey h2,
.contact h2,
.showreel-copy h2,
.video-dialog-copy h2,
.program-dialog h2 { font-size: clamp(34px, 9vw, var(--section-title-size)); }

  .program-grid { grid-template-columns: 1fr; }
  .program,
.program:last-child { grid-column: auto; height: min(540px, 125vw); }
  .experience-photo { min-height: 430px; }
  .experience-content { padding: 42px 26px; }
  .stats { gap: 24px 18px; }
  .stats strong { font-size: 40px; }
  .showreel-copy { padding: 48px 26px; }
  .showreel-poster { min-height: 430px; }
  .turnkey { padding: 46px 26px; }
  .pilot { flex-basis: calc((100% - 14px) / 2); }
  .pilot img { height: 280px; }
  
  
  
  .letters-heading,
.media-heading { align-items: flex-start; flex-direction: column; }
  .letter-controls,
.media-controls { align-self: stretch; justify-content: flex-end; }
  .letter { flex-basis: min(78vw, 320px); }
  .media-video-card { flex-basis: 78vw; }
  .gallery-grid {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-template-areas: none;
  }
  .gallery-grid figure { grid-area: auto !important; aspect-ratio: 4 / 3; }
  .gallery-grid figure:first-child,
.gallery-grid figure:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .contact { padding: 48px 24px; }
  .contact form { grid-template-columns: 1fr; }
  .contact .comment { grid-column: auto; }
  .site-footer { padding-bottom: 54px; }
  .site-footer .shell { grid-template-columns: 1fr; }

  .floating-cta {
    right: 18px;
    bottom: 14px;
    min-height: 54px;
    padding: 15px 20px;
  }
  .design-toggle { right: 18px; bottom: 82px; }
  .design-panel {
    top: 10px;
    right: 10px;
    width: min(360px, calc(100vw - 20px));
    max-height: calc(100vh - 104px);
  }
  .program-dialog { width: calc(100vw - 24px); padding: 32px 22px; }
  .dialog-columns { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .hero-image { min-height: 340px; }
  .pilot { flex-basis: 100%; }
  .pilot img { height: min(420px, 105vw); }
  .stats { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid figure,
.gallery-grid figure:first-child,
.gallery-grid figure:last-child { grid-column: auto; aspect-ratio: 4 / 3; }
  .floating-cta { left: 18px; right: 78px; }
}

/* 2026-08-05: гибкая шапка, нормализованные портреты команды и компактный footer. */
.site-header.shell {
  min-height: 0;
  height: auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  justify-items: center;
  gap: 12px;
  padding: 12px var(--page-gutter) 22px;
  overflow: visible;
  background: transparent;
}
.header-brand {
  width: min(var(--brand-logo-width), calc(100vw - (var(--page-gutter) * 2)));
  max-width: 100%;
  min-width: 0;
  justify-self: center;
}
.animated-brand {
  position: relative;
  top: auto;
  left: auto;
  display: block;
  width: 100%;
  max-width: 100%;
}
.brand-founded {
  margin: -4px 0 0;
  color: #397ea9;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px clamp(18px, 2.2vw, 34px);
  width: 100%;
  margin: 0;
  white-space: normal;
}
.site-header nav a { margin: 0; }

html[data-logo-position="left"] .site-header {
  grid-template-columns: minmax(390px, var(--brand-logo-width)) minmax(0, 1fr);
  align-items: center;
  justify-items: stretch;
  column-gap: clamp(28px, 4vw, 72px);
}
html[data-logo-position="left"] .header-brand { justify-self: start; }
html[data-logo-position="left"] .site-header nav { justify-content: flex-end; }

.hero,
.hero.shell {
  min-height: auto;
  background: transparent;
}
.hero.shell {
  padding-top: clamp(42px, 4.5vw, 78px);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: clamp(14px, 1.4vw, 22px);
  width: min(100%, 1480px);
  margin: 42px auto 0;
}
.pilot {
  grid-column: span 2;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  background: #e8f6ff;
}
.pilot:nth-child(5) { grid-column: 2 / span 2; }
.pilot:nth-child(6) { grid-column: 4 / span 2; }
.pilot:nth-child(7) { grid-column: 6 / span 2; }
.pilot .pilot-photo {
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  background: #dceefa;
}
.pilot .pilot-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pilot-object-position, 50% 18%);
  transform: scale(var(--pilot-image-scale, 1));
  transform-origin: var(--pilot-object-position, 50% 18%);
}
.pilot .pilot-copy {
  display: flex;
  flex-direction: column;
  min-height: 154px;
  padding: 18px 18px 20px;
}
.pilot h3 { font-size: 19px; }
.pilot small { font-size: 12px; }
.pilot p { font-size: 13px; }

.site-footer .shell {
  grid-template-columns: minmax(260px, 1.35fr) minmax(190px, .7fr) minmax(320px, 1fr);
  gap: 34px clamp(38px, 5vw, 84px);
}
.footer-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid #ffffff2b;
}
.footer-actions h3 { margin: 0; white-space: nowrap; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}
.site-footer .footer-nav a {
  display: inline-block;
  margin: 0;
}
.footer-social-links { max-width: calc((var(--social-icon-size) * 5) + 48px); }

.social-link-vk svg,
.social-link-youtube svg,
.social-link-facebook svg,
.social-link-rutube svg,
.social-preview-vk svg,
.social-preview-youtube svg,
.social-preview-facebook svg,
.social-preview-rutube svg {
  fill: currentColor;
  stroke: none;
}
.social-icon-cutout { fill: #f7fbff; stroke: none; }
.social-link-youtube:hover .social-icon-cutout { fill: var(--yellow); }
.social-preview-youtube .social-icon-cutout { fill: #fff; }
.design-social-preview { flex-wrap: wrap; }

.design-mode [data-design-logo] { cursor: pointer; outline-offset: 6px; }
.design-mode [data-design-logo]:hover { outline: 2px solid #39a8df; }

@media (max-width: 1100px) {
  html[data-logo-position="left"] .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  html[data-logo-position="left"] .header-brand { justify-self: start; }
  html[data-logo-position="left"] .site-header nav { justify-content: flex-start; }
  .team-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pilot,
.pilot:nth-child(5),
.pilot:nth-child(6) { grid-column: span 2; }
  .pilot:nth-child(7) { grid-column: 3 / span 2; }
}

@media (max-width: 980px) {
  .site-header.shell { padding-top: 10px; }
  .header-brand { width: min(var(--brand-logo-width), 78vw); }
  .site-header nav { display: flex; }
  .site-footer .shell { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-social { grid-column: 1 / -1; }
  .footer-actions { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .site-header.shell {
    height: auto;
    padding: 8px 0 14px;
    gap: 8px;
  }
  .header-brand {
    width: min(var(--brand-logo-width), calc(100vw - 28px));
    padding-inline: 14px;
  }
  .brand-founded { font-size: 10px; }
  .site-header nav,
html[data-logo-position="left"] .site-header nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 24px;
    padding: 8px 18px 4px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  .site-header nav::-webkit-scrollbar { display: none; }
  .site-header nav a { flex: 0 0 auto; }
  .hero.shell { padding-top: 34px; }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .pilot,
.pilot:nth-child(5),
.pilot:nth-child(6),
.pilot:nth-child(7) { grid-column: span 1; }
  .pilot .pilot-copy { min-height: 166px; }

  .site-footer .shell { grid-template-columns: 1fr; }
  .footer-social,
.footer-actions { grid-column: auto; }
  .footer-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 500px) {
  .team-grid { grid-template-columns: 1fr; width: min(100%, 420px); }
  .pilot,
.pilot:nth-child(5),
.pilot:nth-child(6),
.pilot:nth-child(7) { grid-column: 1; }
  .pilot .pilot-copy { min-height: 0; }
}
.design-social-preview .social-preview-instagram svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
}
.design-social-preview .social-preview-youtube .social-icon-cutout { fill: #fff; }

/* 2026-08-05: hero-карусель, собранная шапка, отдельный руководитель, карта и новый footer. */
:root {
  --brand-logo-color: #ff9b00;
  --nav-color: #15324b;
}

.site-header.shell {
  display: block;
  padding: 10px var(--page-gutter) 26px;
}
.header-inner {
  display: grid;
  grid-template-columns: minmax(390px, var(--brand-logo-width)) max-content;
  align-items: center;
  justify-content: center;
  gap: clamp(34px, 5vw, 88px);
  width: min(100%, 1380px);
  margin-inline: auto;
}
.header-brand {
  width: 100%;
  justify-self: stretch;
}
.site-header nav,
html[data-logo-position="left"] .site-header nav {
  width: auto;
  justify-content: flex-start;
  color: var(--nav-color);
}
.site-header nav a { color: var(--nav-color); }
.brand-founded { color: var(--brand-logo-color); }
html[data-logo-position="center"] .header-inner {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 8px;
}
html[data-logo-position="center"] .header-brand { width: min(var(--brand-logo-width), 100%); }
html[data-logo-position="center"] .site-header nav { justify-content: center; }

.hero-image {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #dbeef9;
}
.hero-slides { position: absolute; inset: 0; }
.hero-image .hero-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  transform: none !important;
  animation: none !important;
  transition: none !important;
  pointer-events: none;
  will-change: opacity;
  backface-visibility: hidden;
}
.hero-image .hero-slide.is-active { z-index: 1; opacity: 1; }
.hero-image .hero-slide.is-leaving { z-index: 2; opacity: 1; }

/* Hero uses a compositor-only dissolve. No Ken Burns transform: on Firefox the
   continuously resampled large bitmap was the visible source of the jerk. */
html[data-hero-effect] .hero-slide.is-active,
html[data-hero-effect] .hero-slide.is-leaving {
  transform: none !important;
  animation: none !important;
}
.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #ffffff99;
  border-radius: 50% !important;
  background: #15324bb8;
  color: #fff;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity .2s ease, background .2s ease;
  cursor: pointer;
}
.hero-image:hover .hero-arrow,
.hero-image:focus-within .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: #15324b; }
.hero-arrow-prev { left: 18px; }
.hero-arrow-next { right: 18px; }
.hero-dots {
  position: absolute;
  z-index: 3;
  right: 22px;
  bottom: 18px;
  display: flex;
  gap: 8px;
}
.hero-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50% !important;
  background: #ffffff70;
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}
.hero-dots button.is-active { width: 24px; border-radius: 99px !important; background: var(--yellow); }

.turnkey li {
  display: grid;
  grid-template-columns: 54px 1fr;
  column-gap: 10px;
  align-items: start;
}
.turnkey li span { grid-row: 1 / span 2; }
.turnkey li strong { font-size: 18px; line-height: 1.35; }
.turnkey li small { display: block; margin-top: 4px; color: #59758a; font-size: 13px; line-height: 1.5; }

.team-leader {
  display: grid;
  grid-template-columns: minmax(260px, 4fr) minmax(0, 8fr);
  width: min(100%, 1180px);
  margin: 44px auto 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d5eaf5;
}
.team-leader-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #dceefa;
}
.team-leader-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pilot-object-position, 50% 18%);
  transform: scale(var(--pilot-image-scale, 1));
  transform-origin: var(--pilot-object-position, 50% 18%);
}
.team-leader-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 56px);
}
.team-leader-copy .eyebrow { margin-bottom: 12px; }
.team-leader-copy h3 { margin: 0; font-size: clamp(28px, 3vw, 44px); line-height: 1.05; }
.team-leader-copy p:not(.eyebrow) { margin: 18px 0 0; font-size: 17px; line-height: 1.55; }
.team-leader-copy small { display: block; max-width: 620px; margin-top: 14px; color: #59758a; font-size: 14px; line-height: 1.55; }
.team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 1180px);
  gap: clamp(16px, 2vw, 28px);
  margin-top: 0;
}
.pilot,
.pilot:nth-child(5),
.pilot:nth-child(6),
.pilot:nth-child(7) { grid-column: auto; }
.pilot .pilot-copy { min-height: 178px; }
.pilot p { margin-top: 10px; line-height: 1.55; }

.geography { align-items: start; }







.site-footer { padding: 64px 0 104px; }
.site-footer .shell { display: block; }
.footer-main {
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) minmax(180px, .65fr) minmax(360px, 1fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}
.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: none;
}
.site-footer .social-link {
  display: grid;
  place-items: center;
  width: var(--social-icon-size);
  height: var(--social-icon-size);
  margin: 0;
  padding: calc(var(--social-icon-size) * .22);
  border: 0;
  border-radius: 50% !important;
  color: #fff;
  transition: transform .2s ease, filter .2s ease;
}
.site-footer .social-link:hover { transform: translateY(-3px); filter: brightness(1.08); }
.social-link svg { width: 100%; height: 100%; fill: currentColor; stroke: none; }
.social-link-telegram { background: #229ed9; }
.social-link-vk { background: #0077ff; }
.social-link-youtube { background: #ff0000; }
.social-link-instagram { background: radial-gradient(circle at 30% 105%, #ffd600 0 24%, #ff7a00 25% 40%, #ff0169 55%, #d300c5 75%, #7638fa 100%); }
.social-link-facebook { background: #1877f2; }
.social-link-rutube { background: #101010; }
.social-link-instagram svg { fill: none; stroke: #fff; stroke-width: 3; }
.social-link-instagram .social-icon-dot { fill: #fff; stroke: none; }
.social-link-youtube .social-icon-cutout { fill: #fff; }
.social-link-rutube .social-icon-accent { fill: var(--yellow); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid #ffffff2b;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 30px; }
.site-footer .footer-nav a { display: inline-block; margin: 0; }
.footer-bottom small { color: #8fb4ca; white-space: nowrap; }

.design-tabs { grid-template-columns: repeat(4, 1fr); }
.design-check { grid-template-columns: auto 1fr !important; align-items: center; }
.design-check input { width: 18px; height: 18px; }
.design-color-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.design-color-grid label { margin-top: 12px; }
.design-color-grid input[type="color"] { width: 100%; height: 42px; padding: 3px; border: 1px solid #bcddec; background: #fff; cursor: pointer; }
.design-portrait-controls { margin-top: 16px; padding-top: 16px; border-top: 1px solid #d7eaf4; }
.design-portrait-controls > strong { font-size: 12px; }
.design-social-preview span { border-radius: 50% !important; }
.design-social-preview .social-preview-telegram { background: #229ed9; }
.design-social-preview .social-preview-vk { background: #0077ff; }
.design-social-preview .social-preview-youtube { background: #ff0000; }
.design-social-preview .social-preview-instagram { background: radial-gradient(circle at 30% 105%, #ffd600 0 24%, #ff7a00 25% 40%, #ff0169 55%, #d300c5 75%, #7638fa 100%); }
.design-social-preview .social-preview-facebook { background: #1877f2; }
.design-social-preview .social-preview-rutube { background: #101010; }
.design-social-preview span svg { color: #fff; fill: currentColor; }

@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: minmax(340px, min(52vw, var(--brand-logo-width))) minmax(0, max-content);
    gap: 28px;
  }
  .site-header nav { gap: 14px 22px; }
  .footer-main { grid-template-columns: 1.2fr .7fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .header-inner,
html[data-logo-position="left"] .header-inner {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 6px;
  }
  .header-brand { width: min(var(--brand-logo-width), 78vw); }
  .site-header nav,
html[data-logo-position="left"] .site-header nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: 100%;
    padding: 8px 0 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-header nav::-webkit-scrollbar { display: none; }
  .team-leader { grid-template-columns: minmax(220px, .8fr) 1.2fr; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .geography { grid-template-columns: 1fr; }
  
  
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-social { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .site-header.shell { padding-inline: 14px; }
  .header-brand { width: min(var(--brand-logo-width), calc(100vw - 28px)); }
  .hero-arrow { opacity: 1; width: 38px; height: 38px; }
  .hero-arrow-prev { left: 10px; }
  .hero-arrow-next { right: 10px; }
  .hero-dots { right: 14px; bottom: 12px; }
  .team-leader { grid-template-columns: 1fr; }
  .team-leader-photo { aspect-ratio: 4 / 3; }
  .team-grid { grid-template-columns: 1fr; width: min(100%, 430px); }
  .pilot .pilot-copy { min-height: 0; }
  
  .footer-main { grid-template-columns: 1fr; }
  .footer-social { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-bottom small { white-space: normal; }
  .design-tabs { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none !important; transform: none !important; }
}

@media (min-width: 901px) {
  .media-video-card { flex-basis: calc((100% - 36px) / 3); }
}
@media (min-width: 641px) and (max-width: 900px) {
  .media-video-card { flex-basis: calc((100% - 18px) / 2); }
}

/* 2026-08-06: RAL 1028, единая 12-колоночная сетка и варианты макета. */
:root {
  --content-max: 1480px;
  --layout-gap: clamp(24px, 3vw, 56px);
  --floating-cta-right: 72px;
  --floating-cta-bottom: 68px;
}

/* Единая ширина и пропорции основных блоков. */
.shell {
  width: min(100%, calc(var(--content-max) + (var(--page-gutter) * 2)));
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}
.site-header.shell {
  width: min(100%, calc(var(--content-max) + (var(--page-gutter) * 2)));
  padding: 12px var(--page-gutter) 28px;
}
.header-inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: var(--layout-gap);
  width: 100%;
  max-width: var(--content-max);
}
.header-brand {
  grid-column: 1 / span 5;
  width: 100%;
}
.site-header nav,
html[data-logo-position="left"] .site-header nav {
  grid-column: 6 / -1;
  justify-content: flex-end;
  width: 100%;
}
html[data-logo-position="center"] .header-inner {
  grid-template-columns: 1fr;
  justify-items: center;
}
html[data-logo-position="center"] .header-brand,
html[data-logo-position="center"] .site-header nav { grid-column: 1; }

.hero.shell {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--layout-gap);
  padding: clamp(42px, 4.5vw, 76px) var(--page-gutter) clamp(68px, 6vw, 108px);
}
.hero-copy {
  grid-column: 1 / span 5;
  align-self: center;
  padding: 0;
}
.hero-image {
  grid-column: 6 / -1;
  width: 100%;
  min-width: 0;
}
.section-head { max-width: 760px; }

.program-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--layout-gap);
}
.program {
  height: clamp(430px, 32vw, 540px);
  min-width: 0;
}
.program > div { inset: auto clamp(22px, 2vw, 32px) clamp(24px, 2vw, 32px); }

.experience,
.showreel,
.turnkey,
.geography,
.contact,
.team-leader {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0;
}
.experience-photo,
.showreel-copy,
.turnkey > div,
.contact > div,
.team-leader-photo { grid-column: 1 / span 5; }
.experience-content,
.showreel-poster,
.turnkey > ol,
.contact > form,
.team-leader-copy { grid-column: 6 / -1; }
.showreel-copy,
.turnkey > div,
.contact > div { padding-right: clamp(34px, 4vw, 72px); }
.turnkey { gap: var(--layout-gap); }
.turnkey > div,
.turnkey > ol { padding-block: clamp(50px, 5vw, 76px); }
.turnkey > div { padding-left: clamp(42px, 4vw, 72px); }
.turnkey > ol { padding-right: clamp(42px, 4vw, 72px); }
.contact { gap: var(--layout-gap); }
.contact > div,
.contact > form { padding: 0; }

.team-leader,
.team-grid { width: 100%; max-width: none; }
.team-leader-photo { aspect-ratio: 5 / 4; }
.team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--layout-gap);
}
.pilot,
.pilot:nth-child(5),
.pilot:nth-child(6),
.pilot:nth-child(7) { grid-column: auto; }
.pilot .pilot-copy { min-height: 210px; }
.team-leader-copy .pilot-titles,
.pilot .pilot-titles {
  display: flex;
  flex-direction: column;
}
.team-leader-copy .pilot-titles { gap: 6px; margin-top: 18px; }
.pilot .pilot-titles { gap: 5px; margin-top: 10px; }
.team-leader-copy .pilot-title-line,
.pilot .pilot-title-line { display: block; color: var(--ink); line-height: 1.45; }
.team-leader-copy .pilot-title-line { font-size: 15px; }
.pilot .pilot-title-line { font-size: 12px; }

/* RAL 1028 привязан ко всем общим жёлтым акцентам. */
.button,
.button-on-dark,
.floating-cta,
.video-play,
.media-video-play { background: var(--brand-yellow); }
.hero-dots button.is-active { background: var(--brand-yellow); }






.design-panel .design-reset { background: var(--brand-yellow-soft); border-color: #e7b65b; }
.social-icon-accent { fill: var(--brand-yellow); }

/* Плавающая CTA: базово левее и выше, положение регулируется в редакторе. */
.floating-cta {
  right: var(--floating-cta-right);
  bottom: var(--floating-cta-bottom);
  background: var(--brand-yellow);
}
.design-toggle {
  right: var(--floating-cta-right);
  bottom: calc(var(--floating-cta-bottom) + 76px);
}

/* Карта без лишней подписи «Все города». */
.geography {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--layout-gap);
}







/* Вариант карты 2: широкая панорама. */







/* Вариант карты 3: карта слева, города как маршрутная лента справа. */







/* Социальные сети: единый оптический размер внутри одинаковых кругов. */
.site-footer .social-link,
.design-social-preview span {
  display: grid;
  place-items: center;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 50% !important;
  color: #fff;
}
.site-footer .social-link svg,
.design-social-preview span svg {
  display: block;
  width: var(--social-mark-size, 56%);
  height: var(--social-mark-size, 56%);
  overflow: visible;
  fill: currentColor;
  stroke: none;
  transform-origin: center;
}
.site-footer .social-link-telegram,
.design-social-preview .social-preview-telegram { --social-mark-size: 58%; background: #2aabee; }
.site-footer .social-link-vk,
.design-social-preview .social-preview-vk { --social-mark-size: 64%; background: #0077ff; }
.site-footer .social-link-youtube,
.design-social-preview .social-preview-youtube { --social-mark-size: 62%; background: #ff0000; }
.site-footer .social-link-instagram,
.design-social-preview .social-preview-instagram {
  --social-mark-size: 57%;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 6%, #fd5949 32%, #d6249f 64%, #285aeb 100%);
}
.site-footer .social-link-facebook,
.design-social-preview .social-preview-facebook { --social-mark-size: 54%; background: #1877f2; }
.site-footer .social-link-rutube,
.design-social-preview .social-preview-rutube { --social-mark-size: 58%; background: #000; }
.site-footer .social-link-telegram svg,
.design-social-preview .social-preview-telegram svg { transform: translate(-2%, 1%); }
.site-footer .social-link-vk svg,
.design-social-preview .social-preview-vk svg { transform: translateY(1%); }
.site-footer .social-link-instagram svg,
.design-social-preview .social-preview-instagram svg {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
}
.site-footer .social-link-instagram .social-icon-dot,
.design-social-preview .social-preview-instagram .social-icon-dot { fill: #fff; stroke: none; }
.site-footer .social-link-youtube .social-icon-cutout,
.design-social-preview .social-preview-youtube .social-icon-cutout { fill: #fff !important; stroke: none !important; }
.site-footer .social-link-rutube .social-icon-accent,
.design-social-preview .social-preview-rutube .social-icon-accent { fill: var(--brand-yellow); }

/* Три варианта подвала для сравнения в режиме дизайнера. */
.footer-main {
  display: grid;
  grid-template-columns: minmax(280px, 5fr) minmax(180px, 2fr) minmax(360px, 5fr);
  gap: var(--layout-gap);
  align-items: start;
}
html[data-footer-layout="centered"] .footer-main {
  grid-template-columns: 1fr;
  justify-items: center;
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}
html[data-footer-layout="centered"] .footer-brand p { max-width: 620px; }
html[data-footer-layout="centered"] .footer-social-links,
html[data-footer-layout="centered"] .footer-nav { justify-content: center; }
html[data-footer-layout="centered"] .footer-bottom { flex-direction: column; justify-content: center; }
html[data-footer-layout="compact"] .footer-main {
  grid-template-columns: minmax(300px, 1fr) auto auto;
  align-items: center;
}
html[data-footer-layout="compact"] .footer-brand p { max-width: 520px; }
html[data-footer-layout="compact"] .footer-contacts,
html[data-footer-layout="compact"] .footer-social { align-self: center; }
html[data-footer-layout="compact"] .footer-contacts h3,
html[data-footer-layout="compact"] .footer-social h3 { margin-bottom: 8px; }

/* Редактор макета. */
.design-tabs { grid-template-columns: repeat(5, 1fr); }
.design-layout-divider { height: 1px; margin-top: 17px; background: #d7eaf4; }
.design-subheading { display: block; margin-top: 15px; font-size: 12px; }

@media (max-width: 1100px) {
  .header-inner,
html[data-logo-position="left"] .header-inner {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 8px;
  }
  .header-brand,
.site-header nav,
html[data-logo-position="left"] .site-header nav { grid-column: 1; }
  .site-header nav,
html[data-logo-position="left"] .site-header nav { justify-content: flex-start; }

  .hero.shell { grid-template-columns: 1fr; gap: 34px; }
  .hero-copy,
.hero-image { grid-column: 1; }
  .hero-image { min-height: 480px; }

  .experience,
.showreel,
.turnkey,
.contact,
.team-leader,
.geography { grid-template-columns: 1fr; gap: 0; }
  .experience-photo,
.experience-content,
.showreel-copy,
.showreel-poster,
.turnkey > div,
.turnkey > ol,
.contact > div,
.contact > form,
.team-leader-photo,
.team-leader-copy { grid-column: 1; grid-row: auto; }
  .showreel-copy,
.turnkey > div,
.contact > div { padding-right: 0; }
  .turnkey > div,
.turnkey > ol { padding-inline: clamp(34px, 6vw, 64px); }
  .contact { padding: clamp(48px, 7vw, 72px); gap: 42px; }
  .team-leader-photo { aspect-ratio: 16 / 9; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  
  
  

  .footer-main,
html[data-footer-layout="compact"] .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-social { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .program-grid,
.team-grid { grid-template-columns: 1fr; }
  .program { height: min(520px, 128vw); }
  .experience-photo { min-height: 340px; }
  .showreel-copy { padding: 48px 28px; }
  .contact { padding: 42px 24px; }
  .contact form { grid-template-columns: 1fr; }
  .contact .comment { grid-column: 1; }
  

  .floating-cta {
    right: 18px;
    bottom: 18px;
    left: 18px;
  }
  .design-toggle { right: 18px; bottom: 94px; }
  .footer-main,
html[data-footer-layout="compact"] .footer-main { grid-template-columns: 1fr; }
  .footer-social { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .design-tabs { grid-template-columns: repeat(2, 1fr); }
}


/* 2026-08-06: полноширинный режим, позиционирование шапки и независимый размер знаков соцсетей. */
:root {
  --header-logo-x: 0px;
  --header-logo-y: 0px;
  --header-nav-x: 0px;
  --header-nav-y: 0px;
  --social-mark-telegram: 58%;
  --social-mark-vk: 64%;
  --social-mark-youtube: 64%;
  --social-mark-instagram: 57%;
  --social-mark-facebook: 54%;
  --social-mark-rutube: 58%;
}

/* Полноширинный макет снова является базовым. Ограничение 1480 px оставлено как вариант редактора. */
.shell,
.site-header.shell {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}
.header-inner {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}
html[data-page-width="contained"] .shell,
html[data-page-width="contained"] .site-header.shell {
  width: min(100%, calc(var(--content-max) + (var(--page-gutter) * 2)));
  margin-inline: auto;
}
html[data-page-width="contained"] .header-inner {
  max-width: var(--content-max);
  margin-inline: auto;
}

@media (min-width: 1101px) {
  .header-brand {
    transform: translate(var(--header-logo-x), var(--header-logo-y));
  }
  .site-header nav,
html[data-logo-position="left"] .site-header nav {
    transform: translate(var(--header-nav-x), var(--header-nav-y));
  }
}

/* Каждый знак соцсети теперь имеет собственную регулируемую оптическую величину. */
.site-footer .social-link-telegram,
.design-social-preview .social-preview-telegram { --social-mark-size: var(--social-mark-telegram, 58%); }
.site-footer .social-link-vk,
.design-social-preview .social-preview-vk { --social-mark-size: var(--social-mark-vk, 64%); }
.site-footer .social-link-youtube,
.design-social-preview .social-preview-youtube { --social-mark-size: var(--social-mark-youtube, 64%); }
.site-footer .social-link-instagram,
.design-social-preview .social-preview-instagram { --social-mark-size: var(--social-mark-instagram, 57%); }
.site-footer .social-link-facebook,
.design-social-preview .social-preview-facebook { --social-mark-size: var(--social-mark-facebook, 54%); }
.site-footer .social-link-rutube,
.design-social-preview .social-preview-rutube { --social-mark-size: var(--social-mark-rutube, 58%); }

.site-footer .social-link-youtube svg,
.design-social-preview .social-preview-youtube svg {
  fill: none;
  stroke: none;
}
.site-footer .social-link-youtube .social-icon-youtube-play,
.design-social-preview .social-preview-youtube .social-icon-youtube-play {
  fill: #ff0000 !important;
  stroke: none !important;
}

.design-social-mark-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin-top: 4px;
}
.design-social-mark-controls > label { margin-top: 9px; }


/* --- Patch 2026-08-06: логотип без хвоста, выравнивание шапки по зонам и 6 пилотов в ряд --- */
@media (min-width: 1101px) {
  .header-brand,
.site-header nav,
html[data-logo-position="left"] .site-header nav {
    transform: none !important;
  }

  .header-brand {
    align-items: flex-start;
    justify-self: stretch;
    text-align: left;
  }
  .header-brand .brand,
.header-brand .brand-founded { max-width: 100%; }
  html[data-header-logo-align="start"] .header-brand { align-items: flex-start; text-align: left; }
  html[data-header-logo-align="center"] .header-brand { align-items: center; text-align: center; }
  html[data-header-logo-align="end"] .header-brand { align-items: flex-end; text-align: right; }

  .site-header nav,
html[data-logo-position="left"] .site-header nav {
    justify-content: flex-start;
    align-self: center;
  }
  html[data-header-nav-align="start"] .site-header nav { justify-content: flex-start; }
  html[data-header-nav-align="center"] .site-header nav { justify-content: center; }
  html[data-header-nav-align="end"] .site-header nav { justify-content: flex-end; }

  .team-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
  }
  .pilot {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
  }
  .pilot .pilot-photo img,
.pilot img {
    height: 220px;
  }
  .pilot .pilot-copy { min-height: 220px; }
  .pilot h3 { font-size: 17px; }
  .pilot small { font-size: 10px; line-height: 1.28; }
  .pilot .pilot-title-line { font-size: 11px; line-height: 1.35; }
  .team-grid + .team-leader { margin-top: clamp(26px, 3vw, 42px); }
}

@media (max-width: 1100px) and (min-width: 741px) {
  .team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }
}


/* --- Patch 2026-08-06: подпись основания, перетаскиваемый дизайнер и компактные карточки пилотов --- */
html[data-founded-caption="hidden"] .brand-founded { display: none !important; }
html[data-founded-caption="black"] .brand-founded {
  display: block;
  color: #111 !important;
}

.design-panel-head[data-design-drag-handle] {
  position: sticky;
  z-index: 4;
  top: -18px;
  margin: -18px -18px 14px;
  padding: 18px 18px 12px;
  background: linear-gradient(#fffffff7 75%, #ffffff00);
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.design-panel.is-dragging,
.design-panel.is-dragging .design-panel-head { cursor: grabbing; }
.design-panel.is-dragging { transition: none !important; }

/* В полноширинном режиме — один аккуратный ряд из шести карточек. */
@media (min-width: 1280px) {
  html[data-page-width="fluid"] .team-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(12px, 1.15vw, 20px);
    align-items: stretch;
  }
  html[data-page-width="fluid"] .pilot {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    border-radius: 18px;
  }
  html[data-page-width="fluid"] .pilot .pilot-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    min-height: 0;
    padding: 0;
  }
  html[data-page-width="fluid"] .pilot .pilot-photo img,
html[data-page-width="fluid"] .pilot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  html[data-page-width="fluid"] .pilot .pilot-copy {
    flex: 1 1 auto;
    min-height: 0;
    padding: 14px 14px 17px;
  }
  html[data-page-width="fluid"] .pilot h3 {
    font-size: clamp(15px, .95vw, 18px);
    line-height: 1.18;
  }
  html[data-page-width="fluid"] .pilot small {
    margin-top: 6px;
    font-size: clamp(10px, .62vw, 12px);
    line-height: 1.3;
  }
  html[data-page-width="fluid"] .pilot .pilot-titles {
    gap: 4px;
    margin-top: 9px;
  }
  html[data-page-width="fluid"] .pilot .pilot-title-line {
    font-size: clamp(10px, .61vw, 12px);
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  html[data-page-width="fluid"] .team-grid + .team-leader {
    margin-top: clamp(34px, 3vw, 52px);
  }
}

/* Ограниченный макет не пытается втиснуть шесть карточек в 1480 px. */
@media (min-width: 1101px) {
  html[data-page-width="contained"] .team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
  html[data-page-width="contained"] .pilot .pilot-photo img,
html[data-page-width="contained"] .pilot img { height: 100%; }
}

@media (max-width: 720px) {
  .design-panel-head[data-design-drag-handle] { cursor: default; }
}

@media (min-width: 1101px) and (max-width: 1279px) {
  html[data-page-width="fluid"] .team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
  html[data-page-width="fluid"] .pilot .pilot-photo img,
html[data-page-width="fluid"] .pilot img { height: 100%; }
}


/* История выступлений: карточка города поверх карты. */

















/* --- Patch: компактные регалии пилотов + чистая карта --- */
.pilot-highlights {
  margin: 10px 0 0;
  color: #4a687d;
  font-size: 11px;
  font-weight: 620;
  line-height: 1.45;
}
.team-leader-copy .pilot-highlights {
  max-width: 780px;
  margin-top: 16px;
  color: #49687e;
  font-size: 14px;
  line-height: 1.5;
}
html[data-page-width="fluid"] .pilot .pilot-highlights {
  font-size: clamp(10px, .59vw, 11.5px);
  line-height: 1.42;
}
.pilot .pilot-copy {
  align-content: start;
}

/* Список городов: без плашек, Россия по убыванию приоритета, зарубежные отдельно. */










/* На обзорном масштабе часть подписей скрыта алгоритмом; при наведении/фокусе нужная подпись всегда видна. */





/* --- Patch 2026-08-13: плотнее ритм, спокойнее карточки, гидрография и компактная форма --- */
:root { --surface-radius: 20px; }

section:not(.hero) { margin-top: clamp(76px, 6.2vw, 112px); }

.program,
.experience,
.showreel,
.turnkey,
.team-leader,
.pilot,
.media-video-card,
.contact { border-radius: var(--surface-radius); }

.program,
.media-video-card,
.pilot,
.team-leader,
.letter { box-shadow: 0 12px 28px #37668512; }

/* Руководитель — отдельный редакционный блок после состава, а не седьмая карточка. */
.team-grid + .team-leader {
  margin-top: clamp(30px, 3.4vw, 52px);
  overflow: hidden;
  border: 1px solid #d8eaf4;
  border-top: 3px solid var(--brand-yellow);
  background: #fff;
}
.team-leader-photo { grid-column: 1 / span 4; aspect-ratio: 4 / 3; }
.team-leader-copy {
  grid-column: 5 / -1;
  align-self: center;
  padding: clamp(30px, 3.4vw, 54px);
}
.team-leader-copy .eyebrow { color: var(--brand-yellow-deep); }
.team-leader-copy h3 { font-size: clamp(30px, 2.4vw, 46px); }
.team-leader-copy .pilot-highlights { max-width: 820px; }

/* Письма: четыре крупных документа вместо плотной «полки файлов». */
@media (min-width: 1101px) {
  .letter { flex: 0 0 calc((100% - 54px) / 4); }
}
@media (min-width: 721px) and (max-width: 1100px) {
  .letter { flex: 0 0 calc((100% - 36px) / 3); }
}

/* Форма заявки компактнее и визуально ближе к остальным карточкам. */
.contact {
  gap: clamp(28px, 3vw, 48px);
  padding: clamp(38px, 4vw, 58px);
  margin-bottom: 56px;
}
.contact > div { grid-column: 1 / span 4; padding-right: clamp(18px, 2vw, 34px); }
.contact > form { grid-column: 5 / -1; gap: 13px 22px; }
.contact p:not(.eyebrow) { font-size: 16px; line-height: 1.55; }
.contact input,
.contact textarea { padding: 9px 0; margin-top: 5px; }
.contact textarea { min-height: 64px; }
.contact button { margin-top: 4px; }

/* Гидрография — лёгкий ориентир, не конкурирующий с точками выступлений. */



/* В текстовом списке остаются только основные города; остальные доступны на карте. */


@media (max-width: 1100px) {
  .team-leader-photo,
.team-leader-copy,
.contact > div,
.contact > form { grid-column: 1 / -1; }
  .team-leader-copy { padding: 30px; }
  .contact > div { padding-right: 0; }
}


/* 2026-08-13 — детализированная локальная картография карты выступлений. */

















/* --- Patch 2026-08-13/17: enlarged header + unified scale/geography block --- */
.header-contacts {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: clamp(20px, 1.9vw, 38px);
}
.header-contact-links,
.header-social-links {
  display: flex;
  align-items: center;
}
.header-contact-links { gap: clamp(16px, 1.5vw, 28px); }
.header-social-links { gap: 9px; }
.header-contact-link {
  color: #39718f !important;
  font-family: var(--font-body);
  font-size: clamp(13px, .86vw, 15px) !important;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.header-contact-link:hover { color: var(--ink) !important; }
.header-social-link {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #c6dfed;
  border-radius: 50%;
  background: #fff;
  color: #39718f !important;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}
.header-social-link:hover {
  transform: translateY(-1px);
  border-color: #8ebfd8;
  background: #eaf6fc;
  color: var(--ink) !important;
}
.header-social-link svg {
  display: block;
  width: 18px;
  height: 18px;
  overflow: visible;
  fill: currentColor;
  stroke: none;
}
.header-social-link-instagram svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
}
.header-social-link-instagram .social-icon-dot { fill: currentColor; stroke: none; }
.header-social-link-youtube svg rect { fill: transparent; }
.header-social-link-youtube .social-icon-youtube-play { fill: currentColor; }
.header-social-link-rutube .social-icon-accent { fill: var(--brand-yellow); }

.pilot .pilot-titles,
.team-leader-copy .pilot-titles {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.pilot .pilot-titles { gap: 4px; margin-top: 10px; }
.team-leader-copy .pilot-titles { gap: 5px; margin-top: 16px; }
.pilot .pilot-title-line,
.team-leader-copy .pilot-title-line {
  display: block;
  color: #4a687d;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0;
}
.pilot .pilot-title-line {
  font-size: clamp(10px, .59vw, 11.5px);
  line-height: 1.38;
}
.team-leader-copy .pilot-title-line {
  max-width: 820px;
  font-size: 14px;
  line-height: 1.46;
}

@media (min-width: 1101px) {
  .header-inner {
    grid-template-rows: auto auto;
    row-gap: 12px;
    column-gap: clamp(20px, 2.2vw, 34px);
  }
  .header-brand {
    grid-column: 1 / span 6;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: stretch;
    width: 100%;
    max-width: none;
  }
  .animated-brand {
    width: 100%;
    max-width: 720px;
  }
  .brand-founded {
    margin-top: 4px;
    font-size: 13px;
    letter-spacing: .09em;
    text-align: left;
  }
  .header-contacts {
    grid-column: 7 / -1;
    grid-row: 1;
    justify-content: flex-start;
    align-self: end;
    padding-top: 8px;
  }
  .site-header nav,
html[data-logo-position="left"] .site-header nav {
    grid-column: 7 / -1;
    grid-row: 2;
    align-self: start;
    gap: 12px clamp(18px, 1.9vw, 28px);
  }
  .site-header nav a { font-size: 13px; }
  html[data-page-width="fluid"] .hero.shell {
    margin-top: 0;
    padding-top: clamp(12px, 1.35vw, 24px);
  }
}

/* Не наследуем общий padding всех div внутри карточки на контейнер регалий. */
.pilot .pilot-titles { padding: 0; }

.experience {
  display: block;
  overflow: hidden;
  border-radius: 32px;
  background: #eef8ff;
}
.experience-content.experience-scale {
  padding: clamp(40px, 4vw, 58px);
  background: transparent;
}
.experience-top p { display: none; }
.experience .stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 620px;
}




.experience-map-panel {
  width: 100%;
  margin-top: 26px;
}

@media (max-width: 1100px) {
  .header-contacts {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 11px 22px;
  }
  .header-brand {
    max-width: none;
  }
  .brand-founded {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .site-header.shell {
    padding: 12px 14px 18px;
  }
  .header-inner,
html[data-logo-position="left"] .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    gap: 10px;
  }
  .header-brand,
html[data-logo-position="left"] .header-brand {
    width: 100%;
    max-width: none;
    padding-inline: 0;
    justify-self: stretch;
  }
  .animated-brand {
    width: 100%;
    max-width: none;
  }
  .brand-founded {
    margin-top: 6px;
    font-size: 12px;
    text-align: left;
  }
  .header-contacts {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 10px;
    padding-top: 2px;
  }
  .header-contact-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px 16px;
  }
  .header-contact-link {
    font-size: 13px !important;
  }
  .header-social-links {
    justify-content: flex-start;
    gap: 10px;
  }
  .header-social-link {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
  .site-header nav,
html[data-logo-position="left"] .site-header nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
    padding: 2px 0 0;
    overflow: visible;
    white-space: normal;
  }
  .site-header nav a {
    min-width: 0;
    padding: 9px 5px;
    border-radius: 14px;
    background: #f7fbfe;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
  }

  .hero.shell {
    gap: 24px;
    padding-top: 24px;
    padding-bottom: 58px;
  }
  .hero-image {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    touch-action: pan-y;
  }
  .hero-arrow { display: none; }
  .hero-dots { right: 12px; bottom: 10px; }

  .experience-content.experience-scale { padding: 32px 24px; }
  .experience h2 { font-size: clamp(34px, 9vw, var(--section-title-size)); }
  
  
  
  
  .experience .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .experience-map-panel { margin-top: 18px; }
  
}

@media (max-width: 420px) {
  .site-header nav a { font-size: 12px; }
  .hero h1 { font-size: clamp(38px, 11.4vw, 46px); }
  .experience-content.experience-scale { padding-inline: 22px; }
  .stats strong { font-size: 38px; }
}


/* --- Patch 2026-08-17: real SVG crop + full-width centered header + footer-colored socials --- */
.animated-brand {
  aspect-ratio: 735 / 204;
}

.header-social-link {
  border: 0;
  color: #fff !important;
  box-shadow: none;
}
.header-social-link:hover {
  color: #fff !important;
  filter: brightness(1.06);
}
.header-social-link svg {
  width: var(--header-social-mark-size, 58%);
  height: var(--header-social-mark-size, 58%);
  fill: currentColor;
  stroke: none;
}
.header-social-link-telegram { --header-social-mark-size: 58%; background: #2aabee; }
.header-social-link-vk { --header-social-mark-size: 64%; background: #0077ff; }
.header-social-link-youtube { --header-social-mark-size: 62%; background: #ff0000; }
.header-social-link-instagram {
  --header-social-mark-size: 57%;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 6%, #fd5949 32%, #d6249f 64%, #285aeb 100%);
}
.header-social-link-facebook { --header-social-mark-size: 54%; background: #1877f2; }
.header-social-link-rutube { --header-social-mark-size: 58%; background: #000; }
.header-social-link-telegram svg { transform: translate(-2%, 1%); }
.header-social-link-vk svg { transform: translateY(1%); }
.header-social-link-instagram svg {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
}
.header-social-link-instagram .social-icon-dot { fill: #fff; stroke: none; }
.header-social-link-youtube svg { fill: none; stroke: none; }
.header-social-link-youtube svg rect { fill: #fff; }
.header-social-link-youtube .social-icon-youtube-play { fill: #ff0000; }
.header-social-link-rutube .social-icon-accent { fill: var(--brand-yellow); }

@media (min-width: 1101px) {
  .site-header.shell {
    width: 100%;
    max-width: none;
    padding-inline: var(--page-gutter);
  }
  .header-inner {
    width: 100%;
    max-width: none;
    margin-inline: auto;
  }
  .header-brand {
    grid-column: 1 / span 6;
    justify-self: stretch;
    width: 100%;
  }
  .animated-brand {
    width: min(100%, 780px);
    max-width: none;
  }
  .header-contacts {
    grid-column: 7 / -1;
    justify-content: center;
  }
  .header-contact-links,
.header-social-links {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .site-header.shell {
    width: 100%;
    max-width: none;
    padding: 12px 14px 20px;
  }
  .header-inner,
html[data-logo-position="left"] .header-inner {
    width: 100%;
    max-width: none;
    margin-inline: auto;
    justify-items: center;
    gap: 12px;
  }
  .header-brand,
html[data-logo-position="left"] .header-brand {
    width: 100%;
    max-width: none;
    justify-self: stretch;
    align-items: center;
    text-align: center;
  }
  .animated-brand {
    width: 100%;
    max-width: none;
    margin-inline: auto;
  }
  .brand-founded { text-align: center; }
  .header-contacts {
    width: 100%;
    justify-items: center;
    justify-content: center;
    text-align: center;
    gap: 11px;
  }
  .header-contact-links {
    width: 100%;
    justify-content: center;
    gap: 8px 20px;
  }
  .header-contact-link {
    font-size: 14px !important;
    font-weight: 650;
  }
  .header-social-links {
    width: 100%;
    justify-content: center;
    gap: 11px;
  }
  .header-social-link {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }
  .site-header nav,
html[data-logo-position="left"] .site-header nav {
    width: 100%;
    justify-self: stretch;
  }
}


/* --- Patch 2026-08-17: balanced desktop header + calmer mobile map viewport --- */
@media (min-width: 1101px) {
  .site-header.shell {
    padding: 22px var(--page-gutter) 30px;
  }
  .header-inner {
    grid-template-columns: minmax(460px, 620px) minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: clamp(56px, 5vw, 112px);
    row-gap: 15px;
    width: 100%;
    max-width: 1680px;
    margin-inline: auto;
    align-items: center;
  }
  .header-brand,
html[data-logo-position="left"] .header-brand {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 100%;
    max-width: 620px;
    justify-self: start;
    align-self: center;
  }
  .animated-brand {
    width: 100%;
    max-width: 620px;
  }
  .header-contacts {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    justify-content: flex-end;
    align-self: end;
    gap: clamp(24px, 2vw, 40px);
    padding: 0 0 12px;
    border-bottom: 1px solid #d3e6f0;
  }
  .header-contact-links {
    justify-content: flex-end;
    gap: clamp(18px, 1.5vw, 30px);
  }
  .header-contact-link {
    font-size: 14px !important;
  }
  .header-social-links {
    justify-content: flex-end;
    gap: 9px;
  }
  .header-social-link {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
  .site-header nav,
html[data-logo-position="left"] .site-header nav {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    justify-content: flex-end;
    align-self: start;
    gap: clamp(20px, 2vw, 36px);
    padding: 0;
  }
  .site-header nav a {
    font-size: 14px;
    font-weight: 560;
  }
}

@media (min-width: 1101px) and (max-width: 1380px) {
  .header-inner {
    grid-template-columns: minmax(390px, 500px) minmax(0, 1fr);
    column-gap: 42px;
  }
  .header-brand,
html[data-logo-position="left"] .header-brand,
.animated-brand { max-width: 500px; }
  .header-contact-link { font-size: 13px !important; }
  .header-social-link { width: 32px; height: 32px; flex-basis: 32px; }
  .site-header nav,
html[data-logo-position="left"] .site-header nav { gap: 18px 24px; }
  .site-header nav a { font-size: 13px; }
}



/* --- Patch 2026-08-28: mobile information architecture + compact rhythm --- */
@media (max-width: 760px) {
  /* Меню — в том же порядке, что и ключевые разделы страницы. */
  .site-header nav,
html[data-logo-position="left"] .site-header nav {
    gap: 6px 8px;
  }
  .site-header nav a {
    min-height: 40px;
    display: grid;
    place-items: center;
    padding: 8px 5px;
    border: 1px solid #dcecf4;
    border-radius: 12px;
    background: #f8fcfe;
  }
  .site-header nav a[href="#contact"] {
    border-color: #ffd18a;
    background: #fff7e8;
    color: #9b5c00;
    font-weight: 750;
  }

  /* Чуть плотнее общий вертикальный ритм без ощущения «сжатой» страницы. */
  section:not(.hero) { margin-top: 68px; }
  .program-grid { gap: 14px; margin-top: 32px; }

  /* Видео не должно занимать почти два экрана до появления следующего раздела. */
  .showreel-copy {
    min-height: 0;
    padding: 38px 24px 34px;
  }
  .showreel-copy p:not(.eyebrow) {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.55;
  }
  .showreel-copy .button { margin-top: 24px; }
  .showreel-poster {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .showreel-poster-caption {
    right: 18px;
    bottom: 16px;
    left: 18px;
  }

  .turnkey {
    gap: 30px;
    padding: 38px 24px;
  }
  .turnkey li { padding-block: 15px; }

  .team-grid { gap: 12px; }
  .team-grid + .team-leader { margin-top: 24px; }
  .team-leader-copy { padding: 24px; }

  /* Галерея на телефоне остаётся фотомозаикой, а не превращается в восемь экранов подряд. */
  .gallery-grid {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-template-areas: none;
    gap: 8px;
  }
  .gallery-grid figure,
.gallery-grid figure:first-child,
.gallery-grid figure:last-child {
    grid-area: auto !important;
    grid-column: auto;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
  }
  .gallery-grid figure:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }
  .gallery-grid figure:last-child { grid-column: 1 / -1; }
  .gallery-grid figcaption {
    right: 8px;
    bottom: 8px;
    left: 8px;
    padding: 7px 8px;
    border-radius: 9px;
    font-size: 11px;
  }

  .contact { margin-bottom: 34px; }
}

@media (max-width: 500px) {
  /* Карточки программ сохраняют большой визуал, но не съедают по 500+ px каждая. */
  .program,
.program:last-child {
    height: clamp(360px, 96vw, 410px);
  }
  .program > div { inset: auto 20px 20px; }
  .program h3 { font-size: 26px; }
  .program p { font-size: 14px; line-height: 1.45; }

  /* Шесть пилотов — компактные редакционные строки вместо шести полноэкранных карточек. */
  .team-grid { width: 100%; }
  .pilot,
.pilot:nth-child(5),
.pilot:nth-child(6),
.pilot:nth-child(7) {
    display: grid;
    grid-template-columns: minmax(126px, 38%) minmax(0, 1fr);
    grid-template-rows: 1fr;
    width: 100%;
    min-height: 176px;
    overflow: hidden;
  }
  .pilot .pilot-photo {
    height: 100%;
    min-height: 176px;
    overflow: hidden;
  }
  .pilot .pilot-photo img,
.pilot img {
    width: 100%;
    height: 100%;
    min-height: 176px;
    object-fit: cover;
  }
  .pilot .pilot-copy {
    min-width: 0;
    min-height: 0;
    padding: 15px 14px 14px 16px;
  }
  .pilot h3 { font-size: 18px; line-height: 1.15; }
  .pilot small { margin-top: 6px; font-size: 10px; line-height: 1.35; }
  .pilot .pilot-titles { gap: 2px; margin-top: 8px; }
  .pilot .pilot-title-line {
    font-size: 10px;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .team-leader-photo { aspect-ratio: 16 / 10; }
  .team-leader-copy h3 { font-size: 30px; }

  /* Не даём старому max-width:500 правилу снова развернуть галерею в одну колонку. */
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid figure,
.gallery-grid figure:first-child,
.gallery-grid figure:last-child { aspect-ratio: 4 / 3; }
  .gallery-grid figure:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }
  .gallery-grid figure:last-child { grid-column: 1 / -1; }
}

/* --- Director review 2026-09-07: hierarchy, hero, proof, programs, map and form --- */

/* Header: logo baseline matches the hero copy; right side stays a compact service stack. */
@media (min-width: 1101px) {
  .site-header.shell {
    padding: 18px var(--page-gutter) 24px;
  }
  .header-inner {
    grid-template-columns: minmax(500px, 650px) minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: clamp(52px, 5vw, 108px);
    row-gap: 13px;
    width: 100%;
    max-width: none;
    margin: 0;
  }
  .header-brand,
html[data-logo-position="left"] .header-brand {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 100%;
    max-width: 650px;
    justify-self: start;
  }
  .animated-brand {
    width: 100%;
    max-width: 650px;
  }
  .header-contacts {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    align-self: end;
    padding: 0 0 10px;
  }
  .site-header nav,
html[data-logo-position="left"] .site-header nav {
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-end;
    align-self: start;
  }

  /* Hero image takes over the dead zone left by the old 5/7 split. */
  .hero.shell {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(20px, 2vw, 36px);
  }
  .hero-copy {
    grid-column: 1 / span 4;
    padding-right: clamp(20px, 2.2vw, 42px);
  }
  .hero-image {
    grid-column: 5 / -1;
    height: min(720px, 70vh);
    min-height: 560px;
  }
}

@media (min-width: 1101px) and (max-width: 1380px) {
  .header-inner { grid-template-columns: minmax(430px, 540px) minmax(0, 1fr); column-gap: 40px; }
  .header-brand,
html[data-logo-position="left"] .header-brand,
.animated-brand { max-width: 540px; }
}

/* Experience: the numbers are proof, not metadata. */
.experience .stats {
  max-width: 760px;
  margin-top: clamp(30px, 3vw, 46px);
  gap: clamp(26px, 3vw, 48px);
}
.experience .stats div {
  min-height: 94px;
  padding-left: 0;
  border-left: 0;
}
.experience .stats strong {
  color: var(--brand-yellow);
  font-size: clamp(48px, 4vw, 62px);
  font-weight: 780;
  line-height: .98;
}
.experience .stats em { font-size: .48em; font-weight: 650; }
.experience .stats span {
  margin-top: 9px;
  color: #49687e;
  font-size: 15px;
  font-weight: 600;
}

/* City names are deliberately quieter than the proof numbers and the map markers. */




/* Programs: photo + title + one clear interaction. */
.program {
  cursor: default;
}
.program.has-video { cursor: default; }
.program::after {
  background: linear-gradient(0deg, #102c43f0 0%, #102c4380 34%, transparent 68%);
}
.program-card-copy {
  display: grid;
  gap: 11px;
}
.program .program-index {
  color: #d9effb;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
}
.program h3 {
  margin: 0;
  max-width: 90%;
  font-size: clamp(28px, 2.2vw, 36px);
}
.program-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 3px;
}
.program-watch,
.program-more {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.program-watch:focus-visible,
.program-more:focus-visible {
  outline: 2px solid var(--brand-yellow);
  outline-offset: 5px;
  border-radius: 4px;
}
.program-watch i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-yellow);
  color: var(--ink);
  font-size: 11px;
  font-style: normal;
  padding-left: 2px;
}

/* Alternating dark bands requested in the director review. */
.turnkey,
.gallery {
  background: #102f49;
  color: #fff;
}
.turnkey h2,
.gallery h2 { color: #fff !important; }
.turnkey .lead,
.turnkey small,
.gallery .section-head > p:last-child { color: #c7deec; }
.turnkey li { border-color: #ffffff2a; }
.turnkey li span { color: var(--brand-yellow); }
.turnkey li strong { color: #fff; }
.gallery {
  padding-top: clamp(52px, 5vw, 78px);
  padding-bottom: clamp(52px, 5vw, 78px);
}
.gallery-grid { margin-bottom: 0; }

/* Contact form: two primary fields, everything else secondary. */
.contact .form-field {
  position: relative;
  color: #537184;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.contact .form-field.is-primary {
  padding-top: 0;
  border-top: 0;
  color: var(--ink);
  font-size: 13px;
}
.field-required,
.field-optional {
  margin-left: 6px;
  font-size: 10px;
  font-weight: 550;
  letter-spacing: .02em;
  text-transform: none;
}
.field-required { display: inline-flex; padding: 2px 7px; border-radius: 999px; background: #fff1d2; color: #a85f00; }
.field-optional { color: #8ba0ae; }
.contact input,
.contact textarea {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  caret-color: var(--brand-yellow-deep);
}
.contact .is-primary input {
  font-size: 21px;
}
.field-required-note {
  display: none;
  margin-top: 6px;
  color: #b34f22;
  font-family: var(--font-body);
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
}
.contact form.was-validated .form-field:has(input:invalid) .field-required-note,
.contact .form-field.has-error .field-required-note { display: block; }
.contact form.was-validated input:invalid {
  border-color: #d75b32;
  box-shadow: 0 2px 0 #d75b32;
}

/* Mouse map navigation: normal wheel scrolls the page; Ctrl/Cmd + wheel zooms the map. */


/* Map event history follows the hovered marker on desktop. */


/* Deep map zoom: keep city interaction responsive in Firefox. */





@media (max-width: 760px) {
  .experience .stats strong { font-size: 44px; }
  .experience .stats span { font-size: 13px; }

  .program,
.program:last-child { height: clamp(330px, 86vw, 380px); }
  .program > div { inset: auto 18px 18px; }
  .program h3 { font-size: 27px; }

  .turnkey,
.gallery {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .contact .form-field.is-primary { padding-top: 9px; }
  .contact input,
.contact textarea { font-size: 17px; }
  .contact .is-primary input { font-size: 20px; }
}

@media (max-width: 500px) {
  /* Fixed portrait viewport: all pilot photos are physically identical. */
  .pilot,
.pilot:nth-child(5),
.pilot:nth-child(6),
.pilot:nth-child(7) {
    grid-template-columns: 132px minmax(0, 1fr);
    grid-template-rows: auto;
    min-height: 184px;
  }
  .pilot .pilot-photo {
    width: 132px;
    height: 184px;
    min-height: 184px;
    align-self: start;
  }
  .pilot .pilot-photo img,
.pilot img {
    width: 132px;
    height: 184px;
    min-height: 184px;
    object-fit: cover;
  }
  .pilot .pilot-copy {
    min-height: 184px;
  }
}


/* 2026-09-09 — lighter map interactions on touch devices. */



/* --- Patch 2026-09-09b: stable hero dissolve + closer mobile map --- */

/* --- Patch 2026-09-09c: director polish, lazy map, locked portraits, animated order form --- */
@media (min-width: 1101px) {
  .site-header nav,
html[data-logo-position="left"] .site-header nav {
    justify-content: center !important;
    text-align: center;
  }
}

/* Experience proof is one horizontal statement: heading + numbers. */
.experience-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(420px, .9fr);
  align-items: end;
  gap: clamp(42px, 5vw, 96px);
}
.experience-summary .experience-top h2 { max-width: 760px; }
.experience-summary .stats {
  align-self: end;
  margin-top: 0;
  max-width: none;
}
.experience-summary .stats strong b {
  margin-right: .08em;
  font-size: .58em;
  font-weight: 700;
  vertical-align: .12em;
}

/* Static map first: no SVG/cartography work until the visitor asks for it. */

















/* Program cards: title + details; video is a centered visual affordance. */
.program .program-index,
.program-watch { display: none !important; }
.program-play-overlay {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: grid;
  width: 72px;
  height: 72px;
  padding: 0 0 0 4px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #ff9b00ee;
  box-shadow: 0 14px 34px #071a2960;
  color: var(--ink);
  font-size: 23px;
  opacity: 0;
  transform: translate(-50%, -44%) scale(.9);
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
  cursor: pointer;
}
.program.has-video:hover .program-play-overlay,
.program.has-video:focus-within .program-play-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.program-play-overlay:hover { background: #ffb238; }
.program-play-overlay:focus-visible {
  opacity: 1;
  outline: 3px solid #fff;
  outline-offset: 4px;
  transform: translate(-50%, -50%) scale(1);
}
.program-actions { margin-top: 2px; }

/* The fifth turnkey step is an actual route to the order form. */
.turnkey-order { padding: 0 !important; }
.turnkey-order a {
  display: grid;
  grid-template-columns: 55px 1fr;
  grid-template-rows: auto auto;
  padding: 19px 0;
  color: inherit;
  text-decoration: none;
}
.turnkey-order a span { grid-row: 1 / span 2; }
.turnkey-order a:hover strong,
.turnkey-order a:focus-visible strong { color: var(--brand-yellow); }
.turnkey-order a:focus-visible { outline: 2px solid var(--brand-yellow); outline-offset: 6px; }

/* Portraits are deliberately locked to a single physical viewport and scale. */
.team-grid .pilot-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.team-grid .pilot-photo img,
.team-grid .pilot img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: var(--pilot-object-position, 50% 18%);
  transform: none !important;
}
.pilot-copy > small br { display: block; }

/* Order form: large quiet prompts collapse into labels when the field becomes active. */
.contact form.order-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.order-form .form-field,
.order-form .form-field.is-primary {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 78px;
  padding: 20px 0 12px;
  border: 0;
  border-bottom: 1px solid #cbd9e2;
  color: inherit;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  cursor: text;
  transition: border-color .22s ease, min-height .25s ease;
}
.order-form .form-field-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: #8f9aa2;
  font-family: var(--font-body);
  font-size: clamp(22px, 1.65vw, 29px);
  font-weight: 400;
  line-height: 1.15;
  transform-origin: left center;
  transition: color .22s ease, font-size .22s ease, transform .22s ease;
}
.order-form .form-field-label em {
  color: #aeb8bf;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  opacity: 0;
  transition: opacity .18s ease;
}
.order-form input,
.order-form textarea,
.order-form .is-primary input {
  width: 100%;
  max-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0 !important;
  background: transparent;
  box-shadow: none !important;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 20px;
  font-style: normal;
  font-weight: 520;
  line-height: 1.4;
  opacity: 0;
  outline: 0;
  transition: max-height .25s ease, margin .25s ease, opacity .18s ease;
}
.order-form textarea { resize: vertical; }
.order-form .form-field:focus-within,
.order-form .form-field.has-value { min-height: 94px; border-bottom-color: #6aaacb; }
.order-form .form-field:focus-within .form-field-label,
.order-form .form-field.has-value .form-field-label {
  color: #4c6a7d;
  font-size: 12px;
  font-weight: 650;
  transform: translateY(-2px);
}
.order-form .form-field:focus-within .form-field-label em,
.order-form .form-field.has-value .form-field-label em { opacity: 1; }
.order-form .form-field:focus-within input,
.order-form .form-field:focus-within textarea,
.order-form .form-field.has-value input,
.order-form .form-field.has-value textarea {
  max-height: 96px;
  margin-top: 8px;
  opacity: 1;
}
.order-form .field-required-note {
  margin: 5px 0 0;
  color: #b34f22;
  font-size: 11px;
}
.contact .order-form .button {
  justify-self: start;
  margin-top: 30px;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.contact .order-form .button:hover,
.contact .order-form .button:focus-visible {
  background: #e8b35d;
  box-shadow: none;
}

@media (hover: none) {
  .program.has-video .program-play-overlay {
    width: 58px;
    height: 58px;
    font-size: 18px;
    opacity: .92;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 760px) {
  
  
  
  
  
  
  

  .order-form .form-field,
.order-form .form-field.is-primary { min-height: 70px; padding-top: 17px; }
  .order-form .form-field-label { font-size: 21px; }
  .order-form input,
.order-form textarea,
.order-form .is-primary input { font-size: 18px; }
}

@media (max-width: 500px) {
  .team-grid .pilot-photo,
.team-grid .pilot-photo img,
.team-grid .pilot img {
    width: 132px;
    height: 184px;
    min-height: 184px;
    aspect-ratio: auto;
  }
}


/* --- Patch 2026-09-09: map performance, pilot face scale, one-line order form --- */
.turnkey-order a {
  column-gap: 10px;
  align-items: start;
}

/* The canonical portraitScale values are intentional: make the face size comparable,
   not just the photo viewport. This final rule must win over the former transform:none lock. */
.team-grid .pilot-photo img,
.team-grid .pilot img,
html[data-page-width="fluid"] .pilot .pilot-photo img,
html[data-page-width="contained"] .pilot .pilot-photo img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: var(--pilot-object-position, 50% 18%);
  transform: scale(var(--pilot-image-scale, 1)) !important;
  transform-origin: var(--pilot-object-position, 50% 18%);
}
/* Petrov's inherited 0.96 scale exposed the card background at the photo edges. */
.pilot[data-pilot-id="gennady-petrov"] .pilot-photo img { --pilot-image-scale: 1; }

/* Static map preview: exact image, no synthetic white margin. */








/* Four requested fields on one row on a desktop; same animated-field behavior. */
.contact form.order-form {
  grid-template-columns: minmax(240px, 1.4fr) minmax(170px, .85fr) minmax(250px, 1.35fr) minmax(190px, 1fr);
  column-gap: clamp(18px, 2vw, 32px);
  row-gap: 0;
  align-items: start;
}
.order-form .form-field,
.order-form .form-field.is-primary { min-height: 82px; }
.order-form .form-field-label { font-size: clamp(18px, 1.25vw, 24px); }
.order-form input,
.order-form textarea,
.order-form .is-primary input { font-size: 18px; }
.contact .order-form .button {
  grid-column: 1 / -1;
  margin-top: 32px;
}
@media (max-width: 1240px) {
  .contact form.order-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .contact form.order-form { grid-template-columns: 1fr; column-gap: 0; }
  
  
  
}


/* --- Patch 2026-09-09: manual two-video hero and generated web-video wiring --- */
.hero-image video.hero-slide {
  object-fit: cover;
  background: #102f49;
}
.hero-image video.hero-slide::-webkit-media-controls { display: none !important; }
.hero-image[data-direction] .hero-slide { transform: none !important; }

/* The hero videos are an A/B choice, so navigation must remain obvious even without
   automatic slide changes. */
@media (min-width: 761px) {
  .hero-image .hero-arrow {
    opacity: .84;
  }
  .hero-image:hover .hero-arrow,
.hero-image:focus-within .hero-arrow { opacity: 1; }
}


/* --- Patch 2026-09-10: canonical Piro card, CTA button, stacked form, compositor map --- */
/* 05 is no longer a process step. The order action is a standalone yellow CTA aligned
   with the text column of the four numbered steps. */
.turnkey-order {
  display: block !important;
  padding: 22px 0 0 64px !important;
  border-bottom: 0 !important;
}
.turnkey-order a {
  display: inline-flex !important;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 13px 24px !important;
  border-radius: 10px;
  background: var(--brand-yellow);
  color: var(--ink) !important;
  font-weight: 800;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}
.turnkey-order a strong { color: var(--ink) !important; }
.turnkey-order a:hover,
.turnkey-order a:focus-visible { background: #ffb33f; transform: translateY(-1px); }
.turnkey-order a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* The four requested order fields are four rows, not four columns. */
.contact form.order-form {
  grid-template-columns: 1fr !important;
  column-gap: 0 !important;
  row-gap: 0;
}
.contact .order-form .button { grid-column: 1 !important; }

/* High-quality static map: vector asset rather than a screenshot/JPEG. */



/* Interactive map v2: no runtime SVG geometry and no viewBox recalculation.
   One image + marker layer are moved by a single GPU-friendly transform. */
























@media (max-width: 760px) {
  .turnkey-order { padding-left: 0 !important; }
  
  
  
  
  
  
}


/* --- 2026-09-10: founded caption is a real header element, not iframe overlay. --- */
.header-brand,
html[data-logo-position="left"] .header-brand {
  position: relative;
}
.header-brand .brand-founded {
  display: block !important;
  width: 75.5%;
  max-width: none;
  margin: -7px 0 0 .8%;
  padding: 0 4px 2px;
  overflow: visible;
  color: #111 !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(10px, .82vw, 13px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: .035em;
  text-align: center !important;
  text-transform: none;
  white-space: nowrap;
  opacity: .74;
}
html[data-founded-caption="hidden"] .header-brand .brand-founded {
  display: block !important;
}
@media (max-width: 760px) {
  .header-brand .brand-founded {
    width: 75.5%;
    margin-top: -5px;
    margin-left: .8%;
    font-size: clamp(9px, 2.7vw, 12px);
  }
}


/* --- 2026-09-10: mobile editorial pass — compact header, pilot rail, atlas-style map --- */
@media (max-width: 760px) {
  /* The one-page mobile experience does not need section navigation. */
  .site-header nav,
html[data-logo-position="left"] .site-header nav {
    display: none !important;
  }

  /* Keep the desktop foundation caption, but remove it from the compact mobile lockup. */
  .header-brand .brand-founded,
html[data-founded-caption] .header-brand .brand-founded {
    display: none !important;
  }

  .site-header.shell {
    padding: 7px 14px 15px !important;
  }
  .header-inner,
html[data-logo-position="left"] .header-inner {
    gap: 0 !important;
  }
  .header-contacts {
    margin-top: -9px !important;
    gap: 8px !important;
  }
  .header-contact-links {
    justify-content: center !important;
    gap: 6px 18px !important;
    margin-bottom: 1px;
  }
  .header-contact-link {
    font-size: 13px !important;
    line-height: 1.15;
  }
  .header-social-links {
    justify-content: center !important;
    gap: 9px !important;
  }
  .header-social-link {
    width: 38px !important;
    height: 38px !important;
    flex-basis: 38px !important;
  }

  /* Pilots become a single snap-scrolling rail instead of six stacked rows. */
  .team-grid,
html[data-page-width="fluid"] .team-grid,
html[data-page-width="contained"] .team-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    width: calc(100% + (var(--page-gutter) * 2)) !important;
    max-width: none !important;
    margin: 34px 0 0 calc(var(--page-gutter) * -1) !important;
    padding: 0 var(--page-gutter) 14px !important;
    gap: 12px !important;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: var(--page-gutter);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .team-grid::-webkit-scrollbar { display: none; }
  .team-grid .pilot,
.team-grid .pilot:nth-child(5),
.team-grid .pilot:nth-child(6),
.team-grid .pilot:nth-child(7) {
    display: grid !important;
    grid-template-columns: 132px minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    grid-column: auto !important;
    flex: 0 0 min(86vw, 340px) !important;
    width: min(86vw, 340px) !important;
    min-width: min(86vw, 340px) !important;
    min-height: 184px !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .team-grid .pilot-photo,
.team-grid .pilot .pilot-photo {
    width: 132px !important;
    height: 184px !important;
    min-height: 184px !important;
    aspect-ratio: auto !important;
  }
  .team-grid .pilot-photo img,
.team-grid .pilot img {
    width: 132px !important;
    height: 184px !important;
    min-height: 184px !important;
  }
  .team-grid .pilot-copy {
    min-height: 184px !important;
    padding: 14px 13px 13px 15px !important;
  }
  .team-grid .pilot h3 { font-size: 18px; }
  .team-grid .pilot .pilot-title-line { font-size: 9.5px; line-height: 1.28; }
  .team-grid + .team-leader { margin-top: 22px !important; }

  /* Mobile geography is a compact portal: crisp cropped preview, full-screen map on tap. */
  
  
  
  

  
  
  
  
  
  
  
  
  
  
}

/* --- 2026-09-10: mobile rhythm + unified pilot rail --- */
.team-grid .pilot-mobile-leader { display: none !important; }

@media (max-width: 760px) {
  /* More vertical breathing between editorial blocks on the one-page mobile layout. */
  section:not(.hero) { margin-top: 88px !important; }
  .program-grid { margin-top: 38px !important; }
  .turnkey,
.gallery {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }
  .contact {
    padding-top: 52px !important;
    padding-bottom: 52px !important;
    margin-bottom: 46px !important;
  }
  .letters-heading,
.media-heading { margin-bottom: 32px !important; }

  /* Dmitry is the same compact card as the rest of the team and lives in the same rail. */
  .team-leader { display: none !important; }
  .team-grid .pilot-mobile-leader { display: grid !important; }
  .team-grid,
html[data-page-width="fluid"] .team-grid,
html[data-page-width="contained"] .team-grid {
    margin-top: 40px !important;
    padding-bottom: 18px !important;
  }
}


/* --- 2026-09-10: mobile contact breathing room + desktop nav aligned to hero media --- */
@media (max-width: 760px) {
  /* Give the phone/email line room above and below without reopening mobile navigation. */
  .header-contacts {
    margin-top: 8px !important;
    padding: 7px 0 9px !important;
    gap: 16px !important;
  }
  .header-contact-links {
    gap: 8px 22px !important;
    margin-bottom: 0 !important;
  }
  .header-social-links {
    margin-top: 0 !important;
  }
}

@media (min-width: 1101px) {
  /* Use the same 12-column geometry as the hero so nav is centered over the hero media. */
  .site-header .header-inner,
html[data-logo-position="left"] .site-header .header-inner {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    column-gap: clamp(20px, 2vw, 36px) !important;
  }
  .site-header .header-brand,
html[data-logo-position="left"] .site-header .header-brand {
    grid-column: 1 / span 4 !important;
    grid-row: 1 / span 2 !important;
    max-width: none !important;
  }
  .site-header .header-contacts,
html[data-logo-position="left"] .site-header .header-contacts {
    grid-column: 5 / -1 !important;
    grid-row: 1 !important;
    justify-content: flex-end !important;
  }
  .site-header nav,
html[data-logo-position="left"] .site-header nav,
html[data-header-nav-align] .site-header nav {
    grid-column: 5 / -1 !important;
    grid-row: 2 !important;
    justify-content: center !important;
    justify-self: stretch !important;
    width: 100% !important;
    transform: none !important;
  }
}

/* --- 2026-09-14: compact mobile footer socials in one row --- */
@media (max-width: 640px) {
  .footer-social-links {
    flex-wrap: nowrap !important;
    gap: 8px !important;
  }
  .site-footer .social-link {
    width: 46px !important;
    height: 46px !important;
    flex: 0 0 46px !important;
  }
}


/* --- 2026-09-14: launch-ready contact form --- */
.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
.form-consent {
  display: flex;
  grid-column: 1 / -1;
  align-items: flex-start;
  gap: 10px;
  max-width: 720px;
  margin-top: 20px;
  color: #60798a;
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
}
.form-consent input {
  position: static;
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-width: 18px;
  max-height: 18px;
  margin: 1px 0 0;
  padding: 0;
  overflow: visible;
  opacity: 1;
  -webkit-appearance: checkbox;
  appearance: auto;
  cursor: pointer;
  accent-color: var(--brand-yellow);
}
.contact .order-form .button:disabled {
  cursor: wait;
  opacity: .65;
  transform: none;
}
.form-status {
  grid-column: 1 / -1;
  min-height: 1.45em;
  margin: 14px 0 0;
  color: #60798a;
  font-size: 14px;
  line-height: 1.45;
}
.form-status.is-success { color: #21734b; }
.form-status.is-error { color: #a83f2b; }
.form-status.is-info { color: #3b708f; }


/* --- Experience summary and group-aerobatics dialog --- */
@media (min-width: 901px) {
  .experience-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: start;
    justify-content: space-between;
    gap: 0 clamp(190px, 14vw, 300px);
  }
  .experience-summary .stats {
    display: contents;
  }
  .experience-summary .stats .stat-item {
    min-height: 0;
    padding: 0;
    border: 0;
  }
  .experience-summary .stats .stat-years {
    display: grid;
    grid-template-rows: auto auto;
    justify-items: start;
    grid-column: 2;
    justify-self: center;
  }
  .experience-summary .stats .stat-projects {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    align-items: baseline;
    grid-column: 3;
    justify-self: start;
    margin-left: calc(-1 * clamp(95px, 7vw, 150px));
  }
  .experience-summary .stat-projects .stat-prefix {
    grid-column: 1;
    grid-row: 1;
    margin-right: .18em;
    color: var(--brand-yellow);
    font-size: clamp(28px, 2.35vw, 36px);
    font-weight: 750;
    line-height: 1;
  }
  .experience-summary .stat-projects strong {
    grid-column: 2;
    grid-row: 1;
  }
  .experience-summary .stat-projects > span {
    grid-column: 2;
    grid-row: 2;
  }
  .experience-summary .experience-top {
    grid-column: 1;
    justify-self: end;
  }
  .experience-summary .stat-years > span {
    margin-top: 2px;
    transform: translateX(10px);
  }
}

.experience-summary .stats .stat-item > span {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.experience-summary .stat-years strong,
.experience-summary .stat-projects strong {
  color: var(--brand-yellow);
}

.dialog-lead-group {
  width: 100%;
  margin: 24px auto 0;
  padding-inline: 0;
  text-align: justify;
}
.dialog-lead-group p {
  margin: 0;
}
.dialog-lead-group p + p {
  margin-top: 18px;
}
.dialog-lead-group p { text-indent: 1.5em; }

@media (max-width: 900px) {
  .experience-summary {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 26px;
  }
  .experience-summary .stats {
    display: grid;
    width: min(100%, 480px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 0;
  }
  .experience-summary .stats .stat-item {
    min-height: 0;
    padding: 0;
    border: 0;
  }
  .experience-summary .stat-years {
    display: grid;
    grid-template-rows: auto auto;
    justify-items: start;
  }
  .experience-summary .stat-projects {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: baseline;
  }
  .experience-summary .stat-projects .stat-prefix {
    grid-column: 1;
    grid-row: 1;
    margin-right: .18em;
    color: var(--brand-yellow);
    font-size: .58em;
    font-weight: 750;
    line-height: 1;
  }
  .experience-summary .stat-projects strong {
    grid-column: 2;
    grid-row: 1;
  }
  .experience-summary .stat-projects > span {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (max-width: 760px) {
  .dialog-lead-group {
    text-align: left;
  }
}
