/* ═══════════════════════════════════════════════════════════════
   Usługi projektowe: duży spis usług i jedna plansza, na której
   każda usługa kreśli swój rysunek po najechaniu lub dotknięciu.
   ═══════════════════════════════════════════════════════════════ */
.us {
  --paper: #032d90;
  --chalk: #eaf1ff;
  /* style.css limits every <section> to 1200px with padding */
  max-width: 1440px;
  margin: 0 auto;
  padding: 120px 48px;
  background: var(--bg);
}
.us-head { margin-bottom: 40px; }
.us-head p { margin: 0 0 6px; font-size: 19px; color: var(--text-soft); }
.us-head h2 {
  margin: 0;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.us-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

/* The list is the headline: large names, one strong line each */
.us-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--text); }
.us-list li { border-bottom: 1px solid var(--border-md); }
.us-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 22px 0;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  font-size: clamp(28px, 3.5vw, 54px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--text-soft);
  cursor: pointer;
  transition: color 0.25s, transform 0.35s var(--ease);
}
.us-item:hover { color: var(--text); }
.us-item[aria-expanded="true"] { color: var(--accent); transform: translateX(14px); }
.us-item::before {
  content: "";
  position: absolute;
  left: -14px; top: 22px; bottom: 22px;
  width: 4px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease);
}
.us-item[aria-expanded="true"]::before { transform: scaleY(1); }
.us-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The plate stays beside the list */
.us-detail { position: sticky; top: 84px; }
.us-plate {
  aspect-ratio: 640 / 420;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(234,241,255,0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234,241,255,0.13) 1px, transparent 1px),
    linear-gradient(rgba(234,241,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234,241,255,0.055) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
}
.us-svg { display: block; width: 100%; height: 100%; }

.us-fig { visibility: hidden; opacity: 0; transition: opacity 0.2s; }
.us-fig.is-on { visibility: visible; opacity: 1; }
.us-fig path { fill: none; stroke: var(--chalk); stroke-width: 1.3; }
.us-fig path[pathLength] {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.us-fig.is-on path[pathLength] {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.55s ease-out var(--d, 0ms);
}
.us-fig .heavy { stroke-width: 2.3; }
.us-fig .thin { stroke-width: 0.8; opacity: 0.65; }
.us-fig .soft { stroke-width: 1; opacity: 0.45; }
.us-fig .dash { stroke-dasharray: 7 6; stroke-width: 1.1; opacity: 0.7; }
.us-fig .node { fill: var(--chalk); }
.us-fig .sun { fill: #ffc46b; }
.us-fig text { font-family: inherit; fill: var(--chalk); }
.us-fig .t { font-size: 15px; font-weight: 500; }
.us-fig .strong { font-size: 17px; font-weight: 700; }
.us-fig .cap { font-size: 15px; }
.us-fig .stamp rect { fill: var(--paper); stroke: #c8f2d4; stroke-width: 2.5; }
.us-fig .stamp rect + rect { fill: none; }
.us-fig .stampt { fill: #c8f2d4; font-size: 25px; font-weight: 700; }
.us-fig .late { opacity: 0; }
.us-fig.is-on .late { opacity: 1; transition: opacity 0.35s ease-out 0.75s; }

.us-panel { padding-top: 20px; }
.us-panel p { margin: 0 0 16px; max-width: 46ch; font-size: 19px; line-height: 1.55; color: var(--text-mid); }
.us-cta {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  font-size: 16px; font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.us-cta:hover { background: #0044d4; }
.us-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Interactive mode: without JavaScript every description stays readable under the plate */
.us.is-live .us-panel { display: none; }
.us.is-live .us-panel.is-on { display: block; }

/* Tablet and phone: the plate and description open under the chosen service */
@media (max-width: 960px) {
  .us { padding: 80px 24px; }
  .us-grid { display: block; }
  .us-detail { position: static; padding: 0 0 22px; }
  .us-item { padding: 18px 0; font-size: clamp(27px, 6.4vw, 40px); }
  .us-item[aria-expanded="true"] { transform: none; }
  .us-item::before { display: none; }
}
