@font-face { font-family: "Inter Display"; src: url("assets/fonts/Inter-Black.otf") format("opentype"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("assets/fonts/Inter-ExtraBold.otf") format("opentype"); font-weight: 800; font-display: swap; }

:root {
  --navy: #0A143C; --navy2: #16245a; --yellow: #FFC828; --red: #E11E2D; --green: #1E9646;
  --cream: #FDF3DE; --paper: #FFFBF2; --ink: #0A143C; --muted: #55607a; --line: #e6dcc6;
  --radius: 18px; --max: 1120px;
  --display: "Inter Display", "Segoe UI", system-ui, sans-serif;
  --body: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-weight: 900; font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
h2 { font-weight: 900; font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-weight: 800; font-size: 1.15rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.de { font-weight: 700; }

/* header */
.site-head { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 10; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 1.15rem; }
.brand img { width: 42px; height: 42px; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.nav a:hover { background: var(--navy2); }
.nav a[aria-current="page"] { background: var(--yellow); color: var(--navy); }
.menu-btn { display: none; background: none; border: 2px solid #fff3; color: #fff; border-radius: 10px; padding: 6px 12px; font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); flex-direction: column; padding: 8px 16px 16px; }
  .nav.open { display: flex; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer; font: 800 1rem var(--body); transition: transform .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #ffffff55; }
.btn-navy { background: var(--navy); color: #fff; }

/* hero */
.hero { background: var(--navy); color: #fff; padding: 64px 0 84px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero .kicker { display: inline-block; background: var(--red); color: #fff; font-weight: 800; font-size: .85rem; padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; letter-spacing: .03em; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero p.lead { font-size: 1.2rem; color: #d5dbef; max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-card { background: #fff; color: var(--navy); border-radius: 22px; padding: 26px; box-shadow: 0 20px 50px #0006; transform: rotate(2deg); }
.hero-card .rule-tag { font-family: var(--display); font-weight: 900; color: var(--red); font-size: .9rem; }
.hero-card .row { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.tile { font-family: var(--display); font-weight: 800; padding: 10px 14px; border-radius: 12px; background: var(--cream); border: 2px solid var(--line); }
.tile.verb { background: var(--red); color: #fff; border-color: var(--red); }
.tile.slot { border-style: dashed; color: var(--muted); }
.hero-card .row { align-items: center; }
.hero-card .mark { width: 26px; font-size: 1.1rem; }
.hero-card .row.wrong .tile { opacity: .6; text-decoration: line-through; text-decoration-color: var(--red); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-card { transform: none; } }

/* sections */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 34px; }
.alt { background: var(--cream); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step-num { width: 42px; height: 42px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-family: var(--display); font-weight: 900; margin-bottom: 14px; }

/* progress */
.progress { height: 14px; background: #fff; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; margin: 14px 0 8px; }
.progress span { display: block; height: 100%; background: var(--green); border-radius: 999px; }

/* course */
.part { margin-bottom: 48px; }
.part h2 { display: flex; align-items: baseline; gap: 12px; }
.part h2 small { font-size: .9rem; color: var(--red); font-family: var(--body); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.lessons { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.lesson { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
a.lesson:hover { transform: translateY(-3px); box-shadow: 0 12px 26px #0a143c22; }
.lesson .thumb { aspect-ratio: 16/9; background: var(--navy); display: grid; place-items: center; color: #fff9; font-weight: 800; }
.lesson .thumb img { width: 100%; height: 100%; object-fit: cover; }
.lesson .body { padding: 14px 16px 18px; }
.lesson .num { font-size: .8rem; font-weight: 800; color: var(--red); text-transform: uppercase; letter-spacing: .05em; }
.lesson.soon { opacity: .7; }
.badge { display: inline-block; font-size: .75rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--cream); color: var(--muted); margin-top: 6px; }

/* rules */
.rules-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font: 700 .9rem var(--body); cursor: pointer; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.rule-list { display: grid; gap: 12px; }
.rule { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 14px 18px; }
.rule .n { font-family: var(--display); font-weight: 900; font-size: 1.5rem; color: var(--navy); text-align: center; }
.rule .n small { display: block; font-size: .7rem; color: var(--muted); }
.rule h3 { margin: 0 0 2px; }
.rule .ex { color: var(--muted); font-size: .95rem; }
.rule .links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.rule .links a { text-decoration: none; font-weight: 800; font-size: .85rem; padding: 7px 12px; border-radius: 999px; background: var(--yellow); }
.rule .links a.lec { background: var(--cream); }
.rule.done { border-color: var(--green); }
@media (max-width: 640px) { .rule { grid-template-columns: 48px 1fr; } .rule .links { grid-column: 1 / -1; justify-content: flex-start; } }

/* workbook + form */
.book { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .book { grid-template-columns: 1fr; } }
.cover { aspect-ratio: 3/4; max-width: 330px; background: var(--navy); color: #fff; border-radius: 10px 22px 22px 10px; padding: 30px 26px; box-shadow: 18px 18px 0 var(--yellow); display: flex; flex-direction: column; justify-content: space-between; border-left: 14px solid var(--red); }
.cover .t { font-family: var(--display); font-weight: 900; font-size: 2rem; line-height: 1.05; }
.cover .t em { color: var(--yellow); font-style: normal; }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; }
.ticks li { padding-left: 32px; position: relative; margin-bottom: 10px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; font-size: .8rem; display: grid; place-items: center; font-weight: 900; }
.waitlist { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 22px; }
.waitlist .field { display: flex; gap: 10px; flex-wrap: wrap; }
.waitlist input[type=email] { flex: 1 1 240px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 999px; font: inherit; }
.waitlist input[type=email]:focus { outline: 3px solid var(--yellow); border-color: var(--navy); }
.waitlist .consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin-top: 14px; }
.waitlist .consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.waitlist .msg { margin-top: 12px; font-weight: 700; }
.waitlist .msg.ok { color: var(--green); }
.waitlist .msg.err { color: var(--red); }
.hp { position: absolute; left: -9999px; }

/* legal */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.4rem; margin-top: 1.6em; }
.todo { background: #fff3c4; border: 2px dashed #e0b400; padding: 2px 6px; border-radius: 6px; }

/* footer */
.site-foot { background: var(--navy); color: #c9d0e6; padding: 40px 0; font-size: .92rem; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--yellow); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
