@font-face {
  font-family: "Manrope";
  font-weight: 700;
  font-style: normal;
  src: url("../fonts/Manrope-Bold.ttf");
}

@font-face {
  font-family: "Manrope";
  font-weight: 500;
  font-style: normal;
  src: url("../fonts/Manrope-Medium.ttf");
}

@font-face {
  font-family: "Manrope";
  font-weight: 400;
  font-style: normal;
  src: url("../fonts/Manrope-Regular.ttf");
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", serif;
  font-size: 14px;
  font-weight: 400;
  background: #fafafa;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

.container {
  max-width: 1248px;
  width: 100%;
  padding: 0 24px;
  margin: 0 auto;
}

.products-wrapper {
  margin-top: 52px;
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  justify-content: center;
}

.product-card {
  padding: 24px;
  border-radius: 24px;
  box-shadow: 0px 4px 25px 0px #38839240;
}

.product-card__img {
  height: 200px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__title {
  margin-top: 16px;
  color: #388392;
  font-size: 24px;
  font-weight: 500;
  line-height: 34px;
}

.product-card__descr {
  margin-top: 16px;
  color: #1e1e1e;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
}

.title-container {
  margin-top: 50px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
}

.title-container img {
  width: 100px;
  height: 100px;
}

.main-title {
  color: #1e1e1e;
  font-size: 53px;
  font-weight: 500;
  line-height: 48px;
}

.section-title {
  margin-top: 52px;
  color: #1e1e1e;
  font-size: 42px;
  font-weight: 500;
  text-align: center;
}

.partners {
  margin-top: 36px;
  display: grid;
  gap: 50px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  justify-content: center;
}

.partner-box {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  border-radius: 16px;
  box-shadow: 0px 4px 12px 0px #0000001f;
  background: #ffffff;
  overflow: hidden;
}

.partner-box img {
  max-width: 184px;
  max-height: 56px;
}

.contacts {
  margin-top: 36px;
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
}

.contact-card {
  padding: 24px;
  display: flex;
  gap: 24px;
  border-radius: 24px;
  background: #ffffff;
  transition: box-shadow 0.2s;
}

.contact-card:hover {
  box-shadow: 0px 4px 25px 0px #38839240;
}

.contact-card__img {
  width: 182px;
  height: 182px;
  border-radius: 12px;
  overflow: hidden;
}

.contact-card__img img {
  width: 100%;
  height: 100%;
}

.contact-card__content {
  flex: 1;
}

.contact-card__title {
  color: #1e1e1e;
  font-size: 24px;
  font-weight: 500;
  line-height: 34px;
}

.contact-card__info {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  color: #1e1e1e;
  font-size: 18px;
  font-weight: 400;
  line-height: 26px;
}

.contact-card__info:first-of-type {
  margin-top: 16px;
}

.contact-card__icon {
  color: #388392;
  font-size: 24px;
  padding-top: 1px;
}

/* Privacy page styles  */
.page-privacy {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
}

.page-privacy h1 {
  margin: 0 0 20px 0;
  color: #333333;
  font-size: 30px;
  font-weight: 600;
  line-height: 36px;
  text-align: center;
}

.page-privacy h2 {
  margin: 20px 0;
  color: #555555;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  text-align: center;
}

.page-privacy h3 {
  margin: 8px 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
}

.page-privacy p {
  margin-bottom: 15px;
  font-size: 16px;
}

.page-privacy ul {
  margin: 0;
  padding: 0;
}

.page-privacy li {
  font-size: 16px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 70%;
  display: flex;
  flex-direction: row;
  height: 50%;
  border-radius: 24px;
  box-shadow: 0px 4px 25px 0px #38839240;
  position: relative;
  align-items: center;
}

.modal-left {
  flex: 1;
  padding: 10px;
  display: flex;
  justify-content: center;
}

.modal-left img {
  width: 100%;
  height: auto;
}

.modal-right {
  flex: 1;
  padding: 10px;
  display: flex;
  gap: 20px;
  flex-direction: column;
}

.modal-right h2{
  font-size: 30px;
}

.modal-right p.icon-solar_phone-bold {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-right div a{
  text-decoration: none;
  color: #1e1e1e;
  font-size: 18px;
  font-weight: 400;
}

.modal-right-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}


.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 30px;
  right: 30px;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}


.open-modal {
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.open-modal:hover {
  transform: scale(1.15);
}

.beepul-image {
  width: 90%;
  margin: 0 auto;
}

@media screen and (max-width: 1000px) {
  .modal-content {
    width: 90%;
    margin: 20% auto;
    height: auto;
    flex-direction: column;
    padding: 15px;
  }

  .modal-left img {
    width: 100%;
    height: auto;
  }

  .beepul-image {
    margin: 60px 0;
  }


  .modal-right {
    padding: 10px;
    text-align: center;
    align-items: center;
  }

  .modal-right h2 {
    font-size: 24px;
  }

  .modal-right p.icon-solar_phone-bold {
    justify-content: center;
  }

  .modal-right div a {
    font-size: 16px;
  }

  .modal-right-phone {
    align-items: center;
  }

  .modal-right-phone:last-child {
    margin-bottom: 30px;
  }

  .close {
    top: 15px;
    right: 15px;
    font-size: 24px;
  }
}


@media screen and (max-width: 1024px) {
  .main-title {
    font-size: 40px;
    line-height: 1.2;
  }

  .section-title {
    font-size: 36px;
    line-height: 1.2;
  }
}

@media screen and (max-width: 600px) {
  .title-container img {
    width: 75px;
    height: 75px;
  }

  .main-title {
    font-size: 36px;
    line-height: 1.2;
  }

  .section-title {
    font-size: 30px;
    line-height: 1.2;
  }

  .container {
    padding: 0 16px;
  }

  .contacts {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 470px) {
  .contact-card__img {
    width: 150px;
    height: 150px;
  }
}

@media screen and (max-width: 425px) {
  .contact-card {
    flex-direction: column;
  }

  .contact-card__img {
    width: 125px;
    height: 125px;
  }
}
