* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb; /* Современный синий NUMI */
    --primary-dark: #1e40af;
    --secondary: #64748b;
    --dark: #0f172a;
    --light: #f1f5f9;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 2px, 4px, 0.06);
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #334155;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

ul { list-style: none; padding: 0; margin: 0; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; display: block; height: auto; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.section-padding { padding: 60px 0; }
.alt-bg { background-color: var(--light); }

/* --- Кнопки --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    transition: all 0.3s ease;
}
.primary-btn { background: var(--primary); color: var(--white); border-color: var(--primary); }
.primary-btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); }
.outline-btn { border-color: var(--white); color: var(--white); background: transparent; }
.outline-btn:hover { background: var(--white); color: var(--dark); border-color: var(--white); }
.full-width { width: 100%; }

/* --- Header --- */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 60px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 15px;
}

.logo { font-size: 22px; font-weight: 800; color: var(--dark); }
.logo .highlight { color: var(--primary); }

.main-nav ul { display: flex; gap: 20px; }
.main-nav a { font-weight: 500; font-size: 15px; color: var(--dark); }
.main-nav a:hover { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 15px; }
.phone-link { font-weight: 700; color: var(--dark); font-size: 18px; white-space: nowrap; color: #23b800; }
.lang-switcher select { padding: 5px 10px; border-radius: 4px; border: 1px solid #ccc; }

/* Скрываем кнопку меню на ПК */
.mobile-menu-btn { display: none; font-size: 24px; cursor: pointer; color: var(--dark); }


/* --- Hero Section --- */
#hero {
    position: relative;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 60px;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.5));
    z-index: -1;
}

.hero-content { position: relative; z-index: 1; max-width: 700px; }
#hero h1 { font-size: 3rem; line-height: 1.2; margin-bottom: 20px; }
#hero p { font-size: 1.1rem; margin-bottom: 30px; opacity: 0.9; max-width: 600px; }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }

/* --- Features Grid (Преимущества) --- */
#features { margin-top: -50px; position: relative; z-index: 10; padding-bottom: 50px; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: 0.3s;
}
.feature-card:hover { transform: translateY(-5px); }
.feature-card i { font-size: 35px; color: var(--primary); margin-bottom: 15px; }

/* --- Tabs (Услуги) --- */
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 32px; color: var(--dark); margin-bottom: 5px; }

.tabs-wrapper { background: var(--white); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; }
.tabs-nav {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: nowrap; 
    overflow-x: auto; 
}

.tabs-nav li {
    flex-shrink: 0; 
    min-width: 150px;
    text-align: center;
    padding: 15px 10px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    border-bottom: 3px solid transparent;
}
.tabs-nav li:hover { background: #e2e8f0; }
.tabs-nav li.active { background: var(--white); border-bottom-color: var(--primary); color: var(--primary); }

.tab-pane { display: none; padding: 40px; }
.tab-pane.active { display: block; animation: fadeIn 0.4s; }

.pane-content { display: flex; gap: 40px; align-items: center; }
.text-block { flex: 1; }
.img-block { flex: 1; }
.img-block img { border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.check-list { margin: 15px 0 25px 0; }
.check-list li {
    position: relative; padding-left: 25px; margin-bottom: 8px; font-size: 0.95rem;
}
.check-list li::before {
    content: '✔'; position: absolute; left: 0; color: var(--primary);
    font-size: 1.1em;
}

/* --- Portfolio --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
    box-shadow: var(--shadow);
}
.portfolio-item img {
    width: 100%; height: 100%; object-fit: cover; transition: 0.5s;
}
.portfolio-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    background: rgba(15, 23, 42, 0.85); 
    color: var(--white);
    padding: 15px 20px;
    transform: translateY(100%);
    transition: 0.3s;
}
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-item:hover .portfolio-overlay { transform: translateY(0); }

/* --- Contact Section --- */
.cta-section { background: var(--dark); color: var(--white); padding: 80px 0; }
.cta-box { display: flex; gap: 50px; flex-wrap: wrap; justify-content: space-between; }
.cta-text { flex: 1; min-width: 300px; }
.cta-form {
    flex: 0 0 400px;
    color: var(--dark);
    
    & > form {
        background: var(--white);
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
        padding: 30px;
        border-radius: 8px;
    }
}

.form-group input, .form-group select {
    width: 100%; padding: 12px; margin-bottom: 15px;
    border: 1px solid #cbd5e1; border-radius: 4px; box-sizing: border-box;
}
.contact-details li { margin-bottom: 15px; display: flex; align-items: center; }
.contact-details i { margin-right: 12px; color: var(--primary); width: 20px; text-align: center; }

/* --- Footer --- */
footer { background: #020617; color: #94a3b8; text-align: center; padding: 20px 0; font-size: 14px; }


/* =========================================
   📱 УЛУЧШЕННАЯ МОБИЛЬНАЯ АДАПТАЦИЯ (768px и ниже)
   ========================================= */

@media (max-width: 768px) {
    .section-padding { padding: 40px 0; }
    .container { padding: 0 15px; }

    /* --- Хедер и Навигация --- */
    .header-actions { 
        /* На мобильном оставляем только переключатель языка, скрывая телефон */
        display: flex; 
        align-items: center; 
        gap: 10px;
    } 
    .phone-link { display: none; }
    .lang-switcher { order: 1; } /* Переносим переключатель языка перед бургером */

    .main-nav { display: none; } 
    .mobile-menu-btn { display: block; }

    /* Полноэкранный оверлей меню */
    .main-nav.active {
        display: flex;
        position: fixed; 
        top: 60px; 
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: calc(100vh - 60px); 
        background: var(--dark); 
        z-index: 999;
        overflow-y: auto;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        padding: 20px 0;
    }
    .main-nav li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .main-nav li a {
        display: block;
        padding: 15px 20px;
        color: var(--white); 
        font-size: 18px;
    }
    .main-nav li a:hover { background: rgba(255, 255, 255, 0.1); }


    /* --- Hero Section --- */
    #hero { text-align: center; padding-top: 60px; min-height: 400px; }
    #hero h1 { font-size: 2rem; }
    #hero p { font-size: 0.95rem; }
    .hero-buttons { justify-content: center; }

    /* --- Сетки (Features и Portfolio) --- */
    .features-grid {
        grid-template-columns: 1fr; 
        gap: 15px;
        padding: 0 5px;
    }
    .portfolio-grid {
        grid-template-columns: 1fr; 
    }

    /* --- Табы (Услуги) --- */
    .section-header h2 { font-size: 24px; }
    
    .tabs-nav li {
        min-width: 100px; 
        padding: 10px 5px;
        font-size: 13px;
    }
    
    .pane-content {
        flex-direction: column;
        gap: 20px;
        padding: 20px 10px;
    }
    .img-block { order: -1; margin-bottom: 0; }
    .check-list li { font-size: 0.9rem; }
    
    /* --- Контакты --- */
    .cta-box { flex-direction: column; gap: 30px; }
    .cta-form { width: 100%; flex: auto; order: 1; }
    .cta-text { order: 2; text-align: center; }
    .contact-details { justify-content: center; }
}