/* Project: propiska-v-kieve.com.ua 
   Ready-to-use Final Clean CSS
*/

:root {
    --header-bg: #334155;
    --brand-blue: #38bdf8;
    --nav-blue: #0056b3; /* Насыщенный синий для кнопок */
    --nav-blue-hover: #004494;
    --wa-green: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    --tg-blue: linear-gradient(135deg, #24A1DE 0%, #1c82b3 100%);
}

/* ГЛОБАЛЬНІ НАЛАШТУВАННЯ */
html, body { 
    overflow-x: hidden !important; 
    width: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box !important; max-width: 100%; }

/* ШАПКА САЙТУ */
.site-header {
    background: var(--header-bg);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--brand-blue);
    width: 100%;
}

.header-main-row {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

/* ЛОГО ТА ТЕКСТ */
.logo-box { text-decoration: none; display: block; }
.logo-text { font-size: 1.2rem; font-weight: 800; color: #fff; text-transform: uppercase; margin: 0; line-height: 1; }
.logo-text span { color: var(--brand-blue); }
.logo-sub { font-size: 0.6rem; color: #94a3b8; text-transform: uppercase; margin-top: 4px; }

/* КОНТАКТИ */
.header-phones { display: flex; flex-direction: column; gap: 2px; }
.h-phone-link { 
    color: #fff; 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 1rem; 
    white-space: nowrap;
}

.header-messengers { display: flex; gap: 10px; }
.m-link {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff !important; text-decoration: none;
    transition: transform 0.2s;
}
.m-link:hover { transform: scale(1.1); }
.wa-style { background: var(--wa-green); }
.tg-style { background: var(--tg-blue); }

/* НАВІГАЦІЯ (КНОПКИ) - УНІВЕРСАЛЬНІ СТИЛІ */
.legal-portal-wrap nav a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background-color: var(--nav-blue) !important;
    color: #ffffff !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    border: 1px solid var(--nav-blue-hover) !important;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.legal-portal-wrap nav a:hover {
    background-color: var(--nav-blue-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* FAQ ТА ІНШІ ЕЛЕМЕНТИ */
summary::-webkit-details-marker { display: none; }
details[open] summary span { transform: rotate(45deg); }

/* АДАПТИВНІСТЬ (768px і нижче) */
@media (max-width: 768px) {
    .header-main-row { flex-wrap: nowrap; gap: 10px; padding: 0 10px; }
    
    .logo-text { font-size: 1rem; }
    .logo-sub { display: none; }

    .h-phone-link { 
        font-size: 0.95rem; 
        font-weight: 800; 
    }

    .m-link { width: 36px; height: 36px; }

    /* Фіксація основного контенту */
    main { padding: 20px 15px !important; }
    section { padding: 15px !important; margin-bottom: 40px !important; }

    /* Навігація на мобільних */
    .legal-portal-wrap nav div { 
        gap: 8px !important; 
        padding: 10px !important; 
        justify-content: center; 
    }
    
    .legal-portal-wrap nav a { 
        padding: 10px 8px !important; 
        font-size: 13px !important; 
        flex: 1 1 45%; /* По две в ряд */
        min-width: 120px;
    }

    /* Заголовки */
    h1 { font-size: 24px !important; word-wrap: break-word; }
    h2 { font-size: 20px !important; white-space: normal !important; }

    /* Блоки цін та закон */
    #price-section > div { grid-template-columns: 1fr !important; gap: 15px !important; }
    #law-section div { column-count: 1 !important; }

    footer { padding: 40px 15px !important; }
    footer a { font-size: 20px !important; }
}

/* КОРЕКЦІЯ ДЛЯ ДУЖЕ ВУЗЬКИХ ЕКРАНІВ (480px і нижче) */
@media (max-width: 480px) {
    .header-main-row { gap: 8px; }
    .h-phone-link { font-size: 0.85rem; }
    .m-link { width: 32px; height: 32px; border-radius: 8px; }

    .legal-portal-wrap nav a { 
        flex: 1 1 100%; /* Кнопки в одну колонку на самых маленьких экранах */
        font-size: 15px !important;
    }
}
/* ФІКСАЦІЯ ТА ВИПРАВЛЕННЯ ПІДВАЛУ (FOOTER) */

/* Налаштування для того, щоб підвал завжди був знизу */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Розтягуємо тіло сайту на всю висоту екрану */
}

.legal-portal-wrap {
    flex: 1 0 auto; /* Дозволяє основному контенту займати весь вільний простір */
}

footer {
    flex-shrink: 0; /* Не дає підвалу стискатися */
    background: var(--header-bg);
    color: #ffffff;
    padding: 60px 20px;
    text-align: center;
    width: 100%;
}

footer a {
    color: var(--brand-blue);
    text-decoration: none;
    font-weight: 800;
    font-size: 24px;
    transition: opacity 0.2s;
}

footer a:hover {
    opacity: 0.8;
}

footer p {
    color: #94a3b8;
    font-size: 14px;
    margin-top: 15px;
}

/* Адаптивність підвалу для мобільних */
@media (max-width: 768px) {
    footer {
        padding: 40px 15px !important;
        margin-top: auto; /* Гарантує відступ знизу на мобільних */
    }
    
    footer a {
        font-size: 20px !important;
        display: block; /* Посилання на весь рядок для зручності */
        margin-bottom: 10px;
    }
}
#contacts-block a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0.9;
}

@media (max-width: 480px) {
    #contacts-block div {
        flex-direction: column; /* Кнопки встанут одна под другой на узких экранах */
    }
    #contacts-block a {
        width: 100%;
        justify-content: center;
    }
}

.footer-lang-minimal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.footer-lang-minimal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.lang-white-link {
    text-decoration: none;
    color: #ffffff !important; /* Чистий білий */
    font-size: 15px; /* Збільшений шрифт */
    font-weight: 600; /* Напівжирний для кращої читабельності */
    opacity: 1; /* Повна яскравість */
    transition: opacity 0.2s ease;
}

.lang-white-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.lang-white-sep {
    color: #ffffff;
    font-size: 15px;
    opacity: 0.7;
    margin: 0 4px;
}
