/* خالص (Khalis Collect) — واجهة النظام. هوية مستوحاة من شعار المنصة: كحلي واثق، وتدرّج أخضر-تركواز لعلامة الصح. */

:root {
    --ink: #101c2c;
    --muted: #5c6b7d;
    --paper: #f3f6f8;
    --surface: #ffffff;
    --line: #dde4ea;
    --line-2: #eaeff3;
    --petrol: #0d2b52;      /* كحلي خالص — العناصر الأساسية والقائمة الجانبية */
    --petrol-2: #14a67e;    /* أخضر-تركواز — روابط، تفاعل، مبالغ محصّلة */
    --petrol-3: #e3f4ee;    /* تركواز فاتح جداً — خلفيات ناعمة */
    --amber: #b9770e;
    --amber-soft: #f4e6c4;
    --gold: #e0a032;
    --red: #b3261e;
    --red-bg: #fbe9e7;
    --r: 6px;
    --r-lg: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Cairo', system-ui, 'Segoe UI', Tahoma, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
}

a { color: var(--petrol); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--petrol-2); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3 { line-height: 1.35; }

/* ---------- الهيكل ---------- */

body.tk-app {
    display: grid;
    grid-template-columns: 244px minmax(0, 1fr);
    min-height: 100vh;
}

.side {
    background: var(--petrol);
    color: #cfe3de;
    display: flex;
    flex-direction: column;
    padding: 22px 14px 18px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0 8px 22px;
}
.brand:hover { text-decoration: none; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: var(--r);
    background: var(--gold);
    color: var(--ink);
    font-weight: 700;
    flex: none;
}
.brand-dark { color: var(--ink); padding-inline: 0; }
.brand-logo {
    width: 34px;
    height: 34px;
    border-radius: var(--r);
    object-fit: cover;
    background: #fff;
    flex: none;
}

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--r);
    color: #cfe3de;
    border-inline-start: 3px solid transparent;
}
.nav a:hover { background: rgba(255, 255, 255, .07); text-decoration: none; }
.nav a.on { background: rgba(255, 255, 255, .12); color: #fff; border-inline-start-color: var(--gold); font-weight: 600; }
.ic { flex: none; }

.me { margin-top: auto; padding: 16px 10px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.me-name { color: #fff; font-weight: 600; }
.me-role { font-size: .8rem; opacity: .8; margin-bottom: 10px; }
.me-out { display: inline-flex; align-items: center; gap: 8px; color: #cfe3de; font-size: .9rem; }

.menu-btn {
    display: none;
    position: fixed;
    top: 10px;
    inset-inline-start: 10px;
    z-index: 30;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    place-items: center;
}

.main { padding: 28px 34px 60px; min-width: 0; max-width: 1320px; width: 100%; }

.flash {
    padding: .7rem 1rem;
    border-radius: var(--r);
    margin-bottom: 16px;
    border: 1px solid #b9d6cf;
    background: var(--petrol-3);
    color: var(--petrol);
}
.flash-err { border-color: #efc3be; background: var(--red-bg); color: var(--red); }

/* ---------- عناوين الصفحات ---------- */

.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 1.55rem; font-weight: 700; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sub { margin: 4px 0 0; color: var(--muted); }
.crumb { margin: 0 0 4px; font-size: .85rem; color: var(--muted); }

/* ---------- شجرة توزيع المحفظة (مشرف/محصّل) ---------- */
.tr-grp td { background: var(--petrol-3, #f2f7f5); font-weight: 600; }
.tr-sub td { color: var(--muted); font-size: .92rem; }
.tr-sub td.indent { padding-inline-start: 32px; }

/* ---------- الإشعارات ---------- */
.is-unread td { background: var(--petrol-3, #f2f7f5); font-weight: 600; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.actions form { margin: 0; }

/* ---------- أزرار ونماذج ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: .5rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background .12s, border-color .12s;
}
.btn:hover { background: #f4f7f3; border-color: #c9d2cb; text-decoration: none; }
.btn-primary { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.btn-primary:hover { background: var(--petrol-2); border-color: var(--petrol-2); }
.btn-danger { color: var(--red); border-color: #efc3be; }
.btn-danger:hover { background: var(--red-bg); border-color: #e4a7a0; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-block { width: 100%; }
.btn-sm { padding: .3rem .7rem; font-size: .82rem; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--petrol); cursor: pointer; text-decoration: underline; }
.link-danger { color: var(--red); }

.fld { display: flex; flex-direction: column; gap: 5px; font-size: .85rem; color: var(--muted); min-width: 0; }
.check-row { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 4px; }
.chk { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 6px; font-size: .85rem; color: var(--ink); }
.chk input { width: auto; }
.fld > span { font-weight: 500; }
.fld input, .fld select, .fld textarea, .bulkbar select, form.inline select, select[name="assign"] {
    width: 100%;
    padding: .5rem .7rem;
    border: 1px solid #c9d2cb;
    border-radius: var(--r);
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: .95rem;
}
.fld textarea { resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--petrol-2); outline: 2px solid var(--petrol-3); outline-offset: 0; }
.fld.grow { flex: 1 1 260px; }
.hint { color: var(--muted); font-size: .78rem; }
.fld.btns { flex-direction: row; gap: 8px; }
.chk { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }

.stack { display: flex; flex-direction: column; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 4px; }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-actions { display: flex; gap: 10px; margin-top: 8px; }
.form-panel fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.form-panel legend { font-weight: 700; font-size: 1rem; padding: 0 0 10px; color: var(--ink); }

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 14px 16px;
    margin-bottom: 16px;
}
.filters .fld:not(.grow):not(.btns) { flex: 0 1 170px; }

.bulkbar { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.bulkbar select { width: auto; min-width: 200px; }

/* ---------- الألواح والجداول ---------- */

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; margin-bottom: 18px; }
.panel.flush { padding: 0; overflow: hidden; }
.panel h2 { margin: 0 0 12px; font-size: 1rem; font-weight: 700; }
.panel h3 { margin: 16px 0 6px; font-size: .9rem; }

.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th {
    text-align: start;
    font-weight: 600;
    font-size: .8rem;
    color: var(--muted);
    background: #f7f9f6;
    padding: .65rem .9rem;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.tbl td { padding: .7rem .9rem; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tbody tr:hover { background: #fafcf9; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .chk-col { width: 36px; text-align: center; }
.tbl tr.is-off td { opacity: .55; }
.ltr-cell { text-align: end; }
.empty-row { text-align: center; color: var(--muted); padding: 32px 12px !important; }
.row-actions { white-space: nowrap; }
.row-actions form { display: inline; margin-inline-start: 12px; }
form.inline { display: flex; gap: 8px; align-items: center; margin: 0; }
form.inline select { width: auto; min-width: 130px; padding: .3rem .5rem; font-size: .85rem; }

.small { font-size: .8rem; color: var(--muted); }
.muted { color: var(--muted); }
.pad { padding: 10px 2px; margin: 0; }
.late { color: var(--red); font-weight: 600; }

.badge { display: inline-block; padding: .05rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; line-height: 1.7; }
.badge.st-new { background: #e6eef7; color: #24507e; }
.badge.st-following { background: var(--petrol-3); color: var(--petrol); }
.badge.st-promise { background: #fbf1dc; color: #8a5a08; }
.badge.st-partial { background: #eaf3d9; color: #4c6b12; }
.badge.st-unreachable { background: #eceeed; color: #55605c; }
.badge.st-legal { background: #ece4f6; color: #5b3a8a; }
.badge.st-paid { background: #d3eed9; color: #17582c; }
.badge.st-closed { background: #e3e5e4; color: #3d4744; }

.pager { display: flex; gap: 6px; align-items: center; justify-content: center; margin: 22px 0 0; flex-wrap: wrap; }
.pager a, .pager span { padding: .3rem .7rem; border-radius: var(--r); color: var(--muted); }
.pager a { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.pager a:hover { text-decoration: none; background: #f4f7f3; }
.pager .cur { background: var(--petrol); color: #fff; font-weight: 600; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.split > .panel.flush { margin-bottom: 0; }

.plain { padding-inline-start: 1.2rem; margin: 0; }
.plain li { margin-bottom: 6px; }
.chips span { display: inline-block; background: #eef1ed; border-radius: 4px; padding: .1rem .55rem; margin: 0 0 6px 6px; font-size: .8rem; }

.empty { text-align: center; padding: 70px 20px; }
.empty h1 { margin: 0 0 6px; }
.empty p { color: var(--muted); margin: 0 0 18px; }

/* ---------- دفتر التحصيل (الملخص) ---------- */

.ledger { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; margin-bottom: 16px; }
.ledger-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.lbl { font-size: .85rem; color: var(--muted); }
.ledger-rate { font-size: 3.6rem; font-weight: 700; line-height: 1.05; color: var(--petrol); font-variant-numeric: tabular-nums; }
.ledger-rate small { font-size: .42em; margin-inline-start: 4px; }
.ledger-rate.sm { font-size: 2.2rem; }
.ledger-figs { display: flex; margin: 0; flex-wrap: wrap; }
.ledger-figs > div { padding: 0 22px; border-inline-start: 1px solid var(--line); }
.ledger-figs > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.ledger-figs dt { font-size: .8rem; color: var(--muted); }
.ledger-figs dd { margin: 0; font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.ledger-figs .pos { color: var(--petrol-2); }
.ledger-figs .rem { color: var(--amber); }
.bar {
    height: 12px;
    border-radius: 2px;
    margin-top: 18px;
    overflow: hidden;
    background: repeating-linear-gradient(-45deg, #efdcac 0 6px, #f6e9c9 6px 12px);
}
.bar-paid { display: block; height: 100%; background: var(--petrol); }
.ledger-sm { padding: 18px 22px; }

.tally { list-style: none; display: flex; flex-wrap: wrap; margin: 0 0 18px; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.tally li { flex: 1 1 170px; border-inline-start: 1px solid var(--line); }
.tally li:first-child { border-inline-start: 0; }
.tally a, .tally .static { display: block; padding: 14px 18px; color: var(--ink); }
.tally a:hover { text-decoration: none; background: #f8faf7; }
.tally b { display: block; font-size: 1.55rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.tally span span, .tally a span { font-size: .8rem; color: var(--muted); }
.tally .warn b { color: var(--red); }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; }

.hbars { list-style: none; margin: 0; padding: 0; }
.hbars a { display: grid; grid-template-columns: 110px 1fr 36px; gap: 10px; align-items: center; padding: .38rem 0; color: var(--ink); }
.hbars a:hover { text-decoration: none; }
.hbars a:hover .hb-l { text-decoration: underline; }
.hb-track { height: 10px; background: #eef1ed; border-radius: 2px; overflow: hidden; }
.hb-fill { display: block; height: 100%; }
.hb-fill.st-new { background: #4b7fb3; }
.hb-fill.st-following { background: var(--petrol-2); }
.hb-fill.st-promise { background: var(--gold); }
.hb-fill.st-partial { background: #8aa93a; }
.hb-fill.st-unreachable { background: #8b9691; }
.hb-fill.st-legal { background: #7d5aae; }
.hb-fill.st-paid { background: #2f8a4a; }
.hb-fill.st-closed { background: #5a6561; }
.hb-n { font-variant-numeric: tabular-nums; text-align: end; font-weight: 600; }

.cols { display: flex; gap: 14px; align-items: stretch; height: 230px; }
.col { flex: 1; display: flex; flex-direction: column; text-align: center; min-width: 0; }
.col-v { font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; height: 20px; }
.col-bar { flex: 1; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line); }
.col-bar span { display: block; width: 58%; max-width: 60px; min-height: 2px; background: var(--petrol); border-radius: 2px 2px 0 0; }
.col-l { font-size: .78rem; color: var(--muted); margin-top: 6px; }

.mini { display: inline-block; vertical-align: middle; width: 90px; height: 6px; background: #eef1ed; border-radius: 2px; margin-inline-end: 8px; overflow: hidden; }
.mini span { display: block; height: 100%; background: var(--petrol); }

/* ---------- صفحة الحالة ---------- */

.case-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.case-side .panel:last-child { margin-bottom: 0; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs button {
    padding: .6rem 1.1rem;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font: inherit;
    color: var(--muted);
    cursor: pointer;
}
.tabs button.on { color: var(--petrol); border-bottom-color: var(--petrol); font-weight: 600; }
.tabpane { margin-top: 14px; }

.timeline { list-style: none; margin: 22px 0 0; padding: 0; border-inline-start: 2px solid var(--line); }
.timeline li { position: relative; padding-inline-start: 18px; margin-bottom: 18px; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: -7px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--petrol); border: 2px solid #fff; }
.timeline p { margin: 2px 0; }
.fu-edit { margin-top: 8px; }
.fu-edit summary { font-size: .82rem; cursor: pointer; }
.fu-edit .form-grid { margin-top: 10px; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.tl-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.kv { margin: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; padding: .42rem 0; border-bottom: 1px dashed var(--line-2); }
.kv > div:last-child { border-bottom: 0; }

/* ---------- «معروف» — سجل العملاء الموحّد ---------- */
.registry-panel { border-inline-start: 3px solid var(--petrol-2); }
.registry-panel h2 { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.registry-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.registry-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 10px; background: var(--petrol-3); border-radius: var(--r); font-size: .88rem; }
.registry-list b { color: var(--petrol); flex: none; }
.registry-val { color: var(--ink); }
.registry-ok { color: var(--petrol-2); font-weight: 600; }
.kv dt { color: var(--muted); font-size: .85rem; flex: none; }
.kv dd { margin: 0; text-align: end; font-weight: 500; word-break: break-word; }
.wa { font-size: .75rem; margin-inline-start: 8px; color: #1a7f4b; }
.notes { margin: 0; font-size: .9rem; }

/* ---------- تسجيل الدخول ---------- */

body.tk-login { background: #fff; }
.login { display: grid; grid-template-columns: minmax(360px, 540px) 1fr; min-height: 100vh; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 40px 32px; }
.login-box { width: 100%; max-width: 380px; }
.login-box h1 { font-size: 1.7rem; margin: 28px 0 6px; }
.login-box .lead { margin: 0 0 22px; color: var(--muted); }
.login-art { position: relative; overflow: hidden; background: var(--petrol); color: #dcebe7; display: flex; align-items: flex-end; padding: 56px; }
.ledger-lines { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 47px, rgba(255, 255, 255, .07) 47px 48px); }
.ledger-lines::after { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 96px; width: 2px; background: rgba(224, 160, 50, .6); }
.art-text { position: relative; margin: 0; font-size: 2.1rem; font-weight: 600; line-height: 1.55; padding-inline-start: 72px; }

/* ---------- الشاشات الصغيرة ---------- */

@media (max-width: 1100px) {
    .grid-2, .split, .case-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
    body.tk-app { display: block; }
    .menu-btn { display: grid; }
    .side {
        position: fixed;
        inset-block: 0;
        inset-inline-start: 0;
        width: 260px;
        height: 100%;
        z-index: 40;
        transform: translateX(100%);
        transition: transform .2s ease;
    }
    .side.open { transform: none; }
    .main { padding: 64px 16px 48px; }
    .form-grid, .form-grid.cols-3 { grid-template-columns: minmax(0, 1fr); }
    .span-2, .span-3 { grid-column: auto; }
    .ledger-figs > div { padding: 8px 14px 0 0; border-inline-start: 0; }
    .ledger-rate { font-size: 2.8rem; }
    .login { grid-template-columns: 1fr; }
    .login-art { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

/* ---------- الصفحة الرئيسية (تعريف بالخدمة) ---------- */

body.tk-home { background: #fff; display: flex; flex-direction: column; min-height: 100vh; }

.home-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 14px 32px;
    max-width: 1180px;
    margin: 0 auto;
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.home-nav .brand { padding: 0; font-size: 1.15rem; }
.super-link { display: block; margin: 0 8px 14px; font-size: .82rem; color: var(--gold); }

.home-menu-btn { display: none; }
.home-links { display: flex; align-items: center; gap: 26px; }
.home-links a:not(.btn) { color: var(--ink); font-weight: 600; font-size: .95rem; padding: 6px 2px; border-bottom: 2px solid transparent; }
.home-links a:not(.btn):hover { text-decoration: none; color: var(--petrol-2); }
.home-links a.on { color: var(--petrol); border-color: var(--petrol-2); }

.tk-home section[id] { scroll-margin-top: 84px; }

.eyebrow {
    display: inline-block;
    color: var(--petrol-2);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .3px;
    background: var(--petrol-3);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 30px 32px 60px; max-width: 1180px; margin: 0 auto; }
.hero-text h1 { font-size: 2.5rem; font-weight: 800; margin: 0 0 14px; line-height: 1.3; color: var(--petrol); }
.hero-text .lead { color: var(--muted); font-size: 1.05rem; margin: 0 0 26px; max-width: 48ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-lg { padding: .75rem 1.5rem; font-size: 1rem; }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.hero-points li { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; border-inline-start: 3px solid var(--petrol-2); box-shadow: 0 6px 18px -12px rgba(13,43,82,.25); }
.hero-points b { display: block; margin-bottom: 4px; color: var(--petrol); }
.hero-points span { color: var(--muted); font-size: .9rem; }

.services { max-width: 1180px; margin: 0 auto; padding: 20px 32px 60px; }
.services h2 { text-align: center; margin: 0 0 26px; font-size: 1.6rem; font-weight: 800; color: var(--petrol); }

.features { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0 60px; }
.features > * { max-width: 1180px; margin-inline: auto; padding-inline: 32px; }
.features h2 { text-align: center; margin: 0 0 10px; font-size: 1.6rem; font-weight: 800; color: var(--petrol); }
.section-lead { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 30px; }
.features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.features-grid .value-card { border-top: 3px solid var(--petrol-2); }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; border-top: 3px solid var(--petrol-2); }
.service-card h3 { margin: 0 0 8px; color: var(--petrol); }
.service-card p { margin: 0; color: var(--muted); }

.login-strip { background: var(--petrol); padding: 64px 32px; }
.login-strip-full { flex: 1; display: flex; align-items: center; justify-content: center; }
.login-box { max-width: 380px; margin: 0 auto; background: #fff; border-radius: var(--r-lg); padding: 30px 28px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); }
.login-box h2 { margin: 0 0 6px; color: var(--petrol); }
.login-box .lead { margin: 0 0 20px; color: var(--muted); font-size: .92rem; }

.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0 0 40px; }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.value-card h3 { margin: 0 0 8px; color: var(--petrol); font-size: 1.05rem; }
.value-card p { margin: 0; color: var(--muted); font-size: .92rem; }

.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { position: relative; padding-inline-start: 30px; color: var(--ink); line-height: 1.7; }
.check-list li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: .35em;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: linear-gradient(135deg, var(--petrol-2), #1f8fa8);
}
.check-list li::after {
    content: "";
    position: absolute;
    inset-inline-start: 5px;
    top: .55em;
    width: 8px;
    height: 4px;
    border-inline-start: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}


.home-foot {
    max-width: 1180px;
    margin: 0 auto;
    padding: 30px 32px 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--muted);
    font-size: .85rem;
    border-top: 1px solid var(--line);
}
.home-foot-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--petrol); }
.home-foot-brand img { border-radius: 6px; }
.home-foot-links { display: flex; gap: 16px; }
.home-foot-links a { color: var(--muted); }
.home-foot-links a:hover { color: var(--petrol-2); }

@media (max-width: 860px) {
    .hero, .service-grid, .value-grid { grid-template-columns: minmax(0, 1fr); }
    .home-menu-btn {
        display: grid;
        place-items: center;
        width: 38px;
        height: 38px;
        border: 1px solid var(--line);
        border-radius: var(--r);
        background: #fff;
        color: var(--petrol);
    }
    .home-links {
        position: absolute;
        inset-inline: 16px;
        top: 66px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: var(--r-lg);
        box-shadow: 0 12px 30px -10px rgba(13,43,82,.25);
        padding: 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        display: none;
        z-index: 20;
    }
    .home-links.open { display: flex; }
    .home-nav { position: relative; }
}
