/* ==========================================================
   مجموعة المقدادي للخدمات — Al-Migdady Group for Services
   ========================================================== */

:root {
  --red: #D0141F;
  --red-d: #A80E17;
  --navy: #0E2F86;
  --navy-t: #0E2F86;      /* navy used for text */
  --ink: #0F1B3D;
  --ink-2: #4A5577;
  --paper: #FFFFFF;
  --mist: #EEF2F9;
  --line: #DCE2EE;
  --gold: #B8914A;
  --blue: #1D4FC4;
  --green: #2E9A45;
  --on-dark: #FFFFFF;
  --deep: #0A1F5C;
  --deeper: #07153F;
  --logo-chip: transparent;

  --f-head: "Readex Pro", "IBM Plex Sans Arabic", Tahoma, "Segoe UI", sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Readex Pro", Tahoma, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --pad: clamp(18px, 4vw, 32px);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 28px;
  --head-h: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy-t: #9DB5FF;
    --ink: #E8ECF7;
    --ink-2: #A9B3CF;
    --paper: #0B1432;
    --mist: #101C42;
    --line: #22305A;
    --deep: #081A4F;
    --deeper: #050E2E;
    --logo-chip: #FFFFFF;
    --mark-filter: brightness(2.1) saturate(.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --navy-t: #9DB5FF;
  --ink: #E8ECF7;
  --ink-2: #A9B3CF;
  --paper: #0B1432;
  --mist: #101C42;
  --line: #22305A;
  --deep: #081A4F;
  --deeper: #050E2E;
  --logo-chip: #FFFFFF;
  --mark-filter: brightness(2.1) saturate(.8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + env(safe-area-inset-top, 0px) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.25; margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--red); color: #fff; padding: 8px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.ic { width: 22px; height: 22px; flex: none; }
.ic-sm { width: 18px; height: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px;
  border-radius: 12px; border: 1.5px solid transparent;
  font-family: var(--f-head); font-weight: 500; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: .92rem; }
.btn-lg { min-height: 54px; padding: 12px 26px; font-size: 1.05rem; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 22px -10px rgba(208, 20, 31, .7); }
.btn-red:hover { background: var(--red-d); }
.btn-ghost { background: transparent; border-color: color-mix(in srgb, var(--navy-t) 35%, transparent); color: var(--navy-t); }
.btn-ghost:hover { border-color: var(--navy-t); background: color-mix(in srgb, var(--navy-t) 7%, transparent); }

/* ---------- Header ---------- */
.site-head {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-head.scrolled { border-color: var(--line); box-shadow: 0 10px 30px -22px rgba(14, 47, 134, .5); }
.head-row { height: var(--head-h); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 26px; height: auto; filter: var(--mark-filter, none); }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt strong { font-family: var(--f-head); font-weight: 700; font-size: 1.12rem; color: var(--navy-t); }
.brand-txt small { font-size: .78rem; color: var(--red); font-weight: 600; }
.main-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.main-nav a {
  position: relative; padding: 8px 12px; text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--ink-2);
  border-radius: 8px; transition: color .2s;
}
.main-nav a::after {
  content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.main-nav a:hover, .main-nav a.is-active { color: var(--navy-t); }
.main-nav a.is-active::after, .main-nav a:hover::after { transform: scaleX(1); }
.head-cta { display: flex; align-items: center; gap: 8px; }
.menu-btn, .menu-close {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--paper); color: var(--navy-t); align-items: center; justify-content: center; cursor: pointer;
}

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(7, 21, 63, .45); }
.drawer[hidden] { display: none; }
.drawer-panel {
  position: absolute; inset-block: 0; inset-inline-start: 0; width: min(88vw, 380px);
  background: var(--paper); display: flex; flex-direction: column;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 22px calc(22px + env(safe-area-inset-bottom, 0px));
  animation: drawerIn .38s var(--ease);
}
.drawer.closing { animation: fadeOut .25s ease forwards; }
.drawer.closing .drawer-panel { animation: drawerOut .25s ease forwards; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; }
.drawer-logo { width: 150px; height: auto; background: var(--logo-chip); border-radius: 10px; padding: 4px; }
.menu-close { display: inline-flex; }
.drawer-nav { display: flex; flex-direction: column; margin-top: 28px; }
.drawer-nav a {
  font-family: var(--f-head); font-size: 1.45rem; font-weight: 600; text-decoration: none;
  padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink);
  opacity: 0; transform: translateX(-16px); animation: itemIn .45s var(--ease) forwards; animation-delay: calc(.06s * var(--i) + .08s);
}
.drawer-foot { margin-top: auto; display: grid; gap: 10px; }
@keyframes drawerIn { from { transform: translateX(100%); } }
@keyframes drawerOut { to { transform: translateX(100%); } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes itemIn { to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-top: calc(var(--head-h) + env(safe-area-inset-top, 0px));
  background:
    radial-gradient(60% 55% at 15% 30%, color-mix(in srgb, var(--red) 7%, transparent), transparent 70%),
    radial-gradient(55% 60% at 90% 20%, color-mix(in srgb, var(--navy) 9%, transparent), transparent 70%),
    var(--mist);
}
.hero-sky { position: absolute; inset-inline: 0; bottom: 64px; width: 100%; height: 190px; fill: var(--navy-t); opacity: .06; pointer-events: none; }
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 24px;
  min-height: min(760px, calc(100svh - var(--head-h) - 64px)); padding-block: 40px 56px;
}
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--red); font-size: .98rem; }
.hero-kicker .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px color-mix(in srgb, var(--red) 18%, transparent); }
.hero-title {
  margin-top: 14px; font-weight: 700; color: var(--navy-t);
  font-size: clamp(2.5rem, 6.4vw, 5.1rem); line-height: 1.12; letter-spacing: -.5px;
}
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .ln > span { display: inline-block; }
.hero-lead { margin-top: 20px; max-width: 52ch; font-size: clamp(1.02rem, 1.6vw, 1.14rem); color: var(--ink-2); }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { margin: 36px 0 0; display: flex; gap: clamp(20px, 4vw, 44px); flex-wrap: wrap; }
.hero-facts div { display: flex; flex-direction: column-reverse; border-inline-start: 2px solid var(--red); padding-inline-start: 14px; }
.hero-facts dt { font-size: .88rem; color: var(--ink-2); }
.hero-facts dd { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: 1.9rem; line-height: 1.1; color: var(--navy-t); font-variant-numeric: tabular-nums; }

.hero-art { position: relative; width: 100%; max-width: 560px; justify-self: center; }
.rings { width: 100%; height: auto; overflow: visible; }
.ring { fill: none; stroke-linecap: round; }
.ring-a, .ring-b { stroke: url(#rg); stroke-width: 15; }
.ring-a2, .ring-b2 { stroke: var(--red); stroke-width: 3; opacity: .35; }
.ring-a, .ring-a2 { stroke-dasharray: 80 20; stroke-dashoffset: -10; }
.ring-b, .ring-b2 { stroke-dasharray: 80 20; stroke-dashoffset: -60; }
.figure { transform-origin: 290px 360px; filter: var(--mark-filter, none); }

.chips { list-style: none; margin: 0; padding: 0; }
.chips li {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 16px; border-radius: 999px; font-family: var(--f-head); font-weight: 500; font-size: .95rem;
  background: var(--paper); color: var(--navy-t); border: 1px solid var(--line);
  box-shadow: 0 14px 30px -18px rgba(14, 47, 134, .55);
}
.chips li .ic { color: var(--red); width: 20px; height: 20px; }
.chips li:nth-child(1) { top: 8%; right: 0; }
.chips li:nth-child(2) { top: 42%; left: -2%; }
.chips li:nth-child(3) { bottom: 10%; right: 6%; }
.chips li:nth-child(4) { bottom: 2%; left: 22%; }

/* page-load sequence (runs once when .ready is added) */
.js .hero-title .ln > span { transform: translateY(110%); }
.js .hero-kicker, .js .hero-lead, .js .hero-actions, .js .hero-facts { opacity: 0; transform: translateY(14px); }
.js .ring-a, .js .ring-a2, .js .ring-b, .js .ring-b2 { stroke-dasharray: 0 100; }
.js .figure { opacity: 0; transform: translateY(24px) scale(.94); }
.js .chips li { opacity: 0; transform: translateY(10px) scale(.9); }

.ready .hero-title .ln > span { transform: none; transition: transform .9s var(--ease); }
.ready .hero-title .ln:nth-child(2) > span { transition-delay: .08s; }
.ready .hero-title .ln:nth-child(3) > span { transition-delay: .16s; }
.ready .hero-kicker, .ready .hero-lead, .ready .hero-actions, .ready .hero-facts { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s var(--ease); }
.ready .hero-lead { transition-delay: .3s; }
.ready .hero-actions { transition-delay: .4s; }
.ready .hero-facts { transition-delay: .5s; }
.ready .ring-a, .ready .ring-a2 { animation: drawA 1.6s var(--ease) .15s forwards; }
.ready .ring-b, .ready .ring-b2 { animation: drawA 1.7s var(--ease) .35s forwards; }
.ready .figure { opacity: 1; transform: none; transition: opacity .8s ease .7s, transform 1s var(--ease) .7s; }
.ready .chips li { opacity: 1; transform: none; transition: opacity .5s ease, transform .6s var(--ease); transition-delay: calc(1.1s + var(--d) * .12s); }
.ready .chips li { animation: bob 6s ease-in-out infinite; animation-delay: calc(2s + var(--d) * .7s); }
@keyframes drawA { to { stroke-dasharray: 80 20; } }
@keyframes bob { 50% { translate: 0 -6px; } }

/* ticker */
.ticker { position: relative; background: var(--navy); color: #fff; overflow: hidden; height: 64px; display: flex; align-items: center; }
.ticker-track { display: flex; gap: 40px; white-space: nowrap; width: max-content; animation: tick 60s linear infinite; padding-inline-end: 40px; }
.ticker-track span { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-head); font-weight: 500; font-size: 1rem; opacity: .92; }
.ticker-track .ic { width: 20px; height: 20px; color: #FF8A90; }
@keyframes tick { to { transform: translateX(50%); } }

/* ---------- Sections ---------- */
.sec { padding-block: clamp(60px, 8vw, 100px); }
.sec-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 52px); }
.sec-title { font-size: clamp(1.8rem, 4vw, 2.75rem); font-weight: 700; color: var(--navy-t); letter-spacing: -.3px; }
.sec-lead { margin-top: 14px; color: var(--ink-2); font-size: 1.06rem; max-width: 62ch; }
.sec-lead a { color: var(--red); font-weight: 600; }

/* reveal on scroll */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s var(--ease); transition-delay: var(--rv-d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* about */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; }
.checks .ic { color: #fff; background: var(--red); border-radius: 50%; padding: 4px; width: 26px; height: 26px; stroke-width: 2.4; margin-top: 2px; }
.gm {
  margin: 0; position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 40px); box-shadow: 0 30px 60px -40px rgba(14, 47, 134, .45);
}
.gm::before {
  content: ""; position: absolute; inset-block-start: -1px; inset-inline: 32px; height: 4px; border-radius: 0 0 4px 4px;
  background: linear-gradient(to left, var(--red) 0 50%, var(--navy) 50%);
}
.gm-logo { background: var(--logo-chip); border-radius: 14px; padding: 6px; max-width: 280px; }
.gm blockquote { margin: 22px 0 0; font-family: var(--f-head); font-size: 1.22rem; line-height: 1.75; font-weight: 400; color: var(--ink); }
.gm figcaption { margin-top: 20px; display: flex; flex-direction: column; }
.gm figcaption strong { font-family: var(--f-head); color: var(--navy-t); font-size: 1.1rem; }
.gm figcaption span { color: var(--red); font-size: .92rem; font-weight: 600; }

/* group */
.group { background: var(--mist); }
.entities { display: grid; gap: 14px; }
.entity {
  --c: var(--red);
  display: grid; grid-template-columns: auto 1fr minmax(0, 300px); gap: clamp(16px, 3vw, 32px); align-items: center;
  background: var(--paper); border-radius: var(--r-md); padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line); border-inline-start: 6px solid var(--c);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.entity:hover { transform: translateX(-4px); box-shadow: 0 24px 40px -30px color-mix(in srgb, var(--c) 70%, transparent); }
.entity.c-blue { --c: var(--blue); }
.entity.c-green { --c: var(--green); }
.entity-ic {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c); color: #fff; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .12);
}
.entity-ic .ic { width: 34px; height: 34px; }
.entity h3 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); font-weight: 700; color: var(--c); }
.entity.c-blue h3 { color: color-mix(in srgb, var(--blue) 70%, var(--navy-t)); }
.entity-meta { font-size: .88rem; font-weight: 600; color: var(--ink-2); margin-top: 2px; }
.entity-body p:last-child { margin-top: 8px; color: var(--ink-2); }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.tags li { font-size: .85rem; font-weight: 500; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--c) 9%, transparent); color: var(--ink); }

/* services */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filter {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); cursor: pointer;
  padding: 9px 18px; border-radius: 999px; font-family: var(--f-head); font-weight: 500; font-size: .95rem; min-height: 42px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--navy-t); color: var(--navy-t); }
.filter.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.svc-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line);
}
.svc {
  background: var(--paper); padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 10px;
  border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line);
  transition: background-color .25s;
}
.svc.is-out { display: none; }
.svc.is-in { animation: svcIn .45s var(--ease) both; animation-delay: calc(var(--k, 0) * 35ms); }
@keyframes svcIn { from { opacity: 0; transform: translateY(10px); } }
.svc:hover { background: var(--mist); }
.svc-ic {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  color: var(--red); background: color-mix(in srgb, var(--red) 9%, transparent); transition: background-color .25s, color .25s;
}
.svc:hover .svc-ic { background: var(--red); color: #fff; }
.svc-ic .ic { width: 26px; height: 26px; }
.svc h3 { font-size: 1.14rem; font-weight: 600; color: var(--ink); margin-top: 4px; }
.svc p { color: var(--ink-2); font-size: .96rem; line-height: 1.75; }
.svc-link { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--navy-t); text-decoration: none; }
.svc-link .ic { transition: transform .25s var(--ease); }
.svc-link:hover .ic { transform: translateX(-4px); }

/* process */
.process { background: var(--paper); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 27px; inset-inline-start: 28px; inset-inline-end: calc((100% - 80px) / 5 - 28px); height: 2px;
  background: repeating-linear-gradient(to left, var(--line) 0 8px, transparent 8px 14px);
}
.step { position: relative; }
.step-n {
  position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-head); font-weight: 700; font-size: 1.3rem; color: var(--navy-t);
  background: var(--paper); border: 2px solid var(--navy-t); margin-bottom: 16px;
}
.step:last-child .step-n { background: var(--red); border-color: var(--red); color: #fff; }
.step h3 { font-size: 1.15rem; font-weight: 600; }
.step p { margin-top: 6px; color: var(--ink-2); font-size: .95rem; }

/* registry */
.registry { background: var(--mist); }
.reg-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.reg-seal { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); border: 1.5px solid var(--gold); margin-bottom: 18px; }
.reg-seal .ic { width: 30px; height: 30px; }
.reg-cap { margin-top: 18px; padding: 12px 16px; border-inline-start: 3px solid var(--gold); background: var(--paper); border-start-end-radius: 10px; border-end-end-radius: 10px; font-size: .98rem; }
.reg-sheet {
  background: var(--paper); border-radius: 6px; padding: 10px;
  outline: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); outline-offset: -8px;
  box-shadow: 0 30px 60px -44px rgba(14, 47, 134, .6);
}
.reg-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.reg-table th { text-align: start; font-family: var(--f-head); font-weight: 600; font-size: .88rem; color: var(--ink-2); padding: 16px 14px; white-space: nowrap; border-bottom: 1.5px solid color-mix(in srgb, var(--gold) 60%, transparent); }
.reg-table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.reg-table tr:last-child td { border-bottom: 0; }
.reg-table .num { font-family: var(--f-head); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--navy-t); white-space: nowrap; }

/* faq */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 2px; font-family: var(--f-head); font-weight: 600; font-size: 1.1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.pm { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--mist); flex: none; transition: background-color .25s; }
.pm::before, .pm::after { content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 2px; background: var(--navy-t); border-radius: 2px; transition: transform .3s var(--ease); }
.pm::after { transform: rotate(90deg); }
details[open] .pm { background: var(--red); }
details[open] .pm::before, details[open] .pm::after { background: #fff; }
details[open] .pm::after { transform: rotate(0deg); }
.faq-a { padding: 0 2px 20px; color: var(--ink-2); }
details[open] .faq-a { animation: faqIn .35s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* contact */
.contact { background: var(--deep); color: var(--on-dark); position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; width: 720px; height: 620px; border-radius: 50%;
  border: 16px solid rgba(208, 20, 31, .5); inset-inline-end: -320px; top: -260px; transform: rotate(-12deg);
}
.contact-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; grid-template-areas: "info form" "lines form"; column-gap: clamp(28px, 5vw, 64px); row-gap: 0; align-items: start; }
.contact-info { grid-area: info; }
.qform { grid-area: form; }
.contact-lines { grid-area: lines; }
.contact .sec-title { color: #fff; }
.contact .sec-lead { color: rgba(255, 255, 255, .78); }
.lines { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.lines li { display: flex; align-items: center; gap: 14px; }
.lines li > .ic { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #FF8A90; }
.lines small { display: block; font-size: .8rem; color: rgba(255, 255, 255, .62); line-height: 1.3; }
.lines a, .lines span > span { font-family: var(--f-head); font-weight: 500; font-size: 1.05rem; text-decoration: none; color: #fff; }
.lines a:hover { color: #FF8A90; }
.offices { margin-top: 28px; display: grid; gap: 10px; }
.office {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px;
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14); text-decoration: none; transition: background-color .25s, border-color .25s;
}
.office:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .3); }
.office .ic { color: #FF8A90; }
.office strong { display: block; font-family: var(--f-head); font-weight: 600; }
.office small { color: rgba(255, 255, 255, .7); font-size: .9rem; }
.office em { font-style: normal; font-size: .82rem; color: rgba(255, 255, 255, .7); white-space: nowrap; }

.qform {
  background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 36px);
  display: grid; gap: 16px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6);
}
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f { display: grid; gap: 6px; }
.f > span { font-weight: 600; font-size: .92rem; }
.f small { font-weight: 400; color: var(--ink-2); }
.f input, .f select, .f textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--mist); font-size: 16px; transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.f textarea { resize: vertical; min-height: 110px; }
.f input[dir="ltr"] { text-align: right; }
.f input[dir="ltr"]:not(:placeholder-shown) { text-align: left; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--navy-t); background: var(--paper); box-shadow: 0 0 0 4px color-mix(in srgb, var(--navy-t) 14%, transparent); }
.f .bad { border-color: var(--red); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; left: -9999px; }
.f-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.f-actions .btn { flex: 1 1 200px; }
.f-status { min-height: 1.5em; font-weight: 600; font-size: .95rem; }
.f-status.ok { color: var(--green); }
.f-status.err { color: var(--red); }

/* footer */
.site-foot { background: var(--deeper); color: rgba(255, 255, 255, .78); padding-top: 64px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.foot-logo { background: #fff; border-radius: 16px; padding: 12px 16px; max-width: 250px; }
.foot-slogan { margin-top: 16px; font-family: var(--f-head); color: #fff; font-size: 1.1rem; }
.foot-nav { display: flex; flex-direction: column; gap: 8px; }
.foot-nav h3 { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.foot-nav a { text-decoration: none; font-size: .95rem; width: fit-content; }
.foot-nav a:hover { color: #fff; }
.foot-nav .fb { display: inline-flex; align-items: center; gap: 6px; }
.foot-nav .fb .ic { width: 18px; height: 18px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; }
.credit a { color: #fff; }

/* mobile dock */
.dock { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .head-cta { margin-inline-start: auto; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 10px; bottom: 10px; inset-inline: auto; inset-inline-start: 27px; width: 2px; height: auto; background: repeating-linear-gradient(to bottom, var(--line) 0 8px, transparent 8px 14px); }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; padding-bottom: 26px; }
  .step-n { grid-row: span 2; margin: 0; }
  .steps::before { display: none; }
  .step:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 27px; top: 60px; bottom: 4px; width: 2px; background: repeating-linear-gradient(to bottom, var(--line) 0 8px, transparent 8px 14px); }
  .step h3 { align-self: end; }
  .step p { margin-top: 2px; }
}

@media (max-width: 860px) {
  :root { --head-h: 64px; }
  body { font-size: 16px; padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .hide-sm { display: none; }
  .brand-txt strong { font-size: 1.02rem; }

  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-block: 12px 40px; gap: 4px; }
  .hero-art { order: -1; max-width: 300px; margin: 0 auto -6px; }
  .hero-title { font-size: clamp(2.3rem, 10vw, 3rem); margin-top: 10px; }
  .hero-lead { margin-top: 14px; }
  .hero-actions { margin-top: 22px; }
  .hero-facts { margin-top: 28px; }
  .chips li { font-size: .82rem; padding: 6px 12px; }
  .chips li .ic { width: 16px; height: 16px; }
  .hero-copy { text-align: start; }
  .hero-actions .btn { flex: 1 1 150px; }
  .hero-facts { gap: 18px; }
  .hero-facts dd { font-size: 1.55rem; }
  .hero-sky { bottom: 56px; height: 120px; }
  .ticker { height: 56px; }

  .about-grid, .reg-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-areas: "info" "form" "lines"; row-gap: 28px; }
  .lines { margin-top: 0; }
  .entity { grid-template-columns: auto 1fr; }
  .entity-ic { width: 56px; height: 56px; }
  .entity-ic .ic { width: 28px; height: 28px; }
  .tags { grid-column: 1 / -1; justify-content: flex-start; }
  .entity:hover { transform: none; }

  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scrollbar-width: none; scroll-snap-type: x mandatory; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; scroll-snap-align: start; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc { padding: 20px 16px; }
  .svc p { font-size: .9rem; }

  .reg-table thead { display: none; }
  .reg-table, .reg-table tbody, .reg-table tr, .reg-table td { display: block; width: 100%; }
  .reg-table tr { padding: 12px 8px; border-bottom: 1px solid var(--line); }
  .reg-table tr:last-child { border-bottom: 0; }
  .reg-table td { border: 0; padding: 3px 6px; display: flex; justify-content: space-between; gap: 12px; }
  .reg-table td::before { content: attr(data-l); color: var(--ink-2); font-size: .85rem; flex: none; }
  .reg-table td:first-child { font-weight: 600; display: block; padding-bottom: 6px; }
  .reg-table td:first-child::before { display: none; }

  .f-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }

  .dock {
    display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px;
    position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--paper) 90%, transparent);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    transform: translateY(0); transition: transform .35s var(--ease);
  }
  .dock.hide { transform: translateY(110%); }
  .dock a {
    display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; border-radius: 14px;
    text-decoration: none; font-family: var(--f-head); font-weight: 500; font-size: .92rem;
    background: var(--mist); color: var(--navy-t);
  }
  .dock .dock-wa { color: #128C4A; }
  .dock .dock-main { background: var(--red); color: #fff; }
  .dock .ic { width: 20px; height: 20px; }
}

@media (max-width: 420px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; }
  .svc h3 { flex: 1; margin: 0; }
  .svc { padding: 18px 16px; row-gap: 8px; }
  .svc-ic { width: 42px; height: 42px; border-radius: 12px; }
  .svc-ic .ic { width: 22px; height: 22px; }
  .svc h3 { font-size: 1.05rem; }
  .svc p { flex-basis: 100%; }
  .svc-link { display: none; }
  .hero-facts div { padding-inline-start: 10px; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .ticker-track { animation: none; }
}
