/* ============================================================
   Komponenty kalkulatora sauny
   (ładowane PO styles.css i water.css)
   ============================================================ */

:root {
  --wood: #C2703D;
  --wood-2: #A8582A;
  --wood-deep: #8C4419;
  --wood-soft: #FBF0E4;
  --wood-softer: #FDF8F1;
  --ember: #E4572E;
  --amber: #F5B15C;
  --wood-grad: linear-gradient(135deg, #E89A4B 0%, #C25415 100%);
}

/* ciepłe akcenty marki na tej podstronie */
.sauna .brand-name em { color: var(--amber); }
.sauna .hero h1 .serif { color: var(--amber); }
.sauna .nav-tel .ic { color: var(--amber); }
.sauna .dot-live { background: var(--amber); box-shadow: 0 0 0 0 rgba(245,177,92,.6); }

/* ---------- kafle statystyk „gorące” ---------- */
.rain-stat.hot { background: var(--wood-soft); border-color: #F2DCC2; }
.rain-stat.hot .ss-v { color: var(--wood-deep); }

/* ---------- przełącznik „dla biznesu” (hotel / SPA) ---------- */
.biz-switch {
  display: flex; align-items: center; gap: 16px; margin-top: 22px;
  background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--r-m);
  padding: 16px 20px; cursor: pointer; transition: border-color .25s, background .25s, box-shadow .25s;
  position: relative;
}
.biz-switch:hover { border-color: var(--wood); }
.biz-switch input { position: absolute; opacity: 0; pointer-events: none; }
.biz-track {
  flex: none; width: 52px; height: 30px; border-radius: 99px;
  background: var(--line-2); position: relative; transition: background .25s;
}
.biz-thumb {
  position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(6,35,48,.28); transition: transform .25s cubic-bezier(.3,1.3,.5,1);
}
.biz-switch input:checked ~ .biz-track { background: var(--wood-grad); }
.biz-switch input:checked ~ .biz-track .biz-thumb { transform: translateX(22px); }
.biz-switch input:focus-visible ~ .biz-track { outline: 3px solid rgba(194,112,61,.35); outline-offset: 2px; }
.biz-switch.on { border-color: var(--wood); background: var(--wood-softer); box-shadow: 0 10px 26px -14px rgba(194,112,61,.45); }
.biz-copy { flex: 1; min-width: 200px; }
.biz-copy strong { display: block; font-family: var(--font-head); font-size: 15.5px; font-weight: 700; }
.biz-copy span { font-size: 13.3px; color: var(--ink-2); }
.biz-badge {
  flex: none; font-family: var(--font-head); font-size: 11.5px; font-weight: 800; letter-spacing: .08em;
  color: var(--wood-deep); background: var(--wood-soft); border: 1px solid #F0D7B8;
  padding: 5px 11px; border-radius: 99px;
}
.biz-switch.on .biz-badge { color: #fff; background: var(--wood-grad); border-color: transparent; }

/* ---------- próbki drewna ---------- */
.st-spruce { background: repeating-linear-gradient(90deg, #EBCF9F 0 16px, #DEBD84 16px 18px, #E6C795 18px 34px, #D8B276 34px 36px); }
.st-aspen { background: repeating-linear-gradient(90deg, #F3E5C8 0 16px, #E8D6B0 16px 18px, #EFDEBD 18px 34px, #E2CD9F 34px 36px); }
.st-thermo { background: repeating-linear-gradient(90deg, #9A6B44 0 16px, #85552F 16px 18px, #92613A 18px 34px, #7C4E29 34px 36px); }
.st-cedar { background: repeating-linear-gradient(90deg, #C08154 0 16px, #A96A3D 16px 18px, #B57648 18px 34px, #9E5E32 34px 36px); }
.st-mosaic-tile { background: repeating-linear-gradient(90deg, #8FD1DE 0 9px, #6FB9CC 9px 18px, #A8DEE8 18px 27px, #7CC4D4 27px 36px); }

/* ---------- podgląd sauny (rzut / przekrój) ---------- */
.sauna-preview { position: relative; background: linear-gradient(170deg, #F8F2E9 0%, #F0E5D2 100%); border-bottom: 1px solid var(--line); }
.sauna-preview svg { width: 100%; height: auto; display: block; }
.result-preview .sauna-preview { border-bottom: 0; }

/* legenda pod podglądem (jak sec-legend w nawadnianiu) */
.sauna-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 10px 14px 12px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); background: rgba(255,255,255,.72); border-top: 1px dashed var(--line-2); }
.sauna-legend .sl-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 5px; vertical-align: -1px; }
.sauna-legend span { white-space: nowrap; }

/* ---------- animacje podglądu ---------- */
/* fale gorąca nad piecem */
@keyframes sn-heat {
  0% { transform: translateY(0); opacity: 0; }
  18% { opacity: .8; }
  70% { opacity: .45; }
  100% { transform: translateY(-15px); opacity: 0; }
}
.sn-heat path { animation: sn-heat 2.6s ease-out infinite; }
.sn-heat path:nth-of-type(2) { animation-delay: .8s; }
.sn-heat path:nth-of-type(3) { animation-delay: 1.6s; }

/* kłęby pary (biosauna / parowa / balia) */
@keyframes sn-steam {
  0% { transform: translateY(0) scale(.7); opacity: 0; }
  25% { opacity: .75; }
  100% { transform: translateY(-14px) scale(1.25); opacity: 0; }
}
.sn-steam circle, .sn-steam path { animation: sn-steam 3s ease-out infinite; }
.sn-steam circle:nth-of-type(2), .sn-steam path:nth-of-type(2) { animation-delay: 1s; }
.sn-steam circle:nth-of-type(3), .sn-steam path:nth-of-type(3) { animation-delay: 2s; }

/* żar kamieni / promienniki IR */
@keyframes sn-glow { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.sn-glow { animation: sn-glow 2.2s ease-in-out infinite; }
.sn-glow-slow { animation: sn-glow 3.6s ease-in-out infinite; }

/* dym z komina (piec na drewno) */
@keyframes sn-smoke {
  0% { transform: translate(0, 0) scale(.7); opacity: 0; }
  20% { opacity: .55; }
  100% { transform: translate(7px, -20px) scale(1.6); opacity: 0; }
}
.sn-smoke circle { animation: sn-smoke 3.4s ease-out infinite; }
.sn-smoke circle:nth-of-type(2) { animation-delay: 1.1s; }
.sn-smoke circle:nth-of-type(3) { animation-delay: 2.2s; }

/* delikatne migotanie LED */
@keyframes sn-led { 0%, 100% { opacity: .55; } 50% { opacity: .95; } }
.sn-led { animation: sn-led 3.2s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .sn-heat path, .sn-steam circle, .sn-steam path, .sn-glow, .sn-glow-slow, .sn-smoke circle, .sn-led { animation: none; opacity: .7; }
}

/* ---------- porównanie sesji: dom vs SPA ---------- */
.bal-spa i { background: linear-gradient(90deg, #F0865C, #DD4F2A); }
.bal-home i { background: linear-gradient(90deg, #E89A4B, #C25415); }

/* ---------- banner „rytuał sauna + zimna woda” ---------- */
.ritual-banner {
  position: relative; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: var(--wood-grad); color: #fff;
  border-radius: var(--r-l); padding: 22px 26px;
  box-shadow: 0 18px 44px -16px rgba(194,84,21,.55);
  overflow: hidden;
}
.ritual-banner::before {
  content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  right: -80px; top: -140px; background: radial-gradient(circle, rgba(255,255,255,.22), transparent 65%);
}
.ritual-banner .grant-icon { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); }
.ritual-banner .grant-copy strong { display: block; font-family: var(--font-head); font-size: clamp(1.05rem, 1.8vw, 1.3rem); font-weight: 700; margin-bottom: 3px; }
.ritual-banner .grant-copy span { font-size: 14px; color: rgba(255,255,255,.88); }
.ritual-banner .btn { position: relative; background: #fff; color: var(--wood-deep); box-shadow: 0 8px 22px -8px rgba(0,0,0,.35); }
.ritual-banner .btn:hover { transform: translateY(-1px); filter: none; }

/* karty informacyjne (statyczne, nieklikalne) — jak w nawadnianiu */
.opt-static { cursor: default; }
.opt-static:hover { transform: none; box-shadow: none; border-color: var(--line); }
.opt-static .opt-meta span.inbase { color: var(--ok); border-color: #C8E8D4; background: var(--ok-soft); }
.opt-static[hidden] { display: none; }

/* segmenty 3-opcyjne zawijają się na wąskich ekranach */
@media (max-width: 560px) {
  .seg { flex-wrap: wrap; border-radius: 20px; justify-content: center; }
  .biz-switch { flex-wrap: wrap; }
}

/* ciaśniejszy układ na wąskich ekranach */
@media (max-width: 430px) {
  .nav-in { gap: 8px; }
  .brand { font-size: 15.5px; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn-s { font-size: 12.5px; padding: 8px 12px; }
}

@media print {
  .sauna-legend { border-top: 0; }
  .ritual-banner { display: none !important; }
}
