@font-face {
  font-family: 'Montserrat';
  src: url('assets/fonts/Montserrat-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}

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

@font-face {
  font-family: 'Mulish';
  src: url('assets/fonts/Mulish-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: 'Mulish';
  src: url('assets/fonts/Mulish-Black.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: 'Mulish';
  src: url('assets/fonts/Mulish-ExtraBlack.otf') format('opentype');
  font-weight: 1000;
  font-display: swap;
}

:root {
  --color-ripe-cloudberries: #ff8200; /* Спелая морошка */
  --color-yamal-sun: #fed141; /* Солнце Ямала */
  --color-fire-warmth: #e04e39; /* Тепло огня */
  --color-quiet-dawn: #fcefdf; /* Тихий рассвет */
  --color-morning-fog: #ffffff; /* Утренний туман */
  --color-northern-moss: #13322b; /* Северный мох */
  --color-ice-depth: #002554; /* Глубина льдов */
  --color-polar-night: #000000; /* Полярная ночь */
}

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

body {
  margin: 0;
  background-color: var(--color-quiet-dawn);
  color: var(--color-polar-night);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 22px;
}

h1 {
  font-family: 'Mulish', sans-serif;
  font-weight: 1000;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.86;
}

h2 {
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

h3 {
  font-weight: 600;
  font-size: 30px;
  line-height: 34px;
}

h4 {
  font-weight: 500;
  font-size: 22px;
  line-height: 28px;
}

h5 {
  font-weight: 500;
  font-size: 18px;
  line-height: 22px;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

main {
  padding-top: 32px;
  padding-bottom: 64px;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 24px;
}

.actions__text {
  margin: 0;
  font-weight: 600;
}

.btn {
  padding: 14px 32px;
  border-radius: 999px;
  background-color: var(--color-ripe-cloudberries);
  color: var(--color-morning-fog);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s;
}

.btn:hover,
.btn:focus-visible {
  background-color: var(--color-fire-warmth);
}

.player {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px;
  background-color: var(--color-ice-depth);
}

.player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.player__stub {
  display: none;
}

.player--empty iframe {
  display: none;
}

.player--empty .player__stub {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0;
  padding: 20px;
  color: var(--color-morning-fog);
  font-family: 'Mulish', sans-serif;
  font-weight: 900;
  font-size: clamp(22px, 4vw, 44px);
  text-align: center;
}

.footer {
  padding: 48px 0 32px;
  background-color: var(--color-ice-depth);
  color: var(--color-quiet-dawn);
  font-size: 12px;
  line-height: 16px;
}

.footer a {
  text-decoration: none;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--color-ripe-cloudberries);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-ripe-cloudberries);
}

.footer__logo {
  height: auto;
}

.footer__menu {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
}

.footer__social {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  display: flex;
  gap: 12px;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-ripe-cloudberries);
  transition: background-color 0.2s;
}

.footer__social a:hover,
.footer__social a:focus-visible {
  background-color: var(--color-fire-warmth);
}

.footer__social img {
  width: 20px;
  height: 20px;
}

.footer__bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr;
  gap: 40px;
  padding-top: 32px;
}

.footer__bottom p {
  margin: 0;
}

.footer__bottom .footer__title {
  margin-bottom: 12px;
  color: var(--color-ripe-cloudberries);
  font-weight: 600;
  font-size: 16px;
}

.footer__cities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__legal {
  grid-column: 3;
  grid-row: 1;
  padding-bottom: 56px;
}

.footer__bottom a {
  text-decoration: underline;
  text-decoration-color: var(--color-ripe-cloudberries);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.footer__age {
  grid-column: 3;
  grid-row: 1;
  align-self: end;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 767px) {
  main {
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .banner img {
    height: 180px;
    object-fit: cover;
    object-position: left center;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .player {
    border-radius: 12px;
  }

  .footer__top {
    grid-template-columns: 1fr;
  }

  .footer__social {
    grid-row: auto;
    grid-column: auto;
  }

  .footer__menu {
    flex-direction: column;
  }

  .footer__bottom {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__legal,
  .footer__age {
    grid-column: auto;
    grid-row: auto;
  }

  .footer__legal {
    padding-bottom: 0;
  }
}
