/* --- Глобальные стили и переменные --- */
:root {
    --primary-color: #0077b6;
    --secondary-color: #00b4d8;
    --dark-color: #03045e;
    --light-color: #ffffff;
    --text-color: #333;
    --text-light: #555;
    --bg-light-gray: #f4f8fa;
    --font-family: 'Roboto', sans-serif;
    --border-radius: 12px;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--light-color);
}

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

/* --- Шапка-заголовок --- */
.main-header {
    background: linear-gradient(120deg, var(--dark-color), var(--primary-color));
    color: var(--light-color);
    padding: 60px 20px 40px;
    text-align: center;
}

.main-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.main-header p {
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* --- Секции услуг --- */
.service-section {
    padding: 60px 0;
}

.service-section.alt-bg {
    background-color: var(--bg-light-gray);
}

.service-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    display: block;
}

.service-section h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    background-color: var(--secondary-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 колонка по умолчанию */
    gap: 30px;
}

.service-card {
    background: var(--light-color);
    padding: 25px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eef;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 119, 182, 0.12);
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.service-card .icon {
    font-size: 1.8rem;
    margin-right: 15px;
    line-height: 1;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
    color: var(--text-light);
    flex-grow: 1; /* Позволяет блоку растягиваться */
}

.service-card li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* --- Подвал (Footer) --- */
footer {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
}

footer p {
    margin: 5px 0;
}

/* --- Адаптивность --- */
@media (min-width: 768px) {
    .main-header h1 {
        font-size: 2.8rem;
    }
    .service-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшетах */
    }
}

@media (min-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Гибкая сетка для десктопов */
    }
}