/* ===== ОБЩИЕ СТИЛИ ДЛЯ ВСЕХ ЛЕНДИНГОВ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: #2c7be0;
}

a:hover {
    color: #1a5bb5;
}

/* ===== ШАПКА ===== */
header {
    background: #1a1a2e;
    color: #fff;
    padding: 20px 0;
}

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

.logo a {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
}

nav > ul {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

nav > ul > li > a {
    color: #fff;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s;
}

nav > ul > li > a:hover {
    background: #2c7be0;
    color: #fff;
}

/* ===== ВЫПАДАЮЩЕЕ МЕНЮ В ШАПКЕ ===== */
header nav ul li.dropdown {
    position: relative;
}

header nav ul ul.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 270px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 4px 0;
    margin: 0;
    list-style: none;
    flex-direction: column;
    gap: 0;
    z-index: 1000;
}

/* Невидимый мостик сверху, чтобы меню не закрывалось при переводе мышки */
header nav ul ul.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 0;
    width: 100%;
    height: 8px;
}

header nav ul li.dropdown:hover > ul.dropdown-menu {
    display: flex;
}

header nav ul ul.dropdown-menu li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #eef2f6;
}

header nav ul ul.dropdown-menu li:last-child {
    border-bottom: none;
}

header nav ul ul.dropdown-menu li a {
    display: block;
    padding: 8px 16px;
    color: #1a1a2e;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.3;
    text-align: left;
    white-space: nowrap;
    border-radius: 0;
    transition: background 0.15s, color 0.15s;
}

header nav ul ul.dropdown-menu li a:hover {
    background: #eef5fd;
    color: #2c7be0;
}

header nav ul ul.dropdown-menu li.dropdown-divider {
    height: 2px;
    background: #e2e8f0;
    margin: 2px 0;
    border-bottom: none;
}

header nav ul ul.dropdown-menu li a.all-services-link {
    font-weight: bold;
    color: #2c7be0;
    background: #f8fafc;
}

header nav ul ul.dropdown-menu li a.all-services-link:hover {
    background: #eef5fd;
    color: #1a5bb5;
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: #2c7be0;
    color: #fff;
    border-radius: 30px;
    font-weight: bold;
    transition: background 0.3s;
    margin: 5px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background: #1a5bb5;
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 2px solid #2c7be0;
    color: #2c7be0;
}

.btn-outline:hover {
    background: #2c7be0;
    color: #fff;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    text-align: center;
    padding: 80px 0;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.hero .subtitle {
    font-size: 20px;
    max-width: 700px;
    margin: 10px auto 25px;
    opacity: 0.9;
}

.hero .btn {
    margin: 5px 10px;
}

/* ===== ПРОБЛЕМЫ ===== */
.problems {
    padding: 60px 0;
    background: #fff;
}

.problems h2 {
    text-align: center;
    font-size: 30px;
    margin-bottom: 30px;
    color: #1a1a2e;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.problem-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #e74c3c;
}

.problem-item h3 {
    color: #1a1a2e;
    margin-bottom: 5px;
}

.problem-item p {
    color: #555;
    font-size: 15px;
}

/* ===== РЕШЕНИЕ ===== */
.solution {
    padding: 60px 0;
    background: #f9f9f9;
}

.solution h2 {
    text-align: center;
    font-size: 30px;
    margin-bottom: 30px;
    color: #1a1a2e;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.solution-item {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s;
}

.solution-item:hover {
    transform: translateY(-5px);
}

.solution-item h3 {
    color: #2c7be0;
    margin-bottom: 8px;
}

.solution-item p {
    color: #555;
    font-size: 15px;
}

/* ===== РЕЗУЛЬТАТЫ ===== */
.results {
    padding: 60px 0;
    background: #fff;
    text-align: center;
}

.results h2 {
    font-size: 30px;
    margin-bottom: 30px;
    color: #1a1a2e;
}

.results-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.result-item .num {
    font-size: 48px;
    font-weight: bold;
    color: #2c7be0;
    display: block;
}

.result-item .label {
    font-size: 18px;
    color: #666;
}

/* ===== ПРИЗЫВ ===== */
.cta-section {
    padding: 60px 0;
    background: #1a1a2e;
    color: #fff;
    text-align: center;
}

.cta-section h2 {
    font-size: 30px;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 25px;
}

.cta-section .btn {
    background: #2c7be0;
    color: #fff;
}

.cta-section .btn:hover {
    background: #1a5bb5;
}

.cta-section .contacts-list {
    margin-top: 20px;
    font-size: 18px;
}

.cta-section .contacts-list a {
    color: #2c7be0;
    margin: 0 15px;
}

.cta-section .contacts-list a:hover {
    color: #fff;
}

/* ===== ПОДВАЛ ===== */
footer {
    background: #1a1a2e;
    color: #aaa;
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #333;
}

footer a {
    color: #2c7be0;
}

footer a:hover {
    color: #fff;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 28px;
    }
    .hero .subtitle {
        font-size: 17px;
    }
    .results-grid {
        gap: 30px;
    }
    .result-item .num {
        font-size: 36px;
    }
    nav > ul {
        gap: 10px;
    }
    nav > ul > li > a {
        font-size: 14px;
        padding: 4px 8px;
    }
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 22px;
    }
    .hero .subtitle {
        font-size: 15px;
    }
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    .results-grid {
        flex-direction: column;
        gap: 15px;
    }
    .result-item .num {
        font-size: 30px;
    }
    .problems-grid, .solution-grid {
        grid-template-columns: 1fr;
    }
}
