:root {
  --bg: #0b1220;
  --bg-soft: #111b2f;
  --card: rgba(255, 255, 255, 0.09);
  --card-strong: rgba(255, 255, 255, 0.14);
  --text: #f7fbff;
  --muted: #aebbd0;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #ffcb45;
  --accent-2: #22c55e;
  --accent-3: #4f8cff;
  --danger: #ff5c7a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius: 28px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
  background:
    radial-gradient(circle at 10% 0%, rgba(79, 140, 255, 0.26), transparent 34%),
    radial-gradient(circle at 90% 15%, rgba(255, 203, 69, 0.18), transparent 30%),
    linear-gradient(135deg, #0b1220 0%, #10182a 48%, #06101f 100%);
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.6;
  animation: float 9s ease-in-out infinite;
}

.orb-one {
  width: 320px;
  height: 320px;
  left: -90px;
  top: 190px;
  background: rgba(34, 197, 94, 0.22);
}

.orb-two {
  width: 420px;
  height: 420px;
  right: -160px;
  top: 360px;
  background: rgba(79, 140, 255, 0.22);
  animation-delay: 1.2s;
}

.orb-three {
  width: 240px;
  height: 240px;
  left: 44%;
  top: 72%;
  background: rgba(255, 203, 69, 0.14);
  animation-delay: 2.4s;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(11, 18, 32, 0.72);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.logo__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #111827;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), #ffffff);
  box-shadow: 0 14px 34px rgba(255, 203, 69, 0.24);
}

.logo__text {
  display: grid;
  gap: 2px;
}

.logo__text strong {
  font-size: 15px;
}

.logo__text small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: 0.25s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 10px;
  background: var(--text);
}

.section {
  padding: 90px 0;
}

.hero {
  padding-top: 76px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 56px;
  align-items: center;
}

.badge,
.eyebrow,
.section-title span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  background: rgba(255, 203, 69, 0.95);
  border-radius: 999px;
  padding: 8px 13px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.01em;
}

.badge span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.18);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 10px;
  font-size: 23px;
  letter-spacing: -0.035em;
}

.hero__lead {
  max-width: 660px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.62;
}

.hero__buttons,
.bot__actions,
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  color: #111827;
  background: linear-gradient(135deg, var(--accent), #fff0a6);
  box-shadow: 0 16px 42px rgba(255, 203, 69, 0.25);
}

.btn--secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
}

.btn--ghost {
  min-height: 44px;
  padding: 0 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.btn--small {
  min-height: 46px;
  padding: 0 18px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 620px;
  margin-top: 36px;
}

.hero__stats div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
}

.hero__stats strong {
  display: block;
  margin-bottom: 4px;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.hero__stats span {
  color: var(--muted);
  font-size: 13px;
}

.hero__visual {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
}

.phone-card {
  width: min(390px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 38px;
  padding: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,0.16), rgba(255,255,255,0.06));
  box-shadow: var(--shadow);
  transform: rotate(3deg);
}

.phone-card__top {
  display: flex;
  gap: 7px;
  padding: 8px 8px 14px;
}

.phone-card__top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.chat {
  min-height: 520px;
  border-radius: 28px;
  padding: 18px;
  background: #f8fbff;
  color: #172033;
}

.chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e7edf6;
}

.chat__avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #eaf2ff;
}

.chat__head small {
  display: block;
  margin-top: 2px;
  color: #22a35d;
}

.message {
  width: fit-content;
  max-width: 92%;
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.45;
}

.message--bot {
  background: #eef4ff;
}

.message--user {
  margin-left: auto;
  color: #111827;
  background: #ffdd6e;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-top: 16px;
}

.quick-grid button {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  color: #172033;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(23, 32, 51, 0.07);
  font-weight: 700;
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.floating-card span {
  font-size: 26px;
}

.floating-card strong,
.floating-card small {
  display: block;
}

.floating-card small {
  margin-top: 2px;
  color: var(--muted);
}

.floating-card--left {
  left: 0;
  top: 18%;
}

.floating-card--right {
  right: 0;
  bottom: 20%;
}

.section-title {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-title p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.section-title--row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.benefits__grid,
.cards--courses,
.instructors__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.benefit,
.course-card,
.person,
.media-card,
.cta__card,
.bot__features,
.bot__content {
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
}

.benefit,
.course-card,
.person {
  min-height: 250px;
  padding: 26px;
  border-radius: var(--radius);
}

.benefit__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.11);
  font-size: 27px;
}

.benefit p,
.course-card p,
.course-card li,
.person p,
.bot__content p,
.cta p {
  color: var(--muted);
  line-height: 1.65;
}

.course-card {
  position: relative;
  overflow: hidden;
}

.course-card::before {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(79, 140, 255, 0.22);
}

.course-card--accent::before {
  background: rgba(255, 203, 69, 0.26);
}

.course-card__top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.course-card__top span,
.course-card__top strong {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.course-card__top span {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.course-card__top strong {
  color: #111827;
  background: var(--accent);
}

.course-card ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding-left: 19px;
}

.bot {
  padding: 70px 0;
}

.bot__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
  align-items: stretch;
}

.bot__content,
.bot__features {
  border-radius: var(--radius);
  padding: 34px;
}

.bot__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.bot__features div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 18px;
  border-radius: 20px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.bot__features span {
  color: var(--muted);
}

.hint {
  margin: 18px 0 0;
  font-size: 13px;
}

.hint code {
  padding: 2px 6px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
}

.split__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: center;
}

.media-card {
  min-height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
}

.car-illustration {
  position: relative;
  height: 360px;
  background:
    linear-gradient(180deg, rgba(79, 140, 255, 0.14), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at 50% 20%, rgba(255, 203, 69, 0.18), transparent 40%);
}

.road {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 70px;
  height: 78px;
  transform: rotate(-3deg);
  background: rgba(255, 255, 255, 0.16);
  border-top: 2px solid rgba(255,255,255,0.2);
  border-bottom: 2px solid rgba(255,255,255,0.2);
}

.road::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.75) 0 44px, transparent 44px 78px);
}

.car {
  position: absolute;
  left: 50%;
  bottom: 118px;
  width: 310px;
  height: 120px;
  transform: translateX(-50%);
}

.car__body {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 20px;
  height: 62px;
  border-radius: 34px 48px 24px 24px;
  background: linear-gradient(135deg, var(--accent), #ff8a2a);
  box-shadow: 0 24px 60px rgba(255, 138, 42, 0.22);
}

.car__top {
  position: absolute;
  left: 88px;
  bottom: 66px;
  width: 130px;
  height: 58px;
  border-radius: 38px 44px 0 0;
  background: rgba(255, 255, 255, 0.86);
}

.wheel {
  position: absolute;
  bottom: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #111827;
  border: 9px solid #d7deeb;
}

.wheel--one {
  left: 58px;
}

.wheel--two {
  right: 58px;
}

.person {
  text-align: center;
}

.person__photo {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 34px;
  color: #111827;
  background: linear-gradient(135deg, var(--accent), #ffffff);
  font-size: 28px;
  font-weight: 900;
}

.person__photo--second {
  background: linear-gradient(135deg, #8bc6ff, #ffffff);
}

.person__photo--third {
  background: linear-gradient(135deg, #86efac, #ffffff);
}

.cta__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 42px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 203, 69, 0.16), transparent 28%),
    rgba(255, 255, 255, 0.1);
}

.cta__card h2 {
  max-width: 730px;
}

.footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.12);
}

.footer__inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.footer a {
  color: var(--text);
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  padding: 14px 18px;
  border-radius: 16px;
  color: #111827;
  background: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(120px);
  opacity: 0;
  transition: 0.3s ease;
  font-weight: 800;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay {
  transition-delay: 0.12s;
}

@keyframes float {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -24px, 0);
  }
}

@media (max-width: 980px) {
  .header__inner {
    height: 74px;
  }

  .nav {
    position: fixed;
    left: 20px;
    right: 20px;
    top: 86px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-radius: 22px;
    padding: 12px;
    background: rgba(11, 18, 32, 0.96);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    border-radius: 14px;
  }

  .burger {
    display: block;
  }

  .header__actions .btn {
    display: none;
  }

  .hero__grid,
  .bot__grid,
  .split__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: auto;
  }

  .floating-card {
    display: none;
  }

  .section-title--row,
  .cta__card,
  .footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .benefits__grid,
  .cards--courses,
  .instructors__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .section {
    padding: 62px 0;
  }

  .hero {
    padding-top: 46px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  .hero__lead {
    font-size: 17px;
  }

  .hero__buttons,
  .bot__actions,
  .cta__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero__stats,
  .bot__features {
    grid-template-columns: 1fr;
  }

  .phone-card {
    transform: none;
  }

  .chat {
    min-height: 470px;
  }

  .benefit,
  .course-card,
  .person,
  .bot__content,
  .bot__features,
  .cta__card {
    padding: 22px;
    border-radius: 22px;
  }

  .car {
    width: 260px;
  }
}
