:root {
  --accent-colore: #795548;
}

body {
  font-family: "Roboto Slab", sans-serif;
  font-weight: normal;
}
.h1, h1 {
    font-size: calc(1.375rem + 1.5vw);
}

h2 {
  font-size: calc(1.325rem + .9vw);
}
h4 {
  font-size: calc(1.275rem + 0.3vw);
}

.btn-primary{
    border: 0;
    background: var(--accent-colore);
}
.btn-primary:hover{
    background: #795548c7;
}

/* БЭМ: header */
.header {
  position: relative;
}

.header__menu ul {
  font-size: 0.85rem;
}

.header__nav-toggler,
.header__nav-cross {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 20px;
  cursor: pointer;
  position: relative;
}
.header__nav-toggler span,
.header__nav-cross span {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background: black;
}
.header__logo-link {
  display: inline-block;
  width: 95px;
  height: auto;
}
.header__logo-img {
  object-fit: contain;
  filter: invert(1);
}

/* БЭМ: swiper */
.swiper {
  width: 100%;
  height: 100%;
}

.banner__slide {
  text-align: center;
  font-size: 18px;
  background: #444;
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner__slide-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner__swiper {
  height: 500px;
}
.banner__slide-title {
  font-size: clamp(3rem, 1.8rem + 6vw, 6rem);
  color: #fff;
}
.banner__slide-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin: 0 25px;
}
.banner__slide-button {
  background: var(--accent-colore);
}

.services__item-img {
  max-width: 310px;
  width: 100%;
  height: 100%;
    object-fit: cover;
}

.services__item-link {
  margin: 10px auto;
  background-color: var(--accent-colore);
  color: #fff !important;
  padding: 10px 15px;
  border-radius: 25px;
}

.portfolio__item-image {
  padding: 0;
  cursor: pointer;
}
.about {
  background-color: #fff8ef;
}
.specialists__item-img {
  max-height: 350px;
  max-width: 350px;
  height: 100%;
  width: 100%;
  object-fit: cover;
      aspect-ratio: 1 / 1;
}
.contacts {
  background-color: #fff8ef;
}
.partners__item-img {
  max-height: 150px;
  max-width: 150px;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
footer {
  border-top: 1px solid var(--accent-colore);
}
.popup {
  display: block;
  position: fixed;
  bottom: -100%;
  left: 0;
  background: #0c0c0cb5;
  width: 100%;
  height: 100%;
  z-index: 10000;
  opacity: 0;
  transition: opacity ease-in-out 500ms;
}
.popup.active {
  bottom: 0;
  opacity: 1;
}
.popup__form {
  width: 320px;
  padding: 15px;
  gap: 20px;
  display: flex;
  position: absolute;
  bottom: -100%;
  left: 50%;
  background: #f9f9f9;
  flex-direction: column;
  border-radius: 15px;
  box-shadow: 0px 0px 25px 0px #000000;
  transition: all ease-in-out 400ms;
  transform: translate(-50%, 50%);
}
.popup.active .popup__form {
  bottom: 50%;
}

.popup__form form {
  display: flex;
  flex-direction: column;
  padding: 15px;
  gap: 15px;
}
.popup-close {
  display: block;
  position: absolute;
  height: 20px;
  width: 20px;
  right: 5px;
  top: 5px;
}
.popup-close-icon::before {
  content: "";
  top: -8px;
}

.popup-close-icon::after {
  content: "";
  top: 8px;
}
.popup-close .popup-close-icon::after {
  opacity: 0;
}
.popup-close .popup-close-icon::after,
.popup-close .popup-close-icon::before {
  top: 0;
}
.popup-close {
  transform: rotate(-45deg);
}

.popup-close .popup-close-icon::before {
  transform: rotate(90deg);
}
.popup-close-icon,
.popup-close-icon::after,
.popup-close-icon::before {
  display: block;
  position: absolute;
  background-color: #000000;
  height: 1px;
  width: 18px;
  border-radius: 2px;
}
.feedback-form {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 8px;
  background: #f9f9f9;
}
.form-title {
  font-size: 1.5rem;
  text-align: center;
  color: #333;
  margin-bottom: 0;
}

.form-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 5px;
  font-size: 14px;
}

.form-group {
  margin-bottom: 5px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

.feedback-form .submit-btn {
  background: var(--accent-colore);
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
}

@media (max-width: 768px) {
  .header__menu {
    position: fixed;
    opacity: 0.5;
    top: 0;
    left: 0;
    background: white;
    z-index: 1001;
    height: 100vh;
    width: 100%;
    transform: translateX(-100%);
    padding: 10px;
    transition: all ease-in-out 0.3s;
  }
  .header__menu ul {
    flex-direction: column;
  }

  .header__menu .header__nav-cross {
    margin-left: auto;
            margin-bottom: 30px;
  }

  .header__menu.active {
    opacity: 1;
    transform: translateX(0%);
  }

  .header__nav-toggler.open span {
    display: none;
    transition: all ease-in-out 0.3s;
  }
  .header__nav-toggler.open span:first-child,
  .header__nav-toggler.open span:last-child,
  .header__nav-cross span {
    display: block;
    position: absolute;
    top: 50%;
    right: 0;
    transform: rotate(45deg);
  }
  .header__nav-toggler.open span:first-child,
  .header__nav-cross span:first-child {
    transform: rotate(-45deg);
  }
  .banner__swiper {
    height: 350px;
  }
}
@media (max-width: 450px) {
    .services__item-link {
            font-size: 0.85rem;
            padding: 10px 10px;
}

}
@media (max-width: 380px) {
    .services__item-link {
            font-size: 0.65rem;
            padding: 10px 10px;
}

}
