/*
 * 4detki.ru — universal coloring hero + Kolobok scene picker
 * Version: 1.54.0
 */

html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 {
  --coloring-hero-height: 430px;
  --coloring-hero-copy-min: 420px;
  --coloring-hero-ink: #071438;
  --coloring-hero-muted: #38567d;
  --coloring-hero-line: #d7e7f4;
  --coloring-hero-pink: #e30b5d;
  --coloring-hero-soft: #f8fbff;
  --coloring-hero-shadow: 0 14px 38px rgba(30, 70, 115, 0.1);
}

html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 .coloring-detail-hero {
  display: block;
  padding: 16px 0 26px;
  background:
    radial-gradient(circle at 4% 20%, rgba(244, 0, 97, 0.07), transparent 28rem),
    radial-gradient(circle at 96% 22%, rgba(148, 204, 41, 0.08), transparent 30rem),
    var(--coloring-hero-soft);
}

html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 .coloring-detail-hero > .container {
  width: min(1240px, calc(100% - 40px));
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-inline: auto;
}

.coloring-hero-v1__card {
  position: relative;
  min-width: 0;
  height: var(--coloring-hero-height);
  min-height: var(--coloring-hero-height);
  max-height: var(--coloring-hero-height);
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(var(--coloring-hero-copy-min), 42%) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--coloring-hero-line);
  border-radius: 24px;
  color: var(--coloring-hero-ink);
  background: #fff;
  box-shadow: var(--coloring-hero-shadow);
  isolation: isolate;
}

html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 .coloring-detail-hero__content.coloring-hero-v1__copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: auto;
  max-width: none;
  height: var(--coloring-hero-height);
  min-height: var(--coloring-hero-height);
  max-height: var(--coloring-hero-height);
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  margin: 0;
  padding: 17px 24px;
  background: #fff;
}

html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 .coloring-hero-v1__copy .breadcrumbs {
  min-width: 0;
  margin: 0 0 7px;
  overflow: hidden;
  color: var(--coloring-hero-muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 .coloring-hero-v1__copy .breadcrumbs li:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 .coloring-hero-v1__copy > .eyebrow {
  max-width: 100%;
  display: -webkit-box;
  margin: 0 0 4px;
  overflow: hidden;
  color: var(--coloring-hero-pink);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.25;
  text-transform: uppercase;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 .coloring-detail-hero h1 {
  max-width: 100%;
  display: -webkit-box;
  margin: 0 0 7px;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: var(--coloring-hero-ink);
  font-size: clamp(2.15rem, 3.5vw, 3.35rem);
  letter-spacing: -0.05em;
  line-height: 0.98;
  text-wrap: balance;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 .coloring-detail-hero__lead {
  min-width: 0;
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: #233e66;
  font-size: 0.88rem;
  line-height: 1.4;
  text-wrap: pretty;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 .coloring-feature-list {
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 8px 0 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 1px;
  scrollbar-width: none;
}

html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 .coloring-feature-list::-webkit-scrollbar {
  display: none;
}

html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 .coloring-feature-list > span {
  min-height: 28px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid #d8e6f3;
  border-radius: 999px;
  color: #17345e;
  background: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 .coloring-detail-hero__actions.coloring-hero-v1__actions {
  min-width: 0;
  flex: 0 0 auto;
  display: block;
  gap: 0;
  margin: 9px 0 0;
}

.coloring-hero-v1__primary-actions,
.coloring-hero-v1__utility-actions {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.coloring-hero-v1__primary-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.coloring-hero-v1__utility-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 6px;
}

html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 .coloring-hero-v1__primary-actions > .button,
html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 .coloring-hero-v1__utility-actions > .button {
  width: auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  overflow: hidden;
  border-style: solid;
  text-align: center;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 .coloring-hero-v1__primary-actions > .button {
  min-height: 42px;
  padding: 7px 9px;
  border-width: 1px;
  border-color: #ccddec;
  border-radius: 13px;
  color: #102650;
  background: #fff;
  box-shadow: 0 5px 14px rgba(30, 70, 115, 0.07);
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.12;
}

html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 .coloring-hero-v1__start {
  border-color: var(--coloring-hero-pink);
  color: #fff;
  background: linear-gradient(145deg, #e30b5d, #c90951);
  box-shadow: 0 8px 18px rgba(244, 0, 97, 0.18);
}

.coloring-hero-v1__start::before {
  margin-right: 6px;
  content: "✎";
}

.coloring-hero-v1__story::before {
  margin-right: 6px;
  content: "▤";
  color: var(--coloring-hero-pink);
}

html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 .coloring-hero-v1__utility-actions > .button {
  min-height: 34px;
  padding: 5px 6px;
  border-width: 1px;
  border-color: #d6e3ef;
  border-radius: 10px;
  color: #27466e;
  background: #fff;
  box-shadow: none;
  font-size: 0.66rem;
  font-weight: 780;
  line-height: 1.1;
}

html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 .coloring-hero-v1__utility-actions > .button:disabled,
html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 .coloring-hero-v1__utility-actions > .button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.52;
}

.coloring-hero-v1__primary-actions > .button:focus-visible,
.coloring-hero-v1__utility-actions > .button:focus-visible,
.coloring-hero-ad__creative:focus-visible,
.kolobok-scenes__option:focus-visible,
.kolobok-scenes__arrow:focus-visible {
  outline: 3px solid #c90951;
  outline-offset: 2px;
}

.coloring-hero-v1__sr-status,
.kolobok-scenes__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.coloring-hero-v1__more {
  grid-column: 1 / -1;
  padding: 13px 16px;
  border: 1px solid var(--coloring-hero-line);
  border-radius: 16px;
  color: var(--coloring-hero-ink);
  background: #fff;
  box-shadow: 0 8px 22px rgba(30, 70, 115, 0.07);
}

.coloring-hero-v1__more[hidden] {
  display: none !important;
}

.coloring-hero-v1__more > summary {
  cursor: pointer;
  color: #17345e;
  font-size: 0.82rem;
  font-weight: 850;
}

.coloring-hero-v1__more-content {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  color: #355174;
  font-size: 0.84rem;
  line-height: 1.45;
}

.coloring-hero-v1__more-content p {
  margin: 0;
}

.coloring-hero-v1__more-eyebrow {
  color: var(--coloring-hero-pink);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.coloring-hero-v1__more-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.coloring-hero-v1__more-features > span {
  padding: 4px 8px;
  border: 1px solid #d8e6f3;
  border-radius: 999px;
  background: #f8fbff;
  font-size: 0.72rem;
  font-weight: 750;
}

.coloring-hero-v1__visual {
  position: relative;
  min-width: 0;
  height: var(--coloring-hero-height);
  min-height: var(--coloring-hero-height);
  max-height: var(--coloring-hero-height);
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
  margin: 0;
  overflow: hidden;
  border-left: 1px solid #e2edf5;
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.96), transparent 32%),
    radial-gradient(circle at 78% 84%, rgba(244, 0, 97, 0.09), transparent 38%),
    linear-gradient(145deg, #f7fbff, #fff8e8);
}

.coloring-hero-v1__visual::after {
  position: absolute;
  inset: 0;
  border: 12px solid rgba(255, 255, 255, 0.38);
  content: "";
  pointer-events: none;
}

.coloring-hero-v1__image {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  padding: 14px;
  object-fit: contain;
  object-position: 50% 50%;
  filter: drop-shadow(0 14px 20px rgba(25, 55, 88, 0.12));
}

/* Measured compact states preserve the approved 430px desktop height. */
html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 .coloring-hero-v1__copy--tight {
  padding-block: 12px;
}

html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 .coloring-hero-v1__copy--tight h1 {
  font-size: clamp(1.85rem, 2.9vw, 2.75rem);
}

html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 .coloring-hero-v1__copy--emergency {
  padding-block: 9px;
}

html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 .coloring-hero-v1__copy--emergency h1 {
  font-size: clamp(1.62rem, 2.55vw, 2.35rem);
  -webkit-line-clamp: 2;
}

html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 .coloring-hero-v1__copy--emergency .coloring-detail-hero__lead {
  font-size: 0.8rem;
  -webkit-line-clamp: 2;
}

html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 .coloring-hero-v1__copy--minimal .coloring-detail-hero__lead {
  -webkit-line-clamp: 1;
}

html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 .coloring-hero-v1__copy--minimal .coloring-feature-list {
  display: none;
}

/* Advertisement is fail-closed and uses the existing colorings_hero slot. */
.coloring-hero-ad {
  min-width: 0;
  height: var(--coloring-hero-height);
  min-height: var(--coloring-hero-height);
  max-height: var(--coloring-hero-height);
  grid-column: 2;
  grid-row: 1;
  overflow: hidden;
  border: 1px solid #ffd0df;
  border-radius: 24px;
  color: var(--coloring-hero-ink);
  background: linear-gradient(145deg, #fff4f8, #fff9e9);
  box-shadow: var(--coloring-hero-shadow);
}

.coloring-hero-ad[hidden] {
  display: none !important;
}

.coloring-hero-ad__placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 26px;
  text-align: center;
}

.coloring-hero-ad__placeholder span,
.coloring-hero-ad__label {
  color: #c90951;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.coloring-hero-ad__placeholder strong {
  max-width: 220px;
  font-size: 1.5rem;
  line-height: 1.08;
}

.coloring-hero-ad__placeholder small {
  max-width: 220px;
  color: #58708f;
  line-height: 1.45;
}

.coloring-hero-ad__creative {
  height: var(--coloring-hero-height);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.coloring-hero-ad__head,
.coloring-hero-ad__foot {
  display: grid;
  gap: 7px;
  padding: 18px 20px 14px;
}

.coloring-hero-ad__head strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.coloring-hero-ad__creative img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
}

.coloring-hero-ad__foot {
  padding-block: 12px 18px;
}

.coloring-hero-ad__foot small {
  display: -webkit-box;
  overflow: hidden;
  color: #355174;
  font-size: 0.82rem;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.coloring-hero-ad__cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #e30b5d, #c90951);
  box-shadow: 0 9px 20px rgba(244, 0, 97, 0.18);
  font-size: 0.86rem;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coloring-hero-ad--no-image .coloring-hero-ad__creative {
  grid-template-rows: auto 1fr;
}

.coloring-hero-ad--code {
  position: relative;
}

.coloring-hero-ad--code::before {
  position: absolute;
  z-index: 2;
  top: 7px;
  left: 50%;
  padding: 3px 8px;
  border-radius: 999px;
  content: "Реклама";
  pointer-events: none;
  color: #536a88;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.coloring-hero-ad__frame {
  width: 100%;
  height: var(--coloring-hero-height);
  display: block;
  border: 0;
  background: transparent;
}

@media (min-width: 1121px) {
  html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 .coloring-detail-hero > [data-coloring-ad-side="true"] {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  [data-coloring-ad-side="true"] .coloring-hero-v1__card {
    --coloring-hero-copy-min: 400px;
    grid-template-columns: minmax(var(--coloring-hero-copy-min), 52%) minmax(0, 1fr);
  }
}

@media (min-width: 901px) and (max-width: 1120px) {
  html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 .coloring-detail-hero > [data-coloring-ad-side="true"] {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 14px;
  }

  [data-coloring-ad-side="true"] .coloring-hero-v1__card {
    --coloring-hero-copy-min: 360px;
    grid-template-columns: minmax(var(--coloring-hero-copy-min), 54%) minmax(0, 1fr);
  }
}

@media (min-width: 721px) and (max-width: 900px) {
  .coloring-hero-ad {
    display: none !important;
  }

  .coloring-hero-v1__card {
    --coloring-hero-copy-min: 350px;
    grid-template-columns: minmax(var(--coloring-hero-copy-min), 52%) minmax(0, 1fr);
  }

  html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 .coloring-hero-v1__copy {
    padding-inline: 19px;
  }

  html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 .coloring-detail-hero h1 {
    font-size: clamp(2rem, 4.8vw, 2.85rem);
  }
}

/* Kolobok selector: below the hero first, below the active editor after selection. */
.kolobok-scenes {
  position: relative;
  z-index: 2;
  padding: 0 0 30px;
  background: #f8fbff;
  scroll-margin-top: 18px;
}

.kolobok-scenes[data-position="after"] {
  padding: 8px 0 58px;
  background: #fff;
}

.kolobok-scenes__container {
  width: min(1240px, calc(100% - 40px));
  max-width: none;
  margin-inline: auto;
}

.kolobok-scenes__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
}

.kolobok-scenes__heading .eyebrow {
  margin: 0 0 3px;
  color: #e30b5d;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.kolobok-scenes__heading h2 {
  margin: 0;
  color: #071438;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.kolobok-scenes__heading p:not(.eyebrow) {
  margin: 4px 0 0;
  color: #526b8c;
  font-size: 0.82rem;
}

.kolobok-scenes__controls {
  flex: 0 0 auto;
  display: flex;
  gap: 7px;
}

.kolobok-scenes__arrow {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #d2e1ef;
  border-radius: 12px;
  color: #163b69;
  background: #fff;
  box-shadow: 0 4px 12px rgba(30, 70, 115, 0.06);
  cursor: pointer;
  font-size: 1.05rem;
}

.kolobok-scenes__track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding: 3px 3px 10px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: #c9dbea transparent;
  scrollbar-width: thin;
}

.kolobok-scenes__option {
  min-width: 0;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 8px;
  overflow: hidden;
  border: 1px solid #d6e4f0;
  border-radius: 17px;
  color: #102650;
  background: #fff;
  box-shadow: 0 7px 20px rgba(30, 70, 115, 0.07);
  cursor: pointer;
  font: inherit;
  text-align: left;
  scroll-snap-align: start;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.kolobok-scenes__option:hover {
  border-color: #ef8bb0;
  box-shadow: 0 11px 26px rgba(117, 31, 73, 0.11);
  transform: translateY(-2px);
}

.kolobok-scenes__option[aria-pressed="true"] {
  border-color: #e30b5d;
  box-shadow: 0 0 0 2px rgba(227, 11, 93, 0.12), 0 11px 27px rgba(117, 31, 73, 0.13);
  background: #fff8fb;
}

.kolobok-scenes__thumb {
  width: 88px;
  height: 100px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e1eaf2;
  border-radius: 12px;
  background: #fff;
}

.kolobok-scenes__thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.kolobok-scenes__option-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.kolobok-scenes__option-copy strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.86rem;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.kolobok-scenes__option-copy small {
  color: #58708f;
  font-size: 0.68rem;
  line-height: 1.25;
}

.kolobok-scenes__option[aria-pressed="true"] .kolobok-scenes__option-copy small {
  color: #b5074b;
  font-weight: 750;
}

body.kolobok-coloring-hub .coloring-workspace-wrap {
  scroll-margin-top: 12px;
}

body.kolobok-coloring-hub .coloring-workspace-wrap[hidden],
body.kolobok-coloring-hub [data-kolobok-workspace-hidden] {
  display: none !important;
}

/* Scene copy from a legacy detail page would be wrong after switching scenes. */
body.kolobok-coloring-hub.coloring-detail-v6 .colorings-section--soft {
  display: none !important;
}

/* Keep mobile-v5's shell/menu/bottom navigation, but retire its duplicate detail/editor sheets. */
@media (max-width: 720px) {
  body.coloring-detail-v6 .c5-detail,
  body.coloring-detail-v6 .c5-editorbar,
  body.coloring-detail-v6 .c5-saved-sheet {
    display: none !important;
  }

  body.coloring-detail-v6 .colorings-section,
  body.coloring-detail-v6 .site-footer {
    display: block;
  }

  html[data-coloring-hero-version="1.54.0"] body.coloring-detail-v6 .coloring-detail-hero {
    display: block !important;
    padding: 10px 0 18px;
  }

  html[data-coloring-hero-version="1.54.0"] body.coloring-detail-v6 .coloring-detail-hero > .container {
    width: calc(100% - 24px);
  }

  .coloring-hero-v1__card {
    height: auto;
    min-height: 0;
    max-height: none;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 250px;
    border-radius: 20px;
  }

  html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 .coloring-detail-hero__content.coloring-hero-v1__copy {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    grid-column: 1;
    grid-row: 1;
    overflow: visible;
    padding: 16px 17px 14px;
  }

  html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 .coloring-hero-v1__copy .breadcrumbs {
    margin-bottom: 5px;
    font-size: 0.7rem;
  }

  html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 .coloring-detail-hero h1 {
    margin-bottom: 6px;
    font-size: clamp(1.72rem, 8vw, 2.25rem);
    line-height: 1;
    -webkit-line-clamp: 3;
  }

  html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 .coloring-detail-hero__lead {
    font-size: 0.82rem;
    line-height: 1.36;
    -webkit-line-clamp: 3;
  }

  html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 .coloring-feature-list {
    margin-top: 7px;
  }

  .coloring-hero-v1__primary-actions {
    grid-template-columns: 1.12fr 0.88fr;
  }

  .coloring-hero-v1__utility-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 .coloring-hero-v1__utility-actions > .button {
    min-height: 36px;
    font-size: 0.7rem;
  }

  .coloring-hero-v1__visual {
    width: 100%;
    height: 250px;
    min-height: 250px;
    max-height: 250px;
    grid-column: 1;
    grid-row: 2;
    border-top: 1px solid #e2edf5;
    border-left: 0;
  }

  .coloring-hero-v1__image {
    padding: 10px;
  }

  .coloring-hero-ad {
    display: none !important;
  }

  body.coloring-detail-v6 .coloring-workspace-wrap:not([hidden]) {
    display: block !important;
    padding-top: 12px;
  }

  body.coloring-detail-v6 .coloring-workspace-wrap[hidden] {
    display: none !important;
  }

  .kolobok-scenes,
  .kolobok-scenes[data-position="after"] {
    padding: 0 0 25px;
  }

  .kolobok-scenes[data-position="after"] {
    padding-top: 13px;
    background: #fff;
  }

  .kolobok-scenes__container {
    width: calc(100% - 24px);
  }

  .kolobok-scenes__heading {
    align-items: center;
    margin-bottom: 10px;
  }

  .kolobok-scenes__heading h2 {
    font-size: 1.32rem;
  }

  .kolobok-scenes__heading p:not(.eyebrow) {
    max-width: 270px;
    font-size: 0.74rem;
  }

  .kolobok-scenes__track {
    display: flex;
    gap: 10px;
    margin-inline: -12px;
    padding: 3px 12px 11px;
    scroll-padding-inline: 12px;
  }

  .kolobok-scenes__option {
    min-width: min(78vw, 300px);
    flex: 0 0 min(78vw, 300px);
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .kolobok-scenes__thumb {
    width: 82px;
    height: 96px;
  }
}

@media (max-width: 390px) {
  .coloring-hero-v1__card {
    grid-template-rows: auto 220px;
  }

  .coloring-hero-v1__visual {
    height: 220px;
    min-height: 220px;
    max-height: 220px;
  }

  html[data-coloring-hero-version="1.54.0"] body.coloring-hero-v1 .coloring-detail-hero h1 {
    font-size: 1.62rem;
  }

  .kolobok-scenes__controls {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kolobok-scenes__track {
    scroll-behavior: auto;
  }

  .kolobok-scenes__option {
    transition: none;
  }
}

@media (forced-colors: active) {
  .coloring-hero-v1__card,
  .coloring-hero-ad,
  .kolobok-scenes__option {
    border: 1px solid CanvasText;
  }

  .kolobok-scenes__option[aria-pressed="true"] {
    outline: 3px solid Highlight;
  }
}
