:root {
  --navy: #11293e;
  --blue: #1e4a66;
  --deep: #123a52;
  --sky: #cfe0f4;
  --pale: #d8efec;
  --line: #b8cad7;
  --ink: #09141c;
  --muted: #53626c;
  --gold: #d0a839;
  --white: #fff;
  --container-max: 1240px;
  --pattern: url("../../auvenida/pattern.svg");
}

@font-face {
  font-family: Inter;
  src: url("../../auvenida/fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("../../auvenida/fonts/Inter-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("../../auvenida/fonts/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Serif";
  src: url("../../auvenida/fonts/IBMPlexSerif-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font: 400 16px/1.55 Inter, Arial, sans-serif;
  background: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1240px, calc(100% - 80px));
  margin: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
}

.skip-link:focus {
  left: 20px;
  top: 20px;
  z-index: 5;
  background: #fff;
  padding: 10px;
}

.brand-header {
  height: 82px;
  padding: 0 max(40px, calc((100vw - 1240px)/2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: var(--navy);
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}

.brand-logo {
  display: block;
  width: 94px;
  height: auto;
}

.brand-divider {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, .38);
}

.brand-descriptor {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.25;
}

.brand-header nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
}

.brand-header nav ul {
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brand-header nav a {
  font-size: 14px;
  font-weight: 500;
}

.brand-header nav a:hover {
  color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.language-switcher {
  display: flex;
}

.language-toggle { display: none; }
.language-list { display: flex; }
.language-list a { padding: 2px 8px; border-right: 1px solid rgba(255,255,255,.3); color: #fff; font-size: 14px; font-weight: 500; }
.language-list a:last-child { border-right: 0; }
.language-list a.active { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

.language-switcher button {
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .3);
  cursor: pointer;
  background: transparent;
  padding: 2px 8px;
  color: #fff;
  font: 500 14px Inter, Arial, sans-serif;
}

.language-switcher button:last-child {
  border-right: 0;
}

.language-switcher button.active {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.button {
  border: 1px solid transparent;
  min-height: 48px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 700;
  transition: transform .2s, background .2s;
}

.button:hover {
  transform: translateY(-2px);
}

.button-gold {
  color: var(--navy);
  background: var(--gold);
}

.button-light {
  color: var(--navy);
  background: #fff;
}

.button span {
  font-size: 17px;
}

/* Shared non-sticky header for landing and catalogue. */

.brand-header {
  background: var(--blue);
}


.courses-page .button-dark {
  background: var(--gold);
  color: var(--navy);
}

.courses-page .button-small {
  min-height: 48px;
  padding: 0 19px;
  font-size: 14px;
}

.dark-wave,
.pattern-background {
  color: #fff;
  background-color: var(--blue);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.dark-wave {
  background-image: url("../../auvenida/bg-dark.svg");
}

.pattern-background {
  background: #1e4a66 var(--pattern) center / var(--pattern-size, cover) no-repeat;
}

.hero {
  --signal-x: 50%;
  --signal-y: 50%;
  --signal-opacity: 1;
  --shadow-w: 520px;
  --shadow-h: 420px;
  --glow-w: 210px;
  --glow-h: 165px;
  --pattern-size: cover;
  height: 100vh;
  min-height: fit-content;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  z-index: 0;
  background: radial-gradient(
    ellipse var(--shadow-w) var(--shadow-h) at var(--signal-x) var(--signal-y),
    rgba(17, 41, 62, .72) 0,
    rgba(17, 41, 62, .58) 18%,
    rgba(17, 41, 62, .40) 38%,
    rgba(17, 41, 62, .22) 58%,
    rgba(17, 41, 62, .09) 76%,
    rgba(17, 41, 62, 0) 100%
  );
  filter: blur(24px);
  opacity: .92;
}

.hero::after {
  z-index: 3;
  background: radial-gradient(
    ellipse var(--glow-w) var(--glow-h) at var(--signal-x) var(--signal-y),
    rgba(255, 255, 255, .96) 0 2.5%,
    rgba(255, 247, 218, .92) 5%,
    rgba(229, 195, 99, .88) 12%,
    rgba(169, 209, 255, .82) 26%,
    rgba(169, 209, 255, .42) 44%,
    rgba(169, 209, 255, .16) 60%,
    transparent 76%
  );
  -webkit-mask-image: var(--pattern);
  mask-image: var(--pattern);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: var(--pattern-size);
  mask-size: var(--pattern-size);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  mix-blend-mode: screen;
  opacity: var(--signal-opacity);
}

.hero-grid {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr 240px;
  align-items: end;
  gap: 60px;
  padding: 220px 0 90px;
}

.hero-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.kicker {
  margin: 0 0 24px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .15em;
}

.hero h1,
h2,
h3 {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 600;
}

.hero h1 {
  margin: 0;
  font-size: clamp(32px, 7vw, 96px);
  line-height: .95;
  letter-spacing: -.05em;
}

.hero h1 em {
  font-style: italic;
}

.hero-lead {
  max-width: 470px;
  margin: 34px 0;
  font-size: 18px;
  line-height: 1.65;
  color: #dce9f5;
}

.actions {
  display: flex;
  gap: 26px;
  align-items: center;
  flex-wrap: wrap;
}

.text-action {
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  font-size: 14px;
  font-weight: 700;
}

.text-action span {
  margin-left: 15px;
  font-size: 16px;
}

.hero-note {
  border-top: 1px solid rgba(255, 255, 255, .35);
  padding-top: 16px;
  color: #dce9f5;
}

.hero-note span {
  color: var(--gold);
  font-size: 14px;
}

.hero-note p {
  font-size: 14px;
  line-height: 1.65;
}

.section-light {
  padding: 132px 0;
}

.section-intro {
  max-width: 620px;
}

.section-intro h2,
.provider-section h2,
.companies h2,
.contact h2 {
  margin: 0 0 20px;
  font-size: clamp(40px, 4vw, 64px);
  line-height: 1.03;
  letter-spacing: -.045em;
}

.section-intro>p:last-child {
  color: var(--muted);
  max-width: 430px;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--navy);
  border-left: 1px solid var(--navy);
  margin-top: 64px;
}

.audience-card {
  min-height: 330px;
  padding: 24px;
  border-right: 1px solid var(--navy);
  border-bottom: 1px solid var(--navy);
  display: flex;
  flex-direction: column;
  transition: background .25s, color .25s;
}

.audience-card:hover {
  background: var(--navy);
  color: #fff;
}

.audience-card>span {
  color: var(--muted);
  font-size: 16px;
}

.audience-card:hover>span {
  color: var(--sky);
}

.audience-card h3 {
  margin: 50px 0 15px;
  font-size: 30px;
  line-height: 1.1;
  position: relative;
}

.audience-card p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

.audience-card:hover p {
  color: #dce9f5;
}

.audience-card b {
  margin-top: auto;
  font-size: 16px;
}

.audience-card i {
  margin-left: 14px;
  font-style: normal;
  font-size: 17px;
}

.section-blue {
  padding: 124px 0;
  background: var(--sky);
  color: var(--navy);
}

.wave-faint {
  background-image: url("../../auvenida/bg-light.svg");
  background-position: center;
  background-size: cover;
}

.section-dark-base {
  color: #fff;
  background: var(--blue);
}

/* Circular module in the learning-journey block only, as a child of the container. */
.orbit-pattern {
  --orbit-color: #1e3a8a;
  --orbit-size: min(280px, 24vw);
  --orbit-top: 0;
  --orbit-right: 0;
  --orbit-opacity: .4;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.orbit-pattern::before,
.orbit-pattern::after {
  content: none;
}

.orbit-pattern > .container {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: var(--orbit-size);
}

.orbit-graphic {
  position: absolute;
  z-index: -1;
  top: var(--orbit-top);
  right: var(--orbit-right);
  left: auto;
  bottom: auto;
  width: var(--orbit-size);
  aspect-ratio: 1;
  color: var(--orbit-color);
  opacity: var(--orbit-opacity);
  pointer-events: none;
}

.orbit-graphic svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.journey.orbit-pattern > .container > .section-intro.compact {
  min-height: var(--orbit-size);
}

.compact {
  margin-bottom: 52px;
}

.section-blue .kicker {
  color: var(--blue);
}

.journey-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(17, 41, 62, .5);
}

.journey-list li {
  min-height: 170px;
  padding: 20px 18px 0 0;
  border-right: 1px solid rgba(17, 41, 62, .4);
  display: flex;
  flex-direction: column;
}

.journey-list li:last-child {
  border-right: 1px solid rgba(17, 41, 62, 0);
}

.journey-list li+li {
  padding-left: 18px;
}

.journey-list span {
  font-size: 14px;
  color: var(--blue);
}

.journey-list img {
  width: 17px;
  height: 17px;
  margin: 20px 0 14px;
  object-fit: contain;
}

.journey-list b {
  margin: 0 0 4px;
  font-size: 21px;
}

.journey-list small {
  color: var(--blue);
  font-size: 14px;
  line-height: 1.45;
}

.split-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.dark-text {
  color: var(--navy);
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 60px;
  border-top: 1px solid var(--navy);
  border-left: 1px solid var(--navy);
}

.direction-grid a {
  padding: 20px;
  border-right: 1px solid var(--navy);
  border-bottom: 1px solid var(--navy);
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: start;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.direction-grid a:hover {
  background: var(--pale);
}

.direction-grid strong {
  display: block;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.3;
}

.direction-grid .direction-copy {
  min-width: 0;
}

.direction-grid small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.direction-grid .direction-number {
  color: var(--muted);
  font-size: 14px;
}

.direction-grid .direction-arrow {
  color: var(--navy);
  font-size: 20px;
}

.provider-section {
  padding: 142px 0;
}

.provider-grid,
.company-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
  align-items: center;
}

.contact-grid {
  align-items: flex-start;
}

.provider-section .body-copy,
.companies .body-copy {
  max-width: 470px;
  margin: 0 0 30px;
  color: #dce9f5;
}

.provider-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255, 255, 255, .45);
  border-left: 1px solid rgba(255, 255, 255, .45);
}

.provider-grid li {
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, .45);
  border-bottom: 1px solid rgba(255, 255, 255, .45);
  font-size: 14px;
  font-weight: 600;
}

.provider-grid li:before {
  content: ".";
  color: var(--gold);
  margin-right: 14px;
}

.education-providers {
  border-top: 1px solid var(--line);
}

.providers-intro {
  max-width: 760px;
}

.provider-types,
.principles-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 60px 0 30px;
  padding: 0;
  border-top: 1px solid var(--navy);
  border-left: 1px solid var(--navy);
}

.provider-types article {
  min-height: 260px;
  padding: 24px;
  border-right: 1px solid var(--navy);
  border-bottom: 1px solid var(--navy);
}

.provider-types span,
.principles-list span {
  color: var(--blue);
  font-size: 14px;
}

.provider-types h3 {
  margin: 54px 0 16px;
  font-size: 27px;
  line-height: 1.08;
}

.provider-types p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.section-cta {
  display: inline-block;
  margin-top: 10px;
}

.global-grid,
.ecosystem-grid,
.production-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10%;
  align-items: center;
}

.production-flow,
.company-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
}

.production-flow {
  counter-reset: production-step;
  border-top: 1px solid rgba(17, 41, 62, .5);
}

.production-flow li {
  counter-increment: production-step;
  min-height: 62px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(17, 41, 62, .5);
  font-weight: 600;
}

.production-flow li::before {
  content: counter(production-step, decimal-leading-zero);
  color: var(--blue);
  font-size: 12px;
}

.global-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-top: 1px solid rgba(17, 41, 62, .5);
  border-left: 1px solid rgba(17, 41, 62, .5);
}

.global-facts div {
  min-height: 190px;
  padding: 22px;
  border-right: 1px solid rgba(17, 41, 62, .5);
  border-bottom: 1px solid rgba(17, 41, 62, .5);
}

.global-facts dt {
  font: 600 22px/1.1 "IBM Plex Serif", Georgia, serif;
}

.global-facts dd {
  margin: 64px 0 0;
  color: var(--blue);
  font-size: 13px;
  line-height: 1.45;
}

.platform-ecosystem {
  padding: 132px 0;
}

.platform-ecosystem .section-intro>p:last-child {
  color: #dce9f5;
}

.ecosystem-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255, 255, 255, .45);
  border-left: 1px solid rgba(255, 255, 255, .45);
}

.ecosystem-map strong,
.ecosystem-map span {
  min-height: 92px;
  padding: 20px;
  display: flex;
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, .45);
  border-bottom: 1px solid rgba(255, 255, 255, .45);
}

.ecosystem-map strong {
  grid-column: 1 / -1;
  min-height: 120px;
  color: var(--gold);
  font: 600 28px/1.1 "IBM Plex Serif", Georgia, serif;
}

.ecosystem-map span {
  font-size: 14px;
  font-weight: 600;
}

.principles-list {
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
}

.principles-list li {
  min-height: 180px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--navy);
  border-bottom: 1px solid var(--navy);
}

.principles-list strong {
  margin-top: auto;
  font-size: 16px;
  line-height: 1.35;
}

.companies {
  padding: 132px 0;
}

.company-stamp {
  min-height: fit-content;
  padding: 26px;
  display: flex;
  flex-direction: column;
  background: var(--sky);
  background-image: url("../../auvenida/bg-light-invert.svg");
  background-position: center;
  background-size: cover;
}

.company-stamp span {
  font-size: 14px;
  letter-spacing: .15em;
}

.company-stamp strong {
  margin: 10px 0 0;
  font: 600 clamp(35px, 4vw, 58px)/.95 "IBM Plex Serif", Georgia, serif;
}

.companies .body-copy {
  color: var(--muted);
}

.company-benefits {
  border-top: 1px solid var(--navy);
  border-left: 1px solid var(--navy);
}

.company-benefits li {
  min-height: 64px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--navy);
  border-bottom: 1px solid var(--navy);
  font-size: 14px;
  font-weight: 600;
}

.contact {
  padding: 120px 0;
}

.contact .kicker {
  color: var(--blue);
}

.contact p {
  color: var(--blue);
  max-width: 440px;
}

.kommo-form-panel {
  width: 100%;
  max-width: 480px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.auvenda-kommo-form {
  width: 100%;
  min-height: 1130px;
}

.auvenda-kommo-form iframe {
  width: 100% !important;
  max-width: 100%;
}

.contact label {
  display: block;
  margin-bottom: 17px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}

.contact input,
.contact select,
.contact textarea {
  width: 100%;
  margin-top: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font: 400 14px Inter, Arial, sans-serif;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

footer {
  padding: 34px 0;
  color: #fff;
  background: var(--blue);
}

footer .container {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 14px;
}

footer .container>span {
  color: #b7c6d2;
  margin-right: auto;
}

footer .footer-contact-row,
footer .footer-social-row {
  justify-content: flex-end;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(207, 224, 244, .22);
}

.footer-row-label { margin: 0 auto 0 0; color: #b7c6d2; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.footer-contacts { display: flex; gap: clamp(28px, 5vw, 72px); }
.footer-contacts a { display: grid; gap: 7px; color: #fff; font-size: 15px; text-decoration: none; }
.footer-contacts a:hover { color: var(--gold); }
.footer-contacts span { color: #b7c6d2; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.social-links { display: flex; gap: 10px; }
.social-links a { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(207, 224, 244, .5); border-radius: 50%; color: #fff; transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease; }
.social-links a:hover { border-color: var(--gold); background: var(--gold); color: var(--navy); transform: translateY(-2px); }
.social-links a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.social-links svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

footer .footer-main>a:last-child {
  color: var(--gold);
}

@media (max-width:900px) {
  .container {
    width: min(100% - 40px, 1240px);
  }

  .brand-header {
    height: 66px;
    min-height: 66px;
    padding: 0 20px;
  }

  .brand-header nav,
  .brand-divider,
  .brand-descriptor {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero {
    --shadow-w: 70vw;
    --shadow-h: 56vw;
    --glow-w: 38vw;
    --glow-h: 30vw;
    --pattern-size: cover;
    height: auto;
    min-height: 0;
    padding: 0;
    align-items: flex-start;
  }

  .hero-grid {
    padding: calc(var(--mobile-header-offset, 66px) + 24px) 0 36px;
  }

  .hero-lead {
    margin: 18px 0 24px;
  }

  .actions {
    gap: 12px;
  }

  .hero-grid,
  .provider-grid,
  .company-grid,
  .contact-grid,
  .global-grid,
  .ecosystem-grid,
  .production-grid {
    grid-template-columns: 1fr;
  }

  .global-grid,
  .ecosystem-grid,
  .production-grid {
    gap: 40px;
  }

  .provider-types,
  .global-facts,
  .principles-list {
    grid-template-columns: 1fr;
  }

  .auvenda-kommo-form {
    min-height: 1200px;
  }

  .provider-types article,
  .global-facts div,
  .principles-list li {
    min-height: auto;
  }

  .provider-types h3,
  .global-facts dd {
    margin-top: 24px;
  }

  .principles-list strong {
    margin-top: 22px;
  }

  .platform-ecosystem {
    padding: 84px 0;
  }

  .hero-note {
    display: none;
  }

  .section-light,
  .companies {
    padding: 40px 0;
  }

  .audience-grid,
  .journey-list,
  .direction-grid {
    grid-template-columns: 1fr;
  }

  .audience-card {
    min-height: fit-content;
    position: relative;
    overflow: hidden;
  }

  .audience-card:not(:last-child) {
    border-bottom: 1px solid var(--sky);
  }

  .audience-card h3,
  .audience-card b {
    margin-top: 10px;
  }

  .journey-list li {
    min-height: 96px;
    padding: 15px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(17, 41, 62, .4);
    display: grid;
    grid-template-columns: 30px 28px 1fr 1.3fr;
    gap: 8px;
    align-items: center;
  }

  .journey-list li+li {
    padding-left: 0;
  }

  .journey-list li img {
    margin: 0;
  }

  .journey-list b {
    margin: 0;
  }

  .provider-section,
  .section-blue {
    padding: 84px 0;
  }

  .provider-grid ul {
    margin-top: -20px;
  }

  .split-title {
    align-items: start;
    flex-direction: column;
  }

  .direction-grid {
    margin-top: 38px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  footer .container {
    flex-wrap: wrap;
  }

  footer .container>span {
    order: 3;
    flex-basis: 100%;
  }

  footer .footer-contact-row,
  footer .footer-social-row { align-items: flex-start; flex-direction: column; gap: 16px; }
  .footer-contacts { align-items: flex-start; flex-direction: column; gap: 18px; }
}

/* Shared centered header. */
.brand-header {
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}

.brand-header>.brand {
  justify-self: start;
}

.brand-header nav {
  justify-self: center;
  margin-left: 0;
}

.brand-header>.header-actions {
  justify-self: end;
}

/* One shared content line. Change only --container-max to resize every block. */
.container {
  width: min(var(--container-max), calc(100% - 80px));
}

.brand-header {
  display: block;
  height: 82px;
  padding: 0;
}

.brand-header .header-container {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}

.brand-header .header-container>.brand {
  justify-self: start;
}

.brand-header .header-container nav {
  justify-self: center;
  margin-left: 0;
}

.brand-header .header-container>.header-actions {
  justify-self: end;
}

@media (max-width:900px) {
  .container {
    width: min(var(--container-max), calc(100% - 40px));
  }

  .brand-header {
    height: 66px;
    min-height: 66px;
  }
}

.menu-button {
  display: none;
}

@media (max-width:900px) {
  body.mobile-menu-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
  }

  .brand-header .header-container {
    grid-template-columns: 1fr auto;
    gap: 12px;
    position: relative;
  }

  .brand-header .header-container>nav {
    display: none;
    position: fixed;
    z-index: 60;
    top: 66px;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: calc(100dvh - 66px);
    overflow-y: auto;
    padding: 24px 20px 28px;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, .2);
  }

  .brand-header .header-container>nav.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .brand-header .header-container>nav.mobile-open ul { display: flex; width: 100%; flex-direction: column; gap: 0; }

  .brand-header .header-container>nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
    font-size: 15px;
  }

  .brand-header .language-switcher {
    position: relative;
    width: 58px;
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, .38);
    background: var(--navy);
  }

  .brand-header .language-toggle { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 40px; }
  .brand-header .language-list { display: none; }
  .brand-header .language-switcher.is-open .language-list { display: flex; position: absolute; z-index: 2; top: 100%; right: -1px; width: 58px; flex-direction: column; background: var(--blue); border: 1px solid rgba(255,255,255,.38); }
  .brand-header .language-switcher.is-open .language-list a { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.2); }

  .brand-header .language-switcher button {
    display: none;
    width: 100%;
    min-height: 40px;
    justify-content: flex-start;
    padding: 0 9px;
    border: 0;
    color: #fff;
    background: var(--navy);
  }

  .brand-header .language-switcher button.active {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .brand-header .language-switcher button.active::after {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 8px 8px;
    border-color: transparent transparent var(--navy);
  }

  .brand-header .language-switcher.is-open button {
    display: flex;
    position: absolute;
    z-index: 2;
    left: -1px;
    width: 58px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-top: 0;
  }

  .brand-header .language-switcher.is-open button:nth-child(1) {
    top: 0;
    border-top: 1px solid rgba(255, 255, 255, .38);
  }

  .brand-header .language-switcher.is-open button:nth-child(2) {
    top: 41px;
  }

  .brand-header .language-switcher.is-open button:nth-child(3) {
    top: 81px;
  }

  .brand-header .header-actions {
    gap: 10px;
  }

  .brand-header .header-actions .button {
    min-height: 42px;
    padding: 0 15px;
  }

  .menu-button {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: transparent;
    color: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }

  .menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
  }

  .menu-button[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-button[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .brand-header .menu-button {
    display: flex;
  }
}

/* Language selection is communicated by contrast, not by an underline. */
.language-switcher button.active {
  color: var(--navy);
  background: var(--gold);
  text-decoration: none;
}

@media (min-width:901px) {
  .language-switcher button.active {
    color: #fff;
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

@media (max-width:900px) {
  .brand-logo {
    max-height: 42px;
  }

  .brand-header .language-switcher button {
    align-items: center;
    justify-content: center;
    padding: 0;
    text-align: center;
  }

  .brand-header .language-switcher button.active {
    position: relative;
    justify-content: center;
    color: var(--navy);
    background: var(--gold);
  }

  .brand-header .language-switcher button.active::after {
    position: absolute;
    right: 0;
    bottom: 0;
  }
}

/* Mobile navigation shares the header surface and respects iPhone safe areas. */
@media (max-width:900px) {
  :root {
    --mobile-header-height: 66px;
    --mobile-header-offset: calc(var(--mobile-header-height) + env(safe-area-inset-top, 0px));
  }

  html {
    scroll-padding-top: 16px;
  }

  section[id] {
    scroll-margin-top: 16px;
  }

  .brand-header {
    z-index: 80;
    height: var(--mobile-header-offset);
    min-height: 0;
    background: var(--blue);
  }

  .brand-header .header-container {
    width: min(var(--container-max), calc(100% - 32px));
    height: var(--mobile-header-height);
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .brand-header .brand {
    min-width: 0;
  }

  .brand-header .brand-logo {
    width: 82px;
    max-height: 43px;
  }

  .brand-header .header-actions {
    gap: 8px;
  }

  .brand-header .header-container>nav {
    top: var(--mobile-header-offset);
    height: calc(100vh - var(--mobile-header-offset));
    height: calc(100dvh - var(--mobile-header-offset));
    padding: 24px 20px max(28px, env(safe-area-inset-bottom, 28px));
    background: var(--blue);
    border-top: 1px solid rgba(255, 255, 255, .22);
  }

  .brand-header .header-container>nav a {
    min-height: 64px;
    font-size: 16px;
    font-weight: 600;
    border-color: rgba(255, 255, 255, .28);
  }

  .brand-header .language-switcher {
    width: 48px;
    min-height: 40px;
    border: 1px solid rgba(255, 255, 255, .45);
    background: transparent;
  }

  .brand-header .language-switcher button,
  .brand-header .language-switcher.is-open button {
    width: 48px;
    min-height: 40px;
    padding: 0;
    color: #fff;
    background: var(--blue);
    font-size: 14px;
    font-weight: 700;
  }

  .brand-header .language-switcher button.active,
  .brand-header .language-switcher.is-open button.active {
    justify-content: center;
    gap: 5px;
    color: #fff;
    background: rgba(255, 255, 255, .1);
  }

  .brand-header .language-switcher button.active::after {
    position: static;
    right: auto;
    bottom: auto;
    content: "";
    width: 0;
    height: 0;
    margin: 0;
    border: 5px solid transparent;
    border-top: 6px solid currentColor;
    transform: translateY(3px);
  }

  .brand-header .language-switcher.is-open {
    overflow: visible;
  }

  .brand-header .language-switcher.is-open button {
    border-color: rgba(255, 255, 255, .45);
  }

  .brand-header .language-switcher.is-open button:nth-child(1) {
    top: 0;
  }

  .brand-header .language-switcher.is-open button:nth-child(2) {
    top: 39px;
  }

  .brand-header .language-switcher.is-open button:nth-child(3) {
    top: 78px;
  }

  .brand-header .language-switcher.is-open button.active::after {
    transform: translateY(-3px) rotate(180deg);
  }

  .brand-header .header-actions .button {
    min-height: 40px;
    padding: 0 14px;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
  }

  .brand-header .menu-button {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  .brand-header .menu-button:focus {
    outline: none;
  }

  .brand-header .menu-button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
  }
}

@media (max-width:360px) {
  .brand-header .header-container {
    width: calc(100% - 24px);
    gap: 6px;
  }

  .brand-header .brand-logo {
    width: 74px;
  }

  .brand-header .header-actions {
    gap: 6px;
  }

  .brand-header .header-actions .button {
    padding: 0 8px;
    font-size: 14px;
  }
}

@media (max-width:900px) {
  .brand-header .language-switcher > .language-toggle { display: flex; }
}

.brand-logo-picture {
  display: block;
  line-height: 0;
}

@media (max-width:900px) {
  .brand-header .brand-logo {
    width: 119px;
    max-height: 37px;
  }

  .kicker {
    font-size: 14px;
    margin: 0 0 14px;
  }

  footer .brand-logo {
    width: 119px;
    max-height: 37px;
  }
}

@media (max-width:360px) {
  .brand-header .brand-logo {
    width: 96px;
    max-height: 30px;
  }

  footer .brand-logo {
    width: 96px;
    max-height: 30px;
  }
}

/* Compact mobile layout: Russian and Ukrainian copy stays readable below 414px. */
@media (max-width:414px) {
  .container { width:calc(100% - 32px); }

  .auvenda-kommo-form { min-height:1320px; }

  .kicker { margin-bottom:12px; font-size:9px; letter-spacing:.11em; }

  .hero { height: auto; min-height: 0; padding: 0; align-items: flex-start; }
  .hero-grid { padding: calc(var(--mobile-header-offset, 66px) + 20px) 0 28px; }
  .hero h1 {
    max-width:100%;
    font-size:clamp(38px,11vw,46px);
    line-height:.98;
    letter-spacing:-.04em;
    overflow-wrap:anywhere;
  }
  .hero-lead { margin:24px 0; font-size:15px; line-height:1.55; }

  .actions { align-items:stretch; flex-wrap:wrap; gap:10px; }
  .actions .button,
  .actions .text-action { width:100%; min-height:44px; justify-content:space-between; }
  .actions .text-action { padding:12px 0 7px; }

  .section-light,
  .section-blue,
  .provider-section,
  .companies,
  .contact { padding:64px 0; }

  .section-intro h2,
  .provider-section h2,
  .companies h2,
  .contact h2 {
    margin-bottom:14px;
    font-size:clamp(30px,9vw,37px);
    line-height:1.02;
    overflow-wrap:anywhere;
  }
  .section-intro > p:last-child,
  .companies .body-copy,
  .provider-section .body-copy,
  .contact p { font-size:14px; line-height:1.5; }

  .audience-grid { margin-top:36px; }
  .audience-card { min-height:0; padding:20px; }
  .audience-card h3 { margin:24px 0 12px; font-size:25px; }
  .audience-card p { font-size:12px; line-height:1.45; }

  .journey-list { grid-template-columns:1fr; border-left:1px solid rgba(17,41,62,.4); }
  .journey-list li,
  .journey-list li + li {
    display:grid;
    grid-template-columns:24px 1fr;
    grid-template-rows:auto auto 1fr;
    gap:8px 10px;
    min-height:112px;
    padding:14px;
    border-right:1px solid rgba(17,41,62,.4);
  }
  .journey-list li:last-child { grid-column:auto; }
  .journey-list span { grid-column:1; grid-row:1; font-size:10px; }
  .journey-list img { grid-column:1; grid-row:2; width:16px; height:16px; }
  .journey-list b { grid-column:2; grid-row:1 / span 2; align-self:end; font-size:18px; line-height:1.05; }
  .journey-list small { grid-column:1 / -1; grid-row:3; font-size:10px; line-height:1.35; }

  .direction-grid a {
    min-height:88px;
    padding:15px;
    grid-template-columns:24px minmax(0,1fr) auto;
    font-size:10px;
  }
  .direction-grid strong { font-size:15px; line-height:1.2; }

  .provider-grid { gap:40px; }
  .provider-grid ul { grid-template-columns:1fr; }
  .provider-grid li { min-height:54px; padding:15px; font-size:11px; }

  .company-stamp { min-height:170px; padding:20px; }
  .company-stamp strong { font-size:30px; }

  .contact label { font-size:10px; }
  .contact input,
  .contact select,
  .contact textarea { font-size:12px; }
}

@media (min-width:415px) and (max-width:480px) {
  .hero h1 { font-size:44px; }
}

@media (max-width:480px) {
  .hero {
    --shadow-w: 82vw;
    --shadow-h: 66vw;
    --glow-w: 44vw;
    --glow-h: 36vw;
  }
}

@media (max-width:900px) {
  .orbit-pattern {
    --orbit-size: 52vw;
    --orbit-top: 0;
    --orbit-right: 0;
    --orbit-opacity: .34;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after { display: none; }
}


/* Contact layout comparison: compact single-column alternative. */
.contact-compact-demo {
  border-top: 1px solid rgba(17, 41, 62, .18);
}

.contact-compact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
}

.contact-compact-intro {
  max-width: 760px;
}

.contact-compact-intro > p:last-child {
  max-width: 520px;
  margin-bottom: 0;
}

.compact-form-panel {
  width: 100%;
}

.compact-contact-form {
  border: 1px solid var(--navy);
  border-top: 0;
  background: rgba(255, 255, 255, .72);
  padding: 26px;
}

.compact-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
}

.compact-contact-form label {
  margin: 0;
}

.compact-contact-form input,
.compact-contact-form select,
.compact-contact-form textarea {
  margin-top: 8px;
  min-height: 48px;
}

.compact-contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.compact-form-span-2 {
  grid-column: span 2;
}

.compact-form-submit {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  min-height: 100%;
}

.compact-form-submit .button {
  min-width: 180px;
}

@media (max-width: 1080px) {
  .compact-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-form-span-2 {
    grid-column: 1 / -1;
  }

  .compact-form-submit {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .contact-compact-layout {
    gap: 28px;
  }

  .compact-contact-form {
    padding: 18px;
  }

  .compact-form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .compact-form-span-2,
  .compact-form-submit {
    grid-column: auto;
  }

  .compact-form-submit .button {
    width: 100%;
  }
}


.contact-channels {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 22px 40px;
  margin-top: 28px;
}

.contact-channels > a {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 15px;
  text-decoration: none;
}

.contact-channels > a span,
.footer-contacts .contact-channels > a span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contact-channels > a:hover { color: var(--blue); }

.contact-channels .contact-channel-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.contact-channels .contact-channel-icons a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(17, 41, 62, .35);
  border-radius: 50%;
  color: var(--navy);
  text-decoration: none;
}

.contact-channels .contact-channel-icons a:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
}

.contact-channels .contact-channel-icons svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-channels-dark > a,
footer .contact-channels > a,
.site-footer .contact-channels > a {
  color: #fff;
}

.contact-channels-dark > a span,
footer .contact-channels > a span,
.site-footer .contact-channels > a span {
  color: #b7c6d2;
}

.contact-channels-dark > a:hover,
footer .contact-channels > a:hover,
.site-footer .contact-channels > a:hover { color: var(--gold); }

.contact-channels-dark .contact-channel-icons a,
footer .contact-channels .contact-channel-icons a,
.site-footer .contact-channels .contact-channel-icons a {
  border-color: rgba(207, 224, 244, .5);
  color: #fff;
}

.contact-channels-dark .contact-channel-icons a:hover,
footer .contact-channels .contact-channel-icons a:hover,
.site-footer .contact-channels .contact-channel-icons a:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
}

footer .footer-contacts .contact-channels,
.site-footer .footer-contacts .contact-channels { display: contents; }

@media (min-width: 901px) {
  .maintenance-page { height: auto; min-height: 100dvh; overflow: auto; }
}
