:root {
  --ink: #111514;
  --graphite: #1f2825;
  --muted: #65706d;
  --line: #dfe7e1;
  --paper: #f6f8f3;
  --white: #ffffff;
  --green: #46ad4f;
  --green-deep: #237c3b;
  --amber: #f2ad31;
  --orange: #e76f35;
  --shadow: 0 24px 70px rgba(19, 29, 25, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

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

.mobile-break {
  display: none;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px clamp(18px, 4vw, 54px);
  background: rgba(218, 222, 216, 0.78);
  border-bottom: 1px solid rgba(31, 40, 37, 0.08);
  backdrop-filter: blur(16px);
}

.brand-word {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  padding: 4px 10px 4px 62px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-word::before,
.brand-word::after {
  content: "";
  position: absolute;
  border: 3px solid var(--ink);
  border-radius: 50%;
}

.brand-word::before {
  left: 14px;
  width: 32px;
  height: 32px;
}

.brand-word::after {
  left: 42px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-color: var(--green-deep);
}

.brand-word span {
  color: var(--green-deep);
  font-size: 1.22em;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 12px 16px;
  color: var(--graphite);
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
}

.nav a:hover {
  color: var(--green-deep);
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 108px clamp(18px, 5vw, 70px) 132px;
  overflow: hidden;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 18, 15, 0.93), rgba(14, 25, 21, 0.76) 45%, rgba(14, 25, 21, 0.18)),
    image-set(
      url("./assets/technology-hero.webp") type("image/webp"),
      url("./assets/technology-hero.jpg") type("image/jpeg")
    )
    center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 86px;
  background: linear-gradient(180deg, rgba(246, 248, 243, 0), var(--paper));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(560px, 0.95fr);
  align-items: center;
  gap: clamp(28px, 6vw, 90px);
  max-width: 1380px;
  margin: 0 auto;
}

.hero-grid > * {
  min-width: 0;
  max-width: 100%;
}

.eyebrow {
  margin: 0 0 14px;
  color: #6ee087;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #8bf0a0;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.36);
}

.hero h1,
.section-heading h2,
.split-copy h2,
.contact h2,
.contact-form h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.02;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(50px, 8vw, 104px);
  font-weight: 600;
}

.hero h1 span {
  display: block;
}

.hero-lead {
  max-width: 670px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2vw, 23px);
  text-align: justify;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-weight: 800;
}

.button.primary {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 12px 28px rgba(70, 173, 79, 0.18);
}

.button.ghost {
  border-color: var(--green);
  color: var(--white);
  background: rgba(70, 173, 79, 0.16);
}

.button.full {
  width: 100%;
}

.control-panel {
  min-width: 0;
  margin-top: 0;
  padding: 26px;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.panel-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 3px solid rgba(5, 8, 7, 0.62);
}

.panel-row span,
.control-panel p {
  color: #f4f7ef;
  font-size: 16px;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.82);
}

.panel-row strong {
  color: #ffffff;
  text-align: right;
  font-size: 19px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.86);
  overflow-wrap: anywhere;
}

.falling-chart {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  height: 420px;
  padding: 44px 0 28px;
}

.falling-chart span {
  position: relative;
  z-index: 1;
  width: min(100%, 34px);
  justify-self: center;
  height: var(--h);
  background: linear-gradient(180deg, var(--green), var(--amber));
}

.trend-line {
  position: absolute;
  z-index: 2;
  inset: 30px 0 20px;
  width: 100%;
  height: calc(100% - 50px);
  overflow: visible;
  pointer-events: none;
}

.trend-line polyline {
  fill: none;
  stroke: url(#trend-gradient);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  marker-end: url(#trend-arrow);
}

.trend-line marker path {
  fill: #8bf0a0;
}

.control-panel p {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

.section,
.split-section,
.contact,
.footer {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: clamp(18px, 4vw, 54px);
  padding-right: clamp(18px, 4vw, 54px);
}

.section {
  padding-top: 46px;
  padding-bottom: 76px;
}

#obszary {
  position: relative;
  z-index: 2;
  margin-top: -12px;
}

.section-heading {
  display: block;
  margin-bottom: 28px;
}

.process-title,
.section-title {
  font-size: 20px;
}

.section-note {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.section-heading h2,
.split-copy h2,
.contact h2 {
  font-size: clamp(34px, 5vw, 62px);
}

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

.service-card {
  min-height: 218px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(70, 173, 79, 0.55);
  box-shadow: 0 18px 38px rgba(31, 40, 37, 0.1);
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.12;
}

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

.service-card.featured {
  grid-column: span 2;
  border-color: rgba(70, 173, 79, 0.42);
  background: linear-gradient(180deg, rgba(70, 173, 79, 0.22), #ffffff 58%);
}

.service-card.dark {
  background: var(--graphite);
  color: var(--white);
}

.service-card.dark p {
  color: rgba(255, 255, 255, 0.74);
}

.service-card.wide {
  grid-column: span 2;
}

.service-card.ending {
  grid-column: span 2;
  border-color: rgba(70, 173, 79, 0.42);
  background: linear-gradient(0deg, rgba(70, 173, 79, 0.22), #ffffff 58%);
  color: var(--ink);
}

.service-card.ending p {
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding-top: 48px;
  padding-bottom: 82px;
}

.image-panel {
  min-height: 520px;
  overflow: hidden;
}

.image-panel img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.split-copy p:last-child,
.contact p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.cooperative-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 0.86fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px clamp(18px, 4vw, 54px) 82px;
}

.cooperative-section h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.04;
}

.cooperative-section > p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.process-embedded {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: clamp(150px, 17vw, 240px) auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.process-lead {
  max-width: none;
  margin: 0 0 28px;
  color: var(--white);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 600;
  line-height: 1.12;
  white-space: nowrap;
}

.process-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}

.process-steps article {
  position: relative;
  min-height: 178px;
  padding: 10px 14px 0;
  text-align: center;
}

.process-steps article:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 30px;
  right: -50%;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.process-steps span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 0 0 8px rgba(10, 18, 15, 0.48), 0 16px 32px rgba(0, 0, 0, 0.24);
}

.process-steps h3 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 16px;
}

.process-steps p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
}

.cta-banner {
  max-width: 1120px;
  margin: 34px auto 84px;
  padding: clamp(32px, 5vw, 52px);
  border: 1px solid rgba(70, 173, 79, 0.38);
  background:
    linear-gradient(135deg, rgba(31, 40, 37, 0.94), rgba(28, 67, 42, 0.92)),
    image-set(
      url("./assets/grid-line-optimized.webp") type("image/webp"),
      url("./assets/grid-line-optimized.jpg") type("image/jpeg")
    )
    center / cover;
  color: var(--white);
  text-align: center;
}

.cta-banner h2 {
  max-width: 720px;
  margin: 0 auto 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.cta-banner p {
  max-width: 700px;
  margin: 0 auto 26px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.phone-button {
  display: inline-grid;
  gap: 2px;
  min-width: 190px;
  text-align: left;
}

.phone-button span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.phone-button strong {
  color: var(--white);
  font-size: 18px;
  line-height: 1.1;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 24px;
  padding-bottom: 32px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer a {
  color: var(--green-deep);
  font-weight: 700;
}

.modal-target {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
}

.modal-target:target {
  display: grid;
}

.contact-form {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(620px, calc(100vw - 28px));
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.contact-form .eyebrow {
  color: var(--green-deep);
}

.contact-form h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
}

.close::before,
.close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #f8faf6;
  color: var(--ink);
  padding: 11px 12px;
  resize: vertical;
}

.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(30, 69, 41, 0.08);
  color: #1e4529;
  font-weight: 700;
}

.form-status.error {
  background: rgba(180, 35, 24, 0.1);
  color: #8a1f17;
}

.form-status.success {
  background: rgba(43, 122, 61, 0.14);
  color: #1f6b36;
}

.form-note {
  margin: 2px 0 4px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 980px) {
  .hero-grid,
  .section-heading,
  .split-section,
  .cooperative-section {
    grid-template-columns: 1fr;
  }

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

  .process-steps article:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 720px) {
  .site-header {
    gap: 8px;
    padding: 10px 12px;
  }

  .brand-word {
    min-height: 48px;
    padding-left: 42px;
    font-size: 22px;
  }

  .brand-word::before {
    left: 12px;
    width: 19px;
    height: 19px;
  }

  .brand-word::after {
    left: 29px;
    top: 12px;
    width: 9px;
    height: 9px;
  }

  .nav {
    gap: 2px;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
  }

  .nav a {
    padding: 7px 5px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
  }

  .eyebrow {
    max-width: 100%;
    overflow-wrap: anywhere;
    line-height: 1.35;
  }

  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 96px;
  }

  .hero h1 {
    font-size: 46px;
  }

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

  .panel-row {
    flex-wrap: wrap;
  }

  .panel-row strong {
    width: 100%;
    text-align: left;
  }

  .process-embedded {
    margin-top: 96px;
  }

  #obszary {
    margin-top: -118px;
  }

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

  .process-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .process-steps article {
    min-height: 0;
    padding: 0 0 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
  }

  .process-steps article:not(:last-child)::after {
    display: none;
  }

  .process-steps span {
    width: 42px;
    height: 42px;
    margin-right: 12px;
    margin-bottom: 10px;
    box-shadow: none;
  }

  .service-card.featured {
    grid-column: span 1;
  }

  .service-card.wide,
  .service-card.ending {
    grid-column: span 1;
  }

  .image-panel,
  .image-panel img {
    min-height: 320px;
  }

  .footer {
    display: grid;
  }
}

@media (max-width: 520px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    justify-content: stretch;
  }

  .nav a {
    padding: 2px 0;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
  }

  .hero {
    padding-top: 118px;
  }

  .mobile-break {
    display: block;
  }

  .process-lead {
    white-space: normal;
  }

  .hero-grid,
  .hero-content,
  .control-panel,
  .hero-lead {
    width: 100%;
    max-width: 100%;
  }
}
