@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap");
* {
  box-sizing: border-box;
}
body {
  font-family: Roboto;
}
.container {
  max-width: 1196px;
  margin: auto;
}
.header {
  display: flex;
  align-items: center;
  padding: 10px 0px;
}
.search-form {
  margin-left: 76px;
  background: rgba(238, 238, 238, 0.71);
  border-radius: 10px;
  display: flex;
  max-width: 620px;
  flex-grow: 1;
  position: relative;
}
.search-input {
  background-color: transparent;
  border: none;
  width: 100%;
  padding: 13px 20px;
  outline: none;
  /* outline-color: #f47322; */
}
.search-button {
  background-color: transparent;
  border: none;
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  padding: 13px 18px;
  cursor: pointer;
}
.auth {
  margin-left: auto;
}
.login {
  background: #ebebeb;
  border-radius: 50px;
  padding: 16px 30px;
  font-family: Roboto;
  font-weight: 400;
  font-size: 14px;
  line-height: 16px;
  color: #000000;
  text-decoration: none;
  display: block;
  transition: 0.2s ease all;
}
.login:hover,
.login:active {
  transition: 0.2s ease all;
  color: #fff;
  background: #f47322;
  font-weight: 600;
}
.chopping-cart {
  position: relative;
  text-decoration: none;
  width: 49px;
  height: 49px;
  border-radius: 50%;
  background-color: #f66a15;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 30px;
  transition: 0.2s ease all;
}
.shopping-counter {
  background-color: #ffaf19;
  padding: 5px;
  border-radius: 50%;
  font-size: 8px;
  line-height: 9px;
  color: #000000;
  display: block;
  position: absolute;
  right: 0;
  bottom: 0;
}
.chopping-cart:hover,
.chopping-cart:active {
  background-color: #ffaf19;
  transition: 0.2s ease all;
}
.chopping-cart:hover .shopping-counter {
  background-color: #f66a15;
  color: #fff;
  transition: 0.2s ease all;
}

.slide {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  max-height: 400px;
  display: flex;
  align-items: center;
  padding: 100px;
}
.slide-text-light {
  background-color: gray;
  color: white;
}
.slide-content {
  position: relative;
  max-width: 500px;
}
.swiper {
  position: relative;
}
.slider-buttons {
  position: absolute;
  right: 46px;
  bottom: 40px;
  z-index: 9;
  display: flex;
  align-items: center;
  /* gap: 17px; */
  width: 100px;
  justify-content: space-between;
}
.slider-button {
  cursor: pointer;
}
.slide-title {
  margin-top: 0;
  margin-top: 15px;
  font-weight: bold;
  font-size: 50px;
  line-height: 51px;
}
.slide-text {
  font-weight: bold;
  font-size: 16px;
  line-height: 23px;
}
.button-primary {
  background: #f47322;
  color: #fff;
  transition: 0.3s ease all;
}
.button-primary:hover,
.button-primary:active {
  background: #ffaf19;
  color: #fff;
  font-weight: 500;
  transition: 0.3s ease all;
}
.button-default {
  background-color: #fff;
  color: #5f5f61;
  transition: 0.3s ease all;
}
.button-default:hover,
.button-default:active {
  background-color: #ffaf19;
  font-weight: 500;
  color: #fff;
  transition: 0.3s ease all;
}
.button {
  border-radius: 25px;
  padding: 12px 50px;
  display: inline-block;
  text-decoration: none;
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 23px;
}
.slide-summer {
  background-image: url("../img/summer.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right center;
}
.slide-autumn {
  background-image: url("../img/autumn.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right center;
}
.slide-vitamins {
  background-image: url("../img/vitamins.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right center;
}

.slide::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.43) 40.45%,
    rgba(0, 0, 0, 0) 100%
  );
}
.promo {
  padding-top: 50px;
  padding-bottom: 50px;
  display: flex;
  justify-content: space-between;
  margin: -27px;
}
.card {
  flex: 50%;
  gap: 54px;
  margin: 27px; /* Добавляем отступы со всех сторон от карточек (в т.ч и с внешней, но эту проблему решает margin: -27px; в родительском блоке promo) */
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  padding: 32px;
  max-width: 570px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
}
.card::before {
  z-index: -1;
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
}
.card-text-light {
  color: #fff;
}
.card-title {
  font-weight: 500;
  font-size: 24px;
  line-height: 23px;
  margin-top: 4px;
  margin-bottom: 21px;
}
.card-description {
  font-weight: 500;
  font-size: 16px;
  line-height: 23px;
  max-width: 200px;
}
.card-price {
  display: block;
  font-style: normal;
  font-weight: 500;
  font-size: 24px;
  line-height: 23px;
  margin-bottom: 8px;
}
.card-delivery {
  display: block;
  font-weight: 500;
  font-size: 16px;
  line-height: 23px;
  margin-bottom: 25px;
}
/* .sweet-basket {
    background-image: url('../img/sweet-basket.png');
    background-repeat: no-repeat;
    background-size: cover;
} */
.card-image {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  object-fit: cover;
}
.section-title {
  font-weight: 500;
  font-size: 32px;
  line-height: 23px;
  color: #000000;
  margin-top: 0;
  margin-bottom: 47px;
}
.delivery-week {
  padding: 100px 0;
}
.delivery-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: -15px;
}
.delivery-card {
  position: relative;
  width: 275px;
  height: 182px;
  border-radius: 18px;
  overflow: hidden;
  margin: 15px;
}

.delivery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s ease all;
}
.delivery-image:hover {
filter: brightness(1.5);
filter: contrast(1.2);
transition: 0.4s ease all;
}
.delivery-tag {
  position: absolute;
  left: 10px;
  top: 16px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 20px;
  line-height: 23px;
  padding: 5px 10px;
}
.tag-light {
  color: #ffffff;
}
.tag-dark {
  color: #49494f;
}
.tag-health {
  background-color: #d0fd89;
}
.tag-veg {
  background-color: #aebc41;
}
.tag-meet {
  background-color: #b86b78;
}
.tag-bird {
  background-color: #d68334;
}
.tag-fish {
  background-color: #cd6255;
}
.tag-child {
  background-color: #fffdbf;
}
.tag-parents {
  background-color: #f6fdc8;
}
.tag-holiday {
  background-color: #fef7fe;
}
.section-gray {
  background-color: #f6f6f6;
}
.categories {
  margin: 0;
}
.category {
  padding-top: 40px;
  padding-bottom: 60px;
}
.tabs {
  display: flex;
  margin-top: 50px;
  margin-bottom: 62px;
  padding-left: 0;
}
.tabs-item {
  list-style-type: none;
  margin-right: 58px;
}
.tabs-item:last-child {
  margin-right: 0;
}
.menu-item_btn {
  margin: 0;
  text-decoration: none;
  font-weight: normal;
  font-size: 20px;
  line-height: 23px;
  color: #49494f;
  background-color: transparent;
  border: 0;
  transition: 0.3s ease all;
}
.menu-item_btn:hover {
  color: #f37321;
  transition: 0.3s ease all;
  cursor: pointer;
}
.menu-item_btn_active {
  color: #f37321;
}
.tabs-content {
  display: flex;
  justify-content: space-between;
  /* flex-wrap: wrap; */
  margin: -17px;
}
.tabs-card {
  width: 270px;
  max-width: 270px;
  border-radius: 20px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0px 4px 40px rgba(0, 0, 0, 0.1);
  margin: 17px;
  }
.tabs-image {
  max-width: 100%;
  height: 192px;
}
.tabs-card-content {
  padding: 23px;
}
.tabs-title {
  margin-top: 0;
  margin-bottom: 13px;
  font-weight: 500;
  font-size: 20px;
  line-height: 23px;
  color: #000000;
}
.tabs-description {
  font-weight: 500;
  font-size: 14px;
  line-height: 23px;
  color: #b9b9be;
}
.tabs-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tabs-price {
  display: block;
  font-weight: 500;
  font-size: 23px;
  line-height: 23px;
  color: #4b4b51;
  margin-bottom: 5px;
}
.tabs-weight {
  font-weight: 500;
  font-size: 17px;
  line-height: 20px;
  color: #aaaab1;
}
.button-outline {
  cursor: pointer;
  padding: 15px 25px;
  font-weight: 500;
  font-size: 16px;
  line-height: 19px;
  color: #f37321;
  background-color: transparent;
  border: 2px solid #f37321;
  border-radius: 33px;
  box-sizing: border-box;
  transition: 0.3s ease all;
}
.button-outline:hover {
  color: #fff;
  background-color: #f37321;
  transition: 0.3s ease all;
}
.button-center {
  display: block;
  margin: 61px auto 0;
  padding-left: 105px;
  padding-right: 105px;
}
.footer {
  padding: 40px 0;
  background-color: #f6f6f6;
}
.footer-wrapper {
  display: flex;
  align-items: center;
}
.footer-logo {
  margin-right: 50px;
}
.footer-link {
  margin-right: 50px;
  font-weight: normal;
  font-size: 16px;
  line-height: 23px;
  text-decoration-line: underline;
  color: #000000;
  transition: 0.3s ease all;
}
.footer-link:hover,
.footer-link:active {
  color: #f37321;
  transition: 0.3s ease all;
}
.social-links {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.social-link {
  margin-left: 20px;
  text-decoration: none;
}
.advantages {
  padding: 100px 0 202px 0;
}
.advantages-title {
  padding-top: 0;
  padding-bottom: 0;
  font-weight: 500;
  font-size: 32px;
  line-height: 23px;
  color: #000000;
  margin-bottom: 52px;
}
.advantages-wrapper {
  display: flex;
  justify-content: space-between;
  /* flex-wrap: wrap; */
  margin: -17px;
}
.advantage-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 270px;
  border-radius: 18px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0px 4px 40px rgba(0, 0, 0, 0.1);
  padding: 30px 23px 25px 23px;
  text-align: center;
  margin: 17px;
  transition: 0.3s ease all;
  position: relative;
}

.advantage-card:hover {
  background-color: #f37321;
  color: #fff;
  transition: 0.3s ease all;
}
.advantage-icon_first,
.advantage-icon_second {
  position: absolute;
  transition: all 0.3s ease;
}
.advantage-icon_second {
  /* вторая картинка полностью прозрачная */
  opacity: 0;
  filter: alpha (opacity=0);
}
.advantage-card:hover .advantage-icon_second {
  /* при наведении курсора вторая картинка становится не прозрачной */
  opacity: 1;
  filter: alpha (opacity=100);
  -moz-transition: all 0.2s ease;
  -webkit-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.advantage-card:hover .advantage-icon_first,
.advantage-card .advantage-icon_first:hover,
.advantage-card .advantage-icon_first:active {
  /* а первая при наведении курсора становится прозрачной */
  opacity: 0;
  filter: alpha (opacity=0);
  -moz-transition: all 0.2s ease;
  -webkit-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.advantage-title {
  margin-top: 80px;
}

@media (max-width: 1260px) {
  .container {
    max-width: 960px;
  }
  .search-form {
    margin-left: 40px;
    margin-right: 40px;
  }
  .tabs-content {
    flex-wrap: wrap;
  }
  .tabs-card {
    flex: 50%;
    max-width: calc(50% - 35px);
  }
  .advantages-wrapper {
    flex-wrap: wrap;
  }
}
@media (max-width: 992px) {
  .container {
    max-width: 750px;
  }
  .slide {
    padding: 70px;
  }
  .delivery-card {
    width: calc(50% - 35px);
  }
  .footer-logo {
    margin-right: 40px;
  }
  .advantage-card {
    flex: 50%;
    max-width: calc(50% - 35px);
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 560px;
  }
  .header {
    flex-wrap: wrap;
  }
  .search-form {
    order: 5;
    margin-left: 0;
    margin-right: 0;
    margin-top: 15px;
    margin-bottom: 15px;
    width: 100%;
  }
  .promo {
    flex-wrap: wrap;
  }
}
@media (max-width: 576px) {
  .container {
    max-width: 90%;
  }
  .tabs-card {
    max-width: 100%;
  }
  .advantage-card {
    max-width: 100%;
  }
  .footer-wrapper {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .footer-nav {
    display: flex;
    flex-direction: column;
  }
  .footer-link {
    margin-top: 10px;
    margin-bottom: 10px;
  }
  .social-links {
    margin: 20px auto;
  }
}
@media (max-width: 514px) { 
  .slider-buttons {
      bottom: 27px;
  }
}

.hidden {
  display: none;
}
