@font-face {
  font-family: Noto;
  src: url("/a1/assets/arabic-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/a1/assets/plex-arabic-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/a1/assets/plex-arabic-bold.woff2") format("woff2");
  font-weight: 600 900;
  font-display: swap;
}
@font-face {
  font-family: Noto;
  src: url("/a1/assets/arabic-bold.ttf") format("truetype");
  font-weight: 600 900;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("/a1/assets/latin-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("/a1/assets/latin-bold.ttf") format("truetype");
  font-weight: 600 900;
  font-display: swap;
}
:root {
  /* Extracted from the supplied Together We Can symbol; logo colors unchanged. */
  --brand-navy: #0c2335;
  --brand-turquoise: #12bbc3;
  --brand-mint: #8bd5c3;
  --ink: #0c2335;
  --muted: #526877;
  /* Together We Can / DeutschBeruf family palette (togetherwecan-jobs.de/deutschberuf):
     warm ivory surfaces, navy text, copper for primary actions and limited emphasis.
     Turquoise/mint stay for secondary identity and progress only — see --progress*. */
  --paper: #fbfaf7;
  --white: #fff;
  --line: #e6ddce;
  --mint: #e6f6f2;
  --primary: #0c2335;
  --accent: #9c4420;
  --accent-dark: #7c3417;
  --accent-contrast: #fff;
  --soft-accent: #f5e6db;
  --progress: #08766e;
  --progress-soft: #e1f3ee;
  --radius: 22px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, "IBM Plex Sans Arabic", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.8;
}
html[lang="ar"] body {
  font-family: "IBM Plex Sans Arabic", Manrope, sans-serif;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.45;
  font-weight: 700;
}
img {
  display: block;
  max-width: 100%;
}
small {
  font-size: 12px;
}
bdi,
[lang="de"] {
  font-family: Manrope, "IBM Plex Sans Arabic", sans-serif;
}
button.primary,
a.primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 13px 23px;
  border-radius: 12px;
  font-weight: 700;
  min-height: 48px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}
.secondary {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 11px 20px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  font-weight: 600;
}
.text-button {
  background: none;
  color: var(--primary);
  font-weight: 700;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.text-button:hover {
  text-decoration: underline;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
html[lang="ar"] .eyebrow {
  letter-spacing: 0;
}
.muted {
  color: var(--muted);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  padding: 3px 9px;
  background: var(--mint);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.8;
}
.tag.sand {
  background: var(--soft-accent);
  color: var(--accent);
}
.tag.outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}
.pill-dot {
  width: 7px;
  height: 7px;
  background: var(--brand-turquoise);
  border-radius: 50%;
}
.skip {
  position: absolute;
  top: -100px;
  z-index: 999;
  background: #fff;
  padding: 14px;
}
.skip:focus {
  top: 8px;
}
.shell {
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-inline-end: 1px solid var(--line);
  padding: 34px 22px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.brand {
  display: block;
}
.brand img {
  width: 174px;
  height: auto;
}
.brand p {
  font:
    700 12px Manrope,
    sans-serif;
  letter-spacing: 0.05em;
  margin-top: 12px;
  color: var(--primary);
}
.nav-label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 14px;
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.side-nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.side-nav a.active {
  background: var(--mint);
  color: var(--primary);
}
.side-nav a:hover {
  background: #edf8fa;
}
.side-nav .nav-dot {
  margin-inline-start: auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}
.sidebar-foot {
  margin-top: auto;
  background: var(--paper);
  padding: 18px;
  border-radius: 15px;
  font-size: 12px;
}
.sidebar-foot strong {
  display: block;
  font-size: 13px;
  margin: 7px 0;
}
.sidebar-foot .circle {
  background: var(--soft-accent);
  color: var(--accent);
  height: 35px;
  width: 35px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.edition {
  margin-top: 20px;
  font-size: 10px;
  color: var(--muted);
}
.page-shell {
  min-width: 0;
}
.topbar {
  height: 90px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  gap: 14px;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.top-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}
.languages {
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 2px;
  direction: ltr;
}
.languages button {
  background: none;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 5px;
  font:
    700 11px Manrope,
    Noto,
    sans-serif;
  min-height: 30px;
}
.languages button[aria-pressed="true"] {
  background: var(--primary);
  color: white;
}
.avatar {
  border-radius: 50%;
  background: var(--soft-accent);
  color: var(--accent);
  height: 36px;
  width: 36px;
  display: grid;
  place-items: center;
}
.main {
  padding: 38px 44px 60px;
  max-width: 1580px;
  margin: auto;
}
.page-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.page-intro h1 {
  font-size: 27px;
  margin: 4px 0 7px;
  letter-spacing: -0.04em;
}
html[lang="ar"] .page-intro h1 {
  letter-spacing: -0.03em;
}
.page-intro p {
  font-size: 13px;
  color: var(--muted);
}
.page-intro > .tag {
  margin-top: 10px;
  white-space: nowrap;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  min-height: 350px;
}
.hero-copy {
  padding: 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.hero h2 {
  font-size: 35px;
  letter-spacing: -0.045em;
  line-height: 1.5;
  max-width: 470px;
  margin: 16px 0;
}
.hero h2 em {
  font-style: normal;
  color: var(--accent);
}
.hero-copy > p {
  font-size: 13px;
  max-width: 360px;
  color: var(--muted);
  margin-bottom: 22px;
  line-height: 2;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.hero-actions small {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
.hero-media {
  position: relative;
  min-height: 350px;
}
.hero-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}
.hero-media:after {
  content: "";
  position: absolute;
  inset: 50% 0 0;
  background: linear-gradient(transparent, rgba(18, 42, 33, 0.4));
  pointer-events: none;
}
.photo-label {
  position: absolute;
  top: 20px;
  inset-inline-end: 20px;
  background: #ffffffdf;
  backdrop-filter: blur(10px);
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 10px;
  z-index: 1;
}
.dialogue-peek {
  position: absolute;
  bottom: 26px;
  inset-inline-start: 26px;
  inset-inline-end: 26px;
  z-index: 1;
  background: #ffffffee;
  backdrop-filter: blur(16px);
  border-radius: 15px;
  padding: 16px 19px;
  display: flex;
  align-items: center;
  gap: 13px;
  box-shadow: 0 8px 30px #0c233513;
}
.speaker-circle {
  height: 39px;
  width: 39px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--soft-accent);
  color: var(--accent);
  font: 700 14px Manrope;
  flex-shrink: 0;
}
.dialogue-peek .line {
  flex: 1;
}
.dialogue-peek strong {
  font: 700 16px Manrope;
  display: block;
  direction: ltr;
  text-align: start;
}
.dialogue-peek small {
  font-size: 10px;
  color: var(--muted);
}
.wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 28px;
  direction: ltr;
}
.wave i {
  width: 3px;
  background: var(--primary);
  border-radius: 3px;
  height: 14px;
}
.wave i:nth-child(2n) {
  height: 24px;
}
.wave i:nth-child(3n) {
  height: 8px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 30px 0 16px;
}
.section-title h2 {
  font-size: 19px;
}
.section-title p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.section-title .text-button {
  font-size: 12px;
}
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.method-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 21px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.method-num {
  font: 700 11px Manrope;
  color: var(--muted);
  margin-bottom: 11px;
  display: block;
}
.method-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 13px;
  background: var(--mint);
  display: grid;
  place-items: center;
}
.method-card:nth-child(2) .method-icon {
  background: var(--soft-accent);
  color: var(--accent);
}
.method-card:nth-child(3) .method-icon {
  background: #e8f0f5;
  color: #42616e;
}
.method-card h3 {
  font-size: 14px;
  margin-bottom: 6px;
}
.method-card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.95;
}
.below-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(250px, 1fr);
  gap: 22px;
}
.unit-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 21px;
  display: flex;
  align-items: center;
  gap: 17px;
}
.unit-icon {
  height: 64px;
  width: 64px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--soft-accent);
  color: var(--accent);
  flex-shrink: 0;
}
.unit-icon svg {
  width: 30px;
  height: 30px;
}
.unit-card .unit-info {
  flex: 1;
}
.unit-card h3 {
  font-size: 16px;
  margin: 7px 0 3px;
}
.unit-card p {
  font-size: 12px;
  color: var(--muted);
}
.unit-card .round-link {
  border: 1px solid var(--line);
  height: 39px;
  width: 39px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.daily-card {
  background: var(--mint);
  padding: 22px;
  border-radius: 17px;
  height: 100%;
  min-height: 166px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.daily-card .eyebrow {
  display: flex;
  gap: 8px;
  align-items: center;
}
.daily-card h3 {
  font-size: 19px;
  margin: 10px 0;
}
.daily-card p {
  font-size: 12px;
  color: var(--muted);
}
.subtle-footer {
  font-size: 10px;
  color: var(--muted);
  margin-top: 33px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 17px;
  gap: 10px;
}
.roadmap-head {
  background: var(--primary);
  color: white;
  padding: 26px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.roadmap-head p {
  color: #c9ecea;
  font-size: 12px;
  margin-top: 8px;
}
.roadmap-head h2 {
  font-size: 24px;
}
.roadmap-head .big-letter {
  font: 700 70px Manrope;
  color: var(--brand-mint);
  line-height: 1;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.module {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  min-height: 178px;
  display: flex;
  flex-direction: column;
}
.module:first-child {
  border-color: var(--brand-turquoise);
  background: var(--progress-soft);
}
.module-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.module-number {
  font: 700 20px Manrope;
  color: var(--accent);
}
.module h3 {
  font-size: 15px;
}
.module p {
  font-size: 11px;
  margin: 8px 0 15px;
  color: var(--muted);
}
.module .text-button {
  font-size: 12px;
  margin-top: auto;
}
.module > small {
  margin-top: auto;
  color: var(--muted);
}
.learning-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 23px;
}
.learning-header .text-button {
  font-size: 12px;
}
.learning-header .divider {
  width: 1px;
  height: 22px;
  background: var(--line);
}
.learning-header h1 {
  font-size: 20px;
}
.lesson-steps {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--mint);
  padding: 5px;
  border-radius: 14px;
}
.lesson-steps button {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 45px;
  background: none;
  border-radius: 10px;
  font-size: 12px;
  color: var(--muted);
  padding: 9px;
}
.lesson-steps button.active {
  background: white;
  color: var(--primary);
  box-shadow: 0 3px 8px #0c233509;
}
.lesson-steps .step-n {
  font: 600 10px Manrope;
  display: grid;
  place-items: center;
  border: 1px solid #9bb8c7;
  height: 20px;
  width: 20px;
  border-radius: 50%;
}
.lesson-steps .active .step-n {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.lesson-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 23px;
  padding: 29px;
  min-height: 420px;
}
.lesson-content h2 {
  font-size: 23px;
  margin: 5px 0 12px;
}
.lesson-content > .muted {
  font-size: 13px;
}
.scene-grid {
  display: grid;
  grid-template-columns: 0.96fr 1fr;
  gap: 28px;
  margin-top: 24px;
}
.scene-frame {
  position: relative;
  border-radius: 17px;
  overflow: hidden;
  min-height: 300px;
}
.scene-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
}
.scene-note {
  background: #fffc;
  position: absolute;
  bottom: 16px;
  right: 16px;
  left: 16px;
  border-radius: 10px;
  padding: 12px;
  backdrop-filter: blur(12px);
  font-size: 11px;
}
.scene-note strong {
  display: block;
  font-size: 12px;
}
.dialogue-lines {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.dialogue-line {
  padding: 12px 14px;
  background: #eef8fa;
  border-radius: 12px;
}
.dialogue-line:nth-child(2n) {
  background: #edf8f4;
}
.line-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 700 10px Manrope;
  color: var(--muted);
  margin-bottom: 6px;
}
.dialogue-line .german {
  font-size: 16px;
  font-weight: 700;
  direction: ltr;
  display: block;
  text-align: left;
}
.translation {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.sound {
  background: white;
  color: var(--primary);
  border-radius: 50%;
  height: 30px;
  width: 30px;
  display: grid;
  place-items: center;
}
.sound svg {
  height: 15px;
  width: 15px;
}
.inline-note {
  font-size: 11px;
  color: var(--muted);
  padding: 13px 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.inline-note svg {
  width: 15px;
  height: 15px;
  margin-top: 3px;
}
.lesson-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 24px;
}
.lesson-bottom .muted {
  font-size: 11px;
}
.vocab-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 25px;
}
.vocab-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vocab-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vocab-card h3 {
  font: 700 21px Manrope;
  direction: ltr;
  text-align: left;
}
.vocab-card small {
  color: var(--muted);
}
.vocab-card .text-button {
  font-size: 12px;
}
.vocab-card .example {
  font-size: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  direction: ltr;
  text-align: left;
}
.grammar {
  background: var(--soft-accent);
  padding: 20px;
  border-radius: 15px;
  margin-top: 20px;
  font-size: 13px;
}
.grammar strong {
  display: block;
  margin-bottom: 5px;
}
.sound-study,
.grammar-study {
  margin-top: 32px;
}
.sound-study h3,
.grammar-study h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.sound-study-grid,
.grammar-study-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.sound-study-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 18px;
  background: #fff;
}
.sound-study-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sound-study-head strong {
  font: 800 24px Manrope, sans-serif;
  color: var(--accent);
}
.sound-study-card p,
.grammar-study .grammar p {
  margin: 8px 0 0;
  line-height: 1.75;
}
.sound-study-card small {
  color: var(--muted);
}
.grammar-study .grammar {
  margin-top: 0;
}
.repeat-study {
  margin-top: 32px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft-accent);
}
.repeat-study h3 {
  font-size: 20px;
}
.repeat-study > p {
  line-height: 1.7;
}
.repeat-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff;
}
.personal-playback {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.personal-playback audio {
  max-width: 100%;
}
.task-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 10px 18px;
}
.task-progress {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}
.progress-track {
  height: 5px;
  border-radius: 5px;
  background: var(--progress-soft);
  overflow: hidden;
  margin-bottom: 28px;
}
.progress-fill {
  height: 100%;
  background: var(--progress);
  transition: width 0.3s;
}
.prompt {
  font-size: 23px !important;
  line-height: 1.8;
  margin: 20px 0 !important;
}
.instruction {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.choices {
  display: grid;
  gap: 10px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 15px 17px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: start;
  color: var(--ink);
}
.choice .letter {
  font: 700 12px Manrope;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--mint);
  flex-shrink: 0;
}
.choice.selected {
  border-color: var(--primary);
  background: var(--progress-soft);
  box-shadow: 0 0 0 1px var(--primary);
}
.choice:hover {
  border-color: var(--accent);
}
.task-actions {
  margin-top: 25px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.token-tray,
.answer-tray {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  direction: ltr;
}
.answer-tray {
  padding: 20px;
  background: var(--mint);
  border: 1px dashed var(--line);
  border-radius: 14px;
  min-height: 81px;
  margin-bottom: 18px;
}
.token {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 16px;
  color: var(--ink);
  font-weight: 700;
}
.token-tray .token:disabled {
  opacity: 0.3;
}
.answer-tray .token {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.gap-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 17px;
  background: var(--paper);
  direction: ltr;
  color: var(--ink);
  font-size: 19px;
}
.feedback {
  margin-top: 20px;
  border-radius: 14px;
  padding: 18px;
  font-size: 13px;
  background: var(--mint);
  border: 1px solid var(--brand-mint);
}
.feedback.wrong {
  background: #fff3e8;
  border-color: #e8c6a5;
  color: #764822;
}
.feedback strong {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
}
.feedback .solution {
  direction: ltr;
  text-align: left;
  font: 700 16px Manrope;
  margin-top: 10px;
}
.empty-state {
  text-align: center;
  max-width: 560px;
  margin: 30px auto;
  padding: 40px 20px;
}
.empty-state .empty-icon {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  background: var(--mint);
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
}
.empty-state .empty-icon svg {
  width: 34px;
  height: 34px;
}
.empty-state h2 {
  font-size: 26px;
}
.empty-state p {
  font-size: 13px;
  color: var(--muted);
  margin: 15px 0 25px;
}
.result {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 35px;
  align-items: center;
  padding: 30px 15px;
}
.result-score {
  width: 170px;
  height: 170px;
  border: 11px solid var(--progress-soft);
  border-top-color: var(--progress);
  border-right-color: var(--progress);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: auto;
  direction: ltr;
}
.result-score strong {
  font: 700 38px Manrope;
}
.result-score small {
  color: var(--muted);
}
.result-copy p {
  font-size: 13px;
  color: var(--muted);
  margin: 14px 0 20px;
}
.evidence-results {
  padding: 30px 15px;
}
.evidence-result-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.evidence-result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--progress-soft);
  border-radius: 12px;
}
.evidence-result-row > div:first-child {
  min-width: 0;
}
.evidence-result-row strong {
  font: 700 16px Manrope;
}
.evidence-result-row small {
  color: var(--muted);
  text-align: end;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
  margin-bottom: 25px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 25px;
}
.stat strong {
  display: block;
  font: 700 32px Manrope;
  margin-bottom: 5px;
}
.stat p {
  font-size: 12px;
  color: var(--muted);
}
.notice {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 16px;
  font-size: 12px;
  color: var(--muted);
  background: #fff;
}
.review-item {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  margin: 14px 0;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.review-item h3 {
  font-size: 15px;
}
.review-item p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
#toast {
  position: fixed;
  /* Shell footer height per breakpoint, CSS-only (no JS measurement): #toast lives outside
     #app, so render() never detaches it. See --shell-footer-h in learning-design.css. */
  bottom: calc(var(--shell-footer-h, 52px) + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  border-radius: 12px;
  padding: 13px 22px;
  font-size: 13px;
  max-width: 85vw;
  z-index: 20;
  box-shadow: 0 7px 30px #0c233522;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
#toast.visible {
  opacity: 1;
}
.preview-bar {
  font-size: 11px;
  padding: 8px 15px;
  background: var(--progress-soft);
  color: var(--ink);
  text-align: center;
  border-bottom: 1px solid var(--brand-turquoise);
}
.error-box {
  padding: 50px;
  text-align: center;
}
.loading {
  opacity: 0.6;
  pointer-events: none;
}
@media (min-width: 1600px) {
  .main {
    padding: 45px 65px;
  }
  .hero {
    min-height: 400px;
  }
  .hero h2 {
    font-size: 42px;
  }
  .hero-copy {
    padding: 48px;
  }
  .hero-media {
    min-height: 400px;
  }
}
@media (max-width: 1200px) {
  .shell {
    grid-template-columns: 200px 1fr;
  }
  .sidebar {
    padding: 28px 15px;
  }
  .main {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .hero-copy {
    padding: 27px;
  }
  .hero h2 {
    font-size: 28px;
  }
  .method-card {
    padding: 17px;
    gap: 10px;
  }
  .method-icon {
    height: 36px;
    width: 36px;
  }
  .below-grid {
    grid-template-columns: 1fr 1fr;
  }
  .module-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding: 30px;
  }
  .hero h2 {
    font-size: 30px;
    max-width: none;
  }
  .hero-copy > p {
    max-width: none;
  }
  .hero-media {
    height: 300px;
    min-height: 0;
  }
  .method-grid {
    grid-template-columns: 1fr;
  }
  .method-card {
    align-items: center;
  }
  .method-num {
    margin-bottom: 4px;
  }
  .below-grid {
    grid-template-columns: 1fr;
  }
  .scene-grid {
    grid-template-columns: 1fr;
  }
  .scene-frame {
    height: 290px;
  }
  .result {
    grid-template-columns: 1fr;
  }
  .result-score {
    grid-row: 1;
  }
  .evidence-result-row {
    flex-direction: column;
  }
  .evidence-result-row small {
    text-align: start;
  }
  .top-controls {
    gap: 10px;
  }
  .lesson-steps button {
    font-size: 11px;
    gap: 4px;
    padding: 6px;
  }
  .module-grid {
    gap: 12px;
  }
}
@media (max-width: 680px) {
  body {
    font-size: 14px;
  }
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 19px 20px 13px;
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
    gap: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .brand img {
    width: 137px;
  }
  .brand p {
    font-size: 10px;
    margin-top: 4px;
  }
  .sidebar-foot,
  .nav-label,
  .edition {
    display: none;
  }
  .side-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fffffff5;
    backdrop-filter: blur(12px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 7px 9px max(7px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    z-index: 10;
  }
  .side-nav a {
    font-size: 10px;
    min-height: 51px;
    flex-direction: column;
    gap: 3px;
    padding: 5px;
  }
  .side-nav .nav-dot {
    display: none;
  }
  .side-nav svg {
    width: 20px;
    height: 20px;
  }
  .topbar {
    height: 56px;
    padding: 0 20px;
  }
  .topbar .crumb {
    font-size: 10px;
  }
  .topbar .avatar {
    display: none;
  }
  .languages button {
    font-size: 10px;
    min-height: 28px;
    padding: 3px 7px;
  }
  .top-controls {
    gap: 5px;
  }
  .main {
    padding: 24px 18px 95px;
  }
  .page-intro {
    margin-bottom: 19px;
    gap: 10px;
  }
  .page-intro h1 {
    font-size: 22px;
  }
  .page-intro p {
    font-size: 11px;
    max-width: 250px;
  }
  .page-intro > .tag {
    font-size: 9px;
    padding: 3px 6px;
    margin-top: 9px;
  }
  .eyebrow {
    font-size: 10px;
  }
  .hero {
    border-radius: 20px;
  }
  .hero-copy {
    padding: 24px;
  }
  .hero h2 {
    font-size: 29px;
    margin: 13px 0;
  }
  .hero-copy > p {
    font-size: 12px;
  }
  .hero-actions {
    gap: 10px;
  }
  .hero .primary {
    font-size: 12px;
    padding: 12px 17px;
  }
  .hero-actions small {
    font-size: 10px;
  }
  .hero-media {
    height: 266px;
  }
  .photo-label {
    top: 14px;
    inset-inline-end: 14px;
    font-size: 9px;
  }
  .dialogue-peek {
    bottom: 17px;
    inset-inline-start: 15px;
    inset-inline-end: 15px;
    padding: 13px;
    gap: 9px;
  }
  .dialogue-peek strong {
    font-size: 14px;
  }
  .dialogue-peek small {
    font-size: 10px;
  }
  .wave {
    display: none;
  }
  .section-title {
    margin-top: 25px;
  }
  .section-title h2 {
    font-size: 17px;
  }
  .section-title .text-button {
    font-size: 11px;
  }
  .method-card h3 {
    font-size: 14px;
  }
  .method-card p {
    font-size: 11px;
  }
  .unit-card {
    padding: 17px;
    gap: 12px;
  }
  .unit-card h3 {
    font-size: 14px;
  }
  .unit-icon {
    width: 49px;
    height: 59px;
  }
  .unit-card .round-link {
    height: 32px;
    width: 32px;
  }
  .subtle-footer {
    flex-direction: column;
    gap: 7px;
    font-size: 10px;
  }
  .module-grid {
    grid-template-columns: 1fr;
  }
  .module {
    min-height: 160px;
  }
  .module p {
    font-size: 12px;
  }
  .roadmap-head {
    padding: 21px;
  }
  .roadmap-head h2 {
    font-size: 21px;
  }
  .roadmap-head .big-letter {
    font-size: 53px;
  }
  .learning-header {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
  }
  .learning-header h1 {
    font-size: 18px;
    width: 100%;
  }
  .learning-header .divider {
    display: none;
  }
  .lesson-steps {
    gap: 2px;
    padding: 4px;
  }
  .lesson-steps button {
    flex-direction: column;
    padding: 8px 4px;
    min-height: 62px;
    font-size: 9px;
    gap: 4px;
  }
  .lesson-content {
    padding: 21px 16px;
    border-radius: 17px;
  }
  .lesson-content h2 {
    font-size: 21px;
  }
  .lesson-content > .muted {
    font-size: 12px;
  }
  .scene-grid {
    gap: 19px;
    margin-top: 18px;
  }
  .scene-frame {
    height: 235px;
    min-height: 0;
  }
  .scene-note {
    font-size: 10px;
    padding: 10px;
  }
  .scene-note strong {
    font-size: 11px;
  }
  .dialogue-line .german {
    font-size: 15px;
  }
  .lesson-bottom .primary {
    padding: 12px 15px;
    font-size: 12px;
  }
  .lesson-bottom .secondary {
    padding: 10px 12px;
    font-size: 12px;
  }
  .lesson-bottom > .muted {
    display: none;
  }
  .vocab-grid {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }
  .sound-study-grid,
  .grammar-study-grid {
    grid-template-columns: 1fr;
  }
  .vocab-card {
    padding: 18px;
  }
  .prompt {
    font-size: 19px !important;
  }
  .task-wrap {
    padding: 0;
  }
  .choice {
    padding: 13px;
    font-size: 13px;
  }
  .task-actions {
    gap: 10px;
  }
  .task-actions .primary {
    font-size: 12px;
    padding: 12px 15px;
  }
  .task-actions small {
    font-size: 10px;
  }
  .token {
    padding: 8px 12px;
    font-size: 14px;
  }
  .result {
    padding: 10px 0;
    gap: 20px;
  }
  .stat-grid {
    gap: 9px;
  }
  .stat {
    padding: 17px 12px;
  }
  .stat strong {
    font-size: 26px;
  }
  .stat p {
    font-size: 10px;
  }
  .review-item {
    align-items: flex-start;
    flex-direction: column;
  }
  .empty-state {
    padding: 25px 8px;
  }
  .empty-state h2 {
    font-size: 23px;
  }
  #toast {
    width: max-content;
  }
  .preview-bar {
    font-size: 10px;
  }
}
/* Learning text stays readable; metadata may remain quieter. */
.below-grid > div {
  display: flex;
  flex-direction: column;
}
.daily-card {
  height: auto;
  flex: 1;
}
.hero-copy > p,
.page-intro p,
.method-card p,
.module p,
.daily-card p {
  font-size: 14px;
}
.lesson-content > .muted,
.translation,
.vocab-card .example,
.grammar,
.feedback,
.instruction,
.result-copy p {
  font-size: 16px;
}
.dialogue-line .text-button {
  font-size: 13px !important;
  min-height: 36px;
}
.line-head {
  font-size: 12px;
}
.sound {
  width: 40px;
  height: 40px;
}
.inline-note,
.notice,
.review-item p {
  font-size: 13px;
}
.languages button {
  min-width: 36px;
  min-height: 36px;
}
.review-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 12px 0;
}
@media (max-width: 680px) {
  .hero-copy > p,
  .page-intro p,
  .method-card p,
  .module p {
    font-size: 13px;
  }
  .lesson-content > .muted,
  .translation,
  .vocab-card .example,
  .grammar,
  .feedback,
  .instruction,
  .result-copy p,
  .choice {
    font-size: 15px;
  }
  .languages button {
    min-width: 32px;
    min-height: 36px;
  }
}
/* Shared site frame and a consistent reading scale. */
html { scroll-padding-top: 24px; }
body { font-size: 17px; line-height: 1.8; }
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] .page-intro h1,
html[lang="ar"] .hero h2 { letter-spacing: 0; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 104px;
  padding: 20px clamp(24px, 3vw, 54px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header .brand { flex: 0 0 auto; }
.site-header .brand img { width: 220px; height: auto; }
.header-course { display: grid; gap: 3px; min-width: 0; }
.header-course strong { font-size: 20px; letter-spacing: -0.02em; }
.header-course span { font-size: 14px; color: var(--muted); }
.header-controls { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.header-edition { font-size: 13px; color: var(--accent); white-space: nowrap; }
.languages { background: var(--paper); border-radius: 12px; padding: 4px; gap: 3px; }
.languages button {
  font-family: Manrope, "IBM Plex Sans Arabic", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  padding: 10px 12px;
  min-width: 64px;
  min-height: 44px;
  border-radius: 8px;
}
.languages button[lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; }
.shell { grid-template-columns: 236px minmax(0, 1fr); min-height: calc(100dvh - 104px); }
.sidebar { padding: 30px 20px; }
.nav-label { font-size: 14px; font-weight: 700; }
.side-nav a { font-size: 15px; min-height: 52px; }
.sidebar-foot { font-size: 14px; }
.sidebar-foot strong { font-size: 16px; }
.page-shell { display: flex; flex-direction: column; }
.main { width: 100%; flex: 1; margin: 0 auto; padding-bottom: 42px; }
.page-intro h1 { font-size: clamp(28px, 2.5vw, 36px); }
.learning-header h1 { font-size: clamp(25px, 2.2vw, 32px); }
.hero h2 { font-size: clamp(32px, 3vw, 44px); }
.hero-copy > p,
.page-intro p,
.method-card p,
.module p,
.daily-card p,
.lesson-content > .muted,
.translation,
.vocab-card .example,
.grammar,
.feedback,
.instruction,
.result-copy p,
.choice,
.review-item p { font-size: 17px; }
.dialogue-line .german { font-size: 20px; line-height: 1.7; }
.vocab-card h3 { font-size: 23px; }
.line-head,
.inline-note,
.notice,
.vocab-card small,
.tag,
.eyebrow,
.hero-actions small,
.unit-card p,
.task-progress,
.lesson-bottom .muted { font-size: 14px; }
.lesson-steps button { font-size: 15px; min-height: 54px; }
.dialogue-line .text-button { font-size: 15px !important; min-height: 44px; }
.sound { width: 44px; height: 44px; flex-shrink: 0; }
.primary,
.secondary,
.token { font-size: 16px; }
.site-footer {
  background: var(--brand-navy);
  color: #edf8fa;
  padding: 38px 44px 22px;
  border-top: 4px solid var(--brand-turquoise);
}
.footer-main { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(180px, 1fr); gap: 42px; max-width: 1380px; margin: auto; }
.footer-brand { color: var(--brand-mint); font: 700 15px Manrope, sans-serif; display: block; margin-bottom: 12px; }
.footer-story h2 { font-size: 25px; margin-bottom: 10px; }
.footer-story p { font-size: 16px; line-height: 1.8; color: #d1e3e9; max-width: 540px; }
.footer-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.footer-nav h3 { font-size: 16px; color: var(--brand-mint); margin-bottom: 8px; }
.footer-nav a { font-size: 15px; min-height: 42px; display: inline-flex; align-items: center; }
.footer-nav a:hover { color: var(--brand-mint); text-decoration: underline; }
.site-footer a:focus-visible { outline-color: var(--brand-mint); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid #36505f; margin: 26px auto 0; padding-top: 20px; max-width: 1380px; color: #c5dce3; font-size: 14px; }
.footer-storage { display: flex; align-items: center; gap: 8px; }
.footer-storage svg { width: 17px; height: 17px; color: var(--brand-mint); }
@media (max-width: 1100px) {
  .site-header { gap: 20px; }
  .site-header .brand img { width: 190px; }
  .header-edition { display: none; }
  .shell { grid-template-columns: 200px minmax(0, 1fr); }
  .sidebar { padding: 26px 14px; }
  .site-footer { padding-inline: 28px; }
}
@media (max-width: 760px) {
  .site-header { display: grid; grid-template-columns: 1fr auto; gap: 12px 20px; padding: 18px 20px; }
  .site-header .brand img { width: 180px; }
  .header-course strong { font-size: 16px; }
  .header-course span { display: none; }
  .header-controls { grid-column: 1 / -1; justify-content: space-between; flex-direction: row-reverse; }
  .header-edition { display: block; }
  .languages button { font-size: 13px; padding-inline: 10px; min-width: 62px; }
  .footer-main { grid-template-columns: 1fr; gap: 26px; }
  .footer-nav { flex-direction: row; flex-wrap: wrap; column-gap: 22px; }
  .footer-nav h3 { width: 100%; }
}
@media (max-width: 680px) {
  .shell { display: block; }
  .sidebar { height: 0; padding: 0; border: 0; display: block; }
  .site-header { padding: 16px 18px; gap: 12px; }
  .site-header .brand img { width: 165px; }
  .header-course strong { font-size: 14px; }
  .header-edition { font-size: 12px; }
  .side-nav a { font-size: 12px; min-height: 56px; }
  .main { padding: 26px 16px 34px; }
  .site-footer { padding: 30px 22px calc(96px + env(safe-area-inset-bottom)); }
  .footer-story h2 { font-size: 23px; }
  .footer-bottom { gap: 12px; font-size: 13px; }
  .lesson-steps button { font-size: 12px; min-height: 68px; }
  .lesson-content { padding: 23px 18px; }
  .lesson-content h2 { font-size: 25px; }
  .dialogue-line .german { font-size: 19px; }
  .lesson-bottom .primary,
  .lesson-bottom .secondary,
  .task-actions .primary,
  .hero .primary { font-size: 16px; }
  .photo-label,
  .scene-note,
  .scene-note strong,
  .dialogue-peek small { font-size: 13px; }
  .stat p { font-size: 13px; }
}
@media (max-width: 360px) {
  .site-header .brand img { width: 145px; }
  .header-course strong { font-size: 13px; }
  .header-controls { gap: 6px; }
  .languages button { min-width: 57px; padding-inline: 7px; }
  .header-edition { font-size: 11px; }
  .lesson-steps button { font-size: 11px; }
}
.micro-activity { max-width: 720px; margin: 24px auto; min-height: 240px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.micro-activity p { font-size: 18px; line-height: 1.9; }
.micro-activity audio { width: 100%; max-width: 450px; }
.micro-activity + .task-actions { justify-content: space-between; flex-wrap: wrap; }
/* Shared Together We Can course frame, adapted from the supplied course reference. */
.site-header { display: block; min-height: 0; padding: 0; background: #fff; }
.site-header-inner { box-sizing: border-box; width: calc(100% - 48px); max-width: 1380px; min-height: 132px; margin: auto; padding: 20px 0; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.site-header .brand { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-decoration: none; }
.site-header .brand img { width: 280px; height: 70px; object-fit: contain; }
.brand-caption { font-size: 14px; line-height: 1.4; color: var(--muted); }
.header-tools { display: flex; align-items: center; gap: 20px; margin-inline-start: auto; flex-wrap: wrap; }
.header-languages { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.header-languages button { min-width: 44px; min-height: 42px; padding: 7px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.header-languages button[aria-pressed="true"] { background: var(--brand-navy); color: #fff; }
.header-account { display: flex; align-items: center; gap: 10px; }
.header-account button { min-height: 48px; padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--brand-navy); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.header-account .header-register { border-color: var(--accent); background: var(--accent); color: #fff; }
.header-account button[aria-disabled="true"] { opacity: .78; }
.header-account button:focus-visible, .header-languages button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* Thin copper divider under the header: visual link to the Together We Can / DeutschBeruf family. */
.site-nav { min-height: 54px; border-top: 2px solid var(--accent); border-bottom: 1px solid var(--line); background: var(--paper); display: flex; align-items: center; justify-content: center; gap: 4px; padding: 6px 24px; }
.site-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 7px 14px; border-radius: 9px; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a.active { background: var(--soft-accent); color: var(--accent); }
.site-nav svg, .site-nav .nav-dot { display: none; }
.shell { grid-template-columns: minmax(0, 1fr); min-height: calc(100dvh - 158px); }
.sidebar { display: none; }
.header-language { display: inline-flex; align-items: center; gap: 6px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; min-height: 44px; }
.header-language select { min-height: 44px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14px; max-width: 130px; cursor: pointer; }
.header-actions { display: flex; gap: 8px; margin-inline-start: auto; flex-wrap: wrap; }
.header-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; font-size: 14px; font-weight: 700; border: 1px solid var(--line); border-radius: 7px; text-decoration: none; }
.header-actions .header-continue { background: var(--accent); border-color: var(--accent); color: #fff; }
.header-actions a:hover { box-shadow: 0 3px 10px #0c23351a; }
.site-footer { box-sizing: border-box; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.95fr) minmax(0,.8fr); gap: 48px; position: relative; overflow: hidden; width: calc(100% - 48px); max-width: 1380px; margin: 64px auto 36px; padding: 60px 60px 38px; border: 1px solid var(--line); border-radius: 22px; background: #fff; color: var(--ink); text-align: start; box-shadow: 0 22px 60px -46px #0b2b278c; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg,var(--brand-navy) 0 34%,var(--brand-turquoise) 34% 68%,var(--brand-mint) 68%); }
.footer-logo { display: block; width: 290px; max-width: 100%; height: auto; }
.site-footer h2 { font-size: 20px; color: var(--accent); margin: 0 0 22px; }
.site-footer p { font-size: 16px; line-height: 2; margin: 0 0 18px; color: var(--muted); }
.footer-story p { margin-top: 28px; font-size: 17px; max-width: 42ch; }
.footer-contact { border-inline-start: 1px solid var(--line); padding-inline-start: 38px; min-width: 0; }
.footer-contact a { overflow-wrap: anywhere; display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.footer-nav { gap: 2px; flex-direction: column; align-items: flex-start; }
.footer-nav a { color: var(--ink); min-height: 44px; font-size: 14px; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer a:focus-visible { outline-color: var(--accent); }
.footer-local { margin-top: 14px !important; }
.footer-bottom { grid-column: 1 / -1; width: 100%; padding-top: 18px; margin-top: 0; border-color: var(--line); color: var(--muted); font-size: 13px; }
@media (max-width: 900px) {
  .site-header-inner { width: calc(100% - 40px); }
  .header-tools { gap: 12px; }
  .header-account button { padding-inline: 14px; }
  .site-nav { justify-content: flex-start; overflow-x: auto; }
  .site-footer { grid-template-columns: 1fr; gap: 24px; padding: 30px 24px 24px; }
  .footer-contact { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .footer-nav { border-top: 1px solid var(--line); padding-top: 24px; }
}
@media (max-width: 680px) {
  .site-header-inner { width: calc(100% - 32px); min-height: 104px; gap: 12px; padding: 16px 0; }
  .site-header .brand img { width: 220px; height: 56px; }
  .brand-caption { font-size: 12px; }
  .header-tools { width: 100%; justify-content: space-between; gap: 8px; margin-inline-start: 0; }
  .header-languages button { min-width: 38px; min-height: 38px; padding-inline: 9px; }
  .header-account { gap: 6px; }
  .header-account button { min-height: 42px; padding: 7px 12px; font-size: 12px; }
  .site-nav { display: none; }
  .shell { display: block; min-height: calc(100dvh - 82px); }
  .sidebar { position: static; display: block; height: 0; padding: 0; border: 0; }
  .side-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; }
  .site-footer { width: calc(100% - 32px); margin: 38px auto calc(96px + env(safe-area-inset-bottom)); padding: 42px 28px 32px; }
  .footer-logo { width: 250px; }
  .site-footer h2 { font-size: 19px; }
  .site-footer p { font-size: 16px; }
}
@media (max-width: 420px) {
  .header-tools { flex-direction: column; align-items: stretch; }
  .header-languages { justify-content: center; }
  .header-account button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
