:root {
  --ink: #ffffff;
  --canvas: #000000;
  --line: rgba(255, 255, 255, 0.72);
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.slide {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  container-type: inline-size;
  font-size: calc(100cqi * 16 / 1720);
  background:
    radial-gradient(ellipse 78% 36% at 18% 112%, rgba(18, 46, 78, 0.95) 0%, rgba(8, 22, 40, 0.55) 46%, transparent 72%),
    var(--canvas);
}

.product {
  position: absolute;
  z-index: 1;
  top: 11.48%;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.brand {
  position: absolute;
  z-index: 2;
  left: 4.651%;
  top: 7.407%;
  width: 13.55%;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.hero h1,
.lead,
.cards,
.contacts {
  position: absolute;
  z-index: 2;
  left: 4.651%;
  margin: 0;
}

.hero h1 {
  top: 24.25%;
  font-size: 5em;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.048em;
  white-space: nowrap;
}

.lead {
  top: 36.85%;
  max-width: 39.5em;
  font-size: 1.125em;
  font-weight: 400;
  line-height: 1.5;
}

.cards {
  top: 52.25%;
  display: flex;
  gap: 1.875em;
}

.card {
  position: relative;
  width: 16.875em;
  height: 16.875em;
  padding: 3.45em 1.28em 1.4em;
  border: 1px solid var(--line);
  border-radius: 2.3125em;
}

.pin {
  display: block;
  width: 1.65em;
  height: 2.34em;
  margin-left: 0.72em;
}

.card h2 {
  margin: 1em 0 0.8em;
  font-size: 1.25em;
  font-weight: 700;
  line-height: 1.32;
}

.card p {
  margin: 0;
  font-size: 1em;
  font-weight: 400;
  line-height: 1.5;
}

.contacts {
  top: 87.7%;
  font-size: 1.125em;
  font-weight: 400;
  line-height: 1.5;
}

.contacts p {
  margin: 0;
}

.contacts a {
  color: inherit;
  text-decoration: none;
}

.contacts a:hover,
.contacts a:focus-visible {
  text-decoration: underline;
}

.contacts a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  body {
    display: block;
    overflow-x:hidden;
  }

  .slide {
    width: 100vw;
    height: 100vh;
    container-type: normal;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 28px 20px 40px;
    overflow: visible;
  }

  .product,
  .brand,
  .hero h1,
  .lead,
  .cards,
  .contacts {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    max-width: none;
  }

  .product {
    order: 2;
    width: min(100%, 520px);
    height: auto;
    margin: 0 auto;
    margin-left:-120px!important;
  }

  .brand {
    order: 1;
    width: 168px;
  }

  .hero {
    order: 3;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 3.2rem);
    letter-spacing: -0.03em;
  }

  .lead {
    font-size: 1rem;
    line-height: 1.5;
  }

  .cards {
    flex-direction: column;
    gap: 16px;
  }

  .card {
    width: 100%;
    height: auto;
    min-height: 220px;
    border-radius: 28px;
    padding: 28px 22px 24px;
  }

  .pin {
    width: 22px;
    height: 32px;
    margin-left: 8px;
  }

  .card h2 {
    font-size: 1.15rem;
  }

  .contacts {
    order: 4;
    font-size: 0.95rem;
  }
}