/* ============ Базовые настройки ============ */
:root {
    --color-primary: #1e3a5f;
    --color-accent: #2e7d9a;
    --color-accent-hover: #256b84;
    --color-text: #1f2937;
    --color-text-muted: #6b7280;
    --color-bg: #ffffff;
    --color-bg-soft: #f5f7fa;
    --color-border: #e5e7eb;
    --radius: 10px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.1);
    --transition: 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover { color: var(--color-accent-hover); }

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

.container-narrow { max-width: 820px; }

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 17px;
}

.logo-img {
    height: 42px;       /* Высота логотипа. Подберите под размер шапки */
    width: auto;        /* Ширина подстроится автоматически */
    display: block;
    object-fit: contain;
}

.logo-text {
    /* Можно оставить как есть */
}

.main-nav {
    display: flex;
    gap: 28px;
    margin-left: auto;
}

.main-nav a {
    color: var(--color-text);
    font-size: 15px;
    font-weight: 500;
}

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

.header-phone {
    font-weight: 600;
    font-size: 15px;
    color: var(--color-primary);
    white-space: nowrap;
}

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

.hero h1 {
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: clamp(15px, 1.6vw, 18px);
    max-width: 760px;
    margin: 0 auto 36px;
    opacity: 0.92;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============ Кнопки ============ */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: #f0f4f8;
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

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

.section-title {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
    text-align: center;
}

.section-subtitle {
    font-size: 17px;
    color: var(--color-text-muted);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

/* ============ Услуги ============ */
.services { background: var(--color-bg-soft); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

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

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

.service-icon {
    font-size: 36px;
    margin-bottom: 14px;
    line-height: 1;
}

.service-card h3 {
    font-size: 19px;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.service-card p {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ============ О нас ============ */
.about-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text .section-title { text-align: left; }

.about-text p {
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--color-text);
}

.about-facts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fact {
    background: var(--color-bg-soft);
    border-left: 4px solid var(--color-accent);
    padding: 22px 26px;
    border-radius: var(--radius);
}

.fact-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.fact-label {
    font-size: 14px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============ Контакты ============ */
.contacts { background: var(--color-bg-soft); }

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

.contact-card {
    background: #fff;
    padding: 32px 26px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
    text-align: center;
}

.contact-card h3 {
    font-size: 14px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
    font-weight: 600;
}

.contact-link {
    display: block;
    font-size: 19px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
    word-break: break-word;
}

.contact-link:hover { color: var(--color-accent); }

.contact-note {
    font-size: 13px;
    color: var(--color-text-muted);
}

.contact-address {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.5;
}

/* ============ Реквизиты ============ */
.requisites {
    background: #fff;
    padding: 60px 0;
    border-top: 1px solid var(--color-border);
}

.requisites h3 {
    font-size: 20px;
    color: var(--color-primary);
    margin-bottom: 24px;
    text-align: center;
}

.requisites-list {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    gap: 10px;
}

.requisites-list > div {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 15px;
}

.requisites-list dt {
    color: var(--color-text-muted);
    font-weight: 500;
}

.requisites-list dd {
    color: var(--color-text);
    font-weight: 500;
}

/* ============ Юридические страницы ============ */
.legal { padding: 60px 0; }

.legal h1 {
    font-size: clamp(22px, 3vw, 30px);
    color: var(--color-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.legal-date {
    color: var(--color-text-muted);
    font-size: 14px;
    margin-bottom: 40px;
}

.legal h2 {
    font-size: 20px;
    color: var(--color-primary);
    margin: 36px 0 12px;
    font-weight: 700;
}

.legal p, .legal li {
    font-size: 15.5px;
    color: var(--color-text);
    margin-bottom: 12px;
    line-height: 1.7;
}

.legal ul {
    padding-left: 22px;
    margin-bottom: 12px;
}

.legal li { margin-bottom: 6px; }

/* ============ Подвал ============ */
.site-footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.85);
    padding: 28px 0;
    font-size: 14px;
}

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

.site-footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer a:hover { color: #fff; }

/* ============ Адаптив ============ */
@media (max-width: 860px) {
    .about-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text .section-title { text-align: center; }

    .requisites-list > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .requisites-list dt { font-size: 13px; }
}

@media (max-width: 700px) {
    .main-nav { display: none; }

    .header-inner { padding: 12px 16px; }

    .header-phone { font-size: 14px; }

    section { padding: 60px 0; }

    .hero { padding: 60px 0 70px; }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .logo-text { display: none; }
}