:root {
  --bg: #f4f8ff;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --ink: #112c5b;
  --ink-soft: #36527f;
  --line: #d9e6fb;
  --brand: #195eb8;
  --brand-deep: #0f2f67;
  --brand-soft: #eaf2ff;
  --accent: #ff7a00;
  --accent-deep: #df6600;
  --green: #4ba72c;
  --shadow: 0 24px 60px rgba(20, 55, 118, 0.14);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(25, 94, 184, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #f1f6ff 100%);
  font-size: 15px;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: min(100%, var(--wrap)); margin: 0 auto; }

.page-shell {
  padding: 0 0 28px;
}

.site-shell {
  width: min(100%, var(--wrap));
  margin: 0 auto;
  background: transparent;
}

.site-header {
  background: #fff;
  padding: 22px 28px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid #dbe7fa;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  width: 222px;
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--brand-soft);
  color: var(--brand-deep);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 800;
}

.header-nav-wrap {
  display: flex;
  align-items: center;
  gap: 30px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 700;
  color: #10274f;
}

.header-nav a {
  padding: 8px 0;
  border-radius: 999px;
}

.header-nav a:hover,
.header-nav a[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 800;
  font-size: 1.52rem;
  white-space: nowrap;
}

.header-phone::before {
  content: "";
  width: 22px;
  height: 22px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.28-.28.67-.36 1.02-.25 1.12.37 2.32.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1C10.61 21 3 13.39 3 4c0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 38px 36px 58px;
}

.hero--home {
  background:
    linear-gradient(90deg, rgba(223, 239, 255, 0.98) 0%, rgba(222, 238, 255, 0.88) 31%, rgba(220, 235, 255, 0.42) 44%, rgba(220, 235, 255, 0.06) 58%),
    url("/images/dont-walk-drive-hero-wide.png") center bottom / 100% auto no-repeat,
    linear-gradient(180deg, #dcecff 0%, #f7fbff 100%);
}

.hero.hero--home::after {
  content: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 135px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(202,223,250,0.18) 28%, rgba(163, 188, 223, 0.2) 30%, rgba(111, 131, 163, 0.20) 100%),
    linear-gradient(170deg, transparent 0 43%, #4d5d70 44% 49%, transparent 50% 100%),
    linear-gradient(175deg, transparent 0 54%, #fff 55% 59%, transparent 60% 100%),
    linear-gradient(175deg, transparent 0 64%, #fff 65% 69%, transparent 70% 100%);
  opacity: 0.86;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: 8px;
}

.hero-grid > *,
.lesson-grid > *,
.confidence-grid > *,
.skills-layout > *,
.footer-grid > *,
.secondary-layout > *,
.payments-grid > * {
  min-width: 0;
}

.hero-copy h1 {
  margin: 0;
  max-width: 430px;
  font-size: 3.92rem;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #0b2452;
}

.hero-copy p {
  margin: 18px 0 0;
  max-width: 360px;
  font-size: 1.45rem;
  line-height: 1.35;
  color: #17386f;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.button,
.button-outline {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button-outline:hover {
  transform: translateY(-1px);
}

.button {
  background: linear-gradient(180deg, #ff8615 0%, #ff7500 100%);
  color: #fff;
  box-shadow: 0 12px 30px rgba(255, 122, 0, 0.25);
}

.hero-actions .button::before,
.hero-actions .button-outline::before,
.cta-actions .button::before,
.cta-actions .dark-outline::before {
  content: "";
  width: 20px;
  height: 20px;
  flex: none;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M7 2h2v3h6V2h2v3h3a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h3V2Zm13 9H4v9h16v-9ZM4 9h16V7H4v2Zm3 4h3v3H7v-3Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hero-actions .button-outline::before,
.cta-actions .button::before {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.28-.28.67-.36 1.02-.25 1.12.37 2.32.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1C10.61 21 3 13.39 3 4c0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2Z'/%3E%3C/svg%3E");
}

.hero-actions .button[href^="tel:"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.28-.28.67-.36 1.02-.25 1.12.37 2.32.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1C10.61 21 3 13.39 3 4c0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2Z'/%3E%3C/svg%3E");
}

.cta-actions .dark-outline::before {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2Zm-.4 4.25-7.07 5.3a1 1 0 0 1-1.2 0L4.4 8.25 5.6 6.65 12 11.45l6.4-4.8 1.2 1.6Z'/%3E%3C/svg%3E");
}

.hero-actions .email-action::before {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2Zm-.4 4.25-7.07 5.3a1 1 0 0 1-1.2 0L4.4 8.25 5.6 6.65 12 11.45l6.4-4.8 1.2 1.6Z'/%3E%3C/svg%3E");
}

.button-outline {
  background: rgba(255,255,255,0.92);
  color: var(--brand);
  border: 2px solid #4f90ed;
}

.hero-badge {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #1a3e77;
}

.hero-badge::before {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6 12 4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 17px 17px no-repeat,
    var(--brand);
  font-weight: 900;
}

.hero-art {
  justify-self: end;
  max-width: min(430px, 100%);
}

.hero--home .hero-grid {
  grid-template-columns: 440px minmax(0, 1fr);
  min-height: 340px;
}

.hero--home .hero-copy {
  max-width: 560px;
}

.hero--home .hero-art {
  display: none;
}

.stats-band {
  position: relative;
  z-index: 2;
  margin: -36px 28px 0;
  background: rgba(255,255,255,0.98);
  border: 1px solid #d8e5f9;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  padding: 17px 12px;
}

.stat-item + .stat-item {
  border-left: 1px solid var(--line);
}

.stat-icon {
  width: 58px;
  height: 58px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--brand);
}

.stat-icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.stat-item:nth-child(1) .stat-icon img,
.stat-item:nth-child(2) .stat-icon img,
.stat-item:nth-child(4) .stat-icon img {
  width: 48px;
  height: 54px;
}

.stat-item:nth-child(3) .stat-icon img {
  width: 56px;
  height: 44px;
}

.stat-item:nth-child(5) .stat-icon img {
  width: 50px;
  height: 40px;
}

.stat-copy strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.15;
}

.stat-copy span {
  display: none;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.35;
}

.section {
  padding: 26px 28px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.lesson-card {
  background: linear-gradient(180deg, #eef5ff 0%, #eaf2ff 100%);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid #deebff;
  position: relative;
  height: 232px;
  overflow: hidden;
}

.lesson-card:nth-child(2) {
  background: linear-gradient(180deg, #f5fbeb 0%, #f2f8ea 100%);
}

.lesson-card:nth-child(3) {
  background: linear-gradient(180deg, #f5f1ff 0%, #f3efff 100%);
}

.lesson-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.lesson-badge {
  position: absolute;
  top: 22px;
  right: 62px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    var(--brand)
    url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm-7 8a7 7 0 0 1 14 0H5Z'/%3E%3C/svg%3E") center / 22px no-repeat;
}

.lesson-card:nth-child(2) .lesson-badge {
  background-color: #3d8b34;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M12 3 2 8l10 5 10-5-10-5Zm-6 8.1V15c0 2.2 3.6 4 6 4s6-1.8 6-4v-3.9l-6 3-6-3Z'/%3E%3C/svg%3E");
}

.lesson-card:nth-child(3) .lesson-badge {
  background-color: #7052bd;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M9 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm6 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6ZM4 19a5 5 0 0 1 10 0H4Zm6.5 0a6.5 6.5 0 0 1 1.9-4.6A5 5 0 0 1 20 19h-9.5Z'/%3E%3C/svg%3E");
}

.lesson-card h3 {
  margin: 58px 0 8px;
  font-size: 0.96rem;
  line-height: 1.2;
}

.lesson-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.45;
  font-size: 0.72rem;
}

.lesson-card a {
  margin-top: 12px;
  display: inline-flex;
  color: var(--brand);
  font-weight: 800;
  white-space: nowrap;
}

.confidence-section {
  margin-top: 24px;
  background:
    linear-gradient(90deg, rgba(235,244,255,0.98) 0%, rgba(228,239,255,0.92) 42%, rgba(224,238,255,0.28) 62%, rgba(224,238,255,0.15) 100%),
    linear-gradient(180deg, #ebf4ff 0%, #f7fbff 100%);
  padding: 24px 48px 0;
  height: 278px;
  overflow: hidden;
}

.confidence-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 18px;
  align-items: center;
}

.confidence-copy h2 {
  margin: 0;
  font-size: 1.85rem;
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 340px;
}

.confidence-copy h3 {
  margin: 10px 0 10px;
  color: var(--brand);
  font-size: 0.92rem;
}

.confidence-copy p {
  margin: 0 0 10px;
  font-size: 0.78rem;
  line-height: 1.42;
}

.confidence-copy p:nth-of-type(n+2) {
  display: none;
}

.check-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.check-list li {
  position: relative;
  padding-left: 20px;
  color: #16396e;
  font-size: 0.76rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6 12 4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 9px no-repeat,
    var(--brand);
  color: var(--brand);
}

.confidence-visual {
  position: relative;
  min-height: 254px;
}

.confidence-visual img {
  width: 100%;
  height: 254px;
  object-fit: cover;
  object-position: center bottom;
  border-radius: 0;
}

.feature-bubble {
  position: absolute;
  background: rgba(255,255,255,0.98);
  border: 1px solid #dde8fb;
  box-shadow: 0 14px 30px rgba(20, 55, 118, 0.12);
  border-radius: 11px;
  padding: 10px 14px;
  font-weight: 800;
  color: #17386f;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 0.78rem;
}

.feature-bubble.one { top: 26px; left: 10px; }
.feature-bubble.two { top: 26px; right: 10px; }
.feature-bubble.three { left: -8px; bottom: 70px; }
.feature-bubble.four { right: 0; bottom: 58px; }

.bubble-icon {
  width: 25px;
  height: 25px;
  flex: none;
  border: 0;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-3 7a1.3 1.3 0 1 1 0 2.6A1.3 1.3 0 0 1 9 9Zm6 0a1.3 1.3 0 1 1 0 2.6A1.3 1.3 0 0 1 15 9Zm-7 6h2c.35.9 1.1 1.5 2 1.5s1.65-.6 2-1.5h2c-.55 2-2.1 3.5-4 3.5S8.55 17 8 15Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.bubble-icon.car,
.bubble-icon.clipboard,
.bubble-icon.award {
  border: 0;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M5 11h14l-1.3-4H6.3L5 11Zm1 2v4h1.3a2 2 0 0 0 3.4 0h2.6a2 2 0 0 0 3.4 0H18v-4H6Zm1.4-8h9.2c.9 0 1.7.58 1.98 1.44L20 10.7V19h-2.1a3 3 0 0 1-5.8 0h-.2a3 3 0 0 1-5.8 0H4v-8.3l1.42-4.26A2.08 2.08 0 0 1 7.4 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.bubble-icon.clipboard {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M9 2h6l1 2h3v18H5V4h3l1-2Zm1.2 4h3.6l-.5-1h-2.6l-.5 1ZM7 6v14h10V6h-1v2H8V6H7Zm2 5h6v2H9v-2Zm0 4h6v2H9v-2Z'/%3E%3C/svg%3E");
}

.bubble-icon.award {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 2a6 6 0 0 1 3.5 10.87L17 22l-5-3-5 3 1.5-9.13A6 6 0 0 1 12 2Zm0 2a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z'/%3E%3C/svg%3E");
}

.pricing-skills {
  padding-bottom: 10px;
}

.pricing-skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}

.pricing-card,
.skills-card,
.detail-card,
.contact-card,
.payments-card,
.calendar-card {
  background: #fff;
  border: 1px solid #dbe7fa;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(20, 55, 118, 0.08);
}

.pricing-card {
  overflow: hidden;
  height: auto;
}

.pricing-card h3 {
  margin: 0;
  padding: 12px 18px;
  text-align: center;
  font-size: 1rem;
  border-bottom: 1px solid var(--line);
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  column-gap: 16px;
  row-gap: 4px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.price-row span {
  flex: 1 1 0;
  min-width: 0;
}

.price-row strong {
  flex: none;
  margin-left: auto;
}

.price-row:last-of-type { border-bottom: 0; }

.price-row strong {
  color: var(--accent);
  font-size: 1rem;
}

.price-row--stacked small {
  flex-basis: 100%;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.35;
}

.price-section-label {
  padding: 10px 18px 4px;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pricing-note {
  padding: 10px 18px 12px;
  color: var(--ink-soft);
  font-size: 0.68rem;
  line-height: 1.35;
}

.skills-card {
  padding: 24px 28px;
  height: auto;
  min-height: 260px;
  overflow: visible;
}

.skills-card h2 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.skills-card > p {
  margin: 6px 0 16px;
  color: var(--brand);
  font-size: 1.05rem;
}

.skills-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(360px, 1.3fr) minmax(190px, 0.8fr);
  gap: 26px;
  align-items: center;
}

.skills-list h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.skills-list.green h3 { color: #3b8b27; }
.skills-list.blue h3 { color: var(--brand); }

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

.skills-list li {
  position: relative;
  padding-left: 23px;
  line-height: 1.4;
  font-size: 0.86rem;
}

.skills-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6 12 4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 10px no-repeat,
    var(--brand);
}

.skills-list.green li::before {
  background-color: var(--green);
}

.skills-illustration img {
  width: 100%;
  max-height: 210px;
  object-fit: contain;
}

.detail-card .skills-layout {
  grid-template-columns: minmax(120px, 0.72fr) minmax(190px, 1fr) minmax(120px, 0.72fr);
  gap: 14px;
}

.detail-card .skills-card {
  padding: 24px 28px 26px;
}

.detail-card .skills-card h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
}

.detail-card .skills-illustration img {
  max-height: 175px;
}

.cta-strip {
  padding: 0 28px 14px;
}

.cta-box {
  background:
    linear-gradient(135deg, #0f397b 0%, #123f87 55%, #0c2f63 100%);
  color: #fff;
  border-radius: 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 12px 24px;
}

.cta-badge {
  width: 74px;
  height: 74px;
}

.cta-copy h2 {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.05;
}

.cta-copy p {
  margin: 5px 0 0;
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.button.inverse {
  box-shadow: none;
}

.button.dark-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}

.site-footer {
  background: linear-gradient(180deg, #0b2350 0%, #0a1f46 100%);
  color: #fff;
  padding: 18px 28px 8px;
  min-height: 165px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.7fr 0.9fr 1fr 132px;
  gap: 22px;
  align-items: start;
}

.footer-brand img {
  width: 180px;
  margin-bottom: 6px;
}

.footer-brand p {
  margin: 0 0 7px;
  color: rgba(255,255,255,0.84);
  font-size: 0.68rem;
  line-height: 1.25;
}

.footer-column h3 {
  margin: 0 0 6px;
  font-size: 0.7rem;
}

.footer-column p,
.footer-column a {
  color: rgba(255,255,255,0.84);
  line-height: 1.25;
  font-size: 0.68rem;
}

.footer-column a {
  display: block;
}

.footer-badge img {
  width: 92px;
  margin-left: auto;
}

.footer-bottom {
  text-align: center;
  color: rgba(255,255,255,0.72);
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 0.6rem;
}

.footer-seo-links {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  justify-content: center;
}

.footer-seo-links a {
  color: rgba(255,255,255,0.78);
  font-size: 0.62rem;
  line-height: 1.25;
}

.secondary-page {
  padding: 16px 28px 28px;
}

.secondary-hero {
  background:
    linear-gradient(90deg, rgba(236,244,255,0.98) 0%, rgba(226,238,255,0.9) 55%, rgba(220,235,255,0.4) 100%),
    linear-gradient(180deg, #dcecff 0%, #f7fbff 100%);
  border-radius: 24px;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.7fr);
  gap: 22px;
  align-items: center;
  border: 1px solid #dde8fb;
}

.secondary-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.secondary-hero p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 1.14rem;
  line-height: 1.5;
}

.secondary-badge {
  margin-top: 18px;
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  border: 1px solid #d9e7fb;
  font-weight: 800;
}

.secondary-hero img {
  max-height: 340px;
  margin-left: auto;
}

.secondary-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  margin-top: 22px;
}

.detail-card {
  padding: 24px;
}

.detail-card h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
}

.detail-card p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.detail-card ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.detail-card li {
  position: relative;
  padding-left: 26px;
  color: #16396e;
}

.detail-card > ul > li::before {
  content: "●";
  position: absolute;
  left: 0;
  color: var(--brand);
}

.sidebar-stack {
  display: grid;
  gap: 18px;
}

.payments-layout {
  margin-top: 22px;
  display: grid;
  gap: 18px;
}

.payments-intro {
  padding: 22px 24px;
}

.payments-intro h2 {
  font-size: clamp(1.7rem, 2.4vw, 2.25rem);
}

.payments-intro p:last-child {
  margin-bottom: 0;
}

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

.contact-card,
.payments-card,
.calendar-card {
  padding: 22px;
}

.contact-card h3,
.payments-card h3,
.calendar-card h3 {
  margin: 0 0 14px;
  font-size: 1.2rem;
}

.contact-link {
  display: inline-flex;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand);
  margin: 4px 0;
}

.paypal-form {
  display: grid;
  gap: 12px;
}

.paypal-form select {
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid #cadcf7;
  padding: 0 12px;
  font: inherit;
}

.pay-button {
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  background: #ffc439;
  color: #142c57;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.related-links {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-links a {
  background: var(--brand-soft);
  color: var(--brand);
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 700;
}

.calendar-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.calendar-controls button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 900;
  cursor: pointer;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekday,
.calendar-day {
  border-radius: 14px;
  text-align: center;
}

.calendar-weekday {
  padding: 10px 4px;
  color: var(--ink-soft);
  font-weight: 800;
  font-size: 0.85rem;
}

.calendar-day {
  min-height: 54px;
  padding: 10px 6px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  font-weight: 700;
}

.calendar-day.is-empty {
  background: transparent;
  color: transparent;
  border-style: dashed;
}

.calendar-day.is-today {
  background: #e8f1ff;
  border-color: #9ec2ff;
  color: var(--brand);
}

@media (max-width: 760px) {
  .stats-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-item:nth-child(odd) {
    border-left: 0;
  }

  .stat-item {
    border-top: 1px solid var(--line);
  }

  .stat-item:first-child,
  .stat-item:nth-child(2) {
    border-top: 0;
  }

  .lesson-grid,
  .footer-grid,
  .secondary-layout,
  .payments-grid,
  .pricing-skills-grid,
  .skills-layout,
  .confidence-grid,
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .secondary-hero {
    grid-template-columns: 1fr;
  }

  .cta-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-badge,
  .footer-badge img,
  .secondary-hero img,
  .hero-art {
    margin: 0 auto;
  }

  .cta-actions,
  .header-nav-wrap {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 16px 18px;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: none;
  }

  .header-nav-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .header-nav {
    flex-wrap: wrap;
  }

  .hero,
  .confidence-section,
  .section,
  .secondary-page,
  .site-footer,
  .cta-strip {
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-shell,
  .hero,
  .section,
  .lesson-grid,
  .lesson-card,
  .confidence-section,
  .pricing-skills,
  .cta-strip,
  .site-footer,
  .secondary-page {
    width: 100%;
    max-width: 100%;
  }

  .hero {
    padding-bottom: 82px;
  }

  .hero--home {
    background:
      linear-gradient(180deg, rgba(236,244,255,0.98) 0%, rgba(226,238,255,0.92) 42%, rgba(220,235,255,0.30) 100%),
      url("/images/dont-walk-drive-hero-wide.png") 72% center / cover no-repeat,
      linear-gradient(180deg, #dcecff 0%, #f7fbff 100%);
  }

  .hero--home .hero-grid {
    min-height: 480px;
    grid-template-columns: 1fr;
  }

  .stats-band {
    margin-left: 18px;
    margin-right: 18px;
    width: auto;
    max-width: none;
    grid-template-columns: 1fr;
  }

  .stat-item + .stat-item {
    border-left: 0;
  }

  .lesson-card {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .lesson-card h3 {
    margin-top: 8px;
  }

  .lesson-badge {
    top: 22px;
    right: 22px;
  }

  .confidence-section {
    height: auto;
    overflow: visible;
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .confidence-visual {
    min-height: 0;
  }

  .detail-card,
  .skills-card,
  .contact-card,
  .payments-card {
    min-width: 0;
  }

  .secondary-hero,
  .secondary-hero > *,
  .secondary-layout,
  .secondary-layout > *,
  .payments-layout,
  .payments-grid,
  .payments-grid > * {
    min-width: 0;
    max-width: 100%;
  }

  .secondary-page,
  .secondary-hero,
  .secondary-layout,
  .detail-card,
  .sidebar-stack,
  .payments-layout,
  .payments-grid {
    width: 100%;
  }

  .secondary-page *,
  .cta-strip * {
    min-width: 0;
    max-width: 100%;
  }

  .secondary-hero,
  .secondary-layout {
    display: block;
  }

  .secondary-hero img,
  .sidebar-stack {
    margin-top: 22px;
  }

  .secondary-hero .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .secondary-hero .hero-actions a {
    width: 100%;
  }

  .detail-card,
  .payments-intro,
  .related-links a,
  .detail-card p,
  .detail-card li,
  .payments-intro p {
    overflow-wrap: anywhere;
  }

  .detail-card .skills-layout {
    grid-template-columns: 1fr;
  }

  .contact-link {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}
