/* Базові стилі */
html {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box; /* Включаємо padding і border в загальну ширину/висоту елемента */
    font-family: 'Segoe UI', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

body {
    margin: 0;
    padding: 0;
    font-size: 16px; /* Базовий розмір шрифту */
    background-color: #f8f8f8;
}

.wrapper {
    max-width: 1920px; /* Обмеження ширини для десктопу */
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

a {
    text-decoration: none;
    color: #007F7F;
    transition: color 0.3s ease;
}

a:hover {
    color: #004d4d;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

p {
    margin: 0 0 1em 0;
}

ul {
    margin: 0 0 1em 20px;
    padding: 0;
    list-style: disc;
}

h1, h2, h3, h4, h5, h6 {
    color: #007F7F;
    margin-top: 1em;
    margin-bottom: 0.5em;
}

/* Header */
.site-header {
    background-color: #e0f2f2;
    padding: 10px 20px;
    border-bottom: 1px solid #ccc;
}

.header-content {
    display: flex;
    flex-wrap: wrap; /* Дозволяє елементам переноситись на новий рядок на малих екранах */
    align-items: center;
    justify-content: space-between;
    gap: 20px; /* Відстань між елементами */
}

.logo-link {
    flex-shrink: 0; /* Забороняє логотипу стискатись */
}

.logo {
    width: 250px; /* 150 777 Приклад розміру логотипу */
    height: auto;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap; /* Дозволяє пунктам меню переноситись */
    justify-content: center;
    gap: 15px; /* Відстань між пунктами меню */
}

.main-nav li a {
    display: block;
    padding: 8px 15px;
    color: #007F7F;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-nav li a:hover {
    background-color: #007F7F;
    color: #fff;
}

/* Hero Section */
.hero-section {
    position: relative;
    text-align: center;
    color: #fff;
}

.hero-image {
    width: 100%; /* 100 777 */
    height: auto; /* auto 300px 777 Фіксована висота для прикладу, можна зробити адаптивною */
    object-fit: cover; /* Зображення буде покривати весь контейнер */
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 8px;
}

.hero-text h1,
.hero-text h2,
.hero-text h3 {
    margin: 0.5em 0;
    color: #fff;
}

.hero-text h1 {
    font-size: 2.5em;
}

.hero-text h2 {
    font-size: 2em;
}

.hero-text h3 {
    font-size: 1.5em;
}

/* Marquee Section */
.marquee-section {
    width: 100%;
    overflow: hidden;
    background-color: #f0f0f0;
    padding: 10px 0;
    box-sizing: border-box;
    border-bottom: 2px solid teal;
    margin-bottom: 20px;
}

.marquee-container {
    white-space: nowrap;
}

.marquee-text {
    display: inline-block;
    animation: marquee-animation 15s linear infinite;
    color: teal;
    font-weight: normal;
    font-size: 1.5em; /* Зменшений розмір шрифту */
    padding-left: 100%; /* Починає текст за межами екрану */
}

@keyframes marquee-animation {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

/* Hotline Info */
.hotline-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    text-align: center;
}

.hotline-image {
    max-width: 400px;
    border-radius: 8px;
}

.hotline-text {
    max-width: 600px;
}

.attention-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #007F00;
    margin-bottom: 10px;
}

.attention-message {
    font-size: 1.8em;
    color: #007F00;
    margin-bottom: 15px;
}

.hotline-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #007F00;
    margin-bottom: 20px;
}

/* About Us Section */
.about-us {
    padding: 20px;
    text-align: center;
}

.about-us h2 {
    font-size: 2.2em;
    color: #000;
    margin-bottom: 20px;
}

.about-us-image {
    max-width: 1000px; /* 1060 1800 1920 777 */
    margin: 0 auto 30px auto;
    border-radius: 8px;
}

.about-text-blocks {
    text-align: left;
    max-width: 1000px; /* 800 700 600 777 */
    margin: 0 auto;
}

.about-text-blocks p {
    font-size: 1.1em;
    color: #000;
    margin-bottom: 1.5em;
}

.about-text-blocks h3 {
    font-size: 1.5em;
    color: #000;
    margin-top: 2em;
    margin-bottom: 1em;
}

.about-text-blocks ul {
    list-style: disc;
    margin-left: 20px;
}

.about-text-blocks li {
    font-size: 1.1em;
    color: #000;
    margin-bottom: 0.8em;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 30px 20px;
    background-color: #f0f8f8;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.action-buttons .button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #007F7F;
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.action-buttons .button:hover {
    background-color: #005f5f;
    transform: translateY(-2px);
}

/* Clinic News */
.clinic-news {
    padding: 30px 20px;
    text-align: center;
    background-color: #fff;
}

.clinic-news .attention-text {
    font-size: 1.8em;
    font-weight: bold;
    color: #FF0000;
}

.clinic-news .attention-text a {
    color: inherit; /* Успадковує колір від батьківського елемента */
    text-decoration: underline;
}

.clinic-news .attention-text a:hover {
    color: #cc0000;
}

/* Social Links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background-color: #e6f7f7;
    border-top: 1px solid #eee;
}

.social-links a {
    display: block;
    width: 120px; /* Фіксований розмір для іконок */
    height: 120px;
    border-radius: 75%; /* Для круглих іконок, якщо вони підтримують */
    overflow: hidden; /* Обрізає зайве для круглих іконок */
    transition: transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.social-links a:hover {
    transform: translateY(-3px);
}

.social-links img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Зображення буде покривати весь контейнер */
    border: none;
}

/* Additional Content */
.additional-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 30px 20px;
}

.info-block {
    flex: 2; /* Займає більше місця */
    min-width: 300px; /* Мінімальна ширина для блоку */
    text-align: center;
}

.info-block img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.sidebar-block {
    flex: 1; /* Займає менше місця */
    min-width: 250px; /* Мінімальна ширина для сайдбару */
    text-align: center;
}

.sidebar-block img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Footer */
.site-footer {
    background-color: #007F7F;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
}

.footer-wave {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px; /* Відступ від тексту футера */
}

/* Адаптивність */
@media (max-width: 1080px) { /* 789 777*/
    body {
        font-size: 14px; /* Зменшений розмір шрифту для мобільних */
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .main-nav li a {
        font-size: 2.5em; /* 14px Зменшений розмір шрифту для мобільних */
    }

    .hero-text h1 {
        font-size: 2.5em;
    }

    .hero-text h2 {
        font-size: 2.1em;
    }

    .hero-text h3 {
        font-size: 1.8em;
    }

    .marquee-text {
        font-size: 1.2em;
        animation-duration: 10s; /* Пришвидшуємо маркізу на мобільних */
    }

    .hotline-info {
        flex-direction: column;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .button {
        width: 90%;
    }

    .social-links {
        gap: 15px;
    }

    .social-links a {
        width: 120px;
        height: 120px;
    }

    .additional-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .site-header,
    .site-main,
    .site-footer {
        padding: 10px;
    }

    .hero-text h1 {
        font-size: 1.5em;
    }
    .hero-text h2 {
        font-size: 1.2em;
    }
    .hero-text h3 {
        font-size: 1em;
    }

    .marquee-text {
        font-size: 1em;
    }

    .hotline-number {
        font-size: 2em;
    }

    .clinic-news .attention-text {
        font-size: 1.4em;
    }
}