@font-face {
  font-family: "COMOOON Web Proxima";
  src: url("../assets/fonts/site/ProximaNova-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "COMOOON Web Proxima";
  src: url("../assets/fonts/site/ProximaNova-Semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "COMOOON Web Proxima";
  src: url("../assets/fonts/site/ProximaNova-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  font-family: "COMOOON Web Proxima", Arial, sans-serif;
  color: #17213a;
  background: #f8f9fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --blue: #0044ff;
  --blue-deep: #0037d1;
  --blue-pale: #f0f4ff;
  --blue-border: #d3e0ff;
  --lime: #c0f20c;
  --green: #67c523;
  --ink: #17213a;
  --muted: #788398;
  --line: #dfe7f2;
  --surface: #fff;
  --background: #f8f9fb;
  --soft-shadow: 0 3px 0 rgba(19, 51, 111, .035);
  --lift-shadow: 0 12px 28px rgba(0, 68, 255, .09), 0 2px 8px rgba(22, 48, 94, .04);
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; }
body, button, input, select, textarea { font-family: "COMOOON Web Proxima", Arial, sans-serif; }
button, input, select, textarea { font-size: inherit; }
strong, b { font-weight: 600; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
img, svg, video { max-width: 100%; }
svg { flex-shrink: 0; }
::selection { background: #d8e3ff; color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.app-shell {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  grid-template-rows: 66px minmax(calc(100vh - 66px), auto);
  min-height: 100vh;
}
.workspace { grid-column: 2; grid-row: 1 / -1; min-width: 0; }
.mobile-brand { display: none; }

.sidebar {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 26px 13px 22px;
  color: #fff;
  background: var(--blue);
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 10;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 80px;
  margin: 0 0 31px;
}
.sidebar-logo img { display: block; width: 122px; max-height: 68px; object-fit: contain; }
.sidebar-logo:focus-visible { outline-color: #fff; }
.side-nav { display: flex; flex-direction: column; gap: 11px; }
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 17px;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.nav-link svg { width: 22px; height: 22px; stroke-width: 1.7; }
.nav-link:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.nav-link.active, .nav-link[aria-current="page"] { background: rgba(255,255,255,.18); font-weight: 600; }
.nav-link.active::before, .nav-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 4px;
  border-radius: 4px;
  background: var(--lime);
}
.nav-link:focus-visible { outline-color: #fff; }
.sidebar-footer, .sidebar-foot { margin-top: auto; padding: 13px 10px 0; border-top: 1px solid rgba(255,255,255,.32); color: rgba(255,255,255,.8); font-size: 12px; }

.topbar {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  height: 66px;
  padding: 0 3.15vw;
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 9;
}
.breadcrumbs { display: flex; align-items: stretch; gap: 0; min-width: 0; height: 100%; overflow: auto hidden; scrollbar-width: none; white-space: nowrap; }
.breadcrumbs::-webkit-scrollbar { display: none; }
.breadcrumb-wrap { display: inline-flex; align-items: center; gap: 15px; min-height: 100%; color: #99a9c4; }
.breadcrumb-wrap + .breadcrumb-wrap { margin-left: 15px; }
.breadcrumb {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  color: var(--blue);
  font-size: 14px;
  transition: color .18s ease;
}
.breadcrumb:hover { color: var(--blue-deep); }
.breadcrumb.active, .breadcrumb.current, .breadcrumb[aria-current="page"] { color: var(--ink); font-weight: 600; }
.breadcrumb.active::after, .breadcrumb.current::after, .breadcrumb[aria-current="page"]::after {
  content: "";
  position: absolute;
  height: 2px;
  left: 0;
  right: 0;
  bottom: 10px;
  border-radius: 2px;
  background: var(--blue);
}
.breadcrumb-separator { display: inline-flex; align-items: center; padding: 0 17px; color: #99a9c4; font-size: 20px; }
.top-actions { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.language-control, .lang-switch:not(button) { position: relative; }
.lang-switch, .lang-switch > button, .lang-switch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
  transition: background-color .18s ease, border-color .18s ease;
}
.lang-switch:hover, .lang-switch > button:hover, .lang-switch-button:hover { background: var(--blue-pale); border-color: var(--blue-border); }
.lang-switch svg { transform: rotate(90deg); width: 13px; height: 13px; }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 136px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--lift-shadow);
  z-index: 30;
}
.lang-menu button { display: block; width: 100%; min-height: 44px; padding: 8px 11px; text-align: left; border: 0; border-radius: 6px; color: var(--ink); background: transparent; }
.lang-menu button:hover, .lang-menu button.selected, .lang-menu button[aria-selected="true"] { color: var(--blue); background: var(--blue-pale); }
.profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 3px 5px 3px 14px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  transition: color .18s ease;
}
.profile-trigger:hover { color: var(--blue); }
.profile-name { white-space: nowrap; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 13px; overflow: hidden; flex: 0 0 auto; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.main { grid-column: 2; grid-row: 2; min-width: 0; width: 100%; max-width: 1320px; margin: 0 auto; padding: 32px clamp(24px, 3.2vw, 50px) 70px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin: 0 0 34px; }
.page-head > div { min-width: 0; }
.title { margin: 0; color: var(--ink); font-size: clamp(26px, 2.15vw, 30px); line-height: 1.17; font-weight: 400; letter-spacing: normal; }
.subtitle { margin: 10px 0 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.eyebrow { margin: 0 0 14px; color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: 12px; }
.muted, .hint { color: var(--muted); }
.hint { font-size: 13px; line-height: 1.45; }
.link { color: var(--blue); font-weight: 600; transition: color .18s ease; }
.link:hover { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }

.status-card {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 86px;
  margin: 0 0 24px;
  padding: 16px 21px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}
.status-item { display: flex; align-items: center; gap: 14px; flex: 1 1 0; min-width: 0; padding: 0 18px; }
.status-item:first-child { padding-left: 0; }
.status-item + .status-item { border-left: 1px solid var(--line); }
.status-item strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.2; }
.status-item > svg { width: 31px; height: 31px; color: var(--blue); }
.status-item small, .status-item p { display: block; margin: 7px 0 0; color: var(--muted); font-size: 14px; line-height: 1.2; }
.status-icon { width: 30px; height: 30px; color: var(--blue); }
.status-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--green); flex: 0 0 auto; }
.status-dot.expired { background: #a7aec0; }
.section-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; min-height: 28px; margin: 27px 0 17px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.section-header h2, .section-header h3 { margin: 0; font-size: 19px; line-height: 1.2; font-weight: 700; }
.section-header .hint { margin: 0; }
.section-label { margin: 32px 0 16px; color: var(--muted); text-transform: uppercase; font-size: 12px; font-weight: 600; }

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card-grid.one { grid-template-columns: 1fr; }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid > .full, .card-grid > .card-grid { grid-column: 1 / -1; min-width: 0; }
.card-grid.blocks { margin-bottom: 45px; }
.card-grid.secondary-cards { margin-top: 22px; }
.feature-card, .tile-card, .content-card, .block-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}
.feature-card {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 154px;
  padding: 24px;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.feature-card, .feature-card.featured, .feature-card.primary, .block-card.selected, .block-card.active { border-color: #cbdcff; background: var(--blue-pale); }
.feature-card::before, .feature-card.featured::before, .feature-card.primary::before, .block-card.selected::before, .block-card.active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  bottom: -1px;
  width: 4px;
  border-radius: 12px 0 0 12px;
  background: var(--blue);
}
.feature-card.wide { grid-column: 1 / -1; }
.feature-card h2, .feature-card h3, .tile-card h2, .tile-card h3, .block-card h2, .block-card h3 { margin: 0; font-size: 20px; line-height: 1.2; font-weight: 600; }
.feature-card p, .tile-card p, .block-card p { margin: 14px 0 0; color: var(--muted); font-size: 15px; line-height: 1.35; }
.feature-card .card-copy, .tile-card .card-copy { flex: 1 1 auto; min-width: 0; }
.feature-card .card-copy strong, .tile-card .card-copy strong { display: block; color: var(--ink); font-size: 19px; line-height: 1.2; font-weight: 600; }
.feature-card .card-copy small, .tile-card .card-copy small { display: block; margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.35; }
.feature-card .arrow, .tile-card .arrow { color: var(--blue); margin-left: auto; }
.feature-card .card-icon, .tile-card .card-icon, .feature-card .content-icon, .tile-card .content-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  border: 1px solid #dce6ff;
  border-radius: 14px;
  color: var(--blue);
  background: var(--blue-pale);
}
.feature-card.featured .card-icon, .feature-card .content-icon { background: #fff; }
.feature-card .card-icon svg, .tile-card .card-icon svg, .feature-card .content-icon svg, .tile-card .content-icon svg { width: 34px; height: 34px; stroke-width: 1.6; }
.feature-card:is(a,button):hover, .tile-card:is(a,button):hover, .block-card:is(a,button):hover,
.feature-card.interactive:hover, .tile-card.interactive:hover, .block-card.interactive:hover {
  border-color: #91b0ff;
  background: #f3f6ff;
  box-shadow: var(--lift-shadow), inset 0 0 0 1px rgba(0,68,255,.12);
}
.feature-card:is(a,button):hover .card-icon, .tile-card:is(a,button):hover .card-icon, .feature-card:is(a,button):hover .content-icon, .tile-card:is(a,button):hover .content-icon { border-color: #aec5ff; background: #fff; }
.feature-card.locked, .tile-card.locked, .block-card.locked { color: #929db3; background: #fbfcfe; }
.feature-card.locked .card-icon, .tile-card.locked .card-icon, .feature-card.locked .content-icon, .tile-card.locked .content-icon { color: #a7b1c4; background: #f6f8fb; border-color: var(--line); }
.feature-card.locked:hover, .tile-card.locked:hover, .block-card.locked:hover { border-color: var(--line); background: #fbfcfe; box-shadow: var(--soft-shadow); }

.tile-card { display: flex; align-items: center; gap: 24px; min-height: 154px; padding: 20px 24px; transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.tile-card .card-icon, .tile-card .content-icon { width: 76px; height: 76px; flex-basis: 76px; border-radius: 13px; }
.tile-card .card-icon svg, .tile-card .content-icon svg { width: 31px; height: 31px; }
.tile-card h2, .tile-card h3 { font-size: 17px; }
.tile-card .card-copy strong { font-size: 18px; }
.tile-card .card-copy small { margin-top: 10px; font-size: 14px; }
.feature-card > svg:last-child, .tile-card > svg:last-child { width: 18px; height: 18px; margin-left: auto; color: var(--blue); }
.tile-card p { margin-top: 6px; font-size: 14px; }
.lesson-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.lesson-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 10px;
  border: 1px solid var(--blue-border);
  border-radius: 11px;
  color: var(--blue);
  background: #f1f5ff;
  box-shadow: var(--soft-shadow);
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.lesson-pill:not(.locked):not(:disabled):hover { border-color: var(--blue); background: #e5edff; box-shadow: var(--lift-shadow), inset 0 0 0 1px var(--blue); }
.lesson-pill.locked, .lesson-pill:disabled, .lesson-pill[aria-disabled="true"] { border-color: #dce2eb; color: #929db3; background: #f1f2f5; box-shadow: var(--soft-shadow); }
.lesson-grid.future { margin-bottom: 20px; }

.content-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.content-card { min-height: 145px; padding: 16px 18px; transition: border-color .18s ease, box-shadow .18s ease; }
.content-card:hover { border-color: #b5caff; box-shadow: var(--lift-shadow); }
.content-card h3, .content-card h4 { margin: 0; font-size: 16px; line-height: 1.25; font-weight: 600; }
.content-card p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.camp-info { margin-top: 18px; min-height: 0; padding: 26px; }
.camp-info h2 { margin: 0; font-size: 18px; }
.camp-info p { margin: 14px 0 24px; font-size: 14px; }
.camp-info a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--blue); font-weight: 600; }
.camp-info a:hover { color: var(--blue-deep); }
.content-card .content-actions { display: flex; gap: 8px; align-items: center; margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.content-icon, .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid #dce6ff;
  border-radius: 9px;
  color: var(--blue);
  background: var(--blue-pale);
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.content-icon svg, .icon-button svg { width: 23px; height: 23px; stroke-width: 1.7; }
.icon-button:hover, .content-icon:is(button,a):hover { border-color: var(--blue); background: #e5edff; box-shadow: 0 0 0 3px rgba(0,68,255,.08); }
.icon-button:active { background: #d5e1ff; }
.icon-button:disabled { color: #9aa6bb; border-color: var(--line); background: #f5f7fa; box-shadow: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 600;
  text-align: center;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn-primary { color: #fff; background: var(--blue); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); box-shadow: 0 0 0 3px rgba(0,68,255,.13), 0 8px 16px rgba(0,68,255,.1); }
.btn-outline { color: var(--blue); background: #fff; border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); background: var(--blue-pale); box-shadow: 0 0 0 3px rgba(0,68,255,.07); }
.btn-ghost { color: var(--blue); background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--blue-pale); border-color: var(--blue-border); }
.btn:disabled { color: #9ea9bc; background: #edf0f5; border-color: #edf0f5; box-shadow: none; }
.btn svg { width: 18px; height: 18px; }
.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 27px; padding: 3px 10px; border-radius: 7px; color: var(--blue); background: var(--blue-pale); font-size: 12px; font-weight: 600; }
.badge.success { color: #2e7126; background: #e9f6e6; }
.badge.neutral { color: #748097; background: #f0f2f6; }

.search-field { position: relative; display: flex; align-items: center; min-width: 220px; height: 44px; color: #92a1bb; }
.search-field > svg { position: absolute; left: 13px; width: 20px; height: 20px; pointer-events: none; }
.search-field input { width: 100%; height: 100%; padding: 9px 12px 9px 42px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: var(--ink); background: #fff; transition: border-color .18s ease, box-shadow .18s ease; }
.search-field input:hover { border-color: #a9bfff; }
.search-field input:focus-visible { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,68,255,.1); }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; }
.chip { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; font-size: 14px; transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease; }
.chip:hover { border-color: var(--blue); background: var(--blue-pale); }
.chip.active, .chip[aria-pressed="true"] { border-color: var(--blue); color: var(--blue); background: var(--blue-pale); font-weight: 600; }

.block-card { min-height: 214px; padding: 24px; transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease; }
.block-card .block-top, .block-card .block-card-top { display: flex; align-items: center; gap: 24px; }
.block-card .block-number { display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; border: 1px solid #dce6ff; border-radius: 13px; color: var(--blue); background: #fff; font-size: 28px; font-weight: 700; }
.block-card .block-details, .block-card .block-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 16px; }
.block-card .block-link, .block-card .block-card-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--blue); font-size: 14px; font-weight: 600; }
.block-card .block-card-bottom a { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 32px; }
.block-card .block-card-bottom a:hover { text-decoration: underline; text-underline-offset: 3px; }
.block-card .chip-active { color: var(--blue); border-color: var(--blue-border); background: #fff; }

.product-control { position: relative; flex: 0 0 auto; }
.product-switcher { min-width: 188px; justify-content: space-between; }
.product-switcher svg { transform: rotate(90deg); }
.product-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  min-width: 205px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--lift-shadow);
}
.product-menu button { display: block; width: 100%; min-height: 44px; padding: 8px 11px; border: 0; border-radius: 7px; color: var(--ink); background: transparent; text-align: left; }
.product-menu button:hover, .product-menu button.selected { color: var(--blue); background: var(--blue-pale); }
.lesson-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); margin: 19px 0 18px; padding-bottom: 10px; }
.lesson-toolbar .section-header { margin: 0; padding: 0; border: 0; }
.lesson-toolbar .search-field { width: 240px; }
.lesson-section { margin: 23px 0 32px; }
.lesson-section .section-header { margin: 0 0 18px; padding-bottom: 0; border: 0; text-transform: uppercase; }
.lesson-section .section-header h2 { color: var(--muted); font-size: 12px; }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.resource-grid.exercises { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.resource-grid.special-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lesson-section:last-of-type .resource-grid:not(.exercises) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.resource-card { min-height: 78px; padding: 10px 15px; }
.resource-card .icon-button.wide { display: flex; justify-content: flex-start; gap: 14px; width: 100%; height: 100%; min-height: 56px; padding: 0; border: 0; border-radius: 7px; color: var(--ink); background: transparent; text-align: left; box-shadow: none; }
.resource-card .icon-button.wide:hover { color: var(--blue); }
.resource-card .icon-button.wide strong { flex: 1; font-size: 16px; }
.resource-card .icon-button.wide > svg:last-child { color: #8da0c3; }
.resource-card .icon-button.wide:hover > svg:last-child { color: var(--blue); }
.resource-card .content-icon { width: 40px; height: 40px; }
.resource-card .content-icon svg { width: 24px; height: 24px; }
.exercise-card { min-height: 145px; padding: 17px 18px; }
.resource-actions { display: flex; align-items: center; gap: 8px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.resource-actions .icon-button { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; }
.resource-actions .icon-button .content-icon { width: 44px; height: 44px; }
.resource-actions > svg:last-child { margin-left: auto; color: #8da0c3; }
.content-footnote { margin: 29px 0; color: var(--muted); font-size: 13px; }
.category-preview { display: flex; align-items: flex-start; gap: 20px; min-height: 210px; padding: 25px; }
.category-preview .content-icon { width: 70px; height: 70px; }
.category-preview h2 { margin: 0; font-size: 19px; }
.category-preview p { margin: 12px 0 18px; color: var(--muted); font-size: 14px; }

.toolbar { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 18px; margin: 0 0 22px; }
.toolbar .filter-row { margin: 0; }
.toolbar .search-field { width: 100%; }
.chip-active { border-color: var(--blue); color: var(--blue); background: var(--blue-pale); font-weight: 600; }
.filter-row .chip-active { color: #fff; background: var(--blue); }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.toolbar + .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.catalog-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  gap: 6px;
  min-width: 0;
  min-height: 153px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--soft-shadow);
  text-align: left;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.catalog-card > .content-icon { grid-column: 1 / -1; width: 50px; height: 50px; margin-bottom: 8px; }
.catalog-card strong { grid-column: 1 / -1; font-size: 16px; font-weight: 600; line-height: 1.28; }
.catalog-card small { grid-column: 1; color: var(--muted); font-size: 13px; line-height: 1.25; }
.catalog-card > svg:last-child { grid-column: 2; grid-row: 3 / 5; align-self: end; color: var(--blue); }
.catalog-card:hover:not(:disabled) { border-color: #8facff; background: #f7f9ff; box-shadow: var(--lift-shadow), inset 0 0 0 1px rgba(0,68,255,.1); }
.catalog-card:hover:not(:disabled) .content-icon { border-color: #a8c1ff; background: #fff; }
.catalog-card.locked, .catalog-card:disabled { color: #9aa5b9; background: #f9fafc; }
.catalog-card.locked .content-icon, .catalog-card:disabled .content-icon { color: #9aa5b9; background: #f0f2f5; border-color: #e0e5ec; }
.catalog-grid > .tile-card { min-height: 118px; }
.extra-course { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; min-height: 220px; padding: 20px; }
.extra-course h3 { font-size: 18px; }
.extra-course p { margin: 10px 0; color: var(--muted); font-size: 14px; }
.extra-course .btn { margin-top: auto; }

.contacts-layout { display: grid; grid-template-columns: minmax(0, 2.35fr) minmax(275px, 1fr); align-items: start; gap: 16px; }
.contacts-form-card { min-height: 540px; padding: 26px; }
.contacts-form-card:hover, .contacts-aside:hover { border-color: var(--line); box-shadow: var(--soft-shadow); }
.purpose-group { margin: 0 0 27px; padding: 0; border: 0; }
.purpose-group legend { margin-bottom: 21px; padding: 0; font-size: 18px; font-weight: 700; }
.purpose-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.purpose-option { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 13px; cursor: pointer; transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease; }
.purpose-option:hover { border-color: #a9bfff; background: #fbfcff; }
.purpose-option.selected, .purpose-option:has(input:checked) { border-color: var(--blue); background: var(--blue-pale); font-weight: 600; box-shadow: inset 0 0 0 1px var(--blue); }
.purpose-option input { width: 17px; height: 17px; margin: 0; accent-color: var(--blue); }
.purpose-option:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.contacts-form-card .form-field > span { margin: 0 0 12px; font-size: 18px; }
.contacts-form-card textarea { min-height: 220px; padding: 17px 20px; font-size: 15px; font-weight: 400; }
.contacts-form-card .btn-primary { min-width: 220px; }
.contacts-aside { padding: 26px; background: var(--blue-pale); border-color: var(--blue-border); }
.contacts-aside .content-icon { margin-bottom: 18px; border: 0; background: transparent; }
.contacts-aside h2 { margin: 0 0 15px; font-size: 18px; }
.contacts-aside p { margin: 0 0 23px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.contacts-aside a { display: inline-flex; align-items: center; min-height: 44px; gap: 5px; color: var(--blue); font-weight: 600; font-size: 14px; }
.contacts-aside a:hover { text-decoration: underline; text-underline-offset: 3px; }
.success-state { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 450px; }
.success-state > svg { color: var(--green); margin-bottom: 18px; }
.success-state h2 { margin: 0; font-size: 23px; }
.success-state p { max-width: 450px; margin: 13px 0 25px; color: var(--muted); line-height: 1.5; }

.profile-hero { display: flex; align-items: center; gap: 18px; padding-bottom: 23px; }
.avatar-large { width: 68px; height: 68px; color: var(--blue); background: #e8eeff; font-size: 21px; }
.profile-hero h2 { margin: 0; font-size: 21px; }
.profile-hero p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.profile-hero .btn { margin-left: auto; }
.detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.detail-list > div { min-width: 0; padding: 20px 10px 20px 0; border-bottom: 1px solid var(--line); }
.detail-list dt { color: var(--muted); font-size: 13px; }
.detail-list dd { margin: 8px 0 0; overflow-wrap: anywhere; font-size: 16px; font-weight: 600; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 9px; padding-top: 22px; }
.profile-side { display: flex; flex-direction: column; gap: 16px; }
.profile-side .content-card { padding: 25px; }
.profile-side h2 { margin: 0 0 18px; font-size: 18px; }
.profile-side p { color: var(--muted); }
.profile-products { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-side .signout { align-self: flex-start; }

.auth-brand-copy { margin: auto 0; }
.auth-brand-copy h1 { margin: 0 0 18px; font-size: clamp(26px, 2.5vw, 34px); font-weight: 400; }
.auth-brand-copy p { max-width: 370px; margin: 0; font-size: 16px; line-height: 1.6; }
.auth-brand-list { display: flex; flex-direction: column; max-width: 430px; margin-top: 45px; border-top: 1px solid rgba(255,255,255,.35); }
.auth-brand-list span { display: flex; align-items: center; min-height: 65px; font-size: 15px; }
.auth-brand > small { padding-top: 14px; border-top: 1px solid rgba(255,255,255,.35); color: rgba(255,255,255,.8); font-size: 12px; }
.auth-language { position: absolute; top: 31px; right: clamp(28px, 5vw, 88px); }
.auth-card { width: min(100%, 486px); }
.auth-card > h2 { margin: 0 0 12px; }
.auth-card > p { margin: 0 0 43px; color: var(--muted); font-size: 15px; }
.auth-card .form-field { margin-bottom: 23px; }
.auth-card .form-field > span:first-child { margin-bottom: 7px; }
.auth-card .btn-primary { width: 100%; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 53px; }
.password-field button { position: absolute; right: 4px; top: 50%; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 7px; color: var(--blue); background: transparent; transform: translateY(-50%); }
.password-field button:hover { background: var(--blue-pale); }
.auth-forgot, .auth-return { display: flex; justify-content: flex-end; align-items: center; min-height: 44px; color: var(--blue); font-size: 14px; font-weight: 600; }
.auth-forgot:hover, .auth-return:hover { text-decoration: underline; text-underline-offset: 3px; }
.demo-entry { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.demo-entry p { margin: 0 0 15px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.demo-entry .btn { width: 100%; }

.modal-viewer { width: min(100%, 970px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.modal-head h2 { margin: 0; min-width: 0; }
.modal-head .modal-close { position: static; }
.viewer-area { display: flex; align-items: center; justify-content: center; min-height: 250px; border-radius: 8px; overflow: hidden; background: #f6f8fb; }
.viewer-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 310px; padding: 30px; border: 1px dashed #b9cafa; border-radius: 8px; color: var(--blue); background: var(--blue-pale); text-align: center; }
.viewer-placeholder p { max-width: 450px; margin: 0; color: var(--muted); font-size: 15px; }
.document-frame { display: block; width: 100%; min-height: min(70vh, 680px); border: 0; background: #fff; }
.media-image { display: block; max-width: 100%; max-height: 70vh; object-fit: contain; }
.audio-player { width: min(100%, 680px); margin: 45px 15px; }
.modal-hint { margin: 15px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.modal-form { max-width: 600px; }
.modal-actions { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.photo-preview { display: flex; justify-content: center; padding: 20px; }
.block-card.locked .block-number { color: #a8b2c6; background: #f6f8fa; border-color: var(--line); }

.form-field { display: flex; flex-direction: column; gap: 8px; margin: 0 0 19px; }
.form-field label, label.form-field { color: var(--ink); font-size: 14px; font-weight: 600; }
.input, .select, .textarea, .form-field input, .form-field select, .form-field textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font-size: 15px;
  font-weight: 400;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.input::placeholder, .textarea::placeholder, .form-field input::placeholder, .form-field textarea::placeholder { color: #9aa8bf; }
.textarea, .form-field textarea { min-height: 170px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover, .form-field input:hover, .form-field select:hover, .form-field textarea:hover { border-color: #a9bfff; }
.input:focus, .select:focus, .textarea:focus, .form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,68,255,.1); }
.form-field .error, .field-error { color: #bf3d44; font-size: 13px; }
.input[aria-invalid="true"], .form-field input[aria-invalid="true"], .form-field textarea[aria-invalid="true"] { border-color: #d75158; }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.choice-card { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color .18s ease, background-color .18s ease; }
.choice-card:hover { border-color: #a9bfff; background: #fbfcff; }
.choice-card.selected, .choice-card:has(input:checked) { border-color: var(--blue); background: var(--blue-pale); font-weight: 600; }
.choice-card input { accent-color: var(--blue); width: 17px; height: 17px; margin: 0; }

.modal-backdrop { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 22px; background: rgba(17,31,58,.62); z-index: 100; }
.modal { position: relative; width: min(100%, 900px); max-height: min(92vh, 900px); overflow: auto; padding: 22px; border-radius: 12px; background: #fff; box-shadow: 0 24px 70px rgba(9,21,48,.28); }
.modal h2 { margin: 0 48px 18px 0; font-size: 22px; font-weight: 700; }
.modal-close { position: absolute; top: 13px; right: 13px; }
.player { display: block; width: 100%; max-height: 70vh; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; background: #0c1730; color: #fff; object-fit: contain; }
.document-view { width: 100%; min-height: min(70vh, 600px); border: 1px solid var(--line); border-radius: 8px; background: #f6f8fb; }
.empty-state { max-width: 560px; margin: 35px auto; padding: 36px 28px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: center; }
.empty-state svg { display: block; width: 44px; height: 44px; margin: 0 auto 12px; color: var(--blue); }
.empty-state h2, .empty-state h3 { margin: 0; font-size: 20px; }
.empty-state p { margin: 9px 0 18px; color: var(--muted); line-height: 1.45; }
.empty-state.compact { margin: 16px 0; padding: 22px; }
.toast { position: fixed; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 10px; max-width: min(430px, calc(100vw - 32px)); min-height: 48px; padding: 12px 16px; border: 1px solid #bcd9b4; border-radius: 10px; color: #236524; background: #f0faec; box-shadow: var(--lift-shadow); z-index: 110; }
.toast.error { color: #a4363d; border-color: #efcbce; background: #fff3f4; }
.mobile-nav { display: none; }

.profile-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 16px; }
.profile-grid .full { grid-column: 1 / -1; }
.profile-card { min-width: 0; padding: 25px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.profile-card h2 { margin: 0 0 18px; font-size: 18px; }
.profile-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.profile-row span { display: block; color: var(--muted); font-size: 13px; }
.profile-row strong { display: block; margin-top: 7px; color: var(--ink); font-size: 15px; }

.auth-layout { display: grid; grid-template-columns: 40% 60%; min-height: 100vh; background: #fff; }
.auth-brand { display: flex; flex-direction: column; min-height: 100vh; padding: clamp(35px, 5vw, 88px); color: #fff; background: var(--blue); }
.auth-brand img { display: block; align-self: center; width: clamp(150px, 15vw, 190px); max-height: 110px; object-fit: contain; }
.auth-brand .brand-copy { margin: auto 0; }
.auth-brand h1 { margin: 0 0 18px; font-size: clamp(26px, 2.5vw, 34px); font-weight: 400; }
.auth-brand p { max-width: 360px; margin: 0; font-size: 16px; line-height: 1.6; }
.auth-brand .brand-list { max-width: 430px; margin-top: 45px; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.35); }
.auth-brand .brand-list li { display: flex; align-items: center; gap: 25px; min-height: 66px; font-size: 15px; }
.auth-brand .brand-list small { color: rgba(255,255,255,.7); font-size: 12px; font-weight: 700; }
.auth-brand footer { padding-top: 14px; border-top: 1px solid rgba(255,255,255,.35); color: rgba(255,255,255,.8); font-size: 12px; }
.auth-panel { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; padding: 90px 32px 50px; }
.auth-panel .top-actions { position: absolute; top: 31px; right: clamp(28px, 5vw, 88px); }
.auth-panel > form, .auth-panel .auth-content { width: min(100%, 486px); }
.auth-panel h2 { margin: 0 0 12px; font-size: 30px; font-weight: 400; line-height: 1.2; }
.auth-panel .subtitle { margin-bottom: 46px; }
.auth-panel .btn-primary { width: 100%; margin-top: 20px; }
.auth-panel .auth-note { margin-top: 34px; padding-top: 19px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.5; }

@media (max-width: 1199px) {
  .content-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .toolbar + .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .resource-grid.exercises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lesson-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feature-card { gap: 16px; }
}

@media (max-width: 900px) {
  .app-shell { display: block; padding-bottom: 78px; }
  .workspace { width: 100%; }
  .sidebar { display: none; }
  .topbar { height: 110px; padding: 0 18px 44px; color: #fff; background: var(--blue); border-bottom: 0; }
  .topbar .breadcrumbs { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; height: 44px; padding: 0 18px; color: var(--ink); background: #fff; border-bottom: 1px solid var(--line); }
  .topbar .breadcrumb { min-height: 44px; font-size: 12px; }
  .topbar .breadcrumb::after { bottom: 0; }
  .topbar .breadcrumb-wrap { gap: 9px; }
  .topbar .breadcrumb-wrap + .breadcrumb-wrap { margin-left: 9px; }
  .topbar .top-actions { margin-left: auto; gap: 7px; }
  .topbar .lang-switch, .topbar .lang-switch > button, .topbar .lang-switch-button, .topbar .profile-trigger { color: #fff; }
  .topbar .lang-switch:hover, .topbar .lang-switch > button:hover, .topbar .lang-switch-button:hover, .topbar .profile-trigger:hover { color: #fff; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); }
  .topbar .profile-trigger { padding-left: 7px; border-left: 0; }
  .topbar .avatar { color: var(--blue); background: #fff; }
  .mobile-logo, .mobile-brand { display: flex; align-items: center; height: 66px; width: 114px; flex: 0 0 auto; }
  .mobile-logo img, .mobile-brand img { width: 100px; max-height: 51px; object-fit: contain; }
  .main { max-width: 760px; padding: 24px 20px 50px; }
  .mobile-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr); height: 74px; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -3px 12px rgba(30, 54, 104, .035); }
  .mobile-nav a, .mobile-nav button { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 65px; padding: 4px 1px; border: 0; color: #8d9ab1; background: transparent; font-size: 11px; line-height: 1.1; white-space: nowrap; }
  .mobile-nav svg { width: 23px; height: 23px; stroke-width: 1.55; }
  .mobile-nav a.active, .mobile-nav a[aria-current="page"], .mobile-nav button.active { color: var(--blue); font-weight: 600; }
  .mobile-nav a.active::before, .mobile-nav a[aria-current="page"]::before, .mobile-nav button.active::before { content: ""; position: absolute; top: 0; width: 30px; height: 3px; border-radius: 0 0 3px 3px; background: var(--blue); }
  .mobile-nav a.active::after, .mobile-nav a[aria-current="page"]::after, .mobile-nav button.active::after { content: ""; position: absolute; top: 6px; left: 4px; right: 4px; bottom: 5px; border-radius: 8px; background: var(--blue-pale); z-index: -1; }
  .mobile-nav a:hover, .mobile-nav button:hover { color: var(--blue); background: var(--blue-pale); }
  .content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-grid, .toolbar + .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lesson-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .auth-layout { grid-template-columns: 34% 66%; }
  .auth-brand { padding: 35px 25px; }
  .contacts-layout { grid-template-columns: 1fr; }
  .contacts-form-card { min-height: 0; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-side .signout { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .main { padding: 17px 16px 36px; }
  .topbar { padding: 0 16px 44px; }
  .topbar .profile-trigger > span:not(.avatar), .topbar .profile-trigger > svg { display: none; }
  .topbar .avatar { width: 36px; height: 36px; }
  .mobile-breadcrumbs { display: flex; align-items: center; width: calc(100% + 32px); height: 35px; margin: -17px -16px 14px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #fff; overflow: auto hidden; scrollbar-width: none; white-space: nowrap; }
  .mobile-breadcrumbs .breadcrumb { min-height: 35px; font-size: 12px; }
  .mobile-breadcrumbs .breadcrumb.active::after, .mobile-breadcrumbs .breadcrumb[aria-current="page"]::after { bottom: 0; }
  .mobile-breadcrumbs .breadcrumb-separator { padding: 0 12px; }
  .page-head { align-items: flex-start; margin-bottom: 18px; }
  .title { font-size: 24px; }
  .subtitle { margin-top: 5px; font-size: 13px; }
  .status-card { display: block; min-height: 0; padding: 10px 12px; margin-bottom: 15px; }
  .status-item { min-height: 43px; padding: 3px 0; gap: 8px; }
  .status-item + .status-item { border-left: 0; border-top: 1px solid var(--line); }
  .status-item strong { font-size: 14px; }
  .status-item small, .status-item p { margin-top: 2px; font-size: 12px; }
  .status-dot { width: 10px; height: 10px; }
  .status-icon { width: 20px; height: 20px; }
  .section-header { margin: 21px 0 13px; padding-bottom: 11px; }
  .section-header h2, .section-header h3 { font-size: 17px; }
  .section-label { margin: 26px 0 12px; }
  .card-grid, .card-grid.two, .card-grid.three, .content-grid, .catalog-grid, .toolbar + .catalog-grid, .resource-grid, .resource-grid.exercises, .resource-grid.special-pair, .lesson-section:last-of-type .resource-grid:not(.exercises) { grid-template-columns: 1fr; gap: 12px; }
  .card-grid.blocks { margin-bottom: 25px; }
  .card-grid.secondary-cards { margin-top: 12px; }
  .feature-card { grid-column: auto; gap: 15px; min-height: 88px; padding: 14px 15px; }
  .feature-card.wide { grid-column: auto; }
  .feature-card .card-icon, .feature-card .content-icon { width: 52px; height: 52px; flex-basis: 52px; border-radius: 10px; }
  .feature-card .card-icon svg, .feature-card .content-icon svg { width: 27px; height: 27px; }
  .feature-card h2, .feature-card h3 { font-size: 16px; }
  .feature-card .card-copy strong { font-size: 16px; }
  .feature-card .card-copy small { margin-top: 5px; font-size: 12px; }
  .feature-card p { margin-top: 5px; font-size: 12px; }
  .tile-card { min-height: 81px; padding: 13px 15px; }
  .tile-card .content-icon { width: 52px; height: 52px; flex-basis: 52px; }
  .tile-card .content-icon svg { width: 25px; height: 25px; }
  .tile-card .card-copy strong { font-size: 15px; }
  .tile-card .card-copy small { margin-top: 5px; font-size: 12px; }
  .lesson-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lesson-pill { min-height: 53px; font-size: 15px; }
  .content-card { min-height: 0; }
  .block-card { min-height: 0; padding: 19px; }
  .block-card .block-top { gap: 14px; }
  .block-card .block-card-top { gap: 14px; }
  .block-card .block-number { width: 54px; height: 54px; font-size: 22px; }
  .block-card h2, .block-card h3 { font-size: 17px; }
  .block-card p { margin-top: 5px; font-size: 13px; }
  .choice-grid { grid-template-columns: 1fr; gap: 8px; }
  .choice-card { min-height: 54px; }
  .purpose-options { grid-template-columns: 1fr; gap: 8px; }
  .purpose-option { min-height: 50px; }
  .contacts-form-card { padding: 18px; }
  .contacts-form-card .form-field > span, .purpose-group legend { font-size: 16px; }
  .contacts-form-card textarea { min-height: 190px; }
  .contacts-aside { padding: 20px; }
  .contacts-form-card .btn-primary { width: 100%; }
  .profile-hero { flex-wrap: wrap; gap: 12px; }
  .profile-hero .btn { margin: 0; }
  .detail-list { grid-template-columns: 1fr; }
  .detail-list > div { padding: 13px 0; }
  .profile-side { display: flex; }
  .profile-actions .btn { flex: 1 1 100%; }
  .search-field { width: 100%; }
  .lesson-toolbar { display: block; }
  .lesson-toolbar .search-field { width: 100%; margin-top: 12px; }
  .lesson-section { margin: 19px 0 25px; }
  .resource-card { min-height: 69px; }
  .exercise-card { min-height: 130px; }
  .category-preview { padding: 18px; }
  .category-preview .content-icon { width: 52px; height: 52px; }
  .product-control { width: auto; }
  .product-switcher { min-width: 0; max-width: 158px; padding: 8px 10px; font-size: 12px; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-card { padding: 18px; }
  .profile-row { gap: 14px; }
  .modal-backdrop { padding: 8px; align-items: center; }
  .modal { max-height: calc(100dvh - 16px); padding: 16px; }
  .modal h2 { font-size: 19px; }
  .player { max-height: 60dvh; }
  .toast { right: 10px; bottom: 84px; }
  .auth-layout { display: block; }
  .auth-brand { min-height: 190px; padding: 22px 24px; }
  .auth-brand img { width: 110px; max-height: 60px; }
  .auth-brand .brand-copy, .auth-brand-copy { margin: 18px 0 0; text-align: center; }
  .auth-brand h1, .auth-brand-copy h1 { margin: 0; font-size: 24px; }
  .auth-brand p, .auth-brand .brand-list, .auth-brand footer, .auth-brand-copy p, .auth-brand-list, .auth-brand > small { display: none; }
  .auth-panel { min-height: calc(100dvh - 190px); padding: 77px 22px 40px; justify-content: flex-start; }
  .auth-panel .top-actions, .auth-language { top: 13px; right: 18px; }
  .auth-panel h2 { font-size: 25px; }
  .auth-panel .subtitle, .auth-card > p { margin-bottom: 30px; }
  .modal-actions .btn { flex: 1 1 100%; }
}

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