/*!
Theme Name: Theme Statusvet
Theme URI: https://hive.com.ua/
Author: Anton K
Author URI: https://hive.com.ua/
Description: Сучасна ветеринарна тема для сайту Status Vet з Bootstrap 5 та мега-меню
Version: 1.0.0
Tested up to: 8.2
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theme-statusvet
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ===== СУЧАСНІ CSS ЗМІННІ ===== */
:root {
    /* Основна палітра кольорів */
    --primary: #1a2448;
    --primary-light: #2d3a7c;
    --primary-rgb: 26, 36, 72;
    --secondary: #1a2448;
    --secondary-rgb: 108, 208, 202;
    --accent: #f8f9fa;
    --white: #ffffff;
    --black: #000000;
    --bs-primary-rgb:26, 36, 72;
    --bs-success-rgb:26, 36, 72;
    
    /* Текст */
    --text-primary: #1a2448;
    --text-secondary: #1a2448;
    --text-light: #adb5bd;
    
    /* Фон */
    --bg-body: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a2448;
    
    /* Границі та тіні */
    --border-color: #dee2e6;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
    
    /* Тіні */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Анімації */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Розміри */
    --header-height: 80px;
    --header-height-scrolled: 70px;
    --container-padding: clamp(1rem, 5vw, 2rem);
    --section-spacing: clamp(4rem, 10vw, 8rem);
    
    /* Градієнти */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, #4ecdc4 100%);
    --gradient-danger: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    --gradient-overlay: linear-gradient(to bottom, rgba(26, 36, 72, 0.8), rgba(26, 36, 72, 0.6));
}

.


/* ===== СИСТЕМНІ СТИЛІ ===== */

/* Скидання та базові налаштування */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-body);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: var(--header-height);
}

/* Типографія */
h1, .h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h2, .h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.25rem;
}

h3, .h3 {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: clamp(1rem, 2vw, 1.125rem);
}

.lead {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Посилання */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
}

/* Зображення */
img {
    height: auto;
    display: block;
    object-fit: cover;
}

.img-fluid {
    width: 100%;
    height: auto;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius-xl);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    white-space: nowrap;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform var(--transition-base);
}

.btn:hover::after {
    transform: translateX(0);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--primary);
}

.btn-danger {
    background: var(--gradient-danger);
    color: var(--white);
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* Контейнери */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--container-padding);
}

/* Сітка */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(var(--container-padding) * -0.5);
}

.col {
    flex: 1;
    padding: 0 calc(var(--container-padding) * 0.5);
}

/* Утиліти */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: var(--gradient-primary);
}

.rounded-xl {
    border-radius: var(--border-radius-xl) !important;
}

.shadow-hover {
    transition: box-shadow var(--transition-base);
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg);
}


/* ========== ОСНОВНІ СТИЛІ ХЕДЕРА ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background-color: transparent;
    transition: all 0.3s ease;
}

.site-header.blog{ background-color: #1a2448!important;}

.site-header.scrolled {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Логотип */
.logo-container {
    flex-shrink: 0;
}

.logo-img {
    max-width: 180px;
    height: auto;
    transition: opacity 0.3s ease;
}

.logo-white {
    opacity: 1;
}

.logo-dark {
    position: absolute;
    opacity: 0;
}

.site-header.scrolled .logo-white {
    opacity: 0;
}

.site-header.scrolled .logo-dark {
    position: absolute;
    margin: -72px 0 0;
    opacity: 1;
}

/* ========== ДЕСКТОПНА ВЕРСІЯ (≥1100px) ========== */
@media (min-width: 1100px) {
    .menu-toggle {
        display: none;
    }
    
    .menu-wrapper {
        display: flex;
        align-items: center;
    }
    
    /* Основне меню */
    .primary-menu {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .primary-menu > .nav-item {
        position: static;
        margin: 0 20px;
    }
    
    /* Пункти меню - білі при початковому стані */
    .nav-link {
        color: #fff;
        text-decoration: none;
        font-size: 16px;
        font-weight: 500;
        padding: 8px 0;
        position: relative;
        display: flex;
        align-items: center;
        gap: 5px;
        transition: color 0.3s ease;
    }
    
    /* Сині при скролі */
    .site-header.scrolled .nav-link {
        color: #1a2448;
    }
    
    /* Підкреслення при наведенні */
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: #fff;
        transition: width 0.3s ease;
    }
    
    .site-header.scrolled .nav-link::after {
        background-color: #1a2448;
    }
    
    .nav-link:hover::after {
        width: 100%;
    }
    
    /* Стрілка вниз для пунктів з підменю */
    .dropdown-icon {
        font-size: 12px;
        margin-left: 5px;
        transition: transform 0.3s ease;
    }
    
    .has-dropdown.active .dropdown-icon {
        transform: rotate(180deg);
    }

    .site-header :is(.nav-link:focus), .site-header :is(.nav-link:hover) {
        color: #fff;
    }

    .site-header.scrolled :is(.nav-link:focus), .site-header.scrolled :is(.nav-link:hover) {
        color: #1a2448;
    }

    /* ========== МЕГА-МЕНЮ ДЕСКТОП ========== */
    .mega-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100vw;
        margin-left: -50vw;
        left: 50%;
        background-color: #fff;
        padding: 40px 0;
        display: none;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .mega-menu.active {
        display: block;
        animation: fadeInDown 0.3s ease;
    }
    
    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .mega-menu-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
    }
    
    .mega-menu-column {
        display: flex;
        flex-direction: column;
    }
    
    /* Сині посилання в мега-меню */
    .mega-menu-link {
        color: #2d3a7c;
        text-decoration: none;
        padding: 8px 0;
        font-size: 15px;
         display: inline-block;
        position: relative;
        transition: all 0.3s ease;
    }
    
  .mega-menu-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #2d3a7c;
    transition: width 0.3s ease;
}
    .mega-menu-link:hover {
        opacity: 1;
    }
    
    .mega-menu-link:hover::after {
        width: 100%;
    }
    
    /* Вкладені пункти */
    .mega-menu-subitems {
        margin-top: 8px;
        margin-left: 15px;
    }
    
    .mega-menu-sublink {
        color: #4a5abf;
        text-decoration: none;
        padding: 6px 0;
        font-size: 14px;
        display: block;
        position: relative;
        transition: all 0.3s ease;
    }
    
    .mega-menu-sublink:hover {
        color: #2d3a7c;
        padding-left: 5px;
    }
    
    .mega-menu-sublink::before {
        content: '›';
        position: absolute;
        left: -12px;
        top: 50%;
        transform: translateY(-50%);
        color: #4a5abf;
        font-size: 12px;
    }
    
    /* Кнопка термінового звернення */
    .emergency-btn {
        background-color: #dc3545;
        color: #fff;
        border: none;
        padding: 12px 24px;
        border-radius: 4px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        margin-left: 30px;
        transition: background-color 0.3s ease;
    }
    
    .emergency-btn:hover {
        background-color: #c82333;
    }
}

/* ========== МОБІЛЬНА ВЕРСІЯ (<1100px) ========== */
@media (max-width: 1099px) {
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 1002;
    }
    
    .hamburger-line {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #fff;
        margin: 4px 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    
    .site-header.scrolled .hamburger-line {
        background-color: #1a2448;
    }
    
    .menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .menu-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: #fff;
        padding: 30px 20px 20px;
        transition: right 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
    }
    
    .menu-wrapper.active {
        right: 0;
        top: 80px !important;
        height: calc(100vh - 80px);
    }
    
    .primary-menu {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .nav-item {
        border-bottom: 1px solid #eee;
    }
    
    .nav-link {
        color: #333;
        text-decoration: none;
        padding: 15px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .dropdown-icon {
        transform: rotate(270deg);
    }
    
    /* Приховуємо десктопне мега-меню на мобільних */
    .mega-menu {
        display: none !important;
    }
    
    /* Кнопка термінового звернення */
    .emergency-btn {
        background-color: #dc3545;
        color: #fff;
        border: none;
        padding: 12px 24px;
        border-radius: 4px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        margin-top: 20px;
        width: 100%;
    }
    
    /* Оверлей для мобільного меню */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        display: none;
        z-index: 999;
    }
    
    .mobile-menu-overlay.active {
        display: block;
    }
}

/* ========== ПОПАП ДЛЯ ФОРМИ ========== */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.3s ease;
}

.popup-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    padding: 30px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.popup-overlay.active .popup-content {
    transform: translateY(0);
}

.popup-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1a2448 0%, #2a3a6c 50%, #1a2448 100%);
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.popup-close:hover {
    background: #1a2448;
    color: white;
    transform: rotate(90deg);
    box-shadow: 0 4px 15px rgba(26, 36, 72, 0.3);
}

.form-container {
    position: relative;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

/* Стилі для полів форми */
.form-container input,
.form-container textarea,
.form-container select {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-container input:focus,
.form-container textarea:focus,
.form-container select:focus {
    outline: none;
    border-color: #1a2448;
    box-shadow: 0 0 0 3px rgba(26, 36, 72, 0.1);
}

.form-container textarea {
    min-height: 120px;
    resize: vertical;
}

/* Стилі для кнопки відправки */
.form-container .wpcf7-submit {
    background: linear-gradient(135deg, #1a2448 0%, #2a3a6c 100%);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-container .wpcf7-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(26, 36, 72, 0.2);
    background: linear-gradient(135deg, #2a3a6c 0%, #1a2448 100%);
}

/* Стилі для заголовка форми */
.form-container .wpcf7-form h3 {
    text-align: center;
    color: #1a2448;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 700;
}

/* Стилі для міток */
.form-container label {
    color: #1a2448;
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

/* Стилі для повідомлень */
.form-container .wpcf7-response-output {
    border-radius: 10px;
    margin: 20px 0 0 !important;
    padding: 15px !important;
    border-width: 1px !important;
}

.form-container .wpcf7-not-valid-tip {
    color: #2a3a6c;
    font-size: 14px;
    margin-top: -15px;
    margin-bottom: 15px;
}

/* Стилі для завантаження */
.form-container .wpcf7-spinner {
    margin: 10px auto;
    display: block;
}

/* Анімації */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Прокрутка форми */
.form-container::-webkit-scrollbar {
    width: 6px;
}

.form-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.form-container::-webkit-scrollbar-thumb {
    background: #2a3a6c;
    border-radius: 10px;
}

.form-container::-webkit-scrollbar-thumb:hover {
    background: #1a2448;
}

/* Адаптивність */
@media (max-width: 768px) {
    .popup-content {
        padding: 40px 25px 30px;
        width: 95%;
        max-width: 400px;
    }
    
    .popup-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .form-container {
        max-height: 60vh;
    }
    
    .form-container .wpcf7-form h3 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .popup-content {
        padding: 35px 20px 25px;
        border-radius: 15px;
    }
    
    .form-container input,
    .form-container textarea,
    .form-container select {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .form-container .wpcf7-submit {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .form-container .wpcf7-form h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
}

/* ========== МОБІЛЬНЕ ПІДМЕНЮ ========== */

.mobile-submenu-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.mobile-submenu-header .back-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.mobile-submenu-title {
    margin: 0 0 0 15px;
    font-size: 18px;
    color: #333;
    flex-grow: 1;
}

.mobile-submenu-content {
    padding: 20px;
}

.mobile-submenu-item {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.mobile-submenu-link {
    color: #333;
    text-decoration: none;
    padding: 12px 0;
    display: block;
    font-size: 16px;
    width: 100%;
}

.mobile-submenu-link.has-nested-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 15px;
}

.nested-arrow {
    font-size: 12px;
    color: #2d3a7c;
}

/* ========== ВКЛАДЕНІ ПУНКТИ В МЕГА-МЕНЮ (ДЕСКТОП) ========== */

/* Основний пункт у мега-меню */


/* Контейнер для вкладених пунктів */
.mega-menu-subitems {
    margin-top: 5px;
    margin-left: 15px;
    display: flex;
    flex-direction: column;
}

/* Вкладені пункти (рівень 2) */
.mega-menu-sublink {
    color: #2d3a7c;
    text-decoration: none;
    padding: 6px 0;
    font-size: 14px;
    display: block;
    position: relative;
    transition: all 0.3s ease;
}

/* Стрілка перед вкладеними пунктами */
.mega-menu-sublink::before {
    content: '›';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    color: #2d3a7c;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.mega-menu-sublink:hover {
    color: #2d3a7c;
    padding-left: 5px;
}

.mega-menu-sublink:hover::before {
    transform: translateY(-50%) translateX(2px);
    color: #2d3a7c;
}

/* ========== ВКЛАДЕНІ ПУНКТИ В МОБІЛЬНОМУ МЕНЮ ========== */

@media (max-width: 1099px) {
    /* Основний пункт у мобільному меню */
    .mobile-menu-item {
        position: relative;
    }
    
    .mobile-menu-link {
        color: #333;
        text-decoration: none;
        padding: 12px 0;
        display: block;
        font-size: 16px;
        border-bottom: 1px solid #eee;
        position: relative;
    }
    
    /* Стрілка для пунктів з підменю в мобільній версії */
    .mobile-menu-link.has-children::after {
        content: '\F285';
        font-family: 'bootstrap-icons';
        font-size: 14px;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        color: #2d3a7c;
    }
    
    /* Контейнер для вкладених пунктів у мобільному меню */
    .mobile-subitems {
        display: none;
        padding-left: 15px;
        background-color: #f9f9f9;
    }
    
    .mobile-subitem {
        position: relative;
    }
    
    /* Вкладені пункти (рівень 2) у мобільному меню */
    .mobile-sublink {
        color: #2d3a7c;
        text-decoration: none;
        padding: 10px 0 10px 15px;
        display: block;
        font-size: 15px;
        border-bottom: 1px solid #eee;
    }
    
    /* Стрілка для вкладених пунктів з ще однією вкладеністю */
    .mobile-sublink.has-children::after {
        content: '\F285';
        font-family: 'bootstrap-icons';
        font-size: 12px;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #2d3a7c;
    }
    
    /* Контейнер для вкладених пунктів третього рівня */
    .mobile-subsubitems {
        display: none;
        padding-left: 15px;
        background-color: #f5f5f5;
    }
    
    /* Пункти третього рівня */
    .mobile-subsubitem {
        position: relative;
    }
    
    .mobile-subsublink {
        color: #888;
        text-decoration: none;
        padding: 8px 0 8px 25px;
        display: block;
        font-size: 14px;
        border-bottom: 1px solid #eee;
    }
}

/* ========== ВКЛАДЕНІ ПУНКТИ В МОБІЛЬНОМУ ВИЇЗДЖАЮЧОМУ МЕНЮ ========== */

/* Стилі для мобільного підменю (що виїзджає справа) */
.mobile-submenu-content .mobile-menu-item {
    border-bottom: 1px solid #eee;
}

.mobile-submenu-content .mobile-menu-link {
    color: #333;
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-submenu-content .mobile-menu-link.has-children::after {
    content: '\F285';
    font-family: 'bootstrap-icons';
    font-size: 14px;
}

/* Вкладені пункти в мобільному підменю */
.mobile-submenu-content .mobile-subitems {
    display: none;
    padding: 10px 0;
    background-color: #f9f9f9;
}

.mobile-submenu-content .mobile-subitem {
    padding-left: 20px;
}

.mobile-submenu-content .mobile-sublink {
    color: #2d3a7c;
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-submenu-content .mobile-sublink.has-children::after {
    content: '\F285';
    font-family: 'bootstrap-icons';
    font-size: 12px;
}

/* Вкладені пункти третього рівня в мобільному підменю */
.mobile-submenu-content .mobile-subsubitems {
    display: none;
    padding: 8px 0;
    background-color: #f5f5f5;
}

.mobile-submenu-content .mobile-subsubitem {
    padding-left: 40px;
}

.mobile-submenu-content .mobile-subsublink {
    color: #888;
    padding: 6px 0;
}

/* ========== МОБІЛЬНЕ ПІДМЕНЮ ========== */




.mobile-submenu-title {
    margin: 0 0 0 15px;
    font-size: 18px;
    color: #333;
}

.mobile-submenu-content {
    padding: 20px;
}

.mobile-submenu-item {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.mobile-submenu-link {
    color: #333;
    text-decoration: none;
    padding: 12px 0;
    display: block;
    font-size: 16px;
}

/* Приховуємо стрілку вниз на мобільній версії */
@media (max-width: 1099px) {
    .dropdown-icon {
        display: inline-block !important;
    }
    
    .has-dropdown > .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}


/* ========== СТИЛІ ДЛЯ СТРІЛОК ========== */

/* На мобільній версії стрілка завжди видима */
@media (max-width: 1099px) {
    .has-dropdown > .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .dropdown-icon {
        display: inline-block !important;
        margin-left: 10px;
        transform: rotate(270deg);
    }
    
    /* Приховуємо підкреслення на мобільній версії */
    .nav-link::after {
        display: none;
    }
}

/* На десктопі стрілка тільки при наведенні */
@media (min-width: 1100px) {
    .dropdown-icon {
        transition: transform 0.3s ease;
    }
    
    .has-dropdown.active .dropdown-icon {
        transform: rotate(180deg);
    }
}

/* ========== СТИЛІ ДЛЯ МОБІЛЬНОГО ПІДМЕНЮ ========== */
.mobile-submenu-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    transition: right 0.3s ease;
    z-index: 1003;
    overflow-y: auto;
}

.mobile-submenu-container.active {
    right: 0;
}

.mobile-submenu-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.mobile-submenu-header .back-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.mobile-submenu-title {
    margin: 0 0 0 15px;
    font-size: 18px;
    color: #333;
    flex-grow: 1;
}

.mobile-submenu-content {
    padding: 20px;
}

.mobile-submenu-item {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.mobile-submenu-link {
    color: #333;
    text-decoration: none;
    padding: 12px 0;
    display: block;
    font-size: 16px;
    width: 100%;
}

/* ========== СТИЛІ ДЛЯ ВКЛАДЕНИХ ПУНКТІВ У МОБІЛЬНОМУ МЕНЮ ========== */

.mobile-submenu-item {
    position: relative;
    border-bottom: 1px solid #eee;
}

.mobile-submenu-item.has-nested {
    background-color: #f9f9f9;
}

.mobile-submenu-link {
    color: #333;
    text-decoration: none;
    padding: 15px 0;
    display: block;
    font-size: 16px;
    width: 100%;
}

.mobile-submenu-link.has-nested-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 15px;
}

.nested-arrow {
    font-size: 12px;
    color: #2d3a7c;
    transition: transform 0.3s ease;
}

.mobile-submenu-item.has-nested:hover .nested-arrow {
    transform: translateX(3px);
    color: #2d3a7c;
}

/* Підпункти другого рівня в мобільному меню */
.mobile-submenu-item .mobile-submenu-item {
    padding-left: 20px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-submenu-item .mobile-submenu-item .mobile-submenu-link {
    font-size: 15px;
    color: #2d3a7c;
    padding: 12px 0;
}

.mobile-submenu-item .mobile-submenu-item .nested-arrow {
    font-size: 11px;
}

/* Анімація для вкладених меню */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

.mobile-submenu-container.active {
    animation: slideInRight 0.3s ease forwards;
}

.mobile-submenu-container.closing {
    animation: slideOutRight 0.3s ease forwards;
}

/* Заголовок підменю */
.mobile-submenu-header {
    background-color: #fff;
    color: #1a2448;
}

.mobile-submenu-header .back-btn {
    color: #1a2448;
}

.mobile-submenu-title {
    color: #1a2448;
    margin: 0 0 0 15px;
    font-size: 18px;
}




/* ===== БЛОК 1: ГЕРОЙ (ПОВНОЕКРАННИЙ) З ПРОЗОРИМ ХЕДЕРОМ ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    margin-top: calc(-1 * var(--header-height)); /* Компенсація для padding-top body */
}

/* Фон тільки для контенту, не під хедером */
.hero-background {
    position: absolute;
    top: var(--header-height); /* Починається під хедером */
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height)); /* 100% висоти мінус хедер */
    z-index: 0;
    background-color: #f8f9fa; /* Фоновий колір на випадок завантаження зображення */
}

/* Адаптивне фонове зображення - ЗМІНА: object-fit: contain */
.hero-background img {
    object-fit: cover; /* Зображення не обрізається, показується повністю */
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-position: center center; /* Центруємо зображення */
}

/* Темний оверлей для тексту - тепер по центру */
.hero-background > div:last-child {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.6) 20%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.2) 60%,
        rgba(0, 0, 0, 0) 80%
    );
}

/* Контейнер для контенту (починається під хедером) */
.hero-section .container-fluid {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-height) + 2rem);
}

/* Заголовок */
.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 2rem;
}

/* Кнопки */
.hero-section .btn {
    min-width: 220px;
    margin: 0.5rem;
    transition: all var(--transition-base);
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Прокрутка вниз - знизу блоку */
.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down i {
    font-size: 2rem;
    color: var(--white);
    opacity: 0.8;
    transition: opacity var(--transition-base);
    animation: bounce 2s infinite;
}

.scroll-down:hover i {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===== АДАПТИВНІ СТИЛІ ДЛЯ ФОНУ ===== */

/* Для широких екранів (landscape) - зображення буде по ширині */
@media (min-width: 1200px) and (orientation: landscape) {
    .hero-background img {
        object-fit: cover;
        object-position: center center;
    }
}

/* Для мобільних девайсів (портретна орієнтація) */
@media (max-width: 992px) {
    .hero-background {
        height: calc(90vh - var(--header-height));
    }
    
    .hero-section .container-fluid {
        min-height: calc(90vh - var(--header-height));
    }
    
    /* Текст по центру на мобільних */
    .hero-section .row {
        justify-content: center !important;
        text-align: center;
    }
    
    .hero-section .col-lg-4 {
        background-color: rgba(0, 0, 0, 0.5);
        border-radius: var(--border-radius);
        padding: 2rem !important;
        backdrop-filter: blur(5px);
    }
    
    /* Градієнт для кращої читабельності на мобільних */
    .hero-background > div:last-child {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.3) 100%
        );
    }
}

/* Для дуже маленьких екранів */
@media (max-width: 768px) {
    .hero-background {
        height: calc(85vh - var(--header-height));
    }
    
    .hero-section .container-fluid {
        min-height: calc(85vh - var(--header-height));
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 1.5vw, 1.25rem);
    }
    
    .hero-section .btn {
        min-width: 200px;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Для телефонів */
@media (max-width: 576px) {
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-background {
        height: calc(80vh - var(--header-height));
    }
    
    .hero-section .container-fluid {
        min-height: calc(80vh - var(--header-height));
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-section .col-lg-4 {
        padding: 1.5rem !important;
    }
    
    .hero-section .d-flex {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-section .btn {
        width: 100%;
        max-width: 300px;
        margin: 0.5rem 0;
    }
}

/* Для дуже маленьких телефонів */
@media (max-width: 375px) {
    .hero-section {
        min-height: 70vh;
    }
    
    .hero-background {
        height: calc(70vh - var(--header-height));
    }
    
    .hero-section .container-fluid {
        min-height: calc(70vh - var(--header-height));
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Спеціальні стилі для вертикальних екранів */
@media (max-height: 700px) and (orientation: portrait) {
    .hero-background img {
        object-fit: contain;
        object-position: center top; /* Вирівнюємо зверху для вертикальних екранів */
    }
    
    .hero-section .container-fluid {
        align-items: flex-start;
        padding-top: calc(var(--header-height) + 3rem);
    }
}

/* Стилі для горизонтальних екранів (планшети) */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        min-height: 120vh; /* Більше висоти для ландшафту */
    }
    
    .hero-background {
        height: calc(120vh - var(--header-height));
    }
    
    .hero-background img {
        object-fit: contain;
        object-position: center center;
    }
    
    .hero-section .container-fluid {
        min-height: calc(120vh - var(--header-height));
    }
}

/* Утиліти */
.vh-100 {
    min-height: 100vh;
}

.z-1 {
    z-index: 1;
}





/* ===== БЛОК 2: ПРО НАС ===== */
#about {
    padding: clamp(3rem, 8vw, 7rem) 0;
    position: relative;
}

/* Фонове зображення для блоку "Про нас" */
#about {
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

/* Адаптивне зображення */
.about-image {
    transition: transform var(--transition-base);
    aspect-ratio: 4/3;
}

.about-image:hover {
    transform: scale(1.02);
}

.about-image img {
    height: 100%;
    object-fit: cover;
}

/* Особливості */
.feature-icon {
    transition: all var(--transition-base);
    min-width: 64px;
}

.feature-icon:hover {
    transform: rotate(10deg) scale(1.1);
    background: var(--primary) !important;
}

.feature-icon:hover i {
    color: var(--white) !important;
}

/* ===== БЛОК 3: ПОСЛУГИ ===== */
.services-image {
    transition: transform var(--transition-base);
    aspect-ratio: 4/3;
}

.services-image:hover {
    transform: scale(1.02);
}

.services-image img {
    height: 100%;
    object-fit: cover;
}

.services-list div {
    transition: transform var(--transition-base);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
}

.services-list div:hover {
    transform: translateX(10px);
    background-color: rgba(var(--primary-rgb), 0.05);
}

/* ===== БЛОК 4: КОНТАКТИ ===== */
.contact-item {
    transition: all var(--transition-base);
    border: 1px solid transparent;
    background: var(--white);
}

.contact-item:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    transition: transform var(--transition-base);
}

.contact-item:hover .contact-icon {
    transform: scale(1.2);
}

/* ===== АДАПТИВНІ СТИЛІ ===== */
@media (max-width: 992px) {
    .hero-section {
        min-height: 90vh;
    }
    
    .hero-section .container-fluid {
        padding-top: calc(var(--header-height) + 1rem);
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 4vw, 3rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 1.5vw, 1.25rem);
    }
    
    .hero-section .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Вирівнювання контенту по центру на мобільних */
    .hero-section .row {
        justify-content: center !important;
    }
    
    .hero-section .col-lg-4 {
        text-align: center;
        padding: 0 1rem;
    }
    
    /* Фон для героя на мобільних */
    .hero-background > div:last-child {
        background: linear-gradient(to bottom, 
            rgba(0, 0, 0, 0.7) 0%, 
            rgba(0, 0, 0, 0.5) 50%, 
            rgba(0, 0, 0, 0.3) 100%);
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-section .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    #about, 
    .bg-light {
        padding: clamp(2rem, 6vw, 5rem) 0;
    }
    
    .about-image,
    .services-image {
        margin-bottom: 2rem;
    }
    
    /* Зміна порядку блоків */
    .order-lg-1.order-2 {
        order: 2;
    }
    
    .order-lg-2.order-1 {
        order: 1;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 3vw, 2.5rem);
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        margin-bottom: 2rem;
    }
    
    .d-flex.flex-wrap.gap-3 {
        gap: 0.5rem !important;
    }
}

/* Спеціальні адаптивні стилі для фону героя */
@media (max-width: 1200px) {
    .hero-background img {
        object-position: 70% center;
    }
}

@media (max-width: 768px) {
    .hero-background img {
        object-position: 60% center;
    }
}

@media (max-width: 576px) {
    .hero-background img {
        object-position: center center;
    }
}

/* Анімації для появи елементів */
.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate__fadeInDown {
    animation-name: fadeInDown;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

.animate__fadeInLeft {
    animation-name: fadeInLeft;
}

.animate__fadeInRight {
    animation-name: fadeInRight;
}

.animate__delay-1s {
    animation-delay: 0.5s;
}

.animate__delay-2s {
    animation-delay: 1s;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Утиліти */
.img-cover {
    object-fit: cover;
}

.vh-100 {
    min-height: 100vh;
}

.z-1 {
    z-index: 1;
}

/* Стилі для кнопок у блоці героя */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(26, 36, 72, 0.3);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
}


/* ===== СТИЛІ ДЛЯ СИНГЛ ПОСТА ТА СТОРІНОК (ЯК НА ГОЛОВНІЙ) ===== */

.page-hero,
.single-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    margin-top: calc(-1 * var(--header-height)); /* Компенсація для padding-top body */
}

/* Фон тільки для контенту, не під хедером */
.page-hero .hero-background,
.single-hero .hero-background {
    position: absolute;
    top: var(--header-height); /* Починається під хедером */
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height)); /* 100% висоти мінус хедер */
    z-index: 0;
    background-color: #f8f9fa; /* Фоновий колір на випадок завантаження зображення */
}

/* Адаптивне фонове зображення */
.page-hero .hero-background img,
.single-hero .hero-background img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-position: center center;
}

/* Темний оверлей для тексту */
.page-hero .hero-background > div:last-child,
.single-hero .hero-background > div:last-child {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.6) 20%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.2) 60%,
        rgba(0, 0, 0, 0) 80%
    );
}

/* Контейнер для контенту (починається під хедером) */
.page-hero .container-fluid,
.single-hero .container-fluid {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-height) + 2rem);
}

/* Заголовок */
.page-hero h1,
.single-hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: 1.5rem;
}

/* Мета інформація в пості */
.post-meta {
    font-size: 1.1rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.post-meta i {
    font-size: 1.3rem;
}

/* Прокрутка вниз */
.page-hero .scroll-down,
.single-hero .scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.page-hero .scroll-down i,
.single-hero .scroll-down i {
    font-size: 2rem;
    color: var(--white);
    opacity: 0.8;
    transition: opacity var(--transition-base);
    animation: bounce 2s infinite;
}

.page-hero .scroll-down:hover i,
.single-hero .scroll-down:hover i {
    opacity: 1;
}

/* ===== АДАПТИВНІ СТИЛІ ДЛЯ СТОРІНОК ТА ПОСТІВ ===== */

/* Для широких екранів (landscape) */
@media (min-width: 1200px) and (orientation: landscape) {
    .page-hero .hero-background img,
    .single-hero .hero-background img {
        object-fit: cover;
        object-position: center center;
    }
}

/* Для планшетів */
@media (max-width: 992px) {
    .page-hero,
    .single-hero {
        min-height: 90vh;
    }
    
    .page-hero .hero-background,
    .single-hero .hero-background {
        height: calc(90vh - var(--header-height));
    }
    
    .page-hero .container-fluid,
    .single-hero .container-fluid {
        min-height: calc(90vh - var(--header-height));
        padding-top: calc(var(--header-height) + 1rem);
    }
    
    .page-hero h1,
    .single-hero h1 {
        font-size: clamp(2rem, 4vw, 3rem);
    }
    
    .post-meta {
        font-size: 1rem;
    }
    
    .post-meta i {
        font-size: 1.1rem;
    }
    
    /* Градієнт для кращої читабельності на мобільних */
    .page-hero .hero-background > div:last-child,
    .single-hero .hero-background > div:last-child {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.3) 100%
        );
    }
}

/* Для мобільних */
@media (max-width: 768px) {
    .page-hero,
    .single-hero {
        min-height: 85vh;
    }
    
    .page-hero .hero-background,
    .single-hero .hero-background {
        height: calc(85vh - var(--header-height));
    }
    
    .page-hero .container-fluid,
    .single-hero .container-fluid {
        min-height: calc(85vh - var(--header-height));
        padding-top: calc(var(--header-height) + 0.5rem);
    }
    
    .page-hero h1,
    .single-hero h1 {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem !important;
    }
}

/* Для телефонів */
@media (max-width: 576px) {
    .page-hero,
    .single-hero {
        min-height: 80vh;
    }
    
    .page-hero .hero-background,
    .single-hero .hero-background {
        height: calc(80vh - var(--header-height));
    }
    
    .page-hero .container-fluid,
    .single-hero .container-fluid {
        min-height: calc(80vh - var(--header-height));
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .page-hero h1,
    .single-hero h1 {
        font-size: 1.75rem;
    }
    
    .post-meta span {
        font-size: 0.9rem;
    }
}

/* Для дуже маленьких телефонів */
@media (max-width: 375px) {
    .page-hero,
    .single-hero {
        min-height: 70vh;
    }
    
    .page-hero .hero-background,
    .single-hero .hero-background {
        height: calc(70vh - var(--header-height));
    }
    
    .page-hero .container-fluid,
    .single-hero .container-fluid {
        min-height: calc(70vh - var(--header-height));
    }
    
    .page-hero h1,
    .single-hero h1 {
        font-size: 1.5rem;
    }
}

/* Спеціальні стилі для вертикальних екранів */
@media (max-height: 700px) and (orientation: portrait) {
    .page-hero .hero-background img,
    .single-hero .hero-background img {
        object-fit: contain;
        object-position: center top;
    }
    
    .page-hero .container-fluid,
    .single-hero .container-fluid {
        align-items: flex-start;
        padding-top: calc(var(--header-height) + 3rem);
    }
}

/* Стилі для горизонтальних екранів (планшети) */
@media (max-height: 600px) and (orientation: landscape) {
    .page-hero,
    .single-hero {
        min-height: 120vh;
    }
    
    .page-hero .hero-background,
    .single-hero .hero-background {
        height: calc(120vh - var(--header-height));
    }
    
    .page-hero .hero-background img,
    .single-hero .hero-background img {
        object-fit: contain;
        object-position: center center;
    }
    
    .page-hero .container-fluid,
    .single-hero .container-fluid {
        min-height: calc(120vh - var(--header-height));
    }
}


/**********   teams    ********* /




/* Для головного посилання в меню */
a.mega-menu-link[href="https://statusvet.com.ua/services"] {
    color: #e74c3c !important;
}

/* Для підменю "Прайс на послуги" */
.mega-menu-item a.mega-menu-link[href="https://statusvet.com.ua/services/prajs-na-posluhy"] {
    color: #e74c3c !important;
}



/* Стилі для хлібних крошок */
        .breadcrumbs {
            font-size: 1rem;
            text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
        }
        
        .breadcrumbs .breadcrumb {
            background: transparent;
            padding: 0;
            margin-bottom: 1rem;
            justify-content: center;
        }
        
        .breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
            color: rgba(255,255,255,0.6);
            content: "•";
        }
        
        .breadcrumbs a, .breadcrumbs .active {
            color: var(--white);
            text-decoration: none;    
        }
        
           .breadcrumbs :is(span) {color:white}

        .breadcrumbs .active,.breadcrumbs :is(span.breadcrumb_last) {opacity: .6;}
        .breadcrumbs a:hover {
            text-decoration: underline;
        }



/* ===== СТИЛІ ДЛЯ ВКЛАДЕНИХ ПУНКТІВ У МОБІЛЬНІЙ ВЕРСІЇ ===== */
@media (max-width: 1099px) {
    .mega-menu {
        display: none !important;
        position: static !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #f9f9f9 !important;
        box-shadow: none !important;
        animation: none !important;
        left: auto !important;
        transform: none !important;
    }
    
    .mega-menu.active,
    .mega-menu[style*="display: block"] {
        display: block !important;
    }
    
    .mega-menu-content {
        display: block !important;
        padding: 0 0 0 15px !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    
    .mega-menu-column {
        margin-bottom: 0 !important;
    }
    
    .mega-menu-item {
        border-bottom: 1px solid #e0e0e0;
    }
    
    .mega-menu-link {
        padding: 12px 0 !important;
        color: #2d3a7c !important;
        font-weight: 500;
    }
    
    .mega-menu-subitems {
        margin: 0 !important;
        padding-left: 15px !important;
    }
    
    .mega-menu-sublink {
        padding: 10px 0 !important;
        color: #4a5abf !important;
    }
    
    .mega-menu-sublink::before {
        content: '•' !important;
        left: -10px !important;
        font-size: 14px !important;
    }
}


/****************  visit ************/

/* Стилі для сторінки "Ваш візит" */
.page-hero {
    min-height: 50vh;
    margin-top: calc(-1 * var(--header-height));
}

.feature-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(26,36,72,0.1);
}

.feature-icon-wrapper {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.checklist-box {
    border-left: 4px solid var(--primary);
}

.requirement-card {
    transition: all 0.3s ease;
}

.requirement-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(26,36,72,0.1);
}

.rules-box {
    border: 1px solid rgba(26,36,72,0.1);
}

@media (max-width: 992px) {
    .page-hero {
        min-height: 40vh;
    }
    
    .page-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .preparation-image img,
    .documents-image img {
        height: 400px !important;
    }
}

.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (min-width: 992px) {
    .py-lg-7 {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}


/* Sticky photo для блоків з текстом */
.sticky-photo-wrapper {
    height: 100%;
    position: relative;
}

.sticky-photo {
    position: sticky;
    top: 120px; /* Відступ від хедера (80px + 40px) */
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    will-change: transform; /* Покращує продуктивність */
}

.sticky-photo img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.sticky-photo:hover img {
    transform: scale(1.02);
}

/* Фіксована висота для фото, щоб sticky працював */
.sticky-photo {
    max-height: 600px;
}

.sticky-photo img {
    height: 600px;
    object-fit: cover;
}

/* Адаптація для мобільних */
@media (max-width: 992px) {
    .sticky-photo {
        position: relative;
        top: 0;
        max-height: 400px;
    }
    
    .sticky-photo img {
        height: 400px;
    }
}

/* Для різних розмірів екранів */
@media (min-width: 1200px) {
    .sticky-photo {
        max-height: 650px;
    }
    .sticky-photo img {
        height: 650px;
    }
}

@media (min-width: 1600px) {
    .sticky-photo {
        max-height: 700px;
    }
    .sticky-photo img {
        height: 700px;
    }
}

/* Sticky photo */
.sticky-photo-wrapper {
    height: 100%;
    position: relative;
}

.sticky-photo {
    position: sticky;
    top: 120px;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(26,36,72,0.15);
}

.sticky-photo img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.sticky-photo:hover img {
    transform: scale(1.02);
}

/* Мобільна версія */
@media (max-width: 992px) {
    .sticky-photo {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }
    
    .sticky-photo img {
        height: 400px;
    }
    
    .ps-lg-4, .pe-lg-4 {
        padding: 0 !important;
    }
}

/* Великі екрани */
@media (min-width: 1400px) {
    .sticky-photo img {
        height: 650px;
    }
}

.footer-contacts .footer-contact-list li span,
.footer-contacts .footer-contact-list li a {
    line-height: 2rem; /* временно для проверки */
}