/*
 * Temporary isolated styles for the redesigned home-page hero.
 * All selectors are scoped with the dc-hero prefix.
 */

.dc-hero {
  --dc-hero-bg: #8e81ea;
  --dc-hero-ink: #08072b;
  position: relative;
  z-index: 20;
  width: 100%;
  min-height: clamp(560px, 42.105vw, 800px);
  margin-top: 91px;
  overflow: hidden;
  color: var(--dc-hero-ink);
  background: var(--dc-hero-bg);
  isolation: isolate;
}

.dc-hero *,
.dc-hero *::before,
.dc-hero *::after {
  box-sizing: border-box;
}

.dc-hero .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dc-hero__art {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: min(100%, 1900px);
  max-width: 1900px;
  aspect-ratio: 1900 / 800;
  margin: auto;
  pointer-events: none;
}

.dc-hero__children {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dc-hero__object {
  position: absolute;
  z-index: 2;
  display: block;
  height: auto;
  transform: translate3d(0, 0, 0);
  transform-origin: center;
  will-change: transform;
}

.dc-hero__object--ball {
  top: 12.5%;
  left: 50%;
  width: 8.74%;
}

.dc-hero__object--puzzle-top {
  top: 5%;
  left: 61.5%;
  width: 4.74%;
}

.dc-hero__object--cube-a {
  top: 5.5%;
  left: 80%;
  width: 4.43%;
}

.dc-hero__object--pencils {
  top: 15%;
  left: 87.5%;
  width: 8.42%;
}

.dc-hero__object--cube-b {
  top: 47%;
  left: 50.5%;
  width: 7.53%;
}

.dc-hero__object--brush {
  top: 44%;
  left: 59%;
  width: 6.85%;
}

.dc-hero__object--paint {
  z-index: 1;
  top: 43%;
  left: 75%;
  width: 16.43%;
}

.dc-hero__object--palette {
  top: 43%;
  left: 70.7%;
  width: 10.37%;
}

.dc-hero__object--note {
  top: 57%;
  left: 90%;
  width: 5.43%;
}

.dc-hero__object--microphone {
  top: 73%;
  left: 51.5%;
  width: 8.48%;
}

.dc-hero__object--puzzle-bottom {
  top: 80%;
  left: 87.5%;
  width: 4.74%;
}

.dc-hero__inner {
  position: relative;
  width: min(100%, 1900px);
  min-height: inherit;
  margin: 0 auto;
  padding: clamp(28px, 3.1vw, 58px) clamp(24px, 4.8vw, 92px)
    clamp(26px, 3.4vw, 64px);
}

.dc-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  width: 50.5%;
  min-height: calc(clamp(560px, 42.105vw, 800px) - clamp(54px, 6.5vw, 122px));
  flex-direction: column;
  align-items: flex-start;
}

.dc-hero__logo {
  width: min(100%, 670px);
  margin: 0;
  line-height: 0;
}

.dc-hero__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.dc-hero__benefits {
  display: grid;
  width: min(100%, 810px);
  margin-top: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.9vw, 36px);
}

.dc-hero__benefit {
  min-width: 0;
  margin: 0;
  text-align: center;
}

.dc-hero__benefit img {
  display: block;
  width: clamp(96px, 8.2vw, 156px);
  height: auto;
  margin: 0 auto clamp(12px, 1vw, 19px);
}

.dc-hero__benefit h2 {
  max-width: 235px;
  min-height: 2.25em;
  margin: 0 auto clamp(6px, 0.55vw, 10px);
  color: var(--dc-hero-ink);
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(13px, 0.92vw, 17px);
  font-weight: 700;
  line-height: 1.12;
  text-transform: uppercase;
}

.dc-hero__benefit p {
  margin: 0;
  color: #fff;
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(11px, 0.78vw, 15px);
  font-weight: 500;
  line-height: 1.18;
}

.dc-hero__actions {
  display: flex;
  width: min(100%, 700px);
  margin-top: clamp(22px, 2.2vw, 42px);
  align-items: center;
  gap: clamp(28px, 3.1vw, 58px);
}

.dc-hero__cta {
  display: inline-flex;
  min-width: clamp(170px, 13.9vw, 264px);
  min-height: clamp(52px, 4.63vw, 88px);
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border: 3px solid rgba(45, 32, 105, 0.52);
  border-radius: 999px;
  color: var(--dc-hero-ink);
  background: #fff;
  box-shadow: 0 5px 0 rgba(46, 34, 108, 0.42);
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(17px, 1.16vw, 22px);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.dc-hero__cta:hover {
  color: var(--dc-hero-ink);
  box-shadow: 0 7px 0 rgba(46, 34, 108, 0.42);
  transform: translateY(-2px);
}

.dc-hero__cta:active {
  box-shadow: 0 2px 0 rgba(46, 34, 108, 0.42);
  transform: translateY(3px);
}

.dc-hero__cta:focus-visible,
.dc-hero__socials a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.dc-hero__socials {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: clamp(12px, 1.4vw, 27px);
}

.dc-hero__socials a {
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.dc-hero__socials a:hover {
  opacity: 0.82;
  transform: translateY(-2px);
}

.dc-hero__socials img {
  display: block;
  width: auto;
  height: clamp(34px, 2.95vw, 56px);
  object-fit: contain;
}

.dc-hero + .sections {
  position: relative;
  z-index: 21;
  background: #fff;
}

.dc-hero + .sections > .section-bg.section-bg_big {
  display: none;
}

@media (max-width: 1180px) {
  .dc-hero__inner {
    padding-right: 32px;
    padding-left: 32px;
  }

  .dc-hero__content {
    width: 53%;
  }

  .dc-hero__benefits {
    gap: 12px;
  }

  .dc-hero__actions {
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .dc-hero {
    display: flex;
    min-height: auto;
    overflow: hidden;
    flex-direction: column;
  }

  .dc-hero__art {
    position: relative;
    z-index: 1;
    order: 2;
    width: calc(100% + 38vw);
    max-width: none;
    margin: 0 0 18px -38vw;
  }

  .dc-hero__children {
    object-fit: contain;
  }

  .dc-hero__inner,
  .dc-hero__content {
    display: contents;
    min-height: 0;
    padding: 0;
  }

  .dc-hero__logo {
    order: 1;
    width: min(84vw, 560px);
    margin: 0 auto;
    padding-top: 26px;
  }

  .dc-hero__benefits {
    order: 3;
    width: 100%;
    margin-top: 4px;
    padding: 0 22px;
    gap: 14px;
  }

  .dc-hero__benefit img {
    width: clamp(92px, 18vw, 140px);
  }

  .dc-hero__benefit h2 {
    font-size: clamp(12px, 2.1vw, 16px);
  }

  .dc-hero__benefit p {
    font-size: clamp(11px, 1.8vw, 14px);
  }

  .dc-hero__actions {
    order: 4;
    width: 100%;
    margin-top: 28px;
    padding: 0 22px 34px;
    justify-content: center;
  }

  .dc-hero__cta {
    min-height: 58px;
  }

  .dc-hero__socials img {
    height: 44px;
  }
}

@media (max-width: 640px) {
  .dc-hero__logo {
    width: min(91vw, 500px);
    padding-top: 22px;
  }

  .dc-hero__art {
    width: 190%;
    margin: 0 0 18px -88%;
  }

  .dc-hero__benefits {
    grid-template-columns: 1fr;
    padding: 0 16px;
    gap: 18px;
  }

  .dc-hero__benefit {
    display: grid;
    width: min(100%, 430px);
    margin: 0 auto;
    grid-template-columns: 96px 1fr;
    grid-template-rows: auto auto;
    column-gap: 15px;
    text-align: left;
  }

  .dc-hero__benefit img {
    width: 92px;
    margin: 0;
    grid-row: 1 / 3;
  }

  .dc-hero__benefit h2 {
    min-height: 0;
    margin: auto 0 5px;
    font-size: 13px;
  }

  .dc-hero__benefit p {
    margin: 0 0 auto;
    font-size: 12px;
  }

  .dc-hero__actions {
    flex-direction: column;
    padding: 0 16px 30px;
    gap: 22px;
  }

  .dc-hero__cta {
    min-width: 220px;
    min-height: 62px;
    font-size: 18px;
  }

  .dc-hero__socials {
    gap: 22px;
  }

  .dc-hero__socials img {
    height: 42px;
  }
}

@media (max-width: 770px) {
  .dc-hero {
    margin-top: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dc-hero__cta,
  .dc-hero__socials a {
    transition: none;
  }

  .dc-hero__object {
    will-change: auto;
  }
}
