/* ═══════════════════════════════════════════════════════════════
   O mnie: schemat „jeden partner”. Bez koordynatora inwestor ma
   plątaninę kontaktów, z KOSMO jedną linię do projektanta.
   ═══════════════════════════════════════════════════════════════ */
.os {
  --ink: #032d90;
  --warn: #c8321e;
  /* style.css limits every <section> to 1200px with padding */
  max-width: 1440px;
  margin: 0 auto;
  padding: 120px 48px;
  background: var(--bg);
}
.os-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 80px;
  align-items: start;
}

.os-eyebrow { margin: 0 0 8px; font-size: 19px; color: var(--text-soft); }
.os h2 {
  margin: 0 0 28px;
  font-size: clamp(36px, 4.4vw, 64px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--text);
}
.os-text { margin: 0 0 24px; max-width: 32em; font-size: 20px; line-height: 1.55; color: var(--text-mid); }
.os-name { margin: 0; font-size: 18px; color: var(--text-mid); }
.os-name b { font-weight: 600; color: var(--text); }

/* Przełącznik porównania */
.os-switch { display: inline-flex; border: 2px solid var(--ink); }
.os-switch button {
  padding: 11px 20px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.os-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.os-switch button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Liczba kontaktów jest główną informacją schematu */
.os-count {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 28px 0 32px;
  font-size: 20px;
  line-height: 1.3;
  color: var(--text-mid);
  min-height: 2.6em;
}
.os-count b {
  flex: none;
  min-width: .62em;
  font-size: clamp(84px, 9vw, 136px);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -0.04em;
  color: var(--ink);
  transition: color .4s;
}
.os.is-alone .os-count b { color: var(--warn); }

/* Węzły są zwykłym HTML-em, a linie rysuje skrypt na podstawie ich położenia */
.os-map {
  position: relative;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  column-gap: clamp(48px, 7vw, 104px);
  align-items: center;
}
.os-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.os-lines path { fill: none; stroke: var(--ink); stroke-width: 1.5; transition: stroke .4s; }
.os-lines .os-main { stroke-width: 4; }
.os.is-alone .os-lines path { stroke: var(--warn); }

.os-you, .os-kamil, .os-parties { position: relative; }
.os-you {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}
.os-kamil {
  padding: 14px 18px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  line-height: 1.3;
  transition: opacity .45s, transform .45s var(--ease);
}
.os-kamil b { display: block; font-size: 18px; font-weight: 700; }
.os.is-alone .os-kamil { opacity: .12; transform: scale(.95); }

.os-parties { list-style: none; margin: 0; padding: 0; }
.os-parties li {
  padding: 13px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border-md);
  font-size: 18px;
  line-height: 1.25;
  color: var(--text);
}
.os-parties li:first-child { border-top: 1px solid var(--border-md); }

@media (max-width: 1100px) {
  .os-inner { grid-template-columns: minmax(0, 1fr); gap: 56px; }
}
@media (max-width: 640px) {
  .os { padding: 80px 20px; }
  .os-text { font-size: 18px; }
  .os-switch { display: flex; }
  .os-switch button { flex: 1; padding: 11px 8px; font-size: 16px; }
  .os-count { font-size: 18px; gap: 14px; }
  /* W wąskim układzie „Ty” i projektant stoją jedno nad drugim */
  .os-map {
    grid-template-columns: minmax(0, 118px) minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 40px;
    row-gap: 52px;
  }
  .os-you { grid-column: 1; grid-row: 1; justify-self: center; align-self: end; width: 68px; height: 68px; font-size: 20px; }
  .os-kamil { grid-column: 1; grid-row: 2; align-self: start; padding: 10px 12px; font-size: 14px; }
  .os-kamil b { font-size: 16px; }
  .os-parties { grid-column: 2; grid-row: 1 / span 2; }
  .os-parties li { padding: 11px 0; font-size: 16px; }
}
