@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --primary-light: #e0f2fe;
    --accent: #0d9488;
    --accent-light: #ccfbf1;
    --bg-page: #f1f5f9;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border-soft: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 4px 10px -4px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 35px -10px rgba(2, 132, 199, 0.16);
    --radius-xl: 20px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    padding-top: 78px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-page);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

p, div {
    text-align: left;
    padding-top: 0px;
}

.center, .text-center {
    text-align: center !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin-top: 0;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* =====================================================
   HEADER & NAVIGATION (.dbg-*)
   ===================================================== */
header.navbar {
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 8px 25px -10px rgba(15, 23, 42, 0.08) !important;
}

header.navbar .navbar-inner {
    background: #d4e3edeb !important;
    border: 0;
    border-bottom: 1px solid #e5ddda !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
    min-height: 68px;
    padding: 0 15px;
}

header.navbar .navbar-inner > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0px;
    position: relative;
}

header.navbar #logo,
header.navbar a#logo,
header.navbar a#logo.pull-left {
    display: block;
    float: none;
    order: 1;
    margin-right: auto;
    margin-left: 0;
    width: 230px;
    height: 80px;
    background: url(../images/logo.png) no-repeat 0 50%;
    background-size: contain;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

header.navbar #logo:hover {
    transform: scale(1.03);
}

.dbg-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 42px;
    height: 38px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.dbg-burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #334155;
    border-radius: 2px;
}

.dbg-nav {
    order: 2;
}

.dbg-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2px;
}

.dbg-nav-item {
    position: relative;
}

.dbg-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 10px;
    font-family: 'Roboto', 'Open Sans', 'Segoe UI', Arial, sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #003579;
    border-radius: 6px;
    white-space: nowrap;
}

.dbg-nav-link:hover,
.dbg-nav-item.active > .dbg-nav-link,
.dbg-nav-item.dbg-has-sub:hover > .dbg-nav-link {
    color: #0284c7;
    background: rgba(2, 132, 199, 0.08);
}

.dbg-sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    list-style: none;
    margin: 6px 0 0;
    padding: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    z-index: 1050;
}

@media (min-width: 980px) {
    .dbg-nav-item.dbg-has-sub:hover > .dbg-sub-menu {
        display: block;
    }

    /* Запълва празнината между основния бутон и подменюто,
       за да не се затваря менюто при движение на мишката. */
    .dbg-sub-menu::before {
        content: "";
        position: absolute;
        top: -7px;
        left: 0;
        right: 0;
        height: 7px;
    }
}

.dbg-sub-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    border-radius: 6px;
}

.dbg-sub-menu li a:hover {
    background: #f0f9ff;
    color: #0284c7;
}

.dbg-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #6b2c25;
    color: #ffffff !important;
    padding: 7px 14px;
    margin-left: 6px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.dbg-login-btn:hover {
    background: #0284c7;
    color: #ffffff !important;
}

@media (max-width: 979px) {
    html,
    body {
        padding-top: 0 !important;
        margin-top: 0 !important;
        overflow-x: hidden !important;
    }

    header.navbar,
    header.navbar.navbar-fixed-top {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        z-index: 1030;
    }

    header.navbar .navbar-inner {
        min-height: 0 !important;
        height: auto !important;
        padding: 8px 12px !important;
    }

    header.navbar .navbar-inner > .container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    header.navbar #logo,
    header.navbar a#logo,
    header.navbar a#logo.pull-left {
        display: block !important;
        float: none !important;
        order: 1 !important;
        width: 220px !important;
        height: 80px !important;
        margin: 0 auto 0 0 !important;
        padding: 0 !important;
        background: url(../images/logo.png) no-repeat 0 50% !important;
        background-size: contain !important;
        flex-shrink: 0 !important;
    }

    .dbg-burger {
        display: flex !important;
        order: 2 !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }

    .dbg-nav {
        display: none !important;
        order: 3 !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        position: static !important;
        left: auto !important;
        right: auto !important;
        margin: 10px 0 0 !important;
        padding: 8px !important;
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 12px !important;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08) !important;
    }

    .dbg-nav.is-open {
        display: block !important;
    }

    .dbg-nav-list {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 2px;
    }

    .dbg-nav-item {
        width: 100% !important;
    }

    .dbg-nav-link {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding: 10px 12px !important;
        white-space: normal !important;
        word-break: break-word;
    }

    .dbg-sub-menu {
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 4px 0 6px !important;
        padding: 4px 0 4px 12px !important;
        background: #f8fafc !important;
        border: 0 !important;
        border-left: 2px solid #0284c7 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .dbg-nav-item.dbg-has-sub.is-open > .dbg-sub-menu {
        display: block !important;
    }

    .dbg-sub-menu li a {
        white-space: normal !important;
        padding: 8px 10px !important;
    }

    .dbg-login-btn {
        width: 100% !important;
        justify-content: center !important;
        margin: 8px 0 2px !important;
    }
    @media (max-width: 979px) {
  /* Скриване на картата при мобилен телефон
  .interactive-map-card {
        display: none !important;
    }
    */
    .bg-map-stage {
    position: relative;
    /* background: radial-gradient(circle at center, #f0f9ff 0%, #f8fafc 100%); */
    /* border: 1px solid #bae6fd; */
    border-radius: 16px;
   padding: 0px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
    
}

}

/* =====================================================
   TITLE BANNER & BREADCRUMB
   ===================================================== */
section.title {
    background: #f1f5f9 !important;
    border-bottom: 1px solid var(--border-soft) !important;
    padding: 16px 0 !important;
    margin-bottom: 24px !important;
    box-shadow: none !important;
}

section.title h1 {
    color: #1e293b !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

section.title .breadcrumb,
ul.breadcrumb {
    background: transparent !important;
    margin: 2px 0 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    text-align: right;
}

section.title .breadcrumb > li > a {
    color: var(--primary) !important;
    text-shadow: none !important;
}

section.title .breadcrumb > .active {
    color: var(--text-muted) !important;
    text-shadow: none !important;
}

.header-meta-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2px;
}

.crumb-home-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid var(--border-soft);
    color: var(--text-main) !important;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.crumb-home-pill:hover {
    background: var(--primary-light);
    color: var(--primary-dark) !important;
}

.lang-switcher-pills {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(15, 23, 42, 0.08);
    border: 1px solid var(--border-soft);
    padding: 4px;
    border-radius: 999px;
}

.lang-pill {
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--text-secondary) !important;
    transition: all 0.18s ease;
    line-height: 1.2;
}

a.lang-pill:hover {
    background: rgba(2, 132, 199, 0.12);
    color: var(--primary-dark) !important;
}

.lang-pill.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff !important;
}

.lang-pill.disabled {
    opacity: 0.45;
    cursor: default;
}

@media (max-width: 767px) {
    .header-meta-bar {
        justify-content: flex-start;
        margin-top: 14px;
    }
    section.title h1 {
        font-size: 18px !important;
    }
}

/* =====================================================
   HERO, CARDS, FORMS & WIDGETS
   ===================================================== */
.saas-hero {
    background: radial-gradient(circle at 85% 20%, rgba(13, 148, 136, 0.35), transparent 45%),
                linear-gradient(135deg, #0f172a 0%, #0369a1 55%, #0284c7 100%);
    color: #fff;
    padding: 52px 0 64px;
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
}

.saas-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #e0f2fe;
    margin-bottom: 16px;
}

.saas-hero h1 {
    color: #fff;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 14px;
    max-width: 720px;
}

.saas-hero p.lead-text {
    color: #cbd5e1;
    font-size: 17px;
    max-width: 640px;
    margin-bottom: 28px;
}

.hero-search-bar {
    background: #fff;
    padding: 10px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    max-width: 920px;
}

.hero-search-bar input[type="text"],
.hero-search-bar select {
    flex: 1 1 220px;
    margin: 0 !important;
    height: 48px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: var(--radius-md) !important;
    font-size: 15px !important;
    background: #f8fafc !important;
}

.hero-search-bar input[type="text"]:focus,
.hero-search-bar select:focus {
    background: #fff !important;
    border-color: var(--primary) !important;
}

.hero-search-bar button {
    height: 48px;
    padding: 0 28px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 26px;
}

.hero-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #e2e8f0;
}

.hero-stat-item strong {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-head h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
}

.section-head span.sub {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 14px;
    margin-bottom: 40px;
}

.spec-tile {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    transition: all 0.22s ease;
    color: var(--text-main);
}

.spec-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    color: var(--primary);
}

.spec-tile-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.spec-tile:hover .spec-tile-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
}

.spec-tile-title {
    font-weight: 700;
    font-size: 14.5px;
    line-height: 1.3;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 22px;
    margin-bottom: 44px;
}

.doctor-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #bae6fd;
}

.doctor-card-media {
    position: relative;
    height: 190px;
    background: #e2e8f0;
    overflow: hidden;
}

.doctor-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.doctor-card:hover .doctor-card-media img {
    transform: scale(1.04);
}

.doctor-badge-top {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}

.doctor-badge-nhif {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: #dcfce7;
    color: #166534;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

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

.doctor-card-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-main);
}

.doctor-card-spec {
    font-size: 13.5px;
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 10px;
}

.doctor-card-addr {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 18px;
    flex: 1;
}

.doctor-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.well, .box, .registration-form {
    background-color: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 10px;
    margin-bottom: 24px;
    background-image: none;
}

aside .widget {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    margin-bottom: 22px;
}

aside .widget > h3 {
    font-size: 16px;
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 2px solid #f1f5f9;
}

.btn {
    border-radius: var(--radius-sm);
    border: 0;
    background-image: none;
    text-shadow: none;
    box-shadow: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    padding: 10px 18px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #0369a1);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0369a1, var(--accent));
    color: #fff;
}

select, textarea, input[type="text"], input[type="password"], input[type="email"], input[type="search"], input[type="tel"] {
    border-radius: var(--radius-sm);
    box-shadow: none;
    min-height: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1.5px solid #cbd5e1;
    background-color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
}

textarea {
    height: auto;
    padding: 12px 14px;
}

/* =====================================================
   FOOTER
   ===================================================== */
#footer {
    background: #0f172a;
    padding: 40px 10px 0 10px;
    color: #94a3b8;
    margin-top: 48px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

#footer a {
    color: #cbd5e1;
}

#footer a:hover {
    color: #38bdf8;
}

#footer #gototop {
    height: 42px;
    line-height: 42px;
    width: 42px;
    text-align: center;
    display: inline-block;
    background: #1e293b;
    border-radius: var(--radius-sm);
    color: #fff;
}

ul.social {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

ul.social > li {
    display: inline-block;
    margin: 0 5px;
}

ul.social > li > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1e293b;
    color: #cbd5e1;
}

ul.social > li > a:hover {
    background: var(--primary);
    color: #fff;
}
@media (max-width: 979px) {
    .command-hero-top > div:first-child {
        text-align: center !important;
    }

    .command-hero-badge {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin: 0 auto 6px !important;
    }
    .command-hero {
  padding: 0px 0 0 !important;
}
}
@media (max-width: 767px) {

    .command-hero-top > div:last-child {
        display: flex;
        justify-content: center;
        width: 100%;
        text-align: center !important;
    }

    .header-meta-bar {
        float: none !important;
        margin: 0 auto !important;
    }
}
@media (max-width: 767px) {
    .bg-map-stage {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
        padding: 0 !important;
        margin: 0 !important;
        text-align: left !important;
    }

    .bg-map-wrapper {
        position: relative !important;
        display: block !important;
        width: 540px !important;
        min-width: 540px !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        left: 0 !important;
        transform: none !important;
    }

    #bgMapImg {
        display: block !important;
        float: none !important;
        position: static !important;
        width: 540px !important;
        max-width: none !important;
        min-width: 540px !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
    }

    #mapHighlightSvg {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 540px !important;
        height: 100% !important;
        pointer-events: none;
    }
}
.well, .box, .registration-form {

   

}
.interactive-map-card {

    padding: 15px 10px 15px 10px!important; 
}

/* =====================================
   MOBILE HEADER - FULL SCREEN WIDTH
   ===================================== */

@media screen and (max-width: 767px) {

    html,
    body {
        overflow-x: hidden;
    }

    header.navbar.navbar-fixed-top {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    header.navbar.navbar-fixed-top .navbar-inner {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    header.navbar.navbar-fixed-top .container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }
}
@media screen and (max-width: 767px) {
    body {
        padding-top: 80px !important;
        
    }
    .command-hero {

    padding: 20px 0 0 !important;

}

.gallery-main img {
    object-fit: fill!important;

}