/* Independent high-resolution illustrations, with native text and controls. */
.dsr-app .dsr-illustration {
  display:block;
  min-width:0;
  overflow:hidden;
}

/* A single responsive image replaces all three crops of each reference. */
.dsr-app :is(.dsr-topic-card-picture,.dsr-topic-hero-scene,.dsr-rule-art,.dsr-rules-book) > .dsr-illustration { width:100%;height:100%; }
.dsr-app .dsr-illustration { flex-shrink:0; }
.dsr-app .dsr-illustration[data-illustration]:not([data-illustration*="scene"]):not([data-illustration="hero-almaty"]) { border-radius:14px; }
.dsr-app .dsr-test-illustration { height:auto!important;aspect-ratio:3 / 2; }
.dsr-app .dsr-scenario-background .dsr-illustration > img { object-fit:cover; }
.dsr-app .dsr-scenario-hero-art .dsr-illustration { border-radius:22px; }

.dsr-app .dsr-topic-hero { display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);gap:10px 12px;height:auto;min-height:250px;padding:18px; }
.dsr-app .dsr-topic-hero-scene { position:relative;inset:auto;grid-column:2;grid-row:1 / span 2;width:100%;height:100%;min-height:140px;mask-image:none; }
.dsr-app .dsr-topic-recommend { position:static;grid-column:1;grid-row:1;align-self:start;justify-self:start;width:fit-content;height:auto;font-size:11px;white-space:normal;padding:5px 9px; }
.dsr-app .dsr-topic-important { display:none; }
.dsr-app .dsr-topic-hero-copy { position:static;grid-column:1;grid-row:2;width:auto;min-width:0;margin:0; }
.dsr-app .dsr-topic-hero h2 { font-size:24px;line-height:1.15;white-space:normal; }
.dsr-app .dsr-topic-hero-copy > p { font-size:13px;line-height:1.4;white-space:normal; }
.dsr-app .dsr-topic-hero-copy > p br { display:none; }
.dsr-app .dsr-topic-progress { font-size:12px;gap:8px;margin-top:14px; }
.dsr-app .dsr-topic-hero .dsr-button { min-height:44px;height:auto;margin-top:12px;padding:10px;font-size:14px;gap:8px; }
.dsr-app .dsr-topic-hero .dsr-button .dsr-icon { width:20px;height:20px;flex-shrink:0; }
.dsr-app .dsr-topic-card { display:grid;grid-template-columns:minmax(0,1fr) 32px;grid-template-rows:110px auto 1fr;gap:10px;height:auto;min-height:250px;padding:16px; }
.dsr-app .dsr-topic-card .dsr-topic-card-picture { grid-column:1;grid-row:1;width:100%;height:110px;margin:0;align-self:center;justify-self:center; }
.dsr-app .dsr-topic-card > .dsr-arrow { position:static;grid-column:2;grid-row:1;width:32px;height:32px;align-self:start; }
.dsr-app .dsr-topic-card > .dsr-arrow svg { width:18px;height:18px;min-width:18px; }
.dsr-app .dsr-topic-card .dsr-topic-card-copy { grid-column:1 / -1;grid-row:2;padding:0;align-self:start; }
.dsr-app .dsr-topic-card h2 { font-size:18px;line-height:1.25;white-space:normal; }
.dsr-app .dsr-topic-card-copy > p { font-size:14px;line-height:1.4;margin-top:6px; }
.dsr-app .dsr-topic-card .dsr-topic-card-progress { grid-column:1 / -1;grid-row:3;align-self:end;margin-top:6px; }
.dsr-app .dsr-topic-card-progress > div:first-child { font-size:12px;line-height:1.4; }

/* The Almaty scene and lesson details occupy separate grid cells. */
.dsr-app .dsrp-practice-hero { display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:14px 20px;align-items:center; }
.dsr-app .dsrp-practice-hero > .dsrp-title-row { grid-column:1;grid-row:1;height:auto;min-height:0;margin:0;padding:0; }
.dsr-app .dsrp-practice-scene { grid-column:2;grid-row:1 / span 2;width:100%;height:auto;aspect-ratio:3 / 2;border-radius:20px; }
.dsr-app .dsrp-practice-hero > .dsrp-next-lesson { grid-column:1;grid-row:2;display:grid;grid-template-columns:58px minmax(0,1fr);gap:10px 14px;width:100%;height:auto;padding:16px;min-width:0; }
.dsr-app .dsrp-next-lesson .dsrp-lesson-date { grid-column:1;grid-row:1 / span 2;width:58px;height:100%;margin:0;padding-right:12px;font-size:12px; }
.dsr-app .dsrp-next-lesson .dsrp-lesson-date strong { font-size:26px; }
.dsr-app .dsrp-next-lesson > .dsrp-status { position:static;grid-column:2;grid-row:1;justify-self:start;width:fit-content;height:25px;padding:4px 9px;font-size:11px; }
.dsr-app .dsrp-next-lesson > .dsrp-status svg { width:15px;height:15px; }
.dsr-app .dsrp-next-copy { grid-column:2;grid-row:2; }
.dsr-app .dsrp-next-copy > p { font-size:12px;line-height:1.4; }
.dsr-app .dsrp-next-copy > h2 { font-size:17px;line-height:1.25; }
.dsr-app .dsrp-next-copy .dsrp-teacher { margin-top:10px;gap:10px;font-size:12px; }
.dsr-app .dsrp-next-copy .dsrp-teacher .dsrp-artset { width:36px;height:36px; }
.dsr-app .dsrp-next-copy .dsrp-teacher small { font-size:11px;line-height:1.4; }
.dsr-app .dsrp-next-lesson > .dsrp-meeting { position:static;grid-column:1 / -1;grid-row:3;height:auto;min-height:44px;padding:8px 10px;gap:8px;font-size:12px;line-height:1.4; }
.dsr-app .dsrp-meeting span { white-space:normal; }
.dsr-app .dsrp-meeting svg { flex-shrink:0; }
.dsr-app .dsrp-meeting svg:first-child { width:18px;height:18px; }
.dsr-app .dsrp-meeting svg:last-child { width:16px;height:16px; }
.dsr-app .dsrp-ai-hero-art { mask-image:none;border-radius:24px; }
.dsr-app :is(.dsrp-ai-hero-art,.dsr-topic-hero-scene,.dsr-rules-book) img { mix-blend-mode:multiply; }
.dsr-app .dsr-media .dsr-scenario-hero-copy p { white-space:normal;line-height:1.4; }
.dsr-app .dsr-media-phone .dsr-scenario-hero { height:auto;min-height:230px; }
.dsr-app .dsr-media-phone .dsr-scenario-hero-copy { padding:16px 12px;max-width:55%; }
.dsr-app .dsr-media-phone .dsr-scenario-hero .dsr-button { width:100%;height:auto;min-height:44px;padding:8px;gap:8px; }
.dsr-app :is(.dsr-topic-search,.dsr-rules-search) { min-height:44px;height:auto; }
.dsr-app :is(.dsr-topic-search,.dsr-rules-search) button { min-width:44px;min-height:44px; }
.dsr-app :is(.dsr-topic-tabs,.dsr-media-chips) button { min-height:44px; }
.dsr-app .dsrp-robot-quote { display:none; }
.dsr-app .dsrp-readiness-copy > p { white-space:normal;line-height:1.4; }
.dsr-app .dsr-lesson-heading { display:flex;align-items:center;justify-content:space-between;gap:20px;margin:16px 0; }
.dsr-app .dsr-lesson-heading h1 { min-width:0;margin:0;font-size:clamp(26px,3vw,38px);line-height:1.2; }
.dsr-app .dsr-lesson-heading > .dsr-illustration { width:100px;height:100px; }
@media (max-width:639px) {
  .dsr-app .dsr-topic-card { padding:12px;grid-template-rows:90px auto 1fr;gap:8px;min-height:230px; }
  .dsr-app .dsr-topic-card .dsr-topic-card-picture { height:90px; }
  .dsr-app .dsr-topic-card h2 { font-size:15px; }
  .dsr-app .dsr-topic-card-copy > p { font-size:12px; }
  .dsr-app .dsr-topic-hero { padding:14px;gap:10px; }
  .dsr-app .dsr-topic-hero h2 { font-size:21px; }
  .dsr-app .dsrp-practice-hero { grid-template-columns:minmax(0,1fr);gap:12px; }
  .dsr-app .dsrp-practice-hero > .dsrp-title-row { grid-column:1;grid-row:1; }
  .dsr-app .dsrp-practice-scene { grid-column:1;grid-row:2; }
  .dsr-app .dsrp-practice-hero > .dsrp-next-lesson { grid-column:1;grid-row:3; }
  .dsr-app .dsrp-practice-hero h1 { font-size:28px;line-height:1.15; }
  .dsr-app .dsrp-practice-hero .dsrp-title-row p { font-size:15px;line-height:1.4; }
}
.dsr-app .dsr-illustration > img {
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  object-fit:contain;
  object-position:center;
}

.dsr-app .dsr-home-hero.dsr-home-hero-v3 {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  height:auto;
  min-height:0;
  border:1px solid #dceaf9;
  border-radius:24px;
  background:linear-gradient(125deg,#fff 8%,#f4faff 55%,#e5f2ff);
}
.dsr-app .dsr-home-hero-v3 > .dsr-home-hero-copy {
  width:auto;
  min-width:0;
  padding:20px 20px 12px;
  align-self:center;
}
.dsr-app .dsr-home-hero-v3 .dsr-home-hero-copy > p:first-child {
  margin:0 0 10px;
  font-size:15px;
  line-height:1.4;
}
.dsr-app .dsr-home-hero-v3 .dsr-home-hero-copy h1 {
  margin:0 0 12px;
  font-size:clamp(28px,4.2vw,38px);
  line-height:1.08;
  letter-spacing:-1px;
  overflow-wrap:break-word;
}
.dsr-app .dsr-home-hero-v3 .dsr-home-hero-copy h3 {
  margin:0 0 6px;
  font-size:16px;
  line-height:1.35;
  white-space:normal;
  overflow-wrap:anywhere;
}
.dsr-app .dsr-home-hero-v3 .dsr-home-hero-copy .dsr-result {
  font-size:14px;
  line-height:1.45;
}
.dsr-app .dsr-home-hero-actions {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px 14px;
  margin-top:14px;
}
.dsr-app .dsr-home-hero-v3 .dsr-home-hero-actions > .dsr-button {
  width:auto;
  max-width:100%;
  height:auto;
  min-height:46px;
  margin:0;
  padding:11px 18px;
  gap:10px;
  font-size:15px;
  line-height:1.35;
}
.dsr-app .dsr-home-hero-v3 .dsr-home-hero-actions > .dsr-topic-link {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  max-width:100%;
  margin:0;
  font-size:14px;
  line-height:1.35;
  text-underline-offset:3px;
}
.dsr-app .dsr-home-hero-v3 .dsr-home-hero-actions .dsr-icon {
  width:20px;
  height:20px;
}
.dsr-app .dsr-home-hero-v3 > .dsr-home-hero-art {
  position:relative;
  inset:auto;
  width:100%;
  height:auto;
  aspect-ratio:3 / 2;
  margin:0;
  align-self:center;
}
.dsr-app .dsr-home-hero-v3 > .dsr-home-hero-art > img {
  position:absolute;
  inset:0;
}

.dsr-app .dsr-quick-access-v3 > .dsr-section-heading {
  align-items:center;
  flex-wrap:wrap;
  gap:6px 12px;
  margin-bottom:12px;
}
.dsr-app .dsr-quick-access-v3 > .dsr-section-heading h2 {
  font-size:clamp(18px,1.8vw,24px);
  line-height:1.25;
  letter-spacing:-.4px;
}
.dsr-app .dsr-quick-access-v3 > .dsr-section-heading > a {
  min-height:44px;
  font-size:13px;
  line-height:1.35;
  gap:8px;
}
.dsr-app .dsr-quick-access-v3 > .dsr-section-heading .dsr-icon {
  width:20px;
  height:20px;
}
.dsr-app .dsr-quick-access-v3 .dsr-quick-grid {
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.dsr-app .dsr-quick-access-v3 .dsr-quick-card {
  height:auto;
  min-height:170px;
  padding:12px 10px 8px;
  border:1px solid #e5eef9;
  border-radius:18px;
}
.dsr-app .dsr-quick-access-v3 .dsr-quick-card > .dsr-quick-art {
  width:76px;
  height:76px;
  max-width:100%;
  margin:0 auto 8px;
}
.dsr-app .dsr-quick-access-v3 .dsr-quick-card h3 {
  margin:0 0 6px;
  font-size:14px;
  line-height:1.3;
  letter-spacing:-.2px;
}
.dsr-app .dsr-quick-access-v3 .dsr-quick-card p {
  font-size:12px;
  line-height:1.4;
  white-space:normal;
}
.dsr-app .dsr-quick-access-v3 .dsr-quick-card > .dsr-arrow {
  width:32px;
  height:32px;
  min-height:32px;
  margin:8px 0 0 auto;
}
.dsr-app .dsr-quick-access-v3 .dsr-quick-card > .dsr-arrow .dsr-icon {
  width:18px;
  height:18px;
}

.dsr-app .dsr-nearest-home-v3 {
  padding:18px 20px;
  border-radius:22px;
}
.dsr-app .dsr-nearest-home-v3 > .dsr-section-heading {
  margin-bottom:12px;
}
.dsr-app .dsr-nearest-home-v3 h2,
.dsr-app .dsr-home-school-v3 h2 {
  font-size:22px;
  line-height:1.25;
}
.dsr-app .dsr-nearest-home-v3 > div {
  display:flex;
  align-items:center;
  gap:16px;
  margin:0 0 16px;
}
.dsr-app .dsr-nearest-home-v3 > div > .dsr-nearest-art {
  width:72px;
  height:72px;
}
.dsr-app .dsr-nearest-home-v3 p {
  min-width:0;
  font-size:14px;
  line-height:1.45;
}
.dsr-app .dsr-nearest-home-v3 p strong {
  margin-bottom:4px;
  font-size:17px;
  line-height:1.3;
}
.dsr-app .dsr-nearest-home-v3 footer {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.dsr-app .dsr-nearest-home-v3 footer > .dsr-button {
  width:100%;
  min-width:0;
  min-height:46px;
  height:auto;
  padding:12px;
  font-size:14px;
  line-height:1.35;
}
.dsr-app .dsr-home-school-v3 {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(140px,.7fr);
  gap:16px;
  min-height:0;
  padding:20px;
  border-radius:22px;
}
.dsr-app .dsr-home-school-v3 > div {
  min-width:0;
  align-self:center;
}
.dsr-app .dsr-home-school-v3 p {
  margin-top:8px;
  font-size:14px;
  line-height:1.45;
}
.dsr-app .dsr-home-school-v3 > .dsr-home-school-art {
  position:relative;
  inset:auto;
  width:100%;
  height:180px;
  align-self:center;
}
.dsr-app .dsr-home-school-v3 .dsr-button {
  width:auto;
  max-width:100%;
  min-height:46px;
  height:auto;
  padding:11px 16px;
  font-size:14px;
  line-height:1.35;
  gap:10px;
  margin-top:14px;
}
.dsr-app .dsr-home-school-v3 .dsr-button .dsr-icon {
  width:20px;
  height:20px;
}

@media (min-width:640px) {
  .dsr-app .dsr-home-hero.dsr-home-hero-v3 {
    grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);
  }
  .dsr-app .dsr-home-hero-v3 > .dsr-home-hero-copy { padding:24px; }
  .dsr-app .dsr-home-hero-v3 > .dsr-home-hero-art { aspect-ratio:3 / 2; }
}
@media (min-width:1100px) {
  .dsr-app .dsr-home-hero-v3 .dsr-home-hero-copy h1 { font-size:clamp(28px,2.2vw,38px); }
  .dsr-app .dsr-catalog-aside .dsr-home-hero-v3 { grid-template-columns:minmax(0,1fr); }
  .dsr-app .dsr-catalog-aside .dsr-home-hero-v3 > .dsr-home-hero-copy { padding:20px 20px 12px; }
  .dsr-app .dsr-catalog-aside .dsr-home-hero-v3 .dsr-home-hero-copy h1 { font-size:30px; }
  .dsr-app .dsr-catalog-aside .dsr-home-hero-v3 > .dsr-home-hero-art { aspect-ratio:3 / 2; }
}
@media (max-width:639px) {
  .dsr-app .dsr-home-hero-v3 .dsr-home-hero-copy h1 { font-size:30px; }
  .dsr-app .dsr-home-hero-v3 > .dsr-home-hero-copy { padding:18px 18px 8px; }
  .dsr-app .dsr-quick-access-v3 .dsr-quick-grid { gap:8px; }
  .dsr-app .dsr-quick-access-v3 .dsr-quick-card { padding:10px 8px 8px;min-height:170px; }
  .dsr-app .dsr-quick-access-v3 .dsr-quick-card > .dsr-quick-art { width:64px;height:64px; }
  .dsr-app .dsr-quick-access-v3 .dsr-quick-card h3 { font-size:13px; }
  .dsr-app .dsr-nearest-home-v3 { padding:16px; }
  .dsr-app .dsr-nearest-home-v3 h2,.dsr-app .dsr-home-school-v3 h2 { font-size:20px; }
  .dsr-app .dsr-nearest-home-v3 > div { gap:12px; }
  .dsr-app .dsr-nearest-home-v3 > div > .dsr-nearest-art { width:56px;height:56px; }
  .dsr-app .dsr-nearest-home-v3 footer { grid-template-columns:minmax(0,1fr); }
  .dsr-app .dsr-home-school-v3 { grid-template-columns:minmax(0,1fr);gap:10px;padding:18px; }
  .dsr-app .dsr-home-school-v3 > .dsr-home-school-art { height:150px;grid-row:1; }
  .dsr-app .dsr-home-school-v3 .dsr-button { width:100%; }
}
