﻿:root {
  --bg: #f4f8ff;
  --surface: #fffdf8;
  --ink: #111827;
  --muted: #5b6472;
  --line: rgba(3, 91, 189, 0.14);
  --dark: #061a3f;
  --dark-soft: #09265c;
  --accent: #ff8a00;
  --accent-dark: #c96a00;
  --blue: #006ee6;
  --blue-dark: #004fb2;
  --sage: #326da8;
  --steel: #55728f;
  --radius: 8px;
  --shadow: 0 20px 70px rgba(15, 20, 19, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  gap: 0;
  padding: 0 clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.topbar,
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar {
  min-height: 38px;
  border-bottom: 1px solid var(--line);
  color: var(--steel);
  font-size: 0.82rem;
  font-weight: 700;
}

.topbar-contacts,
.topbar-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.header-main {
  min-height: 72px;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
  letter-spacing: 0;
}

.site-footer .brand {
  display: inline-flex;
  align-items: center;
  justify-items: initial;
  gap: 10px;
  text-align: left;
}

.site-footer .brand-logo {
  width: 50px;
  height: 38px;
  padding: 0;
}

.site-footer .brand span {
  font-size: 1rem;
}

.brand-logo {
  width: 50px;
  height: 38px;
  border-radius: 7px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 8px 22px rgba(9, 18, 28, 0.08);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4.2vw, 54px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.main-nav a,
.socials a {
  transition: color 160ms ease;
}

.main-nav a:hover,
.socials a:hover,
.topbar a:hover {
  color: var(--accent-dark);
}

.header-action {
  padding: 10px 16px;
  border: 1px solid rgba(0, 110, 230, 0.22);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 700;
  background: rgba(0, 110, 230, 0.06);
  color: var(--blue-dark);
}

.hero {
  position: relative;
  min-height: calc(100vh - 111px);
  display: grid;
  align-items: center;
  padding: clamp(28px, 4vw, 54px) clamp(18px, 5vw, 72px) clamp(48px, 6vw, 86px);
  overflow: hidden;
  background-color: #f7fbff;
  background-image: url("assets/aex-academy-banner.png");
  background-position: top center;
  background-size: contain;
  background-repeat: no-repeat;
  color: var(--ink);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.42) 44%, rgba(255, 255, 255, 0.14) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  justify-self: start;
  width: min(790px, 45vw);
  margin-top: clamp(20px, 4vw, 58px);
  margin-left: clamp(650px, 46vw, 930px);
  padding: clamp(20px, 2.4vw, 30px);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 24px 90px rgba(0, 83, 179, 0.16);
  backdrop-filter: blur(10px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.lead-copy h2 {
  margin: 0;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.05rem, 3.15vw, 3.2rem);
}

.hero-copy {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
}

.hero-note {
  max-width: 720px;
  margin: 14px 0 0;
  color: #31445b;
  font-size: clamp(0.94rem, 1.2vw, 1.03rem);
  font-weight: 600;
}

.hero-actions,
.quick-stats,
.hero-feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: linear-gradient(135deg, var(--blue), var(--accent));
  color: #fff;
}

.button.primary:hover {
  background: linear-gradient(135deg, var(--blue-dark), var(--accent-dark));
}

.button.ghost {
  border-color: rgba(0, 110, 230, 0.24);
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.6);
}

.quick-stats {
  margin: 44px 0 0;
}

.hero-feature-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-feature-grid article {
  min-height: 132px;
  padding: 16px;
  border: 1px solid rgba(0, 110, 230, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
}

.hero-feature-grid h3 {
  margin: 0 0 8px;
  color: var(--blue-dark);
  font-size: 0.98rem;
}

.hero-feature-grid p {
  margin: 0;
  color: #4c5f75;
  font-size: 0.88rem;
  line-height: 1.45;
}

.quick-stats div {
  min-width: 150px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 110, 230, 0.2);
}

.quick-stats dt {
  color: var(--steel);
  font-size: 0.82rem;
  font-weight: 700;
}

.quick-stats dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.section {
  padding: clamp(64px, 9vw, 118px) clamp(18px, 5vw, 72px);
}

.intro {
  padding-top: clamp(50px, 6vw, 78px);
  padding-bottom: clamp(50px, 6vw, 78px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow) {
  max-width: 820px;
  margin: 14px 0 0;
  font-size: clamp(0.96rem, 1.15vw, 1.06rem);
}

.section-heading h2,
.lead-copy h2 {
  font-size: clamp(2rem, 4.4vw, 4rem);
}

.intro .section-heading h2 {
  max-width: 930px;
  font-size: clamp(1.75rem, 3.1vw, 3.05rem);
}

.intro-grid,
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.intro-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.intro-grid article,
.course-card,
.lead-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.intro-grid article {
  position: relative;
  overflow: hidden;
  padding: 18px;
  box-shadow: 0 18px 48px rgba(0, 83, 179, 0.08);
}

.intro-grid article::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 0, 0.14), transparent 68%);
  pointer-events: none;
}

.intro-icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 110, 230, 0.12), rgba(255, 138, 0, 0.12));
  color: var(--blue-dark);
}

.intro-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.intro-grid h3 {
  margin-bottom: 8px;
  font-size: 1.03rem;
}

.intro-grid p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.48;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  line-height: 1.24;
}

p {
  color: var(--muted);
}

.services-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(244, 248, 255, 0.92)),
    var(--surface);
}

.service-card-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 0.67fr) minmax(0, 0.67fr);
  grid-template-areas:
    "offline online online"
    "offline selection inspection";
  gap: 14px;
  align-items: stretch;
}

.service-statement {
  max-width: 980px;
  margin: -8px 0 18px;
  padding: clamp(16px, 2vw, 22px);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 138, 0, 0.1), rgba(0, 110, 230, 0.06)),
    #fff;
  color: #123457;
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
  font-weight: 800;
  line-height: 1.34;
  box-shadow: 0 16px 42px rgba(0, 83, 179, 0.08);
}

.service-choice-title {
  margin: 0 0 16px;
  color: var(--blue-dark);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.service-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(0, 110, 230, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 54px rgba(0, 83, 179, 0.08);
}

.service-card-main {
  grid-area: offline;
  min-height: 100%;
  background:
    linear-gradient(145deg, rgba(255, 138, 0, 0.14), rgba(0, 110, 230, 0.08)),
    #fff;
  border-color: rgba(255, 138, 0, 0.3);
  box-shadow: 0 26px 72px rgba(255, 138, 0, 0.13);
}

.service-card-main + .service-card {
  grid-area: online;
  min-height: 250px;
  padding: 18px;
  overflow: visible;
}

.service-card-grid .service-card:nth-child(3) {
  grid-area: selection;
}

.service-card-grid .service-card:nth-child(4) {
  grid-area: inspection;
}

.service-card.compact {
  min-height: 215px;
  padding: 18px;
}

.offline-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}

.service-visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--dark);
  aspect-ratio: 16 / 8;
}

.service-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.service-card h3 {
  margin-bottom: 9px;
  font-size: clamp(1.22rem, 1.85vw, 1.72rem);
}

.service-card.compact h3 {
  font-size: clamp(1.05rem, 1.35vw, 1.28rem);
}

.service-card.compact p,
.service-card.compact ul {
  font-size: 0.88rem;
}

.service-card-main h3 {
  font-size: clamp(1.55rem, 2.45vw, 2.25rem);
}

.service-card p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.5;
}

.service-price {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 8px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 138, 0, 0.1);
  color: var(--accent-dark);
  font-weight: 900;
}

.service-card ul {
  display: grid;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  color: #41556c;
  font-size: 0.93rem;
  line-height: 1.35;
  list-style: none;
}

.service-card:not(.compact) ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card li {
  position: relative;
  padding-left: 22px;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.22em;
  width: 6px;
  height: 11px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(38deg);
}

.service-card .button {
  align-self: flex-start;
}

.online-card-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(190px, 0.82fr);
  gap: 18px;
  min-height: 100%;
  align-items: stretch;
}

.online-card-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}

.online-card-copy ul {
  grid-template-columns: 1fr;
  margin-top: 4px;
}

.online-card-copy .button {
  margin-top: auto;
}

.online-card-image {
  overflow: hidden;
  align-self: center;
  background: var(--dark);
  border-radius: var(--radius);
  box-shadow: 0 16px 38px rgba(0, 83, 179, 0.16);
  aspect-ratio: 16 / 10;
}

.online-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.courses {
  background:
    linear-gradient(180deg, rgba(244, 248, 255, 0.96), rgba(255, 255, 255, 0.92)),
    #eef5ff;
  padding-top: clamp(50px, 6vw, 78px);
  padding-bottom: clamp(50px, 6vw, 78px);
}

.courses .section-heading {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(20px, 4vw, 54px);
  align-items: end;
  margin-bottom: 26px;
}

.courses .section-heading .eyebrow {
  grid-column: 1 / -1;
}

.courses .section-heading h2 {
  max-width: 760px;
  font-size: clamp(1.8rem, 3.4vw, 3.3rem);
}

.courses .section-heading p:not(.eyebrow) {
  margin: 0;
  max-width: 620px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.skill-card {
  min-height: 164px;
  padding: 18px;
  border: 1px solid rgba(0, 110, 230, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 42px rgba(0, 83, 179, 0.07);
}

.skill-icon {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 110, 230, 0.1), rgba(255, 138, 0, 0.12));
  font-size: 1.08rem;
}

.skill-card h3 {
  margin-bottom: 7px;
  color: var(--blue-dark);
  font-size: 1.04rem;
}

.skill-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.42;
}

.learning-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 14px;
  padding: clamp(16px, 2vw, 22px);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 110, 230, 0.95), rgba(6, 26, 63, 0.96)),
    var(--dark);
  color: #fff;
  box-shadow: 0 24px 70px rgba(0, 83, 179, 0.18);
}

.learning-result h3 {
  margin: 0;
  color: #fff;
  white-space: nowrap;
}

.learning-result p {
  max-width: 980px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.audience-section {
  background: var(--surface);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.audience-card {
  padding: 26px;
  border: 1px solid rgba(0, 110, 230, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 44px rgba(0, 83, 179, 0.08);
}

.audience-card.accent {
  border-color: rgba(255, 138, 0, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 138, 0, 0.1), rgba(0, 110, 230, 0.06)),
    #fff;
}

.audience-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 110, 230, 0.1), rgba(255, 138, 0, 0.12));
  font-size: 1.25rem;
}

.audience-card h3 {
  color: var(--blue-dark);
}

.audience-card p {
  margin: 0;
}

.trust-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 248, 255, 0.96)),
    #f7fbff;
  padding-top: clamp(46px, 6vw, 76px);
  padding-bottom: clamp(46px, 6vw, 76px);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.trust-card {
  min-height: 150px;
  padding: 20px;
  border: 1px solid rgba(0, 110, 230, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 42px rgba(0, 83, 179, 0.07);
}

.trust-card span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 5px 9px;
  border-radius: 7px;
  background: rgba(255, 138, 0, 0.12);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.trust-card h3 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 1.04rem;
}

.local-seo-section {
  padding-top: clamp(26px, 4vw, 44px);
  padding-bottom: clamp(26px, 4vw, 44px);
  background: var(--surface);
}

.local-seo-card {
  max-width: 1060px;
  padding: clamp(22px, 4vw, 36px);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 110, 230, 0.08), rgba(255, 138, 0, 0.08)),
    #fff;
  box-shadow: 0 20px 58px rgba(0, 83, 179, 0.08);
}

.local-seo-card h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(1.55rem, 2.7vw, 2.55rem);
  line-height: 1.08;
}

.local-seo-card p {
  max-width: 860px;
  margin: 0;
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
}

.local-seo-card p + p {
  margin-top: 10px;
}

.faq-section {
  scroll-margin-top: 132px;
  background: #eef5ff;
  padding-top: clamp(48px, 6vw, 82px);
  padding-bottom: clamp(48px, 6vw, 82px);
}

.faq-list {
  display: grid;
  max-width: 960px;
  gap: 10px;
}

.faq-list details {
  overflow: hidden;
  border: 1px solid rgba(0, 110, 230, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(0, 83, 179, 0.06);
}

.faq-list summary {
  position: relative;
  cursor: pointer;
  padding: 18px 54px 18px 20px;
  color: var(--ink);
  font-weight: 800;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  color: var(--accent-dark);
  font-weight: 900;
  transition: transform 0.22s ease;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-answer {
  padding: 0 20px 18px;
  color: var(--muted);
  animation: faq-open 0.24s ease;
}

.faq-answer p,
.faq-answer ul {
  margin: 0;
}

.faq-answer p + p,
.faq-answer p + ul,
.faq-answer ul + p {
  margin-top: 10px;
}

.faq-answer ul {
  display: grid;
  gap: 7px;
  padding-left: 20px;
  color: var(--muted);
}

@keyframes faq-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.future-blog-anchor {
  scroll-margin-top: 120px;
}

.lead-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(28px, 7vw, 86px);
  align-items: start;
  background: var(--surface);
}

.lead-copy {
  position: sticky;
  top: 110px;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.lead-form .full {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfaf5;
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(214, 108, 47, 0.74);
  box-shadow: 0 0 0 3px rgba(214, 108, 47, 0.14);
}

.consent {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  color: var(--muted);
  font-weight: 500;
}

.consent input {
  margin-top: 4px;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 24px;
  margin: 0;
  font-weight: 700;
}

.form-status.success {
  color: #2d7a4f;
}

.form-status.error {
  color: #b3362d;
}

.site-footer {
  display: grid;
  grid-template-columns: max-content minmax(220px, 1fr) max-content max-content;
  align-items: center;
  gap: 24px 32px;
  padding: 24px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.site-footer p {
  max-width: 560px;
}

.footer-address {
  justify-self: center;
  margin-left: 0;
  margin-top: 0;
  max-width: none;
  color: var(--muted);
  font-style: normal;
}

.footer-address strong {
  color: var(--ink);
  font-size: 1.2rem;
}

.footer-address span {
  display: block;
  color: #203858;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.25;
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.footer-contacts a,
.socials a {
  transition: color 0.2s ease;
}

.footer-contacts a:hover,
.socials a:hover {
  color: var(--accent-dark);
}

.lead-form .button.full {
  width: 100%;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-end;
  gap: 14px 22px;
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 330px;
    background-position: top center;
    background-size: 1100px auto;
  }

  .hero-content {
    width: min(760px, 100%);
    max-width: 760px;
    margin-top: 0;
    margin-left: 0;
  }

  .hero-feature-grid {
    grid-template-columns: 1fr;
  }

  .course-grid,
  .service-card-grid,
  .audience-grid,
  .lead-section {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  .service-card-main,
  .service-card-main + .service-card,
  .service-card.compact,
  .service-card-grid .service-card:nth-child(3),
  .service-card-grid .service-card:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
    grid-area: auto;
  }

  .offline-layout {
    grid-template-columns: 1fr;
  }

  .online-card-layout {
    grid-template-columns: 1fr;
  }

  .online-card-image img {
    min-height: 220px;
  }

  .intro-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .courses .section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .courses .section-heading p:not(.eyebrow) {
    max-width: 760px;
  }

  .lead-copy {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-right: 16px;
    padding-left: 16px;
  }

  .topbar {
    display: none;
  }

  .header-main {
    min-height: 64px;
  }

  .header-action {
    display: none;
  }

  .hero {
    padding-right: 16px;
    padding-left: 16px;
    padding-top: 230px;
    background-position: top center;
    background-size: 760px auto;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-content {
    padding: 18px;
  }

  .service-card {
    padding: 20px;
  }

  .service-card:not(.compact) ul {
    grid-template-columns: 1fr;
  }

  .online-card-copy {
    padding: 20px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .learning-result {
    grid-template-columns: 1fr;
  }

  .learning-result h3 {
    white-space: normal;
  }

  .quick-stats div {
    min-width: 120px;
    flex: 1 1 120px;
  }

  .section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .lead-form {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-address {
    justify-self: start;
  }

  .footer-contacts,
  .socials {
    justify-content: flex-start;
  }
}
