:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5f6b7a;
  --quiet: #eef2f7;
  --panel: #ffffff;
  --panel-alt: #f8fafc;
  --line: #d9e1ea;
  --accent: #0f766e;
  --accent-dark: #0f3f3d;
  --focus: #2563eb;
  --max: 1160px;
  --header: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus), transparent 35%);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: var(--header);
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(217, 225, 234, 0.86);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

body.admin-bar .site-header {
  top: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  display: block;
  width: clamp(174px, 20vw, 236px);
  height: auto;
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 38px);
  color: #334155;
  font-size: 0.95rem;
  font-weight: 700;
}

.primary-nav a {
  padding: 10px 2px;
  border-bottom: 2px solid transparent;
}

.primary-nav a:hover {
  border-bottom-color: var(--accent);
}

.language-switcher {
  display: grid;
  grid-template-columns: repeat(3, 42px);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.language-switcher button {
  width: 42px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  color: #475569;
  background: transparent;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.language-switcher button[aria-pressed="true"] {
  color: #ffffff;
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: calc(100svh - var(--header));
  overflow: hidden;
  padding: clamp(86px, 14vh, 150px) clamp(20px, 5vw, 70px) clamp(24px, 5vh, 46px);
  color: #ffffff;
  background:
    linear-gradient(110deg, rgba(10, 15, 25, 0.95), rgba(21, 34, 47, 0.78) 50%, rgba(10, 15, 25, 0.92)),
    #111827;
}

.network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  content: "";
  background: linear-gradient(0deg, rgba(7, 10, 18, 0.88), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(820px, 100%);
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #84e4d8;
}

.hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(4rem, 11vw, 8.25rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-copy {
  width: min(710px, 100%);
  margin: 28px 0 0;
  color: #d9e4ef;
  font-size: clamp(1.08rem, 1.7vw, 1.42rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  line-height: 1;
}

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

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.1);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.signal-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(var(--max), 100%);
  margin-top: clamp(58px, 12vh, 120px);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.signal-strip span {
  min-height: 58px;
  padding: 18px 18px 0 0;
  color: #cbd5e1;
  font-size: 0.92rem;
  font-weight: 800;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 118px) 0;
}

.section[id] {
  scroll-margin-top: calc(var(--header) + 28px);
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.7fr);
  gap: clamp(36px, 7vw, 86px);
  align-items: end;
}

.section-copy h2,
.contact-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-lede {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  line-height: 1.75;
}

.services-section {
  border-top: 1px solid var(--line);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.service-card {
  min-height: 292px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.service-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 32px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--ink);
  font-size: 0.8rem;
  font-weight: 850;
}

.service-card h3 {
  margin: 54px 0 14px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.clients-section {
  border-top: 1px solid var(--line);
}

.clients-header {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.7fr);
  gap: clamp(36px, 7vw, 86px);
  align-items: end;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
}

.client-card {
  display: grid;
  align-content: space-between;
  min-height: 168px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-alt);
}

.client-card-logo {
  place-items: center;
  align-content: center;
  background: #ffffff;
}

.client-card-logo img {
  display: block;
  width: min(170px, 82%);
  max-height: 96px;
  object-fit: contain;
}

.client-card-wide img {
  width: min(230px, 88%);
  max-height: 110px;
}

.client-card-multicoris {
  background: #ffffff;
}

.client-card-multicoris img {
  width: min(230px, 88%);
  max-height: 112px;
  object-fit: contain;
}

.client-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #111827;
  background: #ffffff;
  font-size: 0.8rem;
  font-weight: 900;
}

.client-card h3 {
  margin: 42px 0 0;
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.method-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1fr);
  gap: clamp(36px, 8vw, 100px);
  border-top: 1px solid var(--line);
}

.method-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.method-list article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.method-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--accent);
  font-weight: 900;
}

.method-list h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.method-list p {
  margin: 0;
  color: var(--muted);
}

.contact-section {
  width: 100%;
  max-width: none;
  padding: clamp(64px, 8vw, 96px) clamp(20px, 5vw, 70px);
  background: var(--panel-alt);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: clamp(28px, 7vw, 84px);
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.contact-actions {
  display: grid;
  align-content: center;
  gap: 20px;
}

.contact-actions .button {
  justify-self: start;
}

.contact-actions p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 70px);
  color: #64748b;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 700;
}

@media (max-width: 940px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: auto;
  }

  .intro-section,
  .clients-header,
  .method-section,
  .contact-panel {
    grid-template-columns: 1fr;
  }

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

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

  .client-card-wide {
    grid-column: auto;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 640px) {
  :root {
    --header: 124px;
  }

  .site-header {
    padding: 12px 16px;
  }

  .brand img {
    width: min(204px, 58vw);
  }

  .language-switcher {
    grid-template-columns: repeat(3, 36px);
  }

  .language-switcher button {
    width: 36px;
  }

  .primary-nav {
    gap: 18px;
    font-size: 0.9rem;
  }

  .hero {
    padding: 74px 18px 24px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 11vw, 3.5rem);
    line-height: 0.94;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .signal-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 54px;
  }

  .signal-strip span {
    min-height: 48px;
  }

  .section {
    width: min(100% - 32px, var(--max));
    padding: 64px 0;
  }

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

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

  .service-card {
    min-height: 228px;
  }

  .client-card {
    min-height: 146px;
  }

  .service-card h3 {
    margin-top: 38px;
  }

  .site-footer {
    flex-direction: column;
    padding: 24px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
