@font-face { font-family: 'Baloo2'; src: url('fonts/Baloo2-ExtraBold.ttf?v=abac632') format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('fonts/Nunito-Bold.ttf?v=abac632') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('fonts/Nunito-ExtraBold.ttf?v=abac632') format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('fonts/Nunito-Black.ttf?v=abac632') format('truetype'); font-weight: 900; font-display: swap; }

:root {
  --primary: #0E9E9A; --shade: #0A7673; --soft: #E3F6F5; --pline: #9ED9D6; --pring: #BFE8E6;
  --success: #2FB45A; --error: #E5484D; --reward: #FFC22E; --streak: #FFA41B;
  --ink: #1E2340; --muted: #5B6078; --body: #3A3F5C; --surface: #FBF8F4; --line: #E8E2DA; --line2: #EFEAE3;
}
* { box-sizing: border-box; }
html { overflow-x: clip; }
body { margin: 0; font-family: 'Nunito', system-ui, sans-serif; font-weight: 700; color: var(--ink); background: var(--surface); overflow-x: clip; }
img { max-width: 100%; }
a { color: inherit; }
.wrap-wide { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

.ico { display: inline-block; width: 18px; height: 18px; background: currentColor; flex: none;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ico-lang { --i: url(icons/lang.svg?v=abac632); } .ico-down { --i: url(icons/down.svg?v=abac632); } .ico-list { --i: url(icons/list.svg?v=abac632); }
.ico-sign { --i: url(icons/sign.svg?v=abac632); } .ico-exam { --i: url(icons/exam.svg?v=abac632); } .ico-rotate { --i: url(icons/rotate.svg?v=abac632); }
.ico-cal { --i: url(icons/cal.svg?v=abac632); } .ico-flame { --i: url(icons/flame.svg?v=abac632); } .ico-school { --i: url(icons/school.svg?v=abac632); }
.ico-alert { --i: url(icons/alert.svg?v=abac632); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 2px solid var(--line2); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 34px/1 'Baloo2', sans-serif; }
.lang { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font: 700 14px 'Nunito', sans-serif; color: var(--muted); cursor: pointer; }
.lang-btn b { color: var(--ink); font-weight: 900; }
.lang-menu { position: absolute; right: 0; top: 52px; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 6px; display: grid; min-width: 170px; box-shadow: 0 6px 0 var(--line); }
.lang-menu[hidden] { display: none; }
.lang-menu button { text-align: left; border: 0; background: transparent; font: 800 15px 'Nunito', sans-serif; color: var(--ink); padding: 12px; border-radius: 10px; cursor: pointer; min-height: 48px; }
.lang-menu button:hover, .lang-menu button.on { background: var(--soft); color: var(--shade); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px 72px; padding: clamp(40px, 6vw, 80px) 20px clamp(56px, 7vw, 88px); }
.hero-art { position: relative; width: min(440px, 86vw); aspect-ratio: 1; }
.hero-road { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-koto { position: absolute; left: 8%; top: 2%; width: 84%; }
.hero-text { width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; text-align: center; }
h1 { font: 800 clamp(34px, 4.4vw, 46px)/1.15 'Baloo2', sans-serif; margin: 0 0 18px; }

/* Buttons */
.btn { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 24px; border-radius: 16px; text-decoration: none; font: 900 15px 'Nunito', sans-serif; letter-spacing: .06em; text-transform: uppercase; width: 100%; max-width: 340px; margin: 0 auto; transition: filter .1s, transform .07s, box-shadow .07s; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(5px); box-shadow: none !important; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 5px 0 var(--shade); }
.btn-secondary { background: #fff; color: var(--shade); border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); }
.btn-white { background: #fff; color: var(--shade); box-shadow: 0 5px 0 var(--pline); width: auto; display: inline-flex; margin: 0; }

/* Facts */
.facts { border-top: 2px solid var(--line2); border-bottom: 2px solid var(--line2); }
.facts-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; padding: 18px 20px; font: 900 14px 'Nunito', sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.facts-row > span { display: flex; align-items: center; gap: 8px; }
.facts-row .ico { color: var(--primary); }

/* Features */
.feature { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px 56px; padding: clamp(56px, 8vw, 88px) 20px; }
.feature-rev { flex-direction: row-reverse; }
.feature-text { flex: 1 1 320px; max-width: 440px; }
.feature-art { flex: 0 1 380px; position: relative; }
h2 { font: 800 clamp(30px, 3.6vw, 40px)/1.12 'Baloo2', sans-serif; color: var(--shade); margin: 0 0 16px; }
.feature p { font: 700 18px/1.55 'Nunito', sans-serif; color: var(--body); margin: 0; }
.card { background: #fff; border: 2px solid var(--line); border-radius: 22px; box-shadow: 0 5px 0 var(--line); }
.deco { position: absolute; width: clamp(88px, 11vw, 120px); }
.deco-left { left: -48px; bottom: -36px; }
.deco-right { right: -40px; bottom: -40px; }

.lesson-card { padding: 16px; }
.dots { display: flex; gap: 6px; align-items: center; margin-bottom: 12px; }
.dots i { width: 9px; height: 9px; border-radius: 99px; background: #D3CBC0; }
.dots i.wide { width: 22px; background: var(--primary); }
.dots i.on { background: var(--primary); }
.dots i.diamond { width: 10px; height: 10px; border-radius: 2px; background: var(--reward); transform: rotate(45deg); }
.lesson-sign { background: #F1ECE5; border-radius: 16px; display: grid; place-items: center; padding: 18px; }
.lesson-sign img { width: 120px; }
.lesson-card p { font: 800 17px/1.4 'Nunito', sans-serif; color: var(--ink); margin: 14px 4px 4px 64px; }

.scene { width: 100%; height: auto; display: block; padding: 0; overflow: hidden; }

.stack { display: grid; gap: 12px; }
.review { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--soft); border-color: var(--pline); box-shadow: 0 5px 0 var(--pline); }
.review b { display: block; font: 800 20px 'Baloo2', sans-serif; color: var(--shade); }
.review small { font: 800 13px 'Nunito', sans-serif; color: var(--shade); }
.ico-box { width: 44px; height: 44px; border-radius: 12px; background: var(--primary); color: #fff; display: grid; place-items: center; }
.ico-box .ico { width: 22px; height: 22px; }
.steps, .streak { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font: 800 15px 'Nunito', sans-serif; color: var(--muted); }
.pills { margin-left: auto; display: flex; gap: 6px; }
.pills i { font-style: normal; min-width: 34px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: #F1ECE5; color: #8B90A8; font-weight: 900; }
.pills i.on { background: var(--success); color: #fff; }
.streak .ico { color: var(--streak); }
.streak b { color: var(--ink); }
.fire { margin-left: auto; color: var(--streak); letter-spacing: 2px; }

.exam-art { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.exam-koto { width: clamp(140px, 16vw, 180px); }
.score { width: 100%; padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.score b { font: 800 22px 'Baloo2', sans-serif; color: #1F8A42; }
.score .num { font: 800 34px/1 'Baloo2', sans-serif; }
.score .num small { font-size: 18px; color: #8B90A8; }
.bar { grid-column: 1 / -1; height: 12px; border-radius: 99px; background: #EFEAE3; overflow: hidden; }
.bar i { display: block; height: 100%; width: 85%; background: var(--success); border-radius: 99px; }

/* Driving schools */
.school { background: var(--ink); color: #fff; padding: clamp(56px, 8vw, 80px) 0; }
.school-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 56px; }
.school-text { flex: 1 1 320px; max-width: 460px; }
.school h2 { color: #fff; }
.school p { font: 700 18px/1.55 'Nunito', sans-serif; color: #C9CCE0; margin: 0 0 22px; }
.tag { display: inline-flex; align-items: center; gap: 6px; background: var(--reward); color: var(--ink); font: 900 12px 'Nunito', sans-serif; text-transform: uppercase; letter-spacing: .06em; padding: 6px 10px; border-radius: 8px; margin-bottom: 14px; }
.tag .ico { width: 14px; height: 14px; }
.students { flex: 0 1 380px; width: 100%; background: #2A2F52; border-radius: 20px; padding: 10px 14px; }
.student { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.student b { flex: 1; font-weight: 800; }
.av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 900 12px 'Nunito', sans-serif; }
.sc { font-weight: 900; display: flex; align-items: center; gap: 6px; }
.sc.ok { color: #6EDB8F; } .sc.mid { color: var(--reward); } .sc.bad { color: #FF8A8E; }
.sc .ico { width: 16px; height: 16px; }

/* Final call */
.final { background: var(--primary); color: #fff; text-align: center; padding: clamp(56px, 8vw, 88px) 0; }
.final-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.final img { width: clamp(150px, 18vw, 200px); }
.final h2 { color: #fff; font-size: clamp(34px, 4.6vw, 52px); margin: 0; }

/* Footer */
.foot { background: var(--shade); color: #D3F0EE; padding: 48px 0 24px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.foot-grid > div { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.foot-grid b { color: #fff; font-weight: 900; }
.foot-grid a, .foot-grid button { color: #D3F0EE; text-decoration: none; font: 700 15px 'Nunito', sans-serif; background: none; border: 0; padding: 0; cursor: pointer; }
.foot-grid a:hover, .foot-grid button:hover { color: #fff; }
.foot-copy { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 13px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .3s cubic-bezier(.33, 1, .68, 1), transform .3s cubic-bezier(.33, 1, .68, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .btn { transition: none; } }

@media (max-width: 760px) {
  .deco-left { left: -12px; bottom: -44px; }
  .deco-right { right: -8px; bottom: -48px; }
  .feature-art { flex-basis: 100%; }
  .feature-text { max-width: none; }
  .lang-btn > span[data-i18n] { display: none; }
}
