/* --- GLOBAL VARIABLES (Match Project Theme) --- */
:root {
    --bg-page: #f8fafc;
    --white: #ffffff;
    --text-main: #0f172a;
    --text-sec: #64748b;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding-top: 80px; /* Space for Navbar */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- NAVBAR (Copy from Course Details for consistency) --- */
/* --- NAVBAR (Full Landing Style) --- */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; height: 80px;
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05); z-index: 1000;
    display: flex; align-items: center;
}

.nav-container {
    max-width: 1200px; margin: 0 auto; width: 90%;
    display: flex; justify-content: space-between; align-items: center;
}

.nav-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: #1e293b; font-weight: 700; font-size: 1.2rem;
}
.nav-logo i { color: var(--primary); font-size: 1.4rem; }

/* Desktop Menu */
.nav-menu-wrapper { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; gap: 25px; list-style: none; margin: 0; padding: 0; }
.nav-link {
    text-decoration: none; color: #64748b; font-weight: 500; transition: 0.2s; font-size: 0.95rem;
}
.nav-link:hover { color: var(--primary); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.dropdown-menu {
    position: absolute; top: 100%; left: 0; min-width: 180px;
    background: white; border-radius: 8px; padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    list-style: none;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: 0.3s;
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-link { display: block; padding: 10px 20px; color: #64748b; text-decoration: none; transition: 0.2s; }
.dropdown-link:hover { background: #f8fafc; color: var(--primary); }

/* Actions */
.nav-actions { display: flex; align-items: center; gap: 15px; }
.btn-login { text-decoration: none; color: #64748b; font-weight: 600; transition: 0.2s; }
.btn-login:hover { color: var(--primary); }
.btn-trial {
    background: var(--primary); color: white; padding: 10px 24px;
    border-radius: 50px; text-decoration: none; font-weight: 600;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2); transition: 0.2s;
}
.btn-trial:hover { background: var(--primary-hover); transform: translateY(-2px); }

/* Hamburger */
.hamburger {
    display: none; background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 5px; z-index: 2000;
}
.hamburger span {
    width: 25px; height: 3px; background: #1e293b; border-radius: 2px; transition: 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 968px) {
    .hamburger { display: flex; }
    
    .nav-menu-wrapper {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: rgba(255,255,255,0.98); backdrop-filter: blur(10px);
        flex-direction: column; justify-content: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); z-index: 1500;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    .nav-menu-wrapper.active { right: 0; }
    
    .nav-links { flex-direction: column; align-items: center; gap: 30px; font-size: 1.2rem; }
    .nav-actions { flex-direction: column; margin-top: 40px; }
    
    .dropdown-menu { position: static; box-shadow: none; display: none; text-align: center; background: #f1f5f9; width: 100%; }
    .dropdown.active .dropdown-menu { display: block; }
}
/* --- PAGE CONTENT LAYOUT --- */
.page-wrapper {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
    flex: 1;
}

.content-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--shadow);
}

/* Headers */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 30px;
}

.page-header h1 { font-size: 2.5rem; margin-bottom: 10px; color: var(--text-main); }
.page-header .meta { color: var(--text-sec); font-size: 0.9rem; }

/* Text Content (Typography) */
.legal-text { font-size: 1.05rem; line-height: 1.7; color: #334155; }
.legal-text h2 { margin-top: 30px; margin-bottom: 15px; font-size: 1.5rem; color: var(--text-main); }
.legal-text p { margin-bottom: 15px; }
.legal-text ul { margin-bottom: 20px; padding-left: 20px; }
.legal-text li { margin-bottom: 8px; }
.legal-text a { color: var(--primary); text-decoration: none; font-weight: 500; }
.legal-text a:hover { text-decoration: underline; }

/* --- CONTACT PAGE SPECIFIC --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

/* Contact Info Side */
.contact-info {
    background: var(--primary);
    color: white;
    padding: 50px;
    position: relative;
}
.contact-info h2 { font-size: 2rem; margin-bottom: 20px; }
.contact-info p { opacity: 0.9; margin-bottom: 40px; line-height: 1.6; }
.info-item { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; font-size: 1.1rem; }
.info-item i {
    width: 40px; height: 40px; background: rgba(255,255,255,0.2);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

/* Contact Form Side */
.contact-form { background: white; padding: 50px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--text-main); }
.form-input {
    width: 100%; padding: 12px 15px; border: 1px solid var(--border);
    border-radius: 8px; font-size: 1rem; background: #f8fafc; transition: 0.2s;
}
.form-input:focus { outline: none; border-color: var(--primary); background: white; }
textarea.form-input { resize: vertical; min-height: 120px; }

.btn-submit {
    width: 100%; padding: 14px; background: var(--primary); color: white;
    border: none; border-radius: 8px; font-weight: 600; font-size: 1rem;
    cursor: pointer; transition: 0.2s;
}
.btn-submit:hover { background: var(--primary-hover); }

/* Footer */
.simple-footer { text-align: center; padding: 30px; color: var(--text-sec); font-size: 0.9rem; border-top: 1px solid var(--border); margin-top: auto; }

/* Responsive */

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
    .content-card { padding: 25px; }
    .page-header h1 { font-size: 2rem; }
}
/* --- MOBILE RESPONSIVE --- */
@media (max-width: 968px) {
    .hamburger { display: flex; }
    
    /* Обгортка меню */
    .nav-menu-wrapper {
        position: fixed; 
        top: 0; 
        right: -100%; /* Сховано справа */
        width: 100%; 
        height: 100vh;
        background: rgba(255,255,255,0.98); 
        backdrop-filter: blur(10px);
        flex-direction: column; 
        justify-content: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
        z-index: 999; /* Нижче за гамбургер (2000) */
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    
    /* Клас, який додає JS */
    .nav-menu-wrapper.active { 
        right: 0; /* Виїжджає */
    }
    
    .nav-links { 
        flex-direction: column; 
        align-items: center; 
        gap: 30px; 
        font-size: 1.2rem; 
    }
    
    .nav-actions { 
        flex-direction: column; 
        margin-top: 40px; 
    }
    
    .dropdown-menu { 
        position: static; 
        box-shadow: none; 
        display: none; /* Сховано */
        text-align: center; 
        background: #f1f5f9; 
        width: 100%; 
    }
    
    /* JS додає клас .active батьку (.dropdown), щоб показати меню */
    .dropdown.active .dropdown-menu { 
        display: block; 
    }
}
.cookie-banner {
    position: fixed;
    bottom: -100%; /* Сховано знизу */
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    padding: 20px;
    z-index: 9999; /* Поверх усього */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: bottom 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.cookie-banner.show {
    bottom: 0; /* Виїжджає */
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 600px;
}

.cookie-icon {
    font-size: 1.5rem;
    color: #f59e0b; /* Колір печива */
}

.cookie-content p {
    font-size: 0.9rem;
    color: #1e293b;
    margin: 0;
    line-height: 1.5;
}

.cookie-content a {
    color: #6366f1;
    font-weight: 600;
    text-decoration: none;
}

.btn-cookie-accept {
    background: #1e293b;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.btn-cookie-accept:hover {
    background: #6366f1;
    transform: translateY(-1px);
}

/* Mobile adaptation */
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .cookie-content { flex-direction: column; }
    .btn-cookie-accept { width: 100%; }
}

.policy-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #1f2937;
    font-size: 1.4rem;
}
.policy-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}
.policy-content li {
    margin-bottom: 8px;
}
.messages-container {
        max-width: 1100px; margin: 100px auto 0; padding: 0 20px; z-index: 100;
    }
.alert {
    padding: 15px 20px; border-radius: 10px; margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px; font-weight: 500;
}
.alert.success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert.error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

.field-error { color: #dc2626; font-size: 0.85rem; margin-top: 5px; display: block; }