/* ===== Базовые стили ===== */
:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-accent: #0f172a;
    --color-bg: #ffffff;
    --color-bg-muted: #f8fafc;
    --color-bg-accent: #111827;
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --color-border: #e5e7eb;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
    --container: 1140px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Кнопки ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

.btn--small {
    padding: 10px 20px;
    font-size: 14px;
}

.btn--ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

/* ===== Шапка ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    text-decoration: none;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.5px;
}

.logo__mark {
    color: var(--color-primary);
}

.logo__text {
    color: var(--color-accent);
}

.nav {
    display: flex;
    gap: 28px;
}

.nav a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav a:hover {
    color: var(--color-primary);
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #fff;
    padding: 96px 0;
    text-align: center;
}

.hero__inner {
    max-width: 820px;
}

.hero__title {
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: clamp(16px, 2vw, 19px);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Секции ===== */
.section {
    padding: 80px 0;
}

.section--muted {
    background: var(--color-bg-muted);
}

.section--accent {
    background: var(--color-bg-accent);
    color: #fff;
}

.section__title {
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.section__title--left {
    text-align: left;
}

.section__lead {
    max-width: 640px;
    margin: 0 auto 48px;
    text-align: center;
    color: var(--color-text-light);
    font-size: 17px;
}

/* ===== Услуги ===== */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.service-card__icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 19px;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--color-text-light);
    font-size: 15px;
}

/* ===== О компании ===== */
.about__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: center;
}

.about__text p {
    margin-bottom: 16px;
    color: var(--color-text-light);
}

.stats {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stats li {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stats__num {
    display: block;
    font-size: 34px;
    font-weight: 800;
    color: var(--color-primary);
}

.stats__label {
    display: block;
    font-size: 14px;
    color: var(--color-text-light);
    margin-top: 4px;
}

/* ===== Преимущества ===== */
.advantages {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.advantage {
    padding: 28px;
    border-left: 3px solid var(--color-primary);
    background: var(--color-bg-muted);
    border-radius: 10px;
}

.advantage h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.advantage p {
    color: var(--color-text-light);
    font-size: 15px;
}

/* ===== Контакты ===== */
.contacts__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.contacts__text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 17px;
}

.contacts__card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
}

.contacts__label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 12px;
}

.contacts__email {
    display: block;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    margin-bottom: 24px;
    word-break: break-word;
}

.contacts__email:hover {
    color: #93c5fd;
}

.contacts__card .btn {
    background: #fff;
    color: var(--color-accent);
}

.contacts__card .btn:hover {
    background: #e2e8f0;
}

/* ===== Подвал ===== */
.footer {
    background: var(--color-bg-muted);
    border-top: 1px solid var(--color-border);
    padding-top: 48px;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding-bottom: 32px;
}

.logo--footer .logo__text {
    color: var(--color-accent);
}

.nav--footer {
    gap: 24px;
}

.footer__contacts a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.footer__contacts a:hover {
    text-decoration: underline;
}

.footer__bottom {
    border-top: 1px solid var(--color-border);
    padding: 24px;
    text-align: center;
    color: var(--color-text-light);
    font-size: 14px;
}

.footer__bottom p + p {
    margin-top: 6px;
    font-size: 13px;
    opacity: 0.85;
}

/* ===== Адаптивность ===== */
@media (max-width: 860px) {
    .nav {
        gap: 18px;
    }
    .about__inner,
    .contacts__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .stats {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .stats li {
        flex: 1 1 120px;
    }
}

@media (max-width: 640px) {
    .header__inner .nav {
        display: none;
    }
    .section {
        padding: 56px 0;
    }
    .footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}