@layer components {
  .hero-slide {
    position: absolute;
    inset: 0;
    isolation: isolate;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.7s ease,
      visibility 0.7s;
  }
  .hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
  }
  .hero-slider {
    touch-action: pan-y;
    height: min(720px, calc(100svh - 108px));
    min-height: 600px;
    max-height: 850px;
  }
  .hero-slider .hero-inner {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 112px;
    padding: 0;
  }
  .hero-brand {
    width: min(410px, 72vw);
  }
  .hero-brand img {
    width: 100%;
    height: auto;
  }
  .hero-slide.is-active .hero-brand {
    animation: brand-arrive 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  @keyframes brand-arrive {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .hero-slider [data-slide='0'] .hero-photo {
    object-position: 53% 40%;
  }
  .hero-slider [data-slide='1'] .hero-photo {
    object-position: 78% 35%;
  }
  .hero-slider [data-slide='2'] .hero-photo {
    object-position: 31% 35%;
  }
  .hero-slider .slide-title {
    font-family: var(--font);
    font-weight: 550;
    font-size: clamp(2.8rem, 4.3vw, 4.25rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
    max-width: 740px;
  }
  .hero-slider .hero-kicker {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    margin-bottom: 18px;
  }
  .hero-slider .hero-description {
    max-width: 450px;
    font-size: 0.9375rem;
    margin-block: 20px 26px;
    color: white;
  }
  .hero-slider .hero-shade {
    background:
      linear-gradient(0deg, #101417b3, transparent 85%),
      linear-gradient(90deg, #10141780, transparent 75%);
  }
  .hero-slider .button {
    min-height: 46px;
    min-width: 230px;
    border-radius: 3px;
    font-size: 0.8125rem;
  }
  .hero-slider .hero-phone {
    font-size: 0.8125rem;
  }
  .slider-controls {
    position: absolute;
    bottom: 18px;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
  }
  .slide-choices {
    display: flex;
    gap: 0;
  }
  .slide-choices button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .slide-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff7;
    transition: background 0.2s;
  }
  .slide-choices button[aria-pressed='true'] .slide-dot {
    background: white;
  }
  .slider-transport {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  .slider-transport button {
    position: absolute;
    bottom: 0;
    width: 40px;
    height: 40px;
    border: 1px solid #fff5;
    background: #ffffffd9;
    color: #252525;
    font-size: 1.8rem;
    line-height: 1;
    border-radius: 2px;
    pointer-events: auto;
  }
  .slider-transport [data-prev] {
    left: 0;
  }
  .slider-transport [data-next] {
    right: 0;
  }
  .slider-controls button:focus-visible {
    outline-color: white;
  }
  .slider-transport button:hover {
    background: white;
  }
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .certificate-record {
    max-width: 850px;
    padding-bottom: 65px;
  }
  .certificate-record dl {
    margin: 0 0 28px;
  }
  .certificate-record dl > div {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    border-top: 1px solid var(--line);
    padding: 18px 0;
  }
  .certificate-record dt {
    color: var(--muted);
    font-size: 0.875rem;
  }
  .certificate-record dd {
    margin: 0;
    font-weight: 550;
  }
  .certificate-record p {
    font-size: 0.875rem;
    margin-bottom: 18px;
  }
}

@layer responsive {
  @media (max-width: 700px) {
    .hero-slider {
      height: calc(100svh - 146px);
      min-height: 590px;
      max-height: 760px;
    }
    .hero-slider .hero-inner {
      bottom: 90px;
      padding: 0;
    }
    .hero-slider .slide-title {
      font-size: clamp(2.25rem, 8.5vw, 3.5rem);
      line-height: 1.1;
    }
    .hero-slider .hero-kicker {
      font-size: 0.625rem;
      letter-spacing: 0.09em;
      margin-bottom: 14px;
    }
    .hero-slider .hero-description {
      font-size: 0.875rem;
      margin-block: 18px 22px;
      max-width: 320px;
    }
    .hero-slider .hero-shade {
      background: linear-gradient(
        0deg,
        #101417e8,
        #10141785 45%,
        #10141708 90%
      );
    }
    .hero-slider [data-slide='0'] .hero-photo {
      object-position: 53% center;
    }
    .hero-slider [data-slide='1'] .hero-photo {
      object-position: 78% top;
    }
    .hero-slider .button {
      min-height: 48px;
      width: 100%;
      max-width: 340px;
    }
    .slider-controls {
      bottom: 16px;
    }
    .slider-transport button {
      background: transparent;
      color: white;
      border-color: #fff5;
      width: 36px;
      height: 36px;
    }
    .slider-transport button:hover {
      background: #fff2;
    }
    .certificate-record dl > div {
      grid-template-columns: 1fr;
      gap: 5px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero-slide.is-active .hero-brand {
      animation: none;
    }
    .hero-slide {
      transition: none;
    }
  }
}
