@font-face {
  font-family: "Gropled";
  src: url("../assets/fonts/gropled-bold.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat-300.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #111111;
  --accent: #f6b81f;
  --paper: #ffffff;
  --content: 1200px;
  --edge: clamp(20px, 4vw, 48px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #2015ff;
  outline-offset: 4px;
}

.container {
  width: min(100% - (var(--edge) * 2), var(--content));
  margin-inline: auto;
}

.skip-link,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 100;
  top: 16px;
  left: 16px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 18px;
  clip: auto;
  background: var(--paper);
}

h1,
h2 {
  margin: 0;
  font-family: "Gropled", Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.hero {
  min-height: max(760px, 100svh);
  display: grid;
  align-items: stretch;
}

.hero__inner {
  width: calc(100% - (var(--edge) * 2));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  padding-block: clamp(44px, 7vh, 84px) 0;
}

.hero__copy {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(42px, 7vh, 80px);
}

.hero h1 {
  max-width: 650px;
  font-size: clamp(39px, 4.2vw, 64px);
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.hero h1 span {
  color: var(--accent);
}

.hero__text {
  max-width: 590px;
  margin-top: clamp(24px, 3.5vh, 40px);
  font-size: clamp(15px, 1.35vw, 20px);
  line-height: 1.48;
}

.hero__text p {
  margin: 0 0 1.15em;
}

.hero__text p:last-child {
  margin-bottom: 0;
}

.hero__media {
  align-self: end;
  min-width: 0;
}

.hero__media img {
  width: 100%;
  height: auto;
  max-height: 96svh;
  margin-inline: auto;
  object-fit: contain;
  object-position: center bottom;
}

.contacts {
  position: relative;
  display: grid;
  min-height: 800px;
  color: var(--paper);
  background:
    linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.58)),
    url("../assets/images/contact-audience.jpg") center 48% / cover no-repeat;
}

.contacts__inner {
  align-self: center;
  width: min(100% - 40px, 520px);
  padding-block: 70px;
  text-align: center;
}

.contacts h2 {
  font-size: clamp(23px, 2vw, 31px);
  line-height: 1.25;
}

.contacts__rule {
  display: block;
  width: 48px;
  height: 1px;
  margin: 24px auto;
  background: rgba(255, 255, 255, 0.65);
}

.contacts p {
  margin: 0 0 0.75em;
  font-size: 15px;
  line-height: 1.55;
}

.contacts__links {
  display: grid;
  gap: 10px;
  margin-top: 34px;
}

.contacts__links a,
.button {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  color: var(--ink);
  background: var(--accent);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, filter 160ms ease;
}

.contacts__links a:hover,
.button:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

.clients {
  padding-block: clamp(110px, 14vw, 210px) clamp(100px, 12vw, 180px);
}

.clients h2,
.work h2 {
  font-size: clamp(38px, 4.1vw, 54px);
  line-height: 1.12;
}

.carousel {
  position: relative;
  width: 100%;
  margin-top: clamp(58px, 7vw, 90px);
  padding-inline: clamp(50px, 6vw, 90px);
}

.carousel__viewport {
  width: min(100%, var(--content));
  margin-inline: auto;
  overflow: hidden;
}

.carousel__track {
  display: flex;
  transform: translateX(0);
  transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  gap: clamp(18px, 3vw, 46px);
  min-height: 110px;
  padding-inline: 8px;
}

.carousel__slide img {
  width: 100%;
  max-width: 140px;
  max-height: 82px;
  margin-inline: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.78;
  transition: filter 180ms ease, opacity 180ms ease;
}

.carousel__slide img:hover {
  filter: grayscale(0);
  opacity: 1;
}

.carousel__arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 44px;
  height: 54px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.carousel__arrow::before {
  content: "";
  position: absolute;
  top: 14px;
  width: 22px;
  height: 22px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.carousel__arrow--prev {
  left: clamp(8px, 2vw, 34px);
}

.carousel__arrow--prev::before {
  left: 13px;
  transform: rotate(-45deg);
}

.carousel__arrow--next {
  right: clamp(8px, 2vw, 34px);
}

.carousel__arrow--next::before {
  right: 13px;
  transform: rotate(135deg);
}

.work {
  padding-top: clamp(90px, 9vw, 130px);
}

.work__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1600 / 1042;
  margin-top: 24px;
  overflow: hidden;
}

.work__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}

.work__visual p {
  position: absolute;
  z-index: 1;
  top: 28%;
  left: calc(50% + 50px);
  margin: 0;
  font-family: "Gropled", Arial, sans-serif;
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.work__quote {
  position: absolute;
  z-index: 2;
  top: 2%;
  left: 64%;
  color: var(--accent);
  font-family: "Gropled", Arial, sans-serif;
  font-size: clamp(120px, 14vw, 210px);
  line-height: 1;
}

.more {
  padding-block: clamp(110px, 15vw, 210px);
}

.more__inner {
  display: grid;
  justify-items: center;
  gap: 30px;
  text-align: center;
}

.more h2 {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 300;
  text-transform: none;
}

.button {
  width: min(100%, 440px);
  min-height: 56px;
  border-radius: 9px;
  font-family: "Gropled", Arial, sans-serif;
  font-size: clamp(15px, 1.4vw, 18px);
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 34px;
  }

  .hero__media {
    grid-row: 1;
  }

  .hero__media img {
    width: min(84vw, 610px);
    max-height: 58svh;
  }

  .hero__copy {
    grid-row: 2;
    padding-bottom: 72px;
  }

  .hero h1 {
    max-width: 720px;
    font-size: clamp(34px, 6vw, 48px);
  }

  .hero__text {
    max-width: 720px;
    font-size: 16px;
  }

  .contacts {
    min-height: 780px;
  }

  .clients {
    padding-block: 100px;
  }

  .carousel__slide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, 90px);
    min-height: 210px;
  }

  .work__visual {
    height: 660px;
    aspect-ratio: auto;
  }

  .work__visual img {
    inset: 0 auto 0 50%;
    width: auto;
    height: 100%;
    transform: translateX(-50%);
  }

  .work__visual p {
    top: 24%;
    left: 53%;
    font-size: 28px;
  }
}

@media (max-width: 560px) {
  :root {
    --edge: 20px;
  }

  .hero__inner {
    gap: 28px;
    padding-top: 18px;
  }

  .hero__media img {
    width: min(96vw, 430px);
    max-height: none;
  }

  .hero__copy {
    padding-bottom: 54px;
  }

  .hero h1 {
    font-size: clamp(26px, 8.3vw, 36px);
    line-height: 1.13;
  }

  .hero__text {
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.48;
  }

  .contacts {
    min-height: 760px;
    background-position: 47% center;
  }

  .contacts__inner {
    width: min(100% - 32px, 440px);
    padding-block: 48px;
  }

  .contacts h2 {
    font-size: 20px;
  }

  .contacts p {
    font-size: 13px;
  }

  .contacts__links {
    gap: 8px;
    margin-top: 26px;
  }

  .contacts__links a {
    min-height: 46px;
    padding: 9px 12px;
    font-size: 12px;
  }

  .clients {
    padding-block: 72px 84px;
  }

  .clients h2,
  .work h2 {
    font-size: clamp(30px, 9vw, 38px);
  }

  .carousel {
    margin-top: 40px;
    padding-inline: 42px;
  }

  .carousel__slide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, 72px);
    gap: 10px 18px;
    min-height: 236px;
  }

  .carousel__slide img {
    max-width: 105px;
    max-height: 58px;
  }

  .carousel__arrow--prev {
    left: 0;
  }

  .carousel__arrow--next {
    right: 0;
  }

  .work {
    padding-top: 74px;
  }

  .work__visual {
    height: 540px;
    margin-top: 18px;
  }

  .work__visual img {
    width: auto;
    height: 100%;
  }

  .work__visual p {
    top: 29%;
    left: 52%;
    width: 44%;
    font-size: clamp(15px, 4.2vw, 19px);
    line-height: 1.3;
  }

  .work__quote {
    top: 3%;
    left: 64%;
    font-size: 105px;
  }

  .more {
    padding-block: 88px;
  }

  .button {
    min-height: 52px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
