:root {
  --bg: #0D1226;
  --bg2: #111833;
  --panel: #161E3E;
  --line: #262F5E;
  --text: #EEF0FA;
  --muted: #A3AACC;
  --violet: #8B5CF6;
  --teal: #2DD4BF;
  --grad: linear-gradient(90deg, var(--violet), var(--teal));
  --wa: #25D366;
  --r: 4px;
  --wrap: 1160px;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  font-variation-settings: 'wdth' 100; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.08; font-weight: 800; font-stretch: 112%; font-variation-settings: 'wdth' 112; letter-spacing: -0.02em; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

/* loading: content waits for saved text so visitors never see old copy flash */
body.is-loading #main, body.is-loading .foot { visibility: hidden; }

/* ---------- buttons ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px; border-radius: var(--r);
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #fff; box-shadow: 6px 6px 0 -1px var(--violet); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { --h: 40px; padding: 0 16px; font-size: 15px; }
.btn-wa { background: var(--wa); color: #06290F; }
.btn-wa:hover { background: #3ae07a; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- announcement ---------- */
.announce {
  background: var(--grad); color: #0A0F22; font-size: 15px; font-weight: 600;
  padding: 9px 24px; text-align: center;
}
.announce a { font-weight: 800; margin-left: 8px; text-underline-offset: 3px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(13,18,38,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 28px; height: auto; }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: -0.01em; font-variation-settings: 'wdth' 118; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; padding: 6px 0; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.login { position: relative; }
.login-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 270px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 6px;
  box-shadow: 0 18px 40px rgba(0,0,0,.4);
}
.login-menu a { display: block; padding: 12px 14px; text-decoration: none; border-radius: 3px; }
.login-menu a:hover, .login-menu a:focus-visible { background: rgba(255,255,255,.05); }
.login-menu strong { display: block; font-size: 15px; }
.login-menu span { font-size: 13px; color: var(--muted); }
.burger { display: none; width: 42px; height: 42px; background: none; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; padding: 0 10px; }
.burger span { display: block; height: 2px; background: var(--text); margin: 6px 0; transition: transform .2s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.hero::before { /* faint grid echoing the logo's square geometry */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .28;
  mask-image: radial-gradient(ellipse 70% 80% at 75% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 75% 45%, #000 20%, transparent 75%);
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); font-variation-settings: 'wdth' 116; max-width: 13ch; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 54ch; margin: 26px 0 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.route { position: relative; margin: 0; width: 100%; max-width: 500px; justify-self: end; }
.route svg { width: 100%; height: auto; overflow: visible; }
.route-base { fill: none; stroke: var(--line); stroke-width: 14; stroke-linejoin: miter; }
.route-line { fill: none; stroke: url(#rg); stroke-width: 14; stroke-linejoin: miter; stroke-dasharray: 1; stroke-dashoffset: 1; }
.route-node { fill: var(--bg); stroke: var(--text); stroke-width: 6; }
.parcel { fill: var(--teal); opacity: 0; }
.route-label { position: absolute; display: flex; gap: 10px; align-items: baseline; font-weight: 700; font-size: 15px; line-height: 1.3; max-width: 46%; }
.route-label b { font-size: 12px; color: var(--muted); font-weight: 700; }
.l1 { left: 22%; top: 2.5%; }
.l2 { left: 40%; top: 59%; }
.l3 { right: 16%; top: 92%; text-align: right; }
.ready .route-line { animation: draw 2.2s cubic-bezier(.6,.1,.3,1) .25s forwards; }
.ready .route-node { animation: lit .3s ease forwards; }
.ready .n1 { animation-delay: .25s; } .ready .n2 { animation-delay: 1.2s; } .ready .n3 { animation-delay: 2.35s; }
.ready .parcel { offset-path: path('M60 70H420V220H60V370H420'); animation: travel 2.2s cubic-bezier(.6,.1,.3,1) .25s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes lit { to { fill: var(--text); } }
@keyframes travel { 0% { offset-distance: 0%; opacity: 1; } 96% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }

/* ---------- stats ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg2); }
.stats-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stats-list li { padding: 30px 24px 28px; border-left: 1px solid var(--line); }
.stats-list li:first-child { border-left: 0; padding-left: 0; }
.stats-list strong { display: block; font-size: 26px; font-weight: 800; font-variation-settings: 'wdth' 115; letter-spacing: -0.01em; }
.stats-list span { color: var(--muted); font-size: 15px; }

/* ---------- blocks ---------- */
.block { padding: 104px 0; }
.block + .block { border-top: 1px solid var(--line); }
.h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 40px; max-width: 20ch; }
.h3 { font-size: 22px; font-variation-settings: 'wdth' 108; margin-bottom: 20px; }
.head-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 40px; }
.head-row .h2 { margin: 0; }
.head-row p { margin: 0; max-width: 46ch; }

/* services: two different-weight panels, not a card grid */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.service { padding: 44px 40px; position: relative; scroll-margin-top: 96px; }
.service + .service { border-left: 1px solid var(--line); }
.service:first-child { background: var(--bg2); }
.service::before { content: ""; position: absolute; left: 0; top: 0; height: 6px; width: 88px; background: var(--grad); }
.service h3 { font-size: 28px; font-variation-settings: 'wdth' 114; margin-bottom: 16px; }
.service p { color: var(--muted); max-width: 48ch; }
.service ul { list-style: none; padding: 0; margin: 26px 0 32px; display: grid; gap: 12px; }
.service li { padding-left: 26px; position: relative; }
.service li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border: 2px solid var(--teal); }

/* steps: a real sequence, joined by the same thick line as the hero route */
.steps-block { background: var(--bg2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px; counter-reset: s; position: relative; }
.steps li { counter-increment: s; position: relative; padding-top: 72px; }
.steps li::before {
  content: counter(s); position: absolute; top: 0; left: 0; width: 48px; height: 48px;
  display: grid; place-items: center; background: var(--bg); border: 4px solid var(--text);
  font-weight: 800; font-size: 18px; z-index: 1;
}
.steps li::after { content: ""; position: absolute; top: 18px; left: 48px; right: -32px; height: 12px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 21px; margin-bottom: 10px; font-variation-settings: 'wdth' 108; }
.steps p { color: var(--muted); margin: 0; max-width: 32ch; }

/* courses */
.courses { display: grid; gap: 0; border-top: 1px solid var(--line); }
.course { display: grid; grid-template-columns: 2fr 1.4fr 1fr 1fr auto; gap: 20px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.course h3 { font-size: 21px; font-variation-settings: 'wdth' 108; }
.course .meta { color: var(--muted); font-size: 15px; }
.course .meta b { display: block; color: var(--text); font-weight: 600; font-size: 16px; }
.pill { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 99px; margin-top: 8px; }
.pill.open { background: rgba(45,212,191,.14); color: var(--teal); }
.pill.soon { background: rgba(139,92,246,.18); color: #BBA4FB; }
.pill.closed { background: rgba(255,255,255,.07); color: var(--muted); }
.empty { color: var(--muted); padding: 24px 0; }

/* testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.quote { margin: 0; padding: 32px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg2); }
.quote blockquote { margin: 0 0 22px; font-size: 18px; line-height: 1.55; }
.quote figcaption strong { display: block; }
.quote figcaption span { color: var(--muted); font-size: 15px; }

/* faq */
.faq-in { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-weight: 700; font-size: 18px; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -9px; border-right: 3px solid var(--muted); border-bottom: 3px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-list details p { color: var(--muted); margin: 0 0 24px; max-width: 62ch; }

/* contact */
.contact-block { background: var(--bg2); }
.contact-in { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.contact-info .h2 { margin-bottom: 18px; }
.contact-info > p { max-width: 42ch; margin-bottom: 28px; }
.contact-list { margin: 32px 0 0; display: grid; gap: 18px; }
.contact-list div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; }
.contact-list dt { color: var(--muted); font-size: 15px; }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }
.contact-list a { text-underline-offset: 3px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.socials a { font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid var(--line); padding: 7px 14px; border-radius: 99px; }
.socials a:hover { border-color: var(--muted); }

.form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 36px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field em { color: var(--muted); font-style: normal; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; transition: border-color .15s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(45,212,191,.18); }
.field.bad input, .field.bad textarea { border-color: #F87171; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 6px; }
.form-status { margin: 0; font-size: 15px; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: #FCA5A5; }
.form.closed { opacity: .7; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 48px 0 40px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.foot-brand { display: flex; gap: 14px; align-items: flex-start; }
.foot-brand img { margin-top: 4px; }
.foot-brand p { margin: 4px 0 0; font-size: 15px; max-width: 44ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; justify-content: flex-end; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.foot-links a:hover { color: var(--text); }
.copy { grid-column: 1 / -1; color: var(--muted); font-size: 14px; margin: 18px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }

/* maintenance */
.maint { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 18px; }
.maint h1 { font-size: 34px; }
.maint p { color: var(--muted); max-width: 44ch; margin: 0 0 8px; }
.noscript { padding: 40px; text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; gap: 48px; }
  .route { justify-self: start; max-width: 460px; }
  .faq-in, .contact-in { grid-template-columns: 1fr; gap: 36px; }
  .head-row { grid-template-columns: 1fr; gap: 14px; }
  .course { grid-template-columns: 1fr 1fr; }
  .course > :first-child { grid-column: 1 / -1; }
  .course .btn { justify-self: start; }
  .steps li::after { display: none; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 14px 0; font-size: 18px; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav-right { margin-left: auto; }
  .service + .service { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 44px 0 64px; }
  .block { padding: 72px 0; }
  .h2 { margin-bottom: 28px; }
  .stats-list { grid-template-columns: 1fr 1fr; }
  .stats-list li { padding: 22px 12px 20px 0; border-left: 0; border-top: 1px solid var(--line); }
  .stats-list li:nth-child(-n+2) { border-top: 0; }
  .stats-list li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .stats-list strong { font-size: 21px; }
  .service { padding: 36px 22px; }
  .form { padding: 24px 18px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .route-label { font-size: 13px; gap: 6px; }
  .contact-list div { grid-template-columns: 80px 1fr; }
  .foot-in { grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; }
  .brand-name { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition: none !important; }
}
