:root {
  --bg: #eef3fa;
  --surface: rgba(255, 255, 255, 0.94);
  --text: #0f2743;
  --text-soft: #5b6e88;
  --primary: #1551a1;
  --primary-strong: #0d366d;
  --accent: #20a4f3;
  --border: rgba(21, 61, 111, 0.12);
  --shadow-lg: 0 28px 72px rgba(11, 36, 71, 0.12);
  --shadow-sm: 0 12px 24px rgba(11, 36, 71, 0.06);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --container: min(1180px, calc(100vw - 2rem));
  --font-sans: "Trebuchet MS", "Segoe UI", sans-serif;
  --font-ar: Tahoma, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at top left, rgba(32, 164, 243, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(21, 81, 161, 0.1), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 54%, #edf2f9 100%);
}
body.rtl { font-family: var(--font-ar); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.container { width: var(--container); margin-inline: auto; }
.page-shell {
  position: relative;
}
.page-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 38rem;
  background:
    radial-gradient(circle at 18% 14%, rgba(21, 81, 161, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), transparent);
  z-index: -1;
}
.site-header {
  position: sticky; top: 0; z-index: 50; backdrop-filter: blur(18px);
  background: rgba(248, 251, 255, 0.88); border-bottom: 1px solid rgba(21, 61, 111, 0.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5.2rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.9rem; font-weight: 800; }
.brand-mark {
  display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 1rem;
  background: linear-gradient(145deg, var(--primary), #0d2f61); color: #fff;
}
.brand-copy { display: grid; gap: 0.15rem; }
.brand-copy span { color: var(--text-soft); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; }

.desktop-nav, .mobile-nav, .footer-links, .language-switcher { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.desktop-nav a, .mobile-nav a, .footer-links a, .language-switcher a, .language-switcher button {
  border: 0; background: transparent; border-radius: 999px; padding: 0.72rem 0.95rem;
  color: var(--text-soft); font-weight: 700; cursor: pointer;
}
.desktop-nav a:hover, .mobile-nav a:hover, .footer-links a:hover, .language-switcher a:hover, .language-switcher button:hover, .language-switcher a.is-active, .language-switcher button.is-active, .desktop-nav a.is-active, .mobile-nav a.is-active, .footer-links a.is-active {
  background: rgba(21, 81, 161, 0.09); color: var(--primary);
}
.header-actions { display: flex; align-items: center; gap: 0.85rem; }
.language-switcher { padding: 0.2rem; border-radius: 999px; background: rgba(21, 61, 111, 0.05); }
.menu-toggle {
  display: none; flex-direction: column; gap: 0.35rem; width: 3rem; height: 3rem; border: 0; border-radius: 999px;
  background: rgba(21, 81, 161, 0.08);
}
.menu-toggle span { width: 1.15rem; height: 2px; background: var(--primary); }
.mobile-panel { display: none; padding: 0 1rem 1rem; }
.mobile-panel.is-open { display: block; }
.mobile-nav { flex-direction: column; }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3.1rem; padding: 0.9rem 1.35rem;
  border-radius: 999px; border: 0; font-weight: 800; cursor: pointer;
}
.button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.45rem;
}
.button-primary { background: linear-gradient(135deg, var(--primary), #0d376f); color: #fff; box-shadow: 0 16px 28px rgba(21, 81, 161, 0.22); }
.button-secondary { background: rgba(21, 81, 161, 0.08); color: var(--primary); }
.button-tertiary { background: transparent; color: var(--primary-strong); border: 1px solid rgba(21, 81, 161, 0.18); }
.button-block { width: 100%; }
.cta-mobile-actions {
  display: none;
}

.hero { padding: 3.9rem 0 4.3rem; }
.section { padding: 4.8rem 0; }
.section-soft { background: linear-gradient(180deg, rgba(224, 234, 247, 0.38), rgba(255, 255, 255, 0)); }
.hero-grid, .split-grid, .contact-grid, .footer-grid, .page-hero-grid, .cta-banner {
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 1.25rem;
}
.hero-copy, .hero-panel, .metric-grid, .card-grid, .area-grid, .contact-list, .footer-contact-list, .stack {
  display: grid; gap: 1rem;
}
.page-hero-grid {
  align-items: start;
  gap: 1.75rem;
}
.page-hero-copy {
  display: grid;
  align-content: start;
  gap: 0.95rem;
  max-width: 38rem;
}
.metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.process-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
.area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem; width: fit-content; padding: 0.38rem 0.78rem;
  border-radius: 999px; background: rgba(21, 81, 161, 0.08); color: var(--primary); font-size: 0.84rem;
  font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.eyebrow::before, .keyword-list li::before, .page-hero-card li::before {
  content: ""; width: 0.65rem; min-width: 0.65rem; height: 0.65rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
}
.hero h1, .page-hero-copy h1, .section-heading h2, .section-heading h3 {
  margin: 0.95rem 0 0.85rem; font-size: clamp(2rem, 4.6vw, 4.4rem); line-height: 1.05; letter-spacing: -0.04em;
}
.page-hero-copy h1 {
  margin: 0;
  max-width: none;
  width: fit-content;
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.section-heading h3 { font-size: clamp(1.45rem, 2vw, 2rem); }
.hero p, .page-hero-copy p, .section-heading p, .card p, .footer-note, .contact-card a, .contact-card span { color: var(--text-soft); line-height: 1.7; }
.page-hero-copy p {
  margin: 0;
  max-width: 34rem;
  font-size: 1.03rem;
}
.hero-mini {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--text-soft);
  font-weight: 600;
}
.hero-mini li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.hero-mini li::before {
  content: "✓";
  color: var(--primary);
  font-size: 0.95rem;
  line-height: 1;
}
.hero-proof {
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
  color: var(--primary-strong);
  font-weight: 700;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.page-hero-copy .hero-actions {
  margin-top: 0.15rem;
}
.page-hero-copy .hero-actions--after-proof {
  margin-top: 0.95rem;
  margin-bottom: 0.25rem;
}
.button-label--mobile {
  display: none;
}
.hero-highlights { display: grid; gap: 0.8rem; }
.hero-highlights span { display: flex; align-items: center; gap: 0.7rem; font-weight: 700; }
.hero-highlights span::before {
  content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--primary));
}

.hero-panel, .card, .contact-card, .page-hero-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm);
}
.about-page {
  display: grid;
  gap: 1.5rem;
  max-width: none;
}
.about-page-heading {
  display: grid;
  gap: 0.75rem;
}
.about-page-heading h1 {
  margin: 0;
  font-size: clamp(2.15rem, 4.4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.about-story-card {
  width: 100%;
  padding: 2rem 2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 245, 253, 0.96)),
    rgba(255, 255, 255, 0.94);
  border-color: rgba(21, 81, 161, 0.12);
  box-shadow: 0 22px 48px rgba(11, 36, 71, 0.08);
}
.about-story-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.1rem;
  line-height: 1.9;
}
.about-story-card h1 {
  margin: 0 0 1.1rem;
  color: var(--primary-strong);
}
.about-story-card p + p {
  margin-top: 1.15rem;
}
.hero-panel {
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(232,239,248,0.9)), rgba(255,255,255,0.86);
  box-shadow: var(--shadow-lg);
}
.card, .contact-card, .page-hero-card { padding: 1.4rem; }
.page-hero-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}
.page-hero-card li {
  display: flex;
  gap: 0.7rem;
  font-size: 0.96rem;
  color: var(--text-soft);
  line-height: 1.5;
}
.service-card__meta {
  display: inline-flex; width: fit-content; padding: 0.45rem 0.75rem; border-radius: 999px; background: rgba(21, 81, 161, 0.08);
  color: var(--primary); font-size: 0.84rem; font-weight: 700;
}
.service-detail-card {
  display: grid;
  align-content: start;
  gap: 0.8rem;
}
.service-detail-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.service-detail-card__head h3 {
  margin: 0;
}
.service-detail-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  min-width: 2.2rem;
  border-radius: 0.9rem;
  background: rgba(21, 81, 161, 0.08);
  color: var(--primary);
}
.home-services-grid .service-detail-card__head {
  flex-wrap: nowrap;
  gap: 0.55rem;
}
.home-services-grid .service-detail-card__head h3 {
  font-size: 0.94rem;
  line-height: 1.2;
  white-space: nowrap;
}
.home-services-grid .service-detail-card__icon {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
}
.offerings-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.offerings-grid .card {
  grid-column: span 2;
  padding: 1.15rem;
}
.offerings-grid .card:nth-child(7) {
  grid-column: 2 / span 2;
}
.offerings-grid .card:nth-child(8) {
  grid-column: 4 / span 2;
}
.offerings-grid .service-detail-card__head {
  align-items: flex-start;
  gap: 0.6rem;
}
.offerings-grid .service-detail-card__head h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}
.offerings-grid .service-detail-card__icon {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  border-radius: 0.8rem;
}
.offerings-grid .keyword-list {
  gap: 0.6rem;
}
.offerings-grid .keyword-list li {
  gap: 0.55rem;
  font-size: 0.92rem;
  line-height: 1.45;
}
.blog-categories-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.blog-category-card,
.blog-post-card {
  display: grid;
  align-content: start;
  gap: 0.9rem;
}
.blog-category-card h3,
.blog-post-card h3 {
  margin: 0;
  line-height: 1.3;
}
.blog-posts-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.blog-post-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.blog-post-card__time {
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 700;
}
.process-card {
  position: relative;
  overflow: visible;
}
.process-card::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -1rem;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 800;
}
.process-card:last-child::after {
  content: none;
}
body.rtl .process-card::after {
  content: "←";
  right: auto;
  left: -1rem;
}
.metric-card strong { display: block; margin-bottom: 0.25rem; font-size: 1.7rem; color: var(--primary-strong); }
.keyword-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; }
.keyword-list li { display: flex; gap: 0.7rem; color: var(--text-soft); line-height: 1.6; }
.top-gap { margin-top: 3rem; }
.area-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-card__title, .footer-contact-item {
  display: flex; align-items: flex-start; gap: 0.8rem;
}
.contact-card__title {
  margin-bottom: 0.85rem;
}
.contact-card__copy {
  flex: 1;
  min-width: 0;
}
.contact-card__copy h3 {
  margin: 0 0 0.55rem;
}
.contact-card__value {
  display: inline-flex;
  width: fit-content;
  color: var(--primary-strong);
  font-weight: 800;
}
.contact-link-collection,
.footer-contact-value-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.contact-link-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.contact-link-collection a,
.footer-contact-value-group a {
  color: var(--primary-strong);
  font-weight: 800;
}
.contact-link-separator {
  color: var(--text-soft);
  font-weight: 700;
  opacity: 0.9;
}
body.rtl .contact-card__value,
body.rtl .footer-contact-item span,
body.rtl .contact-link-collection a,
body.rtl .footer-contact-value-group a {
  direction: ltr;
  unicode-bidi: isolate;
}
.contact-card__description {
  margin: 0;
}
.footer-links {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
}
.site-footer .stack { gap: 0.5rem; }
.site-footer .footer-note { margin: 0; }
.site-footer .footer-grid > .stack:last-child {
  align-items: center;
  text-align: center;
  gap: 0.2rem;
}
.site-footer .footer-grid > .stack:last-child .footer-links {
  justify-content: center;
}
.site-footer .footer-grid > .stack:last-child .footer-links a {
  min-height: auto;
  padding: 0.25rem 0.7rem;
}
.contact-card__icon, .footer-contact-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 2.8rem; height: 2.8rem; min-width: 2.8rem;
  border-radius: 999px; background: linear-gradient(180deg, rgba(21,81,161,0.12), rgba(32,164,243,0.08)); color: var(--primary);
}
.footer-contact-icon { width: 2.2rem; height: 2.2rem; min-width: 2.2rem; }
.footer-contact-value-group {
  min-width: 0;
}

.contact-form { display: grid; gap: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: 0.45rem; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid rgba(21, 61, 111, 0.12); border-radius: 1rem; background: rgba(255,255,255,0.84);
  padding: 0.95rem 1rem; color: var(--text);
}
.field textarea { min-height: 8rem; resize: vertical; }
.contact-form-note {
  margin: -0.1rem 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}
.form-message { padding: 0.95rem 1rem; border-radius: 1rem; font-weight: 700; background: rgba(21, 81, 161, 0.08); color: var(--primary); }

.site-footer { padding: 1.7rem 0 3rem; border-top: 1px solid rgba(21, 61, 111, 0.08); background: #f1f5f9; }
.mobile-cta {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 40; display: none; gap: 0.75rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom)); background: rgba(248,251,255,0.97);
  border-top: 1px solid rgba(21,61,111,0.1);
}
.mobile-cta a { flex: 1; }

@media (max-width: 1080px) {
  .desktop-nav, .header-actions .button { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions .language-switcher {
    display: inline-flex;
    margin-right: 0.15rem;
  }
  .hero-grid, .split-grid, .contact-grid, .footer-grid, .page-hero-grid, .cta-banner, .card-grid, .area-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid, .split-grid, .contact-grid, .footer-grid, .page-hero-grid, .cta-banner { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-categories-grid,
  .blog-posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offerings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offerings-grid .card,
  .offerings-grid .card:nth-child(7),
  .offerings-grid .card:nth-child(8) { grid-column: auto; }
  .offerings-grid .service-detail-card__head h3 { font-size: 0.96rem; }
  .offerings-grid .keyword-list li { font-size: 0.9rem; }
  .process-card:nth-child(2)::after {
    content: none;
  }
}

@media (max-width: 760px) {
  .page-hero-copy .hero-actions {
    display: none;
  }
  body[data-page="home"] .home-services-grid .service-card__meta,
  body[data-page="home"] .home-cta-section {
    display: none;
  }
  .contact-card__description {
    display: none;
  }
  .contact-link-collection,
  .footer-contact-value-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
  .contact-link-item {
    gap: 0;
  }
  .contact-link-separator {
    display: none;
  }
  .site-footer #footer-description {
    display: none;
  }
  .site-footer #footer-contact-list {
    margin-top: 0.45rem;
  }
  .contact-grid > .contact-card:last-child {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(231, 240, 252, 0.96)),
      rgba(255, 255, 255, 0.94);
    border-color: rgba(21, 81, 161, 0.12);
    box-shadow: 0 18px 36px rgba(11, 36, 71, 0.08);
  }
  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.7rem;
    min-height: 4.9rem;
  }
  .brand {
    grid-column: 1;
    min-width: 0;
  }
  .header-actions {
    display: contents;
  }
  .header-actions .language-switcher {
    grid-column: 2;
    justify-self: center;
    align-self: center;
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.12rem;
    padding: 0.12rem;
    background: rgba(21, 61, 111, 0.04);
    min-height: 2rem;
  }
  .header-actions .menu-toggle {
    grid-column: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    align-self: center;
    margin-top: 0;
  }
  .header-actions .language-switcher a {
    flex: 0 0 auto;
    padding: 0.38rem 0.44rem;
    font-size: 0.68rem;
    letter-spacing: 0.01em;
    line-height: 1;
  }
  .menu-toggle {
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
  }
  .hero { padding: 1.9rem 0 3.2rem; }
  .section { padding: 2.6rem 0; }
  .metric-grid, .card-grid, .area-grid, .form-grid { grid-template-columns: 1fr; }
  .eyebrow {
    padding: 0.32rem 0.7rem;
    font-size: 0.75rem;
  }
  .section-heading h2,
  .section-heading h3 {
    margin: 0.55rem 0 0.45rem;
    font-size: clamp(1.45rem, 7vw, 1.9rem);
    line-height: 1.12;
  }
  .about-page {
    gap: 1.1rem;
  }
  body[data-page="services"] .page-hero-copy .eyebrow,
  body[data-page="offerings"] .page-hero-copy .eyebrow,
  body[data-page="blog"] .page-hero-copy .eyebrow,
  body[data-page="contact"] .page-hero-copy .eyebrow,
  body[data-page="home"] .page-hero-copy .eyebrow {
    margin-bottom: 0.35rem;
  }
  body[data-page="home"] .page-hero-copy {
    max-width: 30rem;
    margin-inline: auto;
  }
  body[data-page="home"] .hero {
    padding-bottom: 1.7rem;
  }
  body[data-page="home"] .hero + .section {
    padding-top: 1.4rem;
  }
  body[data-page="services"] .page-hero-copy h1,
  body[data-page="offerings"] .page-hero-copy h1,
  body[data-page="blog"] .page-hero-copy h1,
  body[data-page="contact"] .page-hero-copy h1,
  body[data-page="home"] .page-hero-copy h1 {
    font-size: clamp(1.55rem, 7.2vw, 2rem);
    line-height: 1.06;
    margin-top: 0.1rem;
  }
  .about-page-heading h1,
  .page-hero-copy h1 {
    font-size: clamp(1.75rem, 8vw, 2.2rem);
    line-height: 1.08;
  }
  .page-hero-copy {
    max-width: none;
    gap: 0.7rem;
  }
  .page-hero-copy p,
  .section-heading p,
  .card p,
  .contact-card a,
  .contact-card span,
  .page-hero-card li {
    font-size: 0.96rem;
    line-height: 1.6;
  }
  .card,
  .contact-card,
  .page-hero-card {
    padding: 1.2rem;
  }
  .page-hero-card ul {
    gap: 0.55rem;
  }
  .page-hero-card li {
    gap: 0.6rem;
  }
  .service-detail-card {
    gap: 0.65rem;
  }
  .service-detail-card__head h3,
  .blog-category-card h3,
  .blog-post-card h3 {
    font-size: 1rem;
    line-height: 1.25;
  }
  .keyword-list li {
    font-size: 0.92rem;
    line-height: 1.5;
  }
  .about-story-card {
    padding: 1.25rem;
  }
  .about-story-card p {
    font-size: 1.04rem;
    line-height: 1.75;
  }
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.2rem;
  }
  .process-card:nth-child(3) {
    order: 4;
  }
  .process-card:nth-child(4) {
    order: 3;
  }
  .process-card {
    min-height: 100%;
    padding: 1rem;
  }
  .process-card h3 {
    margin: 0.5rem 0 0.4rem;
    font-size: 1rem;
    line-height: 1.25;
  }
  .process-card p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
  }
  .process-card .service-card__meta {
    padding: 0.35rem 0.6rem;
    font-size: 0.76rem;
  }
  .process-card::after {
    content: "→";
    top: 50%;
    right: -0.85rem;
    left: auto;
    transform: translateY(-50%);
    font-size: 1.1rem;
  }
  .process-card:nth-child(2)::after {
    content: "↓";
    top: auto;
    right: 50%;
    bottom: -0.95rem;
    transform: translateX(50%);
  }
  .process-card:nth-child(3)::after {
    content: "←";
    top: 50%;
    right: auto;
    left: -0.85rem;
    bottom: auto;
    transform: translateY(-50%);
  }
  .process-card:nth-child(4)::after {
    content: none;
  }
  .mobile-cta { display: flex; }
  .site-footer { padding-bottom: 6rem; }
  .site-footer .footer-grid > .stack:last-child {
    align-items: center;
    text-align: center;
  }
  .site-footer .footer-grid > .stack:last-child .footer-links {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.15rem;
    margin: 0.45rem 0 0.65rem;
    max-width: 100%;
  }
  .site-footer .footer-grid > .stack:last-child .footer-links a {
    padding: 0.32rem 0.48rem;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary-strong);
    background: rgba(21, 81, 161, 0.08);
    border: 1px solid rgba(21, 81, 161, 0.08);
    border-radius: 999px;
    white-space: nowrap;
  }
  .site-footer .footer-grid > .stack:last-child .footer-links .footer-link-services {
    display: none;
  }
  .cta-banner {
    gap: 0.9rem;
  }
  .cta-banner__actions {
    display: none;
  }
  .cta-mobile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 1.1rem;
  }
  .cta-mobile-actions .button {
    width: 100%;
    min-width: 0;
    min-height: 2.95rem;
    padding: 0.75rem 0.7rem;
    font-size: 0.86rem;
  }
  .page-hero-copy h1,
  .page-hero-copy p {
    max-width: none;
  }
  .section + .section {
    padding-top: 1.8rem;
  }
}

@media (max-width: 380px) {
  .header-actions .language-switcher {
    gap: 0.08rem;
    padding: 0.1rem;
    min-height: 1.9rem;
  }
  .header-actions .language-switcher a {
    padding: 0.34rem 0.36rem;
    font-size: 0.64rem;
  }
}

.admin-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(32, 164, 243, 0.16), transparent 28%),
    linear-gradient(180deg, #eef5ff 0%, #f8fbff 45%, #f3f7fc 100%);
}

.admin-app {
  min-height: 100vh;
}

.admin-shell {
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  display: grid;
  gap: 1.25rem;
  align-content: start;
  padding: 2rem 1.25rem;
  background: rgba(7, 27, 52, 0.96);
  color: #f6fbff;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar h1,
.admin-toolbar h2 {
  margin: 0;
}

.admin-sidebar p,
.admin-toolbar p {
  margin: 0;
}

.admin-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(246, 251, 255, 0.72);
}

.admin-nav {
  display: grid;
  gap: 0.55rem;
}

.admin-nav-group {
  display: grid;
  gap: 0.45rem;
  padding: 0.25rem 0 0.1rem;
}

.admin-nav__group-title {
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.35rem;
  text-align: left;
  font-size: 0.92rem;
  font-weight: 800;
  color: #f6fbff;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: relative;
}

.admin-nav__group-title::after {
  content: "+";
  position: absolute;
  right: 0.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(246, 251, 255, 0.72);
}

.admin-nav__group-title.is-open::after {
  content: "-";
}

.admin-nav__sublist {
  display: none;
  gap: 0.35rem;
  padding-left: 0.65rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  margin-left: 0.35rem;
}

.admin-nav__sublist.is-open {
  display: grid;
}

.admin-nav__button {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #f6fbff;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  font: inherit;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.admin-nav__button:hover,
.admin-nav__button.is-active {
  background: linear-gradient(135deg, rgba(32, 164, 243, 0.26), rgba(21, 81, 161, 0.3));
  border-color: rgba(103, 206, 255, 0.4);
  transform: translateY(-1px);
}

.admin-nav__subbutton {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(246, 251, 255, 0.82);
  border-radius: 0.8rem;
  padding: 0.62rem 0.8rem;
  font: inherit;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.admin-nav__subbutton:hover,
.admin-nav__subbutton.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #f6fbff;
  border-color: rgba(103, 206, 255, 0.24);
}

.admin-sidebar__links {
  display: grid;
  gap: 0.7rem;
}

.admin-sidebar__links a {
  color: #f6fbff;
  opacity: 0.82;
}

.admin-main {
  padding: 2rem;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.admin-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-editor {
  display: grid;
  gap: 1rem;
}

.admin-contact-group__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem 0.2rem;
}

.admin-contact-group__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(16rem, 0.95fr);
  gap: 1rem;
}

.admin-contact-group__column {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.admin-contact-group__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-contact-group__column .admin-contact-row:first-of-type {
  margin-top: 0.8rem;
}

.admin-contact-group__label {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary-strong);
}

.admin-contact-group__head h3,
.admin-contact-group__hint {
  margin: 0;
}

.admin-contact-group__hint {
  color: var(--text-soft);
  font-size: 0.86rem;
  white-space: nowrap;
}

.admin-contact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: end;
}

.admin-contact-remove {
  min-height: 3rem;
}

.admin-group {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(21, 81, 161, 0.1);
  border-radius: 1.2rem;
  box-shadow: 0 18px 44px rgba(24, 44, 74, 0.08);
}

.admin-group > summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.1rem;
  font-weight: 800;
  color: var(--primary-strong);
}

.admin-page-group > summary {
  display: grid;
  gap: 0.25rem;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(180deg, rgba(21, 81, 161, 0.06), rgba(32, 164, 243, 0.04));
  border-radius: 1.2rem;
  position: relative;
}

.admin-page-group > summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1.1rem;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(21, 81, 161, 0.08);
  color: var(--primary-strong);
  font-size: 1.1rem;
}

.admin-page-group[open] > summary::after {
  content: "-";
}

.admin-page-group__title {
  font-size: 1rem;
  font-weight: 800;
}

.admin-page-group__hint {
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 600;
  padding-right: 3rem;
}

.admin-group > summary::-webkit-details-marker {
  display: none;
}

.admin-group__content {
  display: grid;
  gap: 0.9rem;
  padding: 0 1.1rem 1.1rem;
}

.admin-history-group {
  margin-top: 0.35rem;
}

.admin-history-table-wrap {
  overflow: auto;
  border: 1px solid rgba(21, 81, 161, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.78);
}

.admin-history-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 42rem;
}

.admin-history-table th,
.admin-history-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(21, 81, 161, 0.08);
}

.admin-history-table th {
  position: sticky;
  top: 0;
  background: #f6fbff;
  color: var(--primary-strong);
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-history-table td {
  font-size: 0.92rem;
}

.admin-history-table td code {
  display: inline-block;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  color: var(--text);
}

.admin-history-table__actions {
  white-space: nowrap;
  width: 1%;
}

.admin-history-table__button {
  min-width: 7rem;
}

.admin-history-table__muted {
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.admin-field {
  display: grid;
  gap: 0.45rem;
}

.admin-field--inline {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem;
}

.admin-field--inline span {
  margin: 0;
  white-space: nowrap;
}

.admin-field span {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-soft);
}

.admin-field textarea,
.admin-field input {
  width: 100%;
  border-radius: 0.95rem;
  border: 1px solid rgba(21, 81, 161, 0.16);
  background: #fff;
  padding: 0.85rem 0.95rem;
  font: inherit;
  color: var(--text);
  box-sizing: border-box;
}

.admin-field textarea {
  min-height: 3rem;
  resize: vertical;
}

.admin-field--checkbox {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.admin-field--checkbox input {
  width: 1.1rem;
  height: 1.1rem;
  padding: 0;
}

.admin-banner {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid transparent;
  font-weight: 600;
}

.admin-banner--success {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.18);
  color: #166534;
}

.admin-banner--warning {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.18);
  color: #92400e;
}

.admin-banner--error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.18);
  color: #991b1b;
}

.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(7, 27, 52, 0.52);
  backdrop-filter: blur(8px);
}

.admin-modal {
  width: min(100%, 34rem);
  padding: 1.35rem;
  border-radius: 1.35rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.96));
  border: 1px solid rgba(21, 81, 161, 0.14);
  box-shadow: 0 24px 60px rgba(10, 32, 66, 0.24);
}

.admin-modal h3 {
  margin: 0.35rem 0 0;
  color: var(--primary-strong);
}

.admin-modal__text {
  margin: 0.85rem 0 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.admin-modal__compare {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.admin-modal__block {
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(21, 81, 161, 0.04);
  border: 1px solid rgba(21, 81, 161, 0.08);
}

.admin-modal__block span {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-modal__block code {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  color: var(--text);
}

.admin-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

.admin-empty {
  margin: 0;
  color: var(--text-soft);
}

.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.admin-login__card {
  width: min(100%, 30rem);
  padding: 1.5rem;
}

.admin-login__form {
  display: grid;
  gap: 0.95rem;
  margin-top: 1rem;
}

.admin-credentials-form {
  display: grid;
  gap: 0.95rem;
}

.admin-credentials-form__actions {
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 960px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar,
  .admin-main {
    padding: 1.25rem;
  }

  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-modal__actions {
    flex-direction: column-reverse;
  }

  .admin-contact-row {
    grid-template-columns: 1fr;
  }

  .admin-field--inline {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .admin-contact-group__grid,
  .admin-contact-group__head,
  .admin-contact-group__actions {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .admin-contact-group__hint {
    white-space: normal;
  }
}
