:root {
    --primary-color: #003049;
    --secondary-color: #666666;
    --accent-color: #669BBC;
    --white: #FFFFFF;
    --background: white;
    --text-color: white;
    --light-text: #D1D5DB;
    --dark-bg: rgba(17, 24, 39, 0.9);
    --border-color: #E5E7EB;
    --light-gray: #F7F7F7;
    --accent-light: #AFD4E9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Geometria', sans-serif;
    scroll-behavior: smooth;
}
#desktop-question, #rehabilitation-info, #desktop-ways, #desktop-departments, #desktop-adv, #desktop-partners, #desktop-education, #desktop-cop, #desktop-blog, #desktop-question {
    scroll-margin-top: 100px;
}
h1, h2 {
    font-family: 'Philosopher', sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.5;
}


/* Header styles */
.header {
    width: 100%;
    z-index: 1000;
    background-color: rgba(55, 65, 74, 0.8);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 20px;
}

.header-logo {
    flex: 0 0 auto;
}

.logo img {
    max-width: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.header-social {
    flex: 0 0 auto;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    color: var(--white);
    font-size: 16px;
    transition: color 0.3s;
}

.social-link:hover {
    color: var(--accent-color);
}

.header-contact {
    flex: 0 0 auto;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.location {
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.location i {
    color: var(--accent-color);
    font-size: 18px;
    margin-top: 3px;
}

.address {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    font-weight: 400;
    line-height: 100%;
}

.phone {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phone-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.phone i {
    color: var(--accent-color);
    font-size: 18px;
}

.phone a {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition: color 0.3s;
}

.phone a:hover {
    color: var(--accent-color);
}

.btn-callback {
    background-color: #AFD4E9;
    text-decoration: none;
    color: black;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 14px;
    height: 54px;
    font-weight: 700!important;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-callback-footer{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #AFD4E9;
    text-decoration: none;
    color: black;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 222px;
    height: 54px;
}

.btn-callback:hover {
    background-color: #5E8399;
    color: white;
}

.btn-callback-footer:hover {
    background-color: #5E8399;
    color: white;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--white);
    cursor: pointer;
}

.header-nav {
    position: relative;
    padding-top: 20px;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.main-nav {
    width: 100%;
}

.nav-list {
    display: flex;
    justify-content: center;
    gap: 40px;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.9;
    transition: opacity 0.3s;
    text-transform: uppercase;
    font-weight: 400;
    font-family: 'Geometria', sans-serif;
    white-space: nowrap;
}

.nav-link:hover {
    opacity: 1;
}

/* Navigation dropdown styles */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    padding: 20px;
    min-width: 300px;
    margin-top: 15px;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-column {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    position: relative;
    width: 100%;
}

.dropdown-item {
    color: var(--primary-color);
    text-decoration: none;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
}

.dropdown-item:hover {
    color: var(--accent-color);
}

.dropdown-item i {
    font-size: 12px;
    margin-left: 5px;
}

/* Submenu styles */
.submenu {
    position: absolute;
    left: 100%;
    top: 0;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 101;
    display: flex;
    flex-direction: column;
}

.has-submenu {
    position: relative;
}

.has-submenu:hover + .submenu,
.submenu:hover {
    opacity: 1;
    visibility: visible;
}

.submenu .dropdown-item {
    text-transform: none;
    font-weight: normal;
}

/* Hero section */
/* Десктопна версія */
.desktop-hero {
    display: block;
}

.mobile-hero {
    display: none;
}

.hero-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 100vh;
}

.hero-slider {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.6s ease;
}

.hero-slide {
    flex: 0 0 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(94, 131, 153, 0) 0%, rgba(94, 131, 153, 0.7) 70%, rgba(94, 131, 153, 1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    margin-top: 150px;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-title {
    font-size: 64px;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    font-family: 'Philosopher', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}
.text-container {
    position: relative;
}

.text-content {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    max-height: 150px;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-right: 20px;
}
.text-content.expanded {
    max-height: 500px;
    overflow-y: auto;
}

.text-content.expanded::-webkit-scrollbar {
    width: 6px;
}

.text-content.expanded::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.text-content.expanded::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.text-content.expanded::-webkit-scrollbar-thumb:hover {
    background: #555;
}
.hero-description {
    font-size: 20px;
    color: white;
    margin-bottom: 30px;
    line-height: 110.00000000000001%;
    font-family: 'Geometria', sans-serif;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0%;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-btn {
    display: flex;
    padding: 20px 30px;
    border-radius: 30px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    width: 200px;
    height: 56px;
    justify-content: center;
    align-items: center;
}

.hero-btn-primary {
    background-color: white;
    color: black;
}

.hero-btn-primary:hover {
    background-color: lightblue;
    color: black;
}

.hero-btn-secondary {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.hero-btn-secondary:hover {
    background-color: white;
    color: #333;
}

.hero-navigation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    gap: 300px;
    justify-content: space-around;
    align-items: center;
    padding: 0 30px;
    z-index: 3;
    pointer-events: none;
}

.hero-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #AFD4E9;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.hero-arrow:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.hero-pagination {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 3;
    padding-top: 30px;
    border-top: 2px solid lightgrey;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background-color: #AFD4E9;
    transform: scale(1.3);
}

/* Мобільна версія */
@media (max-width: 768px) {
    .desktop-hero {
        display: none;
    }

    .mobile-hero {
        display: block;
        position: relative;
        height: 100vh;
        overflow: hidden;
    }

    .mobile-slider {
        width: 100%;
        height: 100%;
        display: flex;
        transition: transform 0.6s ease;
    }

    .mobile-slide {
        flex: 0 0 100%;
        position: relative;
        background-size: cover;
        background-position: center;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        padding-bottom: 80px;
    }

    .mobile-slide::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, rgba(94, 131, 153, 0) 0%, rgba(94, 131, 153, 0.7) 70%, rgba(94, 131, 153, 1) 100%);
        z-index: 1;
    }

    .mobile-content {
        position: relative;
        z-index: 2;
        text-align: center;
        color: white;
        padding: 0 20px;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-bottom: 40px;
    }

    .mobile-title {
        font-size: 32px;
        margin-bottom: 20px;
        line-height: 1.3;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
        font-weight: 600;
    }

    .mobile-description {
        font-size: 16px;
        margin-bottom: 25px;
        line-height: 1.5;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }

    .mobile-btn {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 12px 40px;
        border-radius: 30px;
        text-decoration: none;
        text-transform: uppercase;
        font-weight: 600;
        font-size: 14px;
        letter-spacing: 1px;
        transition: all 0.3s ease;
        background-color: #AFD4E9;
        color: black;
        margin-bottom: 15px;
        width: 200px;
        height: 54px;
    }

    .mobile-navigation-container {
        position: absolute;
        bottom: 40px;
        left: 0;
        width: 100%;
        z-index: 5;
        display: flex;
        justify-content: space-around;
        align-items: center;
        gap: 20px;
    }

    .mobile-arrow {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        background-color: #AFD4E9;
        color: black;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 14px;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .mobile-pagination {
        display: flex;
        justify-content: center;
        gap: 8px;
    }
    
    .mobile-blog-pagination {
        display: flex;
        justify-content: center;
        gap: 8px;
    }

    .mobile-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .mobile-dot.active {
        background-color: #AFD4E9;
        transform: scale(1.3);
    }
}

.search-box {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-box input {
    flex: 1;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 1rem;
}

/* Button styles */
.btn {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

/* Hero button styles */
.slide-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.slide-buttons .btn {
    min-width: 180px;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.slide-buttons .btn:first-child {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.slide-buttons .btn:first-child:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.slide-buttons .btn:last-child {
    background-color: white;
    color: #5E8399;
    border: 2px solid white;
}

.slide-buttons .btn:last-child:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Hero Slider */

.swiper-slide {
    position: relative;
    height: 100%;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(94, 131, 153, 0) 0%, 
        rgba(94, 131, 153, 0.7) 70%, 
        rgba(94, 131, 153, 1) 100%);
    z-index: 1;
}

.slide-content {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 2;
    width: 90%;
    max-width: 800px;
    padding: 0 50px;
}

.slide-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.slide-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.slide-buttons .btn {
    min-width: 180px;
}

.container {
    padding: 0 5% 0 5%;
}

.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 60% !important;
    transform: translateY(-50%);
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    color: var(--white) !important;
    transition: opacity 0.3s ease;
    opacity: 0.7;
    border: none;
    background: none;
    z-index: 20;
}

.swiper-button-prev {
    left: 20% !important;
}

.swiper-button-next {
    right: 20% !important;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    content: '' !important;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.swiper-button-prev:after {
    background-image: url('../img/right-arrow.png');
    transform: rotate(180deg);
}

.swiper-button-next:after {
    background-image: url('../img/right-arrow.png');
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    opacity: 1;
}

@media (max-width: 1000px) {
    .slide-content {
        max-width: 600px;
        padding: 0 40px;
    }
}

/* Mobile Hero Slider Styles */
@media (max-width: 768px) {

/* Приховуємо стандартні елементи Swiper на мобільних */
    .swiper-button-prev,
    .swiper-button-next {
        display: none !important;
    }


    .slide-content {
        max-width: 100%;
        padding: 0 40px;
    }

    .slide-content h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .slide-content p {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 20px;
    }

    .slide-buttons .btn:nth-child(2) {
        display: none;
    }

    .slide-buttons .btn {
        background-color: #AFD4E9;
        color: black;
        border: none;
        border-radius: 30px;
        padding: 10px 25px;
        font-size: 14px;
        font-weight: 500;
    }

    .slide-buttons .btn:hover {
        background-color: #5E8399;
        color: white;
    }
}

.pagination-wrapper {
    position: relative;
    padding-top: 2rem;
    text-align: center;
}

.pagination-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--white);
    opacity: 0.3;
}

.swiper-pagination {
    position: static;
    margin-top: 1rem;
}

.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet, .swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{
    border: 2px solid #AFD4E9;
}

.rehabilitation-directions .directions-pagination .swiper-pagination-bullet-active {
    background-color: #AFD4E9 !important; 
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--white);
    opacity: 0.5;
    margin: 0 6px !important;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--white);
}

@media (max-width: 1200px) {
    .swiper-button-prev {
        left: 20px;
    }
    .btn-callback {
        height: 36px;
    }
    .swiper-button-next {
        right: 20px;
    }
}

@media (max-width: 768px) {

    .swiper-button-prev,
    .swiper-button-next {
        width: 40px !important;
        height: 40px !important;
    }

    .swiper-button-prev:after,
    .swiper-button-next:after {
        font-size: 1rem !important;
    }

    .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 4px !important;
    }
}

@media (max-width: 768px) {
    
    .search-box {
        flex-direction: column;
    }
}

/* Featured books section */
.featured-books {
    padding: 4rem 0;
}

.featured-books h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: auto;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    align-self: flex-end;
}

.read-more i {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* Rehabilitation Info Section */
.rehabilitation-info {
    padding: 35px 0;
    background-color: var(--white);
}

.info-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.info-text-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-header {
    margin-bottom: 40px;
}

.info-header h2 {
    font-size: 48px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.text-with-decor {
    padding-left: 50px;
    position: relative;
}

.text-with-decor::before {
    content: '';
    width: 2px;
    height: calc(100% - 34px);
    background: #AFD4E9;
    position: absolute;
    top: 0;
    left: 13px;
}
.text-with-decor::after {
    content: '';
    width: 22px;
    height: 22px;
    border: 2px solid #AFD4E9;
    position: absolute;
    bottom: 0;
    left: 0;
    border-radius: 100%;
}

.info-text {
    max-width: 100%;
}

.main-description, .additional-description {
    font-size: 18px;!important;
    line-height: 110.00000000000001%;
    color: #37414A;
}
.advantages1 {
    width: 742px;
    height: 746px;
}
.info-gallery {
    flex: 1;
}

.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-row {
    display: flex;
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 569px;
    height: 745px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}


@media (max-width: 992px) {
    .info-content {
        flex-direction: column-reverse;
    }
    
    .info-text-container {
        width: 100%;
        margin-top: 40px;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .main-description, .additional-description{
        font-size: 16px!important;
    }
    .rehabilitation-info {
        padding: 50px 0;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        gap: 15px;
    }
    
    /* Override the column direction to keep the original structure */
    .gallery-row {
        flex-direction: row;
        height: auto;
        gap: 15px;
    }
    
    .top-row, .bottom-row {
        height: auto;
    }
    
    .gallery-item {
        height: 350px;
        width: 100%;
    }
    
    .top-row .gallery-item:last-child {
        margin-top: 30px;
    }
}

/* Rehabilitation Directions Section */
.rehabilitation-directions {
    padding: 40px 0;
    background-color: white;
}

.rehabilitation-directions .container {
    padding: 0;
}

.rehabilitation-directions h2 {
    font-size: 48px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 60px;
}

.directions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.direction-item {
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.direction-image {
    position: relative;
    height: 560px;
    overflow: hidden;
}

.direction-image:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(85, 136, 153, 0) 0%, 
        rgba(85, 136, 153, 0.5) 90%, 
        rgba(85, 136, 153, 1) 100%);
    z-index: 1;
    pointer-events: none;
}

.direction-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.direction-item:hover .direction-image img {
    transform: scale(1.05);
}

/* Title at the bottom of the image */
.direction-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    z-index: 2;
}

.direction-title h3 {
    color: var(--white);
    font-size: 20px;
    margin: 0;
    text-align: center;
}

/* Hover overlay */
.direction-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
    background: rgba(55, 65, 74, 0.85);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.direction-item:hover .direction-overlay {
    opacity: 1;
}

.direction-overlay h3 {
    color: var(--white);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.direction-overlay p {
    color: var(--white);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 80%;
}

.btn-details {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 10px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-details:hover {
    background-color: #5589a7;
}

@media (max-width: 1200px) {
    .directions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-item img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .directions-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .direction-image {
        height: 350px;
    }
    
    /* Slider styles for mobile */
    .directions-button-next,
    .directions-button-prev,
    .directions-pagination {
        display: flex;
    }
    
    .directions-slider {
        overflow: hidden;
        position: relative;
        padding-bottom: 50px;
    }
    
    .directions-button-next,
    .directions-button-prev {
        color: var(--primary-color);
        width: 40px;
        height: 40px;
    }
    
    .directions-button-next:after,
    .directions-button-prev:after {
        font-size: 20px;
    }
    
    .directions-pagination {
        bottom: 10px;
    }
    
    .directions-pagination .swiper-pagination-bullet {
        background: var(--accent-color);
        opacity: 0.5;
    }
    
    .directions-pagination .swiper-pagination-bullet-active {
        opacity: 1;
        background: var(--accent-color);
    }
}

@media (min-width: 769px) {
    /* Hide slider elements on desktop */
    .directions-button-next,
    .directions-button-prev,
    .directions-pagination {
        display: none !important;
    }
    
    .directions-grid {
        display: grid;
    }
    
    .directions-grid .swiper-wrapper {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }
    
    .directions-grid .swiper-slide {
        width: 100% !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 1200px) and (min-width: 769px) {
    .directions-grid .swiper-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Departments Section */
.departments {
    padding: 80px 0;
    background-color: var(--white);
}

.departments-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

.departments-left {
    display: flex;
    flex-direction: column;
}

.departments h2 {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.departments-tabs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tab-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.tab-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.tab-item.active {
    background-color: rgba(0, 0, 0, 0.05);
}

.tab-dot {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
    position: relative;
}

.tab-item.active .tab-dot::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--accent-color);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.tab-content {
    flex-grow: 1;
}

.tab-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.tab-description {
    display: none;
}

.tab-item.active .tab-description {
    display: block;
}

.tab-description p {
    font-size: 18px;
    font-weight: 400;
    line-height: 110.00000000000001%;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.card-text {
    font-size: 18px;
}

.details-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition: color 0.2s;
}

.details-link:hover {
    color: var(--secondary-color);
}

.details-link i {
    font-size: 12px;
}

.departments-image {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.departments-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Стилі для секції відділень з різними фотографіями */
.departments-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.department-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: none;
}

.department-image-container.active {
    opacity: 1;
    display: block;
}

.department-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 992px) {
    .rehabilitation-directions {
        padding: 0;
    }
    .departments-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .departments-image {
        max-height: 400px;
    }
}

@media (max-width: 576px) {
    .rehabilitation-directions h2, .departments h2 {
        text-align: center;
        padding: 0 15px;
    }
    .departments {
        padding: 60px 0;
    }
    
    .departments h2 {
        font-size: 32px;
        margin-bottom: 30px;
        display: flex;
        justify-content: center;
    }
    
    .tab-item {
        padding: 12px;
    }
    
    .tab-content h3 {
        font-size: 16px;
    }
    
    .tab-description p {
        font-size: 14px;
    }
}

/* Floating contact buttons */
.floating-contacts {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    transition: transform 0.2s;
}

.contact-button:hover {
    transform: scale(1.1);
}

.contact-button i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .info-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gallery-grid {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .rehabilitation-info {
        padding: 0;
    }
    .rehabilitation-directions h2 {
        font-size: 32px;
        margin-top: 40px;
        margin-bottom: 30px;
    }
    .info-header h2 {
        font-size: 2rem;
        text-align: center;
    }
    .info-header {
        margin-bottom: 30px;
    }

    .main-description,
    .additional-description {
        font-size: 16px;
    }

    .nav-links {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
    .floating-contacts{
        top: 60%;
        right: 0;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* FAQ Section */
.faq {
    padding-top: 40px;
    padding-bottom: 120px;
    background-color: var(--white);
}

.faq h2 {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.faq-question span {
    font-size: 24px;
    font-weight: 500;
    color: var(--primary-color);
    padding-right: 2rem;
}

.faq-question i {
    font-size: 1rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
    color: var(--secondary-color);
    line-height: 1.6;
    padding-bottom: 1.5rem;
}

.faq-answer a {
    color: var(--accent-color);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

.faq-item.active .faq-question span {
    font-weight: 700;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

@media (max-width: 768px) {
    .education {
        padding: 60px 0;
    }
    .faq {
        padding: 20px 0 60px 0;
    }

    .faq h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .faq-question span {
        font-size: 18px;
        padding-right: 1rem;
    }

    .faq-answer p {
        font-size: 0.9rem;
    }
}

/* Advantages Section */
.advantages {
    padding-top: 40px;
    padding-bottom: 120px;
    background-color: var(--white);
}

.advantages-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
    overflow: hidden;
}

.advantages-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}

.second-column {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.third-column {
    padding: 3rem;
}

.image-item {
    display: flex;
    justify-content: end;
}

.image-item.centered {
    height: 100%;
    display: flex;
    align-items: center;
}

.image-item img {
    height: auto;
    display: block;
    object-fit: cover;
}

.advantages-list h2 {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.advantage-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.advantage-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.advantage-icon {
    width: 48px;
    height: 48px;
    background-color: #AFD4E9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.advantages-photo {
    display: flex;
}

.advantage-icon i {
    font-size: 1.5rem;
    color: var(--white);
}
.advantage-icon .img-home {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.advantage-text h3 {
    font-size: 24px;
    font-weight: 400;
    color: var(--primary-color);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .advantages-content {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .advantages-column.first-column, 
    .advantages-column.second-column {
        display: inline-block;
        vertical-align: top;
        width: 50%;
        max-width: 50%;
    }
    
    .advantages-column.first-column {
        padding-right: 0.5rem;
        display: flex;
    }
    
    .advantages-column.second-column {
        padding-left: 0.5rem;
    }
    
    .advantages-column.third-column {
        width: 100%;
        padding: 1.5rem 1rem;
    }
    
    .image-item img {
        max-width: 100%;
        height: auto;
    }
    
    .advantage-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }
    
    .advantage-icon i {
        font-size: 1.1rem;
    }

    
    .advantage-text h3 {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .advantage-items {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .advantages {
        padding: 2rem 0;
    }
    .education h2 {
        font-size: 32px!important;
        margin-bottom: 30px!important;
    }
    .circle-title h2 {
        font-size: 32px!important;
    }
    
    .advantages-list h2 {
        font-size: 32px;
        margin-bottom: 0;
        text-align: center;
    }
    
    .advantage-items {
        gap: 0.75rem;
    }
    
    .advantage-text h3 {
        font-size: 18px;
    }
    
    .advantage-icon {
        width: 30px;
        height: 30px;
        min-width: 30px;
    }
    
    .advantage-icon i {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .advantages-column.third-column {
        padding: 1rem 0.75rem;
    }
    .education {
        padding: 40px 0 !important;
    }
    .advantage-item {
        align-items: flex-start;
    }
    
    .advantage-icon {
        margin-top: 0.1rem;
    }
}

/* Education Section */
.education {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.education h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 48px;
    color: var(--primary-color);
    font-weight: 700;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.education-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-image img {
    width: 100%;
    height: auto;
    display: block;
}

.card-content {
    padding: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-header h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin: 0;
}

.card-text p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    .education-card {
        margin-bottom: 30px;
    }
    
    .education-card:last-child {
        margin-bottom: 0;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Education Section Mobile Styles */
@media (max-width: 768px) {
    /* Hide the desktop grid on mobile */
    .education .education-grid {
        display: none;
    }
    
    /* Show the slider on mobile */
    .education-slider-container {
        display: block;
        position: relative;
    }
    
    /* Style the mobile title */
    .education-title-mobile {
        margin-bottom: 20px;
        text-align: center;
    }
    
    .education-title-mobile h2 {
        font-size: 28px;
        color: var(--primary-color);
    }
    
    .education-slider .swiper-slide {
        height: auto;
    }
    
    .education-slider .education-card {
        width: 100%;
        margin: 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    
    .education-slider .card-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    
    .education-slider .card-content {
        padding: 15px;
    }
    
    .education-pagination {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        text-align: center;
    }
    
    .education-pagination .swiper-pagination-bullet {
        background: var(--accent-color);
        opacity: 0.5;
    }
    
    .education-pagination .swiper-pagination-bullet-active {
        opacity: 1;
        background: var(--accent-color);
    }
}

/* Hide the slider on desktop */
@media (min-width: 769px) {
    .education-slider-container {
        display: none;
    }
}

/* Cooperation Section */
.cooperation {
    padding: 6rem 0;
    position: relative;
    color: black;
    overflow: hidden;
}

.cooperation-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/spivBack.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.cooperation-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    z-index: -1;
}

.cooperation h2 {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #37414A;
}

.cooperation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cooperation-card {
    background: #FFFFFFE5;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s;
    position: relative;
}
.cooperation-card-link {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}
.cooperation-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    width: 64px;
    height: 64px;
    background-color: #AFD4E9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.card-icon i {
    font-size: 1.75rem;
    color: var(--white);
}

.cooperation-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #37414A;
}

.cooperation-card p {
    font-size: 18px;
    font-weight: 400;
    line-height: 110%;
    color: #37414A;
    opacity: 0.9;
}

@media (max-width: 1024px) {
    .cooperation-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .cooperation-card:last-child {
        grid-column: span 2;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .cooperation {
        padding: 1rem 0;
    }

    .cooperation h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .cooperation-grid {
        grid-template-columns: 1fr;
    }

    .cooperation-card:last-child {
        grid-column: span 1;
    }

    .cooperation-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .card-icon {
        width: 56px;
        height: 56px;
    }

    .card-icon i {
        font-size: 1.5rem;
    }

    .cooperation-card h3 {
        font-size: 1.25rem;
    }

    .cooperation-card p {
        font-size: 0.9rem;
    }
}

/* Cooperation Section Mobile Styles */
@media (max-width: 768px) {
    /* Hide the desktop grid on mobile */
    .cooperation .cooperation-grid {
        display: none;
    }
    
    /* Show the slider on mobile */
    .cooperation-slider-container {
        display: block;
        position: relative;
        padding-bottom: 40px;
    }
    
    .cooperation-slider .swiper-slide {
        height: auto;
        display: flex;
        justify-content: center;
    }
    
    .cooperation-slider .cooperation-card {
        width: 100%;
        margin: 0;
        padding: 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        text-align: center;
        background-color: #fff;
        border-radius: 8px;
    }
    
    .cooperation-slider .card-icon {
        font-size: 36px;
        color: var(--accent-color);
        margin-bottom: 15px;
    }
    
    .cooperation-slider .cooperation-card h3 {
        margin-bottom: 10px;
        color: var(--primary-color);
    }
    
    .cooperation-pagination {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        text-align: center;
    }
    
    .cooperation-pagination .swiper-pagination-bullet {
        background: var(--accent-color);
        opacity: 0.5;
    }
    
    .cooperation-pagination .swiper-pagination-bullet-active {
        opacity: 1;
        background: var(--accent-color);
    }
}

/* Hide the slider on desktop */
@media (min-width: 769px) {
    .cooperation-slider-container {
        display: none;
    }
}

/* Footer styles */
.footer {
    background-color: #37414A;
    color: #fff;
    padding: 50px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-grid:first-child {
    padding-bottom: 30px;
}

.footer-section {
    margin-bottom: 20px;
}

.footer-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #AFD4E9;
    padding-bottom: 10px;
    border-bottom: 2px solid #FFFFFF4D;
}

.footer-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-col h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a:hover {
    color: #fff;
}

/* Contacts Section */

.contacts-section h3 {
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icon {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.social-icon img {
    width: 32px;
    height: 32px;
}

.footer-address {
    margin-bottom: 15px;
}

.footer-address p {
    color: #FEFEFE;
    font-size: 16px;
    line-height: 100%;
    margin: 0;
    font-weight: 400;
}

.footer-phone {
    margin-bottom: 20px;
}

.footer-phone a {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    display: block;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .footer {
        padding: 40px 0;
    }
    
    .footer-grid {
        gap: 30px;
    }
    
    .footer-section h3 {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-row {
        gap: 20px;
    }

    .apart-hotel { 
        display: flex;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 30px 0;
    }
    
    .footer-section h3 {
        font-size: 15px;
    }
    
    .footer-col h4 {
        font-size: 14px;
    }
    
    .footer-links li a {
        font-size: 13px;
    }
    
    .footer-phone a {
        font-size: 16px;
    }
    
    .btn-callback {
        padding: 10px 20px;
        font-size: 11px;
        font-weight: 500!important;
        height: 36px;
    }
}

/* Footer Part 2: Logo and Copyright */
.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 30px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 325px;
    height: auto;
}

.footer-copyright {
    color: #FFFFFF80;
    font-size: 15px;
    margin-bottom: 20px;
}
.footer-copyright p{
    color: #FFFFFF80 !important;
    font-size: 15px;
}

@media (max-width: 768px) {
    .footer-bottom {
        padding-top: 30px;
        margin-top: 20px;
    }
    
    .footer-logo img {
        max-width: 150px;
    }
}

/* Footer Categories (Rehabilitation and Diagnostics) */
.footer-categories {
    background-color: #37414A;
    padding: 50px 0;
    color: #fff;
}

.footer-categories-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-category h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #fff;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 400px;
}

.footer-category-columns {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    max-width: 100%;
}

.footer-category-column h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
    margin-top: 25px;
    color: #fff;
}

.footer-category-column h4:first-child {
    margin-top: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: #AFD4E9;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
    display: block;
    line-height: 1.4;
}

.footer-links li a:hover {
    color: #fff;
}

@media (max-width: 992px) {
    .footer-category h3 {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .footer-categories {
        padding: 30px 0;
    }
    
    .footer-category-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-category-column h4 {
        margin-top: 20px;
        margin-bottom: 12px;
    }
    
    .footer-links li {
        margin-bottom: 10px;
    }
    
    .footer-links li a {
        font-size: 13px;
    }
}

@media (min-width: 768px) {
    .footer-category-columns {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 767px) {
    .footer-category-columns {
        grid-template-columns: 1fr;
    }
}

/* Footer Image */
.footer-image {
    width: 100%;
    display: block;
    line-height: 0;
}

.footer-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    position: relative;
}

.hamburger-icon, 
.hamburger-icon:before, 
.hamburger-icon:after {
    content: '';
    display: block;
    width: 25px;
    height: 2px;
    background-color: #fff;
    position: absolute;
    right: 0;
    transition: all 0.3s ease;
}

.hamburger-icon {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-icon:before {
    top: -8px;
}

.hamburger-icon:after {
    bottom: -8px;
}

.mobile-menu-toggle.active .hamburger-icon {
    background-color: transparent;
}

.mobile-menu-toggle.active .hamburger-icon:before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-toggle.active .hamburger-icon:after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Mobile Menu */
.mobile-menu.active {
    display: block;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list li {
    margin-bottom: 15px;
}

.mobile-menu-list a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-contact {
    margin-top: 30px;
}

.mobile-menu-contact .phone {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu-contact .phone a {
    color: #AFD4E9;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
}

.mobile-menu-social {
    display: flex;
    gap: 15px;
    margin-bottom: 75px;
}

.mobile-menu-contact .btn-callback {
    background-color: #AFD4E9;
    color: black;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: block;
    width: 180px;
    text-align: center;
    margin: 20px 0;
}

.mobile-menu-contact .btn-callback:hover {
    background-color: #5E8399;
    color: white;
}

/* Prevent scrolling when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Media Queries for Mobile */
@media (max-width: 992px) {
    .header-top {
        justify-content: space-between;
    }
    
    .header-social, 
    .header-contact {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 0;
    }
    
    .header-logo img {
        max-height: 40px;
    }
    
    .btn-callback {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* Mobile Header Styles */
@media (max-width: 992px) {
    .header {
        background-color: #37414A;
        padding: 15px 0;
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 1000;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    
    .container-header {
        padding: 0 20px;
    }
    
    .header-top {
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0;
    }
    
    .header-logo {
        display: flex;
        align-items: center;
    }
    
    .header-logo img {
        max-height: 30px;
    }
    
    .header-social, 
    .header-contact {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
        margin-left: 15px;
    }
    
    .header-nav {
        display: none;
    }
    
    /* Mobile menu button in header */
    .header-mobile-button {
        display: block;
    }
    
    .header-mobile-button .btn-callback {
        margin: 0;
        font-size: 14px;
        padding: 8px 20px;
    }
    
    /* Adjust body padding for fixed header */
    body {
        padding-top: 60px;
    }

}

@media (min-width: 993px) {
    .header-mobile-button {
        display: none;
    }
}

/* Mobile Contact Bar */
.mobile-contact-bar {
    display: none;
    background-color: #fff;
    padding: 10px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-contact-bar .mobile-phone {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-contact-bar .mobile-phone a {
    color: #37414A;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
}

.mobile-contact-bar .mobile-social {
    display: flex;
    gap: 15px;
    align-items: center;
}

.mobile-contact-bar .social-icon {
    width: 24px;
    height: 24px;
}

.mobile-contact-bar .social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 992px) {
    .mobile-contact-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 20px;
        position: fixed;
        z-index: 10;
        width: 100%;
        top: 70px
    }
}

@media (max-width: 768px) {
    .swiper-button-prev {
        left: calc(50% - 120px) !important;
        right: auto !important;
    }

    .swiper-button-next {
        right: calc(50% - 120px) !important;
        left: auto !important;
    }
}

/* Стилі для горизонтального вирівнювання блоків АПАРТ-ГОТЕЛЬ та КОНТАКТИ */
.apartment-contacts-row {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.apartment-section {
    flex: 1;
}

.contacts-section {
    flex: 1;
}

@media (max-width: 992px) {
    .apartment-contacts-row {
        flex-direction: column;
    }
}

@media (min-width: 769px) {
    /* Hide slider elements on desktop */
    .directions-button-next,
    .directions-button-prev,
    .directions-pagination {
        display: none !important;
    }
    
    /* Hide the images inside navigation buttons as well */
    .directions-button-next img,
    .directions-button-prev img {
        display: none !important;
    }
    
    .directions-grid {
        display: grid;
    }
    
    .directions-grid .swiper-wrapper {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }
    
    .directions-grid .swiper-slide {
        width: 100% !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 768px) {
    .directions-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .direction-image {
        height: auto;
        position: relative;
    }
    
    .direction-image img {
        aspect-ratio: 1.5/1;
        object-fit: cover;
    }
    
    /* For mobile, remove the hover state and display content directly */
    .direction-item {
        display: flex;
        flex-direction: column;
        background-color: #fff;
        border-radius: 0;
        overflow: hidden;
        margin-bottom: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .direction-image {
        height: auto;
        position: relative;
        background-color: #F5F4F4;
    }
    
    .direction-image img {
        aspect-ratio: 1.5/1;
        object-fit: cover;
    }
    
    /* Hide the original title that appears at the bottom */
    .direction-title {
        display: none;
    }
    
    /* Always display the overlay content on mobile */
    .direction-overlay {
        position: relative;
        opacity: 1;
        background: #F5F4F4;
        padding: 20px;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .direction-overlay h3 {
        color: var(--primary-color);
        font-size: 20px;
        font-weight: 600;
        margin-bottom: 15px;
        text-align: left;
        width: 100%;
    }
    
    .direction-overlay p {
        color: #333;
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 20px;
        max-width: 100%;
    }
    
    .btn-details {
        align-self: center;
        background: var(--accent-color);
        color: var(--white);
        padding: 10px 30px;
        border-radius: 30px;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .direction-item:hover .direction-overlay {
        opacity: 1; /* Ensure overlay is always visible on mobile */
    }
}

/* Add styles for the rehabilitation directions pagination and navigation arrows */
.rehabilitation-directions .directions-slider {
    position: relative;
}

.rehabilitation-directions .directions-pagination {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.rehabilitation-directions .directions-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #D9D9D9;
    opacity: 1;
    margin: 0 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.rehabilitation-directions .directions-pagination .swiper-pagination-bullet-active {
    background-color: var(--accent-color);
    transform: scale(1.2);
    opacity: 1;
}

.rehabilitation-directions .swiper-button-next,
.rehabilitation-directions .swiper-button-prev {
    position: absolute;
    bottom: 15px; /* Position at the bottom */
    top: auto; /* Override default top positioning */
    width: 40px;
    height: 40px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
}

.rehabilitation-directions .swiper-button-prev {
    left: calc(50% - 60px); /* Position to the left of pagination */
}

.rehabilitation-directions .swiper-button-next {
    right: calc(50% - 60px); /* Position to the right of pagination */
}

.rehabilitation-directions .swiper-button-next img,
.rehabilitation-directions .swiper-button-prev img {
    width: 20px;
    height: 20px;
    filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(190deg) brightness(90%) contrast(95%); /* Make arrows blue */
}

.rehabilitation-directions .swiper-button-prev:after,
.rehabilitation-directions .swiper-button-prev:after {
    display: none;
}

.directions-slider-navigation {
    display: none;
}

/* Styling for the ПЕРЕГЛЯНУТИ buttons in the education section */
.education .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: transparent;
    border-radius: 30px;
    color: black;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 200px;
    height: 54px;
    background-color: #AFD4E9;
}

.education .btn-outline i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.education .btn-outline:hover {
    background-color: var(--accent-color);
    color: white;
}

.education .btn-outline:hover i {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .education .btn-outline {
        padding: 6px 14px;
        font-size: 13px;
    }

    .image-item img {
        width: 100%;
        height: 361px;
    }
}
@media (max-width: 1200px) {
    .advantages1 {
        width: 100%;
    }
    .third-column {
        padding: 1rem;
    }
    .departments {
        padding: 0;
    }
    .info-content {
        gap: 2rem !important;
    }
    .advantages-column {
        width: 100%
    }
}


/* Mobile slider pagination and navigation styles */
@media (max-width: 768px) {
    /* Hide navigation arrows on mobile for all sliders */
    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
    
    /* Common pagination styles for all sliders on mobile */
    .swiper-pagination {
        bottom: 10px !important;
        width: 100% !important;
        left: 0 !important;
        transform: none !important;
        text-align: center;
        position: absolute;
    }
    
    .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        background: transparent;
        border: 2px solid var(--accent-color);
        opacity: 1;
        margin: 0 5px;
        border-radius: 50%;
        transition: all 0.3s ease;
    }
    
    .swiper-pagination-bullet-active {
        background-color: var(--accent-color);
        transform: scale(1.2);
        opacity: 1;
    }
    
    /* Add space for pagination in each slider */
    .directions-slider {
        position: relative;
    }
}

/* Cooperation Section Mobile Styles */
@media (max-width: 768px) {
    /* Hide the desktop grid on mobile */
    .cooperation .cooperation-grid {
        display: none;
    }
    
    /* Show the slider on mobile */
    .cooperation-slider-container {
        display: block;
        position: relative;
        padding-bottom: 40px;
    }
    
    /* Style the mobile title */
    .cooperation-title-mobile {
        margin-bottom: 20px;
        text-align: center;
    }
    
    .cooperation-title-mobile h2 {
        font-size: 28px;
        color: var(--primary-color);
    }
    
    .cooperation-slider .swiper-slide {
        height: auto;
    }
    
    .cooperation-slider .cooperation-card {
        width: 100%;
        margin: 0;
        padding: 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        text-align: center;
        background-color: #fff;
        border-radius: 8px;
    }
    
    .cooperation-slider .card-icon {
        font-size: 36px;
        color: var(--accent-color);
        margin-bottom: 15px;
    }
    
    .cooperation-slider .cooperation-card h3 {
        margin-bottom: 10px;
        color: var(--primary-color);
    }
    
    .cooperation-slider .cooperation-card p {
        font-size: 16px;
        line-height: 1.5;
        color: #666;
    }
    
    .cooperation-pagination {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        text-align: center;
    }
    
    .cooperation-pagination .swiper-pagination-bullet {
        background: var(--accent-color);
        opacity: 0.5;
    }
    
    .cooperation-pagination .swiper-pagination-bullet-active {
        opacity: 1;
        background: var(--accent-color);
    }

    /* Стилі для мобільної навігації слайдера напрямків реабілітації */
    .directions-slider-navigation {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 15px 0;
        position: relative;
        justify-content: space-around;
        width: 100%;
        z-index: 10;
    }

    .directions-slider-prev, .directions-slider-next {
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 5px;
        color: #5E8399;
        outline: none;
        z-index: 100;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 30px;
        min-height: 30px;
        touch-action: manipulation;
    }

    .directions-slider-prev svg path, 
    .directions-slider-next svg path {
        stroke: #5E8399;
    }

    .directions-slider-prev:focus, .directions-slider-next:focus,
    .directions-slider-prev:active, .directions-slider-next:active {
        outline: none;
    }

    .directions-slider-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin: 0 15px;
    }

    .directions-slider-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: rgba(94, 131, 153, 0.5);
        cursor: pointer;
        transition: background-color 0.3s;
    }

    .directions-slider-dot.active {
        background-color: #5E8399;
    }
}

/* Стиль для лікарів */
.doctors-slider-wrapper {
    position: relative;
    margin: 0 auto;
    padding: 0 40px; /* Додаємо відступи для стрілок */
}

.doctors-slider {
    position: relative;
    margin: 0 auto;
    max-width: 100%;
    overflow: hidden; /* Тільки цей контейнер має overflow: hidden */
}

.doctors-slider-container {
    display: flex;
    transition: transform 0.5s ease;
    touch-action: pan-y; /* Дозволяємо вертикальний скрол, але свайп буде працювати по горизонталі */
}

:root {
    --primary-color: #333;
    --accent-light: #a7d1e6;
    --white: #ffffff;
}

.doctor-card {
    flex: 0 0 25%;
    padding: 10px;
    transition: all 0.3s ease;
}

.doctor-card-inner {
    overflow: hidden;
    position: relative;
    background: #F5F4F4;
}

.doctor-card-inner::after {
    content: '';
    position: absolute;
    top: 55%;
    left: 0;
    width: 100%;
    height: 45%;
    background-color: var(--accent-light);
    z-index: 1;
}

.doctor-card-inner::before {
    content: '';
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100px;
    background-color: #F5F4F4;
    border-radius: 0 0 100% 100%;
    z-index: 2;
}

.doctor-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 2rem auto;
    position: relative;
    z-index: 3;
}

.doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-info {
    text-align: center;
    padding: 0 1.5rem 2rem;
    position: relative;
    z-index: 2;
}

.doctor-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.doctor-firstname {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.doctor-position {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.doctor-experience {
    font-size: 0.875rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.doctors-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20; /* Підвищуємо z-index */
    border: 1px solid #ddd;
    color: #555;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.doctors-slider-arrow:hover {
    background: #f5f5f5;
    color: #333;
}

.doctors-slider-arrow.prev {
    left: 0;
}

.doctors-slider-arrow.next {
    right: 0;
}

/* Пагінація (точки) для мобільної версії */
.doctors-slider-dots {
    display: none; /* По замовчуванню приховано для десктопу */
    justify-content: center;
    margin-top: 20px;
    gap: 8px;
}

.doctors-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.doctors-slider-dot.active {
    background-color: var(--accent-light);
    transform: scale(1.3);
}

@media (max-width: 992px) {
    .doctor-card {
        flex: 0 0 50%;
    }
    
    .doctor-photo {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 767px) {
    /* Мобільна версія */
    .doctors-slider-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .doctor-card {
        flex: 0 0 100%;
    }

    .doctor-card-inner::after {
        top: 42%; /* Зменшуємо відстань згори */
        height: 58%; /* Збільшуємо висоту блакитної частини */
    }
    
    .doctor-card-inner::before {
        top: 42%; /* Відповідно зменшуємо відстань для верхньої хвилі */
        height: 120px; /* Злегка зменшуємо висоту хвилі */
    }
    
    .doctor-photo {
        margin: 1.5rem auto; /* Менший відступ для фото на мобільній версії */
    }
    
    .doctor-info {
        padding-bottom: 1.5rem; /* Менший відступ знизу на мобільній версії */
    }
    
    /* Показуємо пагінацію точками */
    .doctors-slider-dots {
        display: flex;
        position: relative;
        z-index: 5;
    }
    
    /* Стилізуємо кнопки для мобільної версії */
    .doctors-slider-arrow {
        width: 35px;
        height: 35px;
        top: 45%;
    }
    
    .doctors-slider-arrow.prev {
        left: -5px;
    }
    
    .doctors-slider-arrow.next {
        right: -5px;
    }
}

/* Blog */
.blog-section {
    padding: 60px 0;
}

.blog-row {
    display: flex;
    gap: 50px;
}

.blog-col-left {
    flex: 0 0 30%;
    padding-top: 10px;
}

.blog-col-right {
    flex: 0 0 70%;
}

.blog-title {
    font-size: 48px;
    font-weight: 700;
    color: #37414A;
    margin-bottom: 30px;
}

.blog-description {
    color: #666;
    line-height: 110%;
    font-size: 18px;
    margin-bottom: 30px;
    font-weight: 400;
}

.blog-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.blog-arrow {
    width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #afd4e9;
    color: #999;
}

.blog-slider-wrapper {
    position: relative;
    overflow: hidden;
}

.blog-slider {
    display: flex;
    gap: 25px;
    transition: transform 0.5s ease;
    touch-action: pan-y;
}

.blog-card {
    flex: 0 0 calc(50% - 15px);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    background-color: #5E8399;
    transition: all 0.3s ease;
    width: 100px;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.blog-card-image {
    height: 310px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 25px;
    position: relative;
}

.blog-card-date {
    display: block;
    color: #AFD4E9;
    font-size: 14px;
    margin-bottom: 12px;
}

.blog-card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 100%;
    color: white;
}

.blog-card-excerpt {
    font-size: 18px;
    color: #F5F4F4;
    line-height: 110%;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    font-weight: 400;
    font-family: 'Geometria', sans-serif;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-card-link {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #AFD4E9;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.blog-card-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.blog-card-link:hover {
    color: white;
}

.blog-card-link:hover i {
    transform: translateX(3px);
}

.blog-all-posts {
    display: inline-block;
    padding: 15px 30px;
    background-color: #afd4e9;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    width: 200px;
    height: 54px;
}

.blog-all-posts:hover {
    background-color: #8fc5e0;
}

.button-container {
    text-align: left;
    margin-top: 10px;
}

.blog-header {
    display: flex;
    justify-content: space-between;
}

/* Навігаційні точки */
.blog-pagination {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.pagination-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-dot.active {
    background-color: #afd4e9;
    width: 10px;
    height: 10px;
}

@media (max-width: 992px) {
    .blog-row {
        flex-direction: column;
        gap: 30px;
    }
    
    .blog-col-left, .blog-col-right {
        flex: 0 0 100%;
    }
    
    .blog-card {
        flex: 0 0 calc(50% - 15px);
    }
    
    .blog-title {
        font-size: 32px;
    }
    
    .blog-nav {
        margin-bottom: 0;
    }

    .blog-pagination {
        display: flex;
    }
}

@media (max-width: 767px) {
    .blog-section {
        padding: 30px 0;
    }

    .blog-header {
        align-items: center;
        margin-bottom: 20px;
    }

    .blog-title {
        font-size: 32px;
        margin-bottom: 0;
    }

    .blog-card {
        flex: 0 0 100%;
        margin: 0 auto;
        width: 100%;
    }
    
    .blog-slider {
        gap: 0;
    }
    
    .blog-description {
        margin-bottom: 30px;
        font-size: 13px;
    }
    
    .blog-card-title {
        min-height: auto;
        font-size: 20px;
    }

    .blog-card-excerpt {
        font-size: 16px;
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }

    .blog-arrow {
        width: 35px;
        height: 35px;
    }

    .blog-slider-wrapper {
        overflow: visible;
    }

    .button-container {
        text-align: center;
        margin-top: 20px;
    }

    /* Показуємо навігаційні точки на мобільних */
    .blog-pagination {
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .blog-title {
        font-size: 32px;
    }
    .mobile-contact-bar .mobile-phone a{
        font-size: 14px;
    }
    .blog-card-content {
        padding: 20px;
    }
    
    .blog-card-title {
        font-size: 20px;
    }
}

/* Додатковий CSS для мобільної версії */
.mobile-version {
    display: none;
}

@media (max-width: 767px) {
    .desktop-version {
        display: none;
    }
    
    .mobile-version {
        display: block;
    }
    
    .mobile-blog-header {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 20px;
    }
    
    .mobile-blog-description {
        margin-bottom: 30px;
        font-size: 16px;
        color: black;
        border-left: 2px solid lightblue;
        padding-left: 25px;
    }
    
    .mobile-blog-slider-container {
        position: relative;
        overflow: hidden;
    }
    
    .mobile-blog-slider {
        display: flex;
        gap: 0;
        transition: transform 0.5s ease;
        touch-action: pan-y;
    }
    
    .mobile-blog-card {
        flex: 0 0 100%;
        margin: 0;
        width: 100%;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        background-color: #5E8399;
        transition: all 0.3s ease;
    }
    
    .mobile-blog-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }
    
    .mobile-blog-card-image {
        height: 220px;
        overflow: hidden;
    }
    
    .mobile-blog-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }
    
    .mobile-blog-card:hover .mobile-blog-card-image img {
        transform: scale(1.05);
    }
    
    .mobile-blog-card-content {
        padding: 25px;
        position: relative;
    }
    
    .mobile-navigation {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 10px;
        margin-top: 30px;
    }
    
    .mobile-pagination {
        display: flex;
        justify-content: center;
        gap: 8px;
    }
    
    .mobile-blog-pagination {
        display: flex;
        justify-content: center;
        gap: 8px;
    }
    
    .mobile-button-container {
        text-align: center;
        margin-top: 30px;
    }
}

/* PARTNERS */
.partners-section {
    background-color: #5d8095;
    padding: 60px 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.partners-slider-wrapper {
    position: relative;
    margin: 0 auto;
    padding: 0 70px; /* Збільшено відступи для стрілок */
}

.partners-slider {
    position: relative;
    margin: 0 auto;
    max-width: 100%;
    overflow: hidden;
}

.partners-slider-container {
    display: flex;
    transition: transform 0.5s ease;
    align-items: center;
    touch-action: pan-y;
}

.partner-item {
    flex: 0 0 25%;
    padding: 0 15px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-item img {
    max-width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.partners-header {
margin: 60px 0;
}

.circle-title {
    position: relative;
    text-align: center;
    margin-bottom: 50px;
}

.circle-title h2 {
    color: white;
    font-size: 48px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    z-index: 2;
    margin: 0;
    padding: 0;
    background-color: #5d8095;
}

.circle-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    z-index: 1;
    border: 1px solid white;
    background: none;
}

.circle-title::after {
    display: none;
}

.partner-item:hover img {
    opacity: 1;
    transform: scale(1.05);
}

.partners-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #AFD4E9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    color: black;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.partners-slider-arrow:hover {
    background: white;
}

.partners-slider-arrow.prev {
    left: 10px; /* Збільшено відступ стрілки ліворуч */
}

.partners-slider-arrow.next {
    right: 10px; /* Збільшено відступ стрілки праворуч */
}

.partners-slider-dots {
    display: none;
    justify-content: center;
    margin-top: 30px;
    gap: 8px;
}

.partners-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.partners-slider-dot.active {
    background-color: #fff;
    transform: scale(1.3);
}

.partners-button {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #AFD4E9;
    color: black;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    padding: 12px 30px;
    margin-top: 40px;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 200px;
    height: 54px;
}

.partners-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.button-container {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-top: 30px;
}

.partner-item {
height: 80px;
display: flex;
align-items: center;
justify-content: center;
}

.partner-item img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Make logo white */
    opacity: 0.9;
    transition: opacity 0.3s;
}

.partner-item:hover img {
    opacity: 1;
}

@media (max-width: 992px) {
    .partner-item {
        flex: 0 0 33.33%;
    }
    
    .partners-slider-wrapper {
        padding: 0 60px; /* Відступи для планшетів */
    }
}

@media (max-width: 767px) {
    .partner-item {
        flex: 0 0 50%;
    }
    
    .partners-section {
        padding: 40px 0;
    }
    
    .partners-slider-dots {
        display: none; /* Ховаємо точки на мобільній версії */
    }
    
    .partners-slider-wrapper {
        padding: 0 50px; /* Відступи для малих планшетів */
        max-width: 350px;
        margin: 0 auto;
    }
    
    .partners-slider-arrow {
        width: 32px;
        height: 32px;
    }
    
    .partners-button {
        background-color: #AFD4E9;
        border-radius: 50px;
        padding: 12px 35px;
        margin-top: 35px;
        font-size: 13px;
        color: black;
    }
}

@media (max-width: 480px) {
    .partner-item {
        flex: 0 0 100%;
        padding: 0;
    }
    
    .partners-slider-wrapper {
        padding: 0 50px; /* Збільшено відступи з боків */
        max-width: 270px; /* Трохи збільшено максимальну ширину */
        margin-top: 100px;
    }
    
    .partners-slider-arrow {
        width: 30px;
        height: 30px;
    }
    
    .partners-slider-arrow.prev {
        left: -15px; /* Більший відступ ліворуч для мобільних */
    }
    
    .partners-slider-arrow.next {
        right: -15px; /* Більший відступ праворуч для мобільних */
    }
}

/* Приховуємо стандартну навігацію освіти на десктопі */
.education-slider-navigation {
    display: none;
}

@media (max-width: 768px) {
    /* Стилі для мобільної навігації слайдера освіти */
    .education-slider-navigation {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 15px 0;
        position: relative;
        justify-content: space-around;
        width: 100%;
        z-index: 10;
        margin-top: 15px;
    }
    
    .education-slider-prev, .education-slider-next {
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 5px;
        color: #5E8399;
        outline: none;
        z-index: 100;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 30px;
        min-height: 30px;
        touch-action: manipulation;
    }
    
    .education-slider-prev svg path, 
    .education-slider-next svg path {
        stroke: #5E8399;
    }
    
    .education-slider-prev:focus, .education-slider-next:focus,
    .education-slider-prev:active, .education-slider-next:active {
        outline: none;
    }
    
    .education-slider-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin: 0 15px;
    }
    
    .education-slider-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: rgba(94, 131, 153, 0.5);
        cursor: pointer;
        transition: background-color 0.3s;
    }
    
    .education-slider-dot.active {
        background-color: #5E8399;
    }
    
    /* Приховуємо стандартну пагінацію освіти на мобільних */
    .education-pagination {
        display: none !important;
    }
}

/* Приховуємо стандартну навігацію співпраці на десктопі */
.cooperation-slider-navigation {
    display: none;
}

@media (max-width: 768px) {
    /* Стилі для мобільної навігації слайдера співпраці */
    .cooperation-slider-navigation {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 15px 0;
        position: relative;
        justify-content: space-around;
        width: 100%;
        z-index: 10;
        margin-top: 15px;
    }
    
    .cooperation-slider-prev, .cooperation-slider-next {
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 5px;
        color: #5E8399;
        outline: none;
        z-index: 100;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 30px;
        min-height: 30px;
        touch-action: manipulation;
    }
    
    .cooperation-slider-prev svg path, 
    .cooperation-slider-next svg path {
        stroke: white;
    }
    
    .cooperation-slider-prev:focus, .cooperation-slider-next:focus,
    .cooperation-slider-prev:active, .cooperation-slider-next:active {
        outline: none;
    }
    
    .cooperation-slider-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin: 0 15px;
    }
    
    .cooperation-slider-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: rgba(94, 131, 153, 0.5);
        cursor: pointer;
        transition: background-color 0.3s;
        border: 1px solid white;
    }
    
    .cooperation-slider-dot.active {
        background-color: white;
    }
    
    /* Приховуємо стандартну пагінацію співпраці на мобільних */
    .cooperation-pagination {
        display: none !important;
    }
}

/* Стилі для десктопної та мобільної версії секції "НАПРЯМКИ РЕАБІЛІТАЦІЇ" */
        .directions-desktop {
            display: block;
        }
        
        .directions-mobile {
            display: none;
        }
        
        .mobile-tab-item {
            margin-bottom: 20px;
            border-bottom: 1px solid #e5e5e5;
            padding-bottom: 20px;
            cursor: pointer;
        }
        
        .mobile-tab-item:last-child {
            border-bottom: none;
        }
        
        .mobile-tab-content h3 {
            margin-bottom: 15px;
            color: black;
            display: flex;
            align-items: center;
        }
        
        .mobile-tab-content {
            padding-right: 20px;
            padding-left: 20px;
        }
        
        .direction-indicator {
            display: inline-block;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            border: 2px solid #AFD4E9;
            margin-right: 10px;
            flex-shrink: 0;
            transition: background-color 0.3s ease;
        }
        
        .direction-indicator.active {
            background-color: #AFD4E9;
        }
        
        .mobile-tab-description {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .mobile-tab-description p {
            font-size: 16px;
            line-height: 1.6;
            color: #555;
        }
        
        .tab-content-container {
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            transition: max-height 0.5s ease, opacity 0.5s ease;
        }
        
        .tab-content-container.visible {
            max-height: 1000px;
            opacity: 1;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        .tab-image-container {
            width: 100%;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s ease, opacity 0.3s ease;
            opacity: 0;
        }
        
        .tab-image-container.visible {
            max-height: 500px;
            opacity: 1;
        }
        
        .mobile-tab-description img {
            width: 100%;
            border-radius: 8px;
            margin: 5px 0;
        }
        
        .mobile-tab-description .details-link {
            display: inline-flex;
            align-items: center;
            color: #5E8399;
            font-weight: 600;
            text-decoration: none;
            transition: color 0.3s;
            margin-left: 8px;
            transition: transform 0.3s;
        }
        
        .mobile-tab-description .details-link:hover {
            color: #0d3b66;
        }
        
        .mobile-tab-description .details-link:hover i {
            transform: translateX(5px);
        }
        
        /* Медіа-запит для мобільних пристроїв */
        @media (max-width: 768px) {
            .directions-desktop,
            .directions-slider-navigation {
                display: none !important;
            }
            
            .directions-mobile {
                display: block;
            }
        }
        
/* Десктопная версия */
                .departments-desktop {
                    display: block;
                }
                
                /* Мобильная версия */
                .departments-mobile {
                    display: none;
                }
                
                .mobile-tab-item {
                    margin-bottom: 20px;
                    border-bottom: 1px solid #e5e5e5;
                    padding-bottom: 20px;
                }
                
                .mobile-tab-item:last-child {
                    border-bottom: none;
                }
                
                .mobile-tab-content {
                    display: flex;
                    flex-direction: column;
                }
                
                .mobile-tab-content h3 {
                    color: black;
                    margin-bottom: 10px;
                    font-size: 18px;
                }
                
                .mobile-tab-description {
                    display: flex;
                    flex-direction: column;
                }
                
                .mobile-tab-description p {
                    margin-bottom: 15px;
                    font-size: 16px;
                    line-height: 1.5;
                }
                
                .mobile-tab-description img {
                    width: 100%;
                    height: auto;
                    border-radius: 8px;
                    margin: 10px 0;
                    object-fit: cover;
                }
                
                @media (max-width: 768px) {
                    .departments-desktop {
                        display: none;
                    }
                    
                    .departments-mobile {
                        display: block;
                    }
                }

                /* Стилі для індикаторів у мобільній версії відділень */
                .departments-mobile .direction-indicator {
                    display: inline-block;
                    width: 18px;
                    height: 18px;
                    border-radius: 50%;
                    border: 2px solid #AFD4E9;
                    margin-right: 10px;
                    flex-shrink: 0;
                    transition: background-color 0.3s ease;
                }

                .departments-mobile .direction-indicator.active {
                    background-color: #AFD4E9;
                }

                .departments-mobile .mobile-tab-content h3 {
                    display: flex;
                    align-items: center;
                }

                .departments-mobile .tab-content-container {
                    max-height: 0;
                    overflow: hidden;
                    opacity: 0;
                    transition: max-height 0.5s ease, opacity 0.5s ease;
                }

                .departments-mobile .tab-content-container.visible {
                    max-height: 1000px;
                    opacity: 1;
                }

                .departments-mobile .tab-image-container {
                    width: 100%;
                    transition: opacity 0.3s ease;
                }
                
                @media (max-width: 768px) {
                    .departments-content {
                        display: none;
                    }
                    
                }
.wysiwyg {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

/* Headings */
.wysiwyg h1 {
    font-size: 36px;
    font-weight: 600;
    color: #5E8399;
    margin-top: 50px;
    margin-bottom: 25px;
    line-height: 1.3;
    text-transform: uppercase;
}

.wysiwyg h2 {
    font-size: 28px;
    font-weight: 600;
    color: #5E8399;
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.3;
    text-transform: uppercase;
}

.wysiwyg h3 {
    font-size: 22px;
    font-weight: 600;
    color: #37414A;
    margin-top: 35px;
    margin-bottom: 18px;
    line-height: 1.4;
}

.wysiwyg h4 {
    font-size: 20px;
    font-weight: 600;
    color: #37414A;
    margin-top: 30px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.wysiwyg h5 {
    font-size: 18px;
    font-weight: 600;
    color: #37414A;
    margin-top: 25px;
    margin-bottom: 12px;
    line-height: 1.5;
}

/* Paragraphs */
.wysiwyg p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #333;
}

.wysiwyg p:last-child {
    margin-bottom: 0;
}

/* Lists */
.wysiwyg ul,
.wysiwyg ol {
    margin-bottom: 25px;
    padding-left: 30px;
}

.wysiwyg ul {
    list-style: none;
    padding-left: 0;
}

.wysiwyg ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    line-height: 1.7;
    color: #333;
}

.wysiwyg ul li:before {
    content: '\2022';
    color: #5E8399;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 18px;
}

.wysiwyg ol {
    counter-reset: item;
}

.wysiwyg ol li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    line-height: 1.7;
    color: #333;
    counter-increment: item;
    list-style: none;
}

.wysiwyg ol li:before {
    content: counter(item) ".";
    color: #5E8399;
    font-weight: 600;
    position: absolute;
    left: 0;
}

/* Nested lists */
.wysiwyg ul ul,
.wysiwyg ol ul,
.wysiwyg ul ol,
.wysiwyg ol ol {
    margin-top: 12px;
    margin-bottom: 12px;
}

/* Links */
.wysiwyg a {
    color: #5E8399;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.wysiwyg a:hover {
    color: #4A6F82;
    text-decoration: none;
}

/* Images */
.wysiwyg img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Blockquotes */
.wysiwyg blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    border-left: 4px solid #78A5BD;
    background-color: #F5F9FB;
    font-style: italic;
    color: #37414A;
}

.wysiwyg blockquote p:last-child {
    margin-bottom: 0;
}

/* Strong and emphasis */
.wysiwyg strong,
.wysiwyg b {
    font-weight: 600;
    color: #37414A;
}

.wysiwyg em,
.wysiwyg i {
    font-style: italic;
}

/* Tables */
.wysiwyg table {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.wysiwyg table th,
.wysiwyg table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.wysiwyg table th {
    background-color: #5E8399;
    color: #fff;
    font-weight: 600;
}

.wysiwyg table tr:nth-child(even) {
    background-color: #f8f8f8;
}

/* Horizontal rule */
.wysiwyg hr {
    margin: 40px 0;
    border: none;
    border-top: 2px solid #e0e0e0;
}

/* Code blocks */
.wysiwyg code {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #c7254e;
}

.wysiwyg pre {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 25px 0;
}

.wysiwyg pre code {
    background: none;
    padding: 0;
    color: #333;
}

/* Responsive styles */
@media (max-width: 768px) {
    .wysiwyg {
        font-size: 14px;
    }

    .wysiwyg h1 {
        font-size: 28px;
        margin-top: 35px;
        margin-bottom: 20px;
    }

    .wysiwyg h2 {
        font-size: 24px;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .wysiwyg h3 {
        font-size: 20px;
        margin-top: 25px;
        margin-bottom: 15px;
    }

    .wysiwyg h4 {
        font-size: 18px;
        margin-top: 20px;
        margin-bottom: 12px;
    }

    .wysiwyg h5 {
        font-size: 16px;
        margin-top: 18px;
        margin-bottom: 10px;
    }

    .wysiwyg ul li,
    .wysiwyg ol li {
        font-size: 14px;
    }

    .wysiwyg blockquote {
        padding: 15px 20px;
        margin: 20px 0;
    }

    .wysiwyg img {
        margin: 20px auto;
    }

    .wysiwyg table {
        font-size: 13px;
    }

    .wysiwyg table th,
    .wysiwyg table td {
        padding: 8px 10px;
    }
}

.share-component {
    position: relative;
    display: inline-block;
    z-index: 10;
}

/* Кнопка-иконка */
.share-trigger {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #667eea;
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.share-trigger:hover {
    background: #5568d3;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.share-trigger:active {
    transform: scale(0.95);
}

/* Дропдаун меню */
.share-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 12px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.share-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Стрелка */
.share-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 12px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.05);
}

/* Заголовок в дропдауне */
.share-dropdown-header {
    padding: 8px 8px 12px 8px;
    border-bottom: 1px solid #eee;
    margin-bottom: 8px;
}

.share-dropdown-title {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

/* Список кнопок */
.share-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-around;
}

.share-link {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 0;
}

.share-link:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
}

.share-link i {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 18px;
    color: white;
}

.share-link.facebook i {
    background: #1877f2;
}

.share-link.viber i {
    background: #7360f2;
}

.share-link.telegram i {
    background: #0088cc;
}

.share-link.whatsapp i {
    background: #25d366;
}

/* Обновленные стили для news-content */
.news-content {
    position: relative;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
}

.news-date {
    padding-bottom: 0 !important;
}

.wrap-form {
    .contacts-section {
        margin-top: 30px;
    }
    .contacts-section h3 {
        color: white;
        font-size: 30px;
    }
    padding-top: 50px;
    display: flex;
    justify-content: center;
    gap: 100px;
    .footer-address {
        margin-bottom: 20px;
    }
    .footer-phone a,
    .footer-address p {
        font-size: 18px;
    }
    .footer-phone a:hover {
        text-decoration: underline;
    }
}
@media (max-width: 1200px) {
    .wrap-form {
        gap: 50px;
        padding: 0 15px;
    }
    .wrap-form-contact {
        padding: 0 15px;
    }
}
@media (max-width: 767px) {
    .wrap-form {
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
    }
}