:root {
  --paper: #fbf7ef;
  --paper-2: #f4eedf;
  --card: #ffffff;
  --ink: #22243b;
  --ink2: #62657f;
  --outline: #22243b;
  --sand: #e9e2d4;
  --blue: #2e5be8;
  --blue-deep: #1e41b5;
  --blue-soft: #e7edfe;
  --blue-text: #1e41b5;
  --yellow: #ffc531;
  --yellow-pale: #fff3d4;
  --green-soft: #ddf3e7;
  --coral-soft: #fde4df;
  --display: "Nunito", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body: "Rubik", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
a, button { touch-action: manipulation; }
body {
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 86% 7%, rgba(46, 91, 232, 0.09), transparent 24rem),
    var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.84' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.skip {
  position: fixed;
  top: -80px;
  left: 14px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.18s ease;
}
.skip:focus { top: 14px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 2px solid color-mix(in srgb, var(--sand) 76%, transparent);
  background: rgba(251, 247, 239, 0.91);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.topbar .in {
  max-width: 1220px;
  min-height: 72px;
  margin: 0 auto;
  padding: 12px 16px;
}
.brand { min-width: 44px; min-height: 44px; font-size: 23px; gap: 9px; }
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
}
.top-actions { display: flex; align-items: center; gap: 12px; }
.audience {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 2px solid var(--sand);
  border-radius: 999px;
  background: var(--card);
}
.audience a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--ink2);
  font: 800 13px/1 var(--display);
  text-decoration: none;
  white-space: nowrap;
}
.audience a.is-active { background: var(--paper-2); color: var(--ink); }
.langs { box-shadow: 0 4px 0 var(--sand); }
.langs button { min-width: 44px; min-height: 44px; padding-inline: 10px; }
.langs button[aria-pressed="true"] { background: var(--blue); color: #fff; }

.wrap {
  max-width: 1220px;
  padding: 46px 16px 60px;
  gap: 92px;
}
section { gap: 26px; }

h1 { max-width: 18ch; font-size: clamp(40px, 9vw, 60px); line-height: 1.04; letter-spacing: -0.04em; }
h2 { font-size: clamp(28px, 7vw, 44px); line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-size: 18px; }
mark {
  background: linear-gradient(transparent 18%, var(--yellow) 18%, var(--yellow) 94%, transparent 94%);
  padding-inline: 0.08em;
}

.hero {
  min-height: 610px;
  grid-template-columns: 1fr;
  gap: 36px;
}
.hero-text { gap: 22px; }
.lead { max-width: 48ch; font-size: 18px; line-height: 1.62; }
.ctas { gap: 14px; }
.btn {
  min-height: 58px;
  justify-content: center;
  padding: 0 22px;
  white-space: nowrap;
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.18s ease;
}
.btn:hover { filter: brightness(1.03); }
.btn.primary { border-color: var(--outline); background: var(--blue); color: #fff; }
.btn.second { background: var(--card); }
.hero-art {
  width: min(100%, 390px);
  padding: 16px 0 34px;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0 4% 6% 16%;
  z-index: -1;
  border-radius: 44% 56% 46% 54% / 54% 48% 52% 46%;
  background: var(--blue-soft);
  transform: rotate(6deg);
}
.hero-art .phone { width: 72%; box-shadow: 0 16px 38px rgba(39, 46, 94, 0.13), 0 5px 0 var(--sand); }
.hero-art .arci {
  left: 0;
  bottom: 0;
  width: 48%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(34, 36, 59, 0.14));
}

.section-head { display: grid; gap: 12px; max-width: 680px; }
.section-head p { color: var(--ink2); font-size: 17px; }

.tour-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: -8px;
}
.tour-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink2);
  font-size: 14px;
  font-weight: 500;
}
.tour-hint svg { width: 20px; height: 20px; color: var(--blue); }
.tour-nav { display: inline-flex; align-items: center; gap: 8px; }
.tour-arrow {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 2px solid var(--outline);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--sand);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.18s ease, opacity 0.18s ease;
}
.tour-arrow:hover:not(:disabled) { background: var(--blue-soft); }
.tour-arrow:active:not(:disabled) { transform: translateY(3px); box-shadow: none; }
.tour-arrow:disabled { cursor: default; opacity: 0.32; box-shadow: none; }
.tour-arrow svg { width: 20px; height: 20px; }
.tour-shell { position: relative; min-width: 0; }
.tour-shell::before,
.tour-shell::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 22px;
  z-index: 4;
  width: 46px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.tour-shell::before { left: 0; background: linear-gradient(90deg, var(--paper), transparent); }
.tour-shell::after { right: 0; background: linear-gradient(270deg, var(--paper), transparent); }
.tour-shell.has-left::before,
.tour-shell.has-right::after { opacity: 1; }

.tour {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 27%);
  grid-template-columns: none;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 24px;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--blue) var(--sand);
  scrollbar-width: thin;
}
.stop {
  min-width: 0;
  gap: 12px;
  scroll-snap-align: start;
}
.stop .phone {
  border-radius: 22px;
  box-shadow: 0 5px 0 var(--sand);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.stop:hover .phone { transform: translateY(-4px); }
.stop h3 { padding-inline: 4px; }
.stop p { padding-inline: 4px; font-size: 14.5px; }

.class-story {
  display: grid;
  overflow: hidden;
  border: 2px solid var(--outline);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 6px 0 var(--sand);
}
.class-visual { margin: 0; min-height: 260px; overflow: hidden; background: var(--blue-soft); }
.class-visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 44%; }
.class {
  display: block;
  grid-template-columns: minmax(0, 1fr);
  padding: 26px 22px 30px;
  border: 0;
  border-radius: 0;
  background: var(--card);
}
.class-main { width: 100%; gap: 24px; justify-items: stretch; }
.steps { width: 100%; gap: 16px; }
.steps li { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; line-height: 1.5; }
.steps li::before {
  width: 34px;
  height: 34px;
  border: 2px solid var(--blue);
  background: var(--blue-soft);
  color: var(--blue-deep);
}
.class-actions { display: grid; gap: 14px; width: 100%; }
.class-actions .btn { width: 100%; }
.board {
  padding: 16px 14px;
  border-width: 6px;
  background: #284c38;
}
.board b { font-size: 26px; }
.privacy-note {
  display: block;
  padding-left: 18px;
  border-left: 4px solid var(--blue);
  color: var(--ink2);
}
.privacy-note a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

footer {
  padding-top: 30px;
  gap: 14px;
}
footer .brand { width: fit-content; margin-bottom: 8px; }
footer p a { display: inline-flex; align-items: center; min-height: 44px; }

@media (min-width: 680px) {
  .topbar .in { padding-inline: 24px; }
  .audience { display: flex; }
  .wrap { padding-inline: 24px; padding-top: 54px; }
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr); gap: 52px; }
  .hero-art { justify-self: end; }
  .hero-art .arci { left: -15%; width: 50%; }
  .class-story { grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr); }
  .class-visual { min-height: 560px; }
  .class { display: grid; align-items: center; padding: 36px; }
}

@media (min-width: 1000px) {
  .topbar .in { padding-inline: 30px; }
  .wrap { padding-inline: 30px; gap: 118px; }
  .hero { min-height: 650px; grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr); }
  .hero-art { width: min(100%, 460px); }
  .hero-art .arci { left: -24%; width: 58%; }
  .tour { grid-auto-columns: minmax(220px, 23%); }
  .class-main { grid-template-columns: minmax(0, 1fr) minmax(205px, 0.72fr); align-items: center; gap: 24px; }
  .class-actions { grid-template-columns: 1fr; align-items: stretch; align-self: center; }
  .board { align-content: center; }
}

@media (max-width: 679px) {
  .brand span { display: none; }
  .hero { min-height: auto; }
  .hero-art { justify-self: center; padding-bottom: 96px; }
  .tour-toolbar { align-items: flex-end; }
  .tour-hint { max-width: 15ch; line-height: 1.35; }
  .tour { grid-auto-columns: minmax(210px, 72%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .stop .phone, .skip, .tour-arrow, .tour-shell::before, .tour-shell::after { transition: none; }
}
