/* =============================================
   Apartment Showcase Plugin — Frontend Styles v5
   ============================================= */

:root {
    --asp-accent:      #A8D4C1;
    --asp-accent-soft: #E7F3EE;
    --asp-dark:        #111111;
    --asp-dark-2:      #1a1a1a;
    --asp-dark-3:      #2a2a2a;
    --asp-text:        #222222;
    --asp-text-light:  #777777;
    --asp-bg:          #f5f4f0;
    --asp-white:       #ffffff;
    --asp-border:      #e0e0e0;
    --asp-soft-panel:  #f7f8f5;
    --asp-radius:      12px;
    --asp-radius-sm:   6px;
    --asp-shadow:      0 14px 34px rgba(17,17,17,0.07);
    --asp-shadow-lg:   0 22px 58px rgba(17,17,17,0.14);
    --asp-transition:  all 0.28s ease;
    --asp-tabs-h:      48px;
    --asp-font:        'Inter', 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

/* =============================
   СЕКЦІЯ
   ============================= */
.asp-section {
    background-color: var(--asp-bg);
    padding: 80px 0 60px;
    font-family: var(--asp-font);
    -webkit-font-smoothing: antialiased;
}

.asp-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =============================
   ЗАГОЛОВОК
   ============================= */
.asp-header { margin-bottom: 40px; }

.asp-header-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--asp-white);
    border: 1px solid var(--asp-border);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--asp-text);
    margin-bottom: 20px;
}

.asp-header-label-icon,
.asp-btn-icon,
.asp-spec-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.asp-header-label-icon svg,
.asp-btn-icon svg,
.asp-spec-icon svg {
    width: 1em;
    height: 1em;
    display: block;
}

.asp-header-label-icon { font-size: 15px; color: var(--asp-accent); }

.asp-section-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--asp-dark);
    margin: 0 0 14px;
    letter-spacing: 0;
}

.asp-section-subtitle {
    font-size: 17px;
    color: var(--asp-text-light);
    margin: 0;
}

/* =============================
   ФІЛЬТРИ
   ============================= */
.asp-filters {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
    padding: 18px 20px;
    background: rgba(255,255,255,0.94);
    border-radius: var(--asp-radius);
    border: 1px solid rgba(17,17,17,0.05);
    box-shadow: var(--asp-shadow);
}

.asp-filters-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
}

.asp-filters-row--sliders {
    padding-top: 14px;
    border-top: 1px solid var(--asp-border);
    align-items: flex-start;
}

.asp-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.asp-filter-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--asp-text-light);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.asp-filter-buttons { display: flex; gap: 6px; flex-wrap: wrap; }

.asp-filter-btn {
    padding: 6px 14px;
    border: 1px solid var(--asp-border);
    background: transparent;
    border-radius: var(--asp-radius-sm);
    font-size: 13px;
    font-weight: 700;
    color: var(--asp-text);
    cursor: pointer;
    transition: var(--asp-transition);
    white-space: nowrap;
    line-height: 1;
    font-family: inherit;
}

.asp-filter-btn:hover  { border-color: var(--asp-accent); background: var(--asp-accent); color: var(--asp-dark); }
.asp-filter-btn.active { background: var(--asp-accent); border-color: var(--asp-accent); color: var(--asp-dark); font-weight: 700; }

/* Toggles */
.asp-filter-group--toggles { gap: 18px; }

.asp-toggle-label {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    user-select: none;
}

.asp-toggle-input { display: none; }

.asp-toggle-track {
    position: relative;
    width: 38px;
    height: 22px;
    background: var(--asp-border);
    border-radius: 999px;
    flex-shrink: 0;
    transition: background .22s ease;
}

.asp-toggle-track::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform .22s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,.18);
}

.asp-toggle-input:checked + .asp-toggle-track { background: var(--asp-accent); }
.asp-toggle-input:checked + .asp-toggle-track::after { transform: translateX(16px); }

.asp-toggle-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--asp-text);
}

/* Range слайдери */
.asp-filter-group--range {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 200px;
    flex: 1;
    max-width: 280px;
}

.asp-range-wrap {
    position: relative;
    width: 100%;
    height: 28px;
}

.asp-range-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 4px;
    background: var(--asp-border);
    border-radius: 99px;
}

.asp-range-fill {
    position: absolute;
    height: 100%;
    background: var(--asp-accent);
    border-radius: 99px;
}

.asp-range {
    position: absolute;
    width: 100%;
    height: 4px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    outline: none;
}

.asp-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 2px solid var(--asp-accent);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 1px 5px rgba(0,0,0,.15);
    transition: transform .15s ease, box-shadow .15s ease;
}

.asp-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #fff;
    border: 2px solid var(--asp-accent);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 1px 5px rgba(0,0,0,.15);
}

.asp-range::-webkit-slider-thumb:hover { transform: scale(1.15); box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.asp-range--min { z-index: 3; }
.asp-range--max { z-index: 4; }

.asp-range-values {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--asp-text);
}

/* Скинути + лічильник */
.asp-filter-group--reset {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: auto;
}

.asp-filter-reset {
    padding: 7px 16px;
    border: 1px solid var(--asp-border);
    background: transparent;
    border-radius: var(--asp-radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--asp-text-light);
    cursor: pointer;
    transition: var(--asp-transition);
    font-family: inherit;
    white-space: nowrap;
}

.asp-filter-reset:hover { border-color: #d00; color: #d00; }

.asp-filter-count {
    font-size: 12px;
    color: var(--asp-text-light);
    font-weight: 500;
}

/* =============================
   ЛІЧИЛЬНИК ГЛЯДАЧІВ
   ============================= */
.asp-viewers-bar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--asp-white);
    border: 1px solid var(--asp-border);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--asp-text);
    margin-bottom: 28px;
    box-shadow: 0 12px 28px rgba(17,17,17,0.06);
}

.asp-viewers-dot {
    width: 8px; height: 8px;
    background: #22c55e;
    border-radius: 50%;
    flex-shrink: 0;
    animation: asp-pulse-dot 1.8s ease-in-out infinite;
}

@keyframes asp-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.35); }
}

.asp-viewers-count { color: var(--asp-dark); font-weight: 800; font-size: 15px; }

/* =============================
   ГОЛОВНА КАРУСЕЛЬ
   ============================= */
.asp-main-carousel-wrap {
    position: relative;
    margin-bottom: 48px;
    user-select: none;
    padding: 0 36px;
}

.asp-main-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--asp-radius);
}

.asp-main-carousel,
.asp-modal-carousel {
    cursor: grab;
}

.asp-main-carousel.asp-is-dragging,
.asp-modal-carousel.asp-is-dragging {
    cursor: grabbing;
}

.asp-main-carousel-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    touch-action: pan-y;
}

.asp-main-carousel-loader {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(245,244,240,0.78);
    color: var(--asp-text);
    font-size: 13px;
    font-weight: 700;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
    backdrop-filter: blur(2px);
}

.asp-main-carousel-loader .asp-spinner {
    width: 30px;
    height: 30px;
}

.asp-main-carousel-wrap.asp-is-loading .asp-main-carousel-loader {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.asp-main-carousel-wrap.asp-is-loading .asp-main-carousel-track {
    opacity: .38;
}

.asp-main-carousel-wrap.asp-is-loading .asp-main-carousel-btn,
.asp-main-carousel-wrap.asp-is-loading .asp-main-dot {
    pointer-events: none;
    opacity: .45;
}

/* =============================
   КАРТКА
   ============================= */
.asp-apartment-card {
    flex: 0 0 calc(33.333% - 16px);
    min-width: calc(33.333% - 16px);
    margin-right: 24px;
    background: var(--asp-white);
    border-radius: var(--asp-radius);
    border: 1px solid rgba(17,17,17,0.06);
    overflow: hidden;
    box-shadow: var(--asp-shadow);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.asp-apartment-card:hover { transform: translateY(-3px); box-shadow: var(--asp-shadow-lg); }
.asp-apartment-card.asp-hidden { display: none; }

.asp-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: white;
    border-bottom: 1px solid var(--asp-border);
}

.asp-card-image img {
    width: 100%;
    height: 100% !important;
    object-fit: contain;
    object-position: center center;
    transition: transform 0.4s ease;
    display: block;
    padding: 12px;
    box-sizing: border-box;
}

/* Якщо зображення — фото (не планування), обрізати красиво */
.asp-card-image img.asp-img-photo {
    object-fit: cover;
    padding: 0;
}

.asp-apartment-card:hover .asp-card-image img { transform: scale(1.04); }

.asp-card-status {
    position: absolute;
    top: 10px; left: 10px;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 10px; font-weight: 800;
    letter-spacing: 0.06em;
    z-index: 2;
}

.asp-status--available { background: var(--asp-accent); color: var(--asp-dark); }
.asp-status--reserved  { background: #f0a500; color: #fff; }
.asp-status--sold      { background: #e53935; color: #fff; }

.asp-card-number {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(17,17,17,0.58);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px; font-weight: 700;
    z-index: 2;
}

/* Бейдж акції на картці (DevBase promotions) */
.asp-card-promo-badge {
    position: absolute;
    bottom: 10px; left: 10px;
    background: #e53935;
    color: #fff;
    padding: 0;
    border-radius: 6px;
    font-size: 11px; font-weight: 800;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    animation: asp-promo-pulse 2.5s ease-in-out infinite;
}

@keyframes asp-promo-pulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(0,0,0,.25); }
    50%       { box-shadow: 0 2px 16px rgba(229,57,53,.55); }
}

.asp-card-promo-badge-text {
    padding: 5px 10px;
    line-height: 1.3;
    letter-spacing: .04em;
}

.asp-card-promo-timer {
    display: block;
    width: 100%;
    text-align: center;
    background: rgba(0,0,0,.22);
    font-size: 10px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    padding: 2px 8px 3px;
    letter-spacing: .04em;
    line-height: 1.3;
}

/* Тогл "Акційні" — золотистий */
.asp-toggle-label--promo .asp-toggle-track--promo { background: #ddb650; }
.asp-toggle-input:checked + .asp-toggle-track--promo { background: #e6a817; }

/* Бейдж знижки на картці (WP discount) */
.asp-card-discount-badge {
    position: absolute;
    bottom: 10px; left: 10px;
    background: #e53935;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px; font-weight: 800;
    letter-spacing: 0.04em;
    z-index: 2;
    animation: asp-badge-pulse 2s ease-in-out infinite;
}

@keyframes asp-badge-pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.05); }
}

.asp-card-body {
    padding: 16px 18px 20px;
    display: flex; flex-direction: column; flex: 1;
}

.asp-card-title { font-size: 14px; font-weight: 800; color: var(--asp-dark); margin: 0 0 10px; line-height: 1.35; }

.asp-card-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

.asp-spec {
    display: flex; align-items: center; gap: 4px;
    font-size: 12px;
    /*background: #f7f6f2;*/
    /*padding: 3px 8px;*/
    /*border-radius: 4px;*/
    color: var(--asp-text);
    /*border: 1px solid var(--asp-border);*/
}

.asp-spec-icon  { font-size: 14px; color: var(--asp-accent); }
.asp-spec-value { font-weight: 600; }

/* Блок ціни з перекресленою оригінальною */
.asp-card-price-block {
    margin-bottom: 12px;
}

.asp-card-price-original {
    display: block;
    font-size: 13px;
    color: var(--asp-text-light);
    text-decoration: line-through;
    margin-bottom: 2px;
}

.asp-card-price {
    font-size: 22px; font-weight: 800;
    color: var(--asp-dark);
    letter-spacing: -0.01em;
    line-height: 1.15;
}

/* Ціна за м² — головна */
.asp-card-price-m2--main {
    font-size: 20px;
    font-weight: 800;
    color: var(--asp-dark);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

/* Загальна вартість — допоміжна під ціною за м² */
.asp-card-price-total {
    font-size: 13px;
    font-weight: 500;
    color: var(--asp-text-light);
    margin-top: 3px;
}

/* Стара ціна за м² (допоміжна, де головна — загальна) */
.asp-card-price-m2 {
    font-size: 12px;
    font-weight: 500;
    color: var(--asp-text-light);
    margin-top: 2px;
}

.asp-card-price--discounted { color: #e53935; }

.asp-card-price-request,
.asp-modal-price-request {
    display: inline;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--asp-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color .18s ease;
}

.asp-card-price-request:hover,
.asp-modal-price-request:hover {
    color: var(--asp-text-light);
}

.asp-btn-details {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px;
    background: var(--asp-accent); color: var(--asp-dark);
    border: 1px solid var(--asp-accent);
    border-radius: var(--asp-radius-sm);
    font-size: 13px; font-weight: 700;
    cursor: pointer; transition: var(--asp-transition);
    align-self: flex-start; margin-top: auto;
    font-family: inherit;
}

.asp-btn-details:hover { background: var(--asp-dark); border-color: var(--asp-dark); color: var(--asp-white); }
.asp-btn-details:hover .asp-btn-icon { transform: translate(2px, -2px); }
.asp-btn-icon { font-size: 15px; transition: transform 0.2s; }

/* =============================
   КНОПКИ ГОЛОВНОЇ КАРУСЕЛІ
   ============================= */
.asp-main-carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.96); color: var(--asp-dark);
    border: 1px solid var(--asp-border);
    border-radius: 8px;
    width: 52px; height: 52px; font-size: 18px;
    cursor: pointer; z-index: 10; transition: var(--asp-transition);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 16px 34px rgba(17,17,17,0.12);
}

.asp-main-carousel-btn:hover    { background: var(--asp-accent); border-color: var(--asp-accent); color: var(--asp-dark); }
.asp-main-carousel-btn:disabled { opacity: 0.3; cursor: default; pointer-events: none; }
.asp-main-carousel-btn--prev    { left: 0; }
.asp-main-carousel-btn--next    { right: 0; }

.asp-main-carousel-btn svg,
.asp-modal-carousel-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

.asp-main-carousel-btn svg *,
.asp-modal-carousel-btn svg *,
.asp-modal-close--apartment svg *,
.asp-modal-close svg * {
    stroke: currentColor !important;
}

.asp-main-carousel-btn::before,
.asp-modal-carousel-btn::before {
    content: none;
    display: none;
}

.asp-main-carousel-btn svg,
.asp-modal-carousel-btn svg {
    position: static;
    display: none;
    opacity: 0;
    pointer-events: none;
}

.asp-main-carousel-btn::after,
.asp-modal-carousel-btn::after {
    content: '';
    display: block;
    width: 11px;
    height: 11px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    flex-shrink: 0;
}

.asp-main-carousel-btn--prev::after,
.asp-modal-carousel-btn--prev::after {
    transform: rotate(-135deg);
    margin-left: 4px;
}

.asp-main-carousel-btn--next::after,
.asp-modal-carousel-btn--next::after {
    transform: rotate(45deg);
    margin-right: 4px;
}

.asp-main-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
}

.asp-main-dot {
    width: 7px; height: 7px;
    border-radius: 999px;
    background: var(--asp-border);
    border: none; cursor: pointer; padding: 0;
    transition: width .2s ease, background .2s ease, opacity .2s ease;
    opacity: .9;
}

.asp-main-dot.active {
    background: var(--asp-accent);
    width: 24px;
}

/* =============================
   CTA БАНЕР
   ============================= */
.asp-cta-banner {
    background: var(--asp-accent-soft);
    border-radius: var(--asp-radius);
    padding: 40px 48px;
    margin-top: 16px;
    border: 1px solid rgba(17,17,17,0.06);
}

.asp-cta-banner-content {
    display: flex; align-items: center;
    justify-content: space-between;
    gap: 32px; flex-wrap: wrap;
}

.asp-cta-banner-text h3 { font-size: 26px; font-weight: 800; color: var(--asp-dark); margin: 0 0 8px; letter-spacing: 0; }
.asp-cta-banner-text p  { font-size: 15px; color: var(--asp-text-light); margin: 0; max-width: 480px; }

.asp-cta-banner-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 32px;
    background: var(--asp-accent); color: var(--asp-dark);
    border: 1px solid rgba(17,17,17,0.06); border-radius: var(--asp-radius-sm);
    font-size: 15px; font-weight: 800;
    cursor: pointer; transition: var(--asp-transition);
    white-space: nowrap; flex-shrink: 0;
    font-family: inherit;
}

.asp-cta-banner-btn:hover { background: var(--asp-dark); color: var(--asp-white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(17,17,17,0.16); }

.asp-no-results {
    text-align: center; padding: 60px 20px;
    color: var(--asp-text-light); font-size: 16px;
    background: var(--asp-white); border-radius: var(--asp-radius);
}

/* ============================================
   МОДАЛЬНЕ ВІКНО
   ============================================ */
.asp-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.76);
    z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    padding: 12px;
    animation: asp-fade-in 0.22s ease;
}

.asp-modal-overlay[style*="block"] { display: flex !important; }

@keyframes asp-fade-in { from { opacity: 0; } to { opacity: 1; } }

.asp-modal {
    background: var(--asp-white);
    border-radius: 14px;
    width: 100%;
    max-width: 1020px;
    max-height: calc(100vh - 24px);
    height: calc(100vh - 24px);
    overflow: hidden;
    position: relative;
    animation: asp-slide-up 0.28s ease;
    box-shadow: 0 34px 110px rgba(0,0,0,0.42);
    display: flex;
    flex-direction: column;
}

@keyframes asp-slide-up {
    from { transform: translateY(28px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.asp-modal-inner {
    display: flex; flex-direction: column;
    height: 100%; overflow: hidden;
}

/* ---- Двоколонний layout ---- */
.asp-modal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    height: 100%;
    overflow: hidden;
}

/* ---- ЛІВА КОЛОНКА ---- */
.asp-modal-left {
    display: flex; flex-direction: column;
    background: var(--asp-soft-panel);
    overflow: hidden;
    border-radius: 14px 0 0 14px;
    min-height: 0;
}

/*
 * Рядок табів — flex-контейнер.
 * Таби займають доступний простір і прокручуються горизонтально.
 */
.asp-modal-tabs-row {
    display: flex;
    align-items: stretch;
    background: var(--asp-soft-panel);
    flex-shrink: 0;
    border-bottom: 1px solid var(--asp-border);
    height: 52px;
    /* padding-right НЕ потрібен — кнопка займає своє місце в flex */
}

.asp-modal-tabs {
    display: flex;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    min-width: 0; /* важливо для flex overflow */
    padding: 6px;
    gap: 4px;
}

.asp-modal-tabs::-webkit-scrollbar { display: none; }

/*
 * Таб — SVG іконка + підпис.
 * SVG успадковує колір через currentColor.
 * Неактивний — приглушений білий, активний — акцентний зелений.
 */
.asp-modal-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    padding: 0 14px;
    height: 40px;
    background: transparent;
    color: var(--asp-text-light);
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
    font-family: inherit;
    flex-shrink: 0;
}

.asp-modal-tab:hover  { color: var(--asp-dark); background: rgba(168,212,193,0.22); }
.asp-modal-tab.active { color: var(--asp-dark); background: var(--asp-accent); }

.asp-modal-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.asp-modal-tab-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.asp-modal-tab-label {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    line-height: 1;
}

/*
 * Кнопка закриття квартири винесена поверх модалки.
 * .asp-modal-tabs-close залишено як сумісний стиль для старої розмітки.
 */
.asp-modal-tabs-close,
.asp-modal-close--apartment {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--asp-accent);
    color: var(--asp-dark);
    border: 1px solid rgba(17,17,17,0.08);
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.24);
}

.asp-modal-tabs-close { margin: 3px 6px 3px 0; flex-shrink: 0; }

.asp-modal-close--apartment {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 80;
}

.asp-modal-tabs-close:hover,
.asp-modal-close--apartment:hover {
    background: var(--asp-dark);
    color: var(--asp-white);
}

.asp-modal-close--apartment::before,
.asp-modal-close--apartment::after,
.asp-modal-close::before,
.asp-modal-close::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.asp-modal-close--apartment::before,
.asp-modal-close::before { transform: rotate(45deg); }
.asp-modal-close--apartment::after,
.asp-modal-close::after { transform: rotate(-45deg); }

.asp-modal-close--apartment svg,
.asp-modal-close svg {
    opacity: 0;
    pointer-events: none;
}

.asp-modal-tabs-close svg {
    width: 14px;
    height: 14px;
    display: block;
}

/*
 * .asp-modal-close залишаємо ТІЛЬКИ для форми контактів.
 * В основній модалі квартири він більше не використовується.
 */
.asp-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(17,17,17,0.08);
    color: var(--asp-dark);
    border: 1px solid var(--asp-border);
    border-radius: var(--asp-radius-sm);
    font-size: 14px;
    cursor: pointer;
    z-index: 30;
    transition: var(--asp-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.asp-modal-close svg {
    width: 18px;
    height: 18px;
    display: block;
}

.asp-modal-close:hover {
    background: var(--asp-dark);
    color: var(--asp-white);
    border-color: var(--asp-dark);
}

/* Область зображення */
.asp-modal-carousel {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: #ffffff;
    min-height: 0;
}

.asp-modal-carousel-track {
    display: flex;
    height: 100%; width: 100%;
    transition: transform 0.38s ease;
    touch-action: pan-y;
    user-select: none;
}

.asp-modal-slide {
    min-width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: #fff;
    padding: 16px; box-sizing: border-box;
}

.asp-modal-slide img {
    max-width: 100%; max-height: 100%;
    object-fit: contain; display: block;
    cursor: zoom-in; transition: transform 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.asp-modal-slide img.zoomed { transform: scale(2); cursor: zoom-out; }

.asp-modal-slide-video {
    min-width: 100%; height: 100%;
    background: var(--asp-dark); padding: 0;
}

.asp-modal-slide-video iframe,
.asp-modal-slide-video video {
    width: 100%; height: 100%;
    display: block; border: none;
}

/* Кнопки каруселі в модалі */
.asp-modal-carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.92);
    color: var(--asp-dark); border: 1px solid rgba(17,17,17,0.08);
    border-radius: 8px;
    width: 46px; height: 46px; font-size: 16px;
    cursor: pointer; z-index: 5; transition: var(--asp-transition);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 16px 34px rgba(17,17,17,0.13);
}

.asp-modal-carousel-btn:hover  { background: var(--asp-accent); border-color: var(--asp-accent); color: var(--asp-dark); }
.asp-modal-carousel-btn--prev  { left: 10px; }
.asp-modal-carousel-btn--next  { right: 10px; }

/* Dots каруселі в модалі */
.asp-modal-carousel-dots {
    display: flex; justify-content: center; gap: 5px;
    padding: 10px; flex-shrink: 0;
    background: #ffffff;
    border-top: 1px solid var(--asp-border);
}

.asp-modal-dot {
    width: 6px; height: 6px; border-radius: 2px;
    background: var(--asp-border);
    border: none; cursor: pointer; padding: 0;
    transition: var(--asp-transition);
}

.asp-modal-dot.active { background: var(--asp-accent); width: 20px; }

/* ---- ПРАВА КОЛОНКА ---- */
.asp-modal-right {
    display: flex;
    flex-direction: column;
    /* Відступ зверху невеликий, кнопка закриття винесена поверх модалки */
    padding: 18px 20px 0 20px;
    border-left: 1px solid var(--asp-border);
    border-radius: 0 14px 14px 0;
    background: var(--asp-white);
    /* Критично: обмежуємо висоту щоб flex-дочірні елементи не вилазили */
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

/*
 * Скрол-область всередині правої колонки.
 * Весь контент (заголовок, ціна, характеристики, опис, умови) — тут.
 * CTA кнопка — ПОЗА цим блоком, прилипає знизу.
 */
.asp-modal-right-scroll {
    flex: 1 1 0;
    min-height: 0;        /* критично для flex + overflow */
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--asp-border) transparent;
    padding-right: 4px;
    padding-bottom: 8px;
}
.asp-modal-right-scroll::-webkit-scrollbar       { width: 4px; }
.asp-modal-right-scroll::-webkit-scrollbar-track { background: transparent; }
.asp-modal-right-scroll::-webkit-scrollbar-thumb { background: var(--asp-border); border-radius: 2px; }

.asp-modal-apt-title {
    font-size: 19px; font-weight: 800; color: var(--asp-dark);
    margin: 0 58px 4px 0; line-height: 1.3; letter-spacing: 0;
}

.asp-modal-apt-num { font-size: 12px; color: var(--asp-text-light); margin-bottom: 14px; }

.asp-modal-price-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px; padding: 12px 14px;
    background: #f7f6f2; border-radius: var(--asp-radius-sm);
    border: 1px solid var(--asp-border);
}

/* Перекреслена оригінальна ціна в модалі */
.asp-modal-price-original {
    font-size: 12px;
    color: var(--asp-text-light);
    text-decoration: line-through;
    display: block;
    margin-bottom: 2px;
}

/* Ціна за м² — головна у модалці */
.asp-modal-price-m2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--asp-dark);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.asp-modal-price-val {
    font-size: 14px;
    font-weight: 500;
    color: var(--asp-text-light);
    margin-top: 2px;
}

.asp-modal-price-val--discounted { color: #e53935; font-weight: 700; }

/* Акції в модалці */
.asp-modal-promos {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.asp-modal-promo {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: #fff9f9;
    border-radius: var(--asp-radius-sm);
    border: 1px solid #fce4e4;
    border-left: 3px solid #e53935;
}

.asp-modal-promo-badge {
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    background: #e53935;
    white-space: nowrap;
    line-height: 1.4;
}

.asp-modal-promo-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.asp-modal-promo-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--asp-dark);
}

.asp-modal-promo-desc {
    font-size: 12px;
    color: var(--asp-text-light);
}

.asp-modal-promo-deadline {
    font-size: 11px;
    color: #e53935;
    font-weight: 600;
}

.asp-modal-status-badge {
    font-size: 10px; font-weight: 800;
    letter-spacing: 0.07em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 4px;
}

/* Специфікації */
.asp-modal-specs {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 8px; margin-bottom: 14px;
}

.asp-modal-spec {
    /*background: #f7f6f2;*/
    /*border-radius: var(--asp-radius-sm);*/
    padding: 5px 5px;
    /*border: 1px solid var(--asp-border);*/
}

.asp-modal-spec-label {
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.07em;
    color: var(--asp-text-light); margin-bottom: 3px; display: block;
}

.asp-modal-spec-value { font-size: 16px; font-weight: 800; color: var(--asp-dark); display: block; }

/*.asp-modal-spec--accent { background: var(--asp-accent); border-color: var(--asp-accent); }*/
.asp-modal-spec--accent .asp-modal-spec-label,
.asp-modal-spec--accent .asp-modal-spec-value { color: var(--asp-dark); }

/* Опис */
.asp-modal-desc {
    font-size: 13px; line-height: 1.7; color: var(--asp-text-light);
    background: #f7f6f2; border-radius: var(--asp-radius-sm);
    padding: 12px; margin-bottom: 14px;
    border: 1px solid var(--asp-border);
}

/* ---- УМОВИ ПРИДБАННЯ В МОДАЛІ ---- */
.asp-modal-purchase { margin-bottom: 14px; }

.asp-modal-purchase-title {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.07em;
    color: var(--asp-text-light);
    margin-bottom: 8px; display: block;
}

.asp-modal-purchase-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.asp-modal-purchase-tag {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 12px;
    background: var(--asp-accent-soft);
    color: var(--asp-dark);
    border: 1px solid rgba(17,17,17,0.06);
    border-radius: 4px;
    font-size: 12px; font-weight: 700;
}

.asp-modal-purchase-tag-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.asp-modal-purchase-tag-icon svg {
    width: 14px;
    height: 14px;
    display: block;
}

.asp-modal-purchase-tag[title] { cursor: help; }

/* ============================================
   БЛОК ЗНИЖКИ / ТАЙМЕР В МОДАЛІ
   ============================================ */
.asp-modal-discount-block {
    margin-bottom: 14px;
    border-radius: var(--asp-radius-sm);
    overflow: hidden;
    border: 1.5px solid #e53935;
}

.asp-modal-discount-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #e53935;
    color: #fff;
}

.asp-modal-discount-badge {
    font-size: 13px; font-weight: 800;
    letter-spacing: 0.04em;
    display: flex; align-items: center; gap: 6px;
}

.asp-modal-discount-amount {
    font-size: 16px; font-weight: 900;
    background: rgba(255,255,255,0.2);
    padding: 2px 10px;
    border-radius: 4px;
}

.asp-modal-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #fff5f5;
    border-top: 1px solid rgba(229,57,53,0.2);
    flex-wrap: wrap;
}

.asp-modal-timer-label {
    font-size: 11px; font-weight: 700;
    color: #e53935;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.asp-modal-timer-units {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.asp-timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--asp-accent-soft);
    color: var(--asp-dark);
    border: 1px solid rgba(17,17,17,0.06);
    border-radius: 4px;
    padding: 5px 8px;
    min-width: 42px;
}

.asp-timer-val {
    font-size: 18px; font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.asp-timer-lbl {
    font-size: 9px; font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-top: 2px;
}

.asp-timer-sep {
    font-size: 18px; font-weight: 900;
    color: var(--asp-dark);
    margin: 0 1px;
    align-self: center;
    padding-bottom: 12px;
}

.asp-timer-expired {
    font-size: 12px; font-weight: 700;
    color: var(--asp-text-light);
    padding: 8px 14px;
    background: #fff5f5;
}

/* ---- CTA в модалі ---- */
.asp-modal-cta {
    flex-shrink: 0;
    padding: 12px 0 16px;
    border-top: 1px solid var(--asp-border);
    background: var(--asp-white);
    /* margin-top: auto не потрібен — flex-колонка сама розставляє */
}

.asp-modal-cta-title { font-size: 13px; font-weight: 700; color: var(--asp-dark); margin-bottom: 10px; }

.asp-modal-cta-btn {
    width: 100%; padding: 13px 18px;
    background: var(--asp-accent); color: var(--asp-dark);
    border: none; border-radius: var(--asp-radius-sm);
    font-size: 13px; font-weight: 700;
    cursor: pointer; transition: var(--asp-transition);
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-family: inherit;
    margin-bottom:20px;
}

.asp-modal-cta-btn:hover { background: var(--asp-dark); color: var(--asp-white); }

.asp-modal-cta-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.asp-modal-cta-btn-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* =============================
   ФОРМА ЗВ'ЯЗКУ
   ============================= */
.asp-contact-overlay { z-index: 100000; }

.asp-contact-modal {
    max-width: 860px;
    height: auto !important;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    border-radius: var(--asp-radius);
}

.asp-contact-modal .asp-modal-close {
    background: rgba(255,255,255,0.94);
    color: var(--asp-dark);
    border-color: rgba(17,17,17,0.08);
    top: 12px; right: 12px;
    width: 36px; height: 36px;
}

.asp-contact-modal .asp-modal-close:hover {
    background: var(--asp-accent);
    color: var(--asp-dark);
    border-color: var(--asp-accent);
}

.asp-contact-modal-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 480px;
}

.asp-contact-modal-left {
    background: var(--asp-accent-soft);
    border-radius: var(--asp-radius) 0 0 var(--asp-radius);
    padding: 40px 36px;
    display: flex; flex-direction: column; gap: 20px;
}

.asp-contact-badge {
    display: inline-block;
    background: var(--asp-accent); color: var(--asp-dark);
    font-size: 11px; font-weight: 800; letter-spacing: 0.08em;
    text-transform: uppercase; padding: 5px 12px;
    border-radius: 4px; align-self: flex-start;
}

.asp-contact-modal-left h3 {
    font-size: 22px; font-weight: 800; color: var(--asp-dark);
    margin: 0; line-height: 1.35; letter-spacing: 0;
}

.asp-contact-benefits {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 10px;
}

.asp-contact-benefits li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--asp-text);
}

.asp-contact-benefits li span {
    display: inline-flex;
    color: var(--asp-accent);
    font-size: 16px;
}

.asp-contact-benefits li svg { width: 1em; height: 1em; display: block; }

.asp-contact-apt-info {
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(17,17,17,0.06);
    border-radius: var(--asp-radius-sm);
    padding: 12px 14px;
    margin-top: auto;
}

.asp-contact-apt-info-label {
    font-size: 10px; font-weight: 700; letter-spacing: 0.07em;
    text-transform: uppercase; color: var(--asp-text-light);
    margin-bottom: 4px; display: block;
}

.asp-contact-apt-info-title { font-size: 13px; font-weight: 700; color: var(--asp-dark); }

.asp-contact-modal-right {
    padding: 36px 30px;
    border-radius: 0 var(--asp-radius) var(--asp-radius) 0;
    background: var(--asp-white);
}

.asp-contact-modal-right h4 { font-size: 20px; font-weight: 800; color: var(--asp-dark); margin: 0 0 22px; }

.asp-contact-form { display: flex; flex-direction: column; gap: 14px; }

.asp-form-group { display: flex; flex-direction: column; gap: 5px; }

.asp-form-group label {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--asp-text-light);
}

.asp-form-group input,
.asp-form-group select,
.asp-form-group textarea {
    padding: 11px 14px;
    border: 1px solid var(--asp-border);
    border-radius: var(--asp-radius-sm);
    font-size: 14px; font-family: inherit;
    color: var(--asp-dark); background: var(--asp-white);
    transition: border-color 0.2s; outline: none;
    width: 100%; box-sizing: border-box;
}

.asp-form-group input:focus,
.asp-form-group select:focus,
.asp-form-group textarea:focus { border-color: var(--asp-accent); }

.asp-form-group textarea { resize: vertical; }

.asp-form-msg {
    padding: 11px 14px; border-radius: var(--asp-radius-sm);
    font-size: 13px; font-weight: 600;
}

.asp-form-msg--success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.asp-form-msg--error   { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

.asp-form-submit {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 24px;
    background: var(--asp-accent); color: var(--asp-dark);
    border: none; border-radius: var(--asp-radius-sm);
    font-size: 14px; font-weight: 700; cursor: pointer;
    transition: var(--asp-transition); font-family: inherit;
}

.asp-form-submit:hover    { background: var(--asp-dark); color: var(--asp-white); }
.asp-form-submit:disabled { opacity: 0.55; cursor: default; }

.asp-form-privacy {
    font-size: 11px; color: var(--asp-text-light);
    margin: 0; text-align: center; line-height: 1.5;
}

/* =============================
   ЗАВАНТАЖЕННЯ
   ============================= */
.asp-loading {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    height: 100%; width: 100%;
    padding: 40px; color: var(--asp-text-light);
    font-size: 14px; gap: 14px;
}

.asp-spinner {
    width: 34px; height: 34px;
    border: 3px solid var(--asp-border);
    border-top-color: var(--asp-accent);
    border-radius: 50%;
    animation: asp-spin 0.75s linear infinite;
}

@keyframes asp-spin { to { transform: rotate(360deg); } }

/* =============================
   АДАПТИВНІСТЬ
   ============================= */
@media (max-width: 1100px) {
    .asp-main-carousel-wrap { padding: 0 28px; }
    .asp-modal-layout { grid-template-columns: 1fr 300px; }
}

@media (max-width: 900px) {
    .asp-apartment-card {
        flex: 0 0 calc(50% - 12px);
        min-width: calc(50% - 12px);
    }

    .asp-modal {
        max-width: 600px;
        height: calc(100vh - 24px);
    }

    .asp-modal-layout {
        grid-template-columns: 1fr;
        grid-template-rows: 50vh 1fr;
        overflow-y: auto;
    }

    .asp-modal-left { border-radius: 16px 16px 0 0; }

    /* Сумісність зі старою кнопкою закриття всередині табів */
    .asp-modal-tabs-close {
        border-radius: 0 16px 0 0;
    }

    /* На мобільному таби — тільки іконки, підпис прихований */
    .asp-modal-tab-label { display: none; }

    .asp-modal-tab {
        min-width: 44px;
        padding: 0 10px;
    }

    .asp-modal-tab-icon svg {
        width: 22px;
        height: 22px;
    }

   
    .asp-modal-right {
        border-radius: 0 0 16px 16px;
        border-left: none;
        border-top: 1px solid var(--asp-border);
        padding-top: 16px;
        /* На мобільному висота визначається grid-template-rows */
        max-height: none;
        overflow: hidden;
    }

    /* CTA прилипає до низу на мобільному */
    .asp-modal-cta {
        position: sticky;
        bottom: 0;
        background: var(--asp-white);
        padding: 10px 0 0;
        z-index: 5;
        /*box-shadow: 0 -4px 16px rgba(0,0,0,0.08);*/
    }

    .asp-modal-right-scroll {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .asp-contact-modal-inner { grid-template-columns: 1fr; }
    .asp-contact-modal-left  { border-radius: 16px 16px 0 0; }
    .asp-contact-modal-right { border-radius: 0 0 16px 16px; }
}

@media (max-width: 640px) {
    .asp-section { padding: 40px 0; }
    .asp-container { padding: 0 14px; }
    .asp-header { margin-bottom: 24px; }
    .asp-section-title { font-size: 30px; line-height: 1.15; overflow-wrap: anywhere; }
    .asp-section-subtitle { font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
    .asp-header-label { margin-bottom: 14px; }

    .asp-apartment-card { flex: 0 0 100%; min-width: 100%; margin-right: 0; }

    .asp-main-carousel-wrap    { padding: 0 20px; }
    .asp-filters               { gap: 12px; padding: 14px 16px; }
    .asp-filters-row           { gap: 10px 14px; }
    .asp-filters-row--sliders  { flex-direction: column; align-items: stretch; }
    .asp-filter-group          { width: 100%; align-items: flex-start; }
    .asp-filter-buttons        { width: 100%; }
    .asp-filter-btn            { flex: 1 1 auto; min-width: 44px; text-align: center; }
    .asp-toggle-label          { width: 100%; }
    .asp-filter-group--range   { max-width: 100%; }
    .asp-cta-banner            { padding: 24px 20px; }
    .asp-cta-banner-content  { flex-direction: column; gap: 18px; }
    .asp-cta-banner-btn      { width: 100%; justify-content: center; }
    .asp-main-carousel-btn   { display: none; }

    .asp-modal {
        max-width: 100%;
        height: calc(100vh - 100px);
        max-height: calc(100vh - 100px);
        border-radius: 12px;
    }

    .asp-modal-layout { grid-template-rows: 33vh 1fr; overflow-y: auto; }

    .asp-modal-tab         { padding: 0 8px; min-width: 40px; }
    .asp-modal-tabs-close  { width: 40px; }

    .asp-modal-tab-icon svg { width: 20px; height: 20px; }

    .asp-modal-specs { grid-template-columns: 1fr 1fr; }
        .asp-modal-right {
        padding-top: 12px;
    }

    /* Таймер компактніший */
    .asp-timer-val  { font-size: 15px; }
    .asp-timer-unit { min-width: 34px; padding: 4px 6px; }
    .asp-timer-sep  { font-size: 15px; }
    .asp-timer-lbl  { font-size: 8px; }
}

@media (max-width: 400px) {
    .asp-modal-specs  { grid-template-columns: 1fr; }
    .asp-modal-layout { grid-template-rows: 33vh 1fr; }
}
