
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f7f9fc;
  --surface-2: #edf3f8;
  --text: #142033;
  --muted: #667386;
  --border: #d9e2ec;
  --primary: #173f67;
  --primary-2: #245b8d;
  --link: #0a66c2;
  --focus: #ffbf47;
  --shadow: 0 10px 28px rgba(20, 32, 51, 0.08);
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1520;
    --surface: #152131;
    --surface-2: #1c2b3e;
    --text: #f4f7fb;
    --muted: #b8c3d1;
    --border: #33445a;
    --primary: #8fc5f0;
    --primary-2: #b8ddfa;
    --link: #83bdff;
    --focus: #ffd166;
    --shadow: 0 12px 30px rgba(0,0,0,.24);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Tahoma, sans-serif;
  line-height: 1.75;
}

img, svg { max-width: 100%; height: auto; }

a {
  color: var(--link);
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
}

.container {
  width: min(1120px, calc(100% - 24px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 800;
  min-width: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #153e66, #2c6da8);
  box-shadow: var(--shadow);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
}

.nav-links {
  grid-column: 1 / -1;
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 10px 0 4px;
}

.nav-links.is-open { display: flex; }

.nav-links a {
  display: block;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.nav-links a:hover {
  background: var(--surface);
  color: var(--link);
}

.language-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.lang-button {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.lang-button[aria-pressed="true"] {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

.hero {
  padding: 44px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 28px;
}

.badge {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary);
  font-size: .92rem;
  font-weight: 750;
}

h1, h2, h3 {
  color: var(--text);
  line-height: 1.3;
  text-wrap: balance;
}

h1 {
  margin: 16px 0 14px;
  font-size: clamp(2.2rem, 11vw, 4.5rem);
  letter-spacing: -.03em;
}

h2 {
  margin-top: 0;
  font-size: clamp(1.55rem, 7vw, 2.35rem);
}

h3 { font-size: 1.12rem; }

.lead {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 4.8vw, 1.18rem);
}

.actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  text-align: center;
}

.button-primary {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

.button-secondary {
  background: var(--surface);
  color: var(--text);
}

.phone-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow);
}

.phone-screen {
  min-height: 360px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg);
}

.metric {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  margin-bottom: 11px;
}

.metric strong {
  display: block;
  font-size: clamp(1.15rem, 5vw, 1.4rem);
  overflow-wrap: anywhere;
}

.section { padding: 44px 0; }

.section-muted {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.grid-3,
.support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card,
.legal-header,
.legal-block {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card p,
.muted,
.meta { color: var(--muted); }

.legal-layout {
  display: grid;
  gap: 18px;
  padding: 24px 0 56px;
}

.legal-block p,
.legal-block li {
  font-size: clamp(1rem, 4vw, 1.08rem);
}

.legal-block h2 {
  margin-top: 28px;
  font-size: clamp(1.35rem, 5vw, 1.75rem);
}

.legal-block h2:first-child { margin-top: 0; }

.ar { direction: rtl; text-align: right; }
.en { direction: ltr; text-align: left; }

.language-section[hidden] { display: none !important; }

.notice {
  padding: 14px;
  border-inline-start: 4px solid #14815d;
  border-radius: 12px;
  background: var(--surface);
}

.site-footer {
  padding: 28px 0 38px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-grid {
  display: grid;
  gap: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a { color: var(--muted); }

@media (min-width: 600px) {
  .container { width: min(1120px, calc(100% - 40px)); }
  .actions { grid-template-columns: repeat(2, minmax(0, max-content)); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .support-grid { grid-template-columns: repeat(2, 1fr); }
  .card, .legal-header, .legal-block { padding: 24px; }
}

@media (min-width: 860px) {
  .nav {
    grid-template-columns: auto 1fr;
  }

  .menu-toggle { display: none; }

  .nav-links {
    grid-column: auto;
    display: flex !important;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    padding: 0;
  }

  .nav-links a { padding-inline: 11px; }

  .hero {
    padding: 76px 0 54px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 42px;
  }

  .grid-3 { grid-template-columns: repeat(3, 1fr); }

  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

@media (min-width: 1180px) {
  .container { width: min(1120px, calc(100% - 64px)); }
}

@media print {
  .site-header,
  .site-footer,
  .actions,
  .language-controls {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .legal-header,
  .legal-block,
  .card {
    box-shadow: none;
    background: #fff;
  }

  .language-section[hidden] { display: block !important; }
}
