/* Базовые стили, которые сбрасывают конфликты с темой */
#booking-quiz-app,
#booking-quiz-app * {
    box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    background: none; border: none; text-shadow: none; box-shadow: none; line-height: 1.5;
}
#booking-quiz-app h1, #booking-quiz-app h2, #booking-quiz-app h3 {
    margin: 0; padding: 0; line-height: 1.2; letter-spacing: normal; font-weight: 600;
}
#booking-quiz-app button {
    background-color: transparent; border: none; border-radius: 0; padding: 0; color: inherit; font: inherit; cursor: pointer;
}
:root {
    --primary-light: rgba(74, 144, 226, 0.1); --text-color: #f0f0f0; --light-text-color: #a0a0a0;
    --background-color: transparent; --border-color: #333333; --success-color: #48bb78;
    --danger-color: #e53e3e; --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --transition-speed: 0.4s;
}
#booking-quiz-app { max-width: 1200px; margin: 0 auto; padding: 1rem; display: flex; flex-direction: column; gap: 1.5rem; color: var(--text-color); }
#booking-quiz-app .quiz-header { background: var(--card-bg); padding: 1rem 1.5rem; border-radius: var(--border-radius); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 1rem; border: 1px solid var(--border-color); }
#booking-quiz-app .header-top-row { display: flex; justify-content: space-between; align-items: center; width: 100%; flex-wrap: wrap; gap: 0.5rem; }
#booking-quiz-app .header-title { font-size: 1.25rem; font-weight: 600; }
#booking-quiz-app .total-cost { font-size: 1.25rem; font-weight: 700; color: var(--primary-color); white-space: nowrap; padding-left: 1.5rem; }
#booking-quiz-app #progress-summary { width: 100%; padding-top: 1rem; border-top: 1px solid var(--border-color); font-size: 0.875rem; color: var(--light-text-color); }
#booking-quiz-app .summary-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
#booking-quiz-app .quiz-step { display: block; margin-bottom: 2.5rem; }
#booking-quiz-app .step-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; text-align: center; color: var(--text-color); }
#booking-quiz-app .step-description { font-size: 1rem; color: var(--light-text-color); text-align: center; max-width: 600px; margin: 0 auto 1.5rem; line-height: 1.5; }
#booking-quiz-app .services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; transition: grid-template-columns var(--transition-speed) ease; }
#booking-quiz-app .service-card { background-color: var(--card-bg); border-radius: var(--border-radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; border: 2px solid var(--border-color); }
#booking-quiz-app .service-card.selected { border-color: var(--primary-color); }
#booking-quiz-app .media-container { position: relative; padding-top: 100%; overflow: hidden; }
#booking-quiz-app .media-container img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
#booking-quiz-app .service-card:hover .media-container img { transform: scale(1.05); }
#booking-quiz-app .service-info { padding: 0.75rem; display: flex; flex-direction: column; flex-grow: 1; position: relative; }
#booking-quiz-app .service-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; color: var(--text-color); }
#booking-quiz-app .service-price { font-size: 0.875rem; color: var(--light-text-color); margin-bottom: 1rem; }
#booking-quiz-app .details-toggle { color: var(--primary-color); font-weight: 600; margin-top: auto; font-size: 1em; }
#booking-quiz-app .details-toggle::after { content: ' ▾'; }
#booking-quiz-app .details-toggle.open::after { content: ' ▴'; }
#booking-quiz-app .masters-list { max-height: 0; overflow-y: auto; transition: max-height 0.5s ease-in-out; background: #000; }
#booking-quiz-app .master-item { display: flex; align-items: center; padding: 0.75rem; border-top: 1px solid var(--border-color); transition: background-color 0.3s ease; font-size: 0.9rem; color: var(--text-color); }
#booking-quiz-app .master-item:hover { background-color: var(--primary-light); }
#booking-quiz-app .master-item.selected { background-color: var(--primary-light); font-weight: 600; }
#booking-quiz-app .master-photo { width: 35px; height: 35px; border-radius: 50%; margin-right: 0.75rem; object-fit: cover; flex-shrink: 0; }
#booking-quiz-app .master-price { margin-left: auto; font-weight: 500; white-space: nowrap; padding-left: 10px; }
#booking-quiz-app .master-name { flex-grow: 1; word-break: break-word; }
#booking-quiz-app .quiz-controls { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem; }
#booking-quiz-app .quiz-btn { padding: 0.75rem 1.5rem; border-radius: var(--border-radius); font-size: 1rem; font-weight: 600; transition: all 0.3s ease; }
#booking-quiz-app .quiz-btn.primary { background-color: var(--primary-color); color: white; }
#booking-quiz-app .quiz-btn.secondary { background-color: var(--border-color); color: var(--text-color); }
#booking-quiz-app .quiz-btn:not(:disabled):hover { transform: translateY(-2px); }
#booking-quiz-app .final-step-container, #booking-quiz-app .success-message { background: var(--card-bg); padding: 2rem; border-radius: var(--border-radius); border: 1px solid var(--border-color); }
#booking-quiz-app .success-message { text-align: center; padding: 3rem 2rem; }
#booking-quiz-app .final-step-container { display: flex; gap: 2rem; flex-wrap: wrap; }
#booking-quiz-app .summary, #booking-quiz-app .contact-form { flex: 1; min-width: 300px; width: 100%; }
#booking-quiz-app .contact-form { flex: 1.5; }
#booking-quiz-app .summary h3, #booking-quiz-app .contact-form h3 { margin-bottom: 1.5rem; font-size: 1.2rem; font-weight: 600; }
#booking-quiz-app .summary-total { margin-top: 1.5rem; font-size: 1.2rem; font-weight: bold; text-align: right; }
#booking-quiz-app .form-group { margin-bottom: 1.5rem; }
#booking-quiz-app .form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
#booking-quiz-app .form-group input, #booking-quiz-app .form-group textarea { width: 100%; padding: 0.75rem; background: var(--border-color); border: 1px solid #555; border-radius: 8px; color: var(--text-color); font-size: 1rem; }
#booking-quiz-app .form-group input:focus, #booking-quiz-app .form-group textarea:focus { outline: none; border-color: var(--primary-color); }
@media (max-width: 992px) { #booking-quiz-app .services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
    #booking-quiz-app { padding: 0.5rem; }
    #booking-quiz-app .services-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    #booking-quiz-app .service-info { padding: 0.5rem; }
    #booking-quiz-app .service-title { font-size: 0.9rem; }
    #booking-quiz-app .service-price { font-size: 0.8rem; margin-bottom: 0.5rem; }
    #booking-quiz-app .step-title { font-size: 1.5rem; }
    #booking-quiz-app #filters-panel { flex-direction: column; align-items: stretch; }
    #booking-quiz-app .final-step-container { flex-direction: column; padding: 1rem; }
    #booking-quiz-app .service-card.mobile-full-width { grid-column: 1 / -1; }
}
#booking-quiz-app #filters-panel { background: var(--card-bg); padding: 1rem 1.5rem; border-radius: var(--border-radius); border: 1px solid var(--border-color); display: flex; gap: 1.5rem; align-items: center; }
#booking-quiz-app #search-input { flex-grow: 1; padding: 0.75rem; background: var(--border-color); border: 1px solid #555; border-radius: 8px; color: var(--text-color); font-size: 1rem; }
#booking-quiz-app #master-filters .filter-label { font-size: 0.9rem; color: var(--light-text-color); margin-right: 0.5rem; white-space: nowrap;}
#booking-quiz-app .master-filter-btn { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--border-color); background-color: var(--card-bg); color: var(--text-color); font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
#booking-quiz-app .master-filter-btn:hover { border-color: var(--primary-light); }
#booking-quiz-app .master-filter-btn.active { border-color: var(--primary-color); background-color: var(--primary-color); }
#booking-quiz-app .master-filters-wrapper { display: flex; align-items: center; gap: 8px; flex-grow: 1; min-width: 0; }
#booking-quiz-app .master-filters-container { display: flex; overflow-x: scroll; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
#booking-quiz-app .master-filters-container::-webkit-scrollbar { display: none; }
#booking-quiz-app #master-filters { display: flex; align-items: center; gap: 0.5rem; }
#booking-quiz-app .obp-scroller-arrow { width: 30px; height: 30px; border-radius: 50%; background-color: var(--border-color); color: var(--text-color); font-size: 20px; font-weight: bold; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background-color 0.2s; }
#booking-quiz-app .obp-scroller-arrow:hover { background-color: #555; }
.notification-toast { position: fixed; bottom: 1.5rem; left: 1.5rem; background-color: var(--card-bg); color: var(--text-color); padding: 1rem 1.5rem; border-radius: var(--border-radius); box-shadow: var(--shadow); border-left: 5px solid var(--primary-color); z-index: 99999; opacity: 0; transform: translateX(-100%); transition: opacity 0.5s ease, transform 0.5s ease; }
.notification-toast.show { opacity: 1; transform: translateX(0); }
.notification-toast.removed { border-left-color: var(--danger-color); }
#service-modal { background:#000 !important; opacity:0; visibility:hidden; position:fixed; inset:0; display:flex; align-items:flex-start; justify-content:center; padding:24px; overflow:auto; transition:opacity .25s ease, visibility 0s .25s;   overflow:auto !important; display:flex; align-items:flex-start; justify-content:center; padding:24px;    position: fixed; top: 0; left: 0; width: 100%; height: 100%;  display: flex; align-items: center; justify-content: center; z-index: 100000;   transition: opacity 0.3s ease, visibility 0s 0.3s; }
#service-modal.open { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }
.modal-content{     border-radius: var(--border-radius); padding: 2rem; max-width: 600px; width: 90%;  overflow-y: auto; position: relative; transform: scale(0.9); transition: transform 0.3s ease; }
#service-modal.open .modal-content{    transform: scale(1); }
.modal-close-btn { position:absolute; top:12px; right:12px; width:64px; height:64px; display:flex; align-items:center; justify-content:center; background:transparent; border:none; cursor:pointer; font-size:42px; line-height:1; color:#39ff14; text-shadow:0 0 6px currentColor,0 0 14px currentColor,0 0 28px currentColor; z-index: 2147483647; pointer-events:auto;  font-size: 3.25rem; width: 56px; height: 56px; line-height: 56px; text-align:center; color:#39ff14; text-shadow: 0 0 6px currentColor, 0 0 14px currentColor, 0 0 28px currentColor;  position: absolute; top: 1rem; right: 1rem;   }
.modal-image { width: 100%; height: auto; border-radius: var(--border-radius); margin-bottom: 1.5rem; }
.modal-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-color); border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; }
.modal-details { color: var(--light-text-color); line-height: 1.6; margin-bottom: 1.5rem; }
.modal-details p { margin-bottom: 1em; }
.modal-details strong { color: var(--text-color); font-weight: 600; }
.modal-details p:first-child { margin-top: 0; }
.modal-details p:last-child { margin-bottom: 0; }
#booking-quiz-app .view-details-overlay { position:absolute; bottom:8px; right:8px; padding:4px 10px; background:rgba(0,0,0,0.75); border-radius:999px; font-size:0.75rem; text-transform:uppercase; letter-spacing:0.03em; color:#fff; opacity:1; cursor:pointer; pointer-events:auto; }
#booking-quiz-app .service-card:hover .view-details-overlay { opacity:1; }
.fab { position: fixed; bottom: 2rem; right: 2rem; width: 60px; height: 60px; background-color: var(--primary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.5); z-index: 99998; }
.fab svg { width: 32px; height: 32px; fill: white; transition: opacity 0.3s ease, transform 0.3s ease; }
.fab .fab-icon { position: absolute; }
.fab .fab-icon.hidden { opacity: 0; transform: scale(0.5); }
.fab-badge { position: absolute; top: -5px; right: -5px; background-color: var(--danger-color); color: white; border-radius: 12px; padding: 2px 8px; font-size: 0.8rem; font-weight: 600; transform: scale(0); transition: transform 0.3s ease; }
.fab.active .fab-badge { transform: scale(1); }
@media (max-width: 768px) { .fab { width: 50px; height: 50px; bottom: 1rem; right: 1rem; } }
.summary-pill, .summary-item { display: flex; align-items: center; }
.delete-service-btn { font-size: 1.2rem; font-weight: bold; line-height: 1; margin-left: 0.5rem; padding: 0 0.25rem; }
.delete-service-btn:hover { color: var(--danger-color); }
.summary-item .delete-service-btn { margin-left: 1rem; }
.summary-item span { flex-grow: 1; }
.modal-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); }
.modal-gallery-image { width: 100%; height: 120px; object-fit: cover; border-radius: var(--border-radius); }
.view-details-overlay {
  background: rgba(0,0,0,0.45);
}
.view-details-overlay span {
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* Dark modal theme */
#service-modal { background:#000 !important; opacity:0; visibility:hidden; position:fixed; inset:0; display:flex; align-items:flex-start; justify-content:center; padding:24px; overflow:auto; transition:opacity .25s ease, visibility 0s .25s;   overflow:auto !important; display:flex; align-items:flex-start; justify-content:center; padding:24px;   }
.modal-title { color:#fff !important; }
.modal-details { color:#ccc !important; }
.modal-details a { color:#39ff14 !important; text-decoration: none; }
.modal-details a:hover { text-decoration: underline; }

.modal-content {  position: relative; }

/* === PRO Dark Modal Styles === */
#service-modal .modal-content{
  position:relative;
  width:min(960px,95%);
  max-width:960px;
  
  
  border-radius:12px;
  box-shadow:0 20px 60px rgba(0,0,0,.6);
  padding:24px 24px 28px;
}
#service-modal .modal-title{ color:#fff !important; margin:0 0 12px; font-weight:800; }
#service-modal .modal-details{ color:#ddd !important; line-height:1.7; }
#service-modal .modal-details p{ margin:0 0 12px; }
#service-modal .modal-details a{ color:#39ff14 !important; text-decoration:none; }
#service-modal .modal-details a:hover{ text-decoration:underline; }
#service-modal .modal-image{ width:100%; height:auto; border-radius:12px; margin-bottom:16px; }
#service-modal .modal-gallery{ display:grid; grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); gap:12px; margin-top:12px; }
#service-modal .modal-gallery img{ width:100%; height:120px; object-fit:cover; border-radius:10px; }
#service-modal .modal-close-btn{
  position:absolute; top:8px; right:8px;
  width:56px; height:56px; display:flex; align-items:center; justify-content:center;
  border:none; background:transparent; cursor:pointer;
  font-size:38px; line-height:1;
  color:#39ff14; text-shadow:0 0 6px currentColor,0 0 14px currentColor,0 0 28px currentColor;
  z-index:3; pointer-events:auto;
}
#service-modal .modal-close-btn:hover{ transform: scale(1.06); }

/* === Solid Black Modal (Pro) === */
#service-modal .modal-content{
  background:#000 !important;
  color:#f1f1f1 !important;
  position:relative;
  width:min(980px,96%);
  max-width:980px;
  max-height:90vh;
  overflow:auto;
  border-radius:12px;
  box-shadow:0 20px 60px rgba(0,0,0,.8);
  padding:20px 20px 28px;
}
#service-modal .modal-image{
  width:100%;
  height:auto;
  display:block;
  border-radius:10px;
  margin:0;
}
#service-modal .modal-close-row{
  display:flex;
  align-items:center;
  justify-content:center;
  margin:10px 0 14px;
}
#service-modal .modal-close-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:64px; height:64px;
  border:none; background:transparent; cursor:pointer;
  font-size:42px; line-height:1;
  color:#39ff14;
  text-shadow:0 0 6px currentColor,0 0 14px currentColor,0 0 28px currentColor;
}
#service-modal .modal-close-btn:active{ transform: scale(0.96); }
#service-modal .modal-title{ color:#fff !important; font-weight:800; margin:0 0 12px; }
#service-modal .modal-details{ color:#ddd !important; line-height:1.7; }
#service-modal .modal-details p{ margin:0 0 12px; }
#service-modal .modal-details a{ color:#39ff14 !important; text-decoration:none; }
#service-modal .modal-details a:hover{ text-decoration:underline; }


/* === Обновленная кнопка "об услуге" внутри карточки === */
#booking-quiz-app .media-container {
    position: relative;
}

#booking-quiz-app .view-details-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.78);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: none;
    opacity: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
}

#booking-quiz-app .view-details-overlay span {
    white-space: nowrap;
}

/* На всякий случай фиксируем поведение при ховере */
#booking-quiz-app .service-card:hover .view-details-overlay {
    opacity: 1;
}

/* === Низовая "корзина" с услугами === */
#cart-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99997;
    background: rgba(0, 0, 0, 0.92);
    border-top: 1px solid var(--border-color);
    padding: 8px 16px;
    display: none;
}

#cart-footer.visible {
    display: block;
}

#cart-footer .cart-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

#cart-footer .cart-services {
    flex: 1;
    font-size: 0.78rem;
    color: var(--light-text-color);
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-height: 3.2rem;
    overflow: hidden;
}

#cart-footer .cart-total {
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

/* "Чипы" с выбранными услугами */
#cart-footer .cart-service-chip {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    padding: 2px 8px;
    line-height: 1.3;
}

/* Небольшие отступы снизу, чтобы FAB не перекрывал корзину */
.fab {
    margin-bottom: 72px;
}

/* === Поп-ап: крестик под фото, без лишних отступов и пустого скролла === */
#service-modal .modal-content {
    max-height: min(90vh, 800px);
    overflow-y: auto;
}

/* Сбрасываем позиционирование крестика в угол и делаем его под фото */
#service-modal .modal-close-btn {
    position: static;
    top: auto;
    right: auto;
    margin: 0;
}

/* Мобильный режим: когда открыта секция мастеров — одна колонка, карточка на всю ширину */
#booking-quiz-app .services-grid.mobile-single-column {
    grid-template-columns: 1fr;
}
#booking-quiz-app .service-card.mobile-full-width {
    grid-column: 1 / -1;
}

/* Точки с инициалами мастеров */
#booking-quiz-app .master-filter-btn .master-filter-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Корзина: услуги скроллятся по горизонтали, всегда видны */
#cart-footer .cart-services {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    white-space: nowrap;
}
#cart-footer .cart-service-chip {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
#cart-footer .cart-chip-remove {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0 2px;
    color: var(--light-text-color);
}
#cart-footer .cart-chip-remove:hover {
    color: var(--danger-color);
}

/* Поп-ап: блокируем прокрутку страницы при открытии */
body.obp-modal-open {
    overflow: hidden !important;
}

/* ====== НОВЫЙ ПОП-АП "об услуге" (фикс: одинаково на ПК/мобиле, без скролла страницы) ====== */
html.obp-modal-open,
body.obp-modal-open {
    overflow: hidden !important;
    touch-action: none;
}

#obp-service-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

#obp-service-modal-overlay.open {
    display: flex;
}

#obp-service-modal-overlay .obp-service-modal {
    position: relative;
    width: min(920px, 100%);
    max-height: calc(100vh - 32px);
    background: #000;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    overflow: hidden;
}

#obp-service-modal-overlay .obp-service-modal-scroll {
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
}

#obp-service-modal-overlay .obp-modal-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 42px;
    line-height: 1;
    color: #39ff14;
    text-shadow: 0 0 6px currentColor, 0 0 14px currentColor, 0 0 28px currentColor;
    z-index: 2;
}

#obp-service-modal-overlay .obp-modal-image {
    width: 100%;
    height: auto;
    max-height: 45vh;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}

#obp-service-modal-overlay .obp-modal-title {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 12px;
}

#obp-service-modal-overlay .obp-modal-details {
    color: #ddd;
    line-height: 1.7;
}

#obp-service-modal-overlay .obp-modal-details p { margin: 0 0 12px; }

#obp-service-modal-overlay .obp-modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

#obp-service-modal-overlay .obp-modal-gallery-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
}

@media (max-width: 768px) {
    #obp-service-modal-overlay { padding: 0; }
    #obp-service-modal-overlay .obp-service-modal {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    #obp-service-modal-overlay .obp-service-modal-scroll {
        max-height: 100vh;
        padding: 16px;
    }
    #obp-service-modal-overlay .obp-modal-image { max-height: 50vh; }
}

/* Поп-ап: ограничиваем высоту изображения, чтобы оно не было огромным */
#service-modal .modal-image {
    max-height: 40vh;
    object-fit: cover;
}

/* На маленьких экранах чуть больше вертикали под фото */
@media (max-width: 768px) {
    #service-modal .modal-image {
        max-height: 45vh;
    }
}
