@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --primary-color: #ffb525;
  --primary-color-dark: #f3ca63e1;
  --text-dark: #333333;
  --text-light: #767268;
  --white: #ffffff;
  --max-width: 1200px;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }
  
.section__container {
    max-width: var(--max-width);
    margin: auto;
    padding: 5rem 1rem;
  }
  
.section__header {
    font-size: 3rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 3.5rem;
  }
  
img {
    display: flex;
    width: 100%;
  }

  a {
    text-decoration: none;
    transition: 0.3s;
  }
  
  html,
  body {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: "Poppins", sans-serif;
  }

  nav {
    position: fixed;
    isolation: isolate;
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    z-index: 9;
  }
  
  .nav__header {
    padding: 0.5rem 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--primary-color);
  }
  
  .nav__logo img {
    max-width: 175px;
  }
  
  .logo-dark {
    display: none;
  }
  
  .nav__menu__btn {
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
  }
  
  .nav__links {
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    padding: 2rem;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
    background-color: var(--primary-color);
    transition: 0.5s;
    z-index: -1;
    transform: translateY(-100%);
  }
  
  .nav__links.open {
    transform: translateY(0);
  }
  
  .nav__links a {
    font-size: 1.1rem;
    font-weight: 500;
    white-space: nowrap;
    color: var(--white);
    transition: 0.3s;
  }

  header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
      url("img/headerbg.jpg");
    background-size: cover;
    background-position: center left;
    background-repeat: no-repeat;
  }
  
  .header__container {
    max-width: 900px;
    padding-block: 8rem 10rem;
    text-align: center;
  }
  
  .header__container h2 {
    margin-bottom: 1rem;
    font-size: 3rem;
    font-weight: 600;
    color: var(--white);
  }


  .about__container {
    display: grid;
    gap: 2rem 1rem;
    overflow: hidden;
  }
  
  .about__image img {
    max-width: 475px;
    margin-inline: auto;
    border-radius: 2rem;
    box-shadow: -30px -30px 0px rgba(0, 0, 0, 0.1);
  }
  
  .about__content .section__description {
    padding-block: 2rem;
  }
  
  .about__grid {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .about__grid h4 {
    font-size: 3rem;
    font-weight: 500;
    color: var(--text-dark);
  }
  
  .about__grid p {
    color: var(--text-light);
  }
  
  .why__container {
    padding-top: 0;
  }

  .why__container .section__header {
    margin-bottom: 4rem;
    text-align: center;
  }

  .why__grid {
    max-width: 1024px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow: hidden;
  }

  .why__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 50px;
  }

  .why__row:nth-child(even) {
    flex-direction: row-reverse;
}

  .why__image img {
    width: 600px;
    height: auto;
    max-width: 100%;
    margin-inline: auto;
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.1));
    border-radius: 8%;
  }

  .why__card {
    text-align: center;
    max-width: 600px;
    width: 100%;
  }

  .why__card h5 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
  }

  .why__card h4 {
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 2.75rem;
  }

  .why__card p {
    color: var(--text-light);
    line-height: 1.75rem;
  }


  .footer {
    background-color: var(--primary-color-dark);
  }
  
  .footer__container {
    display: grid;
    grid-template-columns: 400px repeat(3, 1fr);
    gap: 2rem;
  }
  
  .footer__col h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
  }
  
  .footer__col h3 span {
    color: var(--secondary-color);
  }
  
  .footer__col h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
  }
  
  .footer__col p {
    margin-bottom: 1rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: 0.3s;
  }
  .footer__col a {
    margin-bottom: 1rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: 0.3s;
  }

  .footer__col a:hover {
    color: var(--primary-color);
  }
  
  .footer__col p:hover {
    color: var(--primary-color);
  }
  
  .footer__col i {
    color: var(--primary-color);
  }
  
  .footer__bar {
    background-color: var(--primary-color);
  }
  
  .footer__bar__content {
    max-width: var(--max-width);
    margin: auto;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
  
  .footer__bar__content p {
    font-size: 0.8rem;
    color: var(--white);
  }
  
  .footer__socials {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    color: var(--white);
    cursor: pointer;
  }

  .join {
    background-image: linear-gradient(rgb(0, 0, 0, 0.6), rgb(0, 0, 0, 0.6)),
      url("img/joinus.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 5rem 1rem;
  }
  
  .join__container {
    display: grid;
    grid-template-columns: 800px auto; /* Ширина текста и кнопки */
    align-items: center;
    max-width: var(--max-width);
    margin: auto;
  }
  
  .join__text {
    font-size: 1.2rem;
    line-height: 1.8rem;
    color: var(--white);
  }
  
  .join__btn {
    display: flex;
    justify-content: flex-end; /* Кнопка прижата вправо */
    align-items: center;
  }
  
  .btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    padding: 20px 40px; /* Большой размер кнопки */
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
  }
  
  .btn-primary:hover {
    background-color: var(--primary-color-dark);
  }
  
  @media (max-width: 1024px) {
    .join__container {
      grid-template-columns: 1fr; /* Переключение на одну колонку */
      text-align: center;
    }
  
    .join__text {
      margin-bottom: 2rem;
    }
  
    .join__btn {
      justify-content: center;
    }
  }

  .swiper {
    width: 100%;
    padding-block: 4rem;
    overflow: hidden;
  }
  
  .swiper-wrapper {
    display: flex;
  }
  
  .swiper-slide {
    flex: 0 0 calc(100% / 3); /* По умолчанию 3 отзыва */
    max-width: calc(100% / 3);
    box-sizing: border-box;
    padding: 0 10px;
  }
  .section__description{
    margin-bottom: 30px;
  }
  
  .client__card {
    padding: 2rem 1rem;
    text-align: center;
    background-color: var(--white);
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
  }
  
  .client__card img {
    max-width: 150px;
    margin-inline: auto;
    margin-bottom: 1rem;
    border-radius: 50%;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
  }
  
  .client__card span {
    display: inline-block;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: var(--primary-color);
  }
  
  .client__card p {
    margin-bottom: 2rem;
    color: var(--text-light);
    line-height: 1.5rem;
  }
  
  .client__card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
  }
  
  .client__card h5 {
    font-size: 1rem;
    font-weight: 500;
    font-family: var(--header-font);
    color: var(--text-light);
  }
  
 
  @media (max-width: 1024px) {
    .swiper-slide {
      flex: 0 0 calc(100% / 2); 
      max-width: calc(100% / 2);
    }
  }
  
  @media (max-width: 768px) {
    .swiper-slide {
      flex: 0 0 100%;
      max-width: 100%;
    }

    .footer__bar__content {
        flex-direction: column;
        gap: 1rem;
      }
      .footer__container {
        grid-template-columns: repeat(2, 1fr);
      }
  }
  


  @media (width > 768px) {
    nav {
      position: static;
      padding: 1rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 2rem;
    }
  
    .nav__header {
      padding: 0;
      background-color: transparent;
    }
  
    .nav__logo img {
      max-width: 250px;
    }
  
    .logo {
      display: flex;
    }
  
    .nav__menu__btn {
      display: none;
    }
  
    .nav__links {
      position: static;
      padding: 0;
      flex-direction: row;
      justify-content: flex-end;
      gap: 4rem;
      background-color: transparent;
      transform: none;
    }
  
    .nav__links a {
      color: var(--text-dark);
    }
  
    .nav__links a:hover {
      color: var(--primary-color);
    }
  
    .header__container {
      padding-top: 5rem;
    }

    .about__container {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
      }
    
      .about__content {
        grid-area: 1/1/2/2;
      }
    
      .join__container {
        flex-direction: column;
        text-align: center;
      }
    
      .join__btn {
        margin-top: 1.5rem;
      }

}

@media (max-width: 768px) {
  .why__container {
    padding-top: 1rem; /* Уменьшить отступ сверху */
  }

  .why__container .section__header {
    margin-bottom: 2rem; /* Уменьшить нижний отступ */
    font-size: 1.2rem; /* Уменьшить размер заголовка */
  }

  .why__grid {
    gap: 1rem; /* Уменьшить расстояние между элементами */
  }

  .why__row {
    flex-direction: column; /* Сменить расположение на вертикальное */
    gap: 1rem; /* Уменьшить отступы между элементами */
    margin-top: 1rem; /* Уменьшить отступ сверху */
  }

  .why__image img {
    width: 100%; /* Изображение занимает всю ширину контейнера */
    max-width: 400px; /* Ограничить максимальный размер для небольших экранов */
    margin-inline: auto;
  }

  .why__card {
    text-align: center; /* Текст выровнен по центру */
    max-width: 100%; /* Карточка адаптируется по ширине */
  }

  .why__card h5 {
    font-size: 1rem; /* Уменьшить размер подзаголовка */
    margin-bottom: 0.3rem; /* Уменьшить отступ */
  }

  .why__card h4 {
    font-size: 1.5rem; /* Уменьшить размер заголовка */
    line-height: 2rem; /* Сократить высоту строки */
    margin-bottom: 0.8rem; /* Уменьшить отступ */
  }

  .why__card p {
    font-size: 0.9rem; /* Уменьшить размер текста */
    line-height: 1.5rem; /* Сократить высоту строки для компактности */
  }
}
