:root {
    --blue-950: #08233f;
    --blue-800: #0d3d66;
    --blue-600: #1268a8;
    --blue-100: #e8f4fb;
    --orange: #f59e0b;
    --text: #1f2937;
    --muted: #667085;
    --line: #dbe7ef;
    --bg: #f7fbfe;
    --white: #ffffff;
    --shadow: 0 20px 50px rgba(8, 35, 63, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--blue-950);
}
.brand-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-950));
    color: white;
    font-weight: 800;
    font-size: 1.4rem;
    box-shadow: 0 10px 24px rgba(18, 104, 168, .25);
}
.brand strong { display: block; font-size: 1.05rem; }
.brand small { display: block; color: var(--muted); margin-top: -2px; }
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--blue-950);
    font-weight: 650;
}
.main-nav a:hover, .main-nav a.active { background: var(--blue-100); }
.main-nav .nav-phone { background: var(--blue-950); color: white; }
.nav-toggle { display: none; border: 0; background: var(--blue-100); border-radius: 12px; padding: 10px 13px; font-size: 1.3rem; }

.hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0 58px;
    background:
        radial-gradient(circle at 82% 18%, rgba(245, 158, 11, .18), transparent 24%),
        linear-gradient(135deg, #eef8ff 0%, #ffffff 52%, #edf7ff 100%);
}
.hero::before {
    content: "";
    position: absolute;
    inset: auto -80px -170px auto;
    width: 410px;
    height: 410px;
    border-radius: 999px;
    background: rgba(18, 104, 168, .10);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 42px;
    align-items: center;
}
.eyebrow {
    margin: 0 0 12px;
    color: var(--blue-600);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .78rem;
}
h1, h2, h3 { color: var(--blue-950); line-height: 1.12; }
h1 { margin: 0; font-size: clamp(2.25rem, 5vw, 4.7rem); letter-spacing: -.05em; }
h2 { margin: 0 0 16px; font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing: -.035em; }
h3 { margin: 10px 0 8px; font-size: 1.25rem; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #465768; max-width: 680px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 20px; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--orange); color: #1f2937; box-shadow: 0 12px 24px rgba(245, 158, 11, .24); }
.btn.secondary { background: white; color: var(--blue-950); border-color: var(--line); }
.btn.full { width: 100%; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; color: var(--blue-950); font-weight: 750; }
.trust-row span { background: white; border: 1px solid var(--line); padding: 8px 12px; border-radius: 999px; }
.hero-card {
    background: white;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 34px;
    box-shadow: var(--shadow);
}

.section { padding: 76px 0; }
.services { background: white; }
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 28px;
}
.card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 24px;
}
.icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: white;
    box-shadow: 0 8px 20px rgba(8, 35, 63, .08);
    font-size: 1.45rem;
}
.split-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 34px;
    align-items: start;
}
.check-list { padding: 0; margin: 24px 0 0; list-style: none; }
.check-list li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px solid var(--line); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 10px; color: var(--blue-600); font-weight: 900; }
.quote-box, .zone-card, .contact-form, .contact-panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
}
.quote-box { padding: 30px; }
.quote-box strong { display: block; color: var(--blue-950); font-size: 1.35rem; line-height: 1.2; }
.zone { background: white; }
.zone-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 34px;
    background: linear-gradient(135deg, #ffffff, #eff8ff);
}
.zone-card p { margin-bottom: 0; }

.page-hero {
    padding: 70px 0;
    background: linear-gradient(135deg, #eef8ff, #ffffff);
}
.page-hero.compact { padding: 54px 0; }
.contact-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    align-items: start;
}
.contact-panel, .contact-form { padding: 28px; }
.contact-panel h2 { font-size: 1.7rem; }
.notice {
    margin-top: 22px;
    padding: 18px;
    border-radius: 20px;
    background: var(--blue-100);
}
.notice p { margin-bottom: 0; }
.field { margin-bottom: 18px; }
label { display: block; font-weight: 800; color: var(--blue-950); margin-bottom: 7px; }
input, select, textarea {
    width: 100%;
    border: 1px solid #c9d9e4;
    border-radius: 16px;
    padding: 13px 14px;
    font: inherit;
    background: #fff;
    color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(18, 104, 168, .18); border-color: var(--blue-600); }
textarea { resize: vertical; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkbox-field label { display: flex; gap: 10px; align-items: flex-start; font-weight: 650; color: var(--text); }
.checkbox-field input { width: auto; margin-top: 5px; }
.field-error { display: block; margin-top: 6px; color: #b42318; font-weight: 700; }
.alert { padding: 14px 16px; border-radius: 16px; margin-bottom: 20px; font-weight: 750; }
.alert.success { background: #e8f7ef; color: #0f6b3d; }
.alert.error { background: #fff1f0; color: #b42318; }
.hidden-field { position: absolute; left: -9999px; opacity: 0; }

.site-footer { background: var(--blue-950); color: white; padding-top: 44px; }
.site-footer a { color: white; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; }
.footer-grid p { color: rgba(255, 255, 255, .78); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); text-align: center; padding: 18px 16px; color: rgba(255,255,255,.72); margin-top: 18px; }

@media (max-width: 900px) {
    .nav-toggle { display: inline-block; }
    .main-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: white;
        box-shadow: var(--shadow);
    }
    .main-nav.open { display: flex; }
    .main-nav a { border-radius: 14px; }
    .hero-grid, .split-grid, .contact-grid { grid-template-columns: 1fr; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .zone-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
    .container { width: min(100% - 24px, 1120px); }
    .hero { padding: 46px 0; }
    .section { padding: 50px 0; }
    .cards, .two-cols, .footer-grid { grid-template-columns: 1fr; }
    .hero-card { padding: 12px; border-radius: 24px; }
    .contact-panel, .contact-form, .quote-box, .zone-card { padding: 22px; border-radius: 22px; }
    .brand small { display: none; }
}

/* Administration */
.admin-hero { background: linear-gradient(135deg, #eef8ff, #ffffff); }
.admin-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.admin-section { padding-top: 42px; }
.admin-login {
    max-width: 520px;
    margin: 0 auto;
    background: white;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
}
.admin-grid {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.admin-menu {
    position: sticky;
    top: 96px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 18px;
}
.admin-menu strong { display: block; margin-bottom: 12px; color: var(--blue-950); }
.admin-menu a {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 11px 12px;
    border-radius: 14px;
    color: var(--blue-950);
    text-decoration: none;
    font-weight: 750;
}
.admin-menu a:hover { background: var(--blue-100); }
.admin-menu span, .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--blue-100);
    color: var(--blue-950);
    font-weight: 850;
}
.admin-content { display: grid; gap: 24px; }
.admin-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 28px;
}
.admin-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}
.message-list { display: grid; gap: 12px; }
.message-item {
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: #fbfdff;
}
.message-item summary {
    cursor: pointer;
    padding: 16px 18px;
    color: var(--blue-950);
}
.message-item summary small { color: var(--muted); }
.message-body {
    border-top: 1px solid var(--line);
    padding: 18px;
    background: white;
}
.message-text {
    background: var(--blue-100);
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 14px;
}
.message-meta {
    color: var(--muted);
    font-size: .88rem;
    word-break: break-word;
}
.btn.danger {
    background: #fff1f0;
    color: #b42318;
    border-color: #ffccc7;
}
.admin-edit-form h3 {
    margin: 28px 0 16px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.admin-edit-form h3:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}
.service-admin-box {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 16px;
    background: #fbfdff;
}
.service-admin-box h4 { margin: 0 0 12px; color: var(--blue-950); }
.admin-sticky-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
}
.field small { color: var(--muted); }

@media (max-width: 900px) {
    .admin-title-row, .admin-card-head { flex-direction: column; align-items: flex-start; }
    .admin-grid { grid-template-columns: 1fr; }
    .admin-menu { position: static; }
}

@media (max-width: 600px) {
    .admin-card { padding: 22px; border-radius: 22px; }
    .admin-sticky-actions { position: static; }
}
