:root {
    --primary-blue: #0066FF;
    --wa-orange: #F37021;
    --tg-blue: #0088cc;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: Arial, sans-serif; color: #333; line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===================== */
/* ШАПКА — FIXED         */
/* ===================== */
.main-header { 
    background: #fff; 
    padding: 10px 0; 
    border-bottom: 1px solid #eee; 
    position: fixed; 
    top: 0; 
    left: 0;
    width: 100%;
    z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

/* Компенсация fixed-хедера */
body { padding-top: 200px; }

/* Компактный режим при скролле */
.main-header.header-compact {
    padding: 8px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.main-header.header-compact .main-logo { max-width: 180px; }
.main-header.header-compact .company-name { font-size: 16px; }
.main-header.header-compact .location,
.main-header.header-compact .email-link { display: none; }
.main-header.header-compact .phones-list a:nth-child(n+2) { display: none; }

/* Навигация */
.main-nav { display: flex; gap: 15px; margin-top: 10px; }
.main-nav a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    font-size: 15px;
    transition: color 0.3s;
}
.main-nav a:hover { color: var(--primary-blue); }

/* Грид шапки */
.header-grid { 
    display: grid; 
    grid-template-columns: 1fr auto 1fr; 
    align-items: center; 
}
.company-name { color: #0056b3; transition: font-size 0.3s ease; }
.main-logo { max-width: 200px; height: auto; transition: max-width 0.3s ease; }
.header-right { text-align: right; }
.phones-list a { display: block; color: #0056b3; font-weight: bold; text-decoration: none; }
.email-link {
    display: block; margin-top: 8px; color: var(--primary-blue);
    text-decoration: none; font-weight: bold; font-size: 16px; transition: color 0.3s;
}
.email-link:hover { color: #0044cc; }
.email-link i { margin-right: 5px; }

/* ===================== */
/* ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКА   */
/* ===================== */
.lang-switch {
    display: flex;
    gap: 5px;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.lang-btn {
    background: none;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    padding: 0;
}

.lang-btn:hover {
    border-color: var(--primary-blue);
}

.lang-btn.active {
    border-color: var(--primary-blue);
    background: rgba(0, 102, 255, 0.08);
}

/* Прячем переключатель в compact-режиме (опционально — убери если хочешь оставить) */
/* .main-header.header-compact .lang-switch { display: none; } */

/* ===================== */
/* ГЕРОЙ                 */
/* ===================== */
.hero-blue { background: var(--primary-blue); color: #fff; padding: 80px 0; text-align: center; }
.hero-blue h1 { font-size: 36px; margin-bottom: 20px; }
.hero-blue p { margin-bottom: 30px; font-size: 18px; }
.hero-btns { display: flex; justify-content: center; gap: 15px; }

/* Кнопки */
.btn { 
    padding: 12px 25px; border-radius: 5px; text-decoration: none; 
    color: #fff; font-weight: bold; display: inline-block;
    min-width: 180px; text-align: center; box-sizing: border-box;
}
.btn-wa { background: var(--wa-orange); }
.btn-tg { background: var(--tg-blue); }

/* ===================== */
/* УСЛУГИ                */
/* ===================== */
.services { padding: 60px 0; background: #f4f4f4; }
.section-title { text-align: center; margin-bottom: 40px; }
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px; 
}
.service-card { 
    background: #fff; padding: 20px; border-radius: 10px; 
    text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
}
.service-img { 
    width: 100%; height: 180px; object-fit: cover; 
    border-radius: 8px; margin-bottom: 15px; 
}
.service-card i { font-size: 30px; color: var(--primary-blue); margin-bottom: 10px; display: block; }

/* ===================== */
/* CTA                   */
/* ===================== */
.cta-section { background-color: #f8f9fa; padding: 80px 0; text-align: center; }
.cta-section h2 { font-size: 32px; margin-bottom: 15px; color: #333; }
.cta-section p { font-size: 18px; color: #555; margin-bottom: 30px; }
.btn-request-action {
    background-color: var(--primary-blue); color: #fff; padding: 15px 40px;
    font-size: 18px; border: none; border-radius: 5px; cursor: pointer;
    font-weight: bold; transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.2);
}
.btn-request-action:hover {
    background-color: #0044cc; transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

/* ===================== */
/* ПОДВАЛ                */
/* ===================== */
footer { background: #222; color: #fff; padding: 40px 0; text-align: center; }
.social-links a { color: #fff; font-size: 24px; margin: 0 10px; }
.copyright { margin-top: 20px; font-size: 14px; opacity: 0.5; }

/* ===================== */
/* МОДАЛЬНОЕ ОКНО        */
/* ===================== */
.modal {
    display: none; position: fixed; z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center; justify-content: center;
}
.modal-content {
    background-color: #fff; padding: 30px; border-radius: 10px;
    max-width: 400px; width: 90%; text-align: center;
    position: relative; box-sizing: border-box;
}
.close-btn { position: absolute; top: 10px; right: 15px; font-size: 28px; cursor: pointer; color: #333; }
.modal-content input {
    width: 100%; padding: 12px; margin: 10px 0;
    border: 1px solid #ccc; border-radius: 5px;
    box-sizing: border-box; font-size: 16px;
}
.btn-submit {
    width: 100%; background-color: var(--primary-blue); color: #fff;
    padding: 15px; border: none; border-radius: 5px; cursor: pointer;
    font-size: 16px; font-weight: bold; margin-top: 10px;
}

/* ===================== */
/* МОБИЛКА               */
/* ===================== */
@media (max-width: 768px) {
    body { padding-top: 240px; }
    .header-grid { grid-template-columns: 1fr; text-align: center; gap: 10px; }
    .header-right { text-align: center; }
    .hero-btns { flex-direction: column; align-items: center; }
    .main-logo {
        max-width: 120px !important; height: auto !important;
        object-fit: contain; margin: 10px auto;
    }
    .main-nav { justify-content: center; flex-wrap: wrap; gap: 10px; }

    .main-header.header-compact .header-center { display: none; }
    .main-header.header-compact .phones-list { display: none; }
    .main-header.header-compact .main-nav { margin-top: 5px; }
}