/* --- ГЛОБАЛЬНЫЕ НАСТРОЙКИ --- */
:root {
    --brand-blue: #0D94E8;
    --brand-blue-dark: #0b7dc5;
    --brand-blue-light: rgba(13, 148, 232, 0.1);
    --text-dark: #1F2937;
    --text-light: #4B5563;
    --bg-light: #F9FAFB;
    --border-light: #E5E7EB;
    /* ТЕНИ */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-blue: 0 4px 6px -1px rgba(13, 148, 232, 0.3), 0 2px 4px -1px rgba(13, 148, 232, 0.2);
    --shadow-blue-hover: 0 10px 15px -3px rgba(13, 148, 232, 0.3), 0 4px 6px -2px rgba(13, 148, 232, 0.2);
}

/* --- Сброс стилей и базовые --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background-color: #FFFFFF;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }
section:nth-child(even) { background-color: var(--bg-light); }

/* --- Заголовки --- */
h1 { font-size: 3.5rem; font-weight: 700; line-height: 1.2; margin-bottom: 1.5rem; }
h2 { font-size: 2.25rem; font-weight: 700; text-align: center; margin-bottom: 3rem; color: var(--text-dark);}
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-dark);}
p { font-size: 1.125rem; color: var(--text-light); line-height: 1.7; }
section p { font-size: 1rem; line-height: 1.6; }
.section-subtitle { font-size: 1.25rem; color: var(--text-light); max-width: 600px; margin: 0 auto 2.5rem auto; text-align: center; }

/* --- ЯЗЫКОВОЙ ПЕРЕКЛЮЧАТЕЛЬ --- */
.lang-switcher {
    position: fixed; top: 10px; right: 10px; z-index: 100; font-size: 0.9rem; padding: 5px 10px; background: rgba(255, 255, 255, 0.7); border-radius: 5px; backdrop-filter: blur(5px);
}
.lang-link { text-decoration: none; color: var(--text-light); font-weight: 500; transition: color 0.2s; margin-left: 5px; }
.lang-link.active { color: var(--text-dark); font-weight: 700; }

/* --- 1. Шапка --- */
.header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 50; transition: all 0.3s ease-in-out; background-color: rgba(255, 255, 255, 0); 
}
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); box-shadow: var(--shadow-md);
}
.header .container {
    display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; padding-bottom: 1rem;
}
.logo img { height: 100px; transition: height 0.3s; }
.nav { display: flex; align-items: center; }
.nav-link {
    color: var(--text-dark); font-weight: 500; text-decoration: none; margin-right: 1.5rem; transition: color 0.3s ease;
}
.nav-link:hover { color: var(--brand-blue); }

/* --- 2. Первый экран --- */
.hero-section {
    padding-top: 140px; padding-bottom: 100px; position: relative; overflow: hidden;
}
/* 🔥 НОВЫЙ КЛАСС: Убирает все inline стили из HTML */
.hero-flex-layout { 
    flex-direction: row; 
    align-items: flex-start; 
    gap: 40px;
    display: flex; /* Добавляем flexbox */
    justify-content: space-between;
}
.hero-content-col { flex: 1; max-width: 500px; } /* Колонка с заголовком */
.hero-form-col { flex: 1; max-width: 45%; display: flex; justify-content: flex-end; } /* Колонка с формой */
.hero-sub-text { font-size: 1.25rem; color: #4B5563; margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 1rem; }

/* Анимация фона */
.background-animation .circle {
    position: absolute; border-radius: 50%; background: linear-gradient(135deg, rgba(13, 148, 232, 0.1), rgba(13, 148, 232, 0.01)); animation: move-circle 20s infinite alternate;
}
.circle-1 { width: 400px; height: 400px; top: -100px; left: -100px; }
.circle-2 { width: 600px; height: 600px; bottom: -200px; right: -150px; animation-duration: 25s; }
@keyframes move-circle {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 60px) scale(1.2); }
}

/* --- КНОПКИ --- */
.btn {
    display: inline-block; padding: 0.75rem 1.5rem; border-radius: 0.5rem; font-weight: 600; text-align: center; transition: all 0.3s ease; box-shadow: var(--shadow-sm); text-decoration: none;
}
.btn-lg {
    padding: 1rem 2rem; font-size: 1.125rem; 
}
.btn-primary {
    background-color: var(--brand-blue); color: white; box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
    background-color: var(--brand-blue-dark); transform: translateY(-2px); box-shadow: var(--shadow-blue-hover);
}
.btn-outline {
    background-color: transparent; color: var(--brand-blue); border: 2px solid var(--brand-blue);
}
.btn-outline:hover {
    background-color: var(--brand-blue-light); 
}

/* --- БЛОК ДОСТУПНОСТИ УСЛУГ --- */
.service-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; max-width: 900px; margin: 40px auto 0 auto;
}
.service-card {
    display: block; text-decoration: none; padding: 20px; border-radius: 12px; transition: all 0.3s ease; border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); text-align: left;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.active-service {
    background-color: var(--brand-blue-light); color: var(--brand-blue); border-color: var(--brand-blue);
}
.active-service .status-badge { background-color: #10B981; color: white; }
.inactive-service {
    background-color: var(--bg-light); color: var(--text-light); cursor: default;
}
.inactive-service .status-badge { background-color: #D1D5DB; color: var(--text-dark); }
.inactive-service:hover { transform: none; box-shadow: var(--shadow-md); }


/* --- 3. Карточки (Общий стиль) --- */
.cards-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem;
}
.card {
    background-color: white; border-radius: 0.75rem; padding: 2rem; text-align: center; box-shadow: var(--shadow-md); border: 1px solid var(--border-light); transition: all 0.3s ease;
}
.card:hover {
    transform: translateY(-5px); box-shadow: var(--shadow-lg);
}
.icon-wrapper {
    width: 4rem; height: 4rem; margin: 0 auto 1.5rem auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; background-color: var(--brand-blue-light);
}
.icon-wrapper svg {
    width: 2rem; height: 2rem; color: var(--brand-blue);
}


/* --- 7. КОНТАКТНАЯ ФОРМА (ФОРМАТИРОВАНИЕ ПОЛЕЙ) --- */
.order-form-container { 
    max-width: 500px; 
    margin: 0 auto; 
    background-color: white; 
    padding: 40px; 
    border-radius: 12px; 
    box-shadow: var(--shadow-lg); 
}
.form-title { font-size: 1.5rem; text-align: center; margin-bottom: 15px; font-weight: 700;}
.form-select-group { display: flex; gap: 10px; margin-bottom: 20px; }
.form-group { margin-bottom: 1.5rem; width: 100%; } /* Убираем лишние стили */
.form-group-half { width: 50%; } /* Класс для 50% ширины */


.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 0.75rem 1rem; border: 1px solid #D1D5DB; border-radius: 0.5rem; font-family: 'Inter', sans-serif; font-size: 1rem; box-shadow: var(--shadow-sm); transition: all 0.3s ease;
    appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%236B7280' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1em;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 3px var(--brand-blue-light);
}
.contact-form .btn { width: 100%; border: none; cursor: pointer; }

/* 🔥 СТИЛИ ДЛЯ ЧЕКБОКСА (GDPR) */
.privacy-consent {
    display: flex; align-items: flex-start; margin-top: 15px; margin-bottom: 20px; 
}
.privacy-consent input[type="checkbox"] {
    width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; margin-right: 10px; box-shadow: none; appearance: checkbox; background-image: none; border: 1px solid var(--text-light);
}
.privacy-consent label {
    display: inline; font-weight: 400; font-size: 0.9rem; color: var(--text-light); cursor: pointer;
}
.privacy-consent label a {
    color: var(--brand-blue); text-decoration: none; font-weight: 500;
}
/* Honeypot field */
.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }


/* --- 8. Подвал --- */
.footer { background-color: var(--text-dark); color: #9CA3AF; padding: 3rem 0; text-align: center; }
.footer-logo { height: 32px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer p { color: #9CA3AF; margin-bottom: 1rem; font-size: 0.875rem; }
.footer-nav a { color: #9CA3AF; text-decoration: none; margin: 0 0.75rem; transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--brand-blue); }

/* --- Адаптивность (Mobile) --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.75rem; }
    section { padding: 40px 0; }
    .container { padding: 0 15px; }
    
    .hero-container {
        flex-direction: column; gap: 30px; text-align: center;
    }
    .hero-flex-layout { 
        flex-direction: column;
        gap: 30px;
    }
    .hero-content-col { max-width: 100%; text-align: center; order: 2; }
    .hero-form-col { max-width: 100%; order: 1; }
    .hero-buttons { justify-content: center; }
    
    .hero-section {
        padding-top: 160px; 
    }

    .header .container .logo img {
        height: 65px; 
    }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.75rem; }
    section { padding: 40px 0; }
    .container { padding: 0 15px; }

    .hero-image { margin-bottom: 20px; } 
    .order-form-container { padding: 25px 20px; }
    .form-select-group { flex-direction: column; gap: 0; }
    .form-group-half { width: 100%; }

    .cards-grid {
        grid-template-columns: 1fr; 
    }
}