/* ===== ОБЩИЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%; /* важно для min-height */
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
    
    /* ----- НОВЫЕ СТРОКИ ДЛЯ ПРИКЛЕИВАНИЯ ФУТЕРА ----- */
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* занимает всю высоту окна */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-item {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);    
}

.service-item h3 {
    margin-bottom: 8px;
    color: #1a1a2e;
}

.service-item p {
    color: #555;
    font-size: 15px;
    line-height: 1.5;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.clients-grid h3 {
    color: #1a1a2e;
    margin-bottom: 5px;
}

.clients-grid p {
    color: #555;
    font-size: 15px;
}

.cta {
    background: #1a1a2e;
    color: #fff;
    text-align: center;
    padding: 50px 0;
    border-radius: 12px;
    margin: 20px 0;
}

.cta h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

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

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

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

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

a:hover {
    color: #1a5bb5;
}

main {
    flex: 1; /* растягивается, занимает всё свободное место */
}

/* ===== ШАПКА И МЕНЮ ===== */
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;
}

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

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

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

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

/* ===== СЕКЦИИ ===== */
section {
    padding: 60px 0;
}

.hero {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    text-align: center;
}

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

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 10px auto;
}


/* ===== КАРТОЧКИ УСЛУГ (4 В РЯД) ===== */
.services {
    padding: 40px 0;
    background: #f9f9f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

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

.service-item h3 {
    font-size: 18px;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.service-item p {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

/* Адаптивность */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ЦИФРЫ (блок с 15+, 100+) ===== */
.numbers {
    background: #fff;
    text-align: center;
}

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

.number-item {
    text-align: center;
}

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

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

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

footer a {
    color: #2c7be0;
}

footer a:hover {
    color: #fff;
}