*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-synthesis: none;
}

:root {
  --h1-size: 114px;
}

@font-face {
  font-family: "Golos";
  src: url("fonts/golos-text_vf.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
}

@font-face {
  font-family: "Lanze Spear";
  src: url("fonts/Lanze-Spear.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
}

body {
  background: #fff;
  color: #000;
  font-family: "Golos", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.01em;
}

a {
  text-decoration: none;
  color: #000;
}

a:hover {
  color: #C90000;
}

.container {
  padding: 48px 20px 0 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.hero {
  display: flex;
  flex-direction: row;
  gap: 16px;
}

.info {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 12px;
}

.text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

h1 {
  font-family:
    Lanze Spear,
    Arial,
    sans-serif;
  font-size: var(--h1-size);
  letter-spacing: -0.02em;
  line-height: 0.86;
  margin-top: -0.105em;
}

p {
  font-family: Golos, Arial, sans-serif;
}

.icons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.icon {
  color: #000;
}

.icon:hover {
  color: #C90000;
}

.image {
  flex: 2;
}

.image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.card-big {
  display: flex;
  flex-direction: row;
  gap: 16px;
  text-decoration: none;
  color: #000;
  cursor: pointer;
}

.card-big:hover .card-title {
  color: #C90000;
}

.illustration {
  flex: 5;
}

.illustration img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.double {
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.double img {
  flex: 1;
  min-width: 0;
}

.multiple {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.multiple > img,
.multiple > .grid {
  flex: 1 1 0;
  min-width: 0;
}

.multiple > img {
  width: 0;
  object-fit: cover;
  display: block;
}

.grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.row {
  display: flex;
  gap: 8px;
  flex: 1 1 0;
  min-height: 0;
}

.row img {
  flex: 1 1 0;
  width: 0;
  height: 100%;
  min-width: 0;
  object-fit: cover;
  display: block;
}

.poster {
  position: relative;
  width: min(100%, 798px);
  aspect-ratio: 798 / 445;
  background: #000;
  overflow: visible;
}

.badge {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
}

/* верхняя левая */
.badge-pink {
  width: 54%;
  left: -2%;
  top: -2%;
  transform: rotate(-9.5deg);
}

/* нижняя */
.badge-lime {
  width: 60%;
  left: 18%;
  bottom: -3.5%;
  transform: rotate(8.7deg);
}

/* верхняя правая */
.badge-cyan {
  width: 54%;
  right: -6%;
  top: -14%;
  transform: rotate(-15.31deg);
}

.card-title {
  flex: 1;
}

.card-title p {
  margin-top: -6px;
}

.cards-small {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 48px 16px;
}

.card-small {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  text-decoration: none;
  color: #000;
}

.card-small:hover {
  color: #C90000;
}

.card-small img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 12 / 17;
  object-fit: cover;
}

[id] {
  scroll-margin-top: 40px;
}

.footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: last baseline;
  margin-top: 120px;
  padding-bottom: 24px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links {
  display: flex;
  flex-direction: row;
  gap: 4px;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 4px;;
}

.footer-contacts a {
  font-size: 48px;
  font-weight: 450;
  line-height: 1;
}

@media (max-width: 999px) {
  h1 {
    font-size: clamp(48px, 11.4vw, 114px);
  }

  .footer-contacts a {
  font-size: clamp(24px, 4.8vw, 48px);
   }
}

@media (max-width: 640px) {

  .container {
    padding: 16px 16px 0 16px;
  }

  .text h1 {
    font-size: clamp(64px, 13.75vw, 88px);
    margin: 0.32em 0 0.17em 0;
  }

  .hero {
    flex-direction: column-reverse;
    gap: 0px;
  }

  .info {
    gap: 14px;
  }

  .text {
    gap: 0px;
  }

  .icons {
    gap: 8px;
  }

  .poster {
    overflow: hidden;
  }

  .text p {
    max-width: 450px;
  }

  .card-small {
    flex: 0 0 calc((100% - 16px) / 2);
  }

  .right {
    flex-direction: column;
  }

  .left {
    flex-direction: column-reverse;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 100px;
  }

  .footer-contacts {
    align-items: flex-start;
    gap: 6px;
    margin-top: 20px;
  }
}