/* =====================================================================
   SZABLON DENTYSTA — nowoczesny, miękki, medyczny.
   Akcent sterowany z dane.js (kolory.primary/accent). Reszta stała.
   ===================================================================== */
:root {
  --c-bg:       #ffffff;
  --c-mint:     #eef9f7;
  --c-ink:      #0c2e2b;
  --c-muted:    #5c7a77;
  --c-primary:  #0d9488;
  --c-primary-d:#0a766c;
  --c-accent:   #14b8a6;
  --c-line:     #e1efec;
  --c-soft:     #d6f1ec;

  --grad: linear-gradient(135deg, #16b8a6 0%, #0d9488 100%);
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --r:    24px;
  --r-lg: 34px;
  --r-sm: 16px;
  --sh-sm: 0 8px 24px -12px rgba(13,148,136,.4);
  --sh:    0 30px 70px -30px rgba(12,46,43,.3);
  --maxw: 1180px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--c-ink); background: var(--c-bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

.kicker { display: inline-block; font-weight: 600; font-size: .82rem; letter-spacing: .04em; color: var(--c-primary); margin-bottom: 14px; }
.pill { display: inline-block; font-weight: 600; font-size: .8rem; color: var(--c-primary); background: var(--c-soft); padding: 8px 16px; border-radius: 100px; margin-bottom: 22px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: .96rem; padding: 14px 28px; border-radius: 100px; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: transform .18s ease, box-shadow .25s ease, background .2s ease; }
.btn-lg { padding: 17px 34px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--sh-sm); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -14px rgba(13,148,136,.6); }
.btn-soft { background: var(--c-soft); color: var(--c-primary-d); }
.btn-soft:hover { transform: translateY(-3px); background: #c7ece6; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--c-line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-ico { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; box-shadow: var(--sh-sm); }
.brand-ico svg { width: 22px; height: 22px; color: #fff; }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--c-ink); }
.nav { display: flex; gap: 30px; }
.nav a { color: var(--c-ink); text-decoration: none; font-size: .95rem; font-weight: 500; opacity: .85; }
.nav a:hover { color: var(--c-primary); opacity: 1; }
.header-cta { padding: 11px 24px; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--c-ink); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 70px 0 90px; }
.hero-blob { position: absolute; top: -240px; right: -180px; width: 760px; height: 760px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(20,184,166,.22), rgba(13,148,136,.05) 60%, transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-text h1 { margin-bottom: 22px; }
.hero-text .lead { font-size: 1.18rem; color: var(--c-muted); max-width: 500px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-mini { display: flex; gap: 36px; margin-top: 40px; flex-wrap: wrap; }
.hero-mini .m strong { font-family: var(--font-head); font-size: 1.7rem; color: var(--c-primary); display: block; line-height: 1; }
.hero-mini .m span { font-size: .86rem; color: var(--c-muted); }

.hero-media { position: relative; }
.hero-img { aspect-ratio: 4/5; border-radius: var(--r-lg); background-size: cover; background-position: center; box-shadow: var(--sh); }
.float-card { position: absolute; background: #fff; border-radius: var(--r-sm); box-shadow: var(--sh); }
.float-rating { left: -28px; bottom: 56px; display: flex; align-items: center; gap: 14px; padding: 16px 20px; }
.float-rating strong { font-family: var(--font-head); font-size: 2rem; color: var(--c-ink); line-height: 1; }
.float-rating .stars { color: #f5a623; letter-spacing: 1px; font-size: .9rem; display: block; }
.float-rating small { color: var(--c-muted); font-size: .8rem; }
.float-exp { top: 36px; right: -22px; padding: 14px 20px; font-weight: 600; color: var(--c-primary-d); font-size: .92rem; }

/* Sections */
.section { padding: 96px 0; }
.section-mint { background: var(--c-mint); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-sub { color: var(--c-muted); margin-top: 14px; font-size: 1.08rem; }

/* Cechy */
.cechy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cecha { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r); padding: 30px; transition: transform .2s ease, box-shadow .25s ease; }
.cecha:hover { transform: translateY(-6px); box-shadow: var(--sh); }
.cecha-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--c-soft); display: grid; place-items: center; margin-bottom: 20px; }
.cecha-ico svg { width: 28px; height: 28px; color: var(--c-primary); }
.cecha h3 { margin-bottom: 8px; }
.cecha p { color: var(--c-muted); font-size: .94rem; }

/* Zabiegi */
.zabiegi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.zabieg { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r); padding: 30px; display: flex; flex-direction: column; gap: 12px; transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease; }
.zabieg:hover { transform: translateY(-6px); box-shadow: var(--sh); border-color: transparent; }
.zabieg-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; box-shadow: var(--sh-sm); }
.zabieg-ico svg { width: 26px; height: 26px; color: #fff; }
.zabieg h3 { margin-top: 6px; }
.zabieg p { color: var(--c-muted); font-size: .92rem; flex: 1; }

/* O nas */
.onas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.onas-img { aspect-ratio: 5/4; border-radius: var(--r-lg); background-size: cover; background-position: center; box-shadow: var(--sh); }
.onas-text h2 { margin-bottom: 18px; }
.onas-text > p { color: var(--c-muted); font-size: 1.05rem; }
.checklist { list-style: none; margin: 26px 0; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 38px; font-weight: 500; }
.checklist li::before { content: ""; position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%; background: var(--c-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230d9488' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/15px no-repeat; }

/* Zespół */
.zespol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.lekarz { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r); overflow: hidden; transition: transform .2s ease, box-shadow .25s ease; }
.lekarz:hover { transform: translateY(-6px); box-shadow: var(--sh); }
.lekarz-img { aspect-ratio: 1/1; background-size: cover; background-position: center top; }
.lekarz-info { padding: 24px; }
.lekarz-info strong { font-family: var(--font-head); font-size: 1.15rem; display: block; }
.lekarz-info span { color: var(--c-primary); font-size: .9rem; font-weight: 500; }
.lekarz-info p { color: var(--c-muted); font-size: .9rem; margin-top: 10px; }

/* Proces */
.proces-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.krok { text-align: center; padding: 16px; position: relative; }
.krok-nr { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: #fff; border: 2px solid var(--c-soft); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--c-primary); box-shadow: var(--sh-sm); }
.krok h3 { margin-bottom: 10px; }
.krok p { color: var(--c-muted); font-size: .95rem; max-width: 300px; margin: 0 auto; }

/* Opinie */
.opinie-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.opinia { background: #fff; border-radius: var(--r); padding: 30px; box-shadow: var(--sh-sm); }
.opinia .stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 14px; display: block; }
.opinia p { font-size: 1rem; }
.opinia .autor { margin-top: 18px; font-weight: 600; color: var(--c-ink); }
.opinia .autor span { display: block; font-weight: 400; color: var(--c-muted); font-size: .86rem; }

/* Cennik */
.cennik-card { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 16px 36px; box-shadow: var(--sh); }
.cennik-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--c-line); }
.cennik-row:last-child { border-bottom: none; }
.cennik-row .nazwa { font-weight: 600; }
.cennik-row .nazwa small { display: block; font-weight: 400; color: var(--c-muted); font-size: .85rem; }
.cennik-row .cena { font-family: var(--font-head); font-weight: 700; color: var(--c-primary); white-space: nowrap; font-size: 1.1rem; }

/* FAQ */
.faq { max-width: 800px; }
.faq details { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-sm); padding: 20px 24px; margin-bottom: 12px; }
.faq summary { font-family: var(--font-head); font-weight: 600; cursor: pointer; list-style: none; position: relative; padding-right: 32px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.5rem; color: var(--c-primary); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--c-muted); }

/* Kontakt */
.kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.kontakt-info h2 { margin-bottom: 24px; }
.kontakt-list { list-style: none; margin-bottom: 28px; }
.kontakt-list li { display: flex; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--c-line); }
.kontakt-list span:first-child { width: 80px; color: var(--c-muted); font-size: .88rem; }
.kontakt-list a { color: var(--c-ink); text-decoration: none; font-weight: 500; }
.kontakt-list a:hover { color: var(--c-primary); }
.godziny { margin: 24px 0; }
.godziny h3 { margin-bottom: 10px; }
.godziny table { width: 100%; border-collapse: collapse; }
.godziny td { padding: 8px 0; font-size: .95rem; border-bottom: 1px solid var(--c-line); }
.godziny td:last-child { text-align: right; color: var(--c-muted); }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 44px; height: 44px; border-radius: 50%; background: var(--c-soft); display: grid; place-items: center; text-decoration: none; color: var(--c-primary-d); font-weight: 600; font-size: .82rem; transition: background .2s ease, color .2s ease; }
.social a:hover { background: var(--grad); color: #fff; }
.kontakt-side { position: sticky; top: 100px; }
.kontakt-side .btn { margin-bottom: 18px; }
.kontakt-map iframe { width: 100%; height: 380px; border: 0; border-radius: var(--r); box-shadow: var(--sh); }

/* Footer */
.site-footer { padding: 36px 0; border-top: 1px solid var(--c-line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--c-muted); font-size: .9rem; }
.footer-credit a { color: var(--c-primary); text-decoration: none; }

/* Sticky call bar */
.call-bar { display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; background: var(--grad); color: #fff; text-align: center; padding: 16px; border-radius: 100px; text-decoration: none; font-weight: 600; box-shadow: 0 16px 34px -12px rgba(13,148,136,.7); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s ease, transform .75s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .onas-grid, .kontakt-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-media { max-width: 460px; }
  .cechy-grid { grid-template-columns: 1fr 1fr; }
  .zabiegi-grid, .zespol-grid, .opinie-grid, .proces-grid { grid-template-columns: 1fr 1fr; }
  .kontakt-side { position: static; }
  .onas-img { order: 2; }
}
@media (max-width: 680px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .nav.open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 74px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--c-line); padding: 8px 24px; }
  .nav.open a { padding: 13px 0; border-bottom: 1px solid var(--c-line); }
  .cechy-grid, .zabiegi-grid, .zespol-grid, .opinie-grid, .proces-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .float-rating { left: 0; bottom: -20px; }
  .float-exp { right: 0; top: 16px; }
  .call-bar { display: block; }
  body { padding-bottom: 84px; }
}
