:root {
  --teal: #0fa3b1;
  --teal-light: #1fb7c3;
  --navy: #123a63;
  --navy-dark: #071827;
  --night: #050e18;
  --panel: #0b1f33;
  --panel-2: #0f2940;
  --ink: #f7fbff;
  --soft: #b9c7d6;
  --muted: #7f94aa;
  --line: rgba(185, 210, 232, 0.16);
  --line-strong: rgba(31, 183, 195, 0.36);
  --warm: #c7a35a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #050e18 0%, #071827 38%, #081522 100%);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(31, 183, 195, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(31, 183, 195, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.62), transparent 72%);
  pointer-events: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  width: 100%;
  max-width: 100vw;
  height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 0 44px;
  background: rgba(5, 14, 24, 0.78);
  border-bottom: 1px solid rgba(185, 210, 232, 0.14);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
  background: rgba(5, 14, 24, 0.92);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 148px;
  height: 46px;
}

.brand img {
  width: 148px;
  height: auto;
}

.site-nav {
  justify-self: center;
  display: flex;
  gap: 30px;
  color: #d8e4ef;
  font-weight: 750;
  transform: translateX(52px);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
  border-bottom-color: var(--teal-light);
}

.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 148px;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid rgba(31, 183, 195, 0.42);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, rgba(15, 163, 177, 0.95), rgba(18, 58, 99, 0.98));
  font-weight: 850;
  box-shadow: 0 14px 34px rgba(15, 163, 177, 0.18);
}

.call-icon,
.btn-icon {
  display: inline-block;
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.call-icon::before,
.btn-icon.phone::before {
  content: "";
  position: absolute;
  inset: 3px 4px 2px 5px;
  border: 2px solid currentColor;
  border-left-width: 5px;
  border-radius: 5px 5px 4px 4px;
  transform: rotate(-24deg);
}

.btn-icon.arrow::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  right: 4px;
  top: 4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.nav-toggle {
  display: none;
  cursor: pointer;
  appearance: none;
  padding: 0;
}

.hero {
  position: relative;
  min-height: 86svh;
  padding: 152px 44px 82px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--night);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("assets/hero-geodezja-clean.png");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 14, 24, 0.9), rgba(5, 14, 24, 0.62) 50%, rgba(5, 14, 24, 0.9)),
    linear-gradient(180deg, rgba(5, 14, 24, 0.25), rgba(5, 14, 24, 0.94));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 980px;
  min-width: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--teal-light);
  font-size: 15px;
  font-weight: 850;
}

.hero h1 {
  margin: 0;
}

.hero-title {
  width: min(780px, 100%);
}

.hero-title::after {
  content: none;
}

.hero-logo-title {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  width: min(760px, 100%);
  min-height: 168px;
  padding: 0;
}

.hero-logo-title::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 4px;
  left: 50%;
  bottom: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--teal), var(--navy));
  opacity: 0.9;
  transform: translateX(-50%);
}

.hero-logo-title img {
  width: 100%;
  max-width: 720px;
}

.hero-lead {
  width: min(760px, 100%);
  margin: 28px 0 0;
  color: #d9e5f1;
  font-size: 25px;
  line-height: 1.42;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 8px;
  font-weight: 900;
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--teal), #137ea2);
  box-shadow: 0 18px 36px rgba(15, 163, 177, 0.24);
}

.btn.secondary {
  color: #edf7ff;
  border: 1px solid rgba(185, 210, 232, 0.26);
  background: rgba(255, 255, 255, 0.07);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(920px, 100%);
  margin: 44px auto 0;
  text-align: left;
}

.hero-facts div {
  min-height: 96px;
  padding: 18px;
  border: 1px solid rgba(185, 210, 232, 0.18);
  border-radius: 8px;
  background: rgba(11, 31, 51, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-facts dt {
  margin: 0 0 7px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 850;
}

.hero-facts dd {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.hero-facts .fact-link {
  display: inline-block;
  max-width: 100%;
  margin-top: 4px;
  color: #d8f6f7;
  font-size: 14px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.section-inner {
  width: min(1160px, calc(100% - 48px));
  min-width: 0;
  margin: 0 auto;
}

.intro-band,
.services,
.credentials,
.process,
.contact {
  padding: 88px 0;
}

.intro-band {
  background:
    radial-gradient(circle at 12% 0%, rgba(31, 183, 195, 0.13), transparent 32%),
    linear-gradient(180deg, #081522, #091b2b);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.18fr 1fr;
  gap: 38px;
  align-items: start;
  padding: 6px 0;
}

.intro-grid > *,
.credentials-layout > *,
.contact-layout > *,
.section-heading,
.service-card,
.process-steps article {
  min-width: 0;
}

.intro-grid h2,
.section-heading h2,
.credentials h2,
.contact h2 {
  margin: 0;
  color: #fff;
  font-size: 39px;
  line-height: 1.14;
}

.intro-grid p:last-child,
.credentials p,
.contact p {
  margin: 0;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.68;
}

.section-heading {
  width: min(790px, 100%);
  margin-bottom: 36px;
}

.section-heading.compact {
  width: min(660px, 100%);
}

.services {
  background: #071827;
}

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

.service-card {
  position: relative;
  min-height: 246px;
  padding: 27px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 183, 195, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(15, 41, 64, 0.94), rgba(8, 27, 43, 0.94));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.service-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), rgba(199, 163, 90, 0.7), transparent);
}

.service-card h3 {
  margin: 20px 0 10px;
  color: #fff;
  font-size: 22px;
  line-height: 1.2;
}

.service-card p {
  margin: 0;
  color: var(--soft);
  line-height: 1.58;
}

.service-icon {
  display: block;
  position: relative;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(31, 183, 195, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 183, 195, 0.12), rgba(18, 58, 99, 0.18)),
    rgba(31, 183, 195, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.service-icon::before,
.service-icon::after {
  content: "";
  position: absolute;
}

.service-icon::before {
  inset: 8px;
  background: var(--service-icon) center / contain no-repeat;
}

.service-icon::after {
  inset: 5px;
  border: 1px solid rgba(185, 210, 232, 0.08);
  border-radius: 6px;
}

.icon-map {
  --service-icon: url("assets/icon-map.svg");
}

.icon-parcel {
  --service-icon: url("assets/icon-parcel.svg");
}

.icon-boundary {
  --service-icon: url("assets/icon-boundary.svg");
}

.icon-stake {
  --service-icon: url("assets/icon-stake.svg");
}

.icon-soil {
  --service-icon: url("assets/icon-soil.svg");
}

.icon-doc {
  --service-icon: url("assets/icon-doc.svg");
}

.credentials {
  background:
    linear-gradient(135deg, rgba(15, 163, 177, 0.12), transparent 38%),
    linear-gradient(180deg, #0b2136, #071827);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.credentials-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 62px;
  align-items: start;
}

.credential-list {
  display: grid;
  gap: 14px;
}

.credential-list div {
  min-height: 124px;
  display: grid;
  grid-template-columns: 58px 1fr;
  column-gap: 18px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.credential-list span {
  grid-row: span 2;
  color: var(--teal-light);
  font-size: 28px;
  font-weight: 900;
}

.credential-list strong {
  color: #fff;
  font-size: 21px;
}

.credential-list p {
  margin: 8px 0 0;
}

.process {
  background: #061421;
}

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

.process-steps article {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 41, 64, 0.72);
}

.process-steps span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  font-weight: 900;
}

.process-steps h3 {
  margin: 22px 0 8px;
  color: #fff;
  font-size: 21px;
}

.process-steps p {
  margin: 0;
  color: var(--soft);
  line-height: 1.58;
}

.contact {
  background:
    linear-gradient(180deg, #071827, #050e18);
  border-top: 1px solid var(--line);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 54px;
  align-items: center;
}

.contact-panel {
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(15, 41, 64, 0.96), rgba(7, 24, 39, 0.96));
  box-shadow: var(--shadow);
}

.contact-logo-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 218px;
  min-height: 62px;
}

.contact-logo-plate img {
  width: 216px;
}

.contact-panel p {
  margin: 30px 0 6px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.contact-panel strong {
  display: block;
  color: var(--soft);
  font-size: 16px;
}

.phone-link {
  display: inline-flex;
  min-height: 52px;
  margin-top: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 23px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  font-size: 18px;
  font-weight: 900;
}

.mail-link {
  display: block;
  max-width: 100%;
  margin-top: 14px;
  color: var(--teal);
  font-size: 16px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.contact-note {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.site-footer {
  padding: 30px 0;
  color: rgba(255, 255, 255, 0.66);
  background: #030910;
  border-top: 1px solid var(--line);
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-layout p {
  margin: 0;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    padding: 0 24px;
  }

  .site-nav,
  .header-call {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(185, 210, 232, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  }

  .nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 2px 0;
    border-radius: 99px;
    background: currentColor;
  }

  .site-nav.is-open {
    display: grid;
    position: fixed;
    left: 18px;
    right: 18px;
    top: 88px;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 24, 39, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open a {
    min-height: 50px;
    padding: 0 12px;
  }

  .hero {
    min-height: 82svh;
    padding: 136px 24px 68px;
  }

  .hero-lead {
    font-size: 21px;
  }

  .hero-title {
    width: min(700px, 100%);
  }

  .intro-grid,
  .credentials-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  body,
  main {
    width: 100%;
    max-width: 100vw;
  }

  .site-header {
    height: 76px;
    padding: 0 16px;
  }

  .site-header::after {
    content: "";
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1001;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(31, 183, 195, 0.62);
    border-radius: 8px;
    background:
      linear-gradient(#fff, #fff) center 14px / 22px 2px no-repeat,
      linear-gradient(#fff, #fff) center 21px / 22px 2px no-repeat,
      linear-gradient(#fff, #fff) center 28px / 22px 2px no-repeat,
      var(--teal);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    pointer-events: none;
  }

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

  .brand img {
    width: 124px;
  }

  .nav-toggle {
    position: fixed !important;
    top: 16px;
    right: 16px;
    z-index: 1000;
    border-color: rgba(31, 183, 195, 0.62);
    background: var(--teal);
    color: #fff;
  }

  .hero {
    min-height: auto;
    padding: 116px 16px 54px;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(5, 14, 24, 0.86), rgba(5, 14, 24, 0.82)),
      rgba(5, 14, 24, 0.42);
  }

  .hero-content {
    max-width: calc(100vw - 32px);
  }

  .eyebrow {
    max-width: 330px;
    margin-left: auto;
    margin-right: auto;
    font-size: 14px;
    line-height: 1.35;
  }

  .hero-title {
    width: min(326px, 100%);
    max-width: 100%;
  }

  .hero-logo-title {
    width: min(320px, 100%);
    min-height: 92px;
    padding: 0;
  }

  .hero-logo-title img {
    max-width: 320px;
  }

  .hero-logo-title::after {
    left: 50%;
    bottom: 0;
    width: 124px;
    height: 3px;
  }

  .hero-lead {
    max-width: 358px;
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .hero-facts,
  .service-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .section-inner {
    width: calc(100% - 32px);
    max-width: 1160px;
  }

  .intro-band,
  .services,
  .credentials,
  .process,
  .contact {
    padding: 62px 0;
  }

  .intro-grid h2,
  .section-heading h2,
  .credentials h2,
  .contact h2 {
    font-size: 26px;
    line-height: 1.18;
  }

  .intro-grid p:last-child,
  .credentials p,
  .contact p {
    font-size: 16px;
  }

  .eyebrow,
  .hero-lead,
  .intro-grid h2,
  .intro-grid p,
  .section-heading h2,
  .credentials h2,
  .contact h2,
  .service-card p,
  .process-steps p,
  .contact p {
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .section-heading {
    width: 100%;
    margin-bottom: 28px;
  }

  .service-card {
    min-height: auto;
    padding: 24px;
  }

  .service-card h3 {
    font-size: 21px;
    line-height: 1.24;
    max-width: 296px;
  }

  .service-card p {
    font-size: 16px;
    line-height: 1.55;
    max-width: 296px;
  }

  .intro-grid h2,
  .intro-grid p:last-child,
  .section-heading h2,
  .credentials h2,
  .credentials p,
  .contact h2,
  .contact p {
    max-width: 330px;
  }

  .credential-list div {
    grid-template-columns: 1fr;
  }

  .credential-list span {
    grid-row: auto;
    margin-bottom: 10px;
  }

  .footer-layout {
    display: grid;
  }
}
