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

body {
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
    background: #f5f8fc;
    color: #1e293b;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* ===== ХЕДЕР ===== */
header {
    background: #0b1f33;
    color: #fff;
    padding: 18px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 10;
}

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

.logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.logo span {
    color: #4fc3f7;
}

/* ===== НАВИГАЦИЯ ===== */
.nav-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-links a {
    display: inline-block;
    padding: 8px 22px;
    border-radius: 40px;
    background: transparent;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: 0.25s ease;
    border: 2px solid transparent;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-links a.active {
    background: #4fc3f7;
    color: #0b1f33;
    border-color: #4fc3f7;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
main {
    padding: 40px 0 60px;
    flex: 1;
}

.page h1 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #0b1f33;
}

.page h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #4fc3f7;
    border-radius: 4px;
    margin-top: 10px;
}

.page p {
    font-size: 17px;
    color: #334155;
    margin-bottom: 18px;
    max-width: 750px;
}

/* ===== СТРАНИЦА "УСЛУГИ" ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 10px;
}

.service-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 26px 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    border: 1px solid #e9edf2;
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
}

.service-card .icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 6px;
    color: #0b1f33;
}

.service-card p {
    font-size: 15px;
    color: #475569;
    margin-bottom: 0;
}

/* ===== СТРАНИЦА "КОНТАКТЫ" ===== */
.contact-block {
    background: #fff;
    border-radius: 28px;
    padding: 30px 32px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    border: 1px solid #e9edf2;
    max-width: 700px;
}

.contact-item {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f4f8;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item .label {
    font-weight: 600;
    min-width: 130px;
    color: #1e293b;
}

.contact-item .value {
    color: #334155;
    word-break: break-word;
}

.contact-item a {
    color: #0b1f33;
    text-decoration: none;
    border-bottom: 1px dotted transparent;
    transition: border-color 0.2s;
}

.contact-item a:hover {
    border-bottom-color: #4fc3f7;
}

/* Карта (заглушка) */
.map-placeholder {
    margin-top: 28px;
    background: #dce3ed;
    border-radius: 24px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 18px;
    font-weight: 500;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2394a3b8" width="60" height="60"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>');
    background-repeat: no-repeat;
    background-position: center 30%;
    background-size: 50px;
    padding-top: 40px;
}

.map-placeholder span {
    display: block;
    margin-top: 40px;
}

/* ===== ФУТЕР ===== */
footer {
    background: #0b1f33;
    color: #94a3b8;
    padding: 22px 0;
    text-align: center;
    font-size: 15px;
    margin-top: auto;
}

footer a {
    color: #4fc3f7;
    text-decoration: none;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 700px) {
    .header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .nav-links {
        justify-content: center;
    }

    .nav-links a {
        padding: 6px 16px;
        font-size: 14px;
    }

    .page h1 {
        font-size: 28px;
    }

    .contact-block {
        padding: 20px 16px;
    }

    .contact-item {
        flex-wrap: wrap;
        gap: 6px;
    }

    .contact-item .label {
        min-width: 100px;
    }
}

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

    .contact-item .label {
        min-width: 80px;
    }
}