/* исправление горизонтального скролла в слайдере на главной */
.slider--full {
    overflow: hidden;
}
/* высота выпадающего меню на всю высоту экрана */
.categories-nav--dropdown {
    max-height: 75vh;
}
/* поиск по максимальной длине */
.header--type-7 .main-nav-wrapper {
    flex-grow: 0;
}
.header-middle a,.header-middle .bd-color {
    color: #fff;
}

.header-middle__item--search {
    display: inline-flex;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-end;
}
.header-middle__item--search .shop-search {
    width: 100%;
}
/* пространство между пиктограммами в шапке */
.header-middle .shop-info:not(:first-child) {
    padding-left: 22px;
}
/* средняя часть на всю высоту (прижимаем футер) */
main {
    flex-grow: 1;
}
/* переопределение размера шрифта для кастомных селектов */
.custom-select-sm {
    font-size: 75%;
}
/* Товары в заказе */
.cart-info__item-title {
    flex: 0 1 85%;
}
/* Скрытие нижнего меню в шапке в фиксированном режиме */
.header--fixed .header-bottom--alternative {
    display: none;
}
/* Переключение видимости кнопки каталога в режиме фиксированного меню */
.header--fixed .main-nav-wrapper {
    display: inline-flex !important;
}
/* Выравнивание нижнего меню в шапке */
.header-bottom--alternative .header-bottom__row {
    justify-content: flex-start;
}
/* цвет футера */
.footer {
    background: #118357;
    color: #fff;
}
/* цвет текста и ссылок в футере */
.footer .footer__title {
    color: #fff;
}
.footer .footer__subtitle,
.footer .footer__link,
.footer .footer__list-item {
    color: rgba(255, 255, 255, 0.75);
}
.footer .footer__link:hover {
    color: #fff !important;
}
/* нижнее меню в шапке длиннее */
.header-bottom--alternative .header-bottom__item--nav {
    max-width: 820px;
    width: 820px;
}
/* нижнее меню, ссылки */
.header-bottom__item--nav .main-nav__list .main-nav__link,
.header-bottom__item--nav .main-nav__list .main-nav__subs-link{
    display: block;
    padding-left: 16px;
    padding-right: 16px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 54px;
    text-decoration: none;
}
.header-bottom__item--nav .main-nav__list .main-nav__link:hover {
    color: rgba(255, 255, 255, 0.75) !important;
    background: transparent !important;
}
.header-bottom__item--nav .main-nav__list .main-nav__subs-link:hover {
    background: transparent !important;
    color: rgba(0, 0, 0, 1) !important;
}
.header-bottom__item--nav .main-nav__list .main-nav__item:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.35);
}
.header-bottom__item--nav .main-nav__list .main-nav__item {
    border-right: 1px solid rgba(255, 255, 255, 0.35);
}
.header-bottom__item--nav .main-nav__list .main-nav__link-arrow {
    margin-left: 4px;
}
.header-bottom__item--nav .nav-dropdown-wrapper {
    padding-left: 16px;
    cursor: pointer;
}
/* Альтернативный макет категорий */
.container.grid {
    display: grid;
    height: auto;
    grid-template-columns: 2fr 3fr;
    gap: 1rem;
}
.container.grid > .category-item:nth-of-type(1) {
    grid-row-start: 1;
    grid-row-end: 3;
}
.container.grid > .category-item:nth-of-type(2) {
    grid-column-end: 4;
    grid-column-start: 2;
}
.container.grid > .category-item:nth-of-type(3) {
    grid-column-start: 2;
    grid-column-end: 4;
}
.container.grid > .category-item:nth-of-type(4) {
    grid-column-start: 1;
    grid-column-end: 4;
}
.container.grid .category-item .category-item__inner {
    flex-direction: row;
    justify-content: space-between;
    align-content: space-between;
}
.container.grid .category-item.block1 .category-item__inner {
    flex-direction: column;
}
.container.grid .category-item.block4 .category-item__inner {
    flex-wrap: unset;
}
.container.grid .category-item .category-item__inner .category-item__title {
    flex: 1 0 100%;
}
.container.grid .category-item .category-item__inner .category-item__subs {
    flex: 1 0 45%;
}
.container.grid .category-item .category-item__inner .category-item__promo {
    display: flex;
    flex: 1 1 auto;
    justify-content: flex-end;
    align-self: flex-start;
}
.container.grid .category-item .category-item__inner .category-item__promo {
    flex-direction: column;
}
.container.grid .category-item.block4 .category-item__inner .category-item__promo {
    //flex: 1 1 100%;
    //justify-content: space-between;
}
.container.grid .category-item .category-item__inner .category-item__promo .category-item__promo__product {
    position: relative;
    display: flex;
}
.container.grid .category-item.block1 .category-item__inner .category-item__promo .category-item__promo__product:last-child {
    margin-top: 1rem;
}
.container.grid .category-item .category-item__inner .category-item__promo .category-item__promo__product .category-item__promo__product--image {
    margin-right: 15px;
    flex: 1 0 30%;
}
.container.grid .category-item .category-item__inner .category-item__promo .category-item__promo__product .category-item__promo__product--desc {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 70%;
}
.container.grid .category-item .category-item__inner .category-item__promo .category-item__promo__product .category-item__promo__product--desc > span:nth-of-type(1) {
    font-size: 15px;
    font-weight: 600;
    color: #282f37;
}
.container.grid .category-item .category-item__inner .category-item__promo .category-item__promo__product .category-item__promo__product--desc > span:nth-of-type(2) {
    font-size: 18px;
    font-weight: 700;
    color: #282f37;
}

@media (max-width: 992px) {
    .container.grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-column-gap: 10px;
        grid-row-gap: 10px;
    }
    .container.grid > .category-item:nth-of-type(1) {
        grid-column: 1/4;
    }
    .container.grid > .category-item:nth-of-type(2) {
        grid-column: 1 / 4;
    }
    .container.grid > .category-item:nth-of-type(3) {
        grid-column: 1 / 4;
    }

    .container.grid .category-item .category-item__inner {
        flex-direction: column;
    }
    .container.grid .category-item .category-item__inner .category-item__promo {
        justify-content: flex-start;
    }
    .container.grid .category-item.block4 .category-item__inner .category-item__promo {
        flex-direction: column;
    }
    .container.grid .category-item.block4 .category-item__inner .category-item__promo .category-item__promo__product:last-child {
        margin-top: 1rem;
    }
}
/* Разметка для блока каталога в футере */
.footer__item--catalog {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.footer__item--catalog .footer__title{
    flex: 1 1 100%;
}
.footer__item--catalog .footer__list:not(:last-child){
    margin-right: 2rem;
}
@media (max-width: 575px) {
    .footer .logo__image {
        max-width: 220px;
    }
    .footer .social-icons {
        justify-content: center;
        margin: 20px 0;
    }
}
/* увеличение высоты элемента названия */
.product-item .product-item__title {
    height: 70px;
}

/* распределение категорий в меню */
.categories-nav--dropdown .categories-nav__list {
    flex-direction: column;
    height: 100vh;
    flex-wrap: wrap;
}
.categories-nav--dropdown .categories-nav__list .categories-nav__item {
    flex: 0;
}

/* кнопка Подробнее в товаре */
.product-overview .product-overview__more {
    background-color: #2bbbad !important;
    padding: .6rem !important;
    border-radius: .2rem !important;
    color: #fff !important;
    margin: .5rem !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
}

/* z-index для карты на странице аптек */
#map.sticky-top {
    z-index: 1;
}

/* Поиск */
.searchpro__field .searchpro__field-button-container .searchpro__field-button {
    text-transform: uppercase;
    color: #fff;
}
.searchpro__field .searchpro__field-container {
    z-index: 0 !important;
}

/* Табы в товаре */
.product-tabs .product-tabs__list {
    border-color: transparent !important;
}
@media (min-width: 992px) {
    input.show-write-form:hover,
    input.show-write-form:focus {
        background-color: #2bbbad;
    }
}

/* Как заказать */
.Zcifra {
    border-radius: 37px;
    background-color: #2bbbad;
    color: #ffffff;
    position: relative;
    display: inline-block;
    width: 52px;
    height: 36px;
    text-align: center;
    font-size: xx-large;
    padding-bottom: 52px;
    float: left;
    margin-right: 15px;
}
.Zzagolovok {
    font-size: 25px;
    font-weight: 500;
}

/* Описание товара */
.product-overview__description {

}
.product-overview__description div {
    margin-bottom: 1.4rem;
}
.product-overview__description p {
    margin-bottom: 0.4rem;
}
.product-overview__description p.h4 {
    font-weight: bold;
}
.product-overview__description ul {
    margin-top: 16px;
    margin-bottom: 16px;
    list-style-type: none;
}
.product-overview__description ul li {
    position: relative;
    margin-bottom: 8px;
    font-size: 15px;
    color: rgba(40,47,55,.75);
}

.product-overview__description ul li:before {
    content: "";
    position: absolute;
    left: -18px;
    top: 7px;
    padding: 2px;
    border: 2px solid #2bbbad;
    border-radius: 100%;
}

/* Контактная форма */
.wa-form .wa-value input[type=email],
.wa-form .wa-value textarea {
    width: 100%;
    padding: .5rem .75rem;
    font-size: 15px;
    line-height: 1.25;
    color: rgba(40,47,55,.75);
    background-color: rgba(40,47,55,.04);
    border: 2px solid rgba(40,47,55,.04);
    border-radius: 3px;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.wa-form .wa-value input[type=email]:focus,
.wa-form .wa-value textarea:focus {
    outline: none!important;
    border-color: #2bbbad!important;
}

.text-wrap {
    white-space: normal!important;
}

.callback__title, .callback__description {
    background: rgba(255 255 255 /75%);
}

.header-sale {
    background-color: #a93737;
}
.header-top .phones__address {
    margin-left: 5px;
}
.product-price::before {
    content: 'от ';
}

@media (min-width: 576px) {
    .card-columns {
        column-count: 4;
    }
}

@media (max-width: 991px) {
    .header-middle .header-middle__item--search {
        display: inline-flex;
        margin-bottom: 18px;
    }
}

.header-middle__item .list-inline .main-nav__item:last-child a {
    /*background-color: #c75300;
    border-color: #c75300;*/
    white-space: normal;
}

.order-info-section {
  margin: 40px auto;
  padding: 20px;
  line-height: 1.6;
  color: #333;

  & h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: #2c5f2d;
  }

  & .info-block {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);

    & .icon {
      font-size: 28px;
      margin-right: 20px;
      min-width: 40px;
      text-align: center;
    }

    & .content {
      & h3 {
        margin-top: 0;
        font-size: 20px;
        color: #118357;
      }

      & ul {
        padding-left: 20px;
        margin: 15px 0;

        & li {
          margin-bottom: 8px;
        }
      }
    }

    /* 👇 Адаптивность — вложенная внутрь .info-block */
    @media (max-width: 768px) {
      flex-direction: column;
      text-align: center;

      & .icon {
        margin-bottom: 15px;
        margin-right: 0;
      }
    }
  }

  & .highlight-note {
    text-align: center;
    padding: 25px;
    background: #e8f5e9;
    border-left: 5px solid #118357;
    font-weight: 600;
    font-size: 18px;
    color: #2c5f2d;
    border-radius: 8px;
    margin-top: 30px;
  }
}

.how-to-order-section {
  margin: 50px auto;
  padding: 30px;
  color: #333;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);

    &::after {
      content: '';
      display: block;
      width: 80px;
      height: 4px;
      background: #118357;
      margin: 10px auto 0;
      border-radius: 2px;
    }
  }

  & .order-steps {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;

    & li {
      counter-increment: step-counter;
      padding: 25px 20px 25px 80px;
      margin-bottom: 20px;
      background: #f8fafc;
      border-left: 4px solid #118357;
      border-radius: 10px;
      position: relative;
      box-shadow: 0 2px 6px rgba(0,0,0,0.03);

      &::before {
        content: counter(step-counter);
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background: #118357;
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 18px;
      }

      & strong {
        display: block;
        font-size: 18px;
        color: #118357;
        margin-bottom: 8px;
      }

      & .checklist {
        margin: 15px 0 0 0;
        padding-left: 30px;
        position: relative;

        /* Вертикальная линия */
        &::before {
          content: "";
          position: absolute;
          left: 10px;
          top: 5px;
          bottom: 5px;
          width: 2px;
          background: #4caf50;
          border-radius: 2px;
        }

        & .check-item {
          padding: 8px 0;
          padding-left: 20px;
          position: relative;
          font-size: 15px;

          &::before {
            content: "✓";
            position: absolute;
            left: -10px;
            top: 50%;
            transform: translateY(-50%);
            width: 20px;
            height: 20px;
            background: #4caf50;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: bold;
          }
        }
      }
    }
  }

  @media (max-width: 768px) {
    padding: 20px;

    & .order-steps li {
      padding: 20px 20px 20px 70px;

      &::before {
        width: 36px;
        height: 36px;
        font-size: 16px;
        left: 15px;
      }

      & strong {
        font-size: 17px;
      }

      & .checklist {
        padding-left: 25px;

        &::before {
          left: 8px;
        }

        & .check-item {
          font-size: 14px;

          &::before {
            width: 18px;
            height: 18px;
            font-size: 11px;
            left: -12px;
          }
        }
      }
    }
  }
}