:root {
    --bg: #002B24; 
    --text: #F8F4ED;
    --gold-gradient: linear-gradient(135deg, #CFAD62 0%, #E9D096 50%, #B68D40 100%);
    --gold: #D4AF37; 
    --glass: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(212, 175, 55, 0.3); 
    --panel-bg: rgba(0, 43, 36, 0.92);
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

.about-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 4rem 0;
}

.about-section .service-card img {
    width: 350px;
    height: 450px;
}


* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

body { 
    font-family: 'Inter', sans-serif; 
    background: var(--bg);
    color: var(--text); 
    overflow-x: hidden; 
    line-height: 1.6;
}

#bg-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; width: 100%; position: relative; }

/* REVEAL ANIMATION */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s var(--ease); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* HEADER */
.header {
    position: fixed; top: 15px; left: 50%; transform: translateX(-50%);
    width: 94%; max-width: 1100px;
    background: var(--panel-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); 
    border-radius: 40px; /* Сделаем чуть меньше радиус для красоты при расширении */
    z-index: 1000;
    display: flex; flex-wrap: wrap; /* Позволяет элементам переноситься на новую строку */
    justify-content: space-between; align-items: center;
    padding: 0.6rem 1.5rem;
    transition: all 0.4s var(--ease); /* Плавное расширение самого хедера */
    overflow: hidden; /* Чтобы скрытое меню не торчало */
    max-height: 65px; /* Фиксированная высота в закрытом состоянии */
}

.logo-container { display: flex; align-items: center; gap: 12px; text-decoration: none; z-index: 1002; }
.logo-container img { height: 40px; width: auto; }
.brand-name {
    font-family: 'Lora', serif; font-weight: 600; font-size: clamp(1.1rem, 3vw, 1.4rem);
    background: var(--gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    letter-spacing: 1px; text-transform: uppercase;
}

.nav-menu { 
    display: flex; 
    gap: 25px; 
    align-items: center;
    margin-left: auto; /* Это вытолкнет меню вправо */
    margin-right: 20px; /* Отступ от иконки луны */
}
.nav-link {
    color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.85rem;
    transition: 0.3s; opacity: 0.8; text-transform: uppercase;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-link:hover { opacity: 1; }

.header-actions { display: flex; align-items: center; gap: 8px; z-index: 1002; }

.burger-btn { display: none; flex-direction: column; justify-content: space-between; width: 24px; height: 16px; background: none; border: none; cursor: pointer; }
.burger-btn span { display: block; width: 100%; height: 2px; background: var(--gold); transition: 0.3s; }

@media (max-width: 768px) {
    .burger-btn { display: flex; }
    
    .header.active {
        max-height: 350px; /* Высота, до которой расширится все меню */
        border-radius: 30px; /* Можно немного менять форму при открытии */
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        width: 100%; /* Занимает всю ширину под логотипом */
        order: 3; /* Отправляет меню вниз под лого и бургер */
        align-items: center;
        padding: 0;
        gap: 0;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        pointer-events: none;
    }

    .header.active .nav-menu {
        opacity: 1;
        transform: translateY(0);
        pointer-events: all;
        padding: 20px 0 10px 0; /* Отступы внутри расширенного меню */
        gap: 15px;
    }

    .logo-container { order: 1; }
    .header-actions { order: 2; }
    
    .nav-link {
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
        background: var(--gold-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

/* HERO */
.hero { padding: clamp(8rem, 15vw, 12rem) 0 4rem; text-align: center; }
.hero h1 { font-family: 'Lora'; font-size: clamp(2.2rem, 8vw, 4rem); color: var(--gold); line-height: 1.1; margin-bottom: 25px; }
.italic-text { color: var(--text); font-weight: 400; font-style: italic; }
.hero p { max-width: 700px; margin: 0 auto 35px; font-size: 1.1rem; opacity: 0.8; }

/* SERVICES */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin: 4rem 0; }
.service-card { 
    background: var(--glass); border: 1px solid var(--glass-border); border-radius: 15px; 
    padding: 2rem; text-align: center; transition: 0.4s var(--ease);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.service-card:hover { transform: translateY(-10px); border-color: var(--gold); }
.service-card img {
    width: 250px;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}
.service-card:hover img {
    transform: scale(1.1);
}

.service-card i {
    font-size: 120px;
    color: var(--gold);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}
.service-card:hover i {
    transform: scale(1.1);
}
.gold-text { color: var(--gold); margin-bottom: 0.8rem; }

/* Стили для списка профессий */
.profession-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    text-align: left;
}

.profession-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-dim);
    border-bottom: 1px solid rgba(255,215,0,0.05);
}

.profession-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--gold-color);
}

/* CAROUSEL */
.section-title { text-align:center; color:var(--gold); font-family:'Lora'; font-size: 2.2rem; margin-bottom:3rem; }
.carousel-outer { overflow: hidden; max-width: 800px; margin: 0 auto; }
.carousel-track { display: flex; transition: transform 0.6s var(--ease); }
.slide { min-width: 100%; padding: 0 15px; }
.testimonial-card { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 35px; padding: 2.5rem; text-align: center; }
.author-img { width: 80px; height: 80px; border-radius: 50%; border: 2px solid var(--gold); margin-bottom: 1rem; }

/* FAQ */
.faq-container { max-width: 800px; margin-bottom: 6rem; }
.faq-item { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 20px; margin-bottom: 12px; }
.faq-head { padding: 1.2rem 1.5rem; cursor: pointer; display: flex; justify-content: space-between; color: var(--gold); font-weight: 600; }
.faq-body { max-height: 0; opacity: 0; overflow: hidden; transition: 0.3s; padding: 0 1.5rem; }
.faq-item.active .faq-body { max-height: 2000px; opacity: 1; padding-bottom: 1.2rem; }

/* FOOTER */
.footer { padding: 4rem 0 7rem; border-top: 1px solid var(--glass-border); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; }
.contact-link { display: flex; align-items: center; color: var(--text); text-decoration: none; margin-bottom: 12px; transition: 0.3s; }
.contact-link i { color: var(--gold); margin-right: 10px; width: 20px; }
.contact-link:hover { color: var(--gold); transform: translateX(5px); }
.wa-link { color: #25D366 !important; }

/* VACANCIES LIST (SEO) */
#vacancies-section {
    text-align: center;
}

#vacancies-section .faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.vacancies-list {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Список в две колонки */
    gap: 0 20px;
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left; /* Текст слева в колонках читается лучше */
}

.vacancies-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
}

.vacancies-list li:last-child {
    border-bottom: none;
}

.vacancies-list a {
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.vacancies-list a:hover {
    color: var(--gold);
    transform: translateX(5px);
}

.vacancies-list a i {
    color: var(--gold);
    font-size: 0.9rem;
}

/* MODAL */
#phone-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 1rem; }
#phone-modal.active { display: flex; }
.modal-content { width: 100%; max-width: 400px; background: var(--bg); border-radius: 30px; padding: 2rem; border: 1px solid var(--gold); }
.phone-option { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 1rem; margin-bottom: 10px; border-radius: 15px; background: var(--glass); color: var(--text); text-decoration: none; font-weight: 600; border: 1px solid var(--glass-border); }
.wa-btn { color: #25D366 !important; border-color: #25D36644; }
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: none; /* Скрыто по умолчанию */
    justify-content: center;
    align-items: center;
    z-index: 3000;
    backdrop-filter: blur(10px);
}

.modal-overlay.active {
    display: flex; /* Показываем при наличии класса active */

}
/* BUTTONS */
.btn-group { display: flex; justify-content: center; gap: 15px; margin-top: 20px; }
.btn { display: flex; align-items: center; justify-content: center; width: 200px; height: 55px; background: var(--gold-gradient); color: #002B24; text-decoration: none; font-weight: 700; border-radius: 100px; transition: 0.3s; border: none; cursor: pointer; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(182, 141, 64, 0.4); }

/* MOBILE BAR */
.mobile-bar { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: 90%; background: var(--panel-bg); backdrop-filter: blur(15px); border: 1px solid var(--glass-border); border-radius: 100px; display: none; justify-content: space-around; padding: 10px; z-index: 1001; }
.bar-link { color: var(--text); text-decoration: none; font-size: 0.7rem; text-align: center; }
.bar-link i { display: block; font-size: 1.2rem; color: var(--gold); margin-bottom: 3px; }

@media (max-width: 768px) {
    .header.active {
        max-height: 350px; /* Высота, до которой расширится все меню */
        border-radius: 30px; /* Можно немного менять форму при открытии */
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        width: 100%; /* Занимает всю ширину под логотипом */
        order: 3; /* Отправляет меню вниз под лого и бургер */
        align-items: center;
        padding: 0;
        gap: 0;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        pointer-events: none;
    }

    .header.active .nav-menu {
        opacity: 1;
        transform: translateY(0);
        pointer-events: all;
        padding: 20px 0 10px 0; /* Отступы внутри расширенного меню */
        gap: 15px;
    }

    .logo-container { order: 1; }
    .header-actions { order: 2; }
    
    .nav-link {
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
        background: var(--gold-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .vacancies-list {
        grid-template-columns: 1fr;
    }
}