/*
 * Theme Name: Theme Site
 * Author: Eduard Shpigel
 * Author URI: https://t.me/edshpigel
 */

@import url(https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap;);

.portfolio-block .block-11__item__wrapper {
  position: relative;
  padding-top: 62%;
  overflow: hidden;
}
.portfolio-block .block-11__item__wrapper:before {
  content: none;
}
.portfolio-block img {
  border: 1px solid #e3e3e3;
}
.portfolio-block .portfolio-swiper {
  overflow: hidden;
}
.portfolio-block .block-11__item__wrapper img {
  width: 100%;
  position: absolute;
  inset: 0 0 0 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  border: 1px solid #e3e3e3;
}

.block-14 .flex-form .flex-form-item {
  min-width: 250px;
}

.block-14 .button-flex-form > * {
  margin-bottom: 20px;
}

.block-14 .button-flex-form {
  align-items: center;
  justify-content: flex-start;
}
.block-14 .form-inline-custom .your_policy {
  margin-bottom: 0;
}
.block-14 .button-flex-form button {
  margin-right: 30px;
}

.hero .hero__item {
  height: auto;
}
.hero .hero__item .hero__content {
  height: 100%;
}
.hero__form .form-inline-custom .flex-form .flex-form-item {
  min-width: 220px;
}

@media (min-width: 998px) {
  .block-8__item.is--even,
  .block-8__item.is--odd {
    -webkit-box-align: stretch;
    -webkit-align-items: stretch;
    -ms-flex-align: unset;
    align-items: stretch;
    margin-top: 0;
  }
  .block-8__item.is--even .block-8__item__content {
    margin-bottom: 0;
  }
  .block-8__item.is--even .block-8__item__img__wrapper,
  .block-8__item.is--odd .block-8__item__img__wrapper {
    height: 100%;
  }
  .block-8__item.is--even .block-8__item__img__wrapper img,
  .block-8__item.is--odd .block-8__item__img__wrapper img {
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

@media (max-width: 998px) {
  .block-10__img {
    display: none;
  }
  .block-12__imgs__video.none-link {
    padding: 84px 25px;
  }
  .block-12__imgs__group img:last-child {
    max-width: none;
  }
}

@media (max-width: 575.98px) {
  .fixed-white:not(.toggled):not(.fixed)
    .header__flex
    > .header__bottom
    .header__tel
    a {
    border-color: #e3e3e3;
  }
  .fixed-white:not(.toggled):not(.fixed)
    .header__flex
    > .header__bottom
    .header__tel
    a
    svg
    path {
    fill: #2d2c33;
    stroke: none;
  }
  .header.fixed-white:not(.toggled):not(.fixed) .header__mobile__wrapper span,
  .header.fixed-white:not(.toggled):not(.fixed) .header__mobile__wrapper:before,
  .header.fixed-white:not(.toggled):not(.fixed) .header__mobile__wrapper:after {
    background: #2d2c33;
  }
  .header.fixed-white.toggled .header__city a {
    color: white;
  }
  .header__whatsapp__link,
  .footer__social__item {
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: -ms-inline-flexbox;
    display: inline-flex;
  }
  .footer__social__item {
    max-width: 53px;
  }
  .header__dropdown .header__social a {
    max-width: 40px;
  }
  .header__whatsapp {
    max-height: 40px;
    max-width: 40px;
  }
}

/* ===== ОБЩИЕ СТИЛИ ДЛЯ BLOCK-8 ПЛЮСОВ ===== */
.block-8__item__content__pluses {
  margin-bottom: 28px;
}

/* Общие стили для всех пунктов */
.block-8__plus-item {
  background: #f4f4f4;
  margin-bottom: 8px;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Простые пункты (без детализации) */
.block-8__plus-item--simple {
  padding: 12px 15px;
}

.block-8__plus-simple {
  display: flex;
  align-items: center;
  font-weight: 500;
  color: #000;
  font-size: 14px;
}

.block-8__plus-simple svg {
  margin-right: 12px;
  min-width: 23px;
  flex-shrink: 0;
}

.block-8__plus-text {
  flex: 1;
}

/* Аккордеон для пунктов с детализацией */
.block-8__plus-header {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  cursor: pointer;
  font-weight: 500;
  color: #000;
  position: relative;
  transition: background-color 0.3s ease;
}

.block-8__plus-header:hover {
  background: #eaeaea;
}

.block-8__plus-header svg {
  margin-right: 12px;
  min-width: 23px;
  flex-shrink: 0;
}

.block-8__plus-title {
  flex: 1;
  margin-right: 15px;
  font-size: 14px;
}

.block-8__plus-toggle {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.block-8__plus-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  transition: all 0.3s ease;
}

.block-8__plus-icon:before,
.block-8__plus-icon:after {
  content: '';
  position: absolute;
  background: #41bf68;
  transition: all 0.3s ease;
}

.block-8__plus-icon:before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.block-8__plus-icon:after {
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

/* Состояние открытого аккордеона */
.block-8__plus-item--accordion.active .block-8__plus-icon:after {
  opacity: 0;
}

.block-8__plus-item--accordion.active .block-8__plus-toggle {
  transform: rotate(45deg);
}

.block-8__plus-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.block-8__plus-item--accordion.active .block-8__plus-content {
  max-height: 500px;
}

.block-8__plus-details {
  padding: 15px 20px 15px 50px;
  background: white;
  border-top: 1px solid #e0e0e0;
}

.block-8__detail-point {
  padding: 5px 0;
  color: #666;
  font-size: 13px;
  line-height: 1.4;
  position: relative;
}

.block-8__detail-point:before {
  content: '—';
  position: absolute;
  left: -15px;
  color: #41bf68;
}

/* Анимация при открытии */
.block-8__plus-item--accordion.active {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* ===== СТАРЫЕ СТИЛИ ДЛЯ ОБРАТНОЙ СОВМЕСТИМОСТИ ===== */
.block-8__item__content__pluses__item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  background: #f4f4f4;
  border-radius: 4px;
  padding: 12px 15px;
}

.block-8__item__content__pluses__item svg {
  flex-shrink: 0;
  margin-right: 10px;
  margin-top: 2px;
}

.plus-content {
  flex: 1;
}

.plus-main-text {
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
  color: #333;
}

.plus-details {
  margin-left: 0;
  margin-top: 8px;
}

.plus-detail-point {
  position: relative;
  padding-left: 15px;
  margin-bottom: 4px;
  line-height: 1.4;
  color: #666;
  font-size: 0.95em;
}

.plus-detail-point:before {
  content: '—';
  position: absolute;
  left: 0;
  color: #41bf68;
}

/* Адаптивность для block-8 */
@media (max-width: 998px) {
  .block-8__plus-item--simple,
  .block-8__plus-header {
    padding: 10px 12px;
  }

  .block-8__plus-details {
    padding: 12px 15px 12px 45px;
  }

  .block-8__plus-title,
  .block-8__plus-text {
    font-size: 13px;
  }

  .block-8__item__content__pluses__item {
    padding: 10px 12px;
    margin-bottom: 12px;
  }
}

@media (max-width: 768px) {
  .block-8__plus-item--simple,
  .block-8__plus-header {
    padding: 8px 10px;
  }

  .block-8__plus-details {
    padding: 10px 12px 10px 40px;
  }

  .block-8__detail-point {
    font-size: 12px;
  }

  .block-8__item__content__pluses__item {
    padding: 8px 10px;
    margin-bottom: 10px;
  }

  .plus-detail-point {
    padding-left: 12px;
    font-size: 0.9em;
  }
}
