:root {
  --ink: #122033;
  --paper: #ffffff;
  --paper-deep: #f4f6f8;
  --paper-lift: #ffffff;
  --rule: #e4e8ee;
  --accent: #0b4f8c;
  --accent-deep: #083a68;
  --red: #c8102e;
  --red-deep: #9a0c22;
  --text: #2a3340;
  --muted: #5d6774;
  --shadow: 0 10px 30px rgba(18, 32, 51, 0.08);
  --sans: "Open Sans", "Segoe UI", "Avenir Next", sans-serif;
  --max: 72rem;
}

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

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

#uslugi,
#serwis,
#sprzet,
#firma,
#kontakt {
  scroll-margin-top: 7.25rem;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  font-size: 1.05rem;
}

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

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-deep);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 30;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.topbar {
  background: #0d1520;
  color: #d7dde6;
  font-size: 0.95rem;
}

.topbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.8rem;
  min-height: 2.4rem;
}

.topbar-hours {
  margin-left: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  color: var(--accent);
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
}

.brand-kc {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.nav a {
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
}

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

.nav-phone {
  padding: 0.5rem 0.95rem;
  background: var(--red);
  color: #fff !important;
  border-radius: 4px;
}

.nav-phone:hover {
  background: var(--red-deep);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  font: inherit;
  background: #fff;
  border: 1px solid var(--rule);
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 36rem;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background: #122033;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 72%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 16, 28, 0.86) 0%, rgba(8, 16, 28, 0.45) 55%, rgba(8, 16, 28, 0.2) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 5.5rem;
  max-width: 40rem;
  margin-left: max(1rem, calc((100% - var(--max)) / 2));
  width: min(100% - 2rem, 40rem);
}

.kicker {
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}

.kicker-on-dark {
  color: #9ec4ea;
}

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  color: #fff;
}

h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
}

h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}

.lede {
  margin: 0 0 1.4rem;
  font-size: 1.08rem;
  color: #e4eaf1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.95rem;
  padding: 0.55rem 1.15rem;
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
}

.btn-red {
  background: var(--red);
  color: #fff;
}

.btn-red:hover {
  background: var(--red-deep);
  color: #fff;
}

.btn-solid {
  background: var(--accent);
  color: #fff;
}

.btn-ghost-on-dark {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
}

.btn-ghost-on-dark:hover {
  background: #fff;
  color: var(--ink);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  color: #c9d3df;
  font-size: 0.95rem;
}

.badge {
  color: #fff;
}

.badge[data-open="true"]::before,
.badge[data-open="false"]::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  margin-right: 0.4rem;
  background: #3dbe5a;
}

.badge[data-open="false"]::before {
  background: #e24b4b;
}

.service-bar {
  margin-top: -2.4rem;
  position: relative;
  z-index: 2;
  padding-bottom: 1rem;
}

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

.tile {
  background: #fff;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  padding: 1.15rem 1rem 1.2rem;
  text-decoration: none;
  color: var(--ink);
  min-height: 8.5rem;
}

.tile:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.tile strong {
  display: block;
  font-size: 1.15rem;
  margin: 0.35rem 0 0.2rem;
}

.tile span:last-child {
  color: var(--muted);
  font-size: 0.92rem;
}

.tile-icon {
  color: var(--accent);
}

.tile-navy {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.tile-navy:hover,
.tile-red:hover {
  color: #fff;
  filter: brightness(1.06);
}

.tile-navy span:last-child,
.tile-red span:last-child {
  color: rgba(255, 255, 255, 0.82);
}

.tile-navy .tile-icon,
.tile-red .tile-icon {
  color: #fff;
}

.tile-red {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.section {
  padding: 3.4rem 0;
  background: var(--paper);
}

.section-alt {
  background: var(--paper-deep);
  border-block: 1px solid var(--rule);
}

.section-head {
  max-width: 38rem;
  margin-bottom: 1.5rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem;
}

.fix-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.fix-list li {
  padding: 0.75rem 0.9rem;
  background: var(--paper-deep);
  border-left: 4px solid var(--accent);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.6rem;
}

.cta-row p {
  margin: 0;
  color: var(--muted);
}

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

.machine-grid figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
}

.alert-bar {
  margin: 0;
  padding: 0.85rem 1rem;
  background: #f5c518;
  color: #122033;
  font-weight: 700;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.55rem;
}

.alert-bar a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 2px solid var(--red);
}

.alert-bar a:hover {
  color: var(--red-deep);
}

.steps {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  counter-reset: step;
}

.steps li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: var(--text);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  flex: 0 0 1.7rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.machine-grid img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
  object-position: 50% 70%;
  background: #e8edf3;
}

.machine-grid figure:nth-child(3) img {
  object-position: 50% 55%;
}

.machine-grid figcaption {
  padding: 0.95rem 1rem 1.1rem;
  color: var(--muted);
}

.machine-grid strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.prose p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
}

.contact-panel {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.contact-phone {
  margin: 0 0 0.9rem;
}

.contact-phone a {
  display: block;
  font-size: 1.55rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--red);
}

.contact-phone span {
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-panel h3 {
  margin-top: 1.1rem;
}

.hours {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--rule);
}

.map-wrap {
  min-height: 22rem;
  border: 1px solid var(--rule);
  background: #e8edf3;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  border: 0;
}

.site-footer {
  padding: 2rem 0 4.8rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.mobile-call {
  display: none;
}

@media (max-width: 860px) {
  .topbar-hours {
    margin-left: 0;
    width: 100%;
  }

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

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(2.4rem + 4.25rem);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem 1rem 1rem;
  }

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

  .nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--rule);
  }

  .hero {
    min-height: 28rem;
  }

  .hero-copy {
    padding: 3rem 0 3.2rem;
    margin-left: 1rem;
  }

  .service-bar {
    margin-top: 0;
    padding-top: 1rem;
  }

  .service-grid,
  .machine-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .machine-grid img {
    height: 12rem;
  }

  .mobile-call {
    display: flex;
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 12;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    background: var(--red);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    box-shadow: var(--shadow);
  }

  .mobile-call:hover {
    color: #fff;
    background: var(--red-deep);
  }
}
