/* =====================================================
   HEAR-LAND1 · modals.css
   Pattern: sugar-zpravy.latte (.custom-model-main)
   ===================================================== */

.custom-model-main {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
.custom-model-main.open { display: flex; }

.bg-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(9, 30, 43, 0.65);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.custom-model-inner {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    max-width: 700px;
    width: 92%;
    max-height: 82vh;
    overflow-y: auto;
    z-index: 10001;
    box-shadow: 0 24px 80px rgba(0,0,0,0.28);
    animation: modal-in 0.25s ease;
    scrollbar-width: thin;
    scrollbar-color: #cce0e9 transparent;
}
.custom-model-inner::-webkit-scrollbar { width: 5px; }
.custom-model-inner::-webkit-scrollbar-track { background: transparent; }
.custom-model-inner::-webkit-scrollbar-thumb { background: #cce0e9; border-radius: 3px; }

@keyframes modal-in {
    from { opacity: 0; transform: scale(0.94) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.close-btn {
    position: sticky;
    top: 0;
    float: right;
    font-size: 1.6rem;
    line-height: 1;
    padding: 14px 18px 10px;
    cursor: pointer;
    color: #7a9aaa;
    background: white;
    z-index: 10002;
    transition: color 0.15s;
    user-select: none;
}
.close-btn:hover { color: #0d4b6e; }

.custom-model-wrap { padding: 0 34px 36px; clear: both; }

/* Content typography */
.pop-up-content-wrap h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: #0d4b6e;
    margin-bottom: 18px;
    line-height: 1.25;
}
.pop-up-content-wrap h3 {
    font-family: 'Nunito Sans', Arial, sans-serif;
    font-size: 0.97rem;
    font-weight: 700;
    color: #1a7a8a;
    margin: 22px 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.pop-up-content-wrap p {
    font-size: 0.93rem;
    color: #3d5668;
    line-height: 1.72;
    margin-bottom: 10px;
}
.pop-up-content-wrap ul {
    padding-left: 18px;
    margin-bottom: 10px;
}
.pop-up-content-wrap li {
    font-size: 0.91rem;
    color: #3d5668;
    line-height: 1.65;
    margin-bottom: 6px;
}
.pop-up-content-wrap a { color: #1a7a8a; text-decoration: underline; }
.pop-up-content-wrap a:hover { color: #0d4b6e; }
