@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-black: #212222;
  --color-gray: #6D6A63;
  --color-white: #FFFFFF;
  --color-blue: #00499E;
  --color-accent-black: #252525;
  --color-accent-green: #89c85c;
  --color-beg: #FDF8F4;

  --color-menu-hover: #FCC101;
  --color-cookies-hover: #71A34D;

  --color-section: #D2E5FA;

  --color-legal-link: #0040FF;

  --color-secondary-yellow: #FFB727;
	--color-secondary-green: #39CE68;
	--color-secondary-red: #ff6A4A;
	--color-secondary-azure: #00B8AA;

  --font-family: 'Poppins', sans-serif;

  --container-width: 1440px;
  --container-padding-x: clamp(1rem, -0.056rem + 4.507vw, 4rem);
  --container-padding-y: clamp(4rem, 3.648rem + 1.502vw, 5rem);

  --container-padding-legal-x: clamp(1rem, -3.313rem + 18.404vw, 13.25rem);

  --border-radius: 12px;
  --border-radius-medium: 26px;
  --border-radius-big: 36px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;

  --liner-gradient: linear-gradient(180deg, #5aa6c7 0%, #1b0ed3 100%);
}

body {
  font-family: var(--font-family);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

section {
  scroll-margin-top: 70px;
}

main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding-inline: var(--container-padding-x);
}

.section-padding-y {
  padding-block: var(--container-padding-y);
}

.bg-gradient {
  background: var(--liner-gradient);
  border-radius: var(--border-radius-big);
}

.bg-color {
  background-color: var(--color-section);
}

.title-size {
  font-size: clamp(2.625rem, 1.965rem + 2.817vw, 4.5rem);
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--color-white);
}

.title-gradient {
  background: var(--liner-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: var(--color-blue);
}

.header__menu {
  display: flex;
  justify-content: space-between;
  padding-block: clamp(0.375rem, 0.155rem + 0.939vw, 1rem);
  padding-inline: var(--container-padding-x);
}

.header__logo {
  width: 40px;
  height: 40px;
  transition: transform var(--transition-normal), filter var(--transition-normal);
}

.header__logo:hover {
  transform: scale(1.1);
  filter: brightness(1.1); 
}

.header__menu-list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: calc(100dvh - 100%);

  overflow-y: auto;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;

  z-index: 90;
}

.header__menu-list.active {
  visibility: visible;  
  opacity: 1;
  background-color: var(--color-blue);
}

.header__menu-link {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  padding: 4px 8px;
  color: var(--color-white);
  text-decoration: none;
  transition: color var(--transition-normal), transform var(--transition-fast);
}

.header__menu-link:hover {
  color: var(--color-menu-hover);
  transform: scale(1.05);
}

.header__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;

  width: 44px;
  height: 44px;

  background: none;
  border: none;
  padding: 0;
  position: relative;
}

.header__burger-line {
  display: block;
  width: 30px;
  height: 4px;
  background-color: var(--color-white);
  transition: transform 0.3s, opacity 0.3s;
}

.header__burger.active .header__burger-line:nth-child(2) {
  opacity: 0;
}

.header__burger.active .header__burger-line:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.header__burger.active .header__burger-line:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.hero {
  background: url('../image/hero/bg-hero.png') left / cover no-repeat;
  padding-top: clamp(9.5rem, 10.16rem + -2.817vw, 7.625rem);
  padding-bottom: clamp(2.75rem, 1.386rem + 5.822vw, 6.625rem);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  row-gap: 25px;
}

.hero__description {
  font-weight: 900;
  font-size: 24px;
  line-height: 1.1;
  max-width: 848px;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  color: var(--color-white);
}

.hero__button {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.4;
  padding: 16px 101px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-accent-black);
  border-radius: var(--border-radius);
  background-color: var(--color-accent-green);
  transition: background-color var(--transition-normal), transform var(--transition-fast);
}

.hero__button:hover {
  background-color: var(--color-cookies-hover);
  transform: scale(1.05);
}

.about {
  padding-top: clamp(5rem, 4.12rem + 3.756vw, 7.5rem);
  padding-bottom: clamp(4rem, 3.648rem + 1.502vw, 5rem);
}

.about__intro,
.about__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about__media--preview {
  order: 2;
}

.about__description {
  font-weight: 500;
  font-size: clamp(1.5rem, 1.412rem + 0.376vw, 1.75rem);
  line-height: 1.4;
  color: var(--color-black);
  margin-block: 16px 40px;
}

.about__bottom {
  gap: 40px;
  margin-top: clamp(1.5rem, 1.148rem + 1.502vw, 2.5rem);
}

.about__media--logo {
  border: 1px solid #939393;
  border-radius: var(--border-radius-big);
  order: 3;
}

.about__content {
  display: flex;
  flex-direction: column;
  row-gap: 16px ;
}

.about__text {
  font-size: 20px;
  line-height: 1.4;
  color: var(--color-gray);
}

.feature__inner {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.feature__cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-block: 40px;
}

.feature__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 16px;

  width: 236px;
  height: 264px;
  row-gap: 24px;
}

.feature__card:last-child .feature__card-text {
  padding-inline: 26px;
}

.feature__card-text {
  font-size: 20px;
  line-height: 1.4;
  color: var(--color-white);
}

.feature__description {
  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--color-white);
}

.ocean__title {
  text-align: center;
}

.ocean__description {
  font-weight: 400;
  font-size: clamp(1rem, 0.912rem + 0.376vw, 1.25rem);
  line-height: 1.4;
  text-align: center;
  margin-top: 16px;
  margin-bottom: clamp(3rem, 2.648rem + 1.502vw, 4rem);
}

.ocean__cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 1.324rem + 0.751vw, 2rem);
}

.ocean__card {
  position: relative;
  border-radius: var(--border-radius-big);
  overflow: hidden;
}

.ocean__card-image {
  height: 400px;
}

.ocean__card-footer {
  position: absolute;
  bottom: 0px;
  left: 0;
  right: 0;
  
  padding: 24px;
  text-align: center;
}

.ocean__card-title {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.4;
  color: var(--color-white);
}

.ocean__card:nth-child(1) .ocean__card-footer {
  background-color: var(--color-secondary-yellow);
}

.ocean__card:nth-child(2) .ocean__card-footer {
  background-color: var(--color-secondary-green);
}

.ocean__card:nth-child(3) .ocean__card-footer {
  background-color: var(--color-secondary-red);
}

.ocean__card:nth-child(4) .ocean__card-footer {
  background-color: var(--color-secondary-azure);
}

.bg-gradient-gallery {
  background: var(--liner-gradient);
  border-radius: var(--border-radius-big);
}

.gallery__inner {
  display: flex;
  flex-direction: column;
  text-align: center;
  row-gap: clamp(3rem, 2.648rem + 1.502vw, 4rem);
}

.gallery__swiper {
  overflow: hidden;
}

.gallery__list {
  display: flex;
  flex-direction: row;
}

.gallery__item {
  flex-shrink: 0;
}

.player__title {
  text-align: center;
  margin-bottom: clamp(3rem, 2.648rem + 1.502vw, 4rem);
}

.player__cards {
  display: grid;
  justify-items: center;
  grid-template-columns: repeat(1, 1fr);
  row-gap: 16px;
}

.player__card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;

  width: 100%;
  max-width: 506px;
  min-height: 124px;

  border: 2px solid #C8C8C8;
  border-radius: var(--border-radius);
  padding: 20px 16px;
  background-color: var(--color-white);
}

.player__card:nth-child(3) {
  margin-bottom: 16px;
}

.player__card-title {
  font-size: 20px;
  line-height: 1.4;
}

.contact__inner {
  background: url('../image/contact/contact-bg.png') center / cover no-repeat;
  border-radius: var(--border-radius-big);
  height: 500px;

  display: flex;
  flex-direction: column;
  justify-content: center;  
  align-items: center;
}

.contact__image {
  margin-bottom: 32px;
}

.contact__info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact__description {
  margin-block: 8px 32px;
  font-size: clamp(1rem, 0.912rem + 0.376vw, 1.25rem);
  line-height: 1.4;
  color: var(--color-white);
}

.contact__button {
  border: 2px solid #C8C8C8;
  border-radius: var(--border-radius);
  padding: 12px 43px;

  background-color: var(--color-secondary-red);
  color: var(--color-white);
  column-gap: 10px;
  transition: transform var(--transition-fast);
}

.contact__button:hover {
  transform: scale(1.05);
}

.footer {
  background-color: var(--color-blue);
}

.footer__wrapper {
  display: flex;
  flex-direction: column;
  text-align: center;
  row-gap: clamp(2rem, 1.384rem + 2.629vw, 3.75rem);

  padding-inline: 16px;
  padding-block: 60px;

  margin: 0 auto;
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  row-gap: 16px;
}


.footer__nav-link,
.footer__copyright-text {
  font-size: clamp(1rem, 0.912rem + 0.376vw, 1.25rem);
  line-height: 1.4;
  color: var(--color-white);
  text-decoration: none;
}

.cookies-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  width: 95%;
  max-width: 1440px;
  background-color: var(--color-white);
  z-index: 110;
  box-shadow: var(--box-shadow);
}

.cookies-popup--show {
  transform: translateX(-50%) translateY(0);
}

.cookies-popup__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px 16px;
}

.cookies-popup__text {
  font-size: 18px;
  line-height: 1.4;
  text-align: center;
  color: var(--color-black);
}

.cookies-popup__actions {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cookies-popup__btn {
  display: block;
  width: 100%;

  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  padding: 16px 32px;
}

.cookies-popup__btn--accept {
  border-radius: var(--border-radius);
  border: none;
  background-color: var(--color-accent-green);
  transition: background-color var(--transition-normal);
}

.cookies-popup__btn--accept:hover {
  background-color: var(--color-cookies-hover);
}

.cookies-popup__btn--reject {
  border-radius: var(--border-radius);
  border: 1px solid var(--color-black);
  background-color: transparent;
  color: var(--color-black);
  transition: background-color var(--transition-normal);
}

.cookies-popup__btn--reject:hover {
  color: var(--color-white);
  background-color: var(--color-black);
}

@media (min-width: 768px) {
  .header__burger {
    display: none;
  }

  .header__menu-list {
    position: static;
    width: auto;
    height: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    flex-direction: row;
    padding: 0;
    overflow: visible;
  }

  .footer__nav-list {
    flex-direction: row;
    column-gap: 60px;
  }

  .cookies-popup__inner {
    flex-direction: row;
  }

  .cookies-popup__actions {
    flex-direction: row;
  }
  
  .cookies-popup__text {
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .about__intro {
    flex-direction: row;
    column-gap: clamp(3.75rem, -11.635rem + 24.038vw, 10rem);
  }

  .about__media--preview {
    order: 0;
    flex-shrink: 0;
  }

  .about__description {
    margin-block: 0;
    margin-top: 16px;
  }

  .about__bottom {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .about__media--board {
    flex-shrink: 0;
    margin-bottom: auto;
  }

  .about__media--logo {
    order: 0;
    flex-shrink: 0;
  }

  .player__cards {
    grid-template-columns: repeat(2, 506px);
    justify-content: center;
    column-gap: 32px;
  }

  .player__card:nth-child(3) {
    margin-bottom: 0;
  }

  .footer__nav-list {
    justify-content: end;
    margin-right: 88px;
  }

  .cookies-popup__inner {
    column-gap: 64px;
    padding-inline: 88px;
  }

  .cookies-popup__btn--accept {
    background-color: #ffD04E;
  }
}

@media (min-width: 1440px) {
  .about__media--preview {
    margin-top: auto;
  }

  .about__bottom {
    flex-wrap: nowrap;
  }

  .contact {
    padding-bottom: 120px;
  }
}