:root {
  color-scheme: only light;
  font-family: "Unbounded", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --ink: #15171a;
  --art-inset: clamp(10px, 0.55vw, 14px);
  --art-radius: clamp(24px, 2.64vw, 68px);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}

body {
  overscroll-behavior: none;
}

a {
  color: inherit;
}

.poster {
  position: relative;
  isolation: isolate;
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--ink);
}

.poster__artboard {
  position: absolute;
  z-index: -1;
  inset: var(--art-inset);
  overflow: hidden;
  border-radius: var(--art-radius);
  background-color: #ffb52e;
  background-image: url("./public/assets/3b7bf.svg");
  background-position: center;
  background-size: 100% 100%;
}

.site-header {
  position: absolute;
  z-index: 3;
  inset: 0 clamp(40px, 2.34vw, 60px) auto clamp(40px, 1.56vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(88px, 5.86vw, 150px);
  padding-top: clamp(18px, 1.56vw, 40px);
  --brand-scale: 1;
}

.brand {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 357.214px;
  height: 107.054px;
  color: var(--ink);
  text-decoration: none;
}

.brand__graphic {
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: 357.214px;
  height: 107.054px;
  transform: translateY(-50%) scale(var(--brand-scale));
  transform-origin: left center;
}

.brand__head {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 105.354px;
  height: 107.054px;
}

.brand__head img {
  position: absolute;
  top: 3.57px;
  left: 7.27px;
  display: block;
  width: 89.8654px;
  height: 99.1855px;
}

.brand__wordmark {
  position: absolute;
  top: 20.39px;
  left: 114.28px;
  display: block;
  width: 234.499px;
  height: 71.8943px;
}

.contacts {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: clamp(34px, 2.62vw, 67px);
  color: var(--ink);
}

.contacts__phone,
.contacts__icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: inherit;
  text-decoration: none;
}

.contacts__phone {
  min-height: 46px;
  font-size: clamp(17px, 1.16vw, 29.62px);
  font-weight: 500;
  letter-spacing: 0.045em;
  white-space: nowrap;
}

.contacts__phone-icon {
  display: none;
  width: 39px;
  height: 39px;
  fill: currentColor;
}

.contacts__icon {
  width: 54px;
  height: 48px;
  border-radius: 4px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.contacts__icon img {
  display: block;
  width: auto;
  height: auto;
  max-width: 54px;
  max-height: 46px;
}

.contacts__telegram img {
  width: clamp(36px, 2.1vw, 53.7598px);
  height: auto;
}

.contacts__mail img {
  width: clamp(35px, 2.06vw, 52.7393px);
  height: auto;
}

.contacts a:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
}

.contacts a:hover {
  opacity: 0.75;
}

.contacts__icon:hover {
  transform: translateY(-2px);
}

.intro {
  position: absolute;
  z-index: 2;
  top: clamp(185px, 19.55vh, 260px);
  left: clamp(48px, 5.27vw, 135px);
  width: min(52vw, 1077px);
  color: var(--ink);
}

.intro__headline {
  display: grid;
  grid-template-areas:
    "one one"
    "two two"
    "three four"
    "five five";
  grid-template-columns: max-content max-content;
  align-items: baseline;
  column-gap: 0.2em;
  row-gap: 0;
  margin: 0;
  font-size: clamp(68px, 5.78vw, 148px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.intro__word {
  display: block;
}

.intro__letter {
  display: inline-block;
  transform-origin: center;
}

.intro__word--light {
  font-weight: 300;
}

.intro__word--heavy {
  font-weight: 800;
}

.intro__word--one { grid-area: one; }
.intro__word--two { grid-area: two; }
.intro__word--three { grid-area: three; }
.intro__word--four { grid-area: four; }
.intro__word--five { grid-area: five; }

.intro__supporting {
  width: clamp(460px, 32.4vw, 828px);
  margin: clamp(112px, 6.2vw, 160px) 0 0;
  color: #2e2e2e;
  font-size: clamp(18px, 1.29vw, 33px);
  font-weight: 400;
  line-height: 1.58;
  letter-spacing: -0.035em;
}

.mascot {
  position: absolute;
  z-index: 1;
  top: clamp(130px, 16.2vh, 215px);
  right: clamp(48px, 8.8vw, 225px);
  width: clamp(390px, 36vw, 921px);
  pointer-events: none;
  will-change: transform;
}

.mascot__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.wide-copy-break {
  display: none;
}

@media (min-width: 2400px) {
  .wide-copy-break {
    display: initial;
  }
}

@media (min-width: 1600px) and (max-width: 2399px) {
  .site-header {
    --brand-scale: 0.74;
  }

  .brand {
    width: 264.3px;
    height: 79.2px;
  }
}

@media (min-width: 1000px) and (max-width: 1599px) {
  .site-header {
    --brand-scale: 0.7;
  }

  .brand {
    width: 250px;
    height: 75px;
  }
}

@media (min-width: 700px) and (max-width: 999px) {
  :root {
    --art-inset: 10px;
    --art-radius: 38px;
  }

  .site-header {
    inset-inline: 24px;
    height: 102px;
    padding-top: 12px;
    --brand-scale: 0.72;
  }

  .brand {
    width: 257.2px;
    height: 77.1px;
  }

  .contacts {
    gap: clamp(20px, 3.2vw, 28px);
  }

  .contacts__phone {
    font-size: clamp(17px, 2.45vw, 20px);
    letter-spacing: 0.035em;
  }

  .contacts__icon {
    width: 44px;
    height: 44px;
  }

  .contacts__telegram img {
    width: 35px;
    height: auto;
  }

  .contacts__mail img {
    width: 34px;
    height: auto;
  }

  .intro {
    top: 18.5%;
    left: 4%;
    width: 76%;
  }

  .intro__headline {
    grid-template-areas:
      "one one"
      "two three"
      "four five";
    column-gap: 0.19em;
    font-size: clamp(48px, 7.5vw, 62px);
    line-height: 1.12;
    letter-spacing: 0.01em;
  }

  .intro__supporting {
    width: min(57%, 440px);
    margin-top: 30px;
    font-size: clamp(17px, 2.45vw, 21px);
    line-height: 1.57;
    letter-spacing: -0.035em;
  }

  .mascot {
    top: auto;
    right: 6%;
    bottom: 1.5%;
    width: min(58vw, 505px);
  }
}

@media (max-width: 699px) {
  :root {
    --art-inset: 5px;
    --art-radius: 20px;
  }

  .site-header {
    inset: 15px 15px auto;
    height: 58px;
    padding: 0;
    --brand-scale: 0.5;
  }

  .brand {
    width: 178.6px;
    height: 53.5px;
  }

  .contacts {
    gap: 4px;
  }

  .contacts__phone {
    width: 44px;
    min-height: 44px;
  }

  .contacts__number {
    display: none;
  }

  .contacts__phone-icon {
    display: block;
    width: 30px;
    height: 30px;
  }

  .contacts__icon {
    width: 44px;
    height: 44px;
  }

  .contacts__telegram img {
    width: 30px;
    height: auto;
  }

  .contacts__mail img {
    width: 29px;
    height: auto;
  }

  .intro {
    top: clamp(101px, 15.3vh, 135px);
    left: 4.2%;
    width: 91.6%;
  }

  .intro__headline {
    grid-template-areas:
      "one one"
      "two two"
      "three four"
      "five five";
    column-gap: 0.2em;
    font-size: clamp(31px, 9.6vw, 37px);
    line-height: 1.2;
    letter-spacing: 0.01em;
  }

  .intro__supporting {
    width: 88%;
    margin-top: clamp(14px, 4.2vw, 20px);
    font-size: clamp(13px, 3.85vw, 15.5px);
    line-height: 1.48;
    letter-spacing: -0.04em;
  }

  .mascot {
    top: auto;
    right: 10.5%;
    bottom: 1%;
    width: min(78vw, 335px);
  }
}

@media (max-width: 699px) and (max-height: 650px) {
  .intro {
    top: clamp(70px, 13vh, 86px);
  }

  .intro__headline {
    font-size: clamp(28px, 8.4vw, 31px);
    line-height: 1.08;
  }

  .intro__supporting {
    width: 90%;
    margin-top: 8px;
    font-size: clamp(12px, 3.6vw, 13px);
    line-height: 1.32;
  }

  .mascot {
    right: 6%;
    width: min(62vw, calc(90dvh - 270px));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
