label.disabled {
    color: #cccccc;
    display: none;
}

.post .text a {
    color: #f32072;
}
.badge.low-price {
    background: #ff0000;
}
.badge.discount {
    background-color: #ff7800;
}

.wa-order-form-wrapper .wa-step-shipping-section .wa-delivery-types-section .wa-types-list .wa-type-wrapper .wa-price {
    display: none;
}

.buy1click-button_type_item {
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 110%;
    background: unset !important;
    color: #2d2d2d !important;
    border-bottom: 1px dashed #2d2d2d !important;
    padding: 0 !important;
    margin-top: 10px;
    border-radius: 0 !important;
}

.buy1click-button_type_item:hover {
    color: #540f25 !important;
    border-bottom: 1px dashed #540f25 !important;
    border: unset !important;
    background: unset !important;
    border-bottom: 1px dashed #2d2d2d !important;
}

.buy1click-wrap {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 5px;

}

.buy1click-wrap svg {
    transition: transform 0.3s ease, fill 0.3s ease;
}

.buy1click-wrap:hover svg {
    transform: scale(1.1); /* Увеличение на 10% */
}

.buy1click-wrap:hover svg path {
    fill: #540f25;
}

label.disabled {
    color: #cccccc;
    display: none;
}

.post .text a {
    color: #f32072;
}
.badge.low-price {
    background: #ff0000;
}
.badge.discount {
    background-color: #ff7800;
}

.wa-order-form-wrapper .wa-step-shipping-section .wa-delivery-types-section .wa-types-list .wa-type-wrapper .wa-price {
    display: none;
}

.content {
    margin-top: 75px;
}
.contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    gap: 15px;

    border-radius: 25px;
    padding: 15px;
    background-color: #F8F8F8;
}

.contact p, .social p{
    padding: 0;
    margin: 0;
}

.contact__img {
    border-radius: 13px;
    object-fit: cover;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact__info-top {
    font-size: 24px;
    color: #540f25;
}

.contact__info-top h1 {
    font-weight: 600;
    font-size: 24px;
    margin: 0;
}

.contact__info-top h1 span {
    text-transform: uppercase;
    white-space: nowrap;
}

.contact__info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    margin-top: 12px;
    padding:0;
    list-style: none;
}

.contact__info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact__info-item svg {
    flex-shrink: 0;
}

.contact__info-item-text p {
    font-size: 14px;
    color: #2d2d2d;
}

.contact__info-item-text span {
    font-weight: 500;
    font-size: 16px;
    color: #540f25;
}

.contact__btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact__btns a:focus {
    color: white !important;
}

.contact__btn {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    font-size: 16px;
    border: 1.50px solid #540f25;
    border-radius: 12px;
    height: 50px;
    text-decoration: none;
    color: #540f25  ;
}

.contact__btn--salon {
    background-color: #540f25;
    color: white;
}

.contact__info-text-sub {
    font-size: 18px;
    color: #2d2d2d;;
}

.social {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
}

.social__item-link {
    display: flex;
    justify-content: center;
    border: 1px solid #540f25;
    border-radius: 25px;
    padding: 10px 15px 10px 10px;
    height: 57px;
}

/* ===== social hover ===== */

.social__item-link {
    transition:
        background-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease,
        border-color .25s ease;
}

.social__item-link svg path {
    transition: fill .25s ease;
}

.social__item-link p,
.social__item-link span {
    transition: color .25s ease;
}

.social__item-link:hover {
    background-color: #540f25;
    border-color: #540f25;
    box-shadow: 0 8px 25px rgba(84, 15, 37, 0.25);
}

.social__item-link:hover p,
.social__item-link:hover span {
    color: #ffffff;
}

.social__item-link:hover svg path {
    fill: #ffffff;
}

.social__item-link:active {
    box-shadow: 0 4px 15px rgba(84, 15, 37, 0.2);
}

/* ===== contact buttons hover ===== */

.contact__btn {
    transition:
        background-color .25s ease,
        color .25s ease,
        box-shadow .25s ease,
        transform .25s ease,
        border-color .25s ease;
}

/* общая анимация */
.contact__btn:hover {
    box-shadow: 0 8px 25px rgba(84, 15, 37, 0.25);
}

.contact__btn--salon:hover {
    background-color: #450d1e;
    border-color: #450d1e;
    color: #ffffff;
}

.contact__btn--phone:hover {
    background-color: #540f25;
    color: #ffffff;
}

.contact__btn:active {
    box-shadow: 0 4px 15px rgba(84, 15, 37, 0.2);
}


@media (min-width: 1024px) {
    .content {
        margin-top: 75px;
    }
    .contact {
        flex-direction: row-reverse;
        gap:30px;

        border-radius: 35px;
        padding: 25px 25px 25px 50px;
    }
    
    .contact__img {
        border-radius: 25px;
        width: 58%;
    }
    
    .contact__info-top h1 {
        font-weight: 400;
    }
    
    .contact__info-top h1 span {
        font-weight: 700;
        font-size: 34px;
    }
    
    .contact__info {
        padding: 25px 0;
    }
    
    .contact__btns {
        flex-direction: row;
        gap: 15px;
    }
    
    .contact__btn {
        min-width: 185px;
    }
    
    .social {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        
        margin-top: 75px;
    }
    
    .social__item-link {
        height: 85px;
    }
    
    .social__item-link svg {
        width: 45px;
        height: 45px;
    }
    
    .social__item-info p {
        font-size: 16px;
    }
    
    .social__item-info span {
        font-size: 20px;
        line-height: 100%;
    }
}

/* ===== tabs ===== */
.tabs {
  display: flex;
  background: #eee !important;
  border-radius: 30px;
  padding: 5px;
  margin: 25px 0;
  overflow-x: scroll;
}

.tab {
  font-size: 16px;
  height: 45px;
  padding: 0 15px;
  border-radius: 50px;
  border: none;
  background: transparent !important;
  cursor: pointer;
  font-weight: 500;
  color: #333;
  min-width: max-content;
}

.tab.active {
  background: #5b0f1b !important;
  color: #fff;
}

.tab:hover {
    border: unset !important;
    border-color: unset !important;
    background: none !important;
    background-color: none !important;
}

.tab:focus {
    outline: none !important;
}

.content p {
    padding: 0;
    margin: 0;
}

.content {
  display: flex;
  flex-direction: column-reverse;
  gap: 16px;
}

.sidebar {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 15px;
  z-index: 2;
  background: #F8F8F8;
  border-radius: 20px;
  height: 250px;
  overflow: hidden;
}

.sidebar-title {
  font-weight: 600;
  font-size: 14px;
  padding: 15px 15px 10px 15px;
}

#list {
  overflow-y: scroll;
  height: 200px;
}

.shop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #EAEAEA;
  padding: 10px 15px;
  cursor: pointer;
  transition: background .2s;
}

.shop-item:hover {
  background: #f3f3f3;
}

.shop-item-icon {
  width: 40px;
  height: 40px;
  background-color: #540f25;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.shop-text {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
}

.shop-item-chevron {
    margin-left: auto;
}

.shop-text p {
  font-weight: 400;
  font-size: 14px;
}
.shop-text span {
  font-weight: 500;
  color: #540f25;
}

/* ===== map ===== */
.map-wrapper {
  position: relative;
  overflow: hidden;
  flex: 1;
  border-radius: 25px;
}

#map {
  width: 100%;
  height: 100%;
  min-height: 600px;
}

/* ===== marker ===== */
.map-marker {
  width: 38px;
  height: 38px;
  background: #5b0f1b;
  color: #fff;
  border-radius: 50%;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .25s;
}

.map-marker.active {
  border: 2px solid white;
  transform: scale(1.15);
}

/* ===== TOOLTIP ===== */
.tooltip {
  position: absolute;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  padding: 15px;
  z-index: 1000;
  display: none;
  right: 20px;
  top: 20px;
}

.tooltip.active {
  display: block;
  animation: tooltipSlideIn 0.3s ease-out;
}

/* ===== tabs hover (без подрыгивания) ===== */

.tab {
    transition:
        background-color .2s ease,
        color .2s ease,
        box-shadow .2s ease;
}

/* hover для неактивных */
.tab:not(.active):hover {
    background-color: rgba(84, 15, 37, 0.08) !important;
    color: #540f25;
}

/* active таб */
.tab.active {
    background: #5b0f1b !important;
    color: #ffffff;
}

/* hover на активном — без изменений */
.tab.active:hover {
    background: #5b0f1b !important;
    color: #ffffff;
}

.shop-item:hover {
    background-color: rgba(84, 15, 37, 0.06);
}

@keyframes tooltipSlideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.tooltip-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  border-radius: 50%;
  transition: all 0.2s;
  font-size: 20px;
  line-height: 1;
  z-index: 1001;
}

.tooltip-close:hover {
  background: #7a233d;
  color: #333;
}

.tooltip-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.btn-с {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primarys {
  background: #540f25;
  color: white;
}

.btn-primarys:hover {
  background: #450d1e;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #f8f8f8;
  color: #333;
  border: 1px solid #e0e0e0;
}

.btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

.ymaps-2-1-79-copyright__layout, .ymaps-2-1-79-map-copyrights-promo {
    display: none !important;
}

.custom-balloon {
  padding: 15px;
  border-radius: 15px;
  background: white;
  box-shadow: 1px 37px 50px 0 rgba(0, 0, 0, 0.15);
  position: relative;
}

.custom-balloon .contact__info-item span {
    color: black;
}

.custom-balloon .contact__info-item svg {
    width: 20px;
    height: 20px;
}

.balloon-header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 136px;
  margin-bottom: 16px;
}

.balloon-title {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.1;
}

.balloon-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  color: #333;
}

.balloon-row .icon {
  font-size: 18px;
  line-height: 1;
}

.balloon-row a {
  color: #5b1428;
  text-decoration: none;
}

.balloon-actions {
    display: grid;
    grid-template-columns: 1.75fr 1fr;
    margin-top: 12px;
}

.balloon-actions a{
  height: 34px;
  min-width: unset;
}

.ymaps-2-1-79-balloon__content, .ymaps-2-1-79-balloon__layout {
    padding: 0 !important;
    background: unset !important;
}

.ymaps-2-1-79-balloon__close+.ymaps-2-1-79-balloon__content {
    margin-right: 0 !important;
}

.ymaps-2-1-79-balloon__tail {
    display: none !important;
}

.ymaps-2-1-79-balloon {
    box-shadow: none !important;
}

.ymaps-2-1-79-balloon__content ymaps {
    width: 300px !important;
    height: 100% !important;
}

@media (max-width: 768px) {
    .balloon-header {
      display: none;
    }
    
    .custom-balloon .contact__info-list {
        gap: 3px;
        margin-top:0;
    }
    
    .custom-balloon .contact__info-item span, .custom-balloon .contact__info-item p, .custom-balloon .contact__btn{
        font-size: 14px;
    }
  
}

@media (min-width: 1024px){
  .content {
    overflow: hidden;
    flex-direction: row;
    gap: 0;
  }
  .sidebar {
    position: static;
    z-index: 0;
    margin: 0;
    border-radius: 20px;
    height: unset;
    overflow: visible;
    min-width: 380px;
    padding-right: 35px;
    margin-right: -35px;
  }

  .map-wrapper {
    height: 460px;
    box-shadow: -10px 0 50px 0 rgba(0, 0, 0, 0.1);
  }

  #map {
    min-height: 460px;
  }

  #list {
    height: 399px;
  }

  .sidebar-title {
    padding: 20px 20px 20px 20px;
  }

  .tabs {
    width: max-content;
    margin-top: 75px;
  }

  .tooltip {
    right: 24px;
    top: 24px;
    min-width: 340px;
    max-width: 380px;
  }
  
  .ymaps-2-1-79-balloon__content ymaps {
        width: 320px !important;
    }
}
