/* Базові налаштування */

:root {

    --primary: #0F172A;

    --primary-dark: #0F172A;

    --accent-blue: #2563EB;

    --accent-hover: #1D4ED8;

    --light-bg: #F8FAFC;

    --blue-accent: #2563EB;

    --teal-accent: #0D9488;

    --bg-main: #F8FAFC;

    --bg-card: #FFFFFF;

    --text-main: #334155;

    --text-light: #64748B;

    --border-color: #E2E8F0;

}

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #0F172A;
    color: white;
    padding: 20px 30px;
    border-radius: 16px;
    display: none;
    /* Показується скриптом */
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    z-index: 10000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    width: 90%;
    max-width: 600px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-cookie {
    background: var(--blue-accent);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
    transition: 0.3s;
}

.btn-cookie:hover {
    background: #1D4ED8;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
}


* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

    font-family: 'Plus Jakarta Sans', sans-serif;

    scroll-behavior: smooth;

}



body {

    background-color: var(--bg-main);

    color: var(--text-main);

    line-height: 1.6;

}



/* ===== НАВІГАЦІЯ ТА АКТИВНА СТОРІНКА ===== */

nav ul li a.active {
    color: var(--blue-accent) !important;
    font-weight: 600 !important;
    /* Встановлюємо таку ж жирність, як у звичайних посилань */
}



/* Лінія під активним пунктом на десктопі */

@media (min-width: 1025px) {

    nav ul li a.active {

        position: relative;

    }

    nav ul li a.active::after {

        content: '';

        position: absolute;

        bottom: -5px;

        left: 0;

        width: 100%;

        height: 2px;

        background: var(--blue-accent);

    }

}



/* Решта стилів навігації */

a {

    text-decoration: none;

    transition: all 0.3s ease;

}



header {

    background: rgba(255, 255, 255, 0.95);

    backdrop-filter: blur(10px);

    padding: 15px 5%;

    display: flex;

    justify-content: space-between;

    align-items: center;

    position: sticky;

    top: 0;

    z-index: 1000;

    border-bottom: 1px solid var(--border-color);

    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);

}



.logo {

    font-size: 24px;

    font-weight: 800;

    color: var(--primary);

    letter-spacing: -0.5px;

}



.logo span {

    color: var(--blue-accent);

}



nav ul {

    list-style: none;

    display: flex;

    gap: 25px;

    align-items: center;

}



nav a {

    font-weight: 600;

    font-size: 15px;

    color: var(--text-light);

}



nav a:hover {

    color: var(--blue-accent);

}



.btn-nav {

    background: var(--primary);

    color: white;

    padding: 10px 20px;

    border-radius: 8px;

}



.lang-switch {

    display: flex;

    gap: 10px;

    border-left: 2px solid var(--border-color);

    padding-left: 20px;

    font-weight: 700;

}



.lang-switch a {
    color: var(--text-light);
}

.lang-switch a.active {
    color: var(--primary);
}



/* ===== ГАМБУРГЕР ТА МОБІЛЬНЕ МЕНЮ ===== */

.hamburger {

    display: none;

    flex-direction: column;

    justify-content: center;

    gap: 5px;

    background: none;

    border: none;

    cursor: pointer;

    padding: 6px;

    z-index: 200;

}



.hamburger span {

    display: block;

    width: 24px;

    height: 2px;

    background: var(--primary-dark);

    transition: all 0.3s ease;

}



.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}



@media (max-width: 1024px) {

    .mobile-controls {

        display: flex;

    }



    .hamburger {

        display: flex;

    }



    nav {

        position: absolute;

        top: 100%;

        left: 0;

        right: 0;

        background: white;

        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);

        overflow: hidden;

        max-height: 0;

        opacity: 0;

        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;

    }



    nav.open {

        max-height: 500px;

        opacity: 1;

    }



    nav ul {

        flex-direction: column;

        padding: 12px 0 20px;

        align-items: stretch;

    }



    nav ul li a {

        display: block;

        padding: 13px 24px;

        font-size: 16px;

        /* Ніяких ліній (border-bottom) тут не додаємо */

    }



    nav ul li a:hover {

        background: #f1f5f9;

    }



    nav ul li:last-child {

        display: none;

    }



    .lang-switch {

        border: none;

        /* Прибираємо всі рамки */

        padding: 12px 24px;

        margin-top: 4px;

    }

}



/* РЕШТА ВАШИХ СТИЛІВ (HERO, GRID, CARDS...) ЗАЛИШАЮТЬСЯ БЕЗ ЗМІН НИЖЧЕ */

/* ... */



.btn-nav {

    background: var(--primary);

    color: white;

    padding: 10px 20px;

    border-radius: 8px;

}



.btn-nav:hover {

    background: var(--blue-accent);

    color: white;

}



.lang-switch {

    display: flex;

    gap: 10px;

    border-left: 2px solid var(--border-color);

    padding-left: 20px;

    font-weight: 700;

}



.lang-switch a {

    color: var(--text-light);

}



.lang-switch a.active {

    color: var(--primary);

}







.lang-switch {

    display: flex;

    gap: 10px;

    border-left: 2px solid var(--border-color);

    padding-left: 20px;

    font-weight: 700;

}



.lang-switch a {

    color: var(--text-light);

}



.lang-switch a.active {

    color: var(--primary);

}

/* Фікс банера кукі для української сторінки */
#cookie-banner.cookie-banner {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #0F172A !important;
    color: white !important;
    padding: 20px 30px !important;
    border-radius: 16px !important;
    display: none;
    /* Буде flex через JS */
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    z-index: 10000 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
    width: 90% !important;
    max-width: 650px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    flex-direction: row;
}

#cookie-banner .cookie-content h4 {
    color: #2563EB !important;
    margin-bottom: 5px;
}

#cookie-banner .cookie-content p {
    font-size: 13px !important;
    color: #94A3B8 !important;
    margin: 0;
}

#cookie-banner .btn-cookie {
    background: #2563EB !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

@media (max-width: 600px) {
    #cookie-banner.cookie-banner {
        flex-direction: column !important;
        text-align: center !important;
    }
}

/* ===== ГАМБУРГЕР ===== */

.hamburger {

    display: none;

    flex-direction: column;

    justify-content: center;

    gap: 5px;

    background: none;

    border: none;

    cursor: pointer;

    padding: 6px;

    z-index: 200;

    flex-shrink: 0;

}



.hamburger span {

    display: block;

    width: 24px;

    height: 2px;

    background: var(--primary-dark);

    border-radius: 2px;

    transition: all 0.3s ease;

    transform-origin: center;

}



.hamburger.open span:nth-child(1) {

    transform: translateY(7px) rotate(45deg);

}



.hamburger.open span:nth-child(2) {

    opacity: 0;

    transform: scaleX(0);

}



.hamburger.open span:nth-child(3) {

    transform: translateY(-7px) rotate(-45deg);

}



/* ===== МОБІЛЬНА НАВІГАЦІЯ ===== */

@media (max-width: 1024px) {
    header {
        padding: 10px 5%;
        gap: 0;
        justify-content: space-between;
        position: sticky;
        top: 0;
    }

    .mobile-controls {
        display: flex;
        align-items: center;
        gap: 12px;
    }


    .hamburger {

        display: flex;

    }



    nav {

        position: absolute;

        top: 100%;

        left: 0;

        right: 0;

        background: white;

        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);

        overflow: hidden;

        max-height: 0;

        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;

        opacity: 0;

        z-index: 99;

    }

    @media (min-width: 768px) and (max-width: 1024px) {
        .grid {
            grid-template-columns: repeat(2, 1fr);
            /* Тільки 2 колонки на планшетах */
            gap: 20px;
        }

        .section {
            padding: 40px 3%;
            /* Менші відступи по боках на планшеті */
        }
    }


    nav.open {

        max-height: 450px;

        opacity: 1;

    }



    nav ul {

        flex-direction: column;

        gap: 0;

        padding: 12px 0 20px;

        align-items: stretch;

    }



    nav ul li {

        width: 100%;

    }



    nav ul li a {

        display: block;

        padding: 13px 24px;

        font-size: 16px;

        transition: background 0.2s, color 0.2s;

    }



    nav ul li a:hover {

        background: #f1f5f9;

        color: var(--accent-blue);

    }



    /* Кнопка Kontakt в мобільному меню */

    nav ul li .btn-nav {

        margin: 8px 24px 0 !important;

        text-align: center !important;

        width: calc(100% - 48px) !important;

        padding: 12px 22px !important;

    }



    .lang-switch {

        border-left: none;

        padding-left: 24px;

        border-top: 1px solid #e2e8f0;

        margin-top: 4px;

        padding-top: 12px;

        padding-bottom: 4px;

    }

}



/* ===== HERO ===== */

.hero {

    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e293b 100%);

    color: white;

    padding: 100px 5%;

    text-align: center;

}



.hero-subpage {

    padding: 60px 5%;

    text-align: left;

}



.hero h1 {

    font-size: 48px;

    margin-bottom: 20px;

    line-height: 1.2;

}



.hero p {

    font-size: 20px;

    color: #cbd5e1;

    margin-bottom: 40px;

    max-width: 600px;

    margin: 0 auto;

}



@media (max-width: 768px) {

    .hero {

        padding: 60px 5%;

    }



    .hero h1 {

        font-size: 30px;

    }



    .hero p {

        font-size: 16px;

    }



    .hero-subpage {

        padding: 40px 5%;

    }

}



/* ===== КНОПКИ ===== */

.btn {

    background: var(--accent-blue);

    color: white;

    padding: 15px 35px;

    border-radius: 8px;

    font-size: 18px;

    font-weight: 600;

    border: none;

    cursor: pointer;

    transition: 0.3s;

    display: inline-block;

}



.btn:hover {

    background: var(--accent-hover);

    color: white;

    transform: translateY(-2px);

}



/* ===== СЕКЦІЇ ===== */

.section {

    padding: 80px 5%;

    max-width: 1200px;

    margin: 0 auto;

}



@media (max-width: 768px) {

    .section {

        padding: 40px 4%;

    }

}



/* ===== ЗАГОЛОВКИ ===== */

.section-title {

    font-size: 36px;

    color: var(--primary-dark);

    margin-bottom: 40px;

    text-align: center;

}



@media (max-width: 768px) {

    .section-title {

        font-size: 26px;

        margin-bottom: 24px;

    }

}



/* ===== СІТКА ===== */

.grid {

    display: grid;

    grid-template-columns: 1fr;

    gap: 24px;

}



@media (min-width: 768px) and (max-width: 1023px) {

    .grid {

        grid-template-columns: repeat(2, 1fr);

    }



    .grid .card:last-child:nth-child(3) {

        grid-column: 1 / -1;

        max-width: 480px;

        margin: 0 auto;

        width: 100%;

    }

}



@media (min-width: 1024px) {

    .grid {

        grid-template-columns: repeat(3, 1fr);

        gap: 30px;

    }

}



/* ===== КАРТКИ ===== */

.card {

    background: white;

    padding: 40px 32px;

    border-radius: 12px;

    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);

    border-top: 4px solid var(--accent-blue);

    transition: transform 0.3s ease;

}



.card:hover {

    transform: translateY(-5px);

}



.card h3 {

    color: var(--primary-dark);

    margin-bottom: 15px;

}



.card ul {

    padding-left: 20px;

}



@media (max-width: 767px) {

    .card {

        padding: 28px 24px;

    }



    .grid .card[style*="transform: scale"] {

        transform: none !important;

    }

}



@media (max-width: 1023px) {



    .card[style*="scale(1.05)"],

    .card[style*="scale( 1.05)"] {

        transform: none !important;

    }

}



/* ===== FAQ ===== */

details {

    background: white;

    padding: 15px 20px;

    margin-bottom: 10px;

    border-radius: 8px;

    border: 1px solid #e2e8f0;

    cursor: pointer;

}



summary {

    font-weight: 600;

    color: var(--primary-dark);

    outline: none;

}



details p {

    margin-top: 10px;

    color: var(--text-main);

}

/* Стилі для банера кукі (додати в style.css) */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #0F172A !important;
    color: white !important;
    padding: 20px 30px;
    border-radius: 16px;
    display: none;
    /* Показуємо через JS */
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    z-index: 10000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    width: 95%;
    max-width: 600px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-content h4 {
    color: #2563EB !important;
    margin-bottom: 5px;
}

.cookie-content p {
    font-size: 13px !important;
    color: #94A3B8 !important;
    margin: 0;
}

.btn-cookie {
    background: #2563EB !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-weight: 700 !important;
    white-space: nowrap;
}


/* ===== ФОРМА ===== */

@media (max-width: 600px) {

    div[style*="display: flex"][style*="gap: 15px"] {

        flex-direction: column !important;

    }



    div[style*="flex-wrap: wrap"] span {

        width: 100%;

        text-align: center;

    }

}



/* ===== ФУТЕР ===== */

footer {

    background: var(--primary-dark);

    color: #94a3b8;

    text-align: center;

    padding: 40px 5%;

    font-size: 14px;

    margin-top: 50px;

}

.mobile-controls {

    display: none;

    align-items: center;

    gap: 12px;

}



@media (max-width: 768px) {
    .mobile-controls {
        display: flex;
    }

    nav ul li:last-child {
        display: none;
    }
}