:root {
  --ink: #102236;
  --ink-soft: #253f58;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --line: #d9e2e3;
  --teal: #277f78;
  --teal-strong: #155f59;
  --gold: #f4b44d;
  --clay: #b65f43;
  --steel: #e9eef1;
  --shadow: 0 18px 50px rgba(16, 34, 54, 0.12);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

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

a {
  color: var(--teal-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding-left: 1.2rem;
}

html[dir="rtl"] ul {
  padding-right: 1.2rem;
  padding-left: 0;
}

li + li {
  margin-top: 0.4rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(16, 34, 54, 0.12);
  background: rgba(251, 250, 246, 0.94);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(100% - 32px, var(--max));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 230px;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
}

.brand img {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
}

.brand small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 650;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  font-weight: 700;
}

.nav-menu a {
  color: var(--ink);
  text-decoration: none;
}

.nav-menu a[aria-current="page"],
.nav-menu a:hover {
  color: var(--teal-strong);
}

.language-switcher {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.72);
}

.language-switcher a {
  min-width: 32px;
  border-radius: 999px;
  padding: 0.22rem 0.44rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.language-switcher a[aria-current="true"] {
  background: var(--ink);
  color: #fff;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 0.72rem 1rem;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 800;
  line-height: 1.1;
  max-width: 100%;
  text-align: center;
  overflow-wrap: anywhere;
  text-decoration: none;
  cursor: pointer;
}

.nav-menu a.button {
  max-width: 12rem;
  color: #fff;
}

.button:hover {
  background: var(--teal-strong);
  border-color: var(--teal-strong);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button.secondary:hover {
  background: var(--steel);
  border-color: var(--ink);
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(16, 34, 54, 0.94), rgba(16, 34, 54, 0.82)),
    radial-gradient(circle at 70% 30%, rgba(244, 180, 77, 0.42), transparent 34%),
    #102236;
  color: #fff;
}

.hero-inner {
  width: min(100% - 32px, var(--max));
  min-height: min(660px, calc(100svh - 144px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: 52px;
  padding: 48px 0 56px;
}

.hero-inner > * {
  min-width: 0;
}

.eyebrow {
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 860px;
  margin-top: 0.8rem;
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.25rem;
}

.hero p {
  max-width: 740px;
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.125rem;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
}

.hero .button.secondary {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.hero .button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.architecture-map {
  min-height: 460px;
  padding: 20px;
}

.architecture-map svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 35px rgba(0, 0, 0, 0.22));
}

.band {
  padding: 84px 0;
}

.band.alt {
  background: var(--surface);
}

.band.dark {
  background: var(--ink);
  color: #fff;
}

.wrap {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.intro {
  max-width: 820px;
}

.intro p {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.dark .intro p,
.dark p,
.dark li {
  color: rgba(255, 255, 255, 0.82);
}

.grid {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(16, 34, 54, 0.03);
}

.card.accent {
  border-top: 5px solid var(--gold);
}

.card h3 {
  margin-bottom: 0.7rem;
}

.card p {
  color: var(--ink-soft);
}

.card-link {
  display: inline-flex;
  margin-top: 0.5rem;
  font-weight: 800;
}

.dark .card {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.dark .card p {
  color: rgba(255, 255, 255, 0.78);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 48px;
  align-items: start;
}

.statement {
  border-left: 5px solid var(--gold);
  padding-left: 24px;
  color: var(--ink-soft);
  font-size: 1.25rem;
  font-weight: 750;
}

html[dir="rtl"] .statement {
  border-right: 5px solid var(--gold);
  border-left: 0;
  padding-right: 24px;
  padding-left: 0;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tag-cloud span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.72rem;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 750;
}

.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 58px;
}

html[dir="rtl"] .step {
  padding-right: 58px;
  padding-left: 26px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 900;
}

html[dir="rtl"] .step::before {
  right: 0;
  left: auto;
}

.page-hero {
  padding: 92px 0 72px;
  background: var(--ink);
  color: #fff;
}

.page-hero p {
  max-width: 850px;
  margin-top: 1.3rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.18rem;
}

.case-study {
  border-left: 5px solid var(--teal);
  padding-left: 24px;
}

html[dir="rtl"] .case-study {
  border-right: 5px solid var(--teal);
  border-left: 0;
  padding-right: 24px;
  padding-left: 0;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
  align-items: start;
}

form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #b9c8cb;
  border-radius: 6px;
  padding: 0.82rem 0.9rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.form-status {
  min-height: 1.6rem;
  color: var(--teal-strong);
  font-weight: 750;
}

.site-footer {
  padding: 44px 0;
  border-top: 1px solid var(--line);
  background: #eef3f2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: end;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  font-weight: 800;
}

@media (max-width: 1200px) {
  .nav {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    inset: 100% 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    max-height: calc(100dvh - 84px);
    overflow-y: auto;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

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

  .nav-menu a {
    padding: 10px 8px;
  }

  .nav-menu a.button {
    max-width: none;
    margin-top: 8px;
  }

  .language-switcher {
    margin-top: 10px;
    width: max-content;
  }
}

@media (max-width: 920px) {
  .hero-inner,
  .split,
  .contact-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    padding: 60px 0 44px;
  }

  .architecture-map {
    min-height: 0;
    width: min(100%, 420px);
    justify-self: center;
    padding: 0;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .grid.five {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .band,
  .page-hero {
    padding: 58px 0;
  }

  .brand small {
    display: none;
  }

  .card {
    padding: 20px;
  }
}
