:root {
    --main-dark-gray: #323232;
    --accent-yellow: #FFD700;
    --white: #FFFFFF;
    --accent-red: #f85d5d;
    --black: #000000;
    --accent-green: #ABCC37;
    --light-gray-bg: #f9f2f4;
    --light-gray: #F0F0F0;
    --mid-gray: #505050;
    --neutral-gray: #bdbdbd;
}

/* Загальні стилі для всього сайту */
body {
    padding-top: 100px; /* Відступ під fixed-шапкою */
}

@media (max-width: 991px) {
    body {
        padding-top: 60px; /* Менший відступ для мобільних */
    }
}

/* === Шапка (header-top) === */
.header-top {
    background-color: #f8f9fa; /* Світлий фон */
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef; /* Лінія під шапкою */
    font-size: 14px;
    transition: transform 0.3s ease; /* Анімація при приховуванні */
    transform: translateY(0);
    position: relative;
    z-index: 9999;
}

.header-top.hidden {
    transform: translateY(-100%); /* Приховування шапки */
}

/* === Соціальні іконки === */
.header-top .bi-facebook,
.header-top .bi-twitter {
    font-size: 16px;
    color: #6c757d;
    margin-right: 10px;
    transition: color 0.3s ease;
}

.header-top .bi-facebook:hover,
.header-top .bi-twitter:hover {
    color: #495057; /* Темніший колір при наведенні */
}

/* === Адреса === */
.header-top .mdi-map-marker {
    color: #6c757d;
    font-size: 16px;
    margin-right: 5px;
}

.header-top a.text-dark {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-top a.text-dark:hover {
    color: #495057;
}

/* === Телефон === */
.header-top .mdi-cellphone-android {
    color: #6c757d;
    font-size: 16px;
    margin-right: 5px;
}

.header-top .text-bold {
    font-weight: 700;
}

/* === Navbar (меню) === */
#navbar {
    z-index: 9998;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Легка тінь */
}

.navbar-nav {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    list-style: none; /* Видалення маркерів списку */
    margin: 0;
    padding: 0;
}

.navbar-nav .menu-item a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--main-dark-gray);
    text-transform: none;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.navbar-nav .menu-item a:hover,
.navbar-nav .menu-item a:focus {
    color: var(--accent-yellow);
    text-decoration: underline;
}

.navbar-nav .menu-item a.active {
    color: var(--accent-yellow);
    font-weight: 700;
}

/* === Перемикач мов === */
.language-switcher {
    display: flex;
    gap: 10px;
    align-items: center;
}

.language-switcher ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
}

.language-switcher li {
    display: flex;
    align-items: center;
}

.language-switcher a {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    font-size: 14px;
    color: var(--main-dark-gray);
    transition: color 0.3s;
}

.language-switcher a:hover {
    color: var(--accent-yellow);
}

.language-switcher img {
    width: 20px;
    height: 15px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* === Карусель (додатково) === */
.carousel-item iframe {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* === Завантажувач сторінки === */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* === Логотип === */
.logo-light {
    max-width: 150px;
    transition: transform 0.5s ease;
}

.breathing-logo {
    animation: breathing 2s infinite ease-in-out;
}

@keyframes breathing {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Адаптивність для мобільних */
@media (max-width: 576px) {
    .header-top .container {
        flex-direction: column;
        text-align: center;
    }

    .header-top div {
        margin-bottom: 10px;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .navbar-nav .menu-item a {
        text-align: center;
        padding: 0.5rem 0;
    }
}

.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.card-img-top {
    border-bottom: 5px solid #f0f0f0;
    border-radius: 0;
}

.social-links .btn {
    margin-right: 5px;
}

.certificates img {
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-height: 150px;
}

.certificates h2 {
    color: #4B4B4D;
    text-transform: uppercase;
    font-weight: bold;
}

.clinic-hours {
    background-color: #f8f9fa;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 20px 0;
}

.clinic-hours h3 {
    margin-bottom: 10px;
    color: #333;
}

.clinic-hours p {
    margin: 0;
    color: #555;
    font-size: 16px;
}

