:root {
  --ink: #315b70;
  --ink-soft: #54778a;
  --paper: #f8fdff;
  --wash: #eaf6f8;
  --wash-2: #d9eef2;
  --line: #b9dce3;
  --teal: #2c8c97;
  --teal-soft: #75b8bf;
  --coral: #dc6771;
  --violet: #6a75b7;
  --white: #ffffff;
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }

.mast {
  width: min(1180px, calc(100% - 40px));
  margin: 20px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.92);
}
.identity { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.identity-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px 6px 14px 6px;
  background: var(--teal);
  color: var(--white);
  font-weight: 800;
  font-size: 20px;
}
.identity span:last-child { display: grid; line-height: 1.2; }
.identity strong { font-size: 17px; }
.identity small { color: var(--ink-soft); font-size: 13px; margin-top: 2px; }
.mast-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mast-nav a {
  text-decoration: none;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--ink-soft);
}
.mast-nav a:hover,
.mast-nav a.active { background: var(--wash); color: var(--ink); }

main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3, p, dl { margin-top: 0; }
h1 { font-size: 40px; line-height: 1.08; letter-spacing: -.03em; margin-bottom: 22px; }
h2 { font-size: 28px; line-height: 1.16; letter-spacing: -.02em; margin-bottom: 16px; }
h3 { font-size: 21px; line-height: 1.25; margin-bottom: 10px; }

.city-opening {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .7fr);
  gap: 52px;
  padding: 88px 0 64px;
  align-items: end;
}
.opening-copy { max-width: 760px; }
.opening-lead { font-size: 21px; line-height: 1.55; color: var(--ink); }
.opening-copy p:last-child { color: var(--ink-soft); max-width: 680px; }
.opening-side {
  min-height: 280px;
  padding: 26px;
  border-radius: 64px 16px 64px 16px;
  background: var(--wash-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  position: relative;
  overflow: hidden;
}
.opening-side::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  border: 18px solid rgba(106,117,183,.14);
  border-radius: 50%;
  right: -42px;
  top: -28px;
}
.opening-side span {
  width: fit-content;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
}
.opening-side span:nth-child(2) { margin-left: 22px; }
.opening-side span:nth-child(3) { margin-left: 44px; }
.opening-side span:nth-child(4) { margin-left: 16px; }

.local-register { padding: 34px 0 80px; }
.register-head {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  column-gap: 50px;
  align-items: end;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.register-head .eyebrow { grid-column: 1 / -1; }
.register-head h2 { margin-bottom: 0; }
.register-head p:last-child { margin-bottom: 0; color: var(--ink-soft); }

.place-rank {
  font-size: 12px;
  letter-spacing: .16em;
  font-weight: 800;
  color: var(--coral);
}
.local-focus {
  margin-top: 22px;
  display: grid;
  grid-template-columns: .72fr 1.3fr .9fr;
  gap: 28px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 14px 54px 14px 54px;
  background: var(--white);
}
.focus-name h3 { font-size: 28px; margin-top: 6px; }
.focus-copy p:last-child { margin-bottom: 0; }
.focus-faults { margin-bottom: 0; display: grid; gap: 10px; }
.focus-faults div { padding: 12px 14px; background: var(--wash); border-radius: 12px; }
.focus-faults dt { font-weight: 800; }
.focus-faults dd { margin-left: 0; color: var(--ink-soft); }

.local-split {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 26px;
}
.place-block { min-height: 280px; padding: 32px; position: relative; overflow: hidden; }
.place-zbikow { background: var(--teal); color: var(--white); border-radius: 16px 16px 58px 16px; }
.place-zbikow .place-rank { color: #ffd4d8; }
.place-zbikow .place-note { color: #eafafa; max-width: 88%; }
.place-gasin { border: 2px solid var(--violet); border-radius: 58px 16px 16px 16px; background: #f4f5ff; }
.place-gasin::after {
  content: "G";
  position: absolute;
  right: 18px;
  bottom: -34px;
  font-size: 170px;
  font-weight: 900;
  line-height: 1;
  color: rgba(106,117,183,.08);
}

.local-lines { margin-top: 34px; border-top: 1px solid var(--line); }
.local-lines article {
  display: grid;
  grid-template-columns: .82fr 1.5fr;
  gap: 36px;
  align-items: baseline;
  padding: 24px 8px;
  border-bottom: 1px solid var(--line);
}
.local-lines article > div { display: flex; align-items: baseline; gap: 16px; }
.local-lines h3, .local-lines p { margin-bottom: 0; }
.local-lines p { color: var(--ink-soft); }

.local-cluster {
  margin: 46px 0 0 12%;
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 34px;
  padding: 34px 38px;
  background: var(--wash);
  border-left: 8px solid var(--coral);
  border-radius: 0 28px 28px 0;
}
.cluster-intro h3 { font-size: 25px; }
.local-cluster dl { margin-bottom: 0; display: grid; gap: 18px; }
.local-cluster dl div { display: grid; grid-template-columns: 150px 1fr; gap: 18px; }
.local-cluster dt { font-weight: 800; }
.local-cluster dd { margin-left: 0; color: var(--ink-soft); }

.local-tail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 32px;
  background: var(--line);
  border: 1px solid var(--line);
}
.local-tail article { background: var(--paper); padding: 24px 28px; }
.local-tail h3 { margin: 4px 0 8px; }
.local-tail p { margin-bottom: 0; color: var(--ink-soft); }

.fault-band {
  margin: 20px 0 86px;
  padding: 38px 0;
  border-top: 3px solid var(--teal);
  border-bottom: 3px solid var(--teal);
  display: grid;
  grid-template-columns: .72fr 1.3fr;
  gap: 42px;
}
.fault-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.fault-flow p { margin-bottom: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.fault-flow strong, .fault-flow span { display: block; }
.fault-flow span { color: var(--ink-soft); }

.equipment-gate {
  margin-bottom: 86px;
  min-height: 250px;
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  align-items: center;
  gap: 40px;
  padding: 36px 40px;
  border-radius: 24px 80px 24px 24px;
  background: #eef1ff;
}
.equipment-gate p:last-child { color: var(--ink-soft); margin-bottom: 0; }
.equipment-gate > a {
  justify-self: end;
  text-decoration: none;
  font-weight: 800;
  padding: 18px 22px;
  border: 2px solid var(--violet);
  border-radius: 14px;
  background: var(--white);
}
.equipment-gate > a:hover { transform: translateY(-2px); }

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { text-decoration: none; color: var(--ink-soft); }
.site-footer a:hover { color: var(--ink); }

/* HOME: inna architektura treści i layoutu */
.equipment-page { background: #f6fbff; }
.workshop { padding-top: 60px; }
.machine-intro {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 58px;
  align-items: start;
  padding: 36px 0 70px;
}
.machine-title { border-left: 12px solid var(--teal); padding-left: 26px; }
.machine-title h1 { max-width: 620px; margin-bottom: 0; }
.machine-copy { padding-top: 28px; color: var(--ink-soft); }
.machine-copy p:last-child { margin-bottom: 0; }

.bench-code {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  font-weight: 800;
  font-size: 13px;
}
.washer-bench {
  position: relative;
  display: grid;
  grid-template-columns: .7fr 1.35fr .55fr;
  gap: 28px;
  padding: 38px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 44px 12px 44px 12px;
}
.washer-bench > header { display: flex; gap: 14px; align-items: flex-start; }
.washer-bench > header .eyebrow { margin-bottom: 4px; }
.washer-main > p { font-size: 18px; }
.washer-main dl { margin-bottom: 0; display: grid; gap: 8px; }
.washer-main dl div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding-top: 8px; border-top: 1px solid var(--line); }
.washer-main dt { font-weight: 800; }
.washer-main dd { margin-left: 0; color: var(--ink-soft); }
.washer-bench > aside { align-self: end; padding: 16px; background: var(--wash); border-radius: 14px; color: var(--ink-soft); }

.cooling-sheet {
  margin-top: 54px;
  display: grid;
  grid-template-columns: .62fr 100px 1.25fr;
  gap: 34px;
  align-items: stretch;
}
.sheet-heading { padding: 28px 0; }
.sheet-heading h2 { margin-top: 18px; }
.temperature-scale { display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 18px 0; }
.temperature-scale::before { content: ""; position: absolute; }
.temperature-scale span { width: 28px; height: 28px; border-radius: 50%; background: var(--teal-soft); }
.temperature-scale span:nth-child(2) { width: 22px; height: 22px; }
.temperature-scale span:nth-child(3) { width: 16px; height: 16px; }
.temperature-scale span:nth-child(4) { width: 10px; height: 10px; }
.cooling-copy { padding: 30px 34px; background: var(--wash-2); border-radius: 12px 52px 12px 12px; }
.cooling-copy p:last-child { margin-bottom: 0; }

.kitchen-track { margin-top: 76px; position: relative; padding-left: 80px; }
.kitchen-track::before { content: ""; position: absolute; left: 20px; top: 60px; bottom: 20px; width: 3px; background: var(--line); }
.track-head { display: flex; gap: 16px; align-items: center; margin-bottom: 32px; }
.track-head h2 { margin-bottom: 0; }
.track-head .eyebrow { margin-bottom: 3px; }
.dishwasher-step, .oven-step {
  position: relative;
  padding: 28px 32px;
  max-width: 820px;
}
.dishwasher-step::before, .oven-step::before {
  content: "";
  position: absolute;
  left: -69px;
  top: 40px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--coral);
  border: 5px solid var(--paper);
}
.dishwasher-step { background: #eef1ff; border-radius: 16px 46px 16px 16px; }
.oven-step { margin: 22px 0 0 13%; border: 2px solid var(--teal); border-radius: 46px 16px 16px 16px; }
.dishwasher-step strong, .oven-step strong { display: block; margin-top: 18px; }
.dishwasher-step span, .oven-step span { display: inline-block; margin: 7px 8px 0 0; padding: 6px 10px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink-soft); }

.specialty-column {
  margin: 84px 0 0 24%;
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: 40px;
  padding: 34px 0 34px 34px;
  border-left: 10px solid var(--violet);
}
.specialty-column dl { margin-bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.specialty-column dl div { padding: 16px; background: var(--white); border-bottom: 3px solid var(--wash-2); }
.specialty-column dt { font-weight: 800; }
.specialty-column dd { margin: 5px 0 0; color: var(--ink-soft); }

.local-close {
  margin: 86px 0;
  display: grid;
  grid-template-columns: .55fr 1fr;
  gap: 16px 46px;
  align-items: end;
  padding: 34px 40px;
  background: var(--teal);
  color: var(--white);
  border-radius: 18px 18px 70px 18px;
}
.local-close .eyebrow { color: #dffbff; }
.local-close h2 { margin-bottom: 0; }
.local-close p:not(.eyebrow) { margin-bottom: 0; color: #eafafa; }
.local-close a { justify-self: start; color: var(--white); font-weight: 800; }

@media (max-width: 900px) {
  .city-opening, .machine-intro { grid-template-columns: 1fr; gap: 28px; }
  .opening-side { min-height: auto; display: grid; grid-template-columns: 1fr 1fr; }
  .opening-side span:nth-child(n) { margin-left: 0; }
  .register-head { grid-template-columns: 1fr; gap: 12px; }
  .local-focus { grid-template-columns: .6fr 1.4fr; }
  .focus-faults { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .local-cluster { margin-left: 0; grid-template-columns: 1fr; }
  .fault-band, .equipment-gate { grid-template-columns: 1fr; }
  .equipment-gate > a { justify-self: start; }
  .washer-bench { grid-template-columns: 1fr 1fr; }
  .washer-bench > aside { grid-column: 1 / -1; }
  .cooling-sheet { grid-template-columns: .7fr 60px 1.3fr; }
  .specialty-column { margin-left: 8%; grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .mast, main, .site-footer { width: min(100% - 24px, 1180px); }
  .mast { align-items: flex-start; flex-direction: column; gap: 12px; padding: 14px; }
  .mast-nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 3px; }
  .mast-nav a { white-space: nowrap; }
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .city-opening { padding: 58px 0 42px; }
  .opening-lead { font-size: 19px; }
  .opening-side { grid-template-columns: 1fr 1fr; border-radius: 34px 12px 34px 12px; padding: 20px; }
  .local-register { padding-top: 18px; }
  .local-focus { grid-template-columns: 1fr; padding: 24px; border-radius: 12px 38px 12px 38px; }
  .focus-faults { grid-column: auto; grid-template-columns: 1fr; }
  .local-split, .local-tail { grid-template-columns: 1fr; }
  .place-block { min-height: auto; padding: 24px; }
  .local-lines article { grid-template-columns: 1fr; gap: 10px; padding: 20px 4px; }
  .local-lines article > div { align-items: center; }
  .local-cluster { padding: 24px; }
  .local-cluster dl div { grid-template-columns: 1fr; gap: 2px; }
  .fault-band { margin-bottom: 60px; }
  .fault-flow { grid-template-columns: 1fr; }
  .equipment-gate { padding: 28px 24px; border-radius: 18px 48px 18px 18px; margin-bottom: 60px; }
  .site-footer { flex-direction: column; }
  .workshop { padding-top: 38px; }
  .machine-intro { padding-bottom: 46px; }
  .machine-title { border-left-width: 8px; padding-left: 18px; }
  .washer-bench { grid-template-columns: 1fr; padding: 24px; }
  .washer-bench > aside { grid-column: auto; }
  .washer-main dl div { grid-template-columns: 1fr; gap: 2px; }
  .cooling-sheet { grid-template-columns: 1fr; gap: 18px; }
  .temperature-scale { flex-direction: row; padding: 0 20px; }
  .kitchen-track { padding-left: 44px; margin-top: 58px; }
  .kitchen-track::before { left: 10px; }
  .dishwasher-step::before, .oven-step::before { left: -43px; }
  .dishwasher-step, .oven-step { padding: 22px; }
  .oven-step { margin-left: 0; }
  .specialty-column { margin: 58px 0 0; padding: 24px 0 0; border-left: 0; border-top: 8px solid var(--violet); }
  .specialty-column dl { grid-template-columns: 1fr; }
  .local-close { grid-template-columns: 1fr; padding: 26px; margin: 60px 0; border-radius: 16px 16px 44px 16px; }
}
