/*!
 * AlgebraIT Website — Compiled Master Stylesheet (main.css)
 * Source: assets/scss/ (_variables, _base, _layout, _components, _animations)
 */


:root {
  --navy: #1F3864;
  --navy-dark: #172B4D;
  --navy-light: #2A4B82;
  --deep: #12233F;
  --deep-darker: #0B172A;

  --teal: #0E7C86;
  --teal-hover: #0A636B;
  --teal-light: #E4F2F3;
  --teal-border: #BFE0E3;

  --gold: #B08D57;
  --gold-bright: #D4AF6A;
  --gold-hover: #DFBE7F;
  --gold-deep: #8C6D3B;
  --gold-light: #F6EFE4;
  --gold-border: #E5D4B7;

  --white: #FFFFFF;
  --surface: #F6F8FB;
  --surface-alt: #EDF2F8;
  --ink: #1B2433;
  --muted: #525E6F;
  --line: #D5DBE5;
  --line-soft: #E5EAF2;

  --success: #1D7A4C;
  --success-bg: #E8F6EF;
  --danger: #B42318;
  --danger-bg: #FEF3F2;

  --container-max: 1240px;
  --header-height: 76px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --shadow-xs: 0 1px 2px rgba(18, 35, 63, 0.05);
  --shadow-sm: 0 4px 14px -2px rgba(18, 35, 63, 0.07);
  --shadow-md: 0 12px 28px -6px rgba(18, 35, 63, 0.12);
  --shadow-lg: 0 22px 48px -10px rgba(18, 35, 63, 0.18);
  --shadow-hero: 0 28px 60px -12px rgba(6, 14, 28, 0.45);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--teal-hover);
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.page-hero :focus-visible,
.site-footer :focus-visible,
.cta-band :focus-visible {
  outline-color: var(--gold-bright);
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 9999;
  background: var(--gold-bright);
  color: var(--deep-darker);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 14px;
}

h1,
h2,
h3,
h4 {
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.05rem, 4vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.6rem, 2.75vw, 2.2rem);
  line-height: 1.2;
  margin-bottom: 0.9rem;
}

h3 {
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.015em;
  margin-bottom: 0.55rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.container-wrap {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .container-wrap {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media print {
  .trust-topbar,
  .site-header,
  .cta-band,
  .site-footer,
  .diagram-zoom-btn {
    display: none !important;
  }
  body {
    color: #000;
    font-size: 11pt;
  }
  .page-hero {
    background: #fff !important;
    color: #000 !important;
    padding: 16px 0 !important;
    border-bottom: 2px solid #1F3864;
  }
  .page-hero h1,
  .page-hero p {
    color: #000 !important;
  }
}

.trust-topbar {
  background: var(--deep-darker);
  color: #C9D5E6;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  gap: 16px;
}

.trust-topbar__badges {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: #DCE5F2;
}

.trust-pill svg {
  width: 14px;
  height: 14px;
  color: var(--gold-bright);
  flex-shrink: 0;
}

.trust-topbar__contact {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.trust-topbar__contact a {
  color: #DCE5F2;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-topbar__contact a:hover {
  color: var(--gold-bright);
}

@media (max-width: 960px) {
  .trust-topbar {
    display: none;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--transition-base), background-color var(--transition-base);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 26px -6px rgba(18, 35, 63, 0.11);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 20px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 4px 0;
}

.brand-logo img {
  height: 35px;
  width: auto;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 9px 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--teal);
  background-color: rgba(14, 124, 134, 0.06);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 3px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--teal);
}

.nav-chevron {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown:hover .nav-chevron,
.nav-dropdown.is-open .nav-chevron {
  transform: rotate(180deg);
}

.mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: -24px;
  width: 680px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
  pointer-events: none;
}

.mega-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.nav-dropdown:hover .mega-menu,
.nav-dropdown:focus-within .mega-menu,
.nav-dropdown.is-open .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.mega-menu__label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.mega-menu__all {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mega-menu__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.mega-item:hover,
.mega-item.is-active {
  background-color: var(--surface);
  color: var(--navy);
}

.mega-item.is-active {
  background-color: var(--teal-light);
}

.mega-item__icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--teal-light);
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.mega-item:hover .mega-item__icon {
  background: var(--teal);
  color: var(--white);
}

.mega-item__icon svg {
  width: 18px;
  height: 18px;
}

.mega-item__title {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.mega-item__desc {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.38;
  margin-top: 2px;
}

.header-cta {
  margin-left: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.mobile-toggle:hover {
  background: var(--surface);
  border-color: var(--teal);
}

.mobile-drawer {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
}

.mobile-drawer__inner {
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--navy);
  border-radius: 10px;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  background: var(--teal-light);
  color: var(--teal);
}

.mobile-accordion-btn {
  width: 100%;
  background: transparent;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.mobile-subnav {
  display: none;
  padding: 6px 0 10px 14px;
  margin-left: 12px;
  border-left: 2px solid var(--teal-border);
}

.mobile-subnav a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 8px;
}

.mobile-subnav a:hover,
.mobile-subnav a.is-active {
  color: var(--teal);
  background: var(--surface);
}

.mobile-drawer__cta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 1180px) {
  .desktop-nav {
    display: none;
  }
  .mobile-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .brand-logo img {
    height: 32px;
  }
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--deep-darker) 0%, var(--deep) 52%, var(--navy) 100%);
  color: var(--white);
  padding: 72px 0 76px;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 82% 24%, rgba(14, 124, 134, 0.28) 0%, transparent 46%),
    radial-gradient(circle at 14% 88%, rgba(176, 141, 87, 0.16) 0%, transparent 42%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 44px 44px, 44px 44px;
  pointer-events: none;
}

.page-hero--home {
  padding: 80px 0 88px;
}

.page-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 44px;
  align-items: center;
}

.page-hero--split .page-hero__grid {
  grid-template-columns: 1.06fr 0.94fr;
}

.hero-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #AEBED6;
  margin-bottom: 18px;
}

.hero-breadcrumb a {
  color: #CBD7E8;
}

.hero-breadcrumb a:hover {
  color: var(--gold-bright);
}

.hero-breadcrumb__sep {
  opacity: 0.45;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 106, 0.13);
  border: 1px solid rgba(212, 175, 106, 0.34);
  color: #F0D5A3;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  max-width: 22ch;
}

.page-hero--split h1 {
  max-width: 19ch;
}

.hero-lead {
  font-size: clamp(1.06rem, 1.5vw, 1.2rem);
  line-height: 1.62;
  color: #D8E2F0;
  max-width: 64ch;
  margin-bottom: 30px;
}

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

.hero-visual {
  position: relative;
  background: rgba(11, 23, 42, 0.52);
  border: 1px solid rgba(143, 180, 217, 0.26);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--shadow-hero);
  backdrop-filter: blur(8px);
}

.hero-visual img {
  width: 100%;
  border-radius: 14px;
}

@media (max-width: 960px) {
  .page-hero--split .page-hero__grid {
    grid-template-columns: 1fr;
  }
  .page-hero {
    padding: 52px 0 58px;
  }
}

.page-section {
  padding: 76px 0;
  background: var(--white);
}

.page-section--alt {
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section-header {
  max-width: 78ch;
  margin-bottom: 32px;
}

.section-kicker {
  display: inline-block;
  color: var(--teal);
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.section-prose {
  max-width: 78ch;
  color: var(--muted);
  font-size: 1.04rem;
}

.section-prose strong {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 768px) {
  .page-section {
    padding: 52px 0;
  }
}

.site-footer {
  background: var(--deep-darker);
  color: #C7D3E4;
  padding: 68px 0 0;
  font-size: 14.5px;
  border-top: 4px solid var(--teal);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1.45fr 0.95fr 0.85fr;
  gap: 38px;
}

.footer-brand__logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-brand__logo img {
  height: 38px;
  width: auto;
}

.footer-brand__tagline {
  color: #DCE6F3;
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 18px;
  max-width: 34ch;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #B8C7DC;
}

.footer-contact-list svg {
  width: 16px;
  height: 16px;
  color: var(--gold-bright);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-list a {
  color: #DCE6F3;
}

.footer-contact-list a:hover {
  color: var(--gold-bright);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #DCE6F3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.footer-social-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.footer-social-btn svg {
  width: 16px;
  height: 16px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-links a {
  color: #C2CFE2;
  font-size: 14px;
  line-height: 1.4;
  display: inline-block;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(2px);
}

.footer-bottom {
  margin-top: 48px;
  padding: 20px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: #9FB0C7;
}

.footer-certs {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-cert-badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #D5E0EE;
  font-size: 11.5px;
  font-weight: 600;
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.2;
  padding: 13px 24px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
}

.btn svg {
  width: 17px;
  height: 17px;
  transition: transform var(--transition-fast);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--sm {
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 9px;
}

.btn--gold {
  background: var(--gold-bright);
  color: var(--deep-darker);
  box-shadow: 0 6px 20px rgba(212, 175, 106, 0.25);
}

.btn--gold:hover {
  background: var(--gold-hover);
  color: var(--deep-darker);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(212, 175, 106, 0.35);
}

.btn--teal {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(14, 124, 134, 0.22);
}

.btn--teal:hover {
  background: var(--teal-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(14, 124, 134, 0.3);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--white);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-1px);
}

.btn--outline {
  background: var(--white);
  border-color: var(--line);
  color: var(--navy);
}

.btn--outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-light);
}

.stat-band {
  background: var(--deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-cell {
  padding: 28px 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
}

.stat-cell:first-child {
  border-left: 0;
  padding-left: 0;
}

.stat-value {
  display: block;
  font-size: clamp(1.85rem, 2.6vw, 2.35rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 5px;
}

.stat-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #C7D4E6;
  line-height: 1.35;
}

.stat-strip {
  margin-top: 26px;
  background: linear-gradient(135deg, var(--deep) 0%, var(--navy) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
}

.stat-strip .stat-cell {
  padding: 24px 26px;
}

.stat-strip .stat-cell:first-child {
  padding-left: 26px;
}

.stat-strip .stat-value {
  color: var(--gold-bright);
}

@media (max-width: 860px) {
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-cell {
    padding: 20px 16px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .stat-cell:nth-child(odd) {
    border-left: 0;
  }
}

@media (max-width: 480px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .stat-cell {
    border-left: 0 !important;
  }
}

.card-grid {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.card-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.card-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

@media (max-width: 680px) {
  .card-grid--4,
  .card-grid--3,
  .card-grid--2 {
    grid-template-columns: 1fr;
  }
}

.ui-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  color: var(--ink);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.ui-card--navy {
  border-top-color: var(--navy);
}

.ui-card--gold {
  border-top-color: var(--gold);
}

a.ui-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-border);
  border-top-color: var(--teal);
  color: var(--ink);
}

.ui-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--teal-light);
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.ui-card--navy .ui-card__icon {
  background: #E8EEF7;
  color: var(--navy);
}

.ui-card--gold .ui-card__icon {
  background: var(--gold-light);
  color: var(--gold-deep);
}

a.ui-card:hover .ui-card__icon {
  background: var(--teal);
  color: var(--white);
}

.ui-card__icon svg {
  width: 22px;
  height: 22px;
}

.ui-card__tag {
  align-self: flex-start;
  background: var(--gold-light);
  border: 1px solid var(--gold-border);
  color: #6E5226;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 999px;
  padding: 3px 11px;
  margin-bottom: 12px;
}

.ui-card h3 {
  color: var(--navy);
  margin-bottom: 8px;
}

.ui-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
}

.ui-card__more {
  margin-top: auto;
  padding-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
}

.ui-card__more svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

a.ui-card:hover .ui-card__more svg {
  transform: translateX(4px);
}

.check-points {
  list-style: none;
  padding: 14px 0 0;
  margin: 16px 0 0;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-points li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
}

.check-points li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 11px;
  height: 6px;
  border-left: 2.5px solid var(--teal);
  border-bottom: 2.5px solid var(--teal);
  transform: rotate(-45deg);
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
  list-style: none;
  padding: 0;
}

.example-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.page-section:not(.page-section--alt) .example-item {
  background: var(--surface);
}

.example-item:hover {
  border-color: var(--teal-border);
  transform: translateY(-1px);
}

.example-item__num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 12.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-variant-numeric: tabular-nums;
}

.example-item__text {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}

.example-item__text strong {
  color: var(--navy);
}

@media (max-width: 720px) {
  .example-grid {
    grid-template-columns: 1fr;
  }
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
  list-style: none;
  padding: 0;
}

.control-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow-xs);
}

.control-card__shield {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--teal-light);
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.control-card__shield svg {
  width: 18px;
  height: 18px;
}

.control-card__body {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.48;
}

@media (max-width: 720px) {
  .controls-grid {
    grid-template-columns: 1fr;
  }
}

.proof-callout {
  margin-top: 26px;
  background: linear-gradient(90deg, var(--teal-light) 0%, #EFF7F8 100%);
  border: 1px solid var(--teal-border);
  border-left: 5px solid var(--teal);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 88ch;
}

.proof-callout__badge {
  background: var(--teal);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  margin-top: 2px;
}

.proof-callout p {
  margin: 0;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.55;
}

@media (max-width: 640px) {
  .proof-callout {
    flex-direction: column;
    gap: 10px;
  }
}

.diagram-figure {
  margin: 32px 0 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.diagram-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
}

.diagram-toolbar__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.diagram-zoom-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 11px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
}

.diagram-zoom-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-light);
}

.diagram-zoom-btn svg {
  width: 14px;
  height: 14px;
}

.diagram-canvas {
  padding: 18px;
  background: var(--white);
  cursor: zoom-in;
}

.diagram-canvas img {
  width: 100%;
  border-radius: 12px;
}

.diagram-caption {
  padding: 12px 20px 14px;
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
  color: var(--muted);
}

.diagram-lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(11, 23, 42, 0.86);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.diagram-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.diagram-lightbox__panel {
  position: relative;
  max-width: 1280px;
  width: 100%;
  max-height: 90vh;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-hero);
  overflow: auto;
}

.diagram-lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.diagram-lightbox__caption {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.diagram-lightbox__close {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}

.diagram-lightbox__close:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.spec-table-wrap {
  margin-top: 26px;
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.spec-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  font-size: 15px;
}

.spec-table thead th {
  background: var(--navy);
  color: var(--white);
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 20px;
}

.spec-table tbody th,
.spec-table tbody td {
  padding: 15px 20px;
  vertical-align: top;
  border-top: 1px solid var(--line-soft);
  line-height: 1.55;
}

.spec-table tbody th {
  text-align: left;
  font-weight: 700;
  color: var(--navy);
  width: 240px;
  background: rgba(246, 248, 251, 0.55);
}

.spec-table tbody tr:hover td,
.spec-table tbody tr:hover th {
  background-color: #F4F8FB;
}

.gate-pill {
  display: inline-block;
  background: var(--gold-light);
  border: 1px solid var(--gold-border);
  color: #6E5226;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.case-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.filter-pill {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.filter-pill.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-xs);
}

.case-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.case-block:last-child {
  margin-bottom: 0;
}

.case-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 18px;
}

.case-panel {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}

.case-panel__label {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 6px;
}

.case-panel p {
  margin: 0;
  color: var(--ink);
  font-size: 15.5px;
}

@media (max-width: 768px) {
  .case-block {
    padding: 24px 20px;
  }
  .case-split {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: start;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 22px;
}

.field-group {
  display: flex;
  flex-direction: column;
}

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

.field-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.field-req {
  color: var(--teal);
  margin-left: 2px;
}

.field-control {
  width: 100%;
  font-family: inherit;
  font-size: 15.5px;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.field-control:hover {
  border-color: #B4C0D0;
}

.field-control:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3.5px rgba(14, 124, 134, 0.15);
}

.field-control.has-error {
  border-color: var(--danger);
  background: #FFFBFB;
}

.field-error {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--danger);
  margin-top: 5px;
  min-height: 18px;
}

textarea.field-control {
  resize: vertical;
  min-height: 126px;
}

.hp-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  display: none;
  grid-column: 1 / -1;
  padding: 15px 18px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
}

.form-status.is-success {
  display: block;
  background: var(--success-bg);
  border: 1px solid #A6E0C3;
  color: var(--success);
}

.form-status.is-error {
  display: block;
  background: var(--danger-bg);
  border: 1px solid #F7C4C0;
  color: var(--danger);
}

.direct-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
}

.direct-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.direct-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.direct-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.direct-item__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.direct-item__icon svg {
  width: 18px;
  height: 18px;
}

.direct-item__label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 3px;
}

.direct-item__val {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
}

@media (max-width: 960px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .form-card {
    padding: 24px 20px;
  }
  .contact-form-grid {
    grid-template-columns: 1fr;
  }
}

.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 65%, #234E78 100%);
  color: var(--white);
  padding: 60px 0;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 88% 50%, rgba(212, 175, 106, 0.18) 0%, transparent 45%);
  pointer-events: none;
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 8px;
}

.cta-band p {
  color: #D7E2F0;
  font-size: 1.05rem;
  max-width: 62ch;
  margin: 0;
}

.text-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--teal);
  margin-top: 20px;
}

.text-arrow-link svg {
  width: 17px;
  height: 17px;
  transition: transform var(--transition-fast);
}

.text-arrow-link:hover svg {
  transform: translateX(4px);
}

html.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms var(--ease-out), transform 560ms var(--ease-out);
  will-change: opacity, transform;
}

html.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.js-ready [data-reveal][data-delay="1"] {
  transition-delay: 75ms;
}

html.js-ready [data-reveal][data-delay="2"] {
  transition-delay: 150ms;
}

html.js-ready [data-reveal][data-delay="3"] {
  transition-delay: 225ms;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 0 rgba(212, 175, 106, 0.7);
  animation: algebraPulse 2.4s infinite;
}

@keyframes algebraPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 106, 0.65);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(212, 175, 106, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 106, 0);
  }
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: algebraSpin 0.7s linear infinite;
}

@keyframes algebraSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
