:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --ink: #172033;
  --muted: #5e6a7d;
  --line: #dfe6f0;
  --navy: #10213f;
  --blue: #2563eb;
  --blue-soft: #eaf1ff;
  --green-soft: #edf8f1;
  --shadow: 0 18px 45px rgba(23, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 760;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
}

.brand span {
  max-width: 340px;
  line-height: 1.2;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
  border-radius: 6px;
}

.nav a:hover,
.nav a:focus {
  color: var(--blue);
  background: var(--blue-soft);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.language-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.language-switch a.active {
  background: var(--navy);
  color: #ffffff;
}

.language-switch a:not(.active):hover,
.language-switch a:not(.active):focus {
  background: var(--blue-soft);
  color: var(--blue);
}

.hero {
  padding: 92px 0 70px;
  background:
    linear-gradient(135deg, rgba(16, 33, 63, 0.94), rgba(37, 99, 235, 0.86)),
    linear-gradient(90deg, #10213f, #2563eb);
  color: #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: #c8d8ff;
  font-size: 0.92rem;
  font-weight: 720;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.25rem, 4vw, 4.35rem);
}

.hero p {
  max-width: 680px;
  margin: 22px 0 0;
  color: #e9efff;
  font-size: 1.18rem;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 6px;
  color: #ffffff;
  font-weight: 760;
  text-decoration: none;
}

.button.primary {
  background: #ffffff;
  color: var(--navy);
  border-color: #ffffff;
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-panel dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.hero-panel dt {
  color: #c8d8ff;
  font-size: 0.85rem;
  font-weight: 720;
}

.hero-panel dd {
  margin: 4px 0 0;
  color: #ffffff;
  font-weight: 650;
}

.section {
  padding: 76px 0;
}

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

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading p {
  margin: 14px 0 0;
  color: var(--muted);
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 36px;
  align-items: start;
}

.text-block p {
  margin: 0 0 16px;
  color: var(--muted);
}

.fact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.fact-list li {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.fact-list li:last-child {
  border-bottom: 0;
}

.fact-label {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 720;
}

.fact-value {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-weight: 700;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.project-card {
  min-height: 170px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.service-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
}

.service-card p,
.project-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--green-soft);
  color: #166534;
  font-weight: 800;
  white-space: nowrap;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list li:first-child {
  padding-top: 0;
}

.contact-list strong {
  display: block;
  margin-bottom: 4px;
}

.mailto-note {
  margin-top: 18px;
  padding: 16px;
  border-left: 4px solid var(--blue);
  background: var(--blue-soft);
  color: var(--navy);
}

.policy-page {
  padding: 72px 0;
}

.policy-content {
  max-width: 860px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.policy-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.policy-content h2 {
  margin-top: 32px;
  font-size: 1.3rem;
}

.policy-content p,
.policy-content li {
  color: var(--muted);
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  background: var(--navy);
  color: #d7e0f4;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-meta {
  display: grid;
  gap: 4px;
}

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

.footer-links a {
  color: #ffffff;
  text-decoration: none;
}

.icp-link {
  color: #d7e0f4;
  text-decoration: none;
}

.icp-link:hover,
.icp-link:focus,
.footer-links a:hover,
.footer-links a:focus {
  text-decoration: underline;
}

@media (max-width: 860px) {
  .header-inner,
  .hero-grid,
  .about-grid,
  .contact-grid,
  .project-card {
    grid-template-columns: 1fr;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav,
  .nav-wrap {
    justify-content: flex-start;
  }

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

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .hero,
  .section,
  .policy-page {
    padding: 54px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .policy-content {
    padding: 24px;
  }
}
