#consultation_form input:focus,
#consultation_form select:focus,
#consultation_form textarea:focus {
    outline: none;
    border-color: #00bcd4 !important;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.15), 0 4px 12px rgba(0, 188, 212, 0.1) !important;
    transform: translateY(-1px);
}

#consultation_form button[type="submit"]:hover {
    background: linear-gradient(135deg, #00acc1 0%, #00838f 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 188, 212, 0.4) !important;
}

#consultation_form button[type="submit"]:active {
    transform: translateY(0);
}

#consultation_form input::placeholder,
#consultation_form textarea::placeholder {
    color: #999 !important;
    opacity: 1;
}

#consultation_form input,
#consultation_form select,
#consultation_form textarea {
    color: #222 !important;
}

#consultation_form select option {
    color: #222;
    background-color: #fff;
}

/* Виправлення кольору тексту в формі на сторінці контактів - перекриває .text-light */
section.text-light #consultation_form input,
section.text-light #consultation_form select,
section.text-light #consultation_form textarea,
section.text-light #consultation_form .form-control,
.text-light section #consultation_form input,
.text-light section #consultation_form select,
.text-light section #consultation_form textarea,
.text-light section #consultation_form .form-control {
    color: #222 !important;
    background-color: #fff !important;
}

section.text-light #consultation_form input::placeholder,
section.text-light #consultation_form textarea::placeholder,
section.text-light #consultation_form .form-control::placeholder,
.text-light section #consultation_form input::placeholder,
.text-light section #consultation_form textarea::placeholder {
    color: #999 !important;
    opacity: 1 !important;
}

section.text-light #consultation_form select option,
.text-light section #consultation_form select option {
    color: #222 !important;
    background-color: #fff !important;
}

/* Mobile styles for form and map section */
@media (max-width: 991px) {
    .consultation-section {
        padding: 60px 0 !important;
    }
    
    .consultation-wrapper {
        position: relative !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Карта на мобільних - знизу, 100% ширини */
    .consultation-map {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        margin-bottom: 30px !important;
        order: 2 !important;
    }
    
    .consultation-map > div {
        height: 400px !important;
        margin-right: 0 !important;
    }
    
    /* Форма на мобільних - зверху, 100% ширини */
    .consultation-form-wrapper {
        position: relative !important;
        width: 100% !important;
        margin-left: 0 !important;
        order: 1 !important;
        padding-top: 0 !important;
    }
}

/* Mobile styles for footer */
@media (max-width: 768px) {
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 30px;
    }
    
    footer .col-lg-4:last-child {
        margin-bottom: 0;
    }
    
    footer .list-unstyled {
        text-align: center;
    }
    
    footer .list-unstyled li {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    footer .btn-booking {
        display: block;
        margin: 0 auto;
        width: 100%;
        max-width: 300px;
    }
    
    /* Виправлення збільшення кнопки при натисканні */
    footer .btn-booking,
    footer .btn.btn-booking,
    footer a.btn.btn-booking,
    footer .btn-booking:active,
    footer .btn-booking:focus,
    footer .btn-booking.btn-main,
    footer .btn.btn-main.btn-booking,
    footer a.btn.btn-main.btn-booking,
    footer .btn-booking.btn-main:active,
    footer .btn-booking.btn-main:focus {
        transform: none !important;
        scale: 1 !important;
        font-size: 18px !important;
        padding: 15px 40px !important;
        width: 100% !important;
        max-width: 300px !important;
        transition: background 0.3s, color 0.3s !important;
        -o-transition: background 0.3s, color 0.3s !important;
        -ms-transition: background 0.3s, color 0.3s !important;
        -moz-transition: background 0.3s, color 0.3s !important;
        -webkit-transition: background 0.3s, color 0.3s !important;
    }
    
    footer .btn-booking:hover,
    footer .btn.btn-booking:hover,
    footer a.btn.btn-booking:hover {
        transform: none !important;
        scale: 1 !important;
        font-size: 18px !important;
        padding: 15px 40px !important;
    }
    
    footer .widget {
        text-align: center;
        margin-bottom: 25px;
    }
    
    footer .widget ul {
        text-align: center;
    }
    
    footer .widget ul li {
        text-align: center;
    }
    
    footer .widget h5 {
        text-align: center;
    }
}

/* Make statistics block smaller on desktop */
.stats-block .bg-blur {
    padding: 25px 30px !important;
    margin: 20px !important;
}

.stats-block .de_count h3 {
    font-size: 32px !important;
}

.stats-block .de_count {
    font-size: 14px !important;
}

/* Mobile styles for statistics block */
@media (max-width: 991px) {
    /* Зменшити min-height секції з фото на мобільній версії */
    section.text-light.relative[style*="min-height: 100vh"] {
        min-height: 70vh !important;
        padding-bottom: 80px !important;
    }
    
    /* Відсунути градієнт наступного блоку вниз */
    section#about .gradient-edge-top {
        margin-top: 30px !important;
    }
    
    .stats-block {
        position: relative !important;
        bottom: auto !important;
        margin-top: 40px;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Прибрати відступ після блоку статистики */
    section:has(.stats-block) {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .stats-block + section,
    section#about {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    .stats-block .container {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .stats-block .row {
        margin-bottom: 0 !important;
    }
    
    .stats-block .bg-blur {
        margin: 0 !important;
        margin-bottom: 0 !important;
        padding: 30px 20px !important;
        padding-bottom: 15px !important;
    }
    
    .stats-block .de_count h3 {
        font-size: 32px !important;
        line-height: 1.1 !important;
    }
    
    .stats-block .de_count {
        font-size: 15px !important;
        line-height: 1.2 !important;
    }
    
    /* Горизонтальне розташування на мобільній версії */
    @media (max-width: 767px) {
        .stats-block {
            margin-bottom: 0 !important;
        }
        
        .stats-block .row.g-4 {
            display: flex !important;
            flex-direction: row !important;
            flex-wrap: nowrap !important;
            gap: 15px !important;
            margin-bottom: 0 !important;
        }
        
        .stats-block .col-md-4,
        .stats-block .col-sm-6 {
            flex: 1 1 0 !important;
            width: auto !important;
            max-width: none !important;
            margin-bottom: 0 !important;
            padding: 0 5px !important;
        }
    }
}

@media (max-width: 576px) {
    .stats-block {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .stats-block .container {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .stats-block .bg-blur {
        padding: 20px 15px !important;
        padding-bottom: 12px !important;
        margin-bottom: 0 !important;
    }
    
    .stats-block .de_count h3 {
        font-size: 30px !important;
        line-height: 1.1 !important;
    }
    
    /* Горизонтальне розташування на мобільній версії */
    .stats-block .row.g-4 {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        margin-bottom: 0 !important;
    }
    
    .stats-block .col-md-4,
    .stats-block .col-sm-6 {
        flex: 1 1 0 !important;
        width: auto !important;
        max-width: none !important;
        margin-bottom: 0 !important;
        padding: 0 5px !important;
    }
    
    .stats-block .de_count {
        font-size: 14px !important;
        line-height: 1.2 !important;
    }
}

/* Зменшення відступів для секції з цінами на pricing сторінці */
section.pricing-content-section,
section.relative.pricing-content-section {
    padding-top: 20px !important;
    padding-bottom: 60px !important;
    margin-top: 0 !important;
}

/* Видалення margin між секціями */
#subheader.pricing-subheader + section.relative {
    margin-top: 0 !important;
    padding-top: 20px !important;
}

/* Fix for pricing page subheader - виправлення overflow та padding */
#subheader.pricing-subheader {
    overflow: visible !important;
    padding-top: 120px !important;
    padding-bottom: 20px !important;
}

#subheader.pricing-subheader .container {
    position: relative;
    z-index: 10;
}

#subheader.pricing-subheader h1 {
    position: relative;
    z-index: 10;
    padding-top: 0;
    margin-top: 0;
}

@media (max-width: 991px) {
    #subheader.pricing-subheader {
        padding-top: 100px !important;
        padding-bottom: 15px !important;
    }
}

@media (max-width: 768px) {
    #subheader.pricing-subheader {
        padding-top: 70px !important;
        padding-bottom: 12px !important;
    }
    
    #subheader.pricing-subheader h1.pricing-title,
    #subheader.pricing-subheader .pricing-title {
        margin-top: 40px !important;
        padding-top: 0 !important;
    }
}

@media (max-width: 480px) {
    #subheader.pricing-subheader {
        padding-top: 60px !important;
        padding-bottom: 10px !important;
    }
    
    #subheader.pricing-subheader h1.pricing-title,
    #subheader.pricing-subheader .pricing-title {
        margin-top: 50px !important;
        padding-top: 0 !important;
    }
}

/* Default: hide mobile footer, show desktop footer */
.subfooter-mobile {
    display: none !important;
}

.subfooter-desktop {
    display: flex !important;
}

/* Mobile responsive for subtitle s2 and footer */
@media (max-width: 767px) {
    .subtitle.s2 {
        font-size: 38px !important;
    }
    
    h2.split {
        font-size: 19px !important;
    }
    
    /* Hide desktop footer completely on mobile - override all style.css rules */
    footer .subfooter .subfooter-desktop,
    footer .subfooter-desktop,
    .subfooter .subfooter-desktop,
    .subfooter-desktop {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    /* Override style.css rule that changes .subfooter .de-flex to block on mobile */
    footer .subfooter .subfooter-desktop .de-flex,
    .subfooter .subfooter-desktop .de-flex,
    footer .subfooter-desktop .de-flex,
    .subfooter-desktop .de-flex {
        display: none !important;
    }
    
    footer .subfooter .subfooter-desktop .de-flex-col,
    .subfooter .subfooter-desktop .de-flex-col,
    footer .subfooter-desktop .de-flex-col,
    .subfooter-desktop .de-flex-col {
        display: none !important;
    }
    
    footer .subfooter .subfooter-desktop ul,
    .subfooter-desktop ul,
    footer .subfooter .subfooter-desktop .menu-simple,
    .subfooter-desktop .menu-simple {
        display: none !important;
    }
    
    /* Show and style mobile footer */
    footer .subfooter .subfooter-mobile,
    .subfooter .subfooter-mobile,
    .subfooter-mobile {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        text-align: center !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        padding: 20px 0 !important;
        height: auto !important;
    }
    
    .subfooter-mobile .menu-simple {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }
    
    .subfooter-mobile .menu-simple li {
        display: block !important;
        margin: 0 !important;
    }
    
    .subfooter-mobile .menu-simple li a {
        color: var(--body-font-color-bg-dark) !important;
        text-decoration: none !important;
    }
    
    .subfooter-mobile > div {
        margin-top: 10px !important;
        color: var(--body-font-color-bg-dark) !important;
    }
}

/* Desktop: show desktop footer, hide mobile footer */
@media (min-width: 768px) {
    .subfooter-mobile {
        display: none !important;
    }
    
    .subfooter-desktop {
        display: flex !important;
    }
}

/* Hookly link styling - in same row with policies */
.subfooter-desktop .hookly-link,
.subfooter-mobile .hookly-link {
    color: #4caf50 !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

.subfooter-desktop .hookly-link:hover,
.subfooter-mobile .hookly-link:hover {
    color: #45a049 !important;
    text-shadow: 0 2px 8px rgba(76, 175, 80, 0.4) !important;
}

.subfooter-desktop .hookly-link::after,
.subfooter-mobile .hookly-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4caf50;
    transition: width 0.3s ease;
}

.subfooter-desktop .hookly-link:hover::after,
.subfooter-mobile .hookly-link:hover::after {
    width: 100%;
}

/* Center alignment for subfooter desktop */
.subfooter-desktop {
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
}

.subfooter-desktop .menu-simple {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.subfooter-desktop .menu-simple li {
    display: inline-block !important;
    margin: 0 !important;
}

@media (max-width: 767px) {
    .subfooter-mobile .hookly-link {
        font-size: 16px !important;
    }
    
    /* Process section - vertical layout on mobile */
    .de-step {
        margin-bottom: 30px !important;
        text-align: center !important;
    }
    
    .de-step-arrow::after {
        display: none !important;
    }
    
    .de-step-icon {
        margin: 0 auto 20px auto !important;
    }
    
    .de-step h4 {
        margin-bottom: 15px !important;
    }
    
    .de-step p {
        margin-bottom: 0 !important;
    }
}

/* Larger section titles - only on mobile */
@media (max-width: 767px) {
    .uptitle {
        font-size: 22px !important;
    }
    
    .subtitle {
        font-size: 22px !important;
    }
    
    .subtitle.id-color {
        font-size: 22px !important;
    }
    
    /* Larger "Що кажуть наші пацієнти" heading */
    #testimonials h2.split {
        font-size: 24px !important;
    }
}

/* Блог: посилання "Читати далі" без класу .btn, щоб не блокував designesia.js */
.blog-card-read-more {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #0d6efd;
    text-decoration: none;
    border: 1px solid #0d6efd;
    border-radius: 0.25rem;
    transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.blog-card-read-more:hover {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Блог: текст у межах картки, перенос слів, обмеження в 3 рядки */
.blog-listing-section .blog-card-title,
.blog-listing-section .blog-card-title-link {
    word-wrap: break-word;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-height: 1.35;
}
.blog-listing-section .blog-card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    line-height: 1.5;
}

/* Сторінка статті блогу: гарний заголовок + відступ під фіксований хедер */
.blog-article-header {
    background: linear-gradient(160deg, rgba(0, 188, 212, 0.08) 0%, rgba(0, 151, 167, 0.04) 50%, transparent 100%);
    padding: 2.5rem 0 3rem;
    padding-top: 130px; /* десктоп: щоб контент не ховався під fixed header */
    border-bottom: 1px solid rgba(0, 188, 212, 0.12);
}
/* Щоб стилі теми (.crumb з margin-bottom: -50px) не налазили на заголовок */
.blog-article-header .crumb {
    margin-bottom: 1.25rem !important;
    margin-top: 0 !important;
}
.blog-article-header-inner {
    max-width: 800px;
}
/* Хлібні крихти — фіксований відступ, щоб не налазили на заголовок */
.blog-article-header .blog-article-breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 1.25rem !important;
    margin-top: 0 !important;
    padding-top: 0;
    display: block;
    position: relative;
    z-index: 1;
}
.blog-article-breadcrumb a {
    color: #0097a7;
    text-decoration: none;
    transition: color 0.2s;
}
.blog-article-breadcrumb a:hover {
    color: #006064;
    text-decoration: underline;
}
.blog-article-breadcrumb-sep {
    color: #b0bec5;
    margin: 0 0.4rem;
}
.blog-article-breadcrumb-current {
    color: #78909c;
}
.blog-article-header .blog-article-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
    color: #263238;
    margin: 0 0 1.25rem !important;
    margin-top: 1.75rem !important;
    padding-top: 0;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
    clear: both;
    display: block;
}
.blog-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.blog-article-date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(0, 188, 212, 0.12);
    color: #006064;
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}
.blog-article-date-day {
    font-weight: 700;
}
.blog-article-date-month {
    text-transform: lowercase;
}
.blog-article-meta-sep {
    width: 6px;
    height: 6px;
    background: #b0bec5;
    border-radius: 50%;
}
.blog-article-author {
    font-size: 0.9rem;
    color: #546e7a;
    font-weight: 500;
}
@media (max-width: 991px) {
    .blog-article-header {
        padding-top: 110px;
    }
}
@media (max-width: 767px) {
    .blog-article-header {
        padding: 1rem 0 1.5rem;
        padding-top: 105px; /* мобільний хедер високий — контент не ховається під ним */
    }
    .blog-article-header-inner {
        max-width: 100%;
    }
    .blog-article-breadcrumb {
        font-size: 0.8rem;
        margin-bottom: 2rem;
    }
    .blog-article-title {
        font-size: 1.2rem;
        line-height: 1.35;
        margin-top: 0.35rem;
        margin-bottom: 0.85rem;
    }
    .blog-article-meta {
        gap: 0.5rem;
    }
    .blog-article-date {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    .blog-article-author {
        font-size: 0.8rem;
    }
    .blog-article-meta-sep {
        width: 4px;
        height: 4px;
    }
}
@media (max-width: 480px) {
    .blog-article-header {
        padding: 0.75rem 0 1.25rem;
        padding-top: 98px; /* щоб нічого не було за хедером на малих екранах */
    }
    .blog-article-title {
        font-size: 1.1rem;
        margin-bottom: 0.7rem;
    }
    .blog-article-date {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

