/*
 * Homepage pro neprihlaseneho uzivatele (#4514)
 *
 * Samostatny stylesheet – NENI soucasti grunt buildu (styles.css) a nenacita se nikde jinde.
 * Zdroj: ai-guidelines/issues/4514/navrh/projekt/app/globals.css (nazvy trid zachovany kvuli porovnani s navrhem).
 *
 * - Vse je scopovane pod .hpg (wrapper stranky), aby styly nezasahly do modalu prihlaseni/registrace,
 *   ktery se vklada do <body> mimo wrapper.
 * - Zadne rem: globalni styles.css (lazy nacitany pro modal) nastavuje html { font-size: 8px }.
 * - Tailwind preflight z navrhu je nahrazeny resetem nize.
 */

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/roboto-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/roboto-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Reset (nahrada Tailwind preflight) */
body.hpg-body { margin: 0; background: #fffaf0; overflow-x: hidden; }
.hpg { --font-roboto: "Roboto"; line-height: 1.5; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.hpg *, .hpg *::before, .hpg *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
.hpg h1, .hpg h2, .hpg h3, .hpg p, .hpg blockquote { font-size: inherit; font-weight: inherit; line-height: inherit; }
.hpg b, .hpg strong { font-weight: bolder; }
.hpg small { font-size: 80%; }
.hpg ul, .hpg ol { list-style: none; }
.hpg img, .hpg svg, .hpg iframe { display: block; vertical-align: middle; }
.hpg img { height: auto; }
.hpg button, .hpg input { color: inherit; letter-spacing: inherit; border-radius: 0; background-color: transparent; }
.hpg button, .hpg summary { cursor: pointer; }
.hpg [hidden] { display: none !important; }
.hpg [id] { scroll-margin-top: 90px; }

/* Modalove stranky (modal-shell): obal pro obsah modalu nesmi nic zabirat */
body.hpg-body > .document, body.hpg-body .document__sidebar-wrap, body.hpg-body .main-content { margin: 0; padding: 0; min-height: 0; background: none; box-shadow: none; }
body.hpg-body .main-content:empty { display: none; }

.hpg {
  --section-heading-size: clamp(28px, 3.3vw, 42px);
  --cream: #fffaf0;
  --cream-deep: #fff3d7;
  --ink: #17221d;
  --muted: #5e6b64;
  --line: #e9e4d8;
  --yellow: #ffd83d;
  --yellow-dark: #e8b900;
  --blue: #3159d9;
  --blue-dark: #203ca0;
  --green: #207b52;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(36, 44, 39, .12);
}

.hpg ::selection { background: var(--yellow); color: var(--ink); }
.hpg ::-moz-selection { background: var(--yellow); color: var(--ink); }
html { scroll-behavior: smooth; }
.hpg { color: var(--ink); font-family: var(--font-roboto), "Roboto", Arial, sans-serif; }
.hpg button, .hpg input { font: inherit; }
.hpg main h2 { font-size: var(--section-heading-size); line-height: 1.12; }
.hpg a { color: inherit; text-decoration: none; }
.hpg img { display: block; max-width: 100%; }
.hpg .container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.hpg .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hpg .skip-link { position: fixed; left: 18px; top: -70px; z-index: 1000; background: var(--ink); color: white; padding: 12px 16px; border-radius: 10px; }
.hpg .skip-link:focus { top: 12px; }
.hpg :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.hpg .site-header { padding: 0; position: sticky; top: 0; z-index: 50; background: rgba(255, 250, 240, .9); border-bottom: 1px solid rgba(23, 34, 29, .08); backdrop-filter: blur(18px); }
.hpg .header-inner { min-height: 78px; display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 28px; }
.hpg .brand { display: flex; width: 150px; height: 48px; align-items: center; flex: 0 0 auto; }
.hpg .brand img { width: 145px; filter: brightness(0); }
.hpg .desktop-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 700; }
.hpg .desktop-nav a, .hpg .login-link { position: relative; padding-block: 14px; }
.hpg .desktop-nav a::after, .hpg .login-link::after { content: ""; position: absolute; height: 2px; left: 0; right: 100%; bottom: 7px; background: var(--blue); transition: right .2s ease; }
.hpg .desktop-nav a:hover::after, .hpg .login-link:hover::after { right: 0; }
.hpg .header-actions { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 700; }
.hpg .button { font-size: inherit; line-height: normal; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: 14px; padding: 0 22px; background: var(--yellow); color: var(--ink); font-weight: 800; box-shadow: 0 5px 0 var(--ink); transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.hpg .button:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); background: #ffe26a; }
.hpg .button:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.hpg .button-secondary { background: white; }
.hpg .button-secondary:hover { background: var(--cream-deep); }
.hpg .button-small { min-height: 42px; border-radius: 12px; padding-inline: 18px; box-shadow: 0 4px 0 var(--ink); }
.hpg .menu-button { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--ink); background: white; font-size: 24px; cursor: pointer; }
.hpg .mobile-menu { display: none; }

.hpg .hero { min-height: 550px; position: relative; display: flex; align-items: center; padding: 22px 0 30px; overflow: hidden; }
.hpg .hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 54px; }
.hpg .hero-copy { max-width: 660px; }
.hpg h1 { max-width: 730px; margin: 0; font-size: clamp(40px, 4.5vw, 62px); line-height: 1.1; letter-spacing: -.02em; font-weight: 900; }
.hpg .hero-keep-line, .hpg .hero-highlight { position: relative; z-index: 0; white-space: nowrap; }
.hpg .hero-highlight::after { content: ""; position: absolute; z-index: -1; left: -2%; right: -2%; bottom: .06em; height: .24em; border-radius: 99px; background: var(--yellow); transform: rotate(-1.5deg); }
.hpg .hero-text { max-width: 610px; margin: 26px 0; color: #4d5a53; font-size: 19px; line-height: 1.65; }
.hpg .hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 28px; }
.hpg .button-primary { min-width: 205px; }
.hpg .text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-size: 14px; font-weight: 800; }
.hpg .text-link:hover { text-decoration: underline; }
.hpg .hero-visual { min-width: 0; }
.hpg .hero-card { position: relative; width: min(100%, 490px); margin-inline: auto; padding: 34px 26px 0; border: 2px solid var(--ink); border-radius: 34px; background: var(--yellow); box-shadow: 12px 14px 0 var(--ink); transform: rotate(1.5deg); }
.hpg .hero-card::before { content: ""; position: absolute; inset: 18px; border: 1px dashed rgba(23,34,29,.25); border-radius: 24px; }
.hpg .hero-card > img { position: relative; width: 100%; aspect-ratio: 347 / 180; object-fit: cover; border-radius: 22px 22px 0 0; mix-blend-mode: multiply; }
.hpg .banana-chip { position: absolute; z-index: 3; top: -22px; right: 24px; min-height: 46px; display: flex; align-items: center; padding: 0 16px; border: 2px solid var(--ink); border-radius: 14px; background: white; font-size: 18px; font-weight: 900; box-shadow: 5px 6px 0 var(--ink); transform: rotate(4deg); }
.hpg .floating-note { position: absolute; z-index: 4; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; min-width: 250px; padding: 12px 14px; border: 1px solid #d8ddd9; border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 14px 40px rgba(23,34,29,.16); transform: rotate(-1.5deg); }
.hpg .floating-note strong, .hpg .floating-note small { display: block; }
.hpg .floating-note strong { font-size: 13px; }
.hpg .floating-note small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.hpg .note-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; font-size: 11px; font-weight: 900; }
.hpg .note-icon.blue { background: #e9edff; color: var(--blue); }
.hpg .note-icon.yellow { background: #fff3bc; color: #765c00; }
.hpg .note-top { top: 86px; left: -78px; }
.hpg .note-bottom { right: -54px; bottom: 26px; grid-template-columns: auto 1fr; }
.hpg .hero-blob { position: absolute; border-radius: 999px; filter: blur(1px); opacity: .7; }
.hpg .hero-blob-one { width: 410px; height: 410px; right: -140px; top: -170px; background: #e7ebff; }
.hpg .hero-blob-two { width: 260px; height: 260px; left: -120px; bottom: -120px; border: 56px solid #fff0a7; }

.hpg .stats-section { position: relative; z-index: 4; padding: 0 0 72px; }
.hpg .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: 0 14px 45px rgba(23,34,29,.08); }
.hpg .stats-grid article { min-height: 122px; display: flex; flex-direction: column; justify-content: center; padding: 22px 26px; border-right: 1px solid var(--line); }
.hpg .stats-grid article:last-child { border-right: 0; }
.hpg .stats-grid strong { font-size: clamp(25px, 2.3vw, 34px); letter-spacing: -.035em; }
.hpg .stats-grid span { margin-top: 7px; color: var(--muted); font-size: 16px; line-height: 1.4; font-weight: 700; }
.hpg .schools-strip { padding: 75px 0 88px; background: white; text-align: center; }
.hpg .section-kicker { margin-bottom: 12px; color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hpg .schools-strip h2 { margin: 0; letter-spacing: -.02em; }
.hpg .schools-strip p { margin: 15px 0 32px; color: var(--muted); font-size: 16px; }
.hpg .schools-since { display: inline-block; margin-right: 5px; padding: 5px 11px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-weight: 800; }
.hpg .school-logo-frame { overflow: hidden; padding: 20px 0; border-block: 1px solid var(--line); }
.hpg .school-logo-frame img { width: 100%; min-width: 900px; }

.hpg .section-heading { max-width: 660px; }
.hpg .section-heading.is-center { margin-inline: auto; text-align: center; }
.hpg .section-heading h2 { margin: 0; letter-spacing: -.02em; }
.hpg .section-heading > p { max-width: 610px; margin: 18px 0 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.hpg .section-heading.is-center > p { margin-inline: auto; }

.hpg .features-section { padding: 72px 0; background: #fbfaf6; }
.hpg .exam-features-panel { border: 1px solid var(--line); border-radius: 28px; background: white; overflow: hidden; }
.hpg .exam-benefits { padding: 38px 32px 46px; background: var(--ink); color: white; }
.hpg .features-section .exam-benefits .section-heading { max-width: none; }
.hpg .exam-benefits-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 32px; }
.hpg .exam-benefit { min-width: 0; }
.hpg .exam-benefit-heading { display: flex; align-items: center; gap: 10px; }
.hpg .exam-benefit-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 10px; background: var(--yellow); color: var(--ink); }
.hpg .exam-benefit-icon svg { width: 20px; height: 20px; }
.hpg .exam-benefit h3 { min-width: 0; margin: 0; font-size: 17px; line-height: 1.2; letter-spacing: -.01em; }
.hpg .exam-benefit .exam-benefit-description { margin: 12px 0 0; color: #d4ddd7; font-size: 16px; line-height: 1.5; }
.hpg .features-details { position: relative; padding: 44px 32px 32px; }
.hpg .features-connector { position: absolute; top: -23px; left: 50%; transform: translateX(-50%); display: grid; place-items: center; width: 46px; height: 46px; border: 4px solid white; border-radius: 50%; background: var(--yellow); color: var(--ink); }
.hpg .features-connector svg { width: 23px; height: 23px; }
.hpg .features-section .features-details h2 { font-weight: 600; letter-spacing: -.02em; }
.hpg .features-details .features-grid { margin-top: 26px; }
.hpg .features-section .section-heading { max-width: 780px; }
.hpg .features-section .section-heading > p { max-width: 680px; margin-top: 13px; color: var(--muted); font-weight: 400; }
.hpg .features-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "materials testing" "rating summary"; gap: 14px; margin-top: 38px; }
.hpg .feature-card { position: relative; min-height: 92px; display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 16px; padding: 18px 22px; border: 1px solid #dedbd3; border-radius: 25px; background: white; overflow: hidden; box-shadow: 0 2px 2px rgba(23,34,29,.04); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.hpg .feature-card:hover { transform: translateY(-5px); border-color: #c9c4b7; box-shadow: 0 18px 45px rgba(23,34,29,.1); }
.hpg .feature-1 { grid-area: materials; background: linear-gradient(120deg, #fff0b2 0%, #fff9e7 34%, #fff 74%); }
.hpg .feature-2 { grid-area: testing; }
.hpg .feature-3 { grid-area: rating; }
.hpg .feature-4 { grid-area: summary; }
.hpg .feature-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #dff3e9; color: #0c9b62; }
.hpg .feature-icon svg { width: 25px; height: 25px; }
.hpg .feature-1 .feature-icon { background: var(--ink); color: white; }
.hpg .feature-3 .feature-icon { background: #fff2bd; color: var(--ink); }
.hpg .feature-4 .feature-icon { background: #ecebff; color: #6d6be8; }
.hpg .feature-card h3 { margin: 0; font-size: 21px; line-height: 1.15; letter-spacing: -.01em; }

.hpg .ai-section { position: relative; padding: 116px 0; background: var(--cream); overflow: hidden; }
.hpg .ai-section::before { content: "AI"; position: absolute; right: -2vw; top: 0; color: rgba(49,89,217,.045); font-size: 420px; line-height: .8; font-weight: 900; letter-spacing: -.1em; }
.hpg .ai-grid { position: relative; display: grid; grid-template-columns: .87fr 1.13fr; align-items: center; gap: 78px; }
.hpg .ai-copy h2 { margin: 0; letter-spacing: -.02em; }
.hpg .ai-copy > p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.hpg .ai-list { display: grid; gap: 12px; margin: 25px 0 30px; padding: 0; list-style: none; }
.hpg .ai-list li { display: grid; grid-template-columns: 43px 1fr; gap: 13px; align-items: center; }
.hpg .ai-list i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #e8edff; color: var(--blue); font-style: normal; font-weight: 900; }
.hpg .ai-list strong, .hpg .ai-list small { display: block; }
.hpg .ai-list strong { font-size: 14px; }
.hpg .ai-list small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.hpg .ai-demo { position: relative; border: 2px solid var(--ink); border-radius: 26px; background: white; box-shadow: 12px 14px 0 var(--ink); transform: rotate(1deg); }
.hpg .demo-toolbar { min-height: 62px; display: grid; grid-template-columns: 68px 1fr auto; align-items: center; gap: 15px; padding: 0 20px; border-bottom: 1px solid var(--line); font-size: 12px; }
.hpg .demo-dots { display: flex; gap: 6px; }
.hpg .demo-dots i { width: 9px; height: 9px; border-radius: 50%; background: #e7dfcb; }
.hpg .demo-dots i:first-child { background: #ff746d; }
.hpg .demo-dots i:nth-child(2) { background: var(--yellow); }
.hpg .demo-dots i:nth-child(3) { background: #64d49d; }
.hpg .demo-document { min-height: 430px; display: grid; grid-template-columns: 124px 1fr; }
.hpg .demo-document aside { display: flex; flex-direction: column; gap: 7px; padding: 24px 13px; border-right: 1px solid var(--line); background: #faf8f1; border-radius: 0 0 0 24px; }
.hpg .demo-document aside span { padding: 10px 12px; border-radius: 9px; color: var(--muted); font-size: 11px; font-weight: 700; }
.hpg .demo-document aside .active { background: #e8edff; color: var(--blue); }
.hpg .demo-content { padding: 36px; }
.hpg .demo-label { color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.hpg .demo-content h3 { margin: 10px 0 12px; font-size: 27px; letter-spacing: -.01em; }
.hpg .demo-content > p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.hpg .summary-lines { display: grid; gap: 10px; margin-top: 25px; }
.hpg .summary-lines i { height: 8px; border-radius: 99px; background: #e9ece8; }
.hpg .summary-lines i:nth-child(2) { width: 78%; }
.hpg .summary-lines i:nth-child(3) { width: 91%; }
.hpg .summary-lines i:nth-child(4) { width: 62%; }
.hpg .quiz-preview { display: grid; gap: 9px; margin-top: 32px; padding: 18px; border: 1px solid #dfe4ff; border-radius: 16px; background: #f3f5ff; }
.hpg .quiz-preview span { color: var(--blue); font-size: 10px; font-weight: 900; }
.hpg .quiz-preview strong { font-size: 14px; }
.hpg .quiz-preview button { width: fit-content; min-height: 36px; padding: 0 13px; border: 0; border-radius: 9px; background: var(--blue); color: white; font-size: 11px; font-weight: 800; cursor: pointer; }
.hpg .demo-status { position: absolute; right: -28px; bottom: 30px; min-width: 205px; display: grid; grid-template-columns: 38px 1fr; align-items: center; column-gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 15px 40px rgba(23,34,29,.15); transform: rotate(-2deg); }
.hpg .demo-status > span { grid-row: span 2; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: #e8f8ef; color: var(--green); }
.hpg .demo-status strong { font-size: 12px; }
.hpg .demo-status small { color: var(--muted); font-size: 10px; }

.hpg .steps-section { padding: 112px 0; background: white; }
.hpg .video-compare { width: min(900px, calc(100% - 24px)); display: grid; gap: 34px; margin: 44px auto 0; }
.hpg .steps-video { width: 100%; margin: 0; transform: none; }

.hpg .community-section { padding: 112px 0; background: var(--blue); color: white; overflow: hidden; }
.hpg .community-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 92px; }
.hpg .community-card { position: relative; min-height: 400px; display: grid; place-items: center; }
.hpg .community-card::before { content: ""; position: absolute; width: 330px; height: 330px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }
.hpg .reward-card { position: relative; z-index: 2; width: min(360px, 86%); display: flex; flex-direction: column; padding: 34px; border: 2px solid var(--ink); border-radius: 26px; background: var(--yellow); color: var(--ink); box-shadow: 12px 14px 0 #13276d; transform: rotate(-4deg); }
.hpg .reward-card span { font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.hpg .reward-card strong { margin-top: 24px; font-size: 46px; letter-spacing: -.05em; }
.hpg .reward-card i { width: fit-content; margin-top: 30px; padding: 9px 11px; border-radius: 9px; background: white; color: var(--green); font-size: 11px; font-style: normal; font-weight: 900; }
.hpg .banana-orbit span { position: absolute; z-index: 3; font-size: 56px; }
.hpg .banana-orbit span:first-child { top: 18px; left: 10%; transform: rotate(-35deg); }
.hpg .banana-orbit span:nth-child(2) { right: 4%; top: 100px; transform: rotate(35deg); }
.hpg .banana-orbit span:nth-child(3) { left: 22%; bottom: 5px; transform: rotate(18deg); }
.hpg .community-copy .section-kicker { color: var(--yellow); }
.hpg .community-copy .section-heading h2 { color: white; }
.hpg .community-copy > p { color: #dce4ff; font-size: 18px; }
.hpg .community-benefit { display: grid; grid-template-columns: 52px 1fr; gap: 15px; align-items: center; margin: 28px 0 32px; }
.hpg .community-benefit > span { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: white; font-size: 26px; }
.hpg .community-benefit strong { display: block; }
.hpg .community-benefit p { margin: 5px 0 0; color: #ced9ff; font-size: 13px; }

.hpg .materials-section { padding: 80px 0; background: var(--cream); }
.hpg .materials-panel { padding: 36px; border: 1px solid #ddd6c4; border-top: 6px solid var(--yellow); border-radius: 28px; background: #fffdf6; box-shadow: 0 12px 36px rgba(23,34,29,.07); }
.hpg .materials-body { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .72fr); align-items: stretch; gap: 16px; margin-top: 30px; }
.hpg .material-grid { display: grid; gap: 12px; }
.hpg .material-card { position: relative; min-height: 108px; display: grid; grid-template-columns: 58px minmax(0, 1fr) 126px; align-items: center; gap: 18px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 18px; background: white; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.hpg .material-card:hover, .hpg .material-card:focus-within { border-color: var(--yellow-dark); background: #fffef8; box-shadow: 0 4px 14px rgba(23,34,29,.08); }
.hpg .material-link { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(49,89,217,.25); text-underline-offset: 3px; }
.hpg .material-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.hpg .material-card:hover .material-link, .hpg .material-link:focus-visible { color: var(--blue-dark); text-decoration-color: currentColor; }
.hpg .material-link:focus-visible { outline: none; }
.hpg .material-link:focus-visible::after { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 18px; }
.hpg .file-type { width: 58px; height: 52px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: #e9edff; color: var(--blue); font-size: 10px; font-weight: 900; }
.hpg .material-copy { min-width: 0; }
.hpg .material-card h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.18; letter-spacing: -.01em; }
.hpg .material-copy p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.45; }
.hpg .material-uploaded { min-width: 126px; align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding-left: 16px; border-left: 1px solid var(--line); color: var(--muted); font-size: 10px; font-style: normal; }
.hpg .material-uploaded span { display: flex; align-items: center; gap: 6px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.hpg .material-uploaded i, .hpg .online-panel-top i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #38c982; box-shadow: 0 0 0 4px rgba(56,201,130,.13); }
.hpg .material-uploaded strong { color: var(--ink); font-size: 12px; }
.hpg .materials-online { position: relative; min-height: 348px; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; border-radius: 22px; background: var(--blue); color: white; overflow: hidden; box-shadow: 0 14px 38px rgba(49,89,217,.2); }
.hpg .materials-online::before { content: ""; position: absolute; width: 220px; height: 220px; top: -115px; right: -75px; border: 42px solid rgba(255,255,255,.08); border-radius: 50%; }
.hpg .online-panel-top { position: absolute; z-index: 1; top: 24px; left: 25px; right: 25px; display: flex; justify-content: space-between; align-items: center; }
.hpg .online-panel-top > span { min-height: 32px; display: inline-flex; align-items: center; gap: 8px; padding: 0 11px; border-radius: 99px; background: rgba(9,24,76,.3); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.hpg .online-panel-top i { background: #65e3a3; box-shadow: 0 0 0 4px rgba(101,227,163,.16); }
.hpg .online-panel-top small { color: #dce4ff; font-size: 10px; }
.hpg .online-avatars { position: relative; z-index: 1; display: flex; margin-bottom: 20px; padding-left: 8px; }
.hpg .online-avatars span { width: 37px; height: 37px; display: grid; place-items: center; margin-left: -8px; border: 2px solid var(--blue); border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 11px; font-weight: 900; }
.hpg .online-avatars span:nth-child(2) { background: #dfe5ff; }
.hpg .online-avatars span:nth-child(3) { background: #bfeeda; }
.hpg .online-avatars span:nth-child(4) { background: white; }
.hpg .online-avatars span:last-child { background: var(--ink); color: white; }
.hpg .online-count { position: relative; z-index: 1; font-size: clamp(56px, 6vw, 76px); line-height: .92; letter-spacing: -.065em; }
.hpg .materials-online p { position: relative; z-index: 1; margin: 10px 0 0; color: #e9edff; font-size: 19px; font-weight: 700; line-height: 1.2; }

.hpg .testimonials-section { padding: 104px 0; overflow: hidden; background: white; }
.hpg .testimonials-head { display: flex; align-items: center; flex-direction: column; text-align: center; }
.hpg .stars { color: #e6b600; font-style: normal; letter-spacing: 2px; }
.hpg .testimonials-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; gap: 12px; margin-top: 42px; padding: 4px 3px 16px; outline: none; scrollbar-color: var(--yellow) transparent; scrollbar-width: thin; }
.hpg .testimonials-grid:focus-visible { border-radius: 24px; box-shadow: 0 0 0 3px var(--yellow); }
.hpg .testimonial-card { display: flex; flex-direction: column; padding: 18px 17px 16px; border: 1px solid var(--line); border-top: 4px solid var(--yellow); border-radius: 21px; background: linear-gradient(155deg, #fffdf4 0%, white 55%); box-shadow: 0 9px 24px rgba(23,34,29,.07); scroll-snap-align: start; }
.hpg .testimonial-card blockquote { margin: 14px 0 18px; font-size: 15px; line-height: 1.5; letter-spacing: -.01em; }
.hpg .student { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.hpg .avatar { width: 50px; height: 50px; flex: 0 0 50px; object-fit: cover; border: 3px solid white; border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 1px var(--line), 0 5px 12px rgba(23,34,29,.13); }
.hpg .student strong, .hpg .student small { display: block; }
.hpg .student strong { font-size: 16px; }
.hpg .student small { margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 800; }
.hpg .center-cta { display: flex; justify-content: center; margin-top: 44px; }

.hpg .video-frame { position: relative; padding: 10px; border: 2px solid var(--ink); border-radius: 26px; background: var(--yellow); box-shadow: 11px 12px 0 var(--ink); transform: rotate(1deg); }
.hpg .video-frame.steps-video { transform: none; }
.hpg .video-frame iframe { width: 100%; aspect-ratio: 16 / 9; display: block; border: 0; border-radius: 17px; }
.hpg .video-frame.steps-video-preview { padding: 10px; border: 2px solid var(--ink); border-radius: 26px; background: var(--yellow); box-shadow: 11px 12px 0 var(--ink); overflow: visible; }
.hpg .steps-video-preview iframe { border-radius: 17px; }
.hpg .video-preview-button { position: relative; width: 100%; aspect-ratio: 16 / 9; display: block; padding: 0; border: 0; border-radius: 17px; background: linear-gradient(180deg, #f7f7f7 0%, #eceeed 55%, #c9ccca 100%); cursor: pointer; overflow: hidden; }
.hpg .video-preview-button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.38), transparent 42%, rgba(23,34,29,.08)); transition: opacity .2s ease; }
.hpg .video-preview-button:hover::after { opacity: .65; }
.hpg .video-preview-center { position: absolute; z-index: 2; left: 50%; top: 50%; display: grid; justify-items: center; gap: 20px; transform: translate(-50%, -50%); }
.hpg .video-preview-logo { position: relative; display: block; }
.hpg .video-preview-logo img { width: 340px; height: auto; display: block; }
.hpg .video-preview-play { width: 72px; height: 72px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); color: var(--ink); box-shadow: 0 8px 0 rgba(23,34,29,.9), 0 16px 30px rgba(23,34,29,.22); transition: transform .18s ease, box-shadow .18s ease; }
.hpg .video-preview-button:hover .video-preview-play { box-shadow: 0 10px 0 rgba(23,34,29,.9), 0 20px 35px rgba(23,34,29,.25); transform: translateY(-3px); }
.hpg .video-preview-button:active .video-preview-play { box-shadow: 0 3px 0 rgba(23,34,29,.9); transform: translateY(5px); }
.hpg .video-preview-button:focus-visible { outline: 4px solid var(--blue); outline-offset: 5px; }
.hpg .video-preview-play svg { width: 35px; height: 35px; fill: currentColor; }

.hpg .social-section { padding: 56px 0; overflow: hidden; background: white; }
.hpg .social-section .section-heading { max-width: none; }
.hpg .social-section .section-heading h2 { white-space: nowrap; }
.hpg .follow-row { display: flex; align-items: center; flex-direction: column; gap: 16px; margin-top: 24px; text-align: center; }
.hpg .social-links { display: flex; gap: 12px; }
.hpg .follow-row a { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--ink); transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.hpg .follow-row a:hover { border-color: var(--ink); background: var(--yellow); transform: translateY(-3px); }
.hpg .follow-row a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.hpg .follow-row svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2; }
.hpg .follow-row svg .icon-fill { fill: currentColor; stroke: none; }
.hpg .social-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 11px; margin-top: 30px; padding: 4px 3px 14px; outline: none; scrollbar-color: var(--yellow) transparent; scrollbar-width: thin; }
.hpg .social-grid:focus-visible { border-radius: 22px; box-shadow: 0 0 0 3px var(--yellow); }
.hpg .social-card { position: relative; aspect-ratio: 190 / 316; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 8px 22px rgba(23,34,29,.09); scroll-snap-align: start; transition: transform .2s ease, box-shadow .2s ease; }
.hpg .social-card > img { width: 100%; height: 100%; object-fit: cover; }
.hpg .social-card:hover { transform: translateY(-5px); box-shadow: 0 13px 28px rgba(23,34,29,.17); }
.hpg .social-card:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.hpg .social-caption { position: absolute; z-index: 2; left: 9px; right: 9px; bottom: 9px; padding: 9px 10px; border-radius: 10px; background: rgba(23,34,29,.88); color: white; font-size: 14px; font-weight: 800; line-height: 1.25; opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.hpg .social-card:hover .social-caption, .hpg .social-card:focus-visible .social-caption { opacity: 1; transform: translateY(0); }

.hpg .faq-section { padding: 104px 0; background: var(--cream); }
.hpg .faq-layout { width: min(100% - 40px, 820px); display: grid; gap: 0; }
.hpg .faq-intro { text-align: center; }
.hpg .faq-intro .section-heading { margin-inline: auto; }
.hpg .faq-intro .section-heading > p { margin-top: 12px; color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: .04em; }
.hpg .faq-list { display: grid; gap: 12px; margin-top: 42px; }
.hpg .faq-item { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: white; box-shadow: 0 3px 0 rgba(23,34,29,.04), 0 9px 22px rgba(23,34,29,.05); }
.hpg .faq-item summary h3 { margin: 0; font: inherit; }
.hpg .faq-item summary { list-style: none; width: 100%; min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 22px; padding: 16px 22px 16px 24px; border: 0; background: transparent; color: var(--ink); text-align: left; font-size: 17px; font-weight: 900; cursor: pointer; }
.hpg .faq-item summary:hover { background: #fffdf2; }
.hpg .faq-item summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }
.hpg .faq-item summary i { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border: 0; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 23px; font-style: normal; font-weight: 500; line-height: 1.1; transition: transform .2s ease; }
.hpg .faq-item[open] summary i { transform: rotate(45deg); }
.hpg .faq-answer { max-width: 730px; padding: 0 74px 24px 24px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.hpg .faq-answer p { margin: 0 0 10px; }
.hpg .faq-answer ul { margin: 8px 0 0; padding-left: 20px; }

.hpg .final-cta { padding: 78px 0; background: var(--ink); }
.hpg .final-cta-card { position: relative; min-height: 300px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 42px; padding: 56px 64px; border-radius: 30px; background: var(--yellow); overflow: hidden; }
.hpg .final-cta-card > div:not(.cta-bananas) { position: relative; z-index: 2; }
.hpg .cta-label { display: block; font-size: 16px; line-height: 1.4; font-weight: 800; letter-spacing: .03em; }
.hpg .final-cta h2 { max-width: 700px; margin: 13px 0 10px; letter-spacing: -.02em; }
.hpg .final-cta p { margin: 0; color: #514b25; }
.hpg .cta-white { position: relative; z-index: 2; background: white; }
.hpg .cta-bananas { position: absolute; right: 24%; top: -64px; font-size: 260px; opacity: .16; transform: rotate(-12deg); }

.hpg .site-footer { padding: 36px 0 12px; background: #0d100e; color: white; }
.hpg .footer-grid { display: grid; grid-template-columns: 1.2fr .9fr 1.05fr 1.15fr; gap: clamp(22px, 3.5vw, 46px); padding-bottom: 24px; border-bottom: 1px solid #252c28; }
.hpg .footer-logo { width: fit-content; min-height: 38px; display: flex; align-items: center; }
.hpg .footer-brand img { width: 145px; }
.hpg .footer-brand p { max-width: 255px; margin: 10px 0; color: #929b96; font-size: 13px; line-height: 1.4; }
.hpg .footer-socials { display: flex; gap: 10px; }
.hpg .footer-socials a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #303632; border-radius: 12px; background: #202421; color: #dce1de; transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease; }
.hpg .footer-socials a:hover { border-color: var(--yellow); background: var(--yellow); color: var(--ink); transform: translateY(-2px); }
.hpg .footer-socials svg { width: 21px; height: 21px; fill: currentColor; stroke: currentColor; stroke-width: 1.8; }
.hpg .footer-socials a:first-child svg { stroke: none; }
.hpg .footer-socials a:last-child svg { fill: none; }
.hpg .footer-column { display: flex; flex-direction: column; gap: 0; }
.hpg .footer-column h3 { margin: 0 0 4px; color: white; font-size: 12px; font-weight: 900; letter-spacing: .045em; text-transform: uppercase; }
.hpg .footer-column a { width: fit-content; max-width: 100%; min-height: 30px; display: flex; align-items: center; color: #929b96; font-size: 13px; line-height: 1.2; }
.hpg .footer-column a:hover { color: white; text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 4px; }
.hpg .footer-legal { color: #626a65; font-size: 11px; line-height: 1.4; }
.hpg .footer-legal p { margin: 0 0 6px; }

/* Cookie lista – vycentrovane rozlozeni (jako cookie lista webu), svetly vzhled a tlacitka dle navrhu */
.hpg .cookie-bar { position: fixed; z-index: 1030; left: 20px; right: 20px; bottom: 18px; width: auto; display: flex; flex-direction: column; align-items: center; padding: 14px 16px 18px; border: 1px solid #d8dcd9; border-radius: 19px; background: rgba(255,255,255,.96); box-shadow: 0 22px 70px rgba(23,34,29,.2); backdrop-filter: blur(16px); color: var(--ink); text-align: center; }
.hpg .cookie-bar-head { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px 8px 8px; font-size: 22px; line-height: 1.2; font-weight: 800; }
.hpg .cookie-bar-text { max-width: 440px; margin: 0 auto 16px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.hpg .cookie-bar-actions { display: flex; align-items: center; justify-content: center; gap: 10px; }
.hpg .cookie-bar .cookie-primary, .hpg .cookie-bar .cookie-secondary { min-height: 46px; padding: 0 26px; font-size: 16px; }
.hpg .cookie-bar .cookie-primary { box-shadow: 0 4px 0 var(--ink); transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.hpg .cookie-bar .cookie-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); background: #ffe26a; }
.hpg .cookie-bar .cookie-secondary:hover { border-color: var(--ink); }
.hpg .modal-actions { display: flex; align-items: center; gap: 8px; }
.hpg .cookie-primary, .hpg .cookie-secondary { min-height: 46px; padding: 0 26px; border-radius: 11px; font-size: 16px; font-weight: 800; cursor: pointer; }
.hpg .cookie-primary { border: 1px solid var(--ink); background: var(--yellow); color: var(--ink); }
.hpg .cookie-secondary { border: 1px solid var(--line); background: white; color: var(--ink); }
.hpg .modal-backdrop { position: fixed; z-index: 1040; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(7,15,10,.62); }
.hpg .cookie-modal { position: relative; width: min(630px, 100%); max-height: calc(100vh - 36px); overflow-y: auto; padding: 30px; border-radius: 24px; background: white; color: var(--ink); box-shadow: var(--shadow); }
.hpg .cookie-modal > p { margin-bottom: 20px; color: var(--muted); font-size: 16px; line-height: 1.5; padding-right: 50px; }
.hpg .modal-close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: white; font-size: 22px; cursor: pointer; }
.hpg .cookie-option { min-height: 92px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 22px; padding: 15px 0; border-top: 1px solid var(--line); }
.hpg .cookie-option strong { font-size: 20px; }
.hpg .cookie-option p { margin: 6px 0 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.hpg .cookie-option > span { color: var(--green); font-size: 16px; font-weight: 700; }
.hpg .cookie-option input { width: 44px; height: 24px; accent-color: var(--blue); }
.hpg .modal-actions { justify-content: flex-end; margin-top: 22px; }

@media (max-width: 1080px) {
  .hpg .desktop-nav { gap: 18px; }
  .hpg .hero-grid { gap: 24px; }
  .hpg .note-top { left: -36px; }
  .hpg .note-bottom { right: -20px; }
  .hpg .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hpg .stats-grid article { border-bottom: 1px solid var(--line); }
  .hpg .stats-grid article:nth-child(even) { border-right: 0; }
  .hpg .stats-grid article:nth-last-child(-n + 2) { border-bottom: 0; }
  .hpg .ai-grid { gap: 46px; }
  .hpg .ai-section::before { font-size: 330px; }
  .hpg .community-grid { gap: 48px; }
  .hpg .testimonials-grid { grid-template-columns: repeat(5, minmax(230px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; }
  .hpg .social-section .section-heading h2 { white-space: normal; }
  .hpg .social-grid { grid-template-columns: repeat(6, minmax(178px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; }
  .hpg .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 28px; }
}

@media (min-width: 861px) and (max-width: 1100px) {
  .hpg .exam-benefits-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 860px) {
  .hpg .desktop-nav, .hpg .login-link { display: none; }
  .hpg .menu-button { display: grid; place-items: center; }
  .hpg .mobile-menu { height: 0; display: grid; grid-template-rows: repeat(5, 0fr); visibility: hidden; gap: 0; padding: 0 20px; overflow: hidden; background: var(--cream); transition: padding .25s ease, visibility .25s; }
  .hpg .mobile-menu > * { min-height: 0; overflow: hidden; }
  .hpg .mobile-menu.is-open { height: auto; grid-template-rows: repeat(5, 1fr); visibility: visible; gap: 6px; padding: 12px 20px 22px; border-top: 1px solid var(--line); }
  .hpg .mobile-menu a:not(.button) { min-height: 48px; display: flex; align-items: center; padding: 0 10px; border-radius: 10px; font-weight: 700; }
  .hpg .mobile-menu a:not(.button):hover { background: white; }
  .hpg .mobile-menu.is-open .button { min-height: 48px; }
  .hpg .mobile-menu .button + .button { margin-top: 8px; }
  .hpg .hero { padding: 24px 0 26px; }
  .hpg .hero { min-height: 0; align-items: flex-start; }
  .hpg .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hpg .hero-visual .floating-note, .hpg .hero-visual .banana-chip { display: none; }
  .hpg .hero-copy { max-width: 720px; }
  .hpg .hero-visual { width: min(580px, 92%); margin-inline: auto; }
  .hpg .section-heading { max-width: 720px; }
  .hpg .ai-grid, .hpg .community-grid, .hpg .faq-layout { grid-template-columns: 1fr; }
  .hpg .exam-benefits-grid { grid-template-columns: 1fr; gap: 24px; }
  .hpg .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "materials testing" "rating summary"; }
  .hpg .feature-card, .hpg .feature-1, .hpg .feature-2 { min-height: 92px; }
  .hpg .ai-grid { gap: 64px; }
  .hpg .ai-copy { max-width: 650px; }
  .hpg .ai-demo { width: min(680px, calc(100% - 20px)); margin-inline: auto; }
  .hpg .community-section { padding: 56px 0 64px; }
  .hpg .community-grid { gap: 24px; }
  .hpg .community-card { min-height: 184px; }
  .hpg .community-card::before { width: 176px; height: 176px; }
  .hpg .reward-card { width: min(250px, 82%); padding: 16px 18px; border-radius: 20px; box-shadow: 7px 8px 0 #13276d; }
  .hpg .reward-card span { font-size: 12px; line-height: 1.2; }
  .hpg .reward-card strong { margin-top: 8px; font-size: 32px; line-height: 1.1; }
  .hpg .reward-card i { margin-top: 10px; padding: 6px 9px; font-size: 12px; line-height: 1.2; }
  .hpg .banana-orbit span { font-size: 30px; }
  .hpg .banana-orbit span:first-child { top: 0; left: calc(50% - 135px); }
  .hpg .banana-orbit span:nth-child(2) { top: 48px; right: calc(50% - 145px); }
  .hpg .banana-orbit span:nth-child(3) { bottom: 0; left: calc(50% - 88px); }
  .hpg .community-copy { max-width: 650px; }
  .hpg .materials-body { grid-template-columns: 1fr; }
  .hpg .materials-online { min-height: 240px; }
  .hpg .final-cta-card { grid-template-columns: 1fr; padding: 50px; }
  .hpg .final-cta-card .button { width: fit-content; }
}

@media (max-width: 560px) {
  .hpg { --section-heading-size: 28px; }
  .hpg .container { width: min(100% - 28px, 1180px); }
  .hpg .header-inner { min-height: 68px; }
  .hpg .brand { width: 126px; }
  .hpg .brand img { width: 122px; }
  .hpg .header-actions > .button-small { display: none; }
  .hpg .hero { padding-top: 14px; }
  .hpg h1 { font-size: clamp(31px, 9.4vw, 41px); }
  .hpg .hero-highlight { white-space: normal; }
  .hpg .hero-text { margin: 22px 0; font-size: 16px; line-height: 1.55; }
  .hpg .hero-actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .hpg .hero-actions .button, .hpg .text-link { width: 100%; }
  .hpg .text-link { justify-content: center; }
  .hpg .hero-visual { width: calc(100% - 18px); margin-top: 0; }
  .hpg .hero-card { padding: 28px 16px 0; border-radius: 26px; box-shadow: 8px 9px 0 var(--ink); }
  .hpg .note-top { top: -46px; left: -8px; min-width: 235px; }
  .hpg .note-bottom { right: -8px; bottom: -55px; min-width: 226px; }
  .hpg .banana-chip { top: 8px; right: -8px; min-height: 40px; font-size: 15px; }
  .hpg .stats-section { padding-top: 8px; }
  .hpg .stats-grid { grid-template-columns: 1fr 1fr; border-radius: 17px; }
  .hpg .stats-grid article { min-height: 106px; padding: 17px; }
  .hpg .stats-grid strong { font-size: 25px; }
  .hpg .stats-grid span { font-size: 14px; }
  .hpg .schools-strip { padding: 44px 0 62px; }
  .hpg .school-logo-frame { overflow: hidden; padding: 12px 0; }
  .hpg .school-logo-frame img { width: 100%; min-width: 0; }
  .hpg .section-heading h2 { letter-spacing: -.02em; }
  .hpg .section-heading > p { font-size: 15px; }
  .hpg .features-section, .hpg .ai-section, .hpg .steps-section, .hpg .community-section, .hpg .materials-section, .hpg .testimonials-section, .hpg .faq-section { padding: 82px 0; }
  .hpg .features-section { padding: 46px 0 44px; }
  .hpg .ai-section, .hpg .materials-section { padding-top: 60px; }
  .hpg .materials-section { padding-bottom: 60px; }
  .hpg .steps-section { padding-top: 32px; }
  .hpg .testimonials-section { padding: 28px 0 60px; }
  .hpg .faq-section { padding: 32px 0 36px; }
  .hpg .exam-features-panel { border-radius: 22px; }
  .hpg .exam-benefits { padding: 28px 20px 38px; }
  .hpg .exam-benefits-grid { margin-top: 28px; }
  .hpg .exam-benefit h3 { font-size: 16px; }
  .hpg .features-details { padding: 38px 14px 24px; }
  .hpg .features-details .features-grid { margin-top: 24px; }
  .hpg .features-grid { grid-template-columns: 1fr; grid-template-areas: "materials" "testing" "rating" "summary"; gap: 10px; margin-top: 30px; }
  .hpg .feature-card, .hpg .feature-1, .hpg .feature-2 { min-height: 0; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 17px; border-radius: 18px; }
  .hpg .feature-icon { width: 44px; height: 44px; }
  .hpg .feature-icon svg { width: 22px; height: 22px; }
  .hpg .feature-card h3 { margin-top: 1px; font-size: 19px; }
  .hpg .ai-list small { line-height: 1.45; }
  .hpg .ai-demo { width: calc(100% - 10px); border-radius: 20px; box-shadow: 7px 8px 0 var(--ink); }
  .hpg .demo-toolbar { min-height: 54px; grid-template-columns: 48px 1fr auto; padding: 0 12px; }
  .hpg .demo-toolbar strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hpg .demo-document { min-height: 390px; grid-template-columns: 1fr; }
  .hpg .demo-document aside { display: grid; grid-template-columns: repeat(4, 1fr); padding: 9px; border-right: 0; border-bottom: 1px solid var(--line); border-radius: 0; overflow-x: hidden; }
  .hpg .demo-document aside span { padding: 9px 4px; text-align: center; font-size: 9px; }
  .hpg .demo-content { padding: 24px 18px 38px; }
  .hpg .demo-content h3 { font-size: 23px; }
  .hpg .demo-status { right: -8px; bottom: -34px; }
  .hpg .video-compare { width: calc(100% - 8px); gap: 24px; margin: 34px auto 0; }
  .hpg .video-preview-center { gap: 14px; }
  .hpg .video-preview-logo img { width: 220px; }
  .hpg .video-preview-play { width: 60px; height: 60px; box-shadow: 0 6px 0 rgba(23,34,29,.9), 0 12px 24px rgba(23,34,29,.2); }
  .hpg .video-preview-play svg { width: 29px; height: 29px; }
  .hpg .community-section { padding: 44px 0 56px; }
  .hpg .testimonials-head { align-items: center; }
  .hpg .materials-panel { padding: 24px 14px; border-radius: 22px; }
  .hpg .materials-body { gap: 12px; margin-top: 24px; }
  .hpg .material-card { min-height: 0; grid-template-columns: 50px minmax(0, 1fr); gap: 13px; padding: 14px; }
  .hpg .file-type { width: 50px; height: 44px; }
  .hpg .material-card h3 { font-size: 16px; }
  .hpg .material-uploaded { grid-column: 1 / -1; min-width: 0; flex-direction: row; justify-content: space-between; align-items: center; padding: 11px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .hpg .materials-online { min-height: 220px; padding: 22px; }
  .hpg .online-panel-top { top: 20px; left: 21px; right: 21px; }
  .hpg .online-avatars { margin-bottom: 16px; }
  .hpg .online-count { font-size: 54px; }
  .hpg .materials-online p { font-size: 17px; }
  .hpg .testimonials-grid { grid-template-columns: repeat(5, minmax(238px, 74vw)); margin-top: 30px; }
  .hpg .video-frame { padding: 6px; border-radius: 18px; box-shadow: 7px 8px 0 var(--ink); }
  .hpg .social-section { padding: 24px 0 44px; }
  .hpg .social-grid { grid-template-columns: repeat(6, minmax(158px, 48vw)); gap: 9px; margin-top: 24px; }
  .hpg .follow-row { gap: 13px; margin-top: 22px; }
  .hpg .social-links { gap: 10px; }
  .hpg .follow-row a { width: 50px; height: 50px; border-radius: 13px; }
  .hpg .faq-list { gap: 9px; margin-top: 30px; }
  .hpg .faq-item { border-radius: 18px; }
  .hpg .faq-item summary { list-style: none; min-height: 68px; gap: 12px; padding: 14px 15px 14px 18px; font-size: 16px; }
  .hpg .faq-item summary i { width: 34px; height: 34px; font-size: 21px; }
  .hpg .faq-answer { padding: 0 54px 20px 18px; font-size: 14px; }
  .hpg .final-cta { padding: 52px 0; }
  .hpg .final-cta-card { min-height: 390px; padding: 36px 25px; border-radius: 23px; }
  .hpg .final-cta-card .button { width: 100%; }
  .hpg .site-footer { padding-top: 30px; }
  .hpg .footer-grid { grid-template-columns: 1fr 1fr; column-gap: 18px; row-gap: 22px; padding-bottom: 20px; }
  .hpg .footer-brand, .hpg .footer-legal { grid-column: 1 / -1; }
  .hpg .footer-column a { min-height: 32px; }
  .hpg .cookie-bar-head { font-size: 18px; }
  .hpg .cookie-bar-text { font-size: 14px; }
  .hpg .cookie-bar { left: 8px; right: 8px; bottom: 8px; padding: 12px; border-radius: 16px; }
  .hpg .cookie-bar-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px; }
  .hpg .cookie-bar .cookie-primary, .hpg .cookie-bar .cookie-secondary { padding: 0 8px; font-size: 15px; }
  .hpg .cookie-primary, .hpg .cookie-secondary { padding: 0 12px; font-size: 15px; }
  /* Modal pres cely viewport, nadpis kategorie a prepinac na jednom radku */
  .hpg .modal-backdrop { padding: 0; align-items: stretch; }
  .hpg .cookie-modal { width: 100%; max-height: 100vh; padding: 20px 16px 16px; border-radius: 0; }
  .hpg .cookie-option { min-height: 0; grid-template-columns: 1fr auto; grid-template-areas: "title control" "text text"; align-items: center; gap: 6px 14px; padding: 16px 0; }
  .hpg .cookie-option > div { display: contents; }
  .hpg .cookie-option strong { grid-area: title; }
  .hpg .cookie-option p { grid-area: text; margin: 0; }
  .hpg .cookie-option > span, .hpg .cookie-option input { grid-area: control; justify-self: end; }
  .hpg .modal-actions { margin-top: 16px; }
  .hpg .modal-actions { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hpg *, .hpg *::before, .hpg *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* Doplnky oproti navrhu */
.hpg .faq-item summary::-webkit-details-marker { display: none; }
.hpg .material-copy h3, .hpg .material-copy p { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
