@import url('https://fonts.cdnfonts.com/css/roboto');
@import url('https://fonts.cdnfonts.com/css/bebas-neue');


:root {
  --font-family: "Bebas Neue", sans-serif;
  --second-family: "Roboto", sans-serif;
  --color-primary: #fafaf5;
  --color-secondary: #ffd479;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

a {
  color: #fafaf5;
}

body {
  background: #1f2a32;
  font-family: var(--second-family);
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 300;
}

.container {
  max-width: 1200px;
  width: 100%;

  margin: 0 auto;
  padding: 0 15px;
}

/* Header */

.header {
  height: 750px;
  padding-top: 30px;
  background-image: image-set(url(../img/hero/hero-bg.jpg) 1x,
      url(../img/hero/hero-bg@2x.jpg) 2x);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

}

.header__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}

.menu-list a {
  font-family: var(--font-family);
  font-weight: 700;
  letter-spacing: 0.19em;
  text-align: right;
  color: var(--color-primary);
  text-transform: uppercase;
  transition: color 0.3s ease-in;
}

.menu-list a:hover {
  color: var(--color-secondary);
}

.hero-img {
  padding-top: 125px;
  text-align: right;
}




/* Trainers Section*/

.section {
  padding: 150px 0
}

.header-text {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  margin-bottom: 50px;
  text-align: center;
}

.title-block {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: clamp(3rem, 1.909rem + 5.45vw, 6rem);
  letter-spacing: 0.08em;
  color: var(--color-secondary);
}

.header-text p {
  line-height: 200%;
}

.section-card-trainer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px 30px;
}

.card-trainer-grid {
  display: inline-block;
  max-width: 268px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.2);
  position: relative;

}

.card-trainer-grid::before {
  opacity: 0;
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 100%);
  transition: all 0.2s ease-in;
}

.card-trainer-name {
  opacity: 0;
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);

  font-family: var(--font-family);
  font-weight: 700;
  font-size: 42px;
  text-align: center;
  color: #fff;

  transition: all 0.2s ease-in;
}

.card-trainer-grid:hover .card-trainer-name {
  opacity: 1;
  top: 50%;
}

.card-trainer-grid:hover::before {
  opacity: 1;
}



/* Beast Section*/

.section-beast {
  background-image: image-set(url(../img/beast-bg.jpg), url(../img/beast-bg@2x.jpg) 2x);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  height: 750px;
  clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);

  display: flex;
  justify-content: center;
  align-items: center;
}

.title-block-beast {
  font-size: clamp(3rem, 2.386rem + 3.07vw, 4.688rem);
  letter-spacing: 0.1em;
  color: var(--color-primary);
  font-family: var(--font-family);
  font-weight: 700;
  text-shadow: 0 4px 7px 0 rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}

.header-text-beast p {
  font-size: 22px;
  color: var(--color-primary);
  line-height: 1.5;
  font-family: var(--second-family);
  font-weight: 300;
  text-shadow: 0 4px 7px 0 rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}


.btn-wrapper {
  background: var(--color-secondary);
  padding: 18px 47px;
  width: 214px;
  transition: background 0.3s ease-in;
  cursor: pointer;
  border-radius: 7px;
}

.btn-wrapper:hover {
  background: #e79d2e;
}

.btn-beast {
  font-family: var(--font-family);
  text-align: center;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.26em;
  line-height: 1;
  color: #000;
}

/* Programs Session */

.section-card-programs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 105px 32px;
}

.card-programs-grid {
  height: 318px;
  transition: all 0.3s ease-in;
}

.card-programs-grid:hover {
  transform: translateY(-10px);
}

.card-programs-name {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 43px;
  letter-spacing: 0.07em;
  color: var(--color-secondary);

}

.card-programs-img {
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.2);
}




/* Contact Section*/

.section-contact {
  background-image: image-set(url(../img/contact-form-bg.jpg), url(../img/contact-form-bg@2x.jpg) 2x);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 860px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.title-block-contact {
  font-size: clamp(3rem, 2.5rem + 2.5vw, 4.375rem);
  letter-spacing: 0.06em;
  color: var(--color-secondary);
  font-family: var(--font-family);
  font-weight: 700;
  margin-bottom: 40px;
}

.header-text-contact {
  width: 615px;
  padding: 0 15px;
  margin: 0 auto;
  padding-top: 152px;
  padding-bottom: 152px;
}

.form-group {
  display: flex;
  flex-direction: column;
  padding-bottom: 30px;
}

.label {
  font-family: var(--second-family);
}

.input {
  width: 100%;
  padding: 10px 0;
  line-height: 1.5;
  font-weight: 200;
  border-bottom: rgba(255, 255, 255, 0.3) 1px solid;
}

.input::placeholder,
.textarea::placeholder {
  font-family: var(--second-family);
  color: var(--color-primary);
}

.textarea {
  resize: none;
  padding: 10px 0;
  width: 100%;
  height: 162px;
  border-bottom: rgba(255, 255, 255, 0.3) 1px solid;
  line-height: 1.5;
  font-weight: 200;
}

.textarea:focus {
  outline: none;
}

.btn-wrapper-contact {
  background: var(--color-secondary);
  padding: 18px 53px;
  width: 214px;
  transition: background 0.3s ease-in;
  cursor: pointer;
  border-radius: 7px;
}

.btn-wrapper-contact:hover {
  background: #e79d2e;
}

.btn-contact {
  font-family: var(--font-family);
  text-align: center;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.26em;
  line-height: 1;
  color: #000;
}


/* Footer */


.footer {}

.footer-block {
  width: 615px;
  padding: 0 15px;
  margin: 70px 0;
}

.social-icons {
  margin-bottom: 30px;
}

.social-icons img {
  width: 24px;
  height: 24px;
  margin-right: 50px;
  transition: all 0.3s ease-in;
}

.social-icons img:hover {
  transform: scale(1.5);
}

.footer-contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.text {
  font-family: var(--second-family);
  font-weight: 300;
  font-size: 14px;
  line-height: 2;
}




/* Media Queries */

@media screen and (max-width: 1024px) {
  .section-card-trainer {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-card-programs {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-trainer-name {
    font-size: 32px;
  }

  .card-programs-name {
    font-size: 32px;
  }

  .header-text p {
    font-size: 18px;
  }

  .header-text-beast p {
    font-size: 18px;
  }

  .header-text-contact {
    width: 100%;
  }

  .footer-block {
    width: 100%;
  }

  .footer-contact {
    flex-direction: column;
  }

  .social-icons {
    display: flex;
    justify-content: start;
    align-items: start;
  }

  .social-icons img {
    margin-right: 35px;

  }

  .footer-contact {
    flex-direction: column;
    align-items: start;
  }
}

/* @media screen and(max-width: 840px){
  .section-card-programs {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 20px;
  }
  .card-programs-grid {
    height: 250px;
} 
}*/

@media screen and (max-width: 768px) {
  .logo {
    display: none;
  }

  .menu-list {
    width: 100%;
    align-items: center;
    gap: 20px;
  }

  .hero-img {
    padding-top: 125px;
    text-align: center;
  }

  .section-card-trainer {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-trainer-name {
    font-size: 24px;
  }

  .card-programs-name {
    font-size: 24px;
  }

  .header-text p {
    font-size: 16px;
  }

  .header-text-beast p {
    font-size: 16px;
  }

  .header-text-contact {
    width: 100%;
  }

  .footer-block {
    width: 100%;
  }

  .footer-contact {
    flex-direction: column;
  }

  .social-icons {
    display: flex;
    justify-content: start;
    align-items: start;
  }

  .social-icons img {
    margin-right: 35px;

  }

  .footer-contact {
    flex-direction: column;
    align-items: start;
  }

  .card-programs-grid {
    height: 218px;
    transition: all 0.3s ease-in;
  }
}

@media screen and (max-width: 700px) {
  .hero-img {
    text-align: center;
  }

}


@media screen and (min-width: 590px) and (max-width: 690px) {
  .section-card-programs {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 40px;
  }
}

@media screen and (max-width: 580px) {
  .header {
    height: 450px;
  }

  .logo {
    display: none;
  }

  .menu-list {
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 20px;
  }

  .hero-img {
    width: 100%;
    padding-top: 125px;
    text-align: center;
    padding-top: 45px;
  }

  .section {
    padding: 70px 0 30px;
  }

  .card-trainer-grid::before {
    opacity: 1;
  }

  .card-trainer-name {
    opacity: 1;
  }

  .card-programs-grid {
    height: 230px;
  }

  .section-card-programs {
    grid-template-columns: repeat(2, 1fr);
    gap: 80px 32px;
  }

  .social-icons {
    display: flex;
    justify-content: start;
    align-items: start;
  }

  .social-icons img {
    margin-right: 35px;

  }

  .footer-contact {
    flex-direction: column;
    align-items: start;
  }
}

@media screen and (max-width: 380px) {
  .section-card-programs {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px 20px;
  }

  .card-programs-grid {
    height: auto;
  }
}