:root {
  --bg: #f3f6f4;
  --surface: #ffffff;
  --ink: #0c1f2a;
  --slate: #2b3a42;
  --muted: #5b6b73;
  --line: rgba(12, 31, 42, 0.12);
  --accent: #0a9d9a;
  --accent-strong: #067c79;
  --sun: #f4b35b;
  --brand: #d33513;
  --brand-soft: rgba(211, 53, 19, 0.18);
  --brand-strong: #b92f12;
  --shadow: 0 30px 60px rgba(7, 32, 45, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: "Sora", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: linear-gradient(
    120deg,
    #f3f6f4 0%,
    #e6f0f2 40%,
    var(--brand-soft) 70%,
    #f9f4ea 100%
  );
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: -20% -10% auto auto;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle at top, rgba(10, 157, 154, 0.2), transparent 70%);
  z-index: -1;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent-strong);
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(243, 246, 244, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(12, 31, 42, 0.06);
  z-index: 10;
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.brand img {
  height: 54px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:not(.button):hover,
.nav-links a:not(.button):focus-visible {
  color: inherit;
  opacity: 0.7;
}


.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 15px 30px rgba(211, 53, 19, 0.25);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(185, 47, 18, 0.32);
  color: #fff;
  opacity: 0.92;
}

.button.small {
  padding: 10px 18px;
  font-size: 13px;
}

.button.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(12, 31, 42, 0.2);
  box-shadow: none;
}

.button.light {
  background: var(--ink);
  box-shadow: 0 20px 40px rgba(7, 32, 45, 0.3);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(12, 31, 42, 0.15);
  background: transparent;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(12, 31, 42, 0.08);
  box-shadow: 0 20px 40px rgba(9, 32, 44, 0.12);
  transform-origin: top;
  transform: scaleY(0.96);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mobile-menu-inner {
  display: grid;
  gap: 16px;
  padding: 20px 24px 28px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
  color: var(--muted);
}

.mobile-menu-inner .button {
  justify-self: start;
}

.mobile-menu.is-open {
  display: block;
  opacity: 1;
  transform: scaleY(1);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 25px 24px 70px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 14px;
}

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

h1 {
  font-size: clamp(2.4rem, 2rem + 2vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 18px;
}

h2 {
  font-size: clamp(1.8rem, 1.5rem + 1vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 14px;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 12px;
}

.lead {
  font-size: 1.05rem;
  color: var(--slate);
  max-width: 520px;
}

.hero-actions {
  margin: 28px 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-logo {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
  box-shadow: 0 20px 40px rgba(7, 32, 45, 0.15);
  margin-bottom: 18px;
}

.hero-logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.hero-note {
  font-family: "Newsreader", serif;
  font-size: 1.05rem;
  color: var(--brand-strong);
}

.hero-visual {
  display: grid;
  gap: 20px;
}

.hero-photo {
  position: relative;
  aspect-ratio: 21 / 16;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0c1f2a;
}

.hero-photo picture,
.hero-photo img,
.hero-photo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-photo img {
  object-fit: cover;
}

.hero-photo-label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(12, 31, 42, 0.85);
  color: #fff;
  font-size: 0.85rem;
  display: grid;
  gap: 4px;
}

.hero-photo-label span {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-stats {
  display: grid;
  gap: 12px;
  background: var(--surface);
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(12, 31, 42, 0.08);
  box-shadow: 0 18px 40px rgba(9, 32, 44, 0.08);
  font-size: 0.9rem;
  color: var(--slate);
}

.hero-stats span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.65rem;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 24px;
}

.section-header {
  max-width: 740px;
  margin-bottom: 36px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  font-size: 1rem;
  color: var(--slate);
}

.services {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 40px;
  padding: 70px 24px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--surface);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(12, 31, 42, 0.08);
  box-shadow: 0 18px 40px rgba(9, 32, 44, 0.08);
}

.service-card-media {
  height: 168px;
  border-radius: 18px;
  margin: -24px -24px 18px;
  background: linear-gradient(135deg, rgba(10, 157, 154, 0.7), rgba(211, 53, 19, 0.65));
  position: relative;
  overflow: hidden;
}

.service-card-media picture,
.service-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.service-card-media img {
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}

.service-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.25), transparent 55%),
    linear-gradient(180deg, rgba(12, 31, 42, 0.05), rgba(12, 31, 42, 0.35));
}

.service-card.is-geodezja .service-card-media {
  background: linear-gradient(135deg, rgba(10, 157, 154, 0.75), rgba(244, 179, 91, 0.6));
}

.service-card.is-machine-control .service-card-media {
  background: linear-gradient(135deg, rgba(12, 31, 42, 0.75), rgba(10, 157, 154, 0.65));
}

.service-card.is-fotogrametria .service-card-media {
  background: linear-gradient(135deg, rgba(114, 200, 197, 0.75), rgba(211, 53, 19, 0.55));
}

.service-card.is-projektowanie .service-card-media {
  background: linear-gradient(135deg, rgba(244, 179, 91, 0.7), rgba(12, 31, 42, 0.65));
}

.service-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--slate);
  line-height: 1.6;
}

.tech {
  position: relative;
}

.tech::after {
  content: "";
  position: absolute;
  right: 10%;
  top: 10%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(244, 179, 91, 0.35), transparent 70%);
  z-index: -1;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.tech-column {
  background: var(--surface);
  padding: 26px;
  border-radius: 18px;
  border: 1px solid rgba(12, 31, 42, 0.08);
}

.tech-column ul {
  margin: 0;
  padding-left: 18px;
  color: var(--slate);
  line-height: 1.6;
}

.projects {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 40px;
  padding: 70px 24px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--surface);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(12, 31, 42, 0.08);
  box-shadow: 0 18px 40px rgba(9, 32, 44, 0.08);
}

.project-card-media {
  height: 188px;
  width: 100%;
  border-radius: 20px 20px 18px 18px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(10, 157, 154, 0.75), rgba(211, 53, 19, 0.6));
  position: relative;
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: center;
  display: block;
}

.project-card-media picture,
.project-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.project-card-media img {
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.001);
  transition: transform 0.35s ease;
}

.project-card-media:hover img {
  transform: scale(1.04);
}

.project-card-media:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.7);
  outline-offset: 4px;
}

.project-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.22), transparent 55%),
    linear-gradient(180deg, rgba(12, 31, 42, 0.06), rgba(12, 31, 42, 0.4));
}

.project-card.is-road .project-card-media {
  background: linear-gradient(135deg, rgba(10, 157, 154, 0.8), rgba(244, 179, 91, 0.62));
}

.project-card.is-logistics .project-card-media {
  background: linear-gradient(135deg, rgba(12, 31, 42, 0.8), rgba(10, 157, 154, 0.6));
}

.project-card.is-city .project-card-media {
  background: linear-gradient(135deg, rgba(114, 200, 197, 0.8), rgba(211, 53, 19, 0.55));
}

.project-media-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(12, 31, 42, 0.7);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 1;
}

.project-card p {
  margin: 0;
  color: var(--slate);
  line-height: 1.6;
}

.is-locked {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 50;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 31, 42, 0.72);
  backdrop-filter: blur(10px);
}

.lightbox-dialog {
  position: relative;
  width: min(1100px, 100%);
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 80px rgba(7, 32, 45, 0.35);
  padding: 18px 18px 14px;
  display: grid;
  gap: 12px;
}

.lightbox-close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(12, 31, 42, 0.16);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox-close:hover {
  opacity: 0.85;
}

.lightbox-header {
  padding-right: 60px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.lightbox-header h2 {
  margin: 0;
  font-size: 1.15rem;
}

.lightbox-counter {
  color: var(--muted);
  font-size: 0.9rem;
}

.lightbox-stage {
  position: relative;
  margin-top: 8px;
  border-radius: 20px;
  overflow: hidden;
  background: #0c1f2a;
  box-shadow: 0 22px 46px rgba(7, 32, 45, 0.2);
}

.lightbox-media,
.lightbox-media img {
  width: 100%;
  height: min(72vh, 600px);
  display: block;
}

.lightbox-media img {
  object-fit: contain;
  background: #0c1f2a;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.16);
}

.lightbox-nav[disabled] {
  opacity: 0.4;
  cursor: default;
}

.lightbox-nav[data-lightbox-prev] {
  left: 14px;
}

.lightbox-nav[data-lightbox-next] {
  right: 14px;
}

.lightbox-caption {
  margin: 0;
  color: var(--slate);
  line-height: 1.6;
  padding: 0 6px;
}

.lightbox-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 4px 6px;
  scroll-snap-type: x mandatory;
}

.lightbox-thumb {
  width: 96px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(12, 31, 42, 0.14);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.lightbox-thumb.is-active {
  border-color: rgba(211, 53, 19, 0.9);
  box-shadow: 0 0 0 2px rgba(211, 53, 19, 0.25);
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox-thumb:focus-visible,
.lightbox-nav:focus-visible,
.lightbox-close:focus-visible {
  outline: 3px solid rgba(10, 157, 154, 0.55);
  outline-offset: 3px;
}

.testimonials {
  position: relative;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--surface);
  padding: 26px;
  border-radius: 20px;
  border: 1px solid rgba(12, 31, 42, 0.08);
  box-shadow: 0 18px 40px rgba(9, 32, 44, 0.08);
  font-family: "Newsreader", serif;
}

.testimonial-card p {
  margin: 0 0 16px;
  color: var(--slate);
  line-height: 1.6;
  font-size: 1.05rem;
}

.testimonial-card span {
  font-family: "Sora", sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
}

.cta {
  padding-bottom: 100px;
}

.cta-card {
  background: linear-gradient(140deg, var(--accent), var(--accent-strong), var(--brand));
  color: #fff;
  padding: 40px;
  border-radius: 30px;
  display: grid;
  gap: 28px;
  box-shadow: 0 24px 50px rgba(6, 124, 121, 0.35);
}

.cta-card .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.cta-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.cta-details span {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
}

.cta-details strong {
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

.map-link {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  color: inherit;
}

.pin-icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.8);
}

.pin-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.contact-form {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 18px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-captcha {
  display: flex;
  justify-content: flex-start;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.form-error {
  margin: 0;
  font-size: 0.85rem;
  color: #ffe6cf;
}

.form-note {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.honeypot {
  display: none;
}

.thank-you {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
}

.thank-you-layout {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(280px, 560px);
  align-items: center;
  gap: 40px;
  width: min(1100px, 100%);
}

.thank-you-visual .hero-photo {
  max-width: 420px;
  margin: 0 auto;
}

.thank-you-card {
  max-width: 560px;
  background: var(--surface);
  border-radius: 24px;
  padding: 36px;
  border: 1px solid rgba(12, 31, 42, 0.08);
  box-shadow: var(--shadow);
  text-align: center;
}

.thank-you-card h1 {
  margin-top: 12px;
}

.thank-you-card p {
  color: var(--slate);
  line-height: 1.6;
}

.thank-you-card .button {
  margin-top: 18px;
}

.site-footer {
  padding: 30px 24px 50px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0 0 6px;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.site-footer p:last-child {
  font-size: 0.82rem;
}

.site-footer a {
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .simple-page .nav {
    justify-content: center;
  }

  .cta-details {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .service-card-media {
    height: 156px;
  }

  .project-card-media {
    height: 172px;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox-dialog {
    padding: 14px 14px 10px;
    border-radius: 22px;
  }

  .lightbox-header h2 {
    font-size: 1.05rem;
  }

  .lightbox-media,
  .lightbox-media img {
    height: min(66vh, 520px);
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 30px;
  }

  .lightbox-nav[data-lightbox-prev] {
    left: 10px;
  }

  .lightbox-nav[data-lightbox-next] {
    right: 10px;
  }

  .lightbox-close {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .lightbox-thumb {
    width: 86px;
    height: 58px;
  }

  .thank-you-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .brand img {
    height: 44px;
  }

  .nav-links {
    display: none;
  }

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

  .hero {
    padding-top: 60px;
  }

  .services {
    border-radius: 24px;
  }

  .projects {
    border-radius: 24px;
  }

  .cta-card {
    padding: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }

  .button,
  .button:hover {
    transition: none;
  }
}
