:root {
  --bg: #eef2f6;
  --bg-strong: #e6ebf0;
  --surface: #f7f9fb;
  --surface-2: #eef3f7;
  --surface-3: #ffffff;
  --text: #172334;
  --text-soft: #536175;
  --line: rgba(23, 35, 52, 0.12);
  --line-strong: rgba(23, 35, 52, 0.22);
  --brand: #134f63;
  --brand-strong: #0c3445;
  --accent: #3f7a8e;
  --shadow: 0 28px 64px rgba(15, 28, 43, 0.08);
  --content: 1180px;
  --scroll-offset: 86px;
  --section-space: clamp(1.75rem, 3.6vw, 2.15rem);
  --section-intro-space: clamp(1.5rem, 3vw, 2rem);
}
* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: var(--scroll-offset);
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  scroll-padding-top: var(--scroll-offset);
  background:
    linear-gradient(180deg, rgba(19, 79, 99, 0.08), transparent 18%),
    linear-gradient(180deg, #eef2f6 0%, #edf1f5 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(19, 79, 99, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 79, 99, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 90%);
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(19, 79, 99, 0.12), transparent 26%),
    radial-gradient(circle at top left, rgba(63, 122, 142, 0.08), transparent 22%);
  pointer-events: none;
  z-index: -3;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

.page-frame {
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding-left: clamp(1rem, 2.4vw, 1.5rem);
  padding-right: clamp(1rem, 2.4vw, 1.5rem);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(238, 242, 246, 0.86);
  border-bottom: 1px solid var(--line);
}

.header-shell {
  position: relative;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  column-gap: 2.4rem;
  min-height: 86px;
}

.header-start {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

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

.brand-logo {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
}

.language-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0 0.8rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.44);
  color: var(--text-soft);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.language-button:hover,
.language-button:focus-visible,
.language-button.is-active {
  background: var(--surface-3);
  color: var(--text);
  border-color: var(--line-strong);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface-3);
  color: var(--text);
  padding: 0.7rem 0.95rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.25rem;
}

.site-nav > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0 0.9rem;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  transition: background 150ms ease, color 150ms ease;
}

.site-nav > a:hover,
.site-nav > a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.66);
}

.nav-action {
  color: var(--text);
  background: var(--surface-3);
  border: 1px solid var(--line);
  margin-left: 0.4rem;
}

main {
  padding: clamp(3.5rem, 3vw, 2.25rem) 0 clamp(3rem, 6vw, 4rem);
}

.section {
  padding: var(--section-space) 0;
}

.section-anchor {
  display: block;
  width: 1px;
  height: 0;
  margin: 0;
  padding: 0;
  scroll-margin-top: var(--scroll-offset);
  pointer-events: none;
}

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.18));
}

.about-section + .band {
  border-top: 0;
}

.about-section {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

#services,
#solutions {
  padding-top: var(--section-space);
}

.about-section .container {
  display: grid;
  align-content: start;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  min-height: clamp(18rem, 32vh, 22rem);
}

.consultation-section {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  border-top: 1px solid var(--line);
}

.consultation-section .container {
  display: grid;
  align-content: start;
  gap: 1rem;
  min-height: clamp(28rem, 46vh, 31rem);
}

.consultation-section .contact-form {
  width: min(100%, 46rem);
  margin: 0 auto;
  justify-self: center;
}

.hero-grid {
  display: grid;
  gap: 2rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.72fr);
  align-items: start;
}

.hero-grid-centered {
  grid-template-columns: 1fr;
}

.hero-grid > *,
.field-row > * {
  min-width: 0;
}

.hero-main {
  padding: clamp(0.75rem, 2vw, 1.5rem) 0 0;
}

.hero-grid-centered .hero-main {
  max-width: 56rem;
  margin: 0 auto;
  display: grid;
  justify-items: center;
  text-align: center;
}

.kicker {
  display: none;
}

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

h1 {
  font-size: clamp(2.65rem, 1.55rem + 5.5vw, 5.35rem);
  letter-spacing: -0.05em;
  font-weight: 800;
  max-width: 12ch;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 1.35rem + 3vw, 3.2rem);
  letter-spacing: -0.04em;
  font-weight: 800;
  max-width: 14ch;
  text-wrap: balance;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.22;
}

p {
  margin: 0;
  line-height: 1.72;
  font-size: clamp(0.97rem, 0.16vw + 0.94rem, 1.02rem);
  color: var(--text-soft);
}

.hero-copytext {
  margin-top: 1.4rem;
  max-width: 42rem;
  font-size: clamp(1rem, 0.32vw + 0.96rem, 1.08rem);
}

.hero-grid-centered .hero-copytext {
  margin-left: auto;
  margin-right: auto;
}

.hero-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-actions {
  margin-top: 1.5rem;
}

.hero-grid-centered .hero-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.618fr) minmax(0, 1fr);
  align-items: stretch;
  width: min(100%, 28rem);
  margin-left: auto;
  margin-right: auto;
}

.hero-grid-centered .hero-actions .button {
  width: 100%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0 1.1rem;
  border: 1px solid transparent;
  text-align: center;
  font-weight: 700;
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
}

.hero-side {
  border-left: 1px solid var(--line);
  padding-left: 1.5rem;
}

.hero-notes {
  display: grid;
  gap: 1rem;
}

.note-row {
  display: grid;
  gap: 0.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(23, 35, 52, 0.08);
}

.note-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

.note-value {
  color: var(--text);
  line-height: 1.55;
}

.section-intro {
  display: grid;
  gap: 1rem;
  max-width: 56rem;
  margin: 0 auto var(--section-intro-space);
  text-align: center;
  justify-items: center;
}

.section-intro h2,
.section-intro h1 {
  max-width: 24ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  text-wrap: balance;
}

.hero-grid-centered h1 {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-intro p {
  max-width: 42rem;
  margin-top: 0;
}

.detail-page h1 + p,
.detail-page h2 + p {
  max-width: 42rem;
  margin-top: 0.85rem;
}

.service-table {
  border-top: 1px solid var(--line-strong);
}

.service-row {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: start;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.service-body,
.fact-line,
.matrix-cell,
.contact-person,
.detail-block,
.footer-shell > * {
  min-width: 0;
}

.service-index {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
  color: var(--brand);
  padding-top: 0.25rem;
}

.service-body p {
  margin-top: 0.55rem;
  max-width: 48rem;
}

.service-link {
  align-self: center;
  color: var(--brand-strong);
  font-weight: 700;
  white-space: nowrap;
}

.matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.matrix-cell {
  padding: 1.4rem 1.25rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.25);
}

.matrix-cell:hover,
.matrix-cell:focus-visible {
  background: rgba(255, 255, 255, 0.5);
}

.matrix-cell strong,
.fact-line strong {
  display: block;
  color: var(--text);
}

.matrix-cell span,
.fact-line span {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-soft);
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.fact-line {
  padding-top: 1rem;
  border-top: 1px solid var(--line-strong);
}

.fact-line span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.contact-form {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
  display: grid;
  gap: 1rem;
}

.consultation-form {
  width: 100%;
  margin-top: 0.5rem;
  padding-left: 0;
  border-left: 0;
  gap: 0.7rem;
}

.consultation-form .field-row {
  gap: 0.75rem;
}

.consultation-form label {
  gap: 0.35rem;
}

.consultation-form .button {
  min-height: 2.9rem;
  width: min(100%, 20rem);
  justify-self: center;
}

.consultation-form textarea {
  min-height: 14rem;
}

.detail-page {
  max-width: 46rem;
}

.detail-page h1 {
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  letter-spacing: -0.04em;
  max-width: 18ch;
  text-wrap: balance;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: var(--brand-strong);
  font-weight: 700;
}

.detail-block {
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

.detail-block:first-of-type {
  border-top: 1px solid var(--line-strong);
}

.detail-block p {
  max-width: 42rem;
}

.contact-people {
  display: grid;
  gap: 1.4rem;
}

.contact-person {
  display: grid;
  gap: 0.55rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-strong);
}

.contact-person span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.contact-person strong,
.contact-person a {
  color: var(--text);
  overflow-wrap: anywhere;
}

.contact-person a:last-child {
  color: var(--text-soft);
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.detail-list li {
  padding-left: 1rem;
  position: relative;
  color: var(--text-soft);
  line-height: 1.65;
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 0.38rem;
  height: 0.38rem;
  background: var(--brand);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.55rem;
  font-weight: 700;
  color: var(--text);
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  padding: 0.95rem 1rem;
}

textarea {
  min-height: 5.5rem;
  resize: vertical;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpath d='M9 1L1 9M9 4L4 9M9 7L7 9' stroke='%23536175' stroke-opacity='0.25' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: bottom 6px right 6px;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(19, 79, 99, 0.18);
  outline-offset: 0;
  border-color: rgba(19, 79, 99, 0.42);
}

.site-footer {
  padding: 0rem 0 2.5rem;
  min-height: 50vh;
  border-top: 1px solid var(--line-strong);
}

.footer-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-top: 1.25rem;
  color: var(--text-soft);
}

.footer-shell strong {
  color: var(--text);
}

.footer-divider {
  width: 1px;
  height: 1.2rem;
  background: var(--line-strong);
}

.footer-contact {
  color: var(--accent);
  font-weight: 600;
}

.footer-lang-label {
  color: var(--text-soft);
}

.footer-language-label {
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 500;
  color: var(--text-soft);
}

.footer-language-switch {
  display: inline-flex;
  gap: 0.45rem;
}

@media (max-width: 1120px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .fact-grid,
  .service-table,
  .matrix {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding-left: 0;
    padding-right: 0;
  }

  .service-index {
    padding-top: 0;
  }

  .service-body p {
    max-width: none;
  }

  .service-link {
    align-self: start;
    justify-self: start;
    white-space: normal;
  }

}

@media (max-width: 980px) {
  .hero-main {
    padding-top: 0.5rem;
  }

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

  .hero-side,
  .contact-form {
    border-left: 0;
    padding-left: 0;
  }

  .fact-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-shell {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
  }
}

@media (max-width: 860px) {
  .field-row,
  .matrix {
    grid-template-columns: 1fr;
  }

  .consultation-section .contact-form {
    width: min(100%, 40rem);
  }
}

@media (max-width: 760px) {
  .header-shell {
    display: flex;
    min-height: 76px;
    justify-content: space-between;
    gap: 1rem;
  }

  .header-start {
    gap: 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    inset: calc(100% + 0.65rem) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    padding: 0.75rem;
    background: rgba(248, 250, 252, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav > a,
  .nav-action {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-action {
    margin-left: 0;
  }

  main {
    padding-top: 1.1rem;
    padding-bottom: 3rem;
  }

  .section {
    padding: var(--section-space) 0;
  }

  .section-intro {
    gap: 0.85rem;
    margin-bottom: var(--section-intro-space);
  }

  .hero-copytext,
  .section-intro p,
  .service-body p,
  .matrix-cell span,
  .detail-block p,
  .detail-list li {
    line-height: 1.62;
  }

  .hero-grid-centered .hero-actions {
    width: min(100%, 24rem);
  }

  .about-section .container,
  .consultation-section .container {
    min-height: 0;
  }

  .fact-grid {
    gap: 0.85rem;
  }

  .fact-line {
    padding: 0.85rem 0 0;
  }

  .matrix-cell {
    padding: 1.15rem 1rem;
  }

  .footer-shell {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links,
  .footer-language-switch {
    justify-content: center;
  }

  .footer-language {
    justify-items: center;
  }
}

@media (max-width: 560px) {
  h1 {
    max-width: 11ch;
  }

  .brand-logo {
    width: 2.8rem;
    height: 2.8rem;
  }

  .header-shell {
    min-height: 68px;
  }

  .hero-grid-centered .hero-actions {
    width: min(100%, 22rem);
  }

  .detail-page h1 {
    max-width: 14ch;
  }

  .back-link {
    margin-bottom: 0.85rem;
  }
}

@media (max-width: 440px) {
  .container {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .hero-grid-centered .hero-actions {
    grid-template-columns: 1fr;
    width: min(100%, 16rem);
  }

  .service-table,
  .fact-grid,
  .matrix {
    padding-left: 0;
    padding-right: 0;
  }

  .button {
    min-height: 3rem;
  }
}
