html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (max-width: 640px) {
  .ZRRuDw {
    overflow-x: hidden !important;
  }

  #PBmtWmvhdld8CSM1,
  #PBmtWmvhdld8CSM1 .onhyOQ,
  #PBmtWmvhdld8CSM1 .twbtjQ,
  #PBmtWmvhdld8CSM1 .GDnEHQ,
  #PBmtWmvhdld8CSM1 .QhExXw,
  #PBmtWmvhdld8CSM1 .o2Yl2g,
  #PBmtWmvhdld8CSM1 ._mXnjA {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  #PBmtWmvhdld8CSM1 ._mXnjA {
    display: flex !important;
    flex-flow: row wrap !important;
    align-items: flex-start !important;
    align-content: flex-start !important;
    padding: 22px 18px 8px !important;
    padding-left: max(18px, env(safe-area-inset-left)) !important;
    padding-right: max(18px, env(safe-area-inset-right)) !important;
    box-sizing: border-box !important;
    container-type: inline-size;
  }

  #PBmtWmvhdld8CSM1 ._6t4CHA,
  #PBmtWmvhdld8CSM1 .WyoGFw {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
  }

  #PBmtWmvhdld8CSM1 .DF_utQ {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    max-width: 100% !important;
  }

  #LBNrj1pVKcC02Nd7 {
    width: 220px !important;
    height: 98px !important;
    flex: 0 0 auto !important;
    overflow: visible !important;
    zoom: min(1.65, calc(100cqw / 220px));
    margin: 0 0 4px !important;
  }

  #LBRmXLvZdY0RJ7YH {
    flex: 0 0 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 0 6px !important;
    order: 2;
  }

  #PBmtWmvhdld8CSM1 .Izwocg {
    position: relative !important;
    width: 100% !important;
    margin: 0 auto !important;
    height: auto !important;
    transform: none !important;
    aspect-ratio: 599 / 585 !important;
    overflow: hidden !important;
  }

  #PBmtWmvhdld8CSM1 img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center bottom !important;
  }

  #LBzNtkyBPj74MvS7,
  #LB8TjzjjQJ7gSlYM {
    order: 3;
    width: auto !important;
    height: 24px !important;
    overflow: visible !important;
    margin: 2px 0 0 !important;
    flex: 0 0 auto !important;
  }

  #LBzNtkyBPj74MvS7 {
    margin-right: 8px !important;
  }

  #LBzNtkyBPj74MvS7 .aF9o6Q,
  #LB8TjzjjQJ7gSlYM .aF9o6Q {
    transform: scale(0.95) !important;
    transform-origin: top left !important;
  }

  [id="0"],
  [id="0"] .onhyOQ,
  [id="0"] .twbtjQ,
  [id="0"] .GDnEHQ,
  [id="0"] .QhExXw,
  [id="0"] .o2Yl2g,
  [id="0"] ._mXnjA {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  [id="0"] ._mXnjA {
    container-type: inline-size;
    display: flex !important;
    flex-flow: row wrap !important;
    align-items: flex-start !important;
    padding: 16px 16px 10px !important;
    box-sizing: border-box !important;
    gap: 8px 12px !important;
  }

  [id="0"] ._6t4CHA,
  [id="0"] .WyoGFw {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
  }

  [id="0"] ._mXnjA > .DF_utQ {
    position: relative !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    max-width: 100% !important;
  }

  #LBXMph9cKVjchs7R {
    order: 1;
  }

  [id="0"] ._mXnjA > .DF_utQ:not(#LBJKTjncdl3mtZqd):not(#LBXMph9cKVjchs7R):not(#LBln8DpNS2yh2Xcc):not(#LBXrLQW8rzmyKpmG) {
    order: 2;
    margin-left: auto !important;
  }

  #LBJKTjncdl3mtZqd {
    order: 3;
    flex: 0 0 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 92px !important;
  }

  #LBCQ28sRdddWgzl4 {
    zoom: min(1.45, calc(100cqw / 250px));
  }

  #LBln8DpNS2yh2Xcc {
    order: 4;
    flex: 0 0 auto !important;
    width: 213px !important;
    height: 32px !important;
    overflow: visible !important;
    zoom: min(1.72, calc(100cqw / 213px));
    margin: 2px 0 4px !important;
  }

  #LBXrLQW8rzmyKpmG {
    order: 5;
    flex: 0 0 auto !important;
    zoom: min(2.35, calc(100cqw / 120px));
    margin: 8px auto 4px !important;
  }
}

/* ---- Остальные слайды: крупнее и по центру на телефоне ---- */
@media (max-width: 640px) {
  #PB1LPsWX0wstHvnV { --z: 1.38; --h: calc(263px + 940px * var(--z)); }
  [id="1"] { --z: 1.3; --h: calc(1382px + 239.55px * (var(--z) - 1)); }
  #PBffjHqYl5TZ3kLf { --h: 1395.5px; }
  [id="2"] { --z: 1.5; --h: calc(1420.7px + 193.2px * (var(--z) - 1)); }
  #PB7YshMBnmYcGck5 { --z: 1.35; --h: calc(605px + 972px * var(--z)); }
  #PBgsyhpZ1JYcG5kc { --z1: 1.3; --z2: 1.4; --h: calc(631.1px + 648.3px * var(--z1) + 202.8px * var(--z2)); }
}

@media (max-width: 360px) {
  #PB1LPsWX0wstHvnV { --z: 1.18; }
  [id="1"] { --z: 1.15; }
  [id="2"] { --z: 1.25; }
  #PB7YshMBnmYcGck5 { --z: 1.15; }
  #PBgsyhpZ1JYcG5kc { --z1: 1.1; --z2: 1.2; }
}

@media (max-width: 640px) {
  /* Содержание */

  #__id15, #__id23, #__id19, #__id27, #__id31,
  #LB7Z4btWHrPybWtP, #LBKKzs1CM6drPXM9, #LB9BHK6j3m2JBR3p,
  #LBVzXzqG1KZhTq9w, #LBpLts9DKG5nPCy2 {
    zoom: var(--z);
    left: 0 !important;
    right: 0 !important;
    margin-inline: auto !important;
    transform: none !important;
  }

  #__id15 { top: calc(127px / var(--z) + 0 * (188px + 24px / var(--z))) !important; }
  #__id23 { top: calc(127px / var(--z) + 1 * (188px + 24px / var(--z))) !important; }
  #__id19 { top: calc(127px / var(--z) + 2 * (188px + 24px / var(--z))) !important; }
  #__id27 { top: calc(127px / var(--z) + 3 * (188px + 24px / var(--z))) !important; }
  #__id31 { top: calc(127px / var(--z) + 4 * (188px + 24px / var(--z))) !important; }
  #LB7Z4btWHrPybWtP { top: calc(127px / var(--z) + 0 * (188px + 24px / var(--z)) + 101px) !important; }
  #LBKKzs1CM6drPXM9 { top: calc(127px / var(--z) + 1 * (188px + 24px / var(--z)) + 101px) !important; }
  #LB9BHK6j3m2JBR3p { top: calc(127px / var(--z) + 2 * (188px + 24px / var(--z)) + 101px) !important; }
  #LBVzXzqG1KZhTq9w { top: calc(127px / var(--z) + 3 * (188px + 24px / var(--z)) + 101px) !important; }
  #LBpLts9DKG5nPCy2 { top: calc(127px / var(--z) + 4 * (188px + 24px / var(--z)) + 101px) !important; }

  /* Moonlight: вступление */

  #LBWtBqbQ5k6HZyq5 {
    zoom: var(--z);
    left: 0 !important;
    right: 0 !important;
    margin-inline: auto !important;
    transform: none !important;
    top: calc(582.04px / var(--z)) !important;
  }

  [id="1"] ._mXnjA > .DF_utQ:last-child {
    transform: translate(197.6px, 0) !important;
    top: calc(837.2px + 239.55px * (var(--z) - 1)) !important;
  }

  #LBwgRQxQgZN8LbpS {
    transform: translate(39.17px, 0) !important;
    top: calc(879.6px + 239.55px * (var(--z) - 1)) !important;
  }
}

@media (max-width: 640px) {
  /* Мой вклад */

  #LBCF4tp6YcVw5JWf { height: 671px !important; }
  #LBQwsN2PbSpL2xV1 { display: none !important; }
  #LB43Y1d4TyfcP07Z { transform: translate(0, 374.3px) !important; }
  #LBbXJQNwHm2q8q8B { transform: translate(0, 432.7px) !important; }
  #LBFMBp7sq3B4cXly { transform: translate(41px, 441.3px) !important; }
  #LB5pCjXFWH1dyZqd { transform: translate(82.5px, 945.4px) !important; }

  /* Digital Detectives: вступление */

  #LBZcQkyDGjZQX81H {
    zoom: var(--z);
    left: 0 !important;
    right: 0 !important;
    margin-inline: auto !important;
    transform: none !important;
    top: calc(667.9px / var(--z)) !important;
  }

  [id="2"] ._mXnjA > .DF_utQ:last-child {
    transform: translate(197.35px, 0) !important;
    top: calc(876.7px + 193.2px * (var(--z) - 1)) !important;
  }

  #LBVL9W76hzbXpBYL {
    transform: translate(39.42px, 0) !important;
    top: calc(919.1px + 193.2px * (var(--z) - 1)) !important;
  }

  /* Digital Detectives: scaffolding */

  #LBZhWWzVnwdd6xhw,
  #LBhX5jnJysmrWKLM {
    zoom: var(--z1);
    left: 0 !important;
    right: 0 !important;
    margin-inline: auto !important;
    transform: none !important;
  }

  #LBZhWWzVnwdd6xhw { top: calc(280.5px / var(--z1)) !important; }
  #LBhX5jnJysmrWKLM { top: calc((295.8px + 280.5px * var(--z1)) / var(--z1)) !important; }

  #LB3GJlJcwCQRZml0 {
    height: 240px !important;
    transform: none !important;
    top: calc(311.1px + 648.3px * var(--z1)) !important;
    left: 28.8px !important;
  }

  #LBQVdwkdQQnxrZxL {
    zoom: var(--z2);
    left: 0 !important;
    right: 0 !important;
    margin-inline: auto !important;
    transform: none !important;
    top: calc((571.1px + 648.3px * var(--z1)) / var(--z2)) !important;
  }

  /* номера заметок вместо отдельной колонки кружков */
  #LB4Kz2shhzCp1XkN, #LBV4qNJh7hqQWyBv, #LBDRNWysXT7wQB8d,
  #LB0LsJynTV9H81Cn, #LB47Xyxx8vC3FRN1,
  #LB4KgjR96dpBvBfV, #LBlGG8GBtQsMvXbJ, #LBQd0T9xtR4n8JVM,
  #LBJwsTk5yt5B1c9z, #LB61TLkZjrKxtyP7 {
    display: none !important;
  }

  #LBHrWzWg00v9LPsf {
    transform: none !important;
    counter-reset: note;
  }

  #LBHrWzWg00v9LPsf .aF9o6Q {
    transform: scale(0.74) !important;
  }

  #LBHrWzWg00v9LPsf p {
    counter-increment: note;
    box-sizing: border-box;
    position: relative;
    padding-left: 44px;
  }

  #LBHrWzWg00v9LPsf p::before {
    content: counter(note);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgb(207, 159, 77);
    color: rgb(250, 250, 248);
    font-weight: 700;
    font-size: 16px;
    line-height: 32px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  #PB1LPsWX0wstHvnV,
  [id="1"],
  #PBffjHqYl5TZ3kLf,
  [id="2"],
  #PB7YshMBnmYcGck5,
  #PBgsyhpZ1JYcG5kc {
    height: var(--h) !important;
  }

  :is(#PB1LPsWX0wstHvnV, [id="1"], #PBffjHqYl5TZ3kLf, [id="2"], #PB7YshMBnmYcGck5, #PBgsyhpZ1JYcG5kc)
    div:not(.DF_utQ):not(.DF_utQ *):not(.WyoGFw) {
    height: var(--h) !important;
  }

  :is(#PB1LPsWX0wstHvnV, [id="1"], #PBffjHqYl5TZ3kLf, [id="2"], #PB7YshMBnmYcGck5, #PBgsyhpZ1JYcG5kc) .WyoGFw {
    height: calc(var(--h) - 78px) !important;
  }
}

@media (max-width: 360px) {
  #LBHrWzWg00v9LPsf .aF9o6Q {
    transform: scale(0.6) !important;
  }
}

/* Moonlight: взаимосвязь заданий — одна колонка */
@media (max-width: 640px) {
  #PB7YshMBnmYcGck5 ._mXnjA > :nth-child(3),
  #PB7YshMBnmYcGck5 ._mXnjA > :nth-child(8),
  #PB7YshMBnmYcGck5 ._mXnjA > :nth-child(9) {
    zoom: var(--z);
    left: 0 !important;
    right: 0 !important;
    margin-inline: auto !important;
    transform: none !important;
  }

  #PB7YshMBnmYcGck5 ._mXnjA > :nth-child(8) { top: calc(226px / var(--z)) !important; }
  #PB7YshMBnmYcGck5 ._mXnjA > :nth-child(9) { top: calc((302px + 324px * var(--z)) / var(--z)) !important; }
  #PB7YshMBnmYcGck5 ._mXnjA > :nth-child(3) { top: calc((378px + 648px * var(--z)) / var(--z)) !important; }

  #PB7YshMBnmYcGck5 ._mXnjA > :nth-child(6),
  #PB7YshMBnmYcGck5 ._mXnjA > :nth-child(7) {
    left: 0 !important;
    right: 0 !important;
    margin-inline: auto !important;
    transform: none !important;
    height: 56px !important;
  }

  #PB7YshMBnmYcGck5 ._mXnjA > :nth-child(7) { top: calc(236px + 324px * var(--z)) !important; }
  #PB7YshMBnmYcGck5 ._mXnjA > :nth-child(6) { top: calc(312px + 648px * var(--z)) !important; }

  #PB7YshMBnmYcGck5 ._mXnjA > :nth-child(6) .V7MmMA,
  #PB7YshMBnmYcGck5 ._mXnjA > :nth-child(7) .V7MmMA {
    display: none !important;
  }

  #PB7YshMBnmYcGck5 ._mXnjA > :nth-child(6)::after,
  #PB7YshMBnmYcGck5 ._mXnjA > :nth-child(7)::after {
    content: "\2193";
    position: absolute;
    left: 0;
    right: 0;
    top: 36px;
    text-align: center;
    font-size: 20px;
    line-height: 20px;
    color: rgb(150, 150, 146);
  }

  #PB7YshMBnmYcGck5 ._mXnjA > :nth-child(5) {
    transform: translateX(15.6px) !important;
    top: calc(398px + 972px * var(--z)) !important;
  }
}