:root {
  --ink: #F5F7FF;
  --ink-2: #C5D0EA;
  --jalon: #4F6BFF;
  --jalon-dark: #3E58E8;
  --laiton: #8EA2FF;
  --paper: #070B16;
  --paper-2: #182238;
  --white: #121A30;
  --text: #F5F7FF;
  --muted: #8E9BB8;
  --line: rgba(148, 168, 220, 0.16);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font: "Inter", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --header: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 72% 46% at 50% 8%, rgba(56, 96, 255, 0.42), transparent 58%),
    var(--paper);
  line-height: 1.6;
  color-scheme: dark;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--jalon); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -40px; z-index: 20;
  background: var(--jalon); color: white; padding: 8px 12px;
}
.skip:focus { top: 12px; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  height: var(--header);
  display: flex; align-items: center;
  background: rgba(7, 11, 22, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand > div { min-width: 0; }
.brand img { width: 46px; height: 46px; object-fit: contain; flex: none; }
.brand strong {
  display: block; font-size: 13px; letter-spacing: 0.04em; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.brand span { display: block; font-size: 12px; color: var(--muted); }
.nav { display: flex; gap: 22px; margin-inline-start: auto; }
.header-actions { flex: none; }
.nav a { text-decoration: none; font-size: 14.5px; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--jalon); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: none; border: 1px solid var(--line); background: transparent;
  width: 42px; height: 42px; border-radius: 10px; cursor: pointer;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 18px; border-radius: 999px;
  text-decoration: none; font-weight: 650; border: 0; cursor: pointer;
}
.btn-jalon { background: var(--jalon); color: white; }
.btn-jalon:hover { background: var(--jalon-dark); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid rgba(197, 208, 234, 0.28); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }
.btn-light { background: #F5F7FF; color: #0B1020; }

.hero { padding: 42px 0 28px; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: stretch;
}
.kicker {
  margin: 0 0 14px; color: var(--jalon); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px;
}
h1, h2, h3 { font-family: var(--display); font-weight: 560; letter-spacing: -0.02em; line-height: 1.08; }
h1 { font-size: clamp(42px, 5.4vw, 68px); margin: 0 0 18px; }
h2 { font-size: clamp(32px, 4vw, 46px); margin: 0 0 14px; }
.lead { font-size: 18.5px; max-width: 38rem; color: var(--ink-2); margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-panel {
  position: relative; overflow: hidden; border-radius: 28px;
  background:
    radial-gradient(circle at 30% 18%, rgba(79, 107, 255, 0.55), transparent 52%),
    #0E1428;
  color: white; min-height: 460px; padding: 36px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow);
}
.hero-panel .contours { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.18; }
.hero-panel > * { position: relative; }
.hero-panel img { width: min(240px, 70%); margin: 8px auto 0; }
.hero-panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hero-panel li { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.16); padding-top: 8px; font-size: 14px; }
.hero-panel li span { color: var(--laiton); }
.hero-panel li span.mission { color: inherit; }

.lang {
  display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
}
.lang button {
  background: transparent; color: var(--muted); border: 0; cursor: pointer;
  min-height: 36px; padding: 0 10px; font-size: 12.5px; font-weight: 700;
  font-family: "Inter", "Noto Naskh Arabic", sans-serif;
}
.lang button[aria-pressed="true"] { background: var(--jalon); color: #fff; }
html[dir="rtl"] .kicker,
html[dir="rtl"] .clients-kicker,
html[dir="rtl"] .brand strong,
html[dir="rtl"] .service em { letter-spacing: 0; text-transform: none; }
html[dir="rtl"] body {
  font-family: "Noto Naskh Arabic", "Inter", sans-serif;
}
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
  font-family: "Noto Naskh Arabic", Georgia, serif;
  letter-spacing: 0;
  line-height: 1.35;
}
html[dir="rtl"] .phone-block a.tel,
html[dir="rtl"] .contact-mail { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .skip { left: auto; right: 12px; }

.clients { padding: 6px 0 42px; }
.clients-kicker {
  margin: 0 0 16px; text-align: center; color: var(--muted);
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.clients-ribbon {
  direction: ltr;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.clients-track {
  display: flex; width: max-content;
  animation: clients-scroll 36s linear infinite;
}
.clients-ribbon:hover .clients-track { animation-play-state: paused; }
.clients-track ul {
  display: flex; gap: 16px; margin: 0; padding: 0 8px; list-style: none;
}
.clients-track li {
  flex: none; width: 188px; height: 84px; padding: 10px 14px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 16px;
}
.clients-track img { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; }
@keyframes clients-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .clients-track { animation: none; width: auto; justify-content: center; flex-wrap: wrap; }
  .clients-track ul { flex-wrap: wrap; justify-content: center; }
  .clients-clone { display: none; }
  .clients-ribbon { -webkit-mask-image: none; mask-image: none; }
}

.section { padding: 78px 0; }
.page h1 { font-size: clamp(32px, 4vw, 46px); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head p { margin: 0; color: var(--muted); font-size: 17px; }

.about {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: start;
}
.about p { font-size: 17.5px; }
.about p + p { margin-top: 16px; }
.about-sign { color: var(--laiton); font-weight: 650; }
.about-notes { display: grid; gap: 12px; }
.note {
  background: var(--white); border-radius: 18px; padding: 18px 18px 16px;
  border: 1px solid var(--line);
}
.note strong { display: block; margin-bottom: 4px; }
.note span { color: var(--muted); font-size: 14.5px; }

.services { background: #0B1020; color: white; }
.services .section-head p, .refs .section-head p { color: rgba(255,255,255,.72); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.service {
  border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 20px;
  background: rgba(255,255,255,.03); min-height: 168px;
}
.service em { display: block; color: var(--laiton); font-style: normal; font-size: 13px; letter-spacing: 0.08em; margin-bottom: 10px; }
.service h3 { font-size: 26px; margin: 0 0 8px; }
.service p { margin: 0; color: rgba(255,255,255,.78); }

.refs { background: #10182C; color: white; }
.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ref {
  background: rgba(255,255,255,.04); border-radius: 22px; padding: 24px;
  border-top: 3px solid var(--laiton); min-height: 240px;
}
.ref h3 { margin: 0 0 10px; font-size: 30px; }
.ref p { margin: 0; color: rgba(255,255,255,.78); }
.ref-note { margin: 22px 0 0; color: var(--laiton); font-weight: 600; }

.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 28px; }
.phone-block { background: var(--white); border-radius: 24px; padding: 28px; border: 1px solid var(--line); }
.phone-block .kicker { margin-bottom: 8px; }
.phone-block .contact-address { margin: 0 0 22px; font-size: 17px; line-height: 1.45; color: var(--text); }
.phone-block a.tel { display: block; font-family: var(--display); font-size: clamp(26px, 3vw, 34px); text-decoration: none; line-height: 1.15; margin: 0 0 22px; }
.contact-mail { display: block; margin: 0 0 22px; font-weight: 650; text-decoration: none; color: var(--laiton); overflow-wrap: anywhere; }
.contact-mail:hover { text-decoration: underline; }
.phone-block p { color: var(--muted); margin: 0 0 18px; }
.form {
  background: var(--white); border-radius: 24px; padding: 28px; border: 1px solid var(--line);
  display: grid; gap: 12px;
}
label { font-size: 13px; font-weight: 650; }
input, textarea {
  width: 100%; border: 1px solid var(--paper-2); background: var(--paper);
  border-radius: 12px; padding: 12px 14px; color: var(--text);
}
textarea { min-height: 120px; resize: vertical; }
.form .btn { justify-self: start; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.site-footer p { margin: 0; color: var(--muted); font-size: 13.5px; }
.site-footer nav { display: flex; gap: 16px; }
.site-footer a { color: var(--ink-2); font-weight: 600; text-decoration: none; font-size: 14px; }

@media (max-width: 900px) {
  .hero-grid, .about, .service-grid, .ref-grid, .contact-grid { grid-template-columns: 1fr; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header);
    background: #0B1020; border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 12px 20px 18px; gap: 12px;
  }
  .nav.is-open { display: flex; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .brand span { display: none; }
  .header-actions .btn { display: none; }
  .lang button { padding: 0 8px; }
  h1 { font-size: 40px; }
  .phone-block a.tel { font-size: 28px; }
}
