/*NOTE: This file is intended for programmers. Aspro technical support is not advised to work with him.*/

/* Examples (uncomment to use):*/

/* Expand site width */
/* body .wrapper { max-width: 1400px !important;  } */

/* Set site background image */
/* body {  background: url(image_source) top no-repeat; }

/* Hide compare button */
/* a.compare_item { display: none !important;  }*/

.row.row-flex {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1* var(--bs-gutter-y));
    margin-right: calc(-.5* var(--bs-gutter-x));
    margin-left: calc(-.5* var(--bs-gutter-x));
}
.align-items-start {
    align-items: flex-start !important;
}
.row.row-flex>* {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x)* .5);
    padding-left: calc(var(--bs-gutter-x)* .5);
    margin-top: var(--bs-gutter-y);
}
.row.row-flex [class^="col-"] {
    flex: 1 0 0;
}
.row.row-flex .col-xs-12 {
    flex: 0 0 auto;
    width: 100%;
}
.services-list__item-text-bottom-part .price__economy {
     background: #fff;
     border-color: #ccc;
}

/*@media (max-width: 575px) {
    width: 100%;
    max-width: none;
    height: auto;
} */
@media (min-width: 576px) {
    .row.row-flex .col-md-6 {
        flex: 0 0 auto;
        width: 50%;
    }
    .gallery-row a {
        display: block;
        position: relative;
        overflow: hidden;
        height: 250px;
        width: 100%;
        border-radius: 4px;
    }
    .gallery-row a img {
        position: absolute;
        top: 0;
        left: 50%;
        height: 100%;
        width: auto;
        -ms-transform: translateX(-50%);
        -moz-transform: translateX(-50%);
        -o-transform: translateX(-50%);
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
    }
}
@media (min-width: 992px) {
    .row.row-flex .col-lg-3 {
        flex: 0 0 auto;
        width: 25%;
    }
}


.logo {
	max-width: 300px;
	height: 80px;
}

#headerfixed .logo {
	max-width: 250px;
	height: 60px;
}


.social__item {
    &.social__item--image {
        &.fb {
            --column: 13;
            --row: 1;
        }
    }
}

/*SHOW NAV PICTURE*/

/* === ОБЩИЕ СТИЛИ (вне медиа) === */

/* Счётчик для нумерации пунктов */
.navPicture__list {
    counter-reset: nav-item;
}
.navPicture__item {
    counter-increment: nav-item;
}

/* Базовый стиль кружочка-маркера (используется и для маркеров на картинке, и для цифр в списке) */
.navPicture__marker,
.navPicture__item::before {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #fff;
    background-color: var(--theme-more-color);
    color: #fff;
    font-weight: bold;
    box-sizing: border-box;
}

/* Переменные координат для модификатора _office */
.navPicture--office {
    --np-1-top: 30%;
    --np-1-left: 50%;
    --np-2-top: 45%;
    --np-2-left: 25%;
    --np-3-top: 60%;
    --np-3-left: 37%;
    --np-4-top: 86%;
    --np-4-left: 28%;
    --np-5-top: 8%;
    --np-5-left: 70%;
    --np-6-top: 66%;
    --np-6-left: 65%;
    --np-7-top: 47%;
    --np-7-left: 74%;
}

/* Общие правила позиционирования для элементов и маркеров */
.navPicture__item._1,
.navPicture__marker._1 { top: var(--np-1-top); left: var(--np-1-left); }
.navPicture__item._2,
.navPicture__marker._2 { top: var(--np-2-top); left: var(--np-2-left); }
.navPicture__item._3,
.navPicture__marker._3 { top: var(--np-3-top); left: var(--np-3-left); }
.navPicture__item._4,
.navPicture__marker._4 { top: var(--np-4-top); left: var(--np-4-left); }
.navPicture__item._5,
.navPicture__marker._5 { top: var(--np-5-top); left: var(--np-5-left); }
.navPicture__item._6,
.navPicture__marker._6 { top: var(--np-6-top); left: var(--np-6-left); }
.navPicture__item._7,
.navPicture__marker._7 { top: var(--np-7-top); left: var(--np-7-left); }

/* === ДЕСКТОП (>= 731px) === */
@media (min-width: 731px) {
    .navPicture {
        position: relative;
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 2;
    }

    .navPicture__image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .navPicture__image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .navPicture__markers {
        display: none; /* маркеры только для мобильных */
    }

    .navPicture__list {
        display: block;
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
    }

    .navPicture__item {
        display: inline-flex;
        position: absolute;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 7px;
        transform: translateX(-50%);
    }

    .navPicture__item::before {
        content: "";
        width: 15px;
        height: 15px;
        font-size: 0; /* без цифр */
        flex-shrink: 0;
        position: relative;
    }

    .navPicture__item span {
        display: flex;
        position: relative;
        align-items: center;
        justify-content: center;
        padding: 4px 8px;
        background: #fff;
        border-radius: 16px;
        font-weight: 500;
    }

    .navPicture__item span::before {
        content: "";
        display: block;
        position: absolute;
        width: 35px;
        height: 15px;
        left: 50%;
        transform: translateX(-50%);
        top: -7px;
        background: url('/upload/how_we_work/markerarr.svg') center no-repeat;
    }
}

/* === МОБИЛЬНЫЕ (<= 730px) === */
@media (max-width: 730px) {
    .navPicture {
        position: relative;
    }

    .navPicture__image {
        position: relative; /* обычный поток */
        width: 100%;
    }

    .navPicture__image img {
        display: block;
        width: 100%;
        height: auto;
    }

    .navPicture__markers {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }

    .navPicture__marker {
        position: absolute;
        transform: translate(-50%, -50%);
        width: 20px;
        height: 20px;
        font-size: 12px;
    }

    /* список под картинкой */
    .navPicture__list {
        margin-top: 20px;
        counter-reset: nav-item;
    }

    .navPicture__item {
        counter-increment: nav-item;
        display: flex;
        align-items: center;
        margin-bottom: 10px;
        position: static; /* убираем absolute */
        transform: none;
    }

    .navPicture__item::before {
        content: counter(nav-item);
        width: 20px;
        height: 20px;
        font-size: 12px;
        margin-right: 8px;
        flex-shrink: 0;
    }

    .navPicture__item span {
        background: none;
        padding: 0;
    }

    .navPicture__item span::before {
        content: none; /* убираем стрелку */
    }
}

/* INVENTAR */
.inventar__list {
    display: flex;
    position: relative;
    width: 100%;
    gap: 60px;
}

.inventar__item {
    display: flex;
    position: relative;
    flex-direction: column;
    gap: 10px;
}

.inventar__item-img {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
    flex-shrink: 1;
    padding: 30px;
}

.inventar__item-title,
.inventar__item-text {
    flex-shrink: 0;
}

.inventar__item-title {
    font-size: var(--eyed__font-size--20__font-size);
    font-weight: bold;
    text-align: center;
}

.inventar__item-text {
    text-align: center;
}

@media (max-width: 767px) {
    .inventar__list {
        flex-direction: column;
    }
}

/* ORDER_STEPS */

.orderSteps {
    display: flex;
    position: relative;
    gap: 60px;
    flex-wrap: wrap;
}

.orderSteps__item {
    display: flex;
    position: relative;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: calc(50% - 30px);
}

.orderSteps__item-icon {
    display: block;
    position: relative;
    color: var(--theme-base-color);
}

.orderSteps__item-svg {
    display: block;
    position: relative;
    width: 100px;
    height: 100px;
    padding: 20px;
    margin-bottom: 5px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--theme-base-color);
}

.orderSteps__item-svg svg {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.orderSteps__item-num {
    display: flex;
    position: absolute;
    align-items: center;
    justify-content: center;
    bottom: -3px;
    left: 0;
    background: var(--theme-base-color);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    font-weight: bold;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    z-index: 2;
}

.orderSteps__item-title {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

/* cleaning section */
.cleaningList {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 980px) {
    .cleaningList {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cleaningList__item {
    display: flex;
    position: relative;
    gap: 15px;
    flex-direction: column;
}

.cleaningList__item-icon__wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.cleaningList__item-icon {
    display: flex;
    position: relative;
    width: 130px;
    height: 130px;
    /*padding: 30px;*/
    align-items: center;
    justify-content: center;
    /*border-radius: 50%;*/
    /*box-shadow: 0 0 0 1px var(--theme-base-color);*/
}

.cleaningList__item-icon i {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    color: var(--white_text_black);
}

.cleaningList__item-icon svg {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    color: var(--white_text_black);
}

.cleaningList__item-name {
    display: block;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 8px;
    text-align: center;
}

.cleaningList__item-price {
    display: block;

    font-size: 18px;
    margin-bottom: 15px;
}

.cleaningList__item-text {
    /* Контейнер должен быть относительным для позиционирования псевдоэлемента */
    position: relative;
    /* Ограничиваем высоту тремя строками */
    max-height: 5em; /* 3 строки × 1.5em (межстрочный интервал) */
    overflow: hidden;
    /* Для многострочного обрезания с многоточием */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    /* Для Firefox и других браузеров – обычное обрезание (но без многоточия) */
    overflow: hidden;
    /* Белый фон у контейнера (важно для градиента) */
    background-color: #ffffff;
}

/* Псевдоэлемент для эффекта затухания */
.cleaningList__item-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4em;
    background: linear-gradient(to bottom, transparent, #ffffff);
    pointer-events: none; /* Чтобы не мешать кликам/выделению */
}

@media (max-width: 660px) {
    .cleaningList {
        grid-template-columns: 1fr;
    }
    .cleaningList__item {
        flex-direction: row;
        align-items: start;
        gap: 15px;
    }

    .cleaningList__item-icon__wrapper {
        width: auto;
    }

    .cleaningList__item-icon {
        width: 100px;
        height: 100px;
        padding: 20px;
    }

    .cleaningList__item-name {
        margin-bottom: 3px;
        text-align: left;
    }
    .cleaningList__item-price {
        margin-bottom: 3px;
    }
}



    /* Виджет callback BEGIN */

.contact-widget-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366; /* Зеленый цвет как у WhatsApp */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    border: none;
    animation: breatheAnimation 2s infinite ease-in-out;
}


.contact-widget-button:hover {
    animation-play-state: paused;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.contact-widget-button:active {
    transform: scale(0.95);
}

.phone-icon {
    width: 30px;
    height: 30px;
    fill: white;
    animation: iconFloat 3s infinite ease-in-out;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}


@keyframes breatheAnimation {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
    }
    50% {
        transform: scale(1.1) rotate(10deg);
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.8);
    }
}

.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    animation: fadeIn 0.3s ease;
}

.contact-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background-color: #f5f5f5;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #333;
    text-align: center;
}

/* Стили кнопок связи */
.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-button {
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 16px;
    transition: transform 0.2s, opacity 0.2s;
    border: none;
    cursor: pointer;
}

.contact-button:hover {
    transform: translateY(-2px);
    opacity: 0.95;
    color: white;
    text-decoration: none;
}

.contact-button:active {
    transform: translateY(0);
    color: white;
}

.contact-button-icon {
    display: block;
    width: 24px;
    height: 24px;
    margin-right: 12px;
}

/*.contact-button-text {*/
/*    flex-grow: 1;*/
/*}*/

/* Цвета для разных мессенджеров */
.button-max {
    /* background-color: #2D9CDB; */ /* Голубой цвет MAX */
    background-color: rgb(51, 119, 221); /* Голубой цвет MAX */
}

.button-telegram {
    background-color: #2AABEE; /* Цвет Telegram */
}

.button-whatsapp {
    background-color: #25D366; /* Цвет WhatsApp */
}

.button-phone {
    background-color: #4CAF50; /* Зеленый для звонка */
}

.button-callback {
    background-color: var(--theme-base-color); /* Кнопка заказать звонок */
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 980px) {
    .contact-widget-button {
        width: 56px;
        height: 56px;
        bottom: 76px;
        right: 16px;
        left: unset;
    }

    .phone-icon {
        width: 28px;
        height: 28px;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 16px;
    }

    .contact-button {
        padding: 14px;
        font-size: 15px;
    }
}

@media (max-width: 320px) {
    .contact-widget-button {
        width: 52px;
        height: 52px;
        bottom: 72px;
        right: 12px;
        left: unset;
    }

    .contact-button {
        padding: 12px;
        font-size: 14px;
    }
}

/* Виджет callback END */