:root {
  color-scheme: light;
  --ink: #182746;
  --muted: #526079;
  --violet: #5737c7;
  --violet-deep: #352471;
  --lavender: #eee8ff;
  --mint: #65e7c2;
  --honey: #ffd17d;
  --line: #ded9ed;
  --paper: #fff;
  --shadow: 0 18px 55px rgb(39 25 98 / .10);
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--violet); text-underline-offset: .16em; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #6c50dc; outline-offset: 4px; }
[id] { scroll-margin-top: 1.4rem; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 4.75rem); }
h2 { font-size: clamp(1.85rem, 4vw, 3.25rem); }
h3 { font-size: 1.25rem; }
p { color: var(--muted); }
.wrap { width: min(1140px, calc(100% - 64px)); margin-inline: auto; }
.narrow { width: min(620px, calc(100% - 48px)); }
.block { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 5; inset: 1rem auto auto 1rem; padding: .8rem 1.2rem; background: white; border-radius: .75rem; }

.site-header { background: #fcfaff; border-bottom: 1px solid #e8e1f8; }
.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 82px; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; min-width: 0; }
.brand img { width: clamp(158px, 21vw, 218px); }
.main-nav { display: flex; gap: clamp(1rem, 3.2vw, 2.5rem); }
.main-nav a { font-weight: 650; color: var(--ink); text-decoration: none; }
.main-nav a:hover, .text-link:hover { text-decoration: underline; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 52px;
  padding: .75rem 1.3rem;
  border: 1px solid transparent;
  border-radius: .9rem;
  background: var(--violet);
  color: white;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
.button:hover:not(:disabled) { background: #4527aa; color: #fff; }
.button-small { min-height: 42px; padding: .6rem .95rem; font-size: .9rem; }
.button-outline { border-color: #cfc0ef; color: var(--violet); background: white; }
.button-light { background: white; color: var(--violet); }
.button:disabled { background: #e7e1f4; color: #51426f; }
.text-link { font-weight: 700; text-decoration: none; }
.eyebrow, .pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 100px;
  background: var(--lavender);
  color: #43279e;
  padding: .4rem .78rem;
  font-size: .8rem;
  font-weight: 750;
  line-height: 1.25;
}
.eyebrow-dot { height: .55rem; width: .55rem; background: #6c47e4; border-radius: 50%; }

.hero { background: radial-gradient(ellipse at 80% 16%, #e9dcff, transparent 46%), #f9f6ff; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3.3rem, 7vw, 6.4rem) 5.7rem; }
.hero h1 { margin-top: .65rem; font-size: clamp(4rem, 8.8vw, 7.75rem); line-height: .91; letter-spacing: -.075em; }
.hero h1 em { color: var(--violet); font-style: normal; }
.lead { font-size: clamp(1.06rem, 2vw, 1.23rem); line-height: 1.65; margin-top: 1.25rem; max-width: 48ch; }
.actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; }
.play { font-size: .8rem; }
.hero-note { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .65rem; margin-top: 1.1rem; font-size: .89rem; }
.hero-note span { color: #0e6b57; font-weight: 800; }
.hero-note span:not(:first-child) { margin-left: .6rem; }
.hero-art {
  position: relative;
  isolation: isolate;
  padding: 3.45rem 1.5rem 3.4rem;
  border-radius: 2rem;
  background: linear-gradient(137deg, #31216b, #6545dc 76%, #7655eb);
  box-shadow: 0 24px 55px rgb(61 41 153 / .21);
}
.art-halo { position: absolute; width: 7rem; height: 7rem; border: 1px solid #d6c5ff; border-radius: 50%; top: -19px; right: 14px; z-index: -1; opacity: .55; }
.sample-label { position: absolute; top: 1rem; left: 1.5rem; color: white; font-weight: 670; font-size: .84rem; }
.sample-label span { display: inline-block; background: var(--mint); width: .5rem; height: .5rem; border-radius: 50%; margin-right: .35rem; }
.hero-image { display: block; border-radius: .95rem; overflow: hidden; box-shadow: 0 10px 32px rgb(18 10 68 / .28); border: 1px solid rgb(255 255 255 / .4); }
.hero-image img { width: 100%; }
.phrase-card { position: absolute; right: 1.3rem; bottom: -.75rem; display: flex; align-items: center; gap: .75rem; padding: .65rem .95rem; border-radius: 1.05rem; background: #fff; box-shadow: var(--shadow); }
.phrase-icon { display: grid; place-items: center; width: 2.55rem; height: 2.55rem; border-radius: .72rem; background: #d8faef; color: #166352; font-size: 1.55rem; font-weight: 750; }
.phrase-card strong, .phrase-card div span { display: block; }
.phrase-card div span { color: var(--muted); font-size: .8rem; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #e6def5; border-radius: 1.3rem; background: white; position: relative; margin-top: -2rem; box-shadow: var(--shadow); padding: 1.25rem .6rem; }
.facts div { display: grid; padding: .2rem 1.1rem; justify-items: center; text-align: center; }
.facts div + div { border-left: 1px solid #e6def5; }
.facts strong { color: var(--violet); font-size: clamp(1.2rem, 3vw, 1.8rem); font-weight: 760; }
.facts span { font-size: .86rem; color: var(--muted); }
.sample-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5.5vw, 5rem); align-items: center; }
.sample-copy h2, .section-heading h2, .offer-copy h2, .faq-grid h2 { margin-top: .8rem; }
.sample-copy p, .section-heading p, .offer-copy p { margin-top: 1rem; font-size: 1.05rem; }
.teacher { margin-top: 1.5rem; display: flex; align-items: center; gap: .8rem; }
.teacher img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; object-position: 50% 33%; }
.teacher strong, .teacher span { display: block; }
.teacher span { color: var(--muted); font-size: .84rem; }
.video-frame { overflow: hidden; border-radius: 1.25rem; background: #181535; box-shadow: var(--shadow); }
.video-frame video { width: 100%; aspect-ratio: 16 / 9; }
.stream-player { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; background: #182746; }
.video-frame figcaption { display: flex; gap: .8rem; justify-content: space-between; padding: .65rem 1rem; font-size: .85rem; color: #f6f1ff; }
.ai-disclosure { margin-bottom: .55rem; font-size: .85rem; line-height: 1.45; }
.sample-next { margin-top: 1rem; }

.curriculum-band { background: #f8f5ff; border-block: 1px solid #e9e1f8; }
.section-heading { max-width: 66ch; margin-bottom: 2rem; }
.section-heading h1 { margin-top: .55rem; }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 1rem; }
.module { background: white; border: 1px solid #e5ddef; border-radius: 1rem; }
summary { cursor: pointer; }
.module summary { list-style: none; padding: 1.05rem 1.2rem; display: flex; align-items: center; gap: .9rem; }
.module summary::-webkit-details-marker { display: none; }
.module summary::after { content: "+"; font-size: 1.45rem; color: var(--violet); margin-left: auto; line-height: 1; }
.module[open] summary::after { content: "−"; }
.module-number { flex: 0 0 auto; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; font-weight: 780; border-radius: .8rem; background: #e9dfff; color: #4b2baf; }
.module:nth-child(3n + 2) .module-number { background: #d6f8ef; color: #116c61; }
.module:nth-child(3n + 3) .module-number { background: #ffefd6; color: #82430e; }
.module-heading strong, .module-heading small, .module-lessons small { display: block; }
.module-heading small, .module-lessons small { color: var(--muted); }
.module-lessons { padding: 0 1.25rem 1.15rem; margin: 0; list-style: none; }
.module-lessons li { display: flex; gap: .65rem; border-top: 1px solid #f0ecf8; padding-block: .65rem; }
.module-lessons li > span { color: var(--violet); font-variant-numeric: tabular-nums; }

.offer-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(2rem, 7vw, 6rem); }
.check-list { margin: 1.4rem 0 0; padding: 0; list-style: none; }
.check-list li { display: flex; gap: .65rem; padding-block: .4rem; }
.check-list li::before { content: "✓"; color: #0c6a54; font-weight: 800; }
.workbook-preview { margin-top: 1.2rem; }
.workbook-preview-pages { display: grid; grid-template-columns: repeat(2, minmax(0, 122px)); gap: .8rem; }
.workbook-preview-pages a { display: grid; gap: .5rem; padding: .45rem; border: 1px solid var(--line); border-radius: .7rem; color: var(--ink); text-decoration: none; background: white; }
.workbook-preview-pages a:hover { border-color: var(--violet); }
.workbook-preview-pages img { width: 100%; border-radius: .2rem; }
.workbook-preview-pages span { font-size: .76rem; font-weight: 650; line-height: 1.35; }
.offer-copy .workbook-preview p { margin-top: .55rem; font-size: .8rem; }
.workbook-dialog { width: min(720px, calc(100vw - 2rem)); max-width: none; max-height: 92vh; padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: white; color: var(--ink); font: inherit; box-shadow: var(--shadow); }
.workbook-dialog::backdrop { background: rgb(24 39 70 / .65); }
.workbook-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.workbook-dialog-heading strong { line-height: 1.3; }
.workbook-dialog-body { max-height: calc(92vh - 6rem); overflow: auto; overscroll-behavior: contain; border-radius: .35rem; background: var(--lavender); }
.workbook-dialog-body img { width: 100%; height: auto; }
html:has(.workbook-dialog[open]) { overflow: hidden; scrollbar-gutter: stable; }
.offer-card { display: grid; justify-items: start; gap: .85rem; border-radius: 1.6rem; background: #25194f; padding: clamp(1.4rem, 4vw, 2.4rem); color: white; box-shadow: var(--shadow); }
.offer-card p, .offer-card small { color: #e4daf9; }
.offer-card .pill { background: var(--honey); color: #4a2a17; }
.offer-card .price { color: white; font-size: clamp(2.6rem, 7vw, 4.5rem); line-height: 1.08; font-weight: 800; letter-spacing: -.06em; }
.offer-card .offer-terms { display: grid; gap: .15rem; font-size: .9rem; line-height: 1.4; }
.offer-stock { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .75rem; width: 100%; padding: .6rem .85rem; margin-top: .25rem; border-radius: .7rem; background: #3a2b65; font-size: .9rem; line-height: 1.4; }
.offer-stock strong { color: var(--mint); font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.offer-line { width: 100%; border-top: 1px solid #5b477c; margin-block: .15rem; }
.offer-button { width: 100%; }
.offer-card .offer-button:not(:disabled) { background: var(--mint); color: var(--ink); }
.offer-card .offer-button:hover:not(:disabled) { background: #9bf2d8; }
.offer-card .offer-button:focus-visible { outline-color: var(--mint); }
.offer-card .offer-note { font-size: .9rem; }
.faq-grid { border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: 2rem; }
.faq-list details { border-bottom: 1px solid var(--line); padding-block: .95rem; }
.faq-list summary { font-weight: 720; }
.faq-list p { padding: .6rem 0 0 1.1rem; }

.site-footer { border-top: 1px solid var(--line); background: #f7f4ff; padding-block: 2.5rem; }
.footer-grid { display: grid; grid-template-columns: .95fr 1.25fr .8fr; gap: 2rem; }
.footer-brand img { width: 196px; }
.partner-logos { display: flex; align-items: flex-end; flex-wrap: wrap; gap: .95rem; margin-top: .7rem; }
.partner-logos img { display: block; height: auto; }
.site-production-note { margin-top: .75rem; font-size: .78rem; }
/* The book icon extends two pixels below the Učiteľ lettering at this width. */
.partner-merkle { margin-block-end: 2.125px; }
.seller-details { display: grid; font-size: .85rem; line-height: 1.55; gap: .22rem; }
.seller-details address { font-style: normal; }
.footer-nav { display: grid; align-content: start; gap: .4rem; font-size: .9rem; }

.account-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .86fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.account-grid h1, .panel h1 { margin-top: .55rem; }
.card { border: 1px solid #e2daef; border-radius: 1.25rem; background: white; box-shadow: var(--shadow); }
.panel { padding: clamp(1.2rem, 3vw, 2rem); }
.panel h2 { font-size: 1.52rem; }
.panel p, .panel .button, .panel .text-link, .panel h2 { margin-top: .65rem; }
.notice { color: #4a337d; background: #f4edff; padding: .75rem .85rem; border-radius: .7rem; }
.field-list { display: grid; border: 0; padding: 0; margin: 1rem 0; gap: .75rem; }
.field-list label { display: grid; gap: .3rem; font-weight: 650; }
.field-list input, .field-list select, .field-list textarea { width: 100%; border: 1px solid var(--line); border-radius: .6rem; min-height: 43px; padding: .55rem .7rem; background: #f9f7ff; font: inherit; }
.preview-bar { margin-top: 1rem; padding: .55rem .8rem; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; border-radius: .8rem; background: #fff1d9; color: #673c10; font-size: .84rem; }
.preview-bar nav, .admin-nav { display: flex; flex-wrap: wrap; gap: .45rem .8rem; }
.preview-bar a { font-weight: 650; }
.preview-bar a[aria-current] { text-decoration-thickness: .15em; }
.dashboard-grid, .admin-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.dashboard-main { background: #f2ecff; }
.data-list { display: grid; grid-template-columns: minmax(5rem, 1fr) 1.45fr; gap: .35rem .8rem; font-size: .9rem; }
.data-list dd { margin: 0; overflow-wrap: anywhere; }
.data-list dt { font-weight: 680; }
.history, .admin-nav { margin-top: 1rem; }
.admin-nav { margin-bottom: 1.2rem; }
.admin-nav a { padding: .45rem .7rem; border-radius: .55rem; background: var(--lavender); font-weight: 670; text-decoration: none; }
.admin-nav a[aria-current="page"] { color: white; background: var(--violet); }
.admin-filters { grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); align-items: end; }
.table-scroll { overflow: auto; margin-top: 1rem; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .65rem .6rem; border-bottom: 1px solid var(--line); }
th { background: #f7f3ff; }
.admin-order-table { container-type: inline-size; }
.admin-order-number { white-space: nowrap; font-weight: 680; }
.admin-order-selected { background: var(--lavender); }
.admin-order-editor { position: sticky; inset-inline-start: .6rem; max-width: calc(100cqw - 1.2rem); background: #f9f7ff; }
.admin-order-editor h3:not(:first-child) { margin-top: 1.4rem; }

.course-block { padding-block: 2.3rem 5rem; }
.course-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; }
.course-head h1 { margin-top: .45rem; font-size: clamp(2rem, 5vw, 3.6rem); }
.course-progress { width: min(215px, 100%); color: var(--muted); font-size: .85rem; }
.course-progress progress { display: block; accent-color: var(--violet); width: 100%; }
.course-grid { display: grid; grid-template-columns: minmax(225px, .42fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.course-sidebar { overflow: hidden; }
.course-sidebar h2 { font-size: 1.2rem; padding: 1rem; }
.course-list { max-height: 550px; overflow-y: auto; padding: 0 .7rem .8rem; }
.course-list details { margin-top: .4rem; }
.course-list summary { padding: .4rem; font-size: .86rem; font-weight: 710; }
.lesson-link { display: grid; grid-template-columns: 1.55rem minmax(0, 1fr) 1rem; gap: .35rem; padding: .55rem .5rem; border-radius: .55rem; font-size: .87rem; color: var(--ink); text-decoration: none; }
.lesson-index { color: #5e4c87; font-variant-numeric: tabular-nums; }
.lesson-link[aria-current], .lesson-link:hover { background: #eee8ff; color: #43279e; }
.lesson-tick { color: #12614f; font-weight: 780; }
.lesson-heading { margin-bottom: .75rem; }
.lesson-heading h2 { font-size: clamp(1.5rem, 3.8vw, 2.45rem); margin-top: .4rem; }
.lesson-notes { margin-top: 1rem; }
.lesson-notes small { display: block; margin-top: .5rem; color: var(--muted); }
.player-placeholder { display: grid; justify-items: start; align-content: center; gap: 1rem; min-height: 240px; padding: 2rem; border-radius: 1.2rem; background: #25194f; }
.player-placeholder p { color: #f0e8ff; }

.missing-page { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(1.8rem, 5vw, 4.5rem); }
.missing-page h1 { margin: .65rem 0 1rem; font-size: clamp(2.4rem, 5vw, 4.7rem); }
.missing-card { display: grid; justify-items: start; gap: .35rem; padding: clamp(1.5rem, 4vw, 3rem); border-radius: 1.65rem; background: #eee8ff; }
.missing-code { color: #5737c7; font-size: clamp(4.5rem, 10vw, 8rem); font-weight: 850; letter-spacing: -.08em; line-height: 1; }
.missing-phrase { padding: .2rem .6rem; border-radius: .4rem; background: #65e7c2; font-size: 1.25rem; font-weight: 800; }
@media (max-width: 650px) { .missing-page { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 820px) {
  .main-nav { display: none; }
  .hero-grid, .sample-grid, .offer-grid, .faq-grid, .account-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 2.3rem; }
  .hero h1 { font-size: clamp(3.8rem, 13vw, 6.5rem); }
  .hero-art { max-width: 570px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .wrap { width: calc(100% - 36px); }
  .topbar { min-height: 67px; gap: .6rem; }
  .button-small { padding-inline: .65rem; white-space: nowrap; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: .85rem; }
  .facts div { padding-inline: .4rem; }
  .facts div:nth-child(3) { border-left: 0; }
  .module-grid, .footer-grid, .dashboard-grid, .admin-cards, .course-grid { grid-template-columns: minmax(0, 1fr); }
  .course-head { align-items: start; flex-direction: column; }
  .course-list { max-height: 185px; }
  .course-player { grid-row: 1; }
  .hero-art { padding: 2.85rem .85rem 2.9rem; border-radius: 1.35rem; }
  .sample-label { left: .9rem; top: .85rem; }
  .phrase-card { padding: .45rem .65rem; }
  .phrase-icon { width: 2rem; height: 2rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
