html {
    font-size: 15px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #1f2937;
    background-color: #f4f6fb;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.header-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-top {
    background: #ececec;
    border-bottom: 1px solid #dddddd;
}

.header-top .header-inner {
    min-height: 64px;
    max-width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.75rem;
}

.header-logo {
    justify-self: start;
    font-size: 2.05rem;
    font-weight: 800;
    color: #2a2a2a;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 0.02em;
}

.header-logo:hover {
    text-decoration: none;
}

.header-contacts {
    grid-column: 2;
    justify-self: center;
    display: flex;
    gap: 1.25rem;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    font-weight: 500;
}

.header-contacts a {
    color: #1f2937;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    font-size: 0.85rem;
    line-height: 1;
    border-radius: 50%;
    color: #111827;
    background-color: #dfe4eb;
}

.header-nav {
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
    padding: 0;
}

.header-nav .header-inner {
    display: flex;
    align-items: center;
    min-height: 48px;
}

.header-menu {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}

.header-menu .nav-link {
    color: #111827;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.6rem 0.35rem;
}

.header-menu .nav-link:hover {
    color: #000;
}

.hero-section {
    min-height: 72vh;
    display: flex;
    align-items: center;
    padding: 4.5rem 1.5rem;
    background: linear-gradient(125deg, #8A1F6B, #274ba6 45%, #000000);
    color: #fff;
}

.hero-content {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.hero-label {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.85;
}

.hero-section h1 {
    margin-bottom: 1rem;
    font-size: clamp(2.3rem, 5vw, 4rem);
    font-weight: 700;
}

.hero-description {
    margin: 0 auto 1.8rem;
    max-width: 620px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.hero-button {
    padding: 0.75rem 1.45rem;
    font-weight: 600;
    border-radius: 999px;
}

.content-section {
    max-width: 1140px;
    margin: 0 auto;
    padding: 4rem 1.5rem 1.5rem;
}

.content-section h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: #0f255e;
}

.section-description {
    margin-bottom: 1.5rem;
    color: #4b5563;
}

.stats-grid,
.cards-grid,
.team-grid,
.contacts-grid {
    display: grid;
    gap: 1rem;
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    margin-top: 1.5rem;
}

.cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}

.contacts-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stat-card,
.service-card,
.team-card,
.contact-card {
    padding: 1.2rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 12px 28px rgba(31, 41, 55, 0.08);
}

.stat-card h3,
.service-card h3,
.team-card h3,
.contact-card h3 {
    margin-bottom: 0.6rem;
    font-size: 1.15rem;
}

.stat-card h3 {
    margin-bottom: 0.35rem;
    color: #274ba6;
    font-size: 1.75rem;
}

.service-card p,
.team-card p,
.contact-card p,
.stat-card p {
    margin-bottom: 0.45rem;
}

.team-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.team-role {
    font-weight: 600;
    color: #334155;
}

.contacts-section {
    padding-bottom: 4rem;
}

.footer {
    position: static;
    width: 100%;
    margin-top: 2rem;
    padding: 1rem 0;
    line-height: 1.45;
    background-color: #fff;
}

a {
    color: #1f4bc7;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

@media (max-width: 991px) {
    .header-top .header-inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding-top: 0.7rem;
        padding-bottom: 0.7rem;
    }

    .header-logo {
        font-size: 1.7rem;
        align-self: flex-start;
    }

    .header-contacts {
        grid-column: auto;
        justify-self: auto;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .header-nav .header-inner {
        justify-content: flex-end;
    }

    .header-menu {
        align-items: flex-start;
        flex-direction: column;
        padding: 0.5rem 0;
        gap: 0;
    }

    .header-menu .nav-link {
        font-size: 0.85rem;
        padding: 0.55rem 0;
    }
}