/* Покращення для головної сторінки index.html */

/* Запобігає горизонтальному скролу на головній */
html,
body {
    overflow-x: hidden;
}

/* Фіксуємо фон до viewport — усуває смугу з іншим відтінком перед футером.
   Без цього градієнт body прив'язується до висоти контенту і створює видиму
   смугу (світліший відтінок + ефект променів) в зоні між hero і footer */
body.index-page {
    background-attachment: fixed !important;
}

/* Уніфікація фону перед футером на головній:
   прибираємо будь-які додаткові шари/відтінки, щоб нижня частина сторінки
   мала той самий фон, що й решта сторінки */
body.index-page .hero::before {
    display: none !important;
    content: none !important;
    background: none !important;
}

body.index-page .hero::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

/* Прибираємо різницю фону перед футером для всіх тем */
body.index-page main {
    background: transparent !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body.index-page main::before {
    display: none !important;
    content: none !important;
    background: none !important;
}

body.index-page main::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

body.index-page .hero {
    background: transparent !important;
}

/* Прибираємо будь-які елементи з іншим фоном перед футером */
body.index-page footer.site-footer::before {
    display: none !important;
    content: none !important;
    background: none !important;
}

body.index-page footer.site-footer::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

/* Прибираємо будь-які градієнти та радіальні градієнти перед футером */
body.index-page .hero::before,
body.index-page .hero::after,
body.index-page main::before,
body.index-page main::after {
    display: none !important;
    content: none !important;
    background: transparent !important;
    background-image: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Додаткова гарантія для світлої теми */
body.index-page.light-theme .hero::before {
    display: none !important;
    content: none !important;
    background: none !important;
}

body.index-page.light-theme .hero::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

body.index-page.light-theme main {
    background: transparent !important;
}

body.index-page.light-theme main::before {
    display: none !important;
    content: none !important;
    background: none !important;
}

body.index-page.light-theme main::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

body.index-page.light-theme .hero {
    background: transparent !important;
}

/* Для мобільної версії - прибираємо будь-які залишки фону перед футером */
@media (max-width: 768px) {
    body.index-page .hero::after,
    body.index-page main::after,
    body.index-page main::before {
        display: none !important;
        content: none !important;
        background: none !important;
    }
    
    body.index-page main {
        background: transparent !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Переконатися, що немає зайвих відступів перед футером */
    body.index-page footer {
        margin-top: 0 !important;
    }

    /* На мобільних НЕ тягнемо hero на всю висоту вікна,
       щоб не створювалась порожня смуга перед футером */
    body.index-page .hero {
        min-height: auto !important;
        padding-bottom: 16px !important;
        background: transparent !important;
    }
}

/* Для великих екранів - також прибираємо полоску перед футером */
@media (min-width: 769px) {
    body.index-page .hero::before,
    body.index-page .hero::after {
        display: none !important;
        content: none !important;
        background: none !important;
    }
    
    body.index-page main::before,
    body.index-page main::after {
        display: none !important;
        content: none !important;
        background: none !important;
    }
    
    body.index-page footer.site-footer::before,
    body.index-page footer.site-footer::after {
        display: none !important;
        content: none !important;
        background: none !important;
    }
    
    body.index-page .hero {
        background: transparent !important;
    }
    
    body.index-page main {
        background: transparent !important;
    }
}

/* ----------------------- */
/* МОБІЛЬНИЙ HEADER / МЕНЮ + ФУТЕР (index) */
/* ----------------------- */

@media (max-width: 768px) {
    /* ====== Мобільне меню (права панель) ====== */
    body.index-page .mobile-menu {
        background: rgba(40, 45, 50, 0.96) !important;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
        padding: 10px 8px;
        border-left: 1px solid rgba(255, 255, 255, 0.04);
        gap: 2px;
    }

    body.index-page .mobile-menu ul {
        gap: 2px !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    body.index-page .mobile-menu ul li {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Ритм відступів і легкі кнопки */
    body.index-page .mobile-menu a,
    body.index-page .mobile-menu button,
    body.index-page .mobile-menu div {
        margin: 2px 0 !important;
    }

    body.index-page .mobile-menu a,
    body.index-page .mobile-menu button {
        padding: 6px 8px !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        border-width: 1px !important;
        border-color: rgba(255, 255, 255, 0.16) !important;
    }

    /* Мінімальні ховери без важкого ефекту */
    body.index-page .mobile-menu a:hover,
    body.index-page .mobile-menu button:hover {
        background-color: rgba(255, 255, 255, 0.06);
    }

    /* ====== СВІТЛА ТЕМА для мобільного меню ====== */
    body.index-page.light-theme .mobile-menu {
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        border-left: 1px solid rgba(0, 0, 0, 0.08);
    }

    /* Прибираємо білу рамку навколо ul в світлій темі */
    body.index-page.light-theme .mobile-menu ul {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 2px !important;
    }

    /* Зменшуємо відстані між пунктами меню в світлій темі */
    body.index-page.light-theme .mobile-menu ul li {
        margin: 0 !important;
        padding: 0 !important;
    }

    body.index-page.light-theme .mobile-menu ul li a {
        color: #1f2937 !important;
        background: transparent !important;
        border: none !important;
        padding: 6px 8px !important;
        margin: 2px 0 !important;
        border-radius: 6px !important;
    }

    body.index-page.light-theme .mobile-menu ul li a:hover {
        background-color: rgba(0, 0, 0, 0.05) !important;
        color: #111827 !important;
    }

    /* Кнопки в світлій темі */
    body.index-page.light-theme .mobile-menu button {
        background: rgba(0, 0, 0, 0.04) !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
        color: #1f2937 !important;
        padding: 6px 8px !important;
        margin: 2px 0 !important;
        border-radius: 6px !important;
    }

    body.index-page.light-theme .mobile-menu button:hover {
        background: rgba(0, 0, 0, 0.08) !important;
        border-color: rgba(0, 0, 0, 0.15) !important;
        color: #111827 !important;
    }

    /* ====== Мобільний футер: компактний, «магазинний» рівень ====== */
    body.index-page footer.site-footer {
        padding: 10px 12px !important;
        min-height: auto !important;
        background: rgba(15, 18, 22, 0.96) !important;
        box-shadow: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Внутрішня композиція футера */
    body.index-page footer.site-footer .footer-bottom {
        padding: 4px 0 !important;
        gap: 6px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    body.index-page footer.site-footer .footer-main {
        display: flex !important;
        width: 100%;
        justify-content: flex-start;
        align-items: center;
        gap: 6px;
    }

    /* Текстові елементи: менші відступи та щільніший рядок */
    body.index-page footer.site-footer p,
    body.index-page footer.site-footer a {
        margin: 2px 0 !important;
        line-height: 1.2;
    }

    /* Копірайт — трохи менший і легший */
    body.index-page footer.site-footer .footer-main p,
    body.index-page footer.site-footer .footer-bottom p {
        font-size: 0.81rem;
        opacity: 0.75;
    }

    body.index-page footer.site-footer .footer-contacts a {
        font-size: 0.8rem;
    }

    /* Кнопка "Інформація" — іконка на мобільному (styles.css) */
    body.index-page footer.site-footer .footer-toggle.mobile-only {
        padding: 0 !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
    }

    /* Вертикальні лінки у розгорнутому стані */
    body.index-page footer.site-footer .footer-links {
        width: 100%;
        margin-top: 6px !important;
        padding-top: 4px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        gap: 4px !important;
    }

    body.index-page footer.site-footer.open .footer-links {
        flex-direction: column;
        gap: 4px !important;
    }

    body.index-page footer.site-footer.open .footer-links .footer-contacts {
        flex-direction: column;
        gap: 2px !important;
        font-size: 0;
    }

    body.index-page footer.site-footer.open .footer-links .footer-contacts a {
        font-size: 0.8rem !important;
    }
}

/* ====== АДАПТАЦІЯ ГЛОБУСА ДЛЯ РІЗНИХ ЕКРАНІВ (index) ====== */

/* Базові покращення для середніх екранів */
body.index-page .hero {
    gap: 32px;
}

body.index-page #hero-globe-container {
    max-width: 520px;
    height: 320px;
}

/* Великі екрани: зменшуємо глобус і відсуваємо правіше,
   щоб він не накривав заголовки та кнопки */
@media (min-width: 1200px) {
    body.index-page .hero {
        justify-content: space-between;
        align-items: center;
    }

    body.index-page .hero-content {
        max-width: 540px;
    }

    body.index-page #hero-globe-container {
        flex: 0 0 420px;
        max-width: 420px;
        height: 280px;
        margin-right: 40px;
    }
}

/* Дуже широкі екрани: ще трохи зменшуємо та відсуваємо глобус */
@media (min-width: 1600px) {
    body.index-page .hero-content {
        max-width: 560px;
    }

    body.index-page #hero-globe-container {
        flex: 0 0 380px;
        max-width: 380px;
        height: 260px;
        margin-right: 60px;
    }
}

/* 1. ПОКРАЩЕННЯ КОНТРАСТУ ЗАГОЛОВКІВ */
.hero-title {
    color: #ffffff !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 
                 0 0 15px rgba(0, 0, 0, 0.6) !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
}

.section-title,
.section h2 {
    color: #ffffff !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7),
                 0 0 10px rgba(0, 0, 0, 0.5) !important;
    font-weight: 600 !important;
}

/* Покращений контраст для світлої теми */
body.light-theme .hero-title {
    color: #1a202c !important;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8),
                 0 0 8px rgba(255, 255, 255, 0.6) !important;
}

body.light-theme .section-title,
body.light-theme .section h2 {
    color: #2d3748 !important;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.7) !important;
}

/* Покращена видимість заголовків на сірих світлих фонах */
body[style*="f5f7fa"] .hero-title,
body[style*="c3cfe2"] .hero-title,
body[style*="f5f7fa"] .section-title,
body[style*="c3cfe2"] .section-title {
    color: #2c3e50 !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.9)) !important;
    border: 2px solid #3498db !important;
    padding: 15px 25px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8) !important;
    box-shadow: 
        0 4px 15px rgba(52, 152, 219, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    margin-bottom: 20px !important;
    display: inline-block !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Виправлення для білого фону в темній темі - заголовки мають бути чорними */
/* Використовуємо клас light-background-active, який додається для білого та світло-сірого фонів */
body.index-page.light-background-active:not(.light-theme) .hero-title,
body.index-page.light-background-active:not(.light-theme) .hero-content .hero-title,
body.index-page.light-background-active:not(.light-theme) .hero .hero-title,
body.light-background-active:not(.light-theme) .hero-title,
body.light-background-active:not(.light-theme) .hero-content .hero-title {
    color: #000000 !important;
    text-shadow: none !important;
    font-weight: 700 !important;
}

/* Також перевіряємо через style атрибут для білого фону */
body.index-page:not(.light-theme)[style*="ffffff"] .hero-title,
body.index-page:not(.light-theme)[style*="#ffffff"] .hero-title,
body.index-page:not(.light-theme)[style*="fff"] .hero-title,
body.index-page:not(.light-theme)[style*="ffffff"] .hero-content .hero-title,
body.index-page:not(.light-theme)[style*="ffffff"] .hero .hero-title {
    color: #000000 !important;
    text-shadow: none !important;
    font-weight: 700 !important;
}

/* Ховер ефекти */
body.index-page.light-background-active:not(.light-theme) .hero-title:hover,
body.index-page:not(.light-theme)[style*="ffffff"] .hero-title:hover,
body.light-background-active:not(.light-theme) .hero-title:hover {
    color: #1a1a1a !important;
}

/* Ефект при наведенні для головної сторінки */
body[style*="f5f7fa"] .hero-title:hover,
body[style*="c3cfe2"] .hero-title:hover,
body[style*="f5f7fa"] .section-title:hover,
body[style*="c3cfe2"] .section-title:hover {
    border-color: #2980b9 !important;
    transform: translateY(-2px) !important;
    box-shadow: 
        0 6px 20px rgba(52, 152, 219, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 1)) !important;
}

/* 2. ПОКРАЩЕННЯ КНОПОК РОЛЕЙ */
.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-buttons .btn.primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
    color: #ffffff !important;
    border: 2px solid #2980b9;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    padding: 14px 28px !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease !important;
}

.cta-buttons .btn.primary::before {
    content: '💼';
    margin-right: 8px;
    font-size: 18px;
}

.cta-buttons .btn.primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f4e79 100%) !important;
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.6);
    transform: translateY(-3px);
    border-color: #1f4e79;
}

.cta-buttons .btn.secondary {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%) !important;
    color: #ffffff !important;
    border: 2px solid #27ae60;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
    padding: 14px 28px !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease !important;
}

.cta-buttons .btn.secondary::before {
    content: '🔍';
    margin-right: 8px;
    font-size: 18px;
}

.cta-buttons .btn.secondary:hover {
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%) !important;
    box-shadow: 0 6px 25px rgba(46, 204, 113, 0.6);
    transform: translateY(-3px);
    border-color: #1e8449;
}

/* Додаткові анімації для кнопок */
.cta-buttons .btn {
    border-radius: 12px !important;
    min-width: 200px;
    position: relative;
    z-index: 1;
}

.cta-buttons .btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
}

/* 3. ПОКРАЩЕННЯ ЧЕРВОНОГО БЛОКУ (special-offer) */
.special-offer {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
    border-radius: 15px !important;
    padding: 15px 20px !important;
    margin-bottom: 25px !important;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    max-width: 520px;
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgba(231, 76, 60, 0.5);
    }
}

.special-offer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #e74c3c, #f39c12, #e74c3c);
    border-radius: 17px;
    z-index: -1;
    opacity: 0.6;
}

.offer-text {
    color: #ffffff !important;
    font-weight: 500 !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5) !important;
    margin: 0 !important;
}

/* 4. ПОКРАЩЕННЯ ЖОВТОГО БЛОКУ (offer-badge) */
.offer-badge {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important;
    color: #1a1a1a !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 10px !important;
    box-shadow: 0 3px 10px rgba(243, 156, 18, 0.4);
    border: 2px solid #d68910;
    position: relative;
    text-shadow: none !important;
}

/* Темна тема для жовтого блоку */
body:not(.light-theme) .offer-badge {
    color: #000000 !important;
    text-shadow: none !important;
    font-weight: 800 !important;
}

.offer-badge::before {
    content: '⚡';
    margin-right: 6px;
    font-size: 14px;
}

/* 5. ПОКРАЩЕННЯ UA-МОВИ */
.language-switcher {
    position: relative;
    display: inline-block;
}

.language-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    cursor: pointer;
    padding: 10px 16px !important;
    border-radius: 12px !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    min-width: 80px;
    justify-content: center;
}

.language-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f4e79 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(52, 152, 219, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

.current-flag {
    font-size: 24px !important;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

#lang-arrow {
    color: #ffffff !important;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Покращений випадаючий список мов */
.language-flags {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(45, 55, 72, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    min-width: 220px;
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 5px;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
}

.language-option:hover {
    background: rgba(52, 152, 219, 0.8) !important;
    color: #ffffff !important;
}

.flag-emoji {
    font-size: 20px !important;
    width: 28px;
    text-align: center;
}

.flag-label {
    font-size: 15px !important;
    color: #ffffff !important;
    font-weight: 500;
}

body.light-theme .language-btn {
    color: #1f2937 !important;
    background: linear-gradient(135deg, #e8f4fc 0%, #dbeafe 100%) !important;
    border-color: #cbd5e0 !important;
}

body.light-theme .current-flag,
body.light-theme .flag-emoji {
    color: #1f2937 !important;
    filter: none;
}

body.light-theme #lang-arrow {
    color: #4a5568 !important;
}

body.light-theme .language-flags {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

body.light-theme .language-option,
body.light-theme .language-option:hover,
body.light-theme .flag-label {
    color: #1f2937 !important;
}

body.light-theme .language-option:hover {
    background: #f1f5f9 !important;
}

/* 6. ПОКРАЩЕННЯ ФУТЕРА - використовую стилі з основного styles.css */
footer:not(.site-footer) {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-quaternary) 100%);
    color: white;
    padding: 1rem 2rem;
}

footer:not(.site-footer) .footer-bottom {
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

footer:not(.site-footer) .footer-bottom p {
    margin: 0;
    flex: 1;
    text-align: left;
    color: #ffffff;
}

footer:not(.site-footer) .footer-contacts {
    margin-left: auto;
}

footer:not(.site-footer) .footer-contacts a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

footer:not(.site-footer) .footer-contacts a:hover {
    color: #5dade2;
    text-decoration: underline;
}

/* Стилі для світлої теми */
body.light-theme footer:not(.site-footer) .footer-contacts a {
    color: #ffffff;
}

body.light-theme footer:not(.site-footer) .footer-contacts a:hover {
    color: #e2e8f0;
}

body.light-theme footer:not(.site-footer) {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-top: 1px solid #cbd5e1;
}

body.light-theme footer:not(.site-footer) .footer-bottom {
    background-color: rgba(255, 255, 255, 0.3);
}

body.light-theme footer:not(.site-footer) .footer-bottom p {
    color: #374151;
}

body.light-theme footer:not(.site-footer) .footer-contacts a {
    color: #374151;
}

body.light-theme footer:not(.site-footer) .footer-contacts a:hover {
    color: #3498db;
}

/* 7. КНОПКА ФОНУ — спокійний стиль як controls на /vacancies (без градієнта/emoji) */
.change-bg-button,
#change-bg-btn {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
    padding: 5px 15px !important;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 22px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px !important;
    min-width: unset !important;
    width: auto !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    text-shadow: none !important;
    position: relative;
    overflow: visible;
}

.change-bg-button::before,
#change-bg-btn::before {
    content: none !important;
    display: none !important;
    margin: 0 !important;
}

.change-bg-button:hover,
#change-bg-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
}

.change-bg-button:active,
#change-bg-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

/* Світла тема — як .language-btn на vacancies */
body.light-theme .change-bg-button,
body.light-theme #change-bg-btn {
    background: #f7fafc !important;
    border: 1px solid #cbd5e0 !important;
    color: #2d3748 !important;
    box-shadow: none !important;
}

body.light-theme .change-bg-button:hover,
body.light-theme #change-bg-btn:hover {
    background: #e2e8f0 !important;
    border-color: #3182ce !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

/* АДАПТИВНІСТЬ */
@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        min-width: auto;
    }
    
    .special-offer {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    
    .language-btn {
        padding: 8px 12px !important;
        min-width: 70px;
    }
    
    .current-flag {
        font-size: 20px !important;
    }
    
    .change-bg-button,
    #change-bg-btn {
        padding: 5px 12px !important;
        font-size: 13px !important;
        min-width: unset !important;
        height: 36px !important;
    }
    
    .change-bg-button::before,
    #change-bg-btn::before {
        content: none !important;
        display: none !important;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 15px 10px;
    }
    
    .footer-bottom p {
        margin-bottom: 10px;
        text-align: center;
    }
    
    .footer-contacts {
        margin-left: 0;
        margin-top: 5px;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem !important;
    }
    
    .language-flags {
        right: -20px;
        min-width: 200px;
    }
    
    .footer-contacts a {
        font-size: 14px;
        margin: 0 5px;
    }
    
    .change-bg-button,
    #change-bg-btn {
        padding: 5px 10px !important;
        font-size: 12px !important;
        min-width: unset !important;
        height: 36px !important;
    }
} 

/* ====== АДАПТИВНИЙ ГЛОБУС НА ГОЛОВНІЙ (index) ====== */

/* Середні екрани: робимо глобус більшим від базових 340px */
@media (min-width: 1024px) {
    body.index-page .hero {
        justify-content: space-between;
        align-items: center;
    }

    body.index-page .hero-content {
        max-width: 560px;
    }

    body.index-page #hero-globe-container {
        /* Ширина зростає разом з екраном, але в межах */
        flex: 0 0 clamp(420px, 32vw, 640px);
        max-width: clamp(420px, 32vw, 640px);
        /* Висота обмежена, щоб не налазити на header/footer */
        height: clamp(300px, 40vh, 420px);
        margin-right: clamp(24px, 4vw, 72px);
    }
}

/* Дуже широкі екрани: трохи більше місця зліва для тексту */
@media (min-width: 1440px) {
    body.index-page .hero-content {
        max-width: 600px;
    }

    body.index-page #hero-globe-container {
        flex: 0 0 clamp(460px, 34vw, 680px);
        max-width: clamp(460px, 34vw, 680px);
        height: clamp(320px, 42vh, 440px);
        margin-right: clamp(32px, 5vw, 96px);
    }
}

/* Уніфікація футера index зі всіма сторінками у світлій темі */
body.index-page.light-theme footer.site-footer,
body.index-page[data-theme="light"] footer.site-footer,
html[data-theme="light"] body.index-page footer.site-footer {
    background: rgba(248, 250, 252, 0.98) !important;
    border-top: 1px solid rgba(203, 213, 225, 0.95) !important;
    color: #334155 !important;
}

body.index-page.light-theme footer.site-footer .footer-bottom,
body.index-page[data-theme="light"] footer.site-footer .footer-bottom,
html[data-theme="light"] body.index-page footer.site-footer .footer-bottom {
    background-color: rgba(241, 245, 249, 0.72) !important;
}

body.index-page.light-theme footer.site-footer p,
body.index-page.light-theme footer.site-footer .footer-bottom p,
body.index-page.light-theme footer.site-footer a,
body.index-page.light-theme footer.site-footer .support-link,
body.index-page.light-theme footer.site-footer .support-link span,
body.index-page[data-theme="light"] footer.site-footer p,
body.index-page[data-theme="light"] footer.site-footer .footer-bottom p,
body.index-page[data-theme="light"] footer.site-footer a,
body.index-page[data-theme="light"] footer.site-footer .support-link,
body.index-page[data-theme="light"] footer.site-footer .support-link span,
html[data-theme="light"] body.index-page footer.site-footer p,
html[data-theme="light"] body.index-page footer.site-footer .footer-bottom p,
html[data-theme="light"] body.index-page footer.site-footer a,
html[data-theme="light"] body.index-page footer.site-footer .support-link,
html[data-theme="light"] body.index-page footer.site-footer .support-link span {
    color: #334155 !important;
}

body.index-page.light-theme footer.site-footer .footer-links,
body.index-page[data-theme="light"] footer.site-footer .footer-links,
html[data-theme="light"] body.index-page footer.site-footer .footer-links {
    border-top: 1px solid rgba(203, 213, 225, 0.95) !important;
}
