body {
  background: #FAFAFA;
}

html {
  scroll-behavior: smooth;
}

.header {
  position: relative;
  
}

.section-background {
background: linear-gradient(39deg, #84a98c -10.38%, #cad2c5 107.56%);
}

.header::before {
  @media screen and (max-width: 767px) {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    max-width: 767px;
    width: 100%;
    height: 189px;
    background: rgba(250, 251, 253, 0.44);
  }

  @media screen and (max-width: 460px) {
    height: 131px;
  }
}


.container {
  padding: 0 20px;
  margin: 0 auto;

  @media screen and (min-width: 320px) {
    max-width: 320px;
  }

  @media screen and (min-width: 480px) {
    max-width: 480px;
  }

  @media screen and (min-width: 768px) {
    max-width: 1200px;
  }
}

.header-main-info {
  z-index: 3;
}

.first-header {
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  padding: 41px 0 45px 0;

  @media screen and (max-width: 767px) {
    flex-direction: column;
  }

  @media screen and (max-width: 767px) {
    flex-direction: row;
    gap: 20px;
  }
}

.header-logo {
  color: #354f52;
  font-family: "Neutraface Text";
  font-size: 38.044px;
  font-style: normal;
  font-weight: 900;
  line-height: normal;
  text-align: center;
  z-index: 2;

  @media screen and (max-width: 460px) {
    font-size: 28px;
    margin-right: auto;
  }

  @media screen and (max-width: 767px) {
    margin-right: 0;
  }
}

.header-logo:hover {
  color: #2f3e46;
    transition: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

.header-main {
  color: #354f52;
  font-family: "Neutraface Text";
  font-size: 18.044px;
  font-style: normal;
  font-weight: 900;
  line-height: normal;
  text-align: center;
  z-index: 2;
}

/* display: none;
  width: 120px;
  height: 30px;
  margin: 0 auto 30px auto;
  border-radius: 15px;
  background: linear-gradient(270deg, #ff6ec4, #7873f5, #ff6ec4);
  background-size: 600% 600%;
  animation: waveMove 3s linear infinite;
  box-shadow: 0 0 10px #ff6ec4, 0 0 20px #7873f5;
}


@keyframes waveMove {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
} */

.header-phone {
  border-radius: 90px;
  background: #1FAB8A;
  margin-left: 68px;
  box-shadow: 0px 6px 25px 0px rgba(121, 129, 173, 0.45);
  padding: 17px 62px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: #EEF1F6;
  font-family: "Gilroy-Regular";
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 105.5%;

  /* 18.99px */
  @media screen and (max-width: 767px) {
    display: none;
  }

  @media screen and (max-width: 767px) {
    margin-left: 0;
    margin-top: 20px;
  }
}


@keyframes waveMove {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

.header-burger {
  background: none;
  z-index: 3;
  border: none;
  color: #354f52;

  @media screen and (min-width: 767px) {
    display: none;
  }
}

.header-home {
  margin-top: 7px;
}

.second-header-text {
  color: var(--main-black, #2f3e46);
  font-family: "Gilroy-Regular";
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 105.5%;

  /* 18.99px */
  @media screen and (max-width: 460px) {
    font-size: 26px;
  }
}

.second-header-item {
  list-style: none;
  position: relative;
}


.second-header-text::after {
  content: "";
  display: block;
  position: absolute;
  border-radius: 50px;
  width: 100%;
  height: 6px;
  opacity: 0;
  margin-top: 34px;
  background-color: #2f3e46;
  transition: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  @media screen and (max-width: 460px) {
    display: none;
  }

  @media screen and (max-width: 767px) {
    margin-top: 44px;
  }
}

.second-header-item:hover>.second-header-text::after {
  opacity: 1;
  transition: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

.second-header-line {
  color: #2f3e46;
}

.second-header-line:after {
  content: "";
  display: block;
  width: 100%;
  height: 6px;
  border-radius: 1;
  position: absolute;
  margin-top: 34px;
  opacity: 1;
  transition: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}


.second-header-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
}

.down-header {
  background-color: rgba(250, 251, 253, 0.44);
  padding: 41px 0 40px 0;

  @media screen and (max-width: 767px) {
    display: none;
  }
}

.down-header-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero {
  padding-top: 60px;
  padding-bottom: 191px;
}

.hero-img {
  width: 500px;

  @media screen and (max-width: 1200px) {
    width: 350px;
  }

  @media screen and (max-width: 767px) {
    display: none;
  }
}

.hero-title {
  color: var(--main-black, #2f3e46);
  font-family: "Gilroy-Bold";
  font-size: 38px;
  font-style: normal;
  font-weight: 1000;
  line-height: normal;
  text-transform: uppercase;
  margin-bottom: 20px;

  @media screen and (max-width: 460px) {
    width: 250px;
      font-size: 28px;
  }
}

.hero-text {
  color: var(--gray, #2f3e46);
  font-family: "Gilroy-Regular";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  display: flex;
  align-items: center;
  flex-direction: column;

  /* 20.8px */
  @media screen and (max-width: 460px) {
    max-width: 250px;
  }
}

.hero-divide {
  display: flex;
      justify-content: center;

  @media screen and (max-width: 767px) {
    flex-direction: column;
    align-items: center;
  }

  @media screen and (max-width: 460px) {
    max-width: 320px;
  }
}

.products {
  padding-top: 41px;
  padding-bottom: 105px;
  transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.products-search-father {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 25px;
}

.products-search {
  width: 100%;
  padding: 18px 28px;
  border-radius: 90px;
  border: 8px solid #F2F1F8;
  background: transparent;
  color: #8E8E8E;
  font-family: "Gilroy-Regular";
  font-size: 18px;
  font-weight: 600;
  font-style: normal;
  font-weight: 500;
  line-height: 105.5%;
  /* 16.88px */
}

.products-search:hover,
.products-search:focus {
  border: 8px solid #cad2c5;
  color: #cad2c5;
  transition: 550ms cubic-bezier(0.4, 0, 0.2, 1);
}

.products-border {
  width: auto;
  height: 8px;
  background: #F2F1F8;
  margin-bottom: 27px;
}

.products-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;

  @media screen and (max-width: 1200px) {
    flex-wrap: wrap;
  }
}

.products-item {
  color: #8E8E8E;
  position: relative;
  text-align: center;
  font-family: "Gilroy-Regular";
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 105.5%;
  text-decoration: none;
  /* 18.99px */
}

.products-button {
  color: #8E8E8E;
  position: relative;
  text-align: center;
  font-family: "Gilroy-Regular";
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 105.5%;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0px;
}

/* .products-button:hover {
    color: black;
  }

  .products-button::after {
    content: "";
    display: block;
    position: absolute;
    border-radius: 50px;
    width: 100%;
    height: 4px;
    opacity: 0;
    margin-top: 28px;
    background-color: #2196f3;
  }

  .products-item:hover > .products-button::after {
    opacity: 1;
  }

  .products-line {
    color: #2196f3;
  }

  .products-line:after {
    content: "";
    display: block;
    width: 100%;
    height: 4px;
    border-radius: 1;
    position: absolute;
    margin-top: 28px;
    opacity: 1;
  } */

.products-button:before {
  content: "";
  display: block;
  position: absolute;
  border-radius: 50px;
  width: 100%;
  height: 8px;
  opacity: 0;
  margin-top: -35px;
  background-color: #84a98c;
  transition: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

.products-list li:nth-child(3) .products-button:before {
  @media screen and (max-width: 767px) {
    margin-top: -35px;
  }
}

.products-two:before {
  @media screen and (max-width: 767px) {
    margin-top: -92px;
  }

  @media screen and (max-width: 460px) {
    margin-top: -92px;
  }
}

.products-three:before {
  @media screen and (max-width: 767px) {
    margin-top: -92px;
  }

  @media screen and (max-width: 460px) {
    margin-top: -149px;
  }
}

.products-button:hover {
  color: #84a98c;
  transition: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

.products-item:hover>.products-button:before {
  opacity: 1;
  transition: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

.products-line {
  color: #84a98c;
}

.products-products {
  gap: 29px;
  margin-top: 61px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.products-product {
  width: 378px;
  height: 542px;
  border-radius: 15px;
  background: #FFF;

  @media screen and (max-width: 460px) {
    width: 320px;
    height: 507px;
  }
}

.products-block {
    width: 378px;
  height: 387px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F1F1F8;
    @media screen and (max-width: 460px) {
    max-width: 320px;
    height: 320px;
  }
}



.products-img {
  width: 300px;
}

.products-name {
  margin-top: 10px;
  max-width: 320px;
  height: 50px;
  color: #272525;
  font-family: "Gilroy-Bold";
  font-size: 30px;
  font-style: normal;
  font-weight: 600;
  line-height: 105.5%;
  margin-left: 15.91px;
  /* 25.32px */
}

.products-desc {
  width: 223.816px;
  color: #272525;
  font-family: "Gilroy-Regular";
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 105.5%;
  margin-left: 15.91px;
  /* 12.66px */
}

.products-cost {
  color: #52796f;
  font-family: "Gilroy-Bold";
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: 105.5%;
  /* 25.32px */
  width: 189.995px;
  margin-left: 15.91px;
}

.hidden {
  display: none;
}

.pagination {
  gap: 10px;
  transition: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination button {
  width: 40px;
  height: 40px;
  color: #7981AD;
  font-family: "Gilroy-Regular";
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 130%;
  background-color: transparent;
  border: none;
  border-radius: 100%;
  transition: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination button.active {
  width: 40px;
  height: 40px;
  background-color: #7981AD;
  border: none;
  border-radius: 100%;
  color: #FAFAFA;
  font-family: "Gilroy-Regular";
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 130%;
  transition: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  /* 31.2px */
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

#productModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: auto;
  /* ← Додає прокрутку, якщо потрібно */

}

.modal-content {
  max-width: 900px;
  max-height: 687px;
  border-top-left-radius: 25px;
  border-bottom-left-radius: 25px;
  background: #FAFAFA;
  overflow-y: auto;
  box-shadow: 0px 16.057px 20.071px -4.014px rgba(26, 32, 44, 0.10), 0px 8.028px 8.028px -4.014px rgba(26, 32, 44, 0.04);
  position: relative;
  z-index: 999;
  scroll-behavior: smooth;
  box-sizing: border-box;
  margin-left: 10px;

  @media screen and (min-width: 1200px) {
    max-height: 687px;
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
  }

  @media screen and (max-width: 768px) {
    width: 550px;
  }

  @media screen and (max-width: 460px) {
    width: 100%;
    margin-left: 0px;
    height: 100%;
    max-height: none;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
  }

   @media screen and (max-width: 460px) {
    max-width: 320px;
  }
}


.modal-content::-webkit-scrollbar {
  width: 10px;
}

.modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #cad2c5;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: #84a98c;
}

.modal-header {
  position: sticky;
  top: 0;
  background: #FAFAFA;
  /* Щоб кнопка не пропадала при прокрутці */
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  padding: 10px 20px;
}

.modal-content img {
  max-width: 400px;
  width: 100%;
  height: auto;
  margin-bottom: 1em;
  margin: 20px;

  @media screen and (max-width: 767px) {
    margin: 0;
  }
}

#modal-name {
  color: var(--main-black, #272525);
  font-family: "Gilroy-Regular";
  font-size: 36px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;

  @media screen and (max-width: 768px) {
    text-align: center;
  }
}

#modal-description {
  width: 506px;
  color: var(--gray, #454747);
  font-family: "Gilroy-Regular";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  /* 20.8px */
}

.all-info-box {
  display: flex;

  @media screen and (max-width: 768px) {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

.info-box {
  margin-top: 20px;
  margin-left: 20px;
}

#modal-cost {
  color: var(--main-black, #272525);
  font-family: "Gilroy-Regular";
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: 105.5%;
  margin-top: 20px;
  margin-bottom: 10px;

  /* 25.32px */
  @media screen and (max-width: 768px) {
    text-align: center;
  }
}

.close-button {
  position: sticky;
  top: 10px;
  right: 20px;
  font-size: 60px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.modal-buy {
  border-radius: 60px;
  background: #84a98c;
  width: 245px;
  height: 60px;
  flex-shrink: 0;
  color: var(--white, #FFF);
  text-align: center;
  font-family: "Gilroy-Regular";
  font-size: 17px;
  font-style: normal;
  font-weight: 500;
  line-height: 140%;
  /* 23.8px */
  margin-top: 164px;
  margin-right: 40px;
  border: solid 2px #84a98c;

  @media screen and (max-width: 768px) {
    margin: 0px;
  }
}

.modal-buy:hover {
  border: solid 2px #52796f;
  background: none;
  color: #52796f;
  transition: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

.selects {
  padding: 20px 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.ram-select,
.slot-select,
.processor-select,
.power-select,
.ssd-select {
  color: #8E8E8E;
  position: relative;
  text-align: center;
  font-family: "Gilroy-Regular";
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 105.5%;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0px;
}

#rams-select,
#slots-select,
#processors-select,
#powers-select,
#ssds-select {
  width: 400px;
  height: 50px;
  padding: 8px 8px;
  border-radius: 90px;
  border: 8px solid #F2F1F8;
  background: transparent;
  color: #8E8E8E;
  font-family: "Gilroy-Regular";
  font-size: 18px;
  font-weight: 600;
  font-style: normal;
  font-weight: 500;
  line-height: 105.5%;

  @media screen and (max-width: 768px) {
    width: 200px;
  }

}

#rams-select:hover,
#slots-select:hover,
#processors-select:hover,
#powers-select:hover,
#ssds-select:hover {
  border: 8px solid #84a98c;
  color: #84a98c;
  transition: 550ms cubic-bezier(0.4, 0, 0.2, 1);
}

#rams-select:focus,
#slots-select:focus,
#processors-select:focus,
#powers-select:focus,
#ssds-select:focus {
  border: 8px solid #84a98c;
}

.burger-menu {
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 4;
  top: 0;
  left: 0;
  transition: 555ms cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff;
}

.burger {
  width: 100%;
  height: 100%;
  position: absolute;
  transform: translate(-50%, -50%);
  margin: 68px 40px;
  top: 50%;
  left: 50%;
  z-index: 1;
  flex-direction: column;
  display: flex;

  @media screen and (min-width: 768px) {
    display: none;
  }
  }

  .burger-list {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .burger-link {
    color: #354f52;
    font-family: "Gilroy-Regular";
    font-size: 40px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.8px;
  }

  .burger-link-line {
    color: #272525;
    text-align: center;
    font-family: "Gilroy-Regular";
    font-size: 40px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.8px;
  }

  .burger-contact-list {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 66px;
    margin-top: 302px;
  }

  .burger-tel {
    color: #354f52;
    font-family: "Gilroy-Regular";
    font-size: 34px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.68px;
  }

  .burger-address {
    color: #354f52;
    font-family: "Gilroy-Regular";
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.48px;
  }

  .burger-socials-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .burger-socials-list {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }

  .burger-run {
    color: #272525;
    font-family: "Gilroy-Regular";
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 22px;
    /* 122.222% */
    letter-spacing: 0.36px;
  }

  .burger-line {
    width: 1px;
    height: 22px;
    background-color: rgba(33, 33, 33, 0.2);
  }

  .burger-btn {
    background-color: transparent;
    color: #354f52;
    border: none;
    position: fixed;
    top: -50px;
    right: 50px;
  }

  .modal-categories {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }


.modal-category-btn {
    color: var(--main-black, #354f52);
  font-family: "Gilroy-Regular";
  font-size: 30px;
  font-style: normal;
  font-weight: 600;
  line-height: 105.5%;
}

.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.no-scroll {
  overflow: hidden;
}

.is-hidden .menu {
  transform: translate(101%, 0);
}