:root {
    --ink: #17212b;
    --muted: #5b6875;
    --line: #dde3e9;
    --bg: #ffffff;
    --bg-alt: #f2f5f8;
    --brand: #1f4e79;
    --brand-dark: #143553;
    --accent: #e0862b;
    --radius: 10px;
    --shadow: 0 6px 24px rgba(23, 33, 43, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font: 16px/1.6 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
}
img { max-width: 100%; }
a { color: var(--brand); }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.1rem; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(6px);
}
.header__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand); flex-shrink: 0; }
.logo__mark { width: 36px; height: 36px; }
.logo__text { font-size: 1.35rem; color: var(--ink); letter-spacing: .01em; }
.logo__text strong { color: var(--brand); }
.logo--light, .logo--light .logo__text { color: #fff; }
.logo--light .logo__text strong { color: #9cc3e8; }
.logo--light .logo__mark { color: #2d6aa3; }

.nav { display: flex; gap: 16px; margin-left: auto; white-space: nowrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: .9rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.is-active { color: var(--brand); border-bottom-color: var(--accent); }
.header__phone { font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }

.burger { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; padding: 10px 9px; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 4px 0; }

/* ---------- hero ---------- */
.hero {
    position: relative;
    color: #fff;
    padding: 56px 0 64px;
    background:
        linear-gradient(115deg, rgba(20, 53, 83, .97) 0%, rgba(31, 78, 121, .92) 55%, rgba(31, 78, 121, .75) 100%),
        repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 2px, transparent 2px 64px),
        #143553;
}
.hero--home { padding: 88px 0 96px; }
.hero h1 { font-size: clamp(1.8rem, 4.4vw, 3rem); max-width: 860px; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: #f2b06f; margin: 0 0 12px; font-weight: 600; }
.hero__lead { font-size: 1.12rem; max-width: 720px; color: #d9e6f2; margin: 0 0 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.crumbs { font-size: .85rem; color: #b7cde2; margin-bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: #fff; }

/* ---------- buttons ---------- */
.btn { display: inline-block; padding: 13px 26px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; transition: .15s; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #c97320; color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--brand); }
.btn--light { background: #fff; color: var(--brand); }
.btn--light:hover { background: var(--accent); color: #fff; }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section__lead { color: var(--muted); max-width: 760px; margin: -4px 0 28px; font-size: 1.05rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; color: var(--ink); text-decoration: none; transition: .15s; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card--link:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.card--link h3 { color: var(--brand); }
.card__icon { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 8px; background: #e5eef7; color: var(--brand); font-weight: 700; margin-bottom: 14px; font-size: 1.15rem; }

.prose { max-width: 860px; }
.prose p, .prose li { color: #2c3a47; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #e9eff5; font-size: .9rem; }
tr:last-child td { border-bottom: 0; }

.faq { max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { padding: 16px 20px; font-weight: 600; cursor: pointer; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* ---------- CTA ---------- */
.section--cta { background: var(--brand); color: #fff; padding: 48px 0; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { margin-bottom: .3em; }
.cta p { margin: 0; color: #d9e6f2; max-width: 640px; }

/* ---------- contacts ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contacts__list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0 0 20px; }
.contacts__list dt { color: var(--muted); }
.contacts__list dd { margin: 0; font-weight: 600; }
.form { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; scroll-margin-top: 90px; }
.form label { display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
.form input, .form select, .form textarea { font: inherit; padding: 11px 12px; border: 1px solid #c7d1db; border-radius: 8px; background: #fff; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.form__note { margin: 0; font-size: .82rem; color: var(--muted); }
.form__note.is-error { color: #b42318; }

/* ---------- footer ---------- */
.footer { background: #101a24; color: #a9b6c3; padding: 48px 0 0; font-size: .93rem; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer h4 { color: #fff; margin-bottom: 6px; }
.footer a { color: #cfd9e3; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer p { margin: 8px 0 0; }
.footer__bottom { border-top: 1px solid #22303d; margin-top: 36px; padding: 18px 20px; font-size: .82rem; color: #7d8a97; }

/* ---------- responsive ---------- */
@media (max-width: 1260px) {
    .header__phone { display: none; }
}
@media (max-width: 1060px) {
    .burger { display: block; }
    .nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
        padding: 8px 20px 16px; box-shadow: var(--shadow);
    }
    .nav.is-open { display: flex; }
    .nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
    .contacts, .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
}
@media (max-width: 560px) {
    .container { padding: 0 16px; }
    .section { padding: 44px 0; }
    .hero, .hero--home { padding: 44px 0 52px; }
    .cards { grid-template-columns: 1fr; }
    .contacts__list { grid-template-columns: 1fr; gap: 2px; }
    .contacts__list dd { margin-bottom: 10px; }
}
