@font-face {
    font-family: "Jost-SemiBold"; 
    src: url("../fonts/Jost-SemiBold.ttf") format("truetype"); 
    font-style: normal; 
    font-weight: bold; 
  } 

  @font-face {
    font-family: "Jost-Regular"; 
    src: url("../fonts/Jost-Regular.ttf") format("truetype"); 
    font-style: normal; 
    font-weight: normal; 
  } 

  html {
    scroll-behavior: smooth;
  }

  body {
      font-family: "Jost-Regular";
      width: 100%;
  }

  h1, h2 {
      font-size: 35px;
      font-family: "Jost-SemiBold", sans-serif;
      margin-bottom: 20px;
  }

  h3 {
    font-size: 28px;
    font-family: "Jost-SemiBold", sans-serif;
}

  .text {
      font-size: 28px;
  }

  section {
    margin-bottom: 100px;
    text-align: center;
  }

.header {
    display: flex;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    justify-content: center;
    align-items: center;
    height: 51px;
    margin-bottom: 100px;
    margin-top: 20px;
}

.logo {
    font-family: "Jost-SemiBold", sans-serif;
    font-size: 35px;
    width: 20%;
}

.menu {
    width: 55%;
}

.menu-list {
    display: flex;
    justify-content: space-around;
}

.menu-item {
    font-size: 25px;
}

.menu-link {
    text-decoration: none;
    color: #000000;
}

.menu-link:hover {
    color: #8c9fe3;
}

/*Бургер меню*/
.burger-button, .overlay  {
    display: none;
}

.offer {
    width: 25%;
}

.button {
    height: 50px;
    font-size: 23px;
    color: #ffffff;
    background-color: #8C9FE3;
    border: none;
    border-radius: 10px;
}

.button:hover {
    color: #8c9fe3;
    background-color: #ffffff;
    cursor: pointer;
    border: 1px solid #9EB4FF;
}

.main-image {
    text-align: center;
}

.main-image__picture {
    width: 80%;
    height: 521px;
}

.goods {
    text-align: center;
}

.main-text {
    margin-bottom: 50px;
}

.goods-cards {
    display: flex;
    justify-content: space-around;
}

.good-card {
    width: 25%;
    height: 400px;
    border: 1px solid #767676;
    border-radius: 50px;
    padding: 25px;
}

.card-image {
    width: 100%;
    margin-bottom: 25px;
}

.card-title {
    margin-bottom: 20px;
}

.card-text {
    font-size: 20px;
    margin-bottom: 10px;
}

.cost {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    margin-bottom: 20px;
}

.current-cost, .old-cost {
    font-size: 26px;
}

.current-cost {
    color: #8c9fe3;
} 

.old-cost {
    text-decoration: line-through;
}

.card-button {
    width: 210px;
    height: 35px;
    font-size: 21px;
    background-color: #9EB4FF;
    color: #ffffff;
    border: none;
    border-radius: 10px;
}

.card-button:hover {
    cursor: pointer;
    color: #9EB4FF;
    background-color: #ffffff;
    border: 1px solid #9EB4FF;
}

.slider-container {
    position: relative;
    width: 80%;
    height: 100%;
    margin: 0 auto;
    overflow: hidden;
  }
  
  .slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
  }
  
  /*.slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }*/
  
  .prev-button,
  .next-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: transparent;
    border: none;
    font-size: 24px;
    color: #767676;
  }
  
  .prev-button {
    left: 10px;
  }
  
  .next-button {
    right: 10px;
  }

.reviews {
    text-align: center;
}

.review-title {
    margin-bottom: 20px;
}

.review-card {
    width: 70%;
    margin: 0 auto;
}


.circle-image {
    display: inline-block;
    border-radius: 50%;
    overflow: hidden;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
  }

.review-card__image {
    width:100%;
    height:100%;
    object-fit: cover;
}

.buyer-name {
    font-size: 24px;
    margin-bottom: 15px;
}

.buyer-profession {
    font-size: 20px;
    margin-bottom: 20px;
}

.review-text {
    font-size: 24px;
}

.questions-text {
    margin-bottom: 25px;
}

.form {
    width: 50%;
    height: 400px;
    display: flex;
    margin: 0 auto;
    flex-direction: column;
    border: 1px solid #767676;
    border-radius: 50px;
}

.input {
    width: 80%;
    height: 64px;
    margin: 0 auto;
    margin-top: 30px;
    border-radius: 30px;
    font-size: 28px;
    padding-left: 15px;
}

.form-button {
    margin: 0 auto;
    margin-top: 30px;
    width: 50%;
    height: 35px;
    color: #ffffff;
    background-color: #8C9FE3;
    border: none;
    border-radius: 10px;
    font-size: 21px;
}

.form-button:hover {
    color: #8c9fe3;
    background-color: #ffffff;
    cursor: pointer;
    border: 1px solid #9EB4FF;
}

.contacts {
    width: 100%;
    position: relative;
}

.contact-card {
    position: absolute;
    z-index: 10;
    background-color: #ffffff;
    width: 280px;
    height: 200px;
    top: 230px;
    left: 100px;
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
}

.contacts-text {
    margin-bottom: 50px;
}

.contact-card__title {
    margin-bottom: 20px;
}

.contact-card__addres-first {
    margin-top: 20px;
}

.yandex {
    width: 100%;
}

.footer {
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    text-align: center;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.footer-menu__item {
    margin-bottom: 15px;
}

.footer-menu__link {
    text-decoration: none;
    color: #767676;
    font-size: 25px;
}

.footer-menu__link:hover {
    color: #8c9fe3;
    cursor: pointer;
}

.phone, .footer-email {
    color: #8c9fe3;
    margin-bottom: 15px;
    font-size: 25px;
}

.footer-email {
    text-decoration: none;
}

/*1600 пикселей — для компьютеров;
960 пикселей — для планшетов; 
375 пикселей — для телефонов. */

@media (max-width: 960px){
    h1, h2 {
        font-size: 30px;
    }
  
    h3 {
      font-size: 24px;
    }

    .text {
        font-size: 24px;
    }

    .menu-item {
        font-size: 20px;
    }

    .nav-link:hover {
        color: #8c9fe3;
    }

    .burger-button, .overlay {
        display: none;
    }

    .logo {
        font-size: 30px;
    }

    .button {
        font-size: 18px;
    }

    .main-image__picture {
        height: 100%;
    }

    .good-card {
        width: 25%;
        height: 100%;
        padding-bottom: 30px;
        border-radius: 20px;
    }

    .form-button {
        width: 50%;
    }

    .card-title {
        font-size: 20px;
    }

    .card-text {
        font-size: 14px;
    }

    .form {
        width: 90%;
    }

    .contact-card {
        top: 210px;
        height: 200px;
        width: 200px;
    }

    .footer-menu__link {
        font-size: 20px;
    }
    
    .phone, .footer-email {
        font-size: 20px;
    }

    .footer-icons img {
        width: 50px;
    }
}
    @media (max-width: 768px) {
        .header {
            justify-content: start;
        }

        .logo {
            width: 90%;
            display: flex;
            justify-content: start;
            margin-left: 15px;
        }

        .menu {
            display: none;
        }

        .burger-button {
            display: block;
        }

        .offer {
            display: none;
        }

        .overlay {
            display: block;
            height: 100%;
            width: 0;
            position: fixed;
            z-index: 1;
            top: 0;
            left: 0;
            background-color: rgb(0,0,0);
            background-color: rgba(0,0,0, 0.9);
            overflow-x: hidden;
            transition: 0.5s;
        }
        
        .overlay-content {
            position: relative;
            top: 25%;
            width: 100%;
            text-align: center;
            margin-top: 30px;
        }
        
        .overlay a {
            padding: 8px;
            text-decoration: none;
            font-size: 36px;
            color: #818181;
            display: block;
            transition: 0.3s;
        }
        
        .overlay a:hover, .overlay a:focus {
            color: #f1f1f1;
        }
        
        .overlay .closebtn {
            position: absolute;
            top: 20px;
            right: 45px;
            font-size: 60px;
        }

        .overlay a {font-size: 20px}
        .overlay .closebtn {
            font-size: 40px;
            top: 15px;
            right: 35px;
        }

        .main-image__picture {
            height: 100%;
        }

        .goods-cards {
            display: block;
        }

        .good-card {
            width: 90%;
            height: 100%;
            margin: 0 auto;
            margin-bottom: 30px;
        }

        .card-title {
            font-size: 30px;
        }

        .card-text {
            font-size: 24px;
        }

        .form {
            margin: 0 auto;
            width: 90%;
            height: 100%;
            padding-bottom: 25px;
        }

        .input {
            font-size: 20px;
        }

        .contact-card {
            display: none;
        }

        .footer .logo {
            width: 25%;
            font-size: 25px;
        }

        .footer-menu__link {
            font-size: 20px;
        }
        
        .phone, .footer-email {
            font-size: 20px;
        }
        
        .footer-icons img {
            width: 50px;
        }
    }

    @media (max-width: 376px) {
        .header {
            justify-content: start;
        }

        .logo {
            width: 90%;
            display: flex;
            justify-content: start;
            margin-left: 15px;
        }

        .menu {
            display: none;
        }

        .burger-button {
            display: block;
        }

        .offer {
            display: none;
        }

        .overlay {
            display: block;
            height: 100%;
            width: 0;
            position: fixed;
            z-index: 1;
            top: 0;
            left: 0;
            background-color: rgb(0,0,0);
            background-color: rgba(0,0,0, 0.9);
            overflow-x: hidden;
            transition: 0.5s;
        }
        
        .overlay-content {
            position: relative;
            top: 25%;
            width: 100%;
            text-align: center;
            margin-top: 30px;
        }
        
        .overlay a {
            padding: 8px;
            text-decoration: none;
            font-size: 36px;
            color: #818181;
            display: block;
            transition: 0.3s;
        }
        
        .overlay a:hover, .overlay a:focus {
            color: #f1f1f1;
        }
        
        .overlay .closebtn {
            position: absolute;
            top: 20px;
            right: 45px;
            font-size: 60px;
        }

        .overlay a {font-size: 20px}
        .overlay .closebtn {
            font-size: 40px;
            top: 15px;
            right: 35px;
        }

        .main-image__picture {
            height: 100%;
        }

        .goods-cards {
            display: block;
            width: 100%;
        }

        .good-card {
            width: 80%;
            height: 100%;
            margin: 0 auto;
            margin-bottom: 30px;
        }

        .card-title {
            font-size: 24px;
        }

        .card-text {
            font-size: 20px;
        }

        .slider-container {
            width: 95%;
          }

        .review-text {
            font-size: 16px;
        }

        .form {
            margin: 0 auto;
            width: 90%;
            height: 100%;
            padding-bottom: 25px;
        }

        .input {
            font-size: 16px;
        }

        .contact-card {
            display: none;
        }

        .footer .logo {
            width: 25%;
            font-size: 14px;
        }

        .footer-menu__link {
            font-size: 12px;
        }
        
        .phone, .footer-email {
            font-size: 12px;
        }
        
        .footer-icons img {
            width: 30px;
        }
    }
