/* ─────────────────────────────────────────────────────────────
   Разработчик сайтов — база.
   Токены, шрифты, шапка-пилюля и первый экран взяты со свежей
   главной glo.academy (local/theme/css/style.css, блоки .site-nav
   и .hero-c). Значения перенесены как есть, чтобы страница курса
   и главная читались одним сайтом.
   ───────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* логотип: шрифт подрезан до нужных букв, 1,4 КБ */
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/Unbounded-800-logo.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+41, U+43-45, U+47, U+4c-4d, U+4f, U+59;
}

:root {
  --ink: #141414;
  --muted: #636363;
  --soft: #8a8a8a;
  --line: #ececec;
  --surface: #f2f2f4;
  --surface-2: #f7f7f7;
  --accent: #007aff;
  --accent-dark: #0069db;
  --accent-soft: #f2f5fa;
  --blue-deep: #0f3c8f;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1160px;

  --step: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

p {
  margin: 0 0 1em;
}

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

a {
  color: inherit;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 84px 0;
}

/* якоря из шапки: липкая пилюля иначе накрывает заголовок раздела */
[id] {
  scroll-margin-top: 96px;
}

.section__title {
  font-size: clamp(30px, 3.6vw, 46px);
  margin-bottom: 18px;
}

.section__lead {
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 44px;
}

.section__lead:last-child {
  margin-bottom: 0;
}

/* ── кнопка-пилюля: один стиль на все действия сайта ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 50px;
  background: var(--accent);
  color: #ffffff;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  padding: 16px 30px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.btn:hover {
  background: var(--accent-dark);
  color: #ffffff;
}

.btn:focus-visible {
  outline: 3px solid rgba(0, 122, 255, 0.35);
  outline-offset: 2px;
}

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
}

.btn--ghost:hover {
  background: #e6e6ea;
  color: var(--ink);
}

.btn--light {
  background: #ffffff;
  color: var(--ink);
}

.btn--light:hover {
  background: #f2f2f4;
  color: var(--ink);
}

/* ─────────────────────────────────────────────────────────────
   Шапка
   ───────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  display: block;
  padding: 18px 24px;
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  background: #ffffff;
  border-radius: 22px;
  padding: 9px 9px 9px 16px;
  box-shadow: 0 0 0 5px var(--surface-2);
}

.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.glo-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3em;
  font-family: "Unbounded", "Inter", sans-serif;
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.glo-logo__glo {
  color: #f07e26;
}

.glo-logo__ac {
  color: var(--ink);
}

.nav-links {
  display: flex;
  margin-left: auto;
}

.nav-list {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list > li {
  position: relative;
}

/* мостик под пунктом: выпадашка отбита на 6px, без него курсор
   проваливается в зазор и меню закрывается */
.nav-list > li.has-sub::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 8px;
}

.nav-list > li > a {
  display: block;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  color: #000000;
  text-decoration: none;
  border-radius: 50px;
  padding: 9px 13px;
  transition: 0.2s;
}

.nav-list > li > a:hover {
  background: var(--surface-2);
}

.nav-list .sub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  display: none;
  flex-direction: column;
  min-width: 210px;
  list-style: none;
  margin: 6px 0 0;
  padding: 8px;
  z-index: 20;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 0 0 5px var(--surface-2);
}

.nav-list > li:hover > .sub-menu,
.nav-list > li:focus-within > .sub-menu {
  display: flex;
}

.nav-list .sub-menu a {
  display: block;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  color: #000000;
  text-decoration: none;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  transition: 0.2s;
}

.nav-list .sub-menu a:hover {
  background: var(--surface-2);
}

.nav-consult {
  border: 0;
  font-family: inherit;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  color: var(--ink);
  background: var(--surface-2);
  border-radius: 50px;
  padding: 12px 18px;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.2s;
}

.nav-consult:hover {
  background: #ececee;
}

.nav-burger {
  display: none;
  width: 40px;
  height: 38px;
  border: 0;
  border-radius: 50px;
  background: var(--surface-2);
  position: relative;
  cursor: pointer;
}

.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
  content: "";
  position: absolute;
  left: 11px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #000000;
}

.nav-burger span {
  top: 18px;
}

.nav-burger span::before {
  left: 0;
  top: -6px;
}

.nav-burger span::after {
  left: 0;
  top: 6px;
}

@media (max-width: 900px) {
  .site-nav {
    padding: 12px 16px;
  }
  .nav-pill {
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 8px 8px 16px;
  }
  .nav-burger {
    display: block;
    margin-left: auto;
  }
  .nav-links {
    display: none;
    order: 3;
    width: 100%;
    margin-left: 0;
  }
  .nav-pill.is-open .nav-links {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    gap: 2px;
    padding: 4px 0 8px;
  }
  .nav-list .sub-menu {
    position: static;
    display: flex;
    box-shadow: none;
    border-radius: 0;
    margin: 0 0 0 8px;
    padding: 0;
    min-width: 0;
  }
  .nav-consult {
    order: 2;
  }
}

/* на узком экране кнопка должна ужаться, иначе пилюля переносится в две строки */
@media (max-width: 420px) {
  .nav-consult {
    padding: 11px 14px;
    font-size: 13.5px;
  }
}

/* ─────────────────────────────────────────────────────────────
   Первый экран
   ───────────────────────────────────────────────────────────── */
.hero-c {
  padding: 64px 0 76px;
}

.hero-c__in {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.hero-c__eyebrow {
  display: inline-block;
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  color: var(--muted);
  background: var(--surface);
  border-radius: 50px;
  padding: 9px 16px;
  margin-bottom: 26px;
}

.hero-c__title {
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
}

.hero-c__kicker {
  font-size: clamp(19px, 2.1vw, 26px);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 42ch;
  margin: 0 auto 22px;
}

.hero-c__sub {
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto 34px;
}

.hero-c__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-c__note {
  display: block;
  font-size: 13.5px;
  color: var(--soft);
  margin-top: 16px;
}

/* ── Скетч-сцена над заголовком: человек идёт работать в кофейню ──
   Цикл 16 секунд: парк → кофейня → столик у окна. ── */
.hero-art {
  max-width: 940px;
  margin: 0 auto 26px;
}

.hero-art__svg {
  display: block;
  width: 100%;
  height: auto;
}

/* сцена едет навстречу: сначала до кофейни, потом до столика */
.hero-art__stage {
  animation: stage-move 16s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes stage-move {
  0%   { transform: translateX(0); }
  42%  { transform: translateX(-620px); }
  52%  { transform: translateX(-620px); }
  72%  { transform: translateX(-1180px); }
  100% { transform: translateX(-1180px); }
}

/* ноги и руки качаются в противофазе — это и есть походка */
.hero-art__leg,
.hero-art__arm {
  transform-origin: 250px 166px;
  animation: step-front 0.72s ease-in-out infinite;
}

.hero-art__arm {
  transform-origin: 250px 134px;
}

.hero-art__leg--back,
.hero-art__arm--front {
  animation-name: step-back;
}

@keyframes step-front {
  0%, 100% { transform: rotate(24deg); }
  50% { transform: rotate(-24deg); }
}

@keyframes step-back {
  0%, 100% { transform: rotate(-24deg); }
  50% { transform: rotate(24deg); }
}

/* корпус пружинит в такт шагу */
.hero-art__body {
  animation: body-bounce 0.36s ease-in-out infinite;
}

@keyframes body-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2.5px); }
}

/* на стоянке у кофейни и за столиком ноги замирают */
.hero-art__walker {
  animation: walker-life 16s steps(1, end) infinite;
}

@keyframes walker-life {
  0%, 71.9% { opacity: 1; }
  72%, 100% { opacity: 0; }
}

/* стакан кофе появляется только после кофейни */
.hero-art__togo {
  animation: togo-show 16s steps(1, end) infinite;
}

@keyframes togo-show {
  0%, 47.9% { opacity: 0; }
  48%, 100% { opacity: 1; }
}

/* герой за столиком — последняя четверть цикла */
.hero-art__sitter {
  animation: sitter-show 16s steps(1, end) infinite;
}

@keyframes sitter-show {
  0%, 71.9% { opacity: 0; }
  72%, 100% { opacity: 1; }
}

.hero-art__caret {
  animation: caret-blink 1.1s steps(1, end) infinite;
}

@keyframes caret-blink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0.2; }
}

.hero-art__steam {
  animation: steam-rise 3s ease-in-out infinite;
}

@keyframes steam-rise {
  0%, 100% { opacity: 0.2; transform: translateY(2px); }
  50% { opacity: 0.75; transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art__stage,
  .hero-art__leg,
  .hero-art__arm,
  .hero-art__body,
  .hero-art__walker,
  .hero-art__togo,
  .hero-art__sitter,
  .hero-art__caret,
  .hero-art__steam {
    animation: none;
  }
  .hero-art__sitter {
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .hero-art {
    margin-bottom: 18px;
  }
}

/* карточки-условия и даты стартов — одной плитой под первым экраном */
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 0.9fr;
  gap: 8px;
  margin-top: 56px;
}

.hero-facts__item {
  background: var(--surface);
  border-radius: 0;
  padding: 26px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  min-height: 132px;
}

.hero-facts__item:first-child {
  border-top-left-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-lg);
}

.hero-facts__starts {
  background: var(--blue-deep);
  background: linear-gradient(135deg, #0f3c8f 0%, #1a63d6 58%, #2f86f5 100%);
  color: #ffffff;
  border-top-right-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.hero-facts__label {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.hero-facts__date {
  font-size: 26px;
  line-height: 1.1;
  margin-bottom: 10px;
}

.hero-facts__date:last-child {
  margin-bottom: 0;
}

@media (max-width: 1000px) {
  .hero-facts {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-facts__item,
  .hero-facts__starts {
    border-radius: var(--radius-md);
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .hero-c {
    padding: 40px 0 52px;
  }
  .hero-c__actions .btn {
    width: 100%;
  }
  .hero-facts {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }
  .section {
    padding: 56px 0;
  }
}
