/* Академия Бухгалтеров — лендинг — палитра */
:root {
  /* Brand red */
  --r-700: #8b1a1b;
  --r-600: #ad2324; /* primary */
  --r-500: #c43539;
  --r-400: #dd6a6e;
  --r-200: #f4c2c4;
  --r-100: #fce6e7;
  --r-50: #fdf3f4;

  /* Graphite charcoal — locked theme (#26262c family, hue 285, low chroma) */
  --d-900: oklch(0.23 0.0162 285);
  --d-800: oklch(0.29 0.018 285); /* primary dark ≈ #26262c */
  --d-700: oklch(0.37 0.018 285);
  --d-600: oklch(0.49 0.0153 285);
  --d-500: oklch(0.6 0.0126 285);
  --d-400: oklch(0.72 0.009 285);
  --d-300: oklch(0.83 0.0063 285);
  --d-200: oklch(0.92 0.0032 285);
  --d-100: oklch(0.95 0.0022 285);
  --d-50: oklch(0.975 0.0014 285);

  /* Warm paper */
  --paper: #ffffff;
  --cream-50: #fbf7ee;
  --cream-100: #f4ecd9;
  --cream-200: #ead8b3;

  /* Gradients */
  --g-red: linear-gradient(135deg, #ad2324 0%, #c43539 55%, #dd6a6e 100%);
  --g-red-deep: linear-gradient(135deg, #8b1a1b 0%, #ad2324 100%);
  --g-red-soft: linear-gradient(135deg, #fce6e7 0%, #f4c2c4 100%);
  --g-dark: linear-gradient(160deg, var(--d-800) 0%, var(--d-900) 60%, var(--d-700) 110%);
  --g-dark-flat: linear-gradient(140deg, var(--d-700) 0%, var(--d-800) 100%);
  /* Gentle graphite gradient — soft light-pool top-right, deepening downward */
  --g-graphite:
    radial-gradient(125% 85% at 88% -12%, oklch(0.345 0.02 285) 0%, transparent 56%),
    linear-gradient(168deg, oklch(0.3 0.018 285) 0%, oklch(0.232 0.016 285) 100%);
  --g-graphite-soft:
    radial-gradient(130% 90% at 12% -10%, oklch(0.33 0.019 285) 0%, transparent 60%),
    linear-gradient(162deg, oklch(0.282 0.0175 285) 0%, oklch(0.252 0.0165 285) 100%);
  --g-warm: linear-gradient(135deg, #fbf7ee 0%, #ffe8d4 100%);

  /* Shadows */
  --sh-sm: 0 2px 8px rgba(30, 27, 35, 0.04), 0 1px 2px rgba(30, 27, 35, 0.04);
  --sh-md: 0 10px 30px rgba(30, 27, 35, 0.06), 0 4px 10px rgba(30, 27, 35, 0.04);
  --sh-lg: 0 24px 60px rgba(30, 27, 35, 0.12), 0 10px 24px rgba(30, 27, 35, 0.06);
  --sh-red: 0 16px 40px rgba(173, 35, 36, 0.25), 0 6px 16px rgba(173, 35, 36, 0.15);

  /* Radii — мягкие */
  --rd-sm: 14px;
  --rd-md: 22px;
  --rd-lg: 32px;
  --rd-xl: 44px;
  --rd-xxl: 56px;
  --rd-pill: 999px;
}

* {
  box-sizing: border-box;
}
/* overflow-x: clip contains AOS reveal transforms, decorative orbs and the
   off-canvas nav drawer so they never trigger horizontal scroll on small
   screens — and unlike overflow:hidden it does NOT break position:sticky. */
html,
body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
}
body {
  font-family:
    "Onest",
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--paper);
  color: var(--d-900);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
button {
  font-family: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-weight: 800;
  color: var(--d-900);
}
p {
  margin: 0;
}

/* Container */
.wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 56px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--rd-pill);
  font-weight: 700;
  font-size: 15px;
  border: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  cursor: pointer;
  line-height: 1;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-red {
  background: var(--g-red);
  color: white;
  box-shadow: var(--sh-red);
}
.btn-red:hover {
  box-shadow: 0 22px 50px color-mix(in oklab, var(--r-600) 35%, transparent);
}
.btn-dark {
  background: var(--d-800);
  color: white;
}
.btn-dark:hover {
  background: var(--d-700);
}
.btn-light {
  background: white;
  color: var(--d-900);
  box-shadow: var(--sh-sm);
}
.btn-ghost {
  background: transparent;
  color: var(--d-800);
  border: 1.5px solid var(--d-200);
}
.btn-lg {
  padding: 18px 32px;
  font-size: 16px;
}

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--r-50);
  color: var(--r-600);
  border-radius: var(--rd-pill);
  font-size: 13px;
  font-weight: 600;
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--r-600);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

/* ─────────── Top bar ─────────── */
.topbar {
  background: var(--d-900);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}
.topbar .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}
.topbar .l,
.topbar .r {
  display: flex;
  gap: 22px;
  align-items: center;
}
.topbar .lang {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--rd-pill);
  padding: 3px;
}
.topbar .lang span {
  padding: 3px 12px;
  border-radius: var(--rd-pill);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.topbar .lang .on {
  background: var(--g-red);
  color: white;
}
.topbar .acca {
  color: rgba(255, 255, 255, 0.5);
}
.topbar .acca b {
  color: white;
}

/* ─────────── Nav ─────────── */
.nav {
  padding: 22px 0;
  background: white;
  z-index: 50;
}
.nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-mark {
  width: 52px;
  height: 52px;
  border-radius: var(--rd-sm);
  background: var(--g-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 26px;
  box-shadow: var(--sh-red);
  position: relative;
  overflow: hidden;
}
.logo-mark::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, transparent 50%, rgba(255, 255, 255, 0.2));
}
.logo-text {
  line-height: 1.1;
}
.logo-text .name {
  font-weight: 800;
  font-size: 16px;
  color: var(--d-900);
}
.logo-text .sub {
  font-size: 10px;
  color: var(--d-500);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 3px;
  font-weight: 600;
}
.menu {
  display: flex;
  gap: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--d-700);
}
.menu a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  position: relative;
}
.menu a:hover {
  color: var(--r-600);
}
.menu a.dd::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}
.nav-cta .phone {
  color: var(--d-900);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  text-align: right;
}
.nav-cta .phone small {
  display: block;
  font-size: 11px;
  color: var(--d-500);
  font-weight: 500;
  margin-top: 2px;
}

/* ─────────── Hero ─────────── */
.hero {
  padding: 56px 0 120px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Animated background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}
.hero-bg .orb-1 {
  width: 620px;
  height: 620px;
  top: -160px;
  right: -180px;
  background: radial-gradient(circle, var(--r-200) 0%, var(--r-100) 60%, transparent 80%);
  opacity: 0.85;
  animation: orb-float-1 22s ease-in-out infinite;
}
.hero-bg .orb-2 {
  width: 480px;
  height: 480px;
  bottom: -180px;
  left: -120px;
  background: radial-gradient(circle, var(--cream-200) 0%, var(--cream-100) 60%, transparent 80%);
  opacity: 0.7;
  animation: orb-float-2 26s ease-in-out infinite;
}
.hero-bg .orb-3 {
  width: 340px;
  height: 340px;
  top: 35%;
  left: 38%;
  background: radial-gradient(circle, var(--r-100) 0%, transparent 70%);
  opacity: 0.55;
  animation: orb-float-3 30s ease-in-out infinite;
}
.hero-bg .orb-4 {
  width: 220px;
  height: 220px;
  top: 60%;
  right: 30%;
  background: radial-gradient(circle, #ffe8d4 0%, transparent 70%);
  opacity: 0.6;
  animation: orb-float-4 24s ease-in-out infinite;
}

.hero-bg .grid-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    color-mix(in oklab, var(--r-600) 10%, transparent) 1.3px,
    transparent 1.3px
  );
  background-size: 28px 28px;
  -webkit-mask: radial-gradient(ellipse 70% 60% at 50% 40%, black 0%, transparent 75%);
  mask: radial-gradient(ellipse 70% 60% at 50% 40%, black 0%, transparent 75%);
}

.hero-bg .shape {
  position: absolute;
  border-radius: 22px;
  opacity: 0.6;
  will-change: transform;
}
.hero-bg .shape-1 {
  width: 70px;
  height: 70px;
  top: 22%;
  left: 8%;
  background: var(--g-red);
  transform: rotate(20deg);
  animation: shape-spin 18s linear infinite;
  opacity: 0.18;
}
.hero-bg .shape-2 {
  width: 44px;
  height: 44px;
  top: 70%;
  left: 44%;
  background: var(--d-800);
  border-radius: 50%;
  animation: shape-bob 8s ease-in-out infinite;
  opacity: 0.18;
}
.hero-bg .shape-3 {
  width: 90px;
  height: 90px;
  top: 14%;
  right: 38%;
  border: 2px solid var(--r-600);
  background: transparent;
  border-radius: 50%;
  animation: shape-bob 11s ease-in-out infinite reverse;
  opacity: 0.25;
}

@keyframes orb-float-1 {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  33% {
    transform: translate3d(-60px, 60px, 0) scale(1.08);
  }
  66% {
    transform: translate3d(50px, -40px, 0) scale(0.96);
  }
}
@keyframes orb-float-2 {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(70px, -60px, 0) scale(1.1);
  }
}
@keyframes orb-float-3 {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-40px, 40px, 0) scale(1.15);
  }
}
@keyframes orb-float-4 {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(40px, -50px, 0);
  }
}
@keyframes shape-spin {
  to {
    transform: rotate(380deg);
  }
}
@keyframes shape-bob {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-22px) rotate(8deg);
  }
}

.hero .inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 92px;
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin: 24px 0 28px;
  font-weight: 800;
}
.hero h1 .accent {
  background: var(--g-red);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
  position: relative;
  display: inline-block;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 14px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'><path d='M2 10 C 80 2, 160 14, 298 6' stroke='%23ad2324' stroke-width='3.5' stroke-linecap='round' fill='none' opacity='0.55'/></svg>")
    center/100% 100% no-repeat;
}
.hero .lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--d-600);
  max-width: 540px;
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.hero-actions .play {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--d-900);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.hero-actions .play-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  box-shadow: var(--sh-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--r-600);
  transition: transform 0.2s;
}
.hero-actions .play:hover .play-circle {
  transform: scale(1.08);
}

.hero-trust {
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.avatars {
  display: flex;
}
.avatars > div {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid white;
  margin-left: -12px;
  box-shadow: 0 2px 6px color-mix(in oklab, var(--d-900) 10%, transparent);
}
.avatars > div:first-child {
  margin-left: 0;
}
.trust-txt {
  font-size: 13px;
  color: var(--d-500);
  line-height: 1.4;
}
.trust-txt b {
  color: var(--d-900);
}

/* Hero illustration */
.hero-art {
  position: relative;
  aspect-ratio: 1/1.05;
}
.hero-art .main {
  position: absolute;
  inset: 0;
  border-radius: var(--rd-xxl);
  overflow: hidden;
  background: radial-gradient(circle at 28% 25%, rgba(255, 232, 212, 0.9) 0%, transparent 55%), var(--g-red);
}
.hero-art .photo-frame {
  position: absolute;
  inset: 28px;
  border-radius: var(--rd-xl);
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      color-mix(in oklab, var(--d-900) 0%, transparent) 50%,
      color-mix(in oklab, var(--d-900) 50%, transparent) 100%
    ),
    linear-gradient(160deg, #ffd9a3 0%, var(--r-400) 50%, var(--r-700) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 28px;
  color: white;
}
.hero-art .photo-frame .ph-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.hero-art .photo-frame .ph-meta b {
  display: block;
  color: white;
  font-style: normal;
  font-family: "Onest", sans-serif;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.badge-card {
  position: absolute;
  background: white;
  border-radius: var(--rd-md);
  padding: 16px 18px;
  box-shadow: var(--sh-lg);
  display: flex;
  gap: 12px;
  align-items: center;
}
.badge-1 {
  top: 56px;
  right: -24px;
  min-width: 230px;
}
.badge-1 .ic {
  width: 44px;
  height: 44px;
  border-radius: var(--rd-sm);
  background: var(--cream-100);
  color: var(--d-900);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.badge-1 .v {
  font-size: 20px;
  font-weight: 800;
  color: var(--d-900);
  line-height: 1;
}
.badge-1 .l {
  font-size: 12px;
  color: var(--d-500);
  margin-top: 4px;
  line-height: 1.3;
}

.badge-2 {
  bottom: 90px;
  left: -32px;
  width: 240px;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.badge-2 .row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--d-500);
}
.badge-2 .title {
  font-size: 14px;
  font-weight: 700;
  color: var(--d-900);
}
.badge-2 .bar {
  height: 8px;
  border-radius: var(--rd-pill);
  background: var(--d-100);
  overflow: hidden;
}
.badge-2 .bar > div {
  width: 72%;
  height: 100%;
  background: var(--g-red);
  border-radius: var(--rd-pill);
}
.badge-2 .meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--d-500);
}
.badge-2 .meta b {
  color: var(--d-900);
}

.sticker {
  position: absolute;
  bottom: -20px;
  right: 40px;
  width: 124px;
  height: 124px;
  background: var(--d-800);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 13px;
  line-height: 1.15;
  padding: 12px;
  text-align: center;
  transform: rotate(-10deg);
  box-shadow: var(--sh-lg);
}
.sticker b {
  font-size: 28px;
  display: block;
  color: white;
  font-family: "Onest", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.sticker .small {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}

/* ─────────── Stats ─────────── */
.stats {
  padding: 0 0 120px;
}
.stats .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.stat {
  background: var(--cream-50);
  border-radius: var(--rd-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(244, 236, 217, 0.6);
}
.stat.s2 {
  background: var(--g-red);
  color: white;
}
.stat.s2::before {
  background: rgba(255, 255, 255, 0.08);
}
.stat .num {
  font-size: 64px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--d-900);
  position: relative;
}
.stat.s2 .num {
  color: white;
}
.stat .num small {
  font-size: 32px;
  vertical-align: top;
  margin-left: 6px;
  color: var(--r-600);
  font-weight: 700;
}
.stat.s2 .num small {
  color: rgba(255, 255, 255, 0.7);
}
.stat .lbl {
  font-size: 14px;
  font-weight: 700;
  color: var(--d-700);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
}
.stat.s2 .lbl {
  color: rgba(255, 255, 255, 0.9);
}
.stat .desc {
  font-size: 15px;
  color: var(--d-500);
  line-height: 1.5;
  position: relative;
}
.stat.s2 .desc {
  color: rgba(255, 255, 255, 0.8);
}

/* ─────────── About ─────────── */
.about {
  padding: 0 0 140px;
}
.about .inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.about .img-block {
  aspect-ratio: 1/1.1;
  border-radius: var(--rd-xxl);
  background: linear-gradient(160deg, var(--cream-100) 0%, var(--r-200) 100%);
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.about .img-block .inner-frame {
  position: absolute;
  inset: 32px;
  border-radius: var(--rd-xl);
  overflow: hidden;
  background: linear-gradient(160deg, var(--r-500) 0%, var(--r-700) 100%);
  color: white;
}
.about .img-block .inner-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about .img-block .inner-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 45%,
    rgba(0, 0, 0, 0.75) 100%
  );
  pointer-events: none;
}
.about .img-block .caption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  z-index: 1;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
}
.about .img-block .caption b {
  font-style: normal;
  color: white;
  font-family: "Onest", sans-serif;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}
.about .img-block .since {
  position: absolute;
  top: 32px;
  right: 32px;
  background: white;
  border-radius: var(--rd-md);
  padding: 14px 20px;
  font-size: 13px;
  color: var(--d-500);
  box-shadow: var(--sh-md);
}
.about .img-block .since b {
  display: block;
  font-style: normal;
  font-family: "Onest", sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: var(--d-900);
  letter-spacing: -0.03em;
}

.about h2 {
  font-size: 56px;
  line-height: 1;
  margin: 18px 0 28px;
}
.about h2 .accent {
  color: var(--r-600);
  font-weight: 600;
}
.about p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--d-600);
  margin-bottom: 18px;
}
.about p:first-of-type::first-letter {
  font-size: 64px;
  line-height: 0.85;
  float: left;
  padding: 6px 14px 0 0;
  font-weight: 600;
  color: var(--r-600);
}
.about .more-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 24px;
  border-radius: var(--rd-pill);
  background: var(--d-900);
  color: white;
  font-weight: 700;
  font-size: 14px;
}

/* ─────────── Section heads ─────────── */
.shead {
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.shead .eyebrow-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--r-600);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}
.shead h2 {
  font-size: 56px;
  max-width: 720px;
  line-height: 1.02;
}
.shead h2 em {
  font-weight: 600;
  color: var(--r-600);
}
.shead .aside {
  font-size: 17px;
  color: var(--d-600);
  max-width: 540px;
  line-height: 1.6;
  padding-left: 22px;
  border-left: 2px solid var(--r-600);
  align-self: flex-start;
  margin-bottom: 0;
}

/* (all section descriptions stack below their heading) */

/* ─────────── Features ─────────── */
.features {
  padding: 0 0 140px;
}
.features .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature {
  background: var(--paper);
  border: 1px solid var(--d-100);
  border-radius: var(--rd-lg);
  padding: 36px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}
.feature .ic-wrap {
  flex: 0 0 80px;
  height: 80px;
  border-radius: var(--rd-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.feature.f1 .ic-wrap {
  background: var(--g-red-soft);
  color: var(--r-600);
}
.feature.f2 .ic-wrap {
  background: linear-gradient(135deg, var(--cream-50), var(--cream-100));
  color: #8b6a1a;
}
.feature.f3 .ic-wrap {
  background: linear-gradient(135deg, var(--d-100), var(--d-200));
  color: var(--d-700);
}
.feature.f4 .ic-wrap {
  background: linear-gradient(135deg, var(--r-100), var(--r-200));
  color: var(--r-600);
}
.feature .ic-wrap svg {
  width: 38px;
  height: 38px;
}
.feature h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--d-900);
  margin-bottom: 12px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.feature p {
  font-size: 15px;
  color: var(--d-500);
  line-height: 1.6;
}

/* ─────────── Courses ─────────── */
.courses {
  padding: 0 0 140px;
}
.courses .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.course {
  border-radius: var(--rd-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--cream-50);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  min-height: 520px;
}
.course:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}
.course::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
  pointer-events: none;
}
.course.c1 {
  background: linear-gradient(165deg, var(--r-100) 0%, var(--r-50) 55%, #ffffff 100%);
}
.course.c2 {
  background: linear-gradient(165deg, var(--cream-50) 0%, #ffffff 100%);
  border: 1px solid var(--d-100);
}
.course.c3 {
  background: linear-gradient(165deg, var(--cream-100) 0%, var(--cream-50) 100%);
}
.course.c4 {
  background: var(--g-dark);
  color: white;
}
.course.c4::before {
  background: radial-gradient(circle, color-mix(in oklab, var(--r-600) 40%, transparent) 0%, transparent 70%);
}

.course .badge-num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-weight: 600;
  font-size: 28px;
  color: var(--r-600);
  opacity: 0.55;
  letter-spacing: -0.02em;
  line-height: 1;
}
.course.c4 .badge-num {
  color: var(--r-400);
  opacity: 0.85;
}

.course .tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.course .tag {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: var(--rd-pill);
  background: color-mix(in oklab, var(--d-900) 6%, transparent);
  color: var(--d-700);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.course .tag.hot {
  background: var(--g-red);
  color: white;
}
.course .tag.gold {
  background: linear-gradient(135deg, var(--cream-200), var(--cream-100));
  color: var(--d-800);
}
.course.c4 .tag {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}
.course.c4 .tag.gold {
  background: var(--g-red);
  color: white;
}

.course h3 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--d-900);
  letter-spacing: -0.025em;
  margin-top: 4px;
}
.course.c4 h3 {
  color: white;
}

.course p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--d-600);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course.c4 p {
  color: rgba(255, 255, 255, 0.75);
}

.course .meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--d-500);
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid color-mix(in oklab, var(--d-900) 8%, transparent);
}
.course.c4 .meta {
  color: rgba(255, 255, 255, 0.6);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
.course .meta .sep {
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}

/* Compact spec list — icon rows + schedule pills */
.course .specs {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px 0;
  margin-bottom: 2px;
  border-top: 1px solid color-mix(in oklab, var(--d-900) 8%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--d-900) 8%, transparent);
}
.course .specs .spec {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--d-700);
  font-weight: 500;
}
.course .specs .spec svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--r-600);
  stroke-width: 1.8;
}
.course .specs .spec b {
  font-weight: 700;
  color: var(--d-900);
}
.course .groups {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 1px;
}
.course .groups .g {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--rd-pill);
  background: color-mix(in oklab, var(--d-900) 6%, transparent);
  color: var(--d-600);
  white-space: nowrap;
}
.course .groups .g b {
  color: var(--d-900);
  font-weight: 700;
}
/* dark card (c4) variants */
.course.c4 .specs {
  border-color: rgba(255, 255, 255, 0.14);
}
.course.c4 .specs .spec {
  color: rgba(255, 255, 255, 0.82);
}
.course.c4 .specs .spec b {
  color: #fff;
}
.course.c4 .specs .spec svg {
  color: var(--r-400);
}
.course.c4 .groups .g {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
}
.course.c4 .groups .g b {
  color: #fff;
}

.course .foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
}
.course .price {
  font-size: 22px;
  font-weight: 800;
  color: var(--d-900);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.course.c4 .price {
  color: white;
}
.course .price small {
  display: inline;
  font-size: 14px;
  font-weight: 600;
  color: var(--d-500);
  margin-left: 4px;
  letter-spacing: 0;
}
.course.c4 .price small {
  color: rgba(255, 255, 255, 0.6);
}
/* Price: optional label line ("Стоимость курса"), amount never breaks */
.price-label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--d-500);
}
.course.c4 .price-label {
  color: rgba(255, 255, 255, 0.6);
}
.price-amount {
  display: inline-block;
  white-space: nowrap;
}
.price-amount b {
  font-weight: inherit;
}
.course .foot .btn {
  width: 100%;
  justify-content: center;
  padding: 13px;
  font-size: 13px;
}

/* ─────────── Process ─────────── */
.process {
  margin-top: 64px;
  margin-bottom: 140px;
  background: var(--g-dark);
  border-radius: var(--rd-xxl);
  padding: 84px 64px;
  color: white;
  position: relative;
  overflow: hidden;
}
.process::before {
  content: "";
  position: absolute;
  right: -100px;
  top: -100px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, color-mix(in oklab, var(--r-600) 50%, transparent) 0%, transparent 60%);
  border-radius: 50%;
}
.process::after {
  content: "";
  position: absolute;
  left: -150px;
  bottom: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 167, 102, 0.2) 0%, transparent 60%);
  border-radius: 50%;
}
.process .pwrap {
  position: relative;
  z-index: 1;
}
.process .eyebrow-d {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--rd-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--r-400);
  margin-bottom: 20px;
}
.process .eyebrow-d .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--r-500);
}
.process h2 {
  font-size: 56px;
  max-width: 700px;
  line-height: 1.02;
  margin-bottom: 16px;
  color: white;
}
.process h2 em {
  font-weight: 600;
  color: var(--r-400);
}
.process .sub {
  color: rgba(255, 255, 255, 0.7);
  max-width: 540px;
  font-size: 17px;
  margin-bottom: 56px;
  line-height: 1.6;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  padding: 28px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--rd-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  backdrop-filter: blur(10px);
}
.step .num {
  font-size: 48px;
  font-weight: 600;
  background: var(--g-red);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 18px;
}
.step h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  color: white;
}
.step p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
}

/* ─────────── Testimonials ─────────── */
.tests {
  padding: 0 0 140px;
}
.tests .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.test {
  border-radius: var(--rd-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--d-100);
}
.test.featured {
  background: linear-gradient(160deg, var(--r-100) 0%, var(--r-50) 100%);
  border-color: var(--r-100);
}
.test .stars {
  color: var(--r-600);
  font-size: 16px;
  margin-bottom: 16px;
  letter-spacing: 3px;
}
.test .quote {
  font-size: 15px;
  line-height: 1.6;
  color: var(--d-700);
  flex: 1;
  position: relative;
}
.test .author {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid color-mix(in oklab, var(--d-900) 8%, transparent);
}
.test .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.test .author .name {
  font-size: 15px;
  font-weight: 700;
  color: var(--d-900);
}
.test .author .role {
  font-size: 12px;
  color: var(--d-500);
  margin-top: 2px;
}

/* ─────────── Partners (cards grid) ─────────── */
.partners-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 140px;
}
.partners-two.is-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
}
.partner-card {
  position: relative;
  overflow: hidden;
  background: var(--cream-50);
  border: 1px solid var(--cream-200);
  border-radius: var(--rd-xxl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
/* gold glow in the top-right corner on hover */
.partner-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(70% 55% at 100% 0%, rgba(202, 165, 74, 0.13) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.partner-card:hover::before {
  opacity: 1;
}
/* red→gold hairline drawn across the top edge on hover */
.partner-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 40px;
  right: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--r-600), rgba(202, 165, 74, 0.65) 70%, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.partner-card:hover::after {
  transform: scaleX(1);
}
.partner-card > * {
  position: relative;
  z-index: 1;
}
.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
  border-color: rgba(202, 165, 74, 0.4);
}
.partner-card .pc-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.partner-card .pc-mark {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: var(--rd-lg);
  background: var(--g-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.1;
  box-shadow: 0 10px 24px rgba(173, 35, 36, 0.28);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.35s ease;
}
.partner-card:hover .pc-mark {
  transform: translateY(-3px) rotate(-2deg);
  box-shadow: 0 16px 32px rgba(173, 35, 36, 0.34);
}
/* uploaded logo: white tile instead of the red mark */
.partner-card .pc-mark--img {
  background: #fff;
  border: 1px solid var(--cream-200);
  box-shadow: var(--sh-sm);
  padding: 10px;
}
.partner-card:hover .pc-mark--img {
  box-shadow: var(--sh-md);
}
.partner-card .pc-mark--img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.partner-card .pc-kind {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--r-600);
}
.partner-card .pc-kind::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(202, 165, 74, 0.5), transparent);
}
.partner-card h3 {
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 6px 0 0;
  color: var(--d-900);
}
.partner-card .pc-since {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--d-500);
}
.partner-card .pc-since::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(202, 165, 74, 0.9);
}
.partner-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--d-600);
  margin: 0 0 14px;
}
.partner-card .pc-lbl {
  font-size: 13px;
  font-weight: 700;
  color: var(--d-800);
  margin: 4px 0 2px;
}
.partner-card ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 24px;
}
.partner-card ul li {
  padding: 7px 0;
  font-size: 14.5px;
  color: var(--d-700);
  display: flex;
  gap: 11px;
  align-items: flex-start;
}
.partner-card ul li::before {
  content: "";
  flex: 0 0 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--r-600);
  box-shadow: 0 0 0 3px rgba(173, 35, 36, 0.12);
  transition: box-shadow 0.3s ease;
}
.partner-card:hover ul li::before {
  box-shadow: 0 0 0 4px rgba(173, 35, 36, 0.16);
}
.partner-card .pc-foot {
  margin-top: auto;
  padding-top: 6px;
}
.partner-card .pc-foot .btn {
  transition: transform 0.25s ease;
}
.partner-card:hover .pc-foot .btn {
  transform: translateX(3px);
}
@media (max-width: 991px) {
  .partners-two {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .partner-card {
    padding: 30px 24px;
  }
  .partner-card::after {
    left: 24px;
    right: 24px;
  }
}

/* ─────────── Clients (logos) ─────────── */
.clients {
  padding: 0 0 140px;
  text-align: center;
}
.clients h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--d-500);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 36px;
}
.client-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 28px 36px;
  align-items: center;
  justify-items: center;
}
.client {
  font-weight: 600;
  font-size: 19px;
  color: var(--d-400);
  letter-spacing: -0.01em;
  transition: color 0.2s;
  text-align: center;
}
.client img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.2s;
}

.client.bold {
  font-family: "Onest", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 14px;
}
.client:hover > img {
  filter: grayscale(0);
}

/* ─────────── CTA ─────────── */
.cta-block {
  padding: 64px 0 140px;
}
.cta-inner {
  background: var(--g-red);
  border-radius: var(--rd-xxl);
  padding: 72px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-red);
}
.cta-inner::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  border-radius: 50%;
}
.cta-inner::after {
  content: "";
  position: absolute;
  bottom: -120px;
  left: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, color-mix(in oklab, var(--d-900) 30%, transparent) 0%, transparent 60%);
  border-radius: 50%;
}
.cta-inner .text {
  position: relative;
  z-index: 1;
}
.cta-inner h2 {
  font-size: 52px;
  line-height: 1;
  color: white;
  margin-bottom: 22px;
  letter-spacing: -0.03em;
}
.cta-inner h2 em {
  font-weight: 600;
  color: white;
}
.cta-inner p {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  max-width: 480px;
}
.cta-inner .ph {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.cta-inner .ph-num {
  font-size: 22px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.01em;
}
.cta-inner .ph-num small {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  margin-top: 2px;
}

.cta-form {
  background: white;
  border-radius: var(--rd-lg);
  padding: 36px;
  position: relative;
  z-index: 1;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}
.cta-form .form-head {
  margin-bottom: 24px;
}
.cta-form .form-head h3 {
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 6px;
}
.cta-form .form-head p {
  font-size: 13px;
  color: var(--d-500);
  line-height: 1.5;
}
.cta-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--d-700);
  margin-bottom: 7px;
}
.cta-form .field {
  background: var(--d-50);
  border: 1.5px solid var(--d-100);
  border-radius: var(--rd-sm);
  padding: 15px 18px;
  width: 100%;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: bold;;
  transition: border-color 0.15s;
}
.cta-form .field:hover {
  border-color: var(--d-200);
}
select.field.course-select { width: 100%; font-family: inherit; outline: none; appearance: none; -webkit-appearance: none; cursor: pointer; color: var(--d-900); padding-right: 44px; margin-bottom: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; }
select.field.course-select:invalid { color: var(--d-400); }
.cta-form .btn {
  width: 100%;
  justify-content: center;
  padding: 17px;
  font-size: 15px;
  margin-top: 4px;
}
.cta-form .small {
  font-size: 11px;
  color: var(--d-400);
  margin-top: 14px;
  text-align: center;
  line-height: 1.5;
}

/* ─────────── Footer ─────────── */
.footer {
  background: var(--g-dark);
  color: rgba(255, 255, 255, 0.65);
  padding: 72px 0 28px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--r-500) 50%, transparent 100%);
}
.footer::after {
  content: "";
  position: absolute;
  right: -200px;
  bottom: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, color-mix(in oklab, var(--r-600) 20%, transparent) 0%, transparent 60%);
  border-radius: 50%;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}
.footer h4 {
  color: white;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.footer a {
  display: block;
  padding: 7px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.15s;
}
.footer a:hover {
  color: var(--r-400);
}
.footer .brand-block p {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 18px;
  max-width: 320px;
}
.footer .brand-block .logo-text .name,
.footer .brand-block .logo-text .sub {
  color: white;
}
.footer .socials {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.footer .socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.footer .socials a:hover {
  background: var(--g-red);
}
.footer-bot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  position: relative;
  z-index: 1;
}

/* ─────────── DARK HERO + NAV OVERRIDE ─────────── */
.topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  background: var(--d-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}
.nav .logo-text .name {
  color: white;
}
.nav .logo-text .sub {
  color: rgba(255, 255, 255, 0.45);
}
.menu {
  color: rgba(255, 255, 255, 0.85);
}
.menu a {
  color: rgba(255, 255, 255, 0.85);
}
.menu a:hover {
  color: var(--r-400);
}
.nav-cta .phone {
  color: white;
}
.nav-cta .phone small {
  color: rgba(255, 255, 255, 0.55);
}

.hero {
  background:
    radial-gradient(ellipse 80% 60% at 80% 0%, color-mix(in oklab, var(--r-600) 35%, transparent) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(232, 167, 102, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, var(--d-900) 0%, var(--d-800) 60%, var(--d-800) 100%);
  color: white;
  border-bottom-left-radius: var(--rd-xxl);
  border-bottom-right-radius: var(--rd-xxl);
}
.hero h1 {
  color: white;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--r-400) 0%, var(--r-400) 50%, var(--r-600) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero h1 .accent::after {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'><path d='M2 10 C 80 2, 160 14, 298 6' stroke='%23dd6a6e' stroke-width='3.5' stroke-linecap='round' fill='none' opacity='0.8'/></svg>")
    center/100% 100% no-repeat;
}
.hero .lead {
  color: rgba(255, 255, 255, 0.7);
}
.hero .eyebrow {
  background: color-mix(in oklab, var(--r-600) 18%, transparent);
  color: var(--r-200);
  border: 1px solid rgba(221, 106, 110, 0.3);
  backdrop-filter: blur(8px);
}
.hero .eyebrow .dot {
  background: var(--r-500);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--r-500) 25%, transparent);
}

.hero-actions .play {
  color: white;
}
.hero-actions .play-circle {
  background: rgba(255, 255, 255, 0.1);
  color: var(--r-400);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.hero-trust .trust-txt {
  color: rgba(255, 255, 255, 0.6);
}
.hero-trust .trust-txt b {
  color: white;
}
.avatars > div {
  border-color: #25212a;
}

/* Orbs adjusted for dark */
.hero-bg .orb-1 {
  background: radial-gradient(
    circle,
    rgba(220, 80, 85, 0.55) 0%,
    color-mix(in oklab, var(--r-600) 25%, transparent) 50%,
    transparent 80%
  );
  opacity: 1;
  filter: blur(60px);
}
.hero-bg .orb-2 {
  background: radial-gradient(
    circle,
    rgba(232, 167, 102, 0.4) 0%,
    color-mix(in oklab, var(--r-500) 18%, transparent) 50%,
    transparent 80%
  );
  opacity: 0.9;
}
.hero-bg .orb-3 {
  background: radial-gradient(circle, rgba(255, 180, 140, 0.3) 0%, transparent 70%);
  opacity: 0.7;
}
.hero-bg .orb-4 {
  background: radial-gradient(circle, rgba(245, 235, 200, 0.18) 0%, transparent 70%);
  opacity: 0.5;
}
.hero-bg .grid-dots {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1.3px, transparent 1.3px);
}
.hero-bg .shape-1 {
  opacity: 0.35;
  box-shadow: 0 0 60px rgba(221, 106, 110, 0.4);
}
.hero-bg .shape-2 {
  background: rgba(255, 255, 255, 0.12);
  opacity: 0.5;
}
.hero-bg .shape-3 {
  border-color: var(--r-500);
  opacity: 0.55;
  box-shadow: 0 0 40px rgba(221, 106, 110, 0.3);
}

/* Hero art adjustments for dark */
.hero-art .main {
  background: radial-gradient(circle at 28% 25%, rgba(255, 232, 212, 0.9) 0%, transparent 55%), var(--g-red);
  box-shadow:
    0 32px 80px color-mix(in oklab, var(--r-600) 40%, transparent),
    0 12px 32px rgba(0, 0, 0, 0.4);
}

.sticker {
  background: var(--g-red);
  color: white;
  box-shadow:
    0 18px 40px color-mix(in oklab, var(--r-600) 50%, transparent),
    0 6px 16px rgba(0, 0, 0, 0.4);
  border: 3px solid var(--d-800);
}
.sticker b {
  color: white;
}
.sticker .small {
  color: rgba(255, 255, 255, 0.85);
}

/* Badge cards keep white but get warmer shadow */
.badge-card {
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 6px 16px rgba(0, 0, 0, 0.2);
}

/* ─────────── Font swap overrides — Instrument Serif italic ─────────── */
/* Instrument Serif ships only at weight 400 — pull bold accents back to 400
   and bump scale slightly so the italic still feels weighty next to Plus Jakarta. */
.hero h1 .accent,
.about h2 .accent,
.shead h2 em,
.process h2 em,
.cta-inner h2 em {
  font-weight: 400 !important;
  letter-spacing: -0.01em;
}
.hero h1 .accent {
  font-size: 1.06em;
}
.shead h2 em,
.process h2 em,
.cta-inner h2 em,
.about h2 .accent {
  font-size: 1.04em;
}

/* Course badge-num — italic 04 etc */
.course .badge-num {
  font-weight: 400;
  font-size: 32px;
}

/* Hero photo-frame caption italic meta */
.hero-art .photo-frame .ph-meta {
}

/* Stat number — keep Plus Jakarta because Instrument Serif at 400 looks weak here
   (large numbers want weight). Override stat .num back to body font for consistency. */
.stat .num {
  font-family: "Onest", sans-serif;
}
.badge-2 .title,
.badge-1 .v {
  font-family: "Onest", sans-serif;
}

/* About since-block big year — keep sans for weight */
.about .img-block .since b {
  font-family: "Onest", sans-serif;
}

/* Step number — keep Instrument Serif but ensure visible weight via gradient */
.step .num {
  font-weight: 400;
  font-size: 56px;
}

/* ─────────── Accent typography (no italics, no serif) ─────────── */
.hero h1 .accent,
.about h2 .accent,
.shead h2 em,
.process h2 em,
.cta-inner h2 em {
  font-style: normal !important;
  font-weight: 800 !important;
  font-family: inherit !important;
  letter-spacing: -0.025em;
  font-size: 1em !important;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--r-400) 0%, var(--r-400) 50%, var(--r-600) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about h2 .accent {
  color: var(--r-600);
  background: none;
  -webkit-text-fill-color: var(--r-600);
}
.shead h2 em,
.process h2 em {
  color: var(--r-600);
}
.process h2 em {
  color: var(--r-400);
}
.cta-inner h2 em {
  color: white;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

/* Restore underline under hero accent — solid red brushstroke */
.hero h1 .accent::after {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'><path d='M2 10 C 80 2, 160 14, 298 6' stroke='%23dd6a6e' stroke-width='4' stroke-linecap='round' fill='none' opacity='0.85'/></svg>")
    center/100% 100% no-repeat;
}

/* Course badge-num — bold sans, no serif/italic */
.course .badge-num {
  font-family: inherit;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.03em;
}

/* Step numbers stay bold sans */
.step .num {
  font-family: inherit;
  font-weight: 800;
  font-size: 52px;
  letter-spacing: -0.04em;
}

/* Logo mark — sans bold instead of serif */
.logo-mark {
  font-family: inherit;
  font-weight: 800;
  font-size: 24px;
}

/* About first-letter drop cap — sans, weighted */
.about p:first-of-type::first-letter {
  font-family: inherit;
  font-weight: 800;
}

/* Sticker text, since-block, captions — keep sans-serif normal */
.about .img-block .caption,
.about .img-block .since,
.hero-art .photo-frame .ph-meta,
.client {
  font-family: inherit;
  font-weight: 500;
}
.client.bold {
  font-weight: 800;
}

/* ─────────── Responsive container (bootstrap-ish) ─────────── */
.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
@media (min-width: 576px) {
  .wrap {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  .wrap {
    max-width: 720px;
    padding: 0 28px;
  }
}
@media (min-width: 992px) {
  .wrap {
    max-width: 960px;
    padding: 0 32px;
  }
}
@media (min-width: 1200px) {
  .wrap {
    max-width: 1180px;
    padding: 0 40px;
  }
}
@media (min-width: 1400px) {
  .wrap {
    max-width: 1320px;
    padding: 0 56px;
  }
}

/* Responsive hero / sections */
@media (max-width: 991px) {
  .hero {
    padding: 32px 0 80px;
  }
  .hero .inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero h1 {
    font-size: 56px;
  }
  .hero-art {
    max-width: 480px;
    margin: 0 auto;
  }
  .stats .grid {
    grid-template-columns: 1fr;
  }
  .about .inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .features .grid {
    grid-template-columns: 1fr;
  }
  .courses .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .tests .grid {
    grid-template-columns: 1fr;
  }
  .client-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .cta-inner {
    grid-template-columns: 1fr;
    padding: 48px;
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
  .shead {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .shead h2 {
    font-size: 40px;
  }
  .shead .aside {
    max-width: none;
    align-self: stretch;
    margin-bottom: 0;
  }
  .about h2,
  .process h2,
  .cta-inner h2 {
    font-size: 36px;
  }
  .stat .num {
    font-size: 48px;
  }
  .process {
    padding: 56px 32px;
  }
  .menu {
    display: none;
  }
  .nav-cta .phone {
    display: none;
  }
}
@media (max-width: 575px) {
  .hero h1 {
    font-size: 42px;
  }
  .topbar .l span:first-child,
  .topbar .acca {
    display: none;
  }
  .courses .grid {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .client-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .play {
    justify-content: center;
  }
}

/* ─────────── Redesigned hero-art (collage) ─────────── */
.hero-art {
  aspect-ratio: auto;
  min-height: 580px;
  position: relative;
}

.hero-art .h-card {
  position: absolute;
  border-radius: var(--rd-lg);
  background: white;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.4),
    0 8px 20px rgba(0, 0, 0, 0.2);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.h-card-1 {
  top: 0;
  right: 0;
  width: 64%;
  background: linear-gradient(160deg, var(--d-800) 0%, var(--d-900) 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px;
}
.h-card-1 .hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.h-card-1 .tag {
  padding: 4px 10px;
  border-radius: var(--rd-pill);
  background: color-mix(in oklab, var(--r-600) 20%, transparent);
  color: var(--r-200);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.h-card-1 .dur {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}
.h-card-1 h4 {
  font-size: 22px;
  line-height: 1.1;
  margin: 6px 0 14px;
  color: white;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.h-card-1 .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.h-card-1 .price {
  font-size: 17px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.01em;
}
.h-card-1 .price small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}
.h-card-1 .go {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--g-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 8px 20px color-mix(in oklab, var(--r-600) 40%, transparent);
}

.h-card-2 {
  top: 56%;
  left: 0;
  width: 56%;
  background: var(--g-red);
  color: white;
  padding: 26px;
  border: none;
  box-shadow:
    0 24px 60px color-mix(in oklab, var(--r-600) 50%, transparent),
    0 8px 20px rgba(0, 0, 0, 0.3);
}
.h-card-2 .lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
}
.h-card-2 .big {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: white;
}
.h-card-2 .big small {
  font-size: 28px;
  vertical-align: top;
  margin-left: 4px;
  color: rgba(255, 255, 255, 0.7);
}
.h-card-2 .sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

.h-card-3 {
  top: 22%;
  left: -6%;
  width: 220px;
  background: white;
  color: var(--d-900);
  padding: 18px 20px;
  z-index: 2;
}
.h-card-3 .row1 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.h-card-3 .av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--r-400), var(--r-700));
  flex-shrink: 0;
}
.h-card-3 .av2 {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8a766, var(--r-500));
  margin-left: -14px;
  border: 2px solid white;
}
.h-card-3 .av3 {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--d-700), var(--d-900));
  margin-left: -14px;
  border: 2px solid white;
}
.h-card-3 .stars {
  color: var(--r-600);
  font-size: 12px;
  letter-spacing: 2px;
  margin-top: 8px;
}
.h-card-3 .quote {
  font-size: 12px;
  color: var(--d-500);
  line-height: 1.4;
}
.h-card-3 .quote b {
  color: var(--d-900);
}

.h-card-4 {
  bottom: 0;
  right: 4%;
  width: 240px;
  background: white;
  color: var(--d-900);
  padding: 18px 20px;
}
.h-card-4 .row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--d-500);
}
.h-card-4 .ttl {
  font-size: 14px;
  font-weight: 700;
  color: var(--d-900);
}
.h-card-4 .bar {
  height: 8px;
  border-radius: var(--rd-pill);
  background: var(--d-100);
  overflow: hidden;
}
.h-card-4 .bar > div {
  width: 72%;
  height: 100%;
  background: var(--g-red);
  border-radius: var(--rd-pill);
}
.h-card-4 .meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--d-500);
}
.h-card-4 .meta b {
  color: var(--d-900);
}

.hero-art .glow-blob {
  position: absolute;
  top: 30%;
  right: 20%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--r-400) 40%, transparent) 0%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
}

/* Hide old hero-art .main / sticker / badge-card (we replaced with h-card-*) */
.hero-art .main,
.hero-art .badge-card,
.hero-art .sticker {
  display: none;
}

/* Hero-art collage — ensure flex/grid parent has width */
.hero-art {
  width: 100%;
  max-width: 580px;
}
@media (max-width: 991px) {
  .hero-art {
    margin: 0 auto;
  }
}

/* Below the lg breakpoint, hero-art carries no absolute positioning;
   stack the 4 cards vertically so they remain legible. */
@media (max-width: 767px) {
  .hero-art {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .hero-art .h-card {
    position: static;
    width: 100% !important;
  }
  .hero-art .glow-blob {
    display: none;
  }
}

/* ─────────── Hero tightening — fit on one screen ─────────── */
.hero {
  padding: 32px 0 64px;
}
.hero h1 {
  font-size: 60px;
  line-height: 1;
  margin: 18px 0 20px;
  letter-spacing: -0.035em;
}
@media (min-width: 1400px) {
  .hero h1 {
    font-size: 68px;
  }
}
.hero .lead {
  font-size: 17px;
  max-width: 480px;
}
.hero-actions {
  margin-top: 28px;
  gap: 14px;
}
.hero-actions .btn-lg {
  padding: 16px 28px;
  font-size: 15px;
}
.hero-trust {
  margin-top: 36px;
}
.hero .eyebrow {
  padding: 7px 14px;
  font-size: 12px;
}

/* Make hero one-column on screens narrower than ~1280 too — gives content air */
@media (max-width: 1199px) {
  .hero h1 {
    font-size: 48px;
  }
}

/* Tighten the collage */
.hero-art {
  min-height: 520px;
  max-width: 560px;
}
.h-card {
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.18);
}

/* Card 1 — distinct from hero bg (was same gradient → merged). Use a lighter
   warm graphite tint + thin red top border accent. */
.h-card-1 {
  background: linear-gradient(160deg, #463e4f 0%, #2f2935 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px;
  width: 62%;
}
.h-card-1::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 3px;
  background: var(--g-red);
  border-radius: 0 0 4px 4px;
}
.h-card-1 h4 {
  font-size: 18px;
  margin: 4px 0 12px;
}
.h-card-1 .row {
  padding-top: 12px;
}
.h-card-1 .price {
  font-size: 16px;
}
.h-card-1 .price small {
  font-size: 10.5px;
}
.h-card-1 .go {
  width: 36px;
  height: 36px;
}
.h-card-1 .tag {
  font-size: 10px;
  padding: 3px 9px;
}
.h-card-1 .dur {
  font-size: 11px;
}

/* Card 2 — red big number, tighter */
.h-card-2 {
  top: 60%;
  left: 0;
  width: 52%;
  padding: 22px;
}
.h-card-2 .lbl {
  font-size: 10px;
}
.h-card-2 .big {
  font-size: 44px;
}
.h-card-2 .big small {
  font-size: 22px;
}
.h-card-2 .sub {
  font-size: 12px;
}

/* Card 3 — mini review, smaller */
.h-card-3 {
  top: 26%;
  left: -8%;
  width: 200px;
  padding: 16px 18px;
}
.h-card-3 .av,
.h-card-3 .av2,
.h-card-3 .av3 {
  width: 30px;
  height: 30px;
}
.h-card-3 .quote {
  font-size: 11.5px;
}

/* Card 4 — progress, compact */
.h-card-4 {
  bottom: 0;
  right: 0;
  width: 220px;
  padding: 16px 18px;
}
.h-card-4 .ttl {
  font-size: 13px;
}

/* Glow blob smaller */
.hero-art .glow-blob {
  width: 260px;
  height: 260px;
  top: 35%;
  right: 25%;
}

/* ─────────── New header structure ─────────── */
.brandbar {
  background: var(--d-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.brandbar .inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding-block: 14px;
}
.brandbar .logo {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brandbar .logo img {
  height: 28px;
  width: auto;
  display: block;
}
.brandbar .logo-since {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  white-space: nowrap;
}
.brandbar .logo-since .since-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.45);
}
.brandbar .logo-since b {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}
.brandbar-meta {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  justify-content: center;
}
.brandbar-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.brandbar-meta > span svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--r-500);
}
.brandbar-meta .lang {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--rd-pill);
  padding: 2px;
}
.brandbar-meta .lang a {
  display: block;
  padding: 3px 10px;
  border-radius: var(--rd-pill);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
}
.brandbar-meta .lang .on {
  background: var(--g-red);
  color: white;
}

.brandbar-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}
.brandbar-cta .phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0;
}
.brandbar-cta .phone-link svg {
  color: var(--r-400);
  flex-shrink: 0;
}
.brandbar-cta .phone-link:hover {
  color: var(--r-400);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 13px;
}

/* Nav row: just menu items + ACCA badge */
.nav {
  background: var(--d-900);
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0;
}
.menu {
  display: flex;
  gap: 0;
  flex: 1;
}
.menu a {
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 2px solid transparent;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.menu a:hover {
  color: white;
  border-bottom-color: var(--r-500);
}
.acca-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f4ecd8;
  color: #3a3320;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 7px 16px;
  border-radius: var(--rd-pill);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.acca-badge b {
  color: #8a1c1c;
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* Badge links to accaglobal.com — keep pill look in header and footer */
a.acca-badge,
.footer a.acca-badge {
  display: inline-flex;
  padding: 7px 16px;
  font-size: 12px;
  color: #3a3320;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
a.acca-badge:hover,
.footer a.acca-badge:hover {
  color: #3a3320;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

@media (max-width: 1200px) {
  .acca-badge {
    display: none;
  }
}
/* Tablet & below */
@media (max-width: 991px) {
  .brandbar .inner {
    grid-template-columns: auto auto;
    row-gap: 12px;
  }
  .brandbar-meta {
    display: none;
  }
  .brandbar .logo img {
    height: 24px;
  }
  .nav .inner {
    overflow-x: auto;
  }
  .menu {
    display: flex !important;
  }
  .menu a {
    padding: 12px 14px;
    font-size: 12.5px;
  }
  .acca-badge {
    display: none;
  }
}
@media (max-width: 575px) {
  .brandbar-cta .phone-link span {
    display: none;
  }
  .brandbar-cta {
    gap: 10px;
  }
  .brandbar .logo-since {
    display: none;
  }
}

/* Override the dark-hero override that hid the menu via "display:none" */
@media (max-width: 991px) {
  .menu {
    display: flex !important;
  }
  .nav-cta .phone {
    display: flex;
  }
}

/* ─────────── Hero stats strip ─────────── */
.hero-stats {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 32px;
  width: fit-content;
}
.hs-num {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: white;
}
.hs-num small {
  font-size: 22px;
  vertical-align: top;
  margin-left: 3px;
  color: var(--r-400);
  font-weight: 700;
}
.hs-lbl {
  margin-top: 8px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
}
@media (max-width: 1199px) {
  .hero-stats {
    gap: 36px;
  }
  .hs-num {
    font-size: 36px;
  }
}
@media (max-width: 575px) {
  .hero-stats {
    gap: 18px;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .hs-num {
    font-size: 28px;
  }
  .hs-num small {
    font-size: 16px;
  }
  .hs-lbl {
    font-size: 11px;
  }
}

/* ─────────── Features — color & punch redesign ─────────── */
.features .grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 18px;
}
.feature {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  padding: 32px 28px !important;
  position: relative;
  overflow: hidden;
  border: none !important;
  min-height: 280px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
}

.feature .f-num {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  opacity: 0.12;
  color: currentColor;
}

.feature .ic-wrap {
  width: 56px !important;
  height: 56px !important;
  border-radius: var(--rd-sm) !important;
  margin-bottom: 24px;
  flex: none !important;
  background: rgba(255, 255, 255, 0.7) !important;
}
.feature .ic-wrap svg {
  width: 28px;
  height: 28px;
}

.feature h3 {
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  margin-bottom: 12px !important;
  line-height: 1.15 !important;
  text-transform: none !important;
  color: inherit !important;
}
.feature h3 .hl {
  display: inline-block;
  position: relative;
  z-index: 1;
}
.feature h3 .hl::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 2px;
  height: 10px;
  background: currentColor;
  opacity: 0.18;
  border-radius: 4px;
  z-index: -1;
}

.feature p {
  font-size: 14.5px !important;
  line-height: 1.55 !important;
  opacity: 0.78;
  margin-top: auto;
  color: inherit !important;
}

/* Color variants */
.feature.f1 {
  background: linear-gradient(160deg, var(--r-600) 0%, var(--r-500) 60%, var(--r-400) 110%) !important;
  color: white;
}
.feature.f1 .ic-wrap {
  background: rgba(255, 255, 255, 0.18) !important;
  color: white;
}
.feature.f1 .ic-wrap svg {
  stroke: white;
}

.feature.f2 {
  background: linear-gradient(165deg, var(--cream-100) 0%, var(--cream-200) 100%) !important;
  color: #5a3e10;
}
.feature.f2 .ic-wrap {
  background: rgba(255, 255, 255, 0.6) !important;
  color: #8b6a1a;
}

.feature.f3 {
  background: linear-gradient(160deg, var(--d-800) 0%, var(--d-900) 100%) !important;
  color: white;
}
.feature.f3 .ic-wrap {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--r-400);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.feature.f3 .ic-wrap svg {
  stroke: var(--r-400);
}
.feature.f3 h3 .hl::after {
  background: var(--r-400);
  opacity: 0.5;
}

.feature.f4 {
  background: linear-gradient(160deg, var(--r-100) 0%, var(--r-200) 100%) !important;
  color: var(--r-700);
}
.feature.f4 .ic-wrap {
  background: rgba(255, 255, 255, 0.6) !important;
  color: var(--r-600);
}

/* Decorative shape in corner */
.feature::before {
  content: "";
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.06;
  pointer-events: none;
}

@media (max-width: 991px) {
  .features .grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .feature .f-num {
    font-size: 44px;
  }
}
@media (max-width: 575px) {
  .features .grid {
    grid-template-columns: 1fr !important;
  }
}

/* ─────────── Hero h1 — tighter responsive sizes ─────────── */
.hero h1 {
  font-size: 44px !important;
  line-height: 1.05 !important;
  letter-spacing: -0.025em !important;
  margin: 16px 0 18px !important;
  max-width: 560px;
}
.hero h1 .accent {
  font-size: 1em !important;
}
@media (min-width: 1200px) {
  .hero h1 {
    font-size: 50px !important;
  }
}
@media (min-width: 1400px) {
  .hero h1 {
    font-size: 56px !important;
  }
}
@media (max-width: 767px) {
  .hero h1 {
    font-size: 36px !important;
  }
}
@media (max-width: 480px) {
  .hero h1 {
    font-size: 30px !important;
  }
}

.hero .lead {
  font-size: 16px;
  max-width: 460px;
}

/* Kill drop caps */
.about p:first-of-type::first-letter,
.hero .stand::first-letter {
  all: unset !important;
}

/* ─────────── Clients block redesigned ─────────── */
.clients {
  text-align: left;
  padding: 0 0 140px;
}
.clients-head {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 48px;
}
.clients-head .eyebrow-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--r-600);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}
.clients-head h3 {
  font-size: 44px;
  font-weight: 800;
  color: var(--d-900);
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 600px;
}
.clients-head .aside {
  font-size: 15px;
  color: var(--d-500);
  max-width: 320px;
  line-height: 1.55;
  padding-bottom: 8px;
}

.client-grid {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 0 !important;
  align-items: stretch;
  justify-items: stretch;
  border-top: 1px solid var(--d-100);
  border-left: 1px solid var(--d-100);
  border-radius: var(--rd-md);
  overflow: hidden;
}

.client {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 110px;
  padding: 20px 16px !important;
  border-right: 1px solid var(--d-100);
  border-bottom: 1px solid var(--d-100);
  background: white;
  position: relative;
  overflow: hidden;
  transition: background 0.25s ease;
  cursor: pointer;
}
.client span {
  font-family: inherit;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--d-400);
  filter: grayscale(100%);
  transition:
    color 0.25s ease,
    transform 0.25s ease,
    filter 0.25s ease;
  text-align: center;
  position: relative;
  z-index: 1;
  line-height: 1.1;
}

/* Color overlay swooping in on hover */
.client::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.5, 0, 0.2, 1);
  z-index: 0;
}
.client:hover::before {
  transform: translateY(0);
}
.client:hover span {
  color: white !important;
  filter: grayscale(0);
  transform: scale(1.05);
}

.clients-foot {
  margin-top: 28px;
  text-align: center;
  font-size: 13px;
  color: var(--d-500);
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (max-width: 991px) {
  .clients-head {
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: flex-start;
  }
  .clients-head h3 {
    font-size: 32px;
  }
  .client-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  .client {
    min-height: 90px;
  }
  .client span {
    font-size: 15px;
  }
}
@media (max-width: 575px) {
  .client-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ─────────── Navy palette (replacing graphite) ─────────── */
:root {
  --navy-deep: var(--d-900);
  --navy: var(--d-800);
  --navy-soft: var(--d-700);
  --navy-mid: var(--d-600);
  --navy-light: #3f5479;
}

/* Bg gradients */
.nav,
.brandbar {
  background: var(--d-900);
}
.brandbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.nav {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Whole header (brand bar + nav) sticks together on scroll */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.hero {
  background:
    radial-gradient(ellipse 90% 70% at 85% 0%, color-mix(in oklab, var(--r-600) 32%, transparent) 0%, transparent 55%),
    radial-gradient(ellipse 60% 60% at 0% 100%, color-mix(in oklab, var(--d-700) 60%, transparent) 0%, transparent 55%),
    linear-gradient(160deg, var(--d-900) 0%, var(--d-800) 50%, var(--d-700) 100%) !important;
}
.process {
  background:
    radial-gradient(circle 600px at 100% 0%, color-mix(in oklab, var(--r-600) 40%, transparent) 0%, transparent 60%),
    linear-gradient(160deg, var(--d-800) 0%, var(--d-900) 60%, var(--d-700) 110%) !important;
}
.feature.f3 {
  background: linear-gradient(160deg, var(--d-700) 0%, var(--d-800) 100%) !important;
}
.h-card-1 {
  background: linear-gradient(160deg, var(--d-600) 0%, var(--d-800) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.cta-inner {
  background: linear-gradient(135deg, var(--r-600) 0%, var(--r-500) 40%, var(--d-800) 100%) !important;
}
.footer {
  background: linear-gradient(160deg, var(--d-900) 0%, var(--d-800) 100%) !important;
}
.process::before {
  background: radial-gradient(
    circle,
    color-mix(in oklab, var(--r-600) 45%, transparent) 0%,
    transparent 60%
  ) !important;
}
.hero-art .glow-blob {
  background: radial-gradient(
    circle,
    color-mix(in oklab, var(--r-400) 50%, transparent) 0%,
    color-mix(in oklab, var(--r-600) 20%, transparent) 50%,
    transparent 70%
  ) !important;
}

.avatars > div {
  border-color: var(--d-800) !important;
}
.sticker {
  border-color: var(--d-800) !important;
}

/* ─────────── Buttons — taller, more confident ─────────── */
.btn {
  padding: 16px 28px !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  letter-spacing: -0.005em;
  border-radius: 14px !important;
  min-height: 52px;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.btn-lg {
  padding: 20px 32px !important;
  font-size: 16px !important;
  min-height: 60px;
  border-radius: 16px !important;
}
.btn-sm {
  padding: 12px 20px !important;
  font-size: 13px !important;
  min-height: 42px;
  border-radius: 12px !important;
}
@media (max-width: 767px) {
  .btn {
    padding: 14px 20px !important;
  }
}
.btn-red {
  background: linear-gradient(135deg, var(--r-500) 0%, var(--r-600) 100%) !important;
  box-shadow:
    0 12px 28px color-mix(in oklab, var(--r-600) 35%, transparent),
    0 4px 10px color-mix(in oklab, var(--r-600) 20%, transparent);
}
.btn-red:hover {
  box-shadow: 0 18px 40px color-mix(in oklab, var(--r-600) 45%, transparent);
  transform: translateY(-1px);
}
.btn-dark {
  background: var(--d-800) !important;
  color: white;
  box-shadow: 0 8px 20px color-mix(in oklab, var(--d-900) 30%, transparent);
}
.btn-dark:hover {
  background: var(--d-700) !important;
}
.btn-light {
  background: white;
  color: var(--d-800) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ─────────── Typography refresh (Onest) ─────────── */
body {
  font-family:
    "Onest",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
h1,
h2,
h3,
h4 {
  font-family: "Onest", sans-serif;
  letter-spacing: -0.03em;
}
.hero h1 {
  letter-spacing: -0.035em !important;
  font-weight: 800 !important;
}

/* Process step numbers should pop on navy */
.step .num {
  background: linear-gradient(135deg, var(--r-400) 0%, var(--r-600) 100%) !important;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

/* Tag colors for the navy theme */
.eyebrow {
  background: color-mix(in oklab, var(--r-600) 18%, transparent) !important;
  color: var(--r-200) !important;
  border: 1px solid color-mix(in oklab, var(--r-400) 25%, transparent);
}

/* Footer brand text */
.footer .brand-block .logo-text .name,
.footer .brand-block .logo-text .sub {
  color: white;
}

/* Footer red accent line */
.footer::before {
  background: linear-gradient(90deg, transparent 0%, var(--r-500) 50%, transparent 100%) !important;
  height: 2px;
}

/* CTA inner blob colors fit navy */
.cta-inner::after {
  background: radial-gradient(
    circle,
    color-mix(in oklab, var(--d-900) 50%, transparent) 0%,
    transparent 60%
  ) !important;
}

/* Add breathing room above About — used to be cushioned by the stats section */
.about {
  padding-top: 120px !important;
}
@media (max-width: 991px) {
  .about {
    padding-top: 80px !important;
  }
}

/* Fix process step numbers — gradient text was getting clobbered by shorthand */
.step .num {
  background-image: linear-gradient(135deg, var(--r-400) 0%, var(--r-600) 100%) !important;
  background-color: transparent !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

/* ─────────── Section dividers — decorative ─────────── */
.sect-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px 0;
  margin: 0;
  color: var(--d-300);
}
.sect-divider .line {
  flex: 1;
  max-width: 280px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--d-200) 50%, transparent 100%);
}
.sect-divider .star {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--r-500);
  animation: spin-slow 18s linear infinite;
}
.sect-divider .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--r-400);
  flex-shrink: 0;
}
.sect-divider.dark {
  color: rgba(255, 255, 255, 0.3);
}
.sect-divider.dark .line {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
}
.sect-divider.dark .dot {
  background: var(--r-400);
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

/* Wavy edge SVG — sits between sections that bleed colors */
.wave-edge {
  display: block;
  width: 100%;
  height: 60px;
  margin: 0;
  pointer-events: none;
}

/* Floating glyph — single accent in margin */
.floating-mark {
  display: flex;
  justify-content: center;
  padding: 24px 0;
  color: var(--r-500);
  opacity: 0.4;
}
.floating-mark svg {
  width: 40px;
  height: 40px;
  animation: bob 4s ease-in-out infinite;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Quote-style numeric pattern strip */
.pattern-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 36px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--d-400);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  white-space: nowrap;
  overflow: hidden;
}
.pattern-strip span {
  display: inline-flex;
  align-items: center;
  gap: 32px;
}
.pattern-strip svg {
  color: var(--r-500);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Marquee-style infinite scroll for pattern strip */
.marquee {
  overflow: hidden;
  padding: 40px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(244, 236, 217, 0.3) 50%, transparent 100%);
  border-top: 1px solid var(--d-100);
  border-bottom: 1px solid var(--d-100);
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  width: fit-content;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 22px;
  font-weight: 700;
  color: var(--d-700);
  letter-spacing: -0.02em;
}
.marquee-item .glyph {
  width: 28px;
  height: 28px;
  color: var(--r-500);
  flex-shrink: 0;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 1;
  pointer-events: none;
}
.marquee::before {
  left: 0;
  background: linear-gradient(90deg, white 0%, transparent 100%);
}
.marquee::after {
  right: 0;
  background: linear-gradient(270deg, white 0%, transparent 100%);
}
@media (max-width: 575px) {
  .marquee::before,
  .marquee::after {
    width: 50px;
  }
}

/* ─────────── Hero photo (variant A — founder/classroom) ─────────── */
.hero-art .hero-photo {
  position: absolute;
  inset: 0;
  border-radius: var(--rd-xxl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  background: var(--d-100);
  z-index: 1;
}
.hero-art .hero-photo-slot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-art .hero-photo-slot::part(frame) {
  background: var(--d-100);
}
.hero-art .hero-photo-slot::part(empty) {
  color: var(--d-500);
}
.hero-art .hero-photo-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 32px;
  background: linear-gradient(180deg, transparent 0%, color-mix(in oklab, var(--d-900) 82%, transparent) 100%);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.4;
  pointer-events: none;
  z-index: 2;
}
.hero-art .hero-photo-cap b {
  display: block;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}
.hero-art .hero-credit-mark {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: var(--rd-sm);
  background: var(--g-red);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art .hero-credit-txt b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--d-900);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.hero-art .hero-credit-txt span {
  display: block;
  font-size: 12px;
  color: var(--d-500);
  margin-top: 2px;
}
@media (max-width: 991px) {
  .hero-art {
    min-height: 0;
    max-width: 560px;
    margin: 0 auto;
    aspect-ratio: 4 / 3;
  }
  .hero-art .hero-credit {
    left: 12px;
    bottom: 16px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   SURFACE MOODS — switched via data-surface on <html> from the Tweaks panel.
   No red-glow radials, no multi-stop dark gradients. Appended last + marked
   !important so these win over the legacy dark layer above.
   ═══════════════════════════════════════════════════════════════════════ */

/* CTA — solid same-hue accent block in EVERY surface (kills the red→dark mix) */
.cta-inner {
  background: var(--g-red-deep) !important;
}
.cta-inner::after {
  display: none !important;
}
.cta-inner::before {
  opacity: 0.5 !important;
}

/* ───────── LIGHT + PAPER: shared text/foreground flips ───────── */
html[data-surface="light"] .hero-bg .orb,
html[data-surface="paper"] .hero-bg .orb {
  display: none !important;
}

html[data-surface="light"] .hero h1,
html[data-surface="paper"] .hero h1 {
  color: var(--d-900) !important;
}
html[data-surface="light"] .hero h1 .accent,
html[data-surface="paper"] .hero h1 .accent {
  color: var(--r-600) !important;
  -webkit-text-fill-color: var(--r-600) !important;
  background: none !important;
}
html[data-surface="light"] .hero .lead,
html[data-surface="paper"] .hero .lead {
  color: var(--d-600) !important;
}
html[data-surface="light"] .hero-actions .play,
html[data-surface="paper"] .hero-actions .play {
  color: var(--d-900) !important;
}
html[data-surface="light"] .hero .eyebrow,
html[data-surface="paper"] .hero .eyebrow {
  background: var(--r-50) !important;
  color: var(--r-600) !important;
  border: 1px solid color-mix(in oklab, var(--r-600) 18%, transparent) !important;
}
html[data-surface="light"] .hs-num,
html[data-surface="paper"] .hs-num {
  color: var(--d-900) !important;
}
html[data-surface="light"] .hs-lbl,
html[data-surface="paper"] .hs-lbl {
  color: var(--d-500) !important;
}
html[data-surface="light"] .hero-stats,
html[data-surface="paper"] .hero-stats {
  border-top-color: var(--d-200) !important;
}

/* Process card -> light, glows off, dark text */
html[data-surface="light"] .process::before,
html[data-surface="light"] .process::after,
html[data-surface="paper"] .process::before,
html[data-surface="paper"] .process::after {
  display: none !important;
}
html[data-surface="light"] .process h2,
html[data-surface="paper"] .process h2 {
  color: var(--d-900) !important;
}
html[data-surface="light"] .process h2 em,
html[data-surface="paper"] .process h2 em {
  color: var(--r-600) !important;
}
html[data-surface="light"] .process .sub,
html[data-surface="paper"] .process .sub {
  color: var(--d-600) !important;
}
html[data-surface="light"] .process .eyebrow-d,
html[data-surface="paper"] .process .eyebrow-d {
  background: color-mix(in oklab, var(--d-900) 6%, transparent) !important;
  color: var(--d-700) !important;
}
html[data-surface="light"] .step h3,
html[data-surface="paper"] .step h3 {
  color: var(--d-900) !important;
}
html[data-surface="light"] .step p,
html[data-surface="paper"] .step p {
  color: var(--d-600) !important;
}

/* feature.f3 -> normal light card */
html[data-surface="light"] .feature.f3,
html[data-surface="light"] .feature.f3 h3,
html[data-surface="light"] .feature.f3 p,
html[data-surface="paper"] .feature.f3,
html[data-surface="paper"] .feature.f3 h3,
html[data-surface="paper"] .feature.f3 p {
  color: var(--d-900) !important;
}

/* Footer -> flat solid dark (timeless anchor), glow off */
html[data-surface="light"] .footer,
html[data-surface="paper"] .footer {
  background: var(--d-900) !important;
}
html[data-surface="light"] .footer::after,
html[data-surface="paper"] .footer::after {
  display: none !important;
}

/* Photo frame needs a hairline on a light page */
html[data-surface="light"] .hero-photo,
html[data-surface="paper"] .hero-photo {
  border: 1px solid var(--d-100);
}

/* ───────── LIGHT: cool-neutral paper ───────── */
html[data-surface="light"] .hero {
  background: linear-gradient(180deg, var(--d-50) 0%, #fff 100%) !important;
}
html[data-surface="light"] .process {
  background: var(--d-50) !important;
}
html[data-surface="light"] .step {
  background: #fff !important;
  border-color: var(--d-100) !important;
}
html[data-surface="light"] .feature.f3 {
  background: linear-gradient(160deg, var(--d-50) 0%, #fff 100%) !important;
  border: 1px solid var(--d-100);
}

/* ───────── PAPER: warm cream ───────── */
html[data-surface="paper"] .hero {
  background: linear-gradient(180deg, var(--cream-50) 0%, #fff 100%) !important;
}
html[data-surface="paper"] .process {
  background: var(--cream-50) !important;
}
html[data-surface="paper"] .step {
  background: #fff !important;
  border-color: var(--cream-100) !important;
}
html[data-surface="paper"] .feature.f3 {
  background: linear-gradient(160deg, var(--cream-100) 0%, var(--cream-50) 100%) !important;
}

/* ───────── FLAT: clean solid dark, drama without the glow ───────── */
html[data-surface="flat"] .hero-bg .orb {
  display: none !important;
}
html[data-surface="flat"] .hero {
  background: var(--d-900) !important;
}
html[data-surface="flat"] .process {
  background: var(--d-800) !important;
}
html[data-surface="flat"] .process::before,
html[data-surface="flat"] .process::after {
  display: none !important;
}
html[data-surface="flat"] .feature.f3 {
  background: var(--d-800) !important;
}
html[data-surface="flat"] .footer {
  background: var(--d-900) !important;
}
html[data-surface="flat"] .footer::after {
  display: none !important;
}

/* ───────── MAROON: deep accent-tinted dark (background follows the accent) ───────── */
html[data-surface="maroon"] .hero-bg .orb {
  display: none !important;
}
html[data-surface="maroon"] .hero {
  background: var(--r-900) !important;
}
html[data-surface="maroon"] .process {
  background: color-mix(in oklab, var(--r-900) 86%, #fff) !important;
}
html[data-surface="maroon"] .process::before,
html[data-surface="maroon"] .process::after {
  display: none !important;
}
html[data-surface="maroon"] .feature.f3 {
  background: var(--r-900) !important;
}
html[data-surface="maroon"] .footer {
  background: var(--r-900) !important;
}
html[data-surface="maroon"] .footer::after {
  display: none !important;
}
/* Header matches the maroon hero (no charcoal seam) */
html[data-surface="maroon"] .brandbar,
html[data-surface="maroon"] .nav {
  background: var(--r-900) !important;
}

/* Responsive hero h1 — a later non-media rule was forcing 60px on narrow
   screens, colliding with the lead. Cap it here (appended last = wins). */
@media (max-width: 991px) {
  .hero h1 {
    font-size: 46px !important;
    line-height: 1.06 !important;
    margin: 16px 0 26px !important;
  }
}
@media (max-width: 575px) {
  .hero h1 {
    font-size: 36px !important;
  }
}

/* About eyebrow always sits on a LIGHT section in every surface mode — keep it
   readable (the legacy global .eyebrow rule forces light-pink-on-translucent,
   which vanishes on white). Appended last so it wins over that !important. */
.about .eyebrow {
  background: var(--r-50) !important;
  color: var(--r-700) !important;
  border: 1px solid color-mix(in oklab, var(--r-600) 22%, transparent) !important;
}
.about .eyebrow .dot {
  background: var(--r-600) !important;
}

/* Footer logo — same image as header, inverted to white on the dark footer */
.footer .footer-logo {
  display: inline-flex;
  align-items: center;
}
.footer .footer-logo img {
  height: 42px;
  width: auto;
  display: block;
}

/* ═══════════════════════════════════════════════════════════════════════
   PROCESS as a connected timeline (replaces the four plain glass cards).
   Horizontal rail on desktop, vertical rail on mobile. Appended last to
   override the legacy .step / .step .num card rules.
   ═══════════════════════════════════════════════════════════════════════ */
.steps {
  position: relative;
  gap: 28px !important;
  margin-top: 8px;
}

.step {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  backdrop-filter: none !important;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* the node (number circle) */
.step .num {
  width: 62px !important;
  height: 62px !important;
  border-radius: 50% !important;
  margin: 0 auto 24px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  color: #fff !important;
  background: var(--d-700) !important;
  background-image: none !important;
  -webkit-text-fill-color: #fff !important;
  border: 2px solid var(--r-500) !important;
  box-shadow:
    0 0 0 7px color-mix(in oklab, var(--r-600) 10%, transparent),
    0 10px 26px rgba(0, 0, 0, 0.28);
  position: relative;
  z-index: 2;
}
/* first node is "filled" to read as the start of the journey */
.step:first-child .num {
  background: var(--g-red) !important;
  border-color: transparent !important;
}
/* last node is green — the "you made it" payoff (сертификат и карьера) */
.step:last-child .num {
  background: linear-gradient(135deg, oklch(0.55 0.13 152) 0%, oklch(0.66 0.15 150) 100%) !important;
  border-color: transparent !important;
  box-shadow:
    0 0 0 7px color-mix(in oklab, oklch(0.66 0.15 150) 14%, transparent),
    0 10px 26px rgba(0, 0, 0, 0.28);
}

/* connecting rail between consecutive nodes */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 31px;
  left: 50%;
  width: calc(100% + 28px);
  height: 2px;
  background: linear-gradient(
    90deg,
    color-mix(in oklab, var(--r-500) 80%, transparent) 0%,
    color-mix(in oklab, var(--r-500) 30%, transparent) 100%
  );
  z-index: 0;
}

.step h3 {
  font-size: 18px !important;
  margin-bottom: 8px !important;
}
.step p {
  font-size: 13.5px !important;
  max-width: 230px;
  margin: 0 auto !important;
}

/* ── Vertical timeline on narrow screens ── */
@media (max-width: 991px) {
  .steps {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding-left: 4px;
  }
  .step {
    display: grid;
    grid-template-columns: 62px 1fr;
    column-gap: 22px;
    text-align: left;
    padding-bottom: 34px !important;
  }
  .step .num {
    margin: 0 !important;
  }
  .step h3 {
    grid-column: 2;
    align-self: center;
    margin-bottom: 6px !important;
  }
  .step p {
    grid-column: 2;
    max-width: none;
    margin: 0 !important;
  }
  .step:not(:last-child)::after {
    top: 62px;
    left: 31px;
    width: 2px;
    height: calc(100% - 62px);
    background: linear-gradient(
      180deg,
      color-mix(in oklab, var(--r-500) 80%, transparent) 0%,
      color-mix(in oklab, var(--r-500) 30%, transparent) 100%
    );
  }
}

/* ═══════════════════════════════════════════════════════════
   Mobile header — hamburger + slide-in drawer
   (markup injected by header-mobile.js; hidden ≥992px)
   ═══════════════════════════════════════════════════════════ */
.nav-burger {
  display: none;
}
.m-nav,
.m-nav-overlay {
  display: none;
}

@media (max-width: 991px) {
  /* Replace the cramped scroll-nav with a hamburger */
  .nav {
    display: none;
  }
  .brandbar .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    grid-template-columns: none;
  }
  .brandbar-cta {
    display: none;
  } /* phone + callback move into drawer */
  .brandbar-meta {
    display: none;
  }

  .nav-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 13px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition:
      background 0.18s,
      border-color 0.18s;
  }
  .nav-burger:hover {
    background: rgba(255, 255, 255, 0.11);
  }
  .nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition:
      transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.18s;
  }
  body.m-nav-open .nav-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  body.m-nav-open .nav-burger span:nth-child(2) {
    opacity: 0;
  }
  body.m-nav-open .nav-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  body.m-nav-open {
    overflow: hidden;
  }

  /* Overlay */
  .m-nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 12, 0.58);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease;
    z-index: 90;
  }
  body.m-nav-open .m-nav-overlay {
    opacity: 1;
    visibility: visible;
  }

  /* Drawer */
  .m-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(87vw, 360px);
    background: var(--d-900);
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    transform: translateX(100%);
    transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.34s ease;
    z-index: 100;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  body.m-nav-open .m-nav {
    transform: translateX(0);
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.45);
  }

  .m-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    min-height: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .m-nav-head .logo img {
    height: 26px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
  }
  .m-nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 11px;
    cursor: pointer;
    color: #fff;
    transition: background 0.18s;
  }
  .m-nav-close:hover {
    background: rgba(255, 255, 255, 0.12);
  }
  .m-nav-close svg {
    width: 20px;
    height: 20px;
  }

  /* Link list */
  .m-nav-links {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
  }
  .m-nav-links .m-link,
  .m-acc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    padding: 15px 24px;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0;
    border-left: 3px solid transparent;
    transition:
      color 0.15s,
      background 0.15s,
      border-color 0.15s;
  }
  .m-nav-links .m-link:hover,
  .m-acc-toggle:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
  }
  .m-nav-links .m-link.active,
  .m-acc-toggle.active {
    color: #fff;
    border-left-color: var(--r-500);
  }
  .m-acc-toggle svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.45);
    transition: transform 0.28s ease;
  }
  .m-acc.open .m-acc-toggle svg {
    transform: rotate(180deg);
  }

  /* Accordion body */
  .m-acc-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
    background: rgba(0, 0, 0, 0.22);
  }
  .m-acc.open .m-acc-body {
    grid-template-rows: 1fr;
  }
  .m-acc-body > div {
    overflow: hidden;
  }
  .m-acc-body a {
    display: block;
    padding: 12px 24px 12px 40px;
    font-size: 13.5px;
    line-height: 1.4;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    border-left: 3px solid transparent;
    transition:
      color 0.15s,
      border-color 0.15s;
  }
  .m-acc-body a:hover {
    color: #fff;
    border-left-color: var(--r-400);
  }

  /* Footer: phone, callback, meta, lang */
  .m-nav-foot {
    margin-top: auto;
    padding: 22px 24px 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .m-nav-foot .phone-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-weight: 700;
    font-size: 17px;
  }
  .m-nav-foot .phone-link span {
    display: inline !important;
  }
  .m-nav-foot .phone-link svg {
    width: 19px;
    height: 19px;
    color: var(--r-400);
    flex-shrink: 0;
  }
  .m-nav-foot .m-nav-cb {
    width: 100%;
    justify-content: center;
  }
  .m-nav-meta {
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
  }
  .m-nav-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .m-nav-meta > span svg {
    width: 15px;
    height: 15px;
    color: var(--r-500);
    flex-shrink: 0;
  }
  .m-nav-foot .lang {
    display: inline-flex;
    gap: 4px;
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--rd-pill);
    padding: 3px;
  }
  .m-nav-foot .lang a {
    padding: 5px 14px;
    border-radius: var(--rd-pill);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
  }
  .m-nav-foot .lang .on {
    background: var(--g-red);
    color: #fff;
  }
  .m-nav-foot .acca-badge {
    display: inline-flex;
    align-self: flex-start;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   Very-small-phone hardening (≤460px, comfortable down to 340px).
   Trims oversized section paddings & display type so content keeps room to
   breathe instead of being squeezed against the gutters. Appended last so it
   wins over earlier same-specificity rules.
   ═══════════════════════════════════════════════════════════════════════ */
img,
svg,
video,
canvas {
  max-width: 100%;
}

@media (max-width: 460px) {
  .wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  /* Hero */
  .hero {
    padding: 24px 0 48px;
  }
  .hero h1 {
    font-size: 34px;
    margin: 14px 0 16px;
  }
  .hero .lead {
    font-size: 15px;
  }
  .hero-actions .btn-lg {
    padding: 14px 22px;
    font-size: 14px;
  }
  .hero-stats {
    gap: 16px;
  }

  /* Display headings */
  .shead h2,
  .about h2,
  .process h2,
  .cta-inner h2 {
    font-size: 29px;
  }
  .shead {
    margin-bottom: 36px;
  }

  /* Big rounded blocks → trimmer padding + softer radius */
  .process {
    padding: 38px 20px;
    border-radius: var(--rd-xl);
    margin-bottom: 88px;
  }
  .process h2 {
    margin-bottom: 12px;
  }
  .process .sub {
    margin-bottom: 32px;
  }
  .step {
    padding: 22px;
  }
  .partners-two {
    margin-bottom: 88px;
  }
  .partner-card {
    padding: 26px 20px;
    border-radius: var(--rd-xl);
  }
  .partner-card::after {
    left: 20px;
    right: 20px;
  }
  .cta-block {
    padding: 32px 0 80px;
  }
  .cta-inner {
    padding: 28px 20px;
    border-radius: var(--rd-xl);
  }
  .cta-form {
    padding: 22px;
  }

  /* Cards */
  .feature {
    padding: 24px 20px;
    gap: 16px;
  }
  .feature .ic-wrap {
    flex-basis: 60px;
    height: 60px;
  }
  .feature .ic-wrap svg {
    width: 30px;
    height: 30px;
  }
  .course {
    padding: 26px 20px;
    min-height: 0;
  }
  .test {
    padding: 24px 20px;
  }

  /* Section vertical rhythm (tinted/bold backgrounds) */
  html[data-deco-bg="tinted"] .about,
  html[data-deco-bg="tinted"] .courses,
  html[data-deco-bg="tinted"] .clients,
  html[data-deco-bg="bold"] .about,
  html[data-deco-bg="bold"] .courses,
  html[data-deco-bg="bold"] .clients {
    padding: 64px 0 72px;
  }
  .features,
  .courses,
  .tests,
  .about {
    padding-bottom: 80px;
  }

  /* Footer */
  .footer {
    padding: 52px 0 24px;
  }
  .footer-bot {
    flex-direction: column;
    gap: 8px;
    text-align: left;
  }
}