:root {
  --ink: #17191b;
  --muted: #666a6d;
  --paper: #f4f2ed;
  --white: #fff;
  --orange: #f79b2e;
  --orange-soft: #fbd7aa;
  --line: #d9d6cf;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.section-shell,
.site-header {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  min-height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  display: block;
  width: 142px;
  height: auto;
}

.header-actions,
.language-switcher {
  display: flex;
  align-items: center;
}

.header-actions { gap: 28px; }
.language-switcher { gap: 8px; color: #9a9c9d; }

.language-button {
  padding: 4px;
  border: 0;
  color: #909294;
  background: transparent;
  font: 700 0.75rem/1 "DM Sans", sans-serif;
  cursor: pointer;
}

.language-button.active { color: var(--ink); }

.language-button:focus-visible,
.admin-link:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.admin-link {
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.admin-link:hover { color: var(--white); background: var(--ink); }

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
  padding-block: 88px 118px;
}

.eyebrow,
.card-label {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1, h2, h3 {
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 780px;
  margin-bottom: 28px;
  font-size: clamp(3.1rem, 6.4vw, 6.35rem);
  line-height: 0.98;
}

.hero-intro {
  max-width: 510px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.6;
}

.hero-visual {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 50% 50% 46% 54% / 52% 43% 57% 48%;
  background: var(--orange);
  transform: rotate(2deg);
}

.hero-visual::before {
  position: absolute;
  inset: 14%;
  border: 1px solid rgb(23 25 27 / 18%);
  border-radius: inherit;
  content: "";
}

.course-line {
  position: absolute;
  top: 44%;
  left: 8%;
  width: 85%;
  height: 3px;
  background: var(--ink);
  transform: rotate(-13deg);
}

.course-line::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  width: 22px;
  height: 22px;
  border-top: 3px solid var(--ink);
  border-right: 3px solid var(--ink);
  content: "";
  transform: rotate(45deg);
}

.course-dot {
  position: absolute;
  width: 17px;
  height: 17px;
  border: 4px solid var(--orange);
  border-radius: 50%;
  background: var(--ink);
}

.dot-one { top: 52%; left: 25%; }
.dot-two { top: 42%; left: 51%; }
.dot-three { top: 31%; left: 75%; }

.course-label {
  position: absolute;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.label-start { top: 59%; left: 8%; }
.label-finish { top: 23%; right: 9%; }

.bib {
  position: absolute;
  right: 10%;
  bottom: 8%;
  font: 700 4.8rem/1 "Manrope", sans-serif;
  opacity: 0.14;
}

.workflow {
  padding-block: 110px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  margin-bottom: 70px;
}

.section-heading h2,
.chip h2 {
  max-width: 700px;
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.08;
}

.workflow-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.workflow-list li {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 24px 26px 0;
  border-right: 1px solid var(--line);
}

.workflow-list li:not(:first-child) { padding-left: 24px; }
.workflow-list li:last-child { border-right: 0; }
.step-number { color: var(--orange); font-size: 0.78rem; font-weight: 700; }
.workflow-list h3 { margin-bottom: 12px; font-size: 1.35rem; }
.workflow-list p { margin-bottom: 0; color: var(--muted); line-height: 1.55; }

.apps {
  padding-block: 110px;
  border-top: 1px solid var(--line);
}

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

.app-card {
  min-height: 400px;
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 4vw, 54px);
  border-radius: 6px;
}

.timing-card { background: var(--ink); color: var(--white); }
.tracking-card { background: var(--orange-soft); }

.app-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin-bottom: 80px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.app-icon svg { width: 35px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.app-card .card-label { margin-bottom: 12px; color: inherit; opacity: 0.58; }
.app-card h3 { margin-bottom: 14px; font-size: clamp(1.75rem, 3vw, 2.7rem); }
.app-card > p:last-child { max-width: 390px; margin-bottom: 0; font-size: 1.02rem; line-height: 1.6; opacity: 0.74; }

.chip {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(45px, 8vw, 120px);
  padding-block: 120px;
  border-top: 1px solid var(--line);
}

.chip-photo { position: relative; }
.chip-photo img { width: 100%; display: block; aspect-ratio: 1.28; border-radius: 6px; object-fit: cover; filter: saturate(0.75); }
.photo-tag { position: absolute; right: 16px; bottom: 16px; padding: 9px 13px; border-radius: 3px; background: var(--orange); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; }
.chip-copy > p:last-child { max-width: 470px; margin: 28px 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }

.site-footer {
  min-height: 260px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 58px;
  border-top: 1px solid var(--ink);
  overflow: hidden;
}

.site-footer p { margin-bottom: 12px; color: var(--muted); }
.site-footer a { width: fit-content; font: 600 clamp(1.55rem, 3vw, 2.7rem)/1.2 "Manrope", sans-serif; letter-spacing: -0.04em; text-decoration-color: var(--orange); text-underline-offset: 7px; }
.footer-mark { position: absolute; right: 0; bottom: -0.18em; color: var(--ink); font: 700 clamp(5rem, 13vw, 10rem)/1 "Manrope", sans-serif; letter-spacing: -0.08em; opacity: 0.045; pointer-events: none; }

@media (max-width: 820px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-block: 60px 90px; }
  .hero-copy { position: relative; z-index: 1; }
  .hero-visual { min-height: 380px; }
  .section-heading { grid-template-columns: 1fr; gap: 8px; }
  .workflow-list { grid-template-columns: repeat(2, 1fr); }
  .workflow-list li:nth-child(2) { border-right: 0; }
  .workflow-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .workflow-list li:nth-child(3) { padding-left: 0; }
  .chip { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .section-shell,
  .site-header { width: min(calc(100% - 32px), var(--max-width)); }
  .site-header { min-height: 84px; }
  .brand img { width: 104px; }
  .header-actions { gap: 13px; }
  .admin-link { padding: 10px 12px; font-size: 0.62rem; }
  .language-switcher { gap: 3px; }
  .hero { gap: 50px; padding-top: 52px; }
  h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .hero-visual { min-height: 310px; }
  .workflow, .apps, .chip { padding-block: 82px; }
  .section-heading { margin-bottom: 46px; }
  .workflow-list { grid-template-columns: 1fr; }
  .workflow-list li { min-height: 190px; padding: 20px 0 24px !important; border-right: 0; border-top: 1px solid var(--line); }
  .workflow-list li:first-child { border-top: 0; }
  .app-grid { grid-template-columns: 1fr; }
  .app-card { min-height: 350px; }
  .app-icon { margin-bottom: 58px; }
  .chip { gap: 42px; }
  .site-footer { min-height: 230px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
