/* ============================================================
   Calmly — wspólne style / shared styles
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1A2B4A;
  --navy-dark: #142138;
  --sage: #7A9E87;
  --sage-light: #B8D4BF;
  --cream: #F7F5F0;
  --white: #FFFFFF;
  --text: #2C3E50;
  --text-light: #5C6B77;          /* przyciemnione dla kontrastu AA na jasnym tle */
  --sage-text: #4F7060;           /* szałwia do tekstu/etykiet (czytelny kontrast) */
  --border: #E2EAE6;
  --shadow: 0 8px 32px rgba(26,43,74,0.10);
  --radius: 16px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,245,240,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 18px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand, .brand-lockup { display: inline-flex; align-items: center; gap: 8px; }
.brand-mark {
  font-family: 'DM Serif Display', serif;
  font-size: 29px;
  color: var(--navy);
  letter-spacing: -0.5px;
  line-height: 1;
}
/* kluczowa kreska — pionowa szałwiowa linia z logo */
.brand-line { width: 2px; height: 26px; background: var(--sage); border-radius: 1px; flex: none; }
.footer-brand .brand-line { height: 40px; }
.footer-brand .brand-tagline { margin-top: 4px; }
/* opis wyrównany do startu wordmarku (kreska 2px + odstęp 8px) */
.footer-brand > p { margin-left: 10px; }
.brand-tagline { display: block; font-size: 11px; letter-spacing: 2px; color: var(--sage-light); margin-top: 10px; }
/* logo w nawigacji: wordmark + tagline w pionie, kreska po lewej */
.brand-text { display: flex; flex-direction: column; justify-content: center; line-height: 1; }
.nav .brand-line { height: 44px; }
.nav .brand-tagline { margin-top: 5px; font-size: 11px; letter-spacing: 1.4px; color: var(--text-light); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-light);
  padding: 10px 17px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--navy); background: rgba(122,158,135,0.10); }
.nav-links a.active { color: var(--navy); }

.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-toggle { display: flex; border: 1px solid var(--border); border-radius: 30px; overflow: hidden; background: var(--white); }
.lang-toggle button {
  border: none; background: transparent; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  padding: 8px 16px; color: var(--text-light); transition: all .2s;
}
.lang-toggle button.active { background: var(--sage); color: var(--white); }

.nav-cta {
  background: var(--navy); color: var(--white) !important;
  padding: 11px 22px !important; border-radius: 30px;
  font-weight: 600; transition: background .2s;
}
.nav-cta:hover { background: var(--navy-dark) !important; }

.nav-burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-burger span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .25s; }

/* ---------- Layout helpers ---------- */
main { flex: 1; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.section { padding: 80px 0; }
.section.tight { padding: 56px 0; }
.center { text-align: center; }

.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--sage-text); margin-bottom: 16px;
}
h1, h2, h3 { font-family: 'DM Serif Display', serif; color: var(--navy); font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -1px; }
h2 { font-size: clamp(26px, 3.5vw, 38px); letter-spacing: -0.5px; }
h3 { font-size: 21px; }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--text-light); max-width: 620px; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head .lead { margin: 14px auto 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 600; font-size: 15px;
  padding: 14px 28px; border-radius: 30px; cursor: pointer;
  border: 1.5px solid transparent; transition: all .2s; text-align: center;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--sage); background: rgba(122,158,135,0.08); }
.btn-light { background: var(--sage); color: var(--white); }
.btn-light:hover { background: #6a8d76; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--white); overflow: hidden; position: relative; }
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(122,158,135,0.35), transparent 70%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding: 96px 0; position: relative; z-index: 1; }
.hero h1 { color: var(--white); }
.hero .lead { color: var(--sage-light); }
.hero .eyebrow { color: var(--sage-light); }
.hero-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px; padding: 32px; backdrop-filter: blur(4px);
}
.hero-card h3 { color: var(--white); margin-bottom: 18px; }
.hero-stat { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.10); }
.hero-stat:last-child { border-bottom: none; }
.hero-stat .num { font-family: 'DM Serif Display', serif; font-size: 30px; color: var(--white); }
.hero-stat .lbl { font-size: 13px; color: var(--sage-light); text-align: right; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 30px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: var(--sage); box-shadow: var(--shadow); transform: translateY(-2px); }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; background: rgba(122,158,135,0.14);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  color: var(--sage); font-size: 22px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--text-light); }
.card ul { list-style: none; margin-top: 14px; }
.card ul li { font-size: 14px; color: var(--text); padding: 6px 0 6px 24px; position: relative; }
.card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--sage-text); font-weight: 700; }

/* ---------- Band (sage strip) ---------- */
.band { background: var(--sage); color: var(--white); }
.band h2 { color: var(--white); }
.band .lead { color: rgba(255,255,255,0.9); }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 56px 0; flex-wrap: wrap; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.step { position: relative; }
.step .n {
  counter-increment: step; font-family: 'DM Serif Display', serif;
  font-size: 22px; color: var(--white); background: var(--navy);
  width: 44px; height: 44px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; margin-bottom: 16px;
}
.step .n::before { content: counter(step); }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-light); }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px; }
.value { background: var(--white); border: 1.5px solid var(--border); border-radius: 14px; padding: 22px; }
.value h3 { font-size: 17px; margin-bottom: 6px; }
.value p { font-size: 13.5px; color: var(--text-light); }

/* ---------- Pricing (re-used) ---------- */
.section-label { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--sage-text); margin-bottom: 28px; text-align: center; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pcard { background: var(--white); border-radius: var(--radius); padding: 32px 28px; border: 1.5px solid var(--border); transition: border-color .2s, box-shadow .2s; position: relative; }
.pcard:hover { border-color: var(--sage); box-shadow: 0 8px 32px rgba(122,158,135,0.12); }
.pcard.featured { border-color: var(--navy); background: var(--navy); color: var(--white); }
.pcard-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--sage); color: var(--white); font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 14px; border-radius: 20px; white-space: nowrap; }
.pcard-type { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--sage-text); margin-bottom: 8px; }
.pcard.featured .pcard-type { color: var(--sage-light); }
.pcard-name { font-family: 'DM Serif Display', serif; font-size: 22px; color: var(--navy); margin-bottom: 4px; line-height: 1.2; }
.pcard.featured .pcard-name { color: var(--white); }
.pcard-desc { font-size: 13px; color: var(--text-light); margin-bottom: 20px; line-height: 1.5; }
.pcard.featured .pcard-desc { color: var(--sage-light); }
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.pcard.featured .divider { background: rgba(255,255,255,0.15); }
.price-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.price-tier { font-size: 13px; color: var(--text-light); }
.pcard.featured .price-tier { color: var(--sage-light); }
.price-amount { font-size: 18px; font-weight: 600; color: var(--navy); }
.pcard.featured .price-amount { color: var(--white); }
.price-currency { font-size: 13px; font-weight: 400; color: var(--text-light); }
.pcard.featured .price-currency { color: var(--sage-light); }
.pcard-incl { margin-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--sage-text); padding-left: 20px; position: relative; line-height: 1.45; }
.pcard-incl::before { content: "✓"; position: absolute; left: 0; color: var(--sage-text); }
.pcard.featured .pcard-incl { color: var(--sage-light); }
.pcard.featured .pcard-incl::before { color: var(--sage-light); }
.extra-doc { margin-top: 12px; font-size: 12px; color: var(--text-light); padding: 8px 12px; background: var(--cream); border-radius: 8px; }
.pcard.featured .extra-doc { background: rgba(255,255,255,0.08); color: var(--sage-light); }
.custom-note { background: var(--white); border-radius: var(--radius); padding: 28px; border: 1.5px solid var(--border); text-align: center; }
.custom-note p { font-size: 14px; color: var(--text-light); line-height: 1.6; }
.custom-note strong { color: var(--navy); }
.note { text-align: center; font-size: 13px; color: var(--text-light); line-height: 1.7; max-width: 520px; margin: 0 auto; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.info-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.info-item:last-child { border-bottom: none; }
.info-item .ico { width: 40px; height: 40px; flex: none; border-radius: 10px; background: rgba(122,158,135,0.14); color: var(--sage); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.info-item .lbl { font-size: 12px; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; }
.info-item .val { font-size: 16px; color: var(--navy); font-weight: 500; }
.form { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 32px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: 'DM Sans', sans-serif; font-size: 15px; color: var(--text);
  padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; background: var(--cream); transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--sage); background: var(--white); }
.field textarea { resize: vertical; min-height: 120px; }
.form-msg { display: none; margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: rgba(122,158,135,0.16); border: 1px solid var(--sage-light); color: #3c6b4d; font-size: 14.5px; font-weight: 500; text-align: center; }
.form-msg.show { display: block; }
.form-msg.show::before { content: "\2713"; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--sage); color: #fff; font-size: 13px; margin-right: 8px; vertical-align: -5px; }

/* ---------- FAQ ---------- */
.faq-item { background: var(--white); border: 1.5px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 20px 24px; font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .chev { color: var(--sage); transition: transform .25s; font-size: 20px; flex: none; }
.faq-item.open .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 24px 20px; font-size: 14.5px; color: var(--text-light); }

/* ---------- Footer ---------- */
footer { background: var(--navy); color: var(--sage-light); margin-top: auto; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 56px 24px 32px; max-width: 1140px; margin: 0 auto; }
.footer-brand .brand-mark { color: var(--white); }
.footer-brand p { font-size: 13px; margin-top: 12px; max-width: 280px; }
.footer-col h4 { color: var(--white); font-family: 'DM Sans', sans-serif; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; font-weight: 600; }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: var(--sage-light); padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.10); text-align: center; padding: 20px; font-size: 12px; color: var(--sage-light); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav-links { position: fixed; inset: 84px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); border-bottom: 1px solid var(--border); padding: 8px 16px 16px; transform: translateY(-130%); transition: transform .28s; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px; border-radius: 8px; }
  .nav-burger { display: flex; }
  .hero-inner, .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .pricing-grid, .steps, .values, .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero-inner { padding: 64px 0; }
}

/* ---------- Dostępność (a11y) ---------- */
:focus-visible { outline: 2px solid var(--sage-text); outline-offset: 2px; border-radius: 4px; }
.nav-cta:focus-visible, .hero :focus-visible, .band :focus-visible, footer :focus-visible { outline-color: var(--sage-light); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: var(--white); padding: 10px 18px;
  border-radius: 0 0 10px 10px; font-size: 14px; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Karuzela / Carousel ---------- */
.carousel { position: relative; margin: 0 auto; }
.carousel-viewport { overflow: hidden; padding: 4px 2px; }
.carousel-track { display: flex; gap: 22px; transition: transform .45s cubic-bezier(.4,0,.2,1); }
.carousel-slide { flex: 0 0 auto; }
.carousel-panel {
  background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 30px; height: 100%; transition: border-color .2s, box-shadow .2s;
}
.carousel-panel:hover { border-color: var(--sage); box-shadow: var(--shadow); }
.carousel-panel .ico {
  width: 46px; height: 46px; border-radius: 12px; background: rgba(122,158,135,0.14);
  color: var(--sage); font-size: 22px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.carousel-body h3 { font-size: 21px; margin-bottom: 10px; }
.carousel-body p { font-size: 14.5px; color: var(--text-light); }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 28px; }
.carousel-arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--border);
  background: var(--white); color: var(--navy); font-size: 24px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: border-color .2s, background .2s, opacity .2s;
}
.carousel-arrow:hover { border-color: var(--sage); background: rgba(122,158,135,0.08); }
.carousel-arrow:disabled { opacity: .35; cursor: default; }
.carousel-dots { display: flex; align-items: center; gap: 9px; }
.carousel-dot { width: 9px; height: 9px; padding: 0; border: none; border-radius: 50%; background: var(--border); cursor: pointer; transition: background .2s, transform .2s; }
.carousel-dot.active { background: var(--sage); transform: scale(1.25); }
.carousel-panel { display: flex; flex-direction: column; cursor: pointer; }
.carousel-body { flex: 1 1 auto; }
.carousel-price { align-self: flex-start; }
.carousel-panel:hover { transform: translateY(-2px); }
.carousel-more { display: inline-block; margin-top: 16px; font-size: 13.5px; font-weight: 600; color: var(--sage-text); transition: color .2s; }
.carousel-panel:hover .carousel-more { color: var(--navy); }
:target { scroll-margin-top: 96px; }

/* ---------- Modal cennika usługi / Service pricing modal ---------- */
.pricing-grid.one { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay { position: absolute; inset: 0; background: rgba(20,33,56,0.55); }
.modal-dialog {
  position: relative; background: var(--cream); border-radius: 20px;
  max-width: 720px; width: 100%; max-height: 88vh; overflow: auto;
  padding: 40px 36px 32px; box-shadow: 0 24px 64px rgba(20,33,56,0.30);
}
.modal-close {
  position: absolute; top: 14px; right: 16px; width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--border); background: var(--white); color: var(--navy);
  font-size: 22px; line-height: 1; cursor: pointer; transition: border-color .2s, background .2s;
}
.modal-close:hover { border-color: var(--sage); background: rgba(122,158,135,0.08); }
.modal-body .svc-title { font-size: 26px; margin: 6px 0 8px; }
.modal-body .svc-desc { font-size: 15px; color: var(--text-light); margin-bottom: 24px; max-width: 560px; }
.modal-foot { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
@media (max-width: 640px) { .modal-dialog { padding: 32px 22px 26px; } }

/* ---------- Chipsy / wybór szybki w formularzu ---------- */
.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: block; padding: 9px 16px; border: 1.5px solid var(--border); border-radius: 30px;
  font-size: 13.5px; color: var(--text-light); background: var(--white); transition: all .18s; user-select: none;
}
.chip input:hover + span { border-color: var(--sage); }
.chip input:checked + span { border-color: var(--sage); background: rgba(122,158,135,0.14); color: var(--navy); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--sage-text); outline-offset: 2px; }

/* ---------- Potwierdzenie preselekcji usługi ---------- */
.prefill-note { background: rgba(122,158,135,0.14); border: 1px solid var(--sage-light); color: var(--navy); font-size: 13.5px; border-radius: 10px; padding: 12px 14px; margin-bottom: 20px; }
.prefill-note[hidden] { display: none; }

/* ---------- Intro / wejście z logo ---------- */
.intro { position: fixed; inset: 0; z-index: 1000; background: var(--navy); display: flex; align-items: center; justify-content: center; transition: opacity .7s ease, visibility .7s ease; }
.intro.done { opacity: 0; visibility: hidden; }
.intro-lock-up { display: inline-flex; align-items: center; gap: 14px; opacity: 0; transform: translateY(10px) scale(.96); animation: introIn .9s .1s cubic-bezier(.2,.7,.2,1) forwards; }
.intro-line { width: 3px; height: 56px; background: var(--sage); border-radius: 2px; }
.intro-text { display: flex; flex-direction: column; line-height: 1; }
.intro-mark { font-family: 'DM Serif Display', serif; font-size: 48px; color: #fff; letter-spacing: -1px; line-height: 1; }
.intro-tag { font-size: 12px; letter-spacing: 2.5px; color: var(--sage-light); margin-top: 9px; }
@keyframes introIn { to { opacity: 1; transform: none; } }
body.intro-lock { overflow: hidden; }
body.intro-reveal .hero-inner { animation: introReveal .8s .05s ease both; }
@keyframes introReveal { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }

/* ---------- Kontakt z usługi: wyśrodkowany formularz ---------- */
.contact-grid.centered { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
.contact-grid.centered .contact-info { display: none; }

/* ---------- Rozliczenia dodatkowe (cennik) ---------- */
.extras-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 28px; margin-top: 10px; }
.extra-item { font-size: 14px; color: var(--text); padding: 9px 0 9px 26px; position: relative; border-bottom: 1px solid var(--border); }
.extra-item::before { content: "+"; position: absolute; left: 0; color: var(--sage-text); font-weight: 700; }
@media (max-width: 640px) { .extras-grid { grid-template-columns: 1fr; } }

/* ---------- Karty cennika jako linki do formularza ---------- */
.pcard { display: block; cursor: pointer; }
.pcard:hover { transform: translateY(-2px); }

/* ---------- Boczny pasek wyceny (cennik) ---------- */
.quote-side {
  position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 95;
  background: var(--sage); color: #fff; font-weight: 600; font-size: 15px;
  padding: 20px 13px; border-radius: 0 14px 14px 0; box-shadow: 6px 0 26px rgba(26,43,74,0.28);
  transition: opacity .3s ease, transform .3s ease, background .2s, padding .2s;
}
.quote-side.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-50%) translateX(-120%); }
.quote-side span { writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .4px; }
.quote-side:hover { background: #6a8d76; padding-right: 17px; }
.quote-side:focus-visible { outline: 2px solid var(--sage-light); outline-offset: 2px; }
@media (max-width: 760px) {
  .quote-side { top: auto; bottom: 0; left: 0; right: 0; transform: none; border-radius: 0; text-align: center; padding: 14px; box-shadow: 0 -6px 24px rgba(26,43,74,0.18); }
  .quote-side span { writing-mode: horizontal-tb; transform: none; }
  .quote-side.is-hidden { transform: translateY(120%); }
}

/* ---------- Oś czasu / Timeline (4 kroki) ---------- */
.steps { position: relative; }
.steps::before { content: ""; position: absolute; top: 21px; left: 12.5%; right: 12.5%; height: 2px; background: var(--border); z-index: 0; }
.step { position: relative; z-index: 1; text-align: center; }
.step .n { margin-left: auto; margin-right: auto; box-shadow: 0 0 0 7px var(--cream); }
@media (max-width: 880px) { .steps::before { display: none; } }

/* ---------- Boczny szybki kontakt (telefon + e-mail) ---------- */
.side-contact { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 95; display: flex; flex-direction: column; background: var(--sage); border-radius: 16px 0 0 16px; box-shadow: -6px 0 22px rgba(26,43,74,0.22); overflow: hidden; }
.side-contact .sc-btn { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; color: #fff; transition: background .2s; }
.side-contact .sc-btn:hover { background: #6a8d76; }
.side-contact .sc-btn + .sc-btn { border-top: 1px solid rgba(255,255,255,0.18); }
.side-contact .sc-btn svg { width: 30px; height: 30px; display: block; }
.sc-phone svg { transform-origin: center; animation: phoneRing 5s ease-in-out infinite; }
.sc-phone:hover svg { animation: phoneRing 0.7s ease-in-out infinite; }
@keyframes phoneRing { 0%, 86%, 100% { transform: rotate(0); } 88% { transform: rotate(-13deg); } 90% { transform: rotate(11deg); } 92% { transform: rotate(-9deg); } 94% { transform: rotate(7deg); } 96% { transform: rotate(0); } }
.sc-mail svg { transform-origin: center; animation: mailNudge 5s ease-in-out infinite; }
.sc-mail:hover svg { animation: mailNudge 1.2s ease-in-out infinite; }
@keyframes mailNudge { 0%, 40%, 100% { transform: translateY(0) rotate(0); } 46% { transform: translateY(-3px) rotate(-4deg); } 52% { transform: translateY(0) rotate(0); } }
@media (max-width: 640px) { .side-contact .sc-btn { width: 52px; height: 52px; } .side-contact .sc-btn svg { width: 26px; height: 26px; } }

/* ---------- Cena przy usłudze (karuzela) ---------- */
.carousel-price { display: inline-block; margin-top: 16px; padding: 7px 15px; border-radius: 30px; background: rgba(122,158,135,0.18); color: var(--navy); font-size: 15.5px; font-weight: 700; }
/* ---------- Link w kafelku branży ---------- */
.card-link { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--sage-text); transition: color .2s; }
.card:hover .card-link { color: var(--navy); }

/* ---------- Kafelek branży jako link ---------- */
a.card { display: block; }

/* ---------- Notka pod „Dla kogo" ---------- */
.dla-kogo-note { margin-top: 26px; font-size: 15px; color: var(--text-light); }

/* ---------- Zgoda RODO ---------- */
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-light); font-weight: 400; cursor: pointer; line-height: 1.5; }
.consent input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--sage); }
.consent a { color: var(--sage-text); font-weight: 600; text-decoration: underline; }

/* ---------- Strona prawna ---------- */
.legal h2 { font-size: 22px; margin: 28px 0 8px; }
.legal p { font-size: 15px; color: var(--text-light); margin-bottom: 6px; }
.legal-note { background: rgba(122,158,135,0.14); border: 1px solid var(--sage-light); border-radius: 10px; padding: 12px 14px; color: var(--navy) !important; font-size: 13.5px; }

/* ---------- Nowy cennik: pakiety / w cenie / dodatki ---------- */
.pricing-grid.three { grid-template-columns: repeat(3, 1fr); }
.def-note { margin-top: 20px; font-size: 13px; color: var(--text-light); line-height: 1.6; background: var(--cream); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.incl-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; margin: 0; }
.incl-list li { font-size: 14.5px; color: var(--text); padding: 4px 0 4px 24px; position: relative; }
.incl-list li::before { content: "✓"; position: absolute; left: 0; color: var(--sage-text); font-weight: 700; }
.addon-list { display: flex; flex-direction: column; }
.addon { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.addon:last-child { border-bottom: none; }
.addon > span:first-child { color: var(--text); }
.addon .addon-price { color: var(--navy); font-weight: 700; white-space: nowrap; }
@media (max-width: 640px) { .pricing-grid.three { grid-template-columns: 1fr; } .incl-list { grid-template-columns: 1fr; } }

/* ---------- Komunikat błędu formularza ---------- */
.form-err { display: none; background: #fceaea; border: 1px solid #f0b8b8; color: #A32D2D; }
.form-err.show { display: block; }
.form-err::before { content: none; }
