/* ============================================================ */
/* КНОПКА ПЕРЕХОДА НА СТРАНИЦУ «УБОРКА КВАРТИР»                  */
/* Базируется на .btn.btn-primary из main-styles.css             */
/* Добавляет только отступы и стрелку при наведении              */
/* ============================================================ */

.btn-apartments-go {
    margin: 8px 0 28px;
    padding: 16px 30px;
    border-radius: 12px;
    font-size: 16px;
    white-space: nowrap;
    color: #fff;
    text-decoration: none;
}

.btn-apartments-go i {
    transition: transform .3s ease;
}

.btn-apartments-go:hover i {
    transform: translateX(4px);
}

/* Мобильная версия — растянуть на всю ширину */
@media (max-width: 768px) {
    .btn-apartments-go {
        width: 100%;
        justify-content: center;
        padding: 15px 24px;
        font-size: 15px;
        margin: 8px 0 24px;
    }
}




/* ============================================================ */
/* МОДАЛЬНОЕ ОКНО УСЛУГ «УБОРКА КВАРТИР»                         */
/* Классы с префиксом smq- (service-modal-apartments)            */
/* ============================================================ */

.smq-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13,15,19,.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
    opacity: 0;
    transition: opacity .3s ease;
}

.smq-overlay.active {
    display: flex;
    opacity: 1;
}

.smq-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,.4);
    transform: translateY(20px);
    transition: transform .35s cubic-bezier(.22,1,.36,1);

    /* Firefox scrollbar — не перебивает transition выше */
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.smq-overlay.active .smq-modal {
    transform: translateY(0);
}

/* ============================================================ */
/* СКРОЛЛБАР — виден только при прокрутке                        */
/* ============================================================ */

/* Полоса по умолчанию прозрачная */
.smq-modal::-webkit-scrollbar {
    width: 6px !important;
}

.smq-modal::-webkit-scrollbar-track {
    background: transparent !important;
}

.smq-modal::-webkit-scrollbar-thumb {
    background: transparent !important;
    border-radius: 10px;
    transition: background .3s ease;
}

/* Когда класс .is-scrolling — показать оранжевую полосу */
.smq-modal.is-scrolling::-webkit-scrollbar-thumb {
    background: #FF6B00 !important;
}

.smq-modal.is-scrolling::-webkit-scrollbar-thumb:hover {
    background: #e05e00 !important;
}

/* Firefox — при скролле */
.smq-modal.is-scrolling {
    scrollbar-color: #FF6B00 transparent;
}

/* ============================================================ */
/* КНОПКА ВЫЗОВА — рядом с навигацией                            */
/* ============================================================ */
.smq-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-left: auto;         /* прижимает к правому краю */
    padding: 12px 22px;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8a1f 100%);
    color: #fff;
    text-decoration: none;      /* важно для <a> */
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .2px;
    border: none;
    border-radius: 22px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .3s ease;
    box-shadow:
        0 6px 18px rgba(255, 107, 0, 0.35),
        0 0 0 0 rgba(255, 107, 0, 0.5);
    animation: smqPulse 2.4s ease-in-out infinite;
    white-space: nowrap;
    flex-shrink: 0;
}

.smq-cta-btn i {
    font-size: 15px;
}

/* Пульсация */
@keyframes smqPulse {
    0% {
        box-shadow:
            0 6px 18px rgba(255, 107, 0, 0.35),
            0 0 0 0 rgba(255, 107, 0, 0.5);
    }
    70% {
        box-shadow:
            0 6px 18px rgba(255, 107, 0, 0.45),
            0 0 0 12px rgba(255, 107, 0, 0);
    }
    100% {
        box-shadow:
            0 6px 18px rgba(255, 107, 0, 0.35),
            0 0 0 0 rgba(255, 107, 0, 0);
    }
}

.smq-cta-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow:
        0 10px 26px rgba(255, 107, 0, 0.5),
        0 0 0 0 rgba(255, 107, 0, 0);
}

.smq-cta-btn:active {
    transform: translateY(0);
}

/* Блик при наведении — один раз, с pointer-events: none */
.smq-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left .6s ease;
    pointer-events: none;
}

.smq-cta-btn:hover::before {
    left: 100%;
}

/* ============================================================ */
/* ВЕРХНИЙ БЛОК — две колонки                                   */
/* ============================================================ */
.smq-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
    flex-shrink: 0;
}

/* ============================================================ */
/* КНОПКА ЗАКРЫТИЯ                                              */
/* ============================================================ */
.smq-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid #e5e7eb;
    font-size: 20px;
    color: #0d0f13;
    cursor: pointer;
    display: grid;
    place-items: center;
    z-index: 10;
    transition: all .2s ease;
}

.smq-close:hover {
    background: var(--blue, #0b5cd5);
    color: #fff;
    border-color: var(--blue, #0b5cd5);
    transform: rotate(90deg);
}

/* ============================================================ */
/* ЛЕВАЯ ЧАСТЬ: УСЛУГИ                                          */
/* ============================================================ */
.smq-left {
    padding: 44px 40px 32px;
    display: flex;
    flex-direction: column;
}

.smq-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--blue, #0b5cd5);
    margin-bottom: 6px;
    letter-spacing: -.5px;
}

.smq-sub {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 28px;
}

.smq-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    padding: 0;
    margin: 0;
}

.smq-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    line-height: 1.45;
    color: #1a1f2e;
}

.smq-check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--blue, #0b5cd5);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 10px;
    margin-top: 2px;
}

.smq-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 700;
    cursor: help;
    flex-shrink: 0;
    margin-left: 4px;
    margin-top: 3px;
    position: relative;
}

.smq-info:hover::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1f2e;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 400;
    white-space: normal;
    width: 220px;
    line-height: 1.4;
    z-index: 20;
    box-shadow: 0 8px 20px rgba(0,0,0,.2);
}

.smq-info:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1a1f2e;
    z-index: 21;
}

.smq-more {
    font-size: 13px;
    color: #6b7280;
    margin-top: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color .2s;
    text-decoration: underline;
    text-decoration-color: transparent;
    background: none;
    border: none;
    font-family: inherit;
    padding: 0;
}

.smq-more:hover {
    color: var(--blue, #0b5cd5);
    text-decoration-color: currentColor;
}

.smq-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.smq-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #0d0f13;
    font-size: 16px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all .2s ease;
}

.smq-nav-btn:hover:not(:disabled) {
    background: #0d0f13;
    color: #fff;
    border-color: #0d0f13;
}

.smq-nav-btn:disabled {
    opacity: .3;
    cursor: not-allowed;
}

/* Плавное появление новых пунктов списка */
.smq-list li.smq-item-new {
    animation: smqFadeInUp .4s cubic-bezier(.22,1,.36,1) both;
}

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

/* ============================================================ */
/* ПРАВАЯ ЧАСТЬ: ФОТО С ТОЧКАМИ                                 */
/* ============================================================ */
.smq-right {
    position: relative;
    background: #e5e7eb;
    overflow: hidden;
}

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

/* Точка-маркер */
.smq-hotspot {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--blue, #0b5cd5);
    border: 2px solid #fff;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(11,92,213,.5);
    transform: translate(-50%, -50%);
    z-index: 5;
    transition: transform .25s ease;
    animation: smqPulseDot 2.4s ease-in-out infinite;
}

.smq-hotspot::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--blue, #0b5cd5);
    opacity: .6;
    animation: smqPulseRing 2.4s ease-out infinite;
}

.smq-hotspot:hover {
    transform: translate(-50%, -50%) scale(1.2);
    animation-play-state: paused;
}

@keyframes smqPulseDot {
    0%, 100% { box-shadow: 0 4px 12px rgba(11,92,213,.5); }
    50%      { box-shadow: 0 4px 20px rgba(11,92,213,.9); }
}

@keyframes smqPulseRing {
    0%   { transform: scale(1); opacity: .7; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Подпись рядом с точкой */
.smq-hotspot-label {
    position: absolute;
    color: var(--blue);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    white-space: nowrap;
    pointer-events: none;
    text-shadow:
        1px 1px 0 #fff,
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        0 3px 12px rgba(11,92,213,.5);
    transform: translate(-50%, -50%);
    z-index: 4;
    line-height: 1.1;
}

.smq-hotspot-label.small { font-size: 14px; }
.smq-hotspot-label.medium { font-size: 16px; }

/* ============================================================ */
/* НИЖНИЙ СЛАЙДЕР ДО/ПОСЛЕ — «карточка с тенью»                  */
/* ============================================================ */
.smq-slider-section {
    margin: 24px;
    padding: 0;
    background: transparent;
    border: none;
    flex-shrink: 0;
}

.smq-slider-section .comparison-slider {
    margin: 0 !important;
}

.smq-slider-section .slider-track {
    border-radius: 12px !important;
    border: 2px solid rgba(var(--r), var(--g), var(--b), 0.5) !important;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

/* ============================================================ */
/* МИНИАТЮРЫ СЛАЙДОВ (над главным слайдером)                    */
/* ============================================================ */
.smq-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    padding: 0;
    margin-bottom: 16px;
}

.smq-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    background: #e5e7eb;
    transition: all .25s ease;
    padding: 0;
    outline: none;
    font-family: inherit;
}

.smq-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.smq-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(13, 15, 19, 0.75) 0%,
        rgba(13, 15, 19, 0.2) 40%,
        transparent 70%
    );
    pointer-events: none;
    transition: opacity .25s ease;
}

.smq-thumb-label {
    position: absolute;
    bottom: 6px;
    left: 8px;
    right: 8px;
    z-index: 2;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-align: left;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.smq-thumb:hover {
    transform: translateY(-2px);
    border-color: rgba(11, 92, 213, 0.4);
}

.smq-thumb.active {
    border-color: var(--blue, #0b5cd5);
    box-shadow:
        0 0 0 3px rgba(11, 92, 213, 0.15),
        0 8px 20px rgba(11, 92, 213, 0.25);
}

.smq-main-slider {
    margin: 0 !important;
}

/* ============================================================ */
/* АДАПТИВ                                                       */
/* ============================================================ */
@media (max-width: 860px) {
    .smq-nav {
        flex-wrap: wrap;
    }

    .smq-cta-btn {
        flex: 1 1 100%;
        margin-left: 0;
        margin-top: 12px;
        justify-content: center;
        padding: 12px 16px;
        font-size: 13px;
    }

    .smq-slider-section {
        margin: 16px;
    }

    .smq-top {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .smq-right {
        order: -1;
        aspect-ratio: 4/3;
        min-height: 240px;
    }

    .smq-left {
        padding: 28px 24px 24px;
    }

    .smq-title { font-size: 24px; }

    .smq-hotspot-label { font-size: 14px !important; }
    .smq-hotspot {
        width: 14px;
        height: 14px;
        border-width: 2px;
    }

    .smq-thumbs {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 8px;
        margin-bottom: 12px;
    }

    .smq-thumb-label {
        font-size: 10px;
        bottom: 4px;
        left: 6px;
        right: 6px;
    }
}