/* Responsive refinements for the restored ARELIS design.
   Content breakpoints: 1150 navigation, 1050 app/batch, 900 hero,
   720 courses, 640 benefits, and 420 compact phones. */
:root {
  --page-gutter: clamp(1rem, 4vw, 4rem);
  --section-space: clamp(3.5rem, 7vw, 6.5rem);
  --header-height: 96px;
  --batch-bar-height: 0px;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 20px);
  scroll-padding-bottom: calc(var(--batch-bar-height) + 20px);
}
body { padding-bottom: var(--batch-bar-height); }
body.dialog-open { overflow: hidden; }
.wrap { width: 100%; max-width: 1380px; padding-inline: var(--page-gutter); }
.section { padding-block: var(--section-space); }
img { max-width: 100%; }
fieldset { min-inline-size: 0; }
h1, h2, h3, h4, p, dd, a, button, summary { overflow-wrap: break-word; }
button, a, summary { touch-action: manipulation; }
:where(.hero, .batch-panel, .values, .classroom-panel, .practice-grid,
 .course-grid, .combined-paths, .app-grid, .germany-feature, .study-pillars,
 .study-route-heading, .study-panel, .study-budget, .study-prep-grid,
 .method-grid, .faq, .footer-top, .footer-bottom) > * { min-width: 0; }
.button { min-height: 48px; max-width: 100%; font-size: 14px; line-height: 1.5; gap: clamp(12px, 2vw, 28px); }
.button > span { flex-shrink: 0; }
.text-link { min-height: 44px; font-size: 14px; line-height: 1.6; }
.eyebrow { flex-wrap: wrap; font-size: 11px; letter-spacing: 1.3px; }
h2 { font-size: clamp(2rem, 3.25vw, 2.75rem); }
.section-top { gap: clamp(24px, 4vw, 54px); }
.section-top > p { font-size: 15px; line-height: 1.75; max-width: 42ch; }
.section-top > p br { display: none; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 14px 20px; background: var(--green); color: var(--cream); border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* Navigation never competes with course buttons at tablet widths. */
.header {
  position: sticky; top: 0; z-index: 30;
  max-width: 1440px; height: auto; min-height: 96px;
  padding: 12px var(--page-gutter); gap: 24px;
}
.header .brand img { flex-shrink: 0; }
.header nav { flex-shrink: 0; gap: clamp(18px, 1.6vw, 26px); }
.header nav a { min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; font-size: 13px; }
.header-cta { font-size: 12px; flex-shrink: 0; min-height: 46px; }
.menu { flex-shrink: 0; }

/* Fluid columns, with a contained, touch-friendly phone illustration. */
.hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 48px); min-height: 0; padding-block: clamp(28px, 4vw, 50px) clamp(40px, 5vw, 65px); }
.hero h1 { font-size: clamp(3rem, 5.3vw, 4.75rem); letter-spacing: -.045em; }
.hero-copy > p { max-width: 45ch; font-size: 16px; }
.student-greeting { max-width: 100%; line-height: 1.25; text-align: center; }
.hero-actions { flex-wrap: wrap; gap: 16px 24px; }
.hero-actions .button { font-size: 14px; min-height: 50px; }
.hero-note { font-size: 13px; }
.hero-note .mini-mark { flex-shrink: 0; }
.hero-offer { max-width: 100%; }
.hero-offer > span:first-child { font-size: 11px; }
.hero-offer strong { font-size: 26px; }
.germany-hero-link { font-size: 14px; min-height: 44px; line-height: 1.6; }
.hero-art { width: 100%; max-width: 550px; height: 610px; margin-inline: auto; }
.hero-art .phone { width: 239px; height: 480px; left: 51%; top: 83px; }
.phone-screen { padding: 12px 14px; }
.phone-status { line-height: 1; padding: 0 2px 8px; }
.phone .app-brand { line-height: 1; }
.phone-greeting { margin-top: 10px; font-size: 8px; line-height: 1.25; }
.phone h2 { font-size: 16px; line-height: 1.25; margin-top: 4px; }
.daily { margin-top: 12px; padding: 10px 12px 8px; }
.daily > span { display: block; font-size: 6px; line-height: 1.3; }
.word-icon { font-size: 22px; line-height: 1; margin: 3px; }
.daily strong { font-size: 30px; line-height: 1.05; }
.hero .daily p { font-size: 10px; line-height: 1.4; margin: 3px; }
.daily button { min-height: 44px; font-size: 11px; line-height: 1.2; align-items: center; margin-top: 5px; padding: 6px 2px; }
.phone-lesson { margin-top: 10px; }
.phone-lesson > div { min-width: 0; }
.phone-nav { line-height: 1; margin-top: 12px; padding-top: 7px; }
.phone-nav small { line-height: 1.2; }
.hero-art .art-caption { bottom: 13px; }

/* Courses keep useful column widths instead of shrinking text. */
.batch-section { padding-top: clamp(64px, 7vw, 90px); padding-bottom: 24px; }
.batch-panel { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.batch-main { padding: 50px clamp(24px, 3vw, 38px) 32px; }
.batch-paper-note { max-width: calc(100% - 40px); font-size: clamp(20px, 2.2vw, 25px); }
.batch-paper-note > svg { flex-shrink: 0; }
.batch-intro { font-size: 15px; }
.batch-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.batch-facts dt { font-size: 12px; }
.batch-facts dd { font-size: 14px; }
.batch-includes h4 { font-size: 15px; }
.batch-includes ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.batch-includes li { font-size: 13px; }
.batch-price { padding: clamp(28px, 3vw, 43px); }
.batch-price > .eyebrow { font-size: 11px; }
.price-amount { font-size: clamp(42px, 4.8vw, 62px); }
.price-subtitle { font-size: 15px; }
.price-path small { font-size: 12px; }
.price-secondary { font-size: 14px; min-height: 48px; display: grid; place-items: center; }
.batch-note { font-size: 13px; }
.batch-enquiry.button { font-size: 14px; min-height: 54px; }
.values-four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.values-four .value h3 { font-size: 19px; }
.values-four .value p { font-size: 14px; max-width: none; }
.classroom-panel { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.classroom-copy p { font-size: 15px; }
.classroom-copy .button { min-height: 48px; font-size: 14px; }
.course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.course { padding: clamp(24px, 2.7vw, 35px) clamp(22px, 2.8vw, 35px) 0; }
.course h3 { font-size: clamp(22px, 2.2vw, 27px); }
.course p { font-size: 15px; max-width: 45ch; }
.course .course-level { font-size: clamp(62px, 6vw, 78px); line-height: 1.25; }
.course-level > span { max-width: calc(100% - 96px); font-size: clamp(20px, 2vw, 26px); text-align: right; }
.course-doodle { top: 112px; right: 26px; width: 60px; height: 60px; }
.course-top { gap: 10px; font-size: 10px; line-height: 1.6; }
.course .pill { font-size: 9px; flex-shrink: 0; }
.course-top > span:last-child { text-align: right; }
.course-tags { gap: 8px; }
.course-tags span { font-size: 12px; line-height: 1.5; }
.single-course-price { gap: 12px; }
.single-course-price > span { font-size: 11px; line-height: 1.6; }
.single-course-price > strong { font-size: 34px; }
.course-bundle { flex-wrap: wrap; font-size: 13px; min-height: 64px; }
.course-bundle > span { max-width: none; flex: 1 1 125px; }
.course-bundle > strong { font-size: 18px; }
.course-button { font-size: 15px; min-height: 60px; }
.course-helper { flex-wrap: wrap; font-size: 14px; gap: 8px 18px; }
.course-helper .text-link { font-size: 14px; }
.course-links { font-size: 13px; line-height: 1.7; }
.course-links a { min-height: 44px; display: inline-flex; align-items: center; }
.combined-paths { gap: 28px; }
.combined-paths p { font-size: 14px; }
.path-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 0 1 480px; }
.path-chips a { min-height: 48px; display: flex; align-items: center; font-size: 13px; line-height: 1.5; }

/* Practice and the product preview remain usable with larger text. */
.practice-grid, .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(30px, 5vw, 80px); }
.practice-grid > div:first-child > p { font-size: 15px; }
.quiz { padding: 38px clamp(22px, 2.6vw, 34px) 28px; max-width: 560px; }
.quiz-heading { font-size: 10px; line-height: 1.5; gap: 15px; }
.quiz-heading > span:last-child { flex-shrink: 0; }
.quiz p.quiz-label { font-size: 10px; }
.quiz-options { grid-template-columns: 1fr; }
.quiz-options button { min-height: 48px; font-size: 14px; padding: 12px 16px; text-align: left; }
.quiz-feedback { font-size: 14px; }
.quiz .button { min-height: 48px; font-size: 14px; }
.app-display { width: 100%; max-width: 520px; padding: 30px 22px 45px; margin-inline: auto; }
.app-window { width: 100%; max-width: 420px; margin-inline: auto; }
.window-top { flex-wrap: wrap; gap: 12px; padding: 20px 24px; }
.window-top > span { font-size: 9px; line-height: 1.4; }
.window-content { padding: 24px; min-height: 350px; }
.window-content > small { font-size: 10px; line-height: 1.6; }
.window-content h3 { font-size: clamp(23px, 2.4vw, 29px); }
.window-content p { font-size: 13px; }
.window-lesson { gap: 12px; }
.window-lesson b { flex: 0 0 33px; }
.window-lesson div { min-width: 0; }
.window-lesson strong { font-size: 13px; line-height: 1.5; }
.window-lesson small { font-size: 11px; line-height: 1.6; }
.window-bottom { gap: 15px; }
.window-bottom > span:first-child { font-size: 8px; line-height: 1.6; }
.app-sticker { right: 0; bottom: 4px; }
.app-copy h2 { font-size: clamp(34px, 3.3vw, 44px); }
.app-copy > p { font-size: 15px; max-width: 46ch; }
.app-tabs button { min-height: 56px; font-size: 12px; }
.app-tabs button span { font-size: 15px; line-height: 1.6; }
.app-actions { gap: 14px 22px; }
.app-actions > .text-link { font-size: 14px; }
.app-disclaimer { font-size: 12px; line-height: 1.7; }

/* Germany cards and planning tools follow the available space. */
.germany-feature { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 4vw, 60px); }
.germany-intro h2 { font-size: clamp(36px, 4vw, 53px); }
.germany-intro > p { font-size: 16px; max-width: 44ch; }
.germany-postcard { min-width: 0; width: calc(100% - 20px); margin-inline: auto; }
.germany-postcard > img { height: auto; }
.germany-postcard figcaption > span:first-child { min-width: 0; }
.postcard-stamp { flex-shrink: 0; }
.photo-credit { min-height: 32px; display: inline-flex; align-items: center; font-size: 11px; }
.study-pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.study-pillar p, .study-panel p, .study-panel li, .india-note > p, .language-bridge p { font-size: 15px; }
.study-pillar > a, .study-panel > a, .india-note > a { font-size: 13px; min-height: 44px; }
.study-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.study-panel[hidden] { display: none; }
.study-tabs { flex-shrink: 0; max-width: 100%; }
.study-tabs button { min-height: 48px; font-size: 14px; }
.study-budget { grid-template-columns: minmax(0, .9fr) repeat(2, minmax(0, 1fr)); }
.study-budget > div:first-child { grid-column: auto; }
.budget-stat strong { font-size: clamp(27px, 2.6vw, 34px); }
.budget-stat > span, .budget-stat > p, .budget-footnote { font-size: 13px; }
.study-prep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.study-checklist > p, .study-checklist label { font-size: 14px; }
.study-checklist input { width: 23px; height: 23px; }
.study-checklist > small, .study-sources p { font-size: 12px; line-height: 1.7; }
.checklist-footer { flex-wrap: wrap; font-size: 12px; }
.checklist-footer button { font-size: 13px; }
.language-bridge .button { font-size: 14px; }
.study-sources nav a { min-height: 44px; font-size: 13px; }
.method-section { padding-top: 0; }
.method-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.method-grid h3 { font-size: 19px; }
.method-grid p { font-size: 14px; }
.faq { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(30px, 5vw, 70px); padding-bottom: var(--section-space); }
.faq-list summary { font-size: 15px; line-height: 1.6; min-height: 60px; }
.faq-list summary span { flex: 0 0 27px; }
.faq-list p { font-size: 15px; }
.closing.wrap { width: calc(100% - var(--page-gutter) - var(--page-gutter)); max-width: 1252px; margin-inline: auto; padding: clamp(44px, 5vw, 64px) clamp(24px, 5vw, 64px); }
.closing h2 { font-size: clamp(33px, 4vw, 49px); }
.closing-description { font-size: 15px; }
.closing-actions { flex-wrap: wrap; }
.closing-actions .text-link { font-size: 14px; }
.closing-star, .closing-word { pointer-events: none; }
.footer-top { flex-wrap: wrap; gap: 24px 35px; }
.footer-top > div { flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.footer-top > div > a, .back-top { min-height: 44px; display: inline-flex; align-items: center; font-size: 13px; }
.footer-top p { font-size: 13px; }
.footer-bottom { flex-wrap: wrap; font-size: 12px; gap: 15px 25px; line-height: 1.7; }
.footer-bottom > span:last-child { flex-wrap: wrap; }

/* Dialogs fit the visible viewport, including landscape and enlarged text. */
dialog {
  max-width: 560px; width: calc(100% - 32px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  margin: auto; overflow-y: auto; overscroll-behavior: contain;
  padding: 48px clamp(22px, 5vw, 40px) 28px;
  -webkit-overflow-scrolling: touch;
}
dialog .eyebrow { padding-right: 12px; }
dialog h2 { font-size: clamp(28px, 6vw, 35px); }
dialog p, dialog li { font-size: 15px; }
dialog .button { min-height: 50px; font-size: 14px; }
.path-options button { min-height: 52px; font-size: 15px; line-height: 1.6; }
.dialog-combined .text-link { font-size: 14px; }
.dialog-open .mobile-batch-bar { visibility: hidden; pointer-events: none; }

@media (max-width: 1200px) {
  .values-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .closing .closing-word { display: none; }
}
@media (max-width: 1150px) {
  .header { min-height: 82px; gap: 16px; }
  .header nav { display: none; position: absolute; top: calc(100% - 1px); left: var(--page-gutter); right: var(--page-gutter); padding: 12px; border: 1px solid #ced8bd; border-radius: 12px; box-shadow: 0 15px 25px #123c2c20; background: #fffcf8; max-height: calc(100vh - var(--header-height) - var(--batch-bar-height) - 24px); max-height: calc(100dvh - var(--header-height) - var(--batch-bar-height) - 24px); overflow-y: auto; overscroll-behavior: contain; }
  .header nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .header nav a { display: flex; min-height: 50px; padding: 11px 12px; font-size: 15px; white-space: normal; border-radius: 6px; }
  .header-cta { margin-left: auto; }
  .menu { display: grid; place-items: center; width: 46px; height: 46px; font-size: 25px; padding: 0; border: 1px solid #d4dcc8; border-radius: 8px; background: none; }
}
@media (max-width: 1050px) {
  .batch-panel { grid-template-columns: 1fr; }
  .batch-price { border-left: 0; border-top: 2px dashed #dbc58e; border-radius: 0 0 21px 21px; }
  .batch-price > * { width: 100%; max-width: 620px; margin-left: auto; margin-right: auto; }
  .price-path { max-width: 440px; }
  .price-amount { font-size: 60px; }
  .batch-price { padding: 34px; }
  .app-grid { grid-template-columns: 1fr; gap: 45px; }
  .app-copy { max-width: 650px; width: 100%; margin-inline: auto; }
  .app-copy > p { max-width: none; }
  .app-display { max-width: 500px; }
  .study-budget { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .study-budget > div:first-child { grid-column: 1 / -1; }
  .budget-stat { padding-left: 0; border-left: 0; }
  .study-budget h3 br { display: none; }
  .study-route-heading { flex-wrap: wrap; }
  .study-pillars { gap: 18px; }
  .study-pillar { padding: 24px; }
  .study-pillar h3 { font-size: 20px; }
  .combined-paths { flex-wrap: wrap; }
  .path-chips { flex-basis: 100%; width: 100%; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .hero-copy { text-align: center; max-width: 660px; margin-inline: auto; width: 100%; }
  .hero-copy .eyebrow { justify-content: center; }
  .hero h1 { font-size: clamp(46px, 8.5vw, 70px); }
  .hero-copy > p { margin-inline: auto; }
  .hero-actions, .hero-note { justify-content: center; }
  .hero-note { text-align: left; }
  .hero-art { width: 100%; max-width: 470px; height: 610px; }
  .hero-offer { text-align: left; }
  .section-top { display: block; }
  .section-top > p { max-width: 64ch; margin-top: 22px; }
  .classroom-panel { grid-template-columns: 1fr; }
  .classroom-panel > img { width: 100%; height: auto; min-height: 0; aspect-ratio: 1.9; object-fit: cover; }
  .classroom-copy { padding: 34px; }
  .practice-grid { grid-template-columns: 1fr; gap: 55px; }
  .practice-grid > div:first-child { text-align: center; }
  .practice-grid .eyebrow, .practice-note { justify-content: center; }
  .quiz { width: 100%; margin-inline: auto; transform: none; }
  .germany-feature { grid-template-columns: 1fr; gap: 42px; }
  .germany-intro { text-align: center; }
  .germany-intro > p { max-width: 52ch; margin-inline: auto; }
  .germany-handnote { justify-content: center; }
  .germany-postcard { max-width: 600px; width: calc(100% - 20px); }
  .germany-postcard > img { aspect-ratio: 1.45; }
  .study-pillars { grid-template-columns: 1fr; }
  .study-pillar { position: relative; padding: 28px 28px 28px 112px; }
  .study-pillar > .doodle-icon { position: absolute; left: 26px; top: 29px; width: 60px; height: 60px; }
  .study-prep-grid { grid-template-columns: 1fr; }
  .india-note { padding-left: 0; }
  .faq { grid-template-columns: 1fr; }
  .closing-star { width: 60px; height: 60px; top: 18px; left: 15px; opacity: .45; }
}
@media (max-width: 800px) {
  :root { --header-height: 80px; --batch-bar-height: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .header { min-height: 80px; padding-block: 10px; }
  .mobile-batch-bar { z-index: 25; padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); gap: 12px; }
  .mobile-batch-price { min-width: 0; }
  .mobile-batch-price > span { font-size: 10px; line-height: 1.4; letter-spacing: .7px; }
  .mobile-batch-price strong { font-size: 24px; line-height: 1.2; white-space: nowrap; }
  .mobile-batch-bar .button { min-height: 50px; font-size: 14px; padding: 12px 17px; flex-shrink: 0; }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .study-panel { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .course-grid { grid-template-columns: 1fr; }
  .course .course-level { font-size: 74px; }
  .course-level > span { font-size: 26px; }
  .course h3 { font-size: 26px; }
  .single-course-price { flex-direction: row; align-items: center; }
}
@media (max-width: 640px) {
  .values-four { grid-template-columns: 1fr; }
  .value { position: relative; padding: 25px 25px 25px 98px; }
  .value-icon { position: absolute; left: 22px; top: 32px; width: 55px; height: 55px; }
  .values-four .value h3 { margin: 8px 12px 10px 0; }
  .value-number { top: 15px; right: 18px; }
  .method-grid { grid-template-columns: 1fr; gap: 24px; }
  .method-grid article + article { border-top: 1px dashed #c5cdb6; padding-top: 22px; }
  .study-budget { grid-template-columns: 1fr; }
  .budget-stat { border-top: 1px dashed #c1cea6; padding-top: 20px; }
  .study-pillar { padding: 25px; }
  .study-pillar > .doodle-icon { position: static; margin-bottom: 15px; }
  .app-window { transform: none; }
  .app-display { padding: 12px 5px; max-width: 440px; }
  .app-sticker { position: relative; right: auto; bottom: auto; width: fit-content; margin: 22px auto 0; transform: rotate(6deg); padding: 16px 25px; }
  .app-ring { left: 50%; transform: translateX(-50%); width: min(350px, 100%); height: 350px; }
  .closing-actions { flex-direction: column; gap: 15px; }
  .closing .button { width: 100%; max-width: 360px; }
  .footer-top > div { justify-content: flex-start; flex-basis: 100%; }
}
@media (max-width: 520px) {
  :root { --page-gutter: clamp(16px, 5vw, 24px); }
  .header { min-height: 76px; }
  .header-cta { display: none; }
  .hero h1 { font-size: clamp(42px, 10.7vw, 56px); }
  .hero-copy .eyebrow { font-size: 10px; letter-spacing: 1px; }
  .student-greeting { font-size: clamp(21px, 5.5vw, 25px); }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-actions > .text-link { align-self: center; }
  .hero-copy > p { font-size: 15px; }
  .hero-offer { display: grid; width: 100%; }
  .hero-art { height: 590px; }
  .hero-art .phone { top: 80px; left: 50%; width: min(239px, 78%); height: 474px; transform: translateX(-50%) rotate(3deg); animation: none; }
  .hero-art .hello-card { top: 120px; }
  .hero-art .word-card { bottom: 46px; }
  .hero-art .art-word { bottom: 27px; }
  .batch-main { padding: 48px 24px 26px; }
  .batch-price { padding: 30px 24px; }
  .batch-facts { gap: 0 18px; }
  .batch-includes ul { grid-template-columns: 1fr; }
  .price-amount { font-size: clamp(42px, 12vw, 58px); }
  .price-amount > span { font-size: 23px; }
  .course { padding: 26px 24px 0; }
  .course .course-level { font-size: 66px; }
  .course-level > span { font-size: 23px; }
  .course h3 { font-size: 24px; }
  .course-doodle { right: 23px; top: 112px; }
  .path-chips { grid-template-columns: 1fr; }
  .path-chips a { padding: 12px 16px; }
  .quiz-sticker { font-size: 22px; right: 9px; }
  .quiz h3 { font-size: clamp(24px, 6vw, 30px); }
  .window-top, .window-content { padding-inline: 20px; }
  .window-content { min-height: 0; }
  .window-bottom { padding-inline: 20px; }
  .app-actions { flex-direction: column; align-items: stretch; }
  .app-actions .text-link { justify-content: center; }
  .germany-intro h2 { font-size: 39px; }
  .germany-postcard figcaption { font-size: 23px; flex-wrap: wrap; }
  .germany-postcard { rotate: 1deg; }
  .germany-postcard > img { aspect-ratio: 1.25; }
  .study-route, .study-budget, .study-checklist { padding: 24px; }
  .study-route-heading { align-items: stretch; }
  .study-tabs { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .study-tabs button { padding: 10px; font-size: 14px; }
  .faq-list p { padding-right: 0; }
  .footer-top { gap: 20px; }
  .footer-top > p { margin-left: 0; }
  .footer-top .back-top { margin-left: 0; }
  .footer-bottom { font-size: 11px; }
}
@media (max-width: 420px) {
  .hero-note { font-size: 12px; gap: 10px; }
  .hero-smile { width: 43px; height: 43px; margin-left: 10px; }
  .hero-handnote svg, .hero-pencil { display: none; }
  .batch-facts { grid-template-columns: 1fr; }
  .batch-paper-note { font-size: 21px; gap: 4px; left: 16px; padding-inline: 10px; }
  .batch-paper-note .doodle-icon { width: 24px; height: 24px; }
  .batch-main h3 { font-size: 54px; }
  .batch-main h3 > span { font-size: 44px; }
  .value { padding-left: 83px; padding-right: 20px; }
  .value-icon { left: 16px; width: 49px; height: 49px; }
  .course .course-level { font-size: 62px; }
  .course-level > span { font-size: 20px; }
  .course h3 { font-size: 22px; }
  .course .pill { font-size: 8px; padding-inline: 8px; }
  .course-top { font-size: 9px; letter-spacing: .5px; }
  .single-course-price { align-items: flex-start; flex-direction: column; gap: 8px; }
  .course-bundle { gap: 7px; }
  .course-bundle > span { flex-basis: 100%; }
  .window-top { gap: 8px; }
  .window-top > span { font-size: 8px; }
  .window-lesson { gap: 9px; }
  .window-lesson strong { font-size: 12px; }
  .window-lesson small { font-size: 10px; }
  .window-content > small { font-size: 9px; }
  .window-content h3 { font-size: 24px; }
  .study-route, .study-budget, .study-checklist { padding: 21px; }
  .germany-intro h2 { font-size: 35px; }
  .mobile-batch-price > span { font-size: 9px; }
  .mobile-batch-price strong { font-size: 21px; }
  .mobile-batch-bar .button { font-size: 13px; gap: 10px; padding-inline: 13px; }
}
/* Landscape phones and split-screen windows retain their reading area. */
@media (max-height: 500px) {
  .header { position: relative; min-height: 70px; padding-block: 8px; }
  html { scroll-padding-top: 16px; }
  .mobile-batch-bar { display: none; }
  body { padding-bottom: 0; }
  .header nav { max-height: calc(100vh - var(--header-height) - 16px); max-height: calc(100dvh - var(--header-height) - 16px); }
  dialog { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); padding-top: 42px; }
}
@media (pointer: coarse) {
  .hero-art .phone, .floating-card { animation: none; }
  .photo-credit { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-motion .reveal { opacity: 1; translate: none; transform: none; }
}
/* Small-screen overflow guards: every grid item may shrink, bars stay fluid. */
:where(.path-chips, .batch-facts, .batch-includes ul, .quiz-options, .study-tabs,
  .method-grid, .values, .values-four, .course-grid, .app-tabs) > * { min-width: 0; }
.mobile-batch-bar > * { min-width: 0; }
.hero-art .phone { max-width: 100%; }
