:root {
  --accent: #1054a5;
  --accent-dark: #1054a5;
  --dark: #17181b;
  --ink: #333333;
  --muted: #6f7277;
  --line: rgba(170, 170, 170, 0.3);
  --soft: #f5f6f8;
  --wrap: 1340px;
  --shadow: 0 24px 80px rgba(12, 28, 48, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: #ffffff;
  color: var(--dark);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: var(--accent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 34px rgba(6, 38, 79, 0.12);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 60px;
  align-items: center;
  gap: 22px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 7px 24px;
}

.brand {
  display: inline-flex;
  grid-column: 2;
  align-items: center;
  justify-content: center;
  justify-self: center;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.site-nav {
  grid-column: 1;
  justify-self: start;
}

.site-nav > ul {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li {
  position: relative;
}

.has-submenu::before {
  position: fixed;
  top: 59px;
  right: 0;
  left: 0;
  display: none;
  height: 12px;
  content: "";
}

.site-nav a,
.site-nav button {
  border: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  padding: 18px 0;
}

.site-nav a::after,
.site-nav button::after {
  display: block;
  width: 0;
  height: 2px;
  margin-top: 9px;
  background: #ffffff;
  content: "";
  transition: width 0.2s ease;
}

.site-nav a:hover::after,
.site-nav button:hover::after,
.site-nav .is-active::after {
  width: 100%;
}

.submenu {
  position: fixed;
  top: 68px;
  right: 0;
  left: 0;
  margin: 0;
  padding: 28px 24px 30px;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 26px 70px rgba(5, 26, 54, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: none;
  transition: opacity 0.2s ease;
}

.has-submenu:hover::before,
.has-submenu:focus-within::before {
  display: block;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  opacity: 1;
  pointer-events: auto;
}

.submenu-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  max-width: calc(var(--wrap) - 48px);
  margin: 0 auto;
}

.submenu-card {
  display: grid;
  gap: 12px;
  color: var(--dark);
  padding: 0;
}

.submenu-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f5f6f8;
  object-fit: contain;
}

.submenu-card span {
  color: var(--dark);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.submenu-card::after {
  background: var(--accent);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  place-items: center;
}

.header-actions {
  display: flex;
  grid-column: 3;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 9px;
}

.language-toggle,
.header-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  transition: color 0.2s ease;
}

.language-toggle::after {
  color: rgba(255, 255, 255, 0.4);
  content: "›";
  font-size: 13px;
  line-height: 1;
}

.language-toggle:hover,
.language-toggle:focus-visible,
.header-link:hover,
.header-link:focus-visible,
.header-link.is-active {
  color: #ffffff;
}

.header-link {
  position: relative;
  min-height: 34px;
}

.header-link::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: #ffffff;
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.header-link:hover::after,
.header-link:focus-visible::after,
.header-link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-separator {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 600;
}

.mobile-only-nav {
  display: none;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 24px;
  height: 2px;
  margin: 4px auto;
  background: #ffffff;
}

.home-hero,
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: #ffffff;
}

.home-hero {
  min-height: 610px;
  --hero-side: max(50px, calc((100vw - 1180px) / 2 + 24px));
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  background-image: var(--slide-image);
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.34), transparent 58%),
    linear-gradient(25deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.08));
}

.home-hero .hero-overlay {
  background: rgba(0, 0, 0, 0.28);
}

.page-hero .hero-overlay {
  background: rgba(0, 0, 0, 0.28);
}

.hero-slide-content {
  position: absolute;
  right: var(--hero-side);
  bottom: 128px;
  z-index: 1;
  width: min(320px, calc(100vw - 96px));
  text-align: right;
  text-shadow: none;
}

.hero-slide-content h1 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.08;
}

.hero-slide-content p {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.slide-dark .hero-slide-content h1,
.slide-dark .hero-slide-content p {
  color: #000000;
}

.hero-claim {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: var(--hero-side);
  width: min(650px, calc(100vw - 96px));
  margin: 0;
  color: #ffffff;
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 700;
  line-height: 0.98;
  text-align: left;
  text-shadow: none;
  transform: translateY(-50%);
}

.home-hero.is-dark-slide .hero-claim {
  color: #000000;
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.20);
  transform: translateY(-50%) scale(1.04);
}

.hero-arrow-prev {
  left: 20px;
}

.hero-arrow-next {
  right: 20px;
}

.page-hero {
  display: grid;
  place-items: center;
  padding: 12vw 24px;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  margin: 0;
  color: #ffffff;
  font-size: 70px;
  font-weight: 400;
  line-height: 80px;
  text-align: center;
}

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 12px 18px;
}

.button:hover {
  background: var(--accent);
}

.button-light {
  background: rgba(0, 0, 0, 0.35);
}

.button-light:hover {
  background: rgba(0, 0, 0, 0.55);
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.split-grid > article,
.program-list,
.image-tile {
  min-width: 0;
  min-height: 360px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

main > .split-grid:last-child > article,
main > .split-grid:last-child > .program-list,
main > .split-grid:last-child > .image-tile {
  border-bottom: 0;
}

.split-grid > article,
.program-list {
  background: rgba(255, 255, 255, 0.92);
}

.split-grid > article,
.program-list {
  padding: 90px 50px;
}

.section-title > p {
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.section-title > span {
  display: block;
  width: 70px;
  height: 2px;
  margin: 0 0 30px;
  background: var(--accent);
}

.section-title.light > span {
  background: #ffffff;
}

.section-title h2,
.split-grid h2,
.wide-copy h2,
.statement h2 {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.27;
}

.section-title h2:empty {
  display: none;
}

.section-title.light > p,
.section-title.light h2,
.dark-panel h2,
.blue-panel h2 {
  color: #ffffff;
}

.dark-panel,
.split-grid > article.dark-panel {
  background: linear-gradient(145deg, #15171b, #20242a);
  color: #ffffff;
}

.blue-panel,
.split-grid > article.blue-panel {
  background: var(--accent);
  color: #ffffff;
}

.image-tile {
  position: relative;
  min-height: 500px;
  background-image: var(--tile-image);
  background-position: center;
  background-size: cover;
  transition: filter 0.25s ease, transform 0.25s ease;
}

.image-tile::before {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  content: "";
}

.image-tile:hover {
  filter: saturate(1.06) contrast(1.03);
}

.program-list {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.program-list h3 {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.5;
}

.program-list p {
  margin: 0;
  color: #555b62;
}

.content-band,
.form-section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 70px 24px;
  background: #fff;
}

.legal-content {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 70px 24px;
}

.wide-copy {
  margin-bottom: 50px;
}

.wide-copy h2 {
  margin: 0;
  font-size: 32px;
  text-align: justify;
}

.wide-copy span {
  color: var(--accent);
}

.feature-pairs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 50px;
}

.feature-pairs article {
  padding-bottom: 50px;
}

.pair-copy {
  display: block;
  margin-bottom: 14px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}

.center-title {
  max-width: 420px;
  margin: 0 auto 34px;
  text-align: center;
}

.center-title .section-title > span {
  margin-right: auto;
  margin-left: auto;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 34px;
  margin-bottom: 64px;
}

.card-grid.three {
  max-width: none;
  margin-right: auto;
  margin-left: auto;
}

.service-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 6px;
  object-fit: cover;
  margin-bottom: 24px;
  box-shadow: 0 18px 50px rgba(20, 28, 40, 0.10);
}

.mini-heading h2 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.65;
}

.mini-heading > span {
  display: block;
  width: 70px;
  height: 2px;
  margin: 0 0 20px;
  background: var(--accent);
}

.mini-heading p {
  margin: 0;
  color: #4a4d52;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
}

.feature-pairs .section-title > span {
  margin-bottom: 20px;
}

.statement {
  margin-top: 30px;
}

.thanks {
  min-height: 64vh;
}

.form-copy {
  margin-bottom: 30px;
}

.user-form-section .form-copy,
.user-form-section .form-copy .section-title {
  width: 100%;
}

body.user-form-page,
.user-form-page main,
.user-form-page #content,
.user-form-section {
  background: #fff;
}

html:has(body.user-form-page) {
  background: #fff;
}

.user-form-section {
  padding-top: 86px;
}

.register-heading h1 {
  margin: 0 0 38px;
  color: var(--ink);
  font-size: clamp(46px, 6vw, 78px);
  font-weight: 700;
  line-height: 0.98;
}

.user-form-section .form-copy .section-title h2 {
  max-width: none;
  font-size: clamp(12px, 1.4vw, 19px);
  font-weight: 400;
  line-height: 1.55;
  text-align: justify;
}

.lead-form {
  padding: 36px;
  border: 1px solid rgba(16, 84, 165, 0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 60px rgba(20, 28, 40, 0.08);
}

.lead-form-wide {
  padding: 42px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.lead-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid #d5d7db;
  border-radius: 4px;
  background: #ffffff;
  color: var(--ink);
  padding: 12px 13px;
}

.lead-form select {
  min-height: 50px;
  appearance: none;
  background-color: #ffffff;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent) 50%),
    linear-gradient(135deg, var(--accent) 50%, transparent 50%),
    linear-gradient(to bottom, rgba(16, 84, 165, 0.12), rgba(16, 84, 165, 0.12));
  background-position:
    calc(100% - 23px) 50%,
    calc(100% - 17px) 50%,
    calc(100% - 48px) 50%;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px, 1px 28px;
  cursor: pointer;
  padding-right: 62px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.lead-form select:hover {
  border-color: rgba(16, 84, 165, 0.42);
  box-shadow: 0 10px 28px rgba(16, 84, 165, 0.08);
}

.lead-form select:required:invalid {
  color: var(--muted);
}

.lead-form select option {
  color: var(--ink);
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(16, 84, 165, 0.14);
}

.lead-form select:focus {
  box-shadow: 0 0 0 4px rgba(16, 84, 165, 0.08);
}

.lead-form textarea {
  resize: vertical;
}

.lead-form .check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
}

.lead-form .check input {
  width: auto;
  margin-top: 6px;
}

.lead-form .round-check {
  align-items: center;
  min-height: 48px;
  margin-top: 12px;
  padding: 12px 0;
}

.lead-form .round-check input {
  appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 2px solid rgba(16, 84, 165, 0.35);
  border-radius: 999px;
  background: #ffffff;
  cursor: pointer;
}

.lead-form .round-check input:checked {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 5px #ffffff;
  background: var(--accent);
}

.full-field {
  grid-column: 1 / -1;
}

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

.button-secondary {
  border: 1px solid rgba(16, 84, 165, 0.22);
  background: #ffffff;
  color: var(--accent);
}

.button-secondary:hover {
  background: #ffffff;
  color: var(--accent);
}

.form-side-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.form-status {
  margin: 16px 0 0;
  color: var(--accent);
  font-weight: 700;
}

.auth-page {
  display: grid;
  min-height: calc(100vh - 60px);
  place-items: center;
  padding: 64px 24px;
  background: var(--accent);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 30px;
  width: min(100%, 1060px);
  align-items: center;
  color: #ffffff;
}

.auth-intro h1 {
  margin: 8px 0 18px;
  color: #ffffff;
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 700;
  line-height: 0.98;
}

.auth-intro p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
}

.eyebrow {
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  font-weight: 700;
}

.auth-card {
  display: grid;
  gap: 14px;
  padding: 34px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(2, 18, 39, 0.28);
}

.auth-card input {
  width: 100%;
  border: 1px solid #d5d7db;
  border-radius: 4px;
  color: var(--ink);
  padding: 13px 14px;
}

.auth-card input:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(16, 84, 165, 0.14);
}

.auth-card .form-status {
  margin: 0;
}

.login-links {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  font-size: 14px;
  font-weight: 700;
}

.crm-page {
  background: #fff;
}

.crm-shell {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 70px 24px;
}

.crm-header,
.crm-panel,
.crm-kpis > div,
.crm-lead-card {
  border: 1px solid rgba(16, 84, 165, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(20, 28, 40, 0.08);
}

.crm-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 34px;
}

.crm-header h1 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 700;
  line-height: 0.98;
}

.crm-header p {
  max-width: 640px;
  margin: 0;
  color: #4a4d52;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
}

.crm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.crm-notice {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #f7fbff;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.crm-notice.error {
  background: #fff6f6;
  color: #a22;
}

.crm-notice ul {
  margin: 0;
  padding-left: 18px;
}

.crm-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.crm-kpis > div {
  padding: 22px;
}

.crm-kpis span,
.crm-badges span,
.crm-team-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.crm-kpis strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 36px;
  line-height: 1;
}

.crm-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 24px;
  align-items: start;
}

.crm-panel {
  padding: 26px;
}

.crm-panel h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.2;
}

.crm-leads {
  display: grid;
  gap: 12px;
}

.crm-lead-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  box-shadow: none;
}

.crm-lead-card strong,
.crm-lead-card span {
  display: block;
}

.crm-lead-card strong {
  color: var(--ink);
  font-size: 16px;
}

.crm-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  grid-column: 1 / -1;
}

.crm-badges span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f3f6fb;
}

.crm-empty {
  padding: 18px;
  border: 1px solid rgba(16, 84, 165, 0.08);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
}

.crm-inline-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  margin-bottom: 18px;
}

.crm-inline-form input {
  min-height: 42px;
  border: 1px solid #d5d7db;
  border-radius: 4px;
  padding: 10px 12px;
}

.crm-team-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crm-team-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(16, 84, 165, 0.08);
  color: var(--ink);
  font-weight: 700;
}

.crm-password-grid {
  margin-top: 10px;
}

.legal-content p,
.legal-content li,
.legal-content td,
.legal-content th {
  color: #4a4d52;
}

.legal-content p,
.legal-content li {
  text-align: justify;
}

.legal-content blockquote {
  margin: 36px 0 12px;
  padding: 0;
  border: 0;
}

.legal-content blockquote p,
.legal-content > p:nth-child(odd) {
  color: var(--ink);
  font-weight: 700;
}

.legal-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 24px 0;
}

.legal-content th,
.legal-content td {
  border: 1px solid #dcdfe4;
  padding: 10px;
  text-align: left;
}

.site-footer {
  background: var(--accent);
  color: #ffffff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 74px;
  align-items: center;
  gap: 18px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 24px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.footer-inner p {
  margin: 0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  justify-self: center;
  font-size: 13px;
  font-weight: 700;
}

.footer-language {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.footer-market {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 18px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.footer-stock {
  color: rgba(255, 255, 255, 0.78);
}

.footer-language::after {
  display: none;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 70;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  width: min(calc(100% - 48px), var(--wrap));
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(16, 84, 165, 0.88);
  box-shadow: 0 28px 90px rgba(5, 26, 54, 0.42);
  color: #ffffff;
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  opacity: 0;
  transform: translate(-50%, 18px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.cookie-banner[hidden],
.cookie-settings[hidden],
.cookie-actions [hidden] {
  display: none;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cookie-copy p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.cookie-settings {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-choice {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 7px 13px 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.cookie-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cookie-choice span {
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  transition: border-color 180ms ease, background 180ms ease;
}

.cookie-choice span::after {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #ffffff;
  content: "";
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 180ms ease, transform 180ms ease;
}

.cookie-choice:has(input:checked) {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}

.cookie-choice:has(input:checked) span {
  border-color: #ffffff;
}

.cookie-choice:has(input:checked) span::after {
  opacity: 1;
  transform: scale(1);
}

.cookie-choice:has(input:disabled) {
  cursor: default;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.cookie-actions button {
  display: inline-flex;
  min-width: 98px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  padding: 0 12px;
}

.cookie-actions button:hover,
.cookie-actions button:focus-visible {
  border-color: rgba(255, 255, 255, 0.5);
}

.cookie-actions [data-cookie-accept],
.cookie-actions [data-cookie-save] {
  background: #ffffff;
  color: var(--accent);
}

.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 38px;
  height: 38px;
  border: 0;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr auto 1fr;
    min-height: 60px;
    gap: 12px;
    padding: 8px 20px;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .menu-toggle {
    display: block;
  }

  .header-link,
  .header-separator {
    display: none;
  }

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

  .site-nav {
    position: absolute;
    top: 100%;
    right: auto;
    left: 50%;
    display: none;
    width: 100vw;
    margin-left: 0;
    background: var(--accent);
    box-shadow: 0 18px 45px rgba(5, 26, 54, 0.18);
    transform: translateX(-50%);
  }

  body.menu-open .site-nav {
    display: block;
  }

  .site-nav > ul {
    display: block;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    padding: 12px 24px 22px;
  }

  .mobile-only-nav {
    display: block;
  }

  .site-nav a,
  .site-nav button {
    display: block;
    width: 100%;
    padding: 15px 0;
    text-align: left;
  }

  .has-submenu::before {
    display: none;
  }

  .submenu {
    position: static;
    min-width: 0;
    padding: 4px 0 0 18px;
    background: transparent;
    box-shadow: none;
    border-top: 0;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .submenu-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .submenu-card {
    display: block;
    color: #ffffff;
    padding: 11px 0;
  }

  .submenu-card img {
    display: none;
  }

  .submenu-card span {
    color: #ffffff;
  }

  .split-grid,
  .program-list,
  .card-grid,
  .feature-pairs,
  .form-grid,
  .crm-grid,
  .crm-kpis,
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .crm-header,
  .crm-lead-card {
    grid-template-columns: 1fr;
  }

  .crm-header {
    align-items: flex-start;
  }

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

  .login-links {
    grid-column: auto;
    justify-content: flex-start;
  }

  .program-list {
    grid-column: auto;
    gap: 24px;
  }

  .split-grid > article,
  .program-list {
    padding: 58px 32px;
  }

  .program-list div {
    max-width: 640px;
  }

  .page-hero h1 {
    font-size: 50px;
    line-height: 50px;
  }

  .hero-claim {
    top: 42%;
    width: min(560px, calc(100vw - 72px));
    font-size: 48px;
    line-height: 0.98;
  }

  .wide-copy h2 {
    font-size: 28px;
    text-align: left;
  }

  .auth-page {
    min-height: calc(100vh - 60px);
  }
}

@media (max-width: 640px) {
  .home-hero {
    min-height: 560px;
    --hero-side: 24px;
  }

  .page-hero h1 {
    font-size: 30px;
    line-height: 40px;
  }

  .page-hero {
    padding: 90px 24px;
  }

  .hero-claim {
    top: 36%;
    width: calc(100vw - 72px);
    max-width: 340px;
    font-size: 36px;
    line-height: 1;
  }

  .hero-slide-content {
    right: var(--hero-side);
    bottom: 42px;
    width: min(245px, calc(100vw - 96px));
  }

  .hero-slide-content h1 {
    margin-bottom: 10px;
    font-size: 22px;
  }

  .hero-slide-content p {
    font-size: 12px;
    line-height: 1.35;
  }

  .hero-arrow {
    top: 72%;
    width: 38px;
    height: 38px;
    font-size: 28px;
  }

  .hero-arrow-prev {
    left: 12px;
  }

  .hero-arrow-next {
    right: 12px;
  }

  .section-title h2,
  .split-grid h2,
  .wide-copy h2,
  .statement h2 {
    font-size: 25px;
  }

  .media-grid > article,
  .media-grid .image-tile,
  .closing-grid > article,
  .closing-grid .image-tile {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    aspect-ratio: 1 / 1;
  }

  .media-grid > article,
  .closing-grid > article {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 44px 32px;
  }

  .media-grid h2,
  .closing-grid h2 {
    font-size: 24px;
    line-height: 1.2;
  }

  .pair-copy {
    font-size: 20px;
  }

  .lead-form {
    padding: 24px 18px;
  }

  .crm-shell {
    padding: 54px 24px;
  }

  .crm-header,
  .crm-panel {
    padding: 22px;
  }

  .user-form-section .form-copy .section-title h2 {
    font-size: 11px;
    line-height: 1.65;
    text-align: left;
  }

  .form-side-links,
  .form-actions,
  .login-links {
    justify-content: flex-start;
  }

  .footer-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    min-height: 86px;
    text-align: center;
  }

  .footer-brand {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .footer-legal {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    justify-self: center;
    justify-content: flex-end;
    gap: 12px;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .footer-market {
    justify-self: start;
    gap: 9px;
    font-size: 11px;
    line-height: 1.2;
  }

  .footer-language,
  .footer-stock {
    font-size: 11px;
    line-height: 1.2;
  }

  .cookie-banner {
    right: auto;
    bottom: 14px;
    left: 50%;
    grid-template-columns: 1fr;
    width: calc(100% - 28px);
    padding: 14px;
  }

  .cookie-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 380px) {
  .footer-brand {
    font-size: 12px;
  }

  .footer-legal {
    gap: 9px;
    font-size: 10.5px;
  }

  .footer-market,
  .footer-language,
  .footer-stock {
    font-size: 10.5px;
  }

  .hero-claim {
    font-size: 34px;
  }
}
