/* =========================================
   RESET & BASE STYLES
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #0A192F; /* Очень темный синий */
    --secondary-color: #172A45;
    --accent-color: #E63946;  /* Ярко-красный для кнопок звонка */
    --accent-hover: #C1121F;
    --text-main: #333333;
    --text-light: #666666;
    --bg-light: #F4F7F6;
    --white: #FFFFFF;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    line-height: 1.3;
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary, .btn-large, .btn-phone {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.btn-primary:hover, .btn-large:hover, .btn-phone:hover {
    background-color: var(--accent-hover);
}

.btn-phone { padding: 10px 20px; font-size: 16px; }
.btn-primary { padding: 14px 28px; font-size: 16px; }
.btn-large { padding: 18px 40px; font-size: 22px; }

/* Пульсация для главной кнопки внизу */
.call-pulse {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(230, 57, 70, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

/* =========================================
   HEADER & TOP BAR
   ========================================= */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
}

.site-header {
    background-color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 900;
    color: var(--primary-color);
}

.logo span {
    color: var(--accent-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.call-text {
    font-weight: 600;
    color: var(--text-light);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    color: var(--white);
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 25, 47, 0.85); /* Темный слой для читаемости */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    color: var(--white);
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.hero-subtext {
    font-size: 14px;
    opacity: 0.8;
}

/* =========================================
   COMMON SECTION STYLES
   ========================================= */
section { padding: 80px 0; }
.section-heading { text-align: center; margin-bottom: 50px; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-heading h2 { font-size: 36px; margin-bottom: 15px; }

/* =========================================
   SERVICES GRID
   ========================================= */
.services { background-color: var(--bg-light); }
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.service-card:hover { transform: translateY(-5px); }
.service-card img { width: 100%; height: 220px; object-fit: cover; }
.service-text { padding: 25px; }
.service-text h3 { font-size: 20px; margin-bottom: 10px; }

/* =========================================
   DANGERS SECTION (Split Layout)
   ========================================= */
.dangers-inner {
    display: flex;
    align-items: center;
    gap: 50px;
}

.dangers-content { flex: 1; }
.dangers-content h2 { font-size: 36px; margin-bottom: 20px; }
.dangers-content p { margin-bottom: 20px; font-size: 18px; }
.dangers-content ul { margin-bottom: 30px; padding-left: 20px; }
.dangers-content li { margin-bottom: 15px; }
.dangers-image { flex: 1; }
.dangers-image img { border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* =========================================
   PROCESS SECTION
   ========================================= */
.process { background-color: var(--bg-light); text-align: center; }
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.step-number {
    width: 60px; height: 60px;
    background-color: var(--accent-color);
    color: var(--white);
    font-size: 24px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}
.step h4 { font-size: 22px; margin-bottom: 10px; }

/* =========================================
   FAQ SECTION
   ========================================= */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    padding: 20px;
}
.faq-item summary {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none; /* Убираем стандартный треугольник в некоторых браузерах */
    position: relative;
    padding-right: 30px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0; top: 0;
    font-size: 24px;
    color: var(--accent-color);
}
.faq-item[open] summary::after { content: '-'; }
.faq-item p { margin-top: 15px; color: var(--text-light); }

/* =========================================
   BOTTOM CTA & FOOTER
   ========================================= */
.bottom-cta { background-color: var(--primary-color); color: var(--white); text-align: center; }
.bottom-cta h2 { color: var(--white); font-size: 40px; margin-bottom: 15px; }
.bottom-cta p { font-size: 20px; margin-bottom: 30px; }

footer { background-color: #050D1A; color: #8892A0; padding: 60px 0 30px 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand h3 { color: var(--white); font-size: 24px; margin-bottom: 10px; }
.footer-brand span { color: var(--accent-color); }
.footer-contact h4 { color: var(--white); margin-bottom: 10px; }
.footer-phone { color: var(--accent-color); font-size: 20px; font-weight: 800; text-decoration: none; }

.disclaimer {
    background-color: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
    line-height: 1.6;
    text-align: justify;
    border-left: 3px solid var(--text-light);
}

.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 15px; text-align: center; }
    .call-text { display: none; } /* Скрываем лишний текст в шапке на мобильном */
    
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    .btn-large { font-size: 18px; padding: 15px 25px; width: 100%; }
    
    .dangers-inner { flex-direction: column; }
    .process-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    
    .bottom-cta h2 { font-size: 30px; }
}