/* Public pages of LevAcademy: header, footer, cookie banner, page blocks. Tokens come from tokens.css. */
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.wrap { max-width: var(--page-width); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: var(--radius-small); z-index: 100; }
.skip-link:focus { left: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 24px; border-radius: 999px; border: 2px solid var(--accent); background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-secondary { background: var(--surface); color: var(--accent-dark); }
.btn-secondary:hover { background: var(--accent-light); color: var(--accent-dark); }
.btn-big { min-height: 56px; padding: 12px 32px; font-size: 1.15rem; }
.btn-small { min-height: 40px; padding: 6px 18px; }

/* header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.2rem; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.site-nav a { padding: 8px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; }
.site-nav a:hover { background: var(--accent-light); }
.site-nav a[aria-current="page"] { background: var(--accent-light); color: var(--accent-dark); }
.site-nav a.btn { color: var(--on-accent); padding: 6px 16px; min-height: 40px; }
.site-nav a.btn:hover { background: var(--accent-dark); }

/* footer */
.site-footer { margin-top: 64px; background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer a, .link-button { color: var(--accent-dark); }
.link-button { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

/* cookie banner */
.cookie-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; max-width: 640px; margin: 0 auto; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 24px rgba(18, 48, 47, .22); }
.cookie-banner p { margin: 0 0 12px; }
.cookie-banner .actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* hero */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.hero p.lead { font-size: 1.3rem; color: var(--muted); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-art { display: flex; justify-content: center; gap: 20px; }
.hero-art img { width: min(48%, 300px); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.hero-art img:nth-child(2) { margin-top: 48px; }
@media (min-width: 760px) {
  .hero .wrap { grid-template-columns: 1.2fr 1fr; }
}

/* sections */
.section { padding: 48px 0; }
.section > .wrap > p.intro { color: var(--muted); max-width: 40em; }
.page-head { padding-top: 36px; padding-bottom: 8px; }
.page-head p.lead { font-size: 1.15rem; color: var(--muted); max-width: 38em; }

.steps { display: grid; gap: 24px; padding: 0; margin: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 24px 72px; box-shadow: var(--shadow); }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 18px; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 800; display: grid; place-items: center; }
.steps h3 { margin-bottom: .25em; }
.steps p { margin: 0; color: var(--muted); }
@media (min-width: 760px) { .steps.three { grid-template-columns: repeat(3, 1fr); } }

.cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.card { display: flex; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
a.card:hover { border-color: var(--accent); }
.card img { width: 104px; height: 104px; border-radius: 12px; flex: none; background: var(--surface-2); }
.card h3 { margin: 0 0 .2em; }
.card p { margin: 0; color: var(--muted); }
.card .grades { display: inline-block; margin-top: 8px; padding: 2px 10px; border-radius: 999px; background: var(--accent-light); color: var(--accent-dark); font-size: .85rem; font-weight: 600; }
.cards-status { color: var(--muted); }

.feature { display: grid; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.feature img { width: 120px; height: 120px; border-radius: var(--radius); background: var(--surface-2); justify-self: center; }
.feature h2 { font-size: 1.35rem; }
.feature p:last-child, .feature ul:last-child { margin-bottom: 0; }
@media (min-width: 640px) {
  .feature { grid-template-columns: 140px 1fr; }
  .feature:nth-of-type(even) { grid-template-columns: 1fr 140px; }
  .feature:nth-of-type(even) img { order: 2; }
}

.callout { background: var(--accent-light); border-radius: var(--radius); padding: 24px; text-align: center; }
.callout .hero-actions { justify-content: center; }
.notice { background: var(--surface-2); border-left: 4px solid var(--yellow); border-radius: var(--radius-small); padding: 12px 16px; color: var(--ink); }

/* long text pages */
.prose { max-width: 44em; padding-bottom: 8px; }
.prose h2 { margin-top: 1.8em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.draft-note { background: #fff6d6; border: 1px solid var(--yellow); border-radius: var(--radius-small); padding: 8px 14px; font-size: .95rem; }
mark.placeholder { background: #fff0a8; color: var(--ink); padding: 1px 6px; border-radius: 6px; }
.cards + p, .callout + .notice, .cards + .notice { margin-top: 16px; }
.callout { margin-bottom: 16px; }
