/* Mae Clinic – wspólny styl dokumentów (cenniki, zgody, zalecenia) */
:root{
  --bg:#FAF8F5;--sheet:#fff;--ink:#2C2C2C;--ink-soft:#5c5c5c;
  --gold:#C9A87C;--gold-deep:#8c6a2b;--line:#E8DDD0;--price:#005644;
}
*{margin:0;padding:0;box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{background:var(--bg);color:var(--ink);font-family:'Inter','Segoe UI',Arial,sans-serif;font-weight:400;font-size:12.5px;line-height:1.55;display:flex;flex-direction:column;align-items:center;padding:28px 16px 40px}

/* pasek z przyciskiem (nie drukuje się) */
.toolbar{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-bottom:22px}
.toolbar button,.toolbar a{font-family:inherit;font-weight:500;font-size:14px;letter-spacing:.3px;padding:12px 30px;border-radius:100px;cursor:pointer;text-decoration:none;border:1px solid var(--gold);transition:background .2s,color .2s}
.toolbar .print{background:var(--gold);color:var(--ink)}
.toolbar .print:hover{background:var(--gold-deep);border-color:var(--gold-deep);color:#fff}
.toolbar .back{background:#fff;color:var(--ink);border-color:var(--line)}
.toolbar .back:hover{border-color:var(--gold);background:var(--bg)}

/* arkusz = biała karta jak na stronie */
.sheet{width:100%;max-width:210mm;background:var(--sheet);border-radius:24px;padding:44px 52px 30px;display:flex;flex-direction:column;box-shadow:0 12px 40px rgba(44,44,44,.07)}
.sheet + .sheet{margin-top:28px}

/* nagłówek */
.doc-head{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:28px}
.doc-head .services{list-style:none;font-weight:500;font-size:13px;line-height:1.75;color:var(--ink)}
.doc-head .services.left{text-align:right}
.doc-head .services.left li::after{content:"";margin-left:7px}
.doc-head .services.right li::before{content:"";margin-right:7px}
.doc-logo{display:block;width:120px;height:120px;border-radius:50%;object-fit:cover;background:#fff}
.head-rule{border:none;border-top:1px solid var(--gold);margin:26px 0 24px}

/* tytuły */
.doc-title{font-family:'Playfair Display',Georgia,serif;font-weight:400;font-size:24px;line-height:1.25;letter-spacing:.2px;text-align:center;color:var(--ink);margin-bottom:6px}
.doc-subtitle{text-align:center;color:var(--gold-deep);font-size:11px;font-weight:600;letter-spacing:2px;text-transform:uppercase;margin-bottom:22px}
.doc-title + .doc-subtitle{margin-top:2px}
h2,h3{font-family:'Playfair Display',Georgia,serif;font-weight:400;color:var(--ink);line-height:1.3}
h2{font-size:19px;margin:22px 0 10px}
h3{font-size:16px;margin:18px 0 8px}
.sheet p{margin-bottom:10px}

/* wstęp */
.lead{font-size:12.5px;color:var(--ink-soft);text-align:center;max-width:560px;margin:0 auto 22px;line-height:1.6}
.lead strong{color:var(--ink);font-weight:600}

/* lista cen */
ol.price{list-style:none;counter-reset:item}
ol.price li{counter-increment:item;position:relative;padding:7px 0 7px 34px;font-size:12.5px;line-height:1.5;border-bottom:1px solid #f1ebe2;break-inside:avoid;page-break-inside:avoid}
ol.price li:last-child{border-bottom:none}
ol.price li::before{content:counter(item) ".";position:absolute;left:0;top:7px;width:24px;text-align:right;font-weight:600;color:var(--gold-deep)}
.price b{color:var(--price);font-weight:600}

/* stopka */
.foot{margin-top:auto;padding-top:26px}
.foot-rule{border:none;border-top:1px solid var(--gold);margin-bottom:12px}
.foot p{text-align:center;font-weight:500;font-size:11.5px;line-height:1.6;color:var(--ink-soft);margin:0}
.foot .sep{color:var(--gold);margin:0 7px}

/* zgody i zalecenia: punkty, ramka z uwagą, podpis */
.doc-body{font-size:12.5px;line-height:1.6}
.doc-body h2{font-size:17px;margin:20px 0 8px}
.doc-body p{margin-bottom:9px}
ul.points{list-style:none;margin:0 0 12px}
ul.points li{position:relative;padding:3px 0 3px 18px}
ul.points li::before{content:"";position:absolute;left:2px;top:.72em;width:6px;height:6px;border-radius:50%;background:var(--gold)}
.note{background:var(--bg);border-left:3px solid var(--gold);border-radius:0 12px 12px 0;padding:12px 16px;margin:14px 0}
.sign{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-top:34px}
.sign div{border-top:1px solid var(--ink);padding-top:6px;font-size:11px;color:var(--ink-soft);text-align:center}
@media (max-width:640px){.doc-body{font-size:12px}.doc-body h2{font-size:16px}.sign{grid-template-columns:1fr;gap:30px}}
@media print{.doc-body{font-size:9.8pt;line-height:1.4}.doc-body h2{font-size:12pt;margin:4mm 0 2mm}.note{padding:2.5mm 4mm;margin:3mm 0}.sign{margin-top:12mm}.sign div{font-size:8.5pt}h2,h3{break-after:avoid;page-break-after:avoid}}

/* telefon */
@media (max-width:640px){
  body{padding:16px 10px 28px}
  .toolbar{margin-bottom:16px}
  .toolbar button,.toolbar a{font-size:13px;padding:11px 24px}
  .sheet{border-radius:20px;padding:26px 18px 20px}
  .sheet + .sheet{margin-top:18px}
  .doc-head{grid-template-columns:1fr;gap:14px;justify-items:center}
  .doc-logo{order:-1;width:96px;height:96px}
  .doc-head .services,.doc-head .services.left{text-align:center;font-size:12.5px;line-height:1.7}
  .doc-head .services.left li::after{content:none}
  .doc-head .services li::before,.doc-head .services.left li::before{content:"";margin-right:6px}
  .doc-head .services.left{order:1;padding-top:10px;border-top:1px solid var(--line);width:100%}
  .head-rule{margin:18px 0 18px}
  .doc-title{font-size:19px}
  .doc-subtitle{font-size:10px;letter-spacing:1.6px;margin-bottom:16px}
  .lead{font-size:12px;margin-bottom:16px}
  ol.price li{font-size:12px;padding:7px 0 7px 28px}
  ol.price li::before{width:20px}
  .foot p{font-size:11px}
  .foot .sep{margin:0 4px}
}

/* druk / PDF – A4 */
@media print{
  @page{size:A4;margin:0}
  body{padding:0;background:#fff;display:block;font-size:10pt}
  .toolbar{display:none}
  .sheet{box-shadow:none;border-radius:0;max-width:none;width:auto;min-height:auto;padding:13mm 17mm 9mm;margin:0;page-break-after:always}
  .sheet + .sheet{margin-top:0}
  .sheet:last-of-type{page-break-after:auto}
  .doc-head{gap:8mm}
  .doc-head .services{font-size:10.5pt;line-height:1.65}
  .doc-logo{width:32mm;height:32mm}
  .head-rule{border-top-width:1pt;margin:4mm 0 4mm}
  .doc-title{font-size:15pt;margin-bottom:1mm}
  .doc-subtitle{font-size:8.5pt;margin-bottom:3mm}
  .lead{font-size:9.6pt;margin-bottom:3.5mm;max-width:none}
  ol.price li{font-size:9.6pt;line-height:1.3;padding:.6mm 0 .6mm 8mm;border-bottom:none}
  ol.price li::before{top:.6mm;width:6mm}
  .compact .sheet{padding:11mm 16mm 8mm}
  .compact .doc-head .services{font-size:10pt;line-height:1.55}
  .compact .doc-logo{width:28mm;height:28mm}
  .compact .head-rule{margin:3mm 0 3mm}
  .compact .lead{font-size:9pt;line-height:1.35}
  .compact ol.price li{font-size:9pt;line-height:1.17;padding:.1mm 0 .1mm 7mm;letter-spacing:-.05pt}
  .compact ol.price li::before{top:.1mm;width:5.5mm}
  .foot{padding-top:2mm}
  .foot-rule{border-top-width:1pt;margin-bottom:1.5mm}
  .foot p{font-size:9pt;line-height:1.2}
}
.doc-logo{border-radius:0!important;object-fit:contain!important;background:transparent!important}

/* gwiazdka jak w logo (rysowana, bez znaku emoji – iPhone zamieniał ✳ na zielony kwadrat) */
.doc-head .services.left li::after,.doc-head .services.right li::before,.foot .sep::before{content:"";display:inline-block;width:.72em;height:.72em;vertical-align:-.02em;background:var(--gold);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 1.5v21M1.5 12h21M5.6 5.6l12.8 12.8M18.4 5.6L5.6 18.4'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 1.5v21M1.5 12h21M5.6 5.6l12.8 12.8M18.4 5.6L5.6 18.4'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat}
.foot .sep{font-size:0;display:inline-block;margin:0 7px;vertical-align:middle}
.foot .sep::before{width:9px;height:9px;vertical-align:middle}
@media (max-width:640px){.doc-head .services li::before,.doc-head .services.left li::before{content:"";display:inline-block;width:.72em;height:.72em;vertical-align:-.02em;background:var(--gold);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 1.5v21M1.5 12h21M5.6 5.6l12.8 12.8M18.4 5.6L5.6 18.4'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 1.5v21M1.5 12h21M5.6 5.6l12.8 12.8M18.4 5.6L5.6 18.4'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat}.doc-head .services.left li::after{content:none}.foot .sep{margin:0 4px}}
@media print{.doc-head .services li::before,.doc-head .services li::after,.foot .sep::before{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

/* sekcje dokumentów informacyjnych (np. profilaktyka): nagłówek sekcji + tekst w jasnym polu */
.section{margin:0 0 14px}
.section h2{font-family:'Playfair Display',Georgia,serif;font-weight:400;font-size:17px;line-height:1.3;color:var(--ink);text-align:center;margin:18px 0 8px;letter-spacing:.2px}
.section h2 small{display:block;font-family:'Inter',sans-serif;font-size:11.5px;font-weight:500;letter-spacing:.3px;color:var(--gold-deep);margin-top:3px}
.section.warn h2{color:#a4532c}
.section.warn h2 small{color:#a4532c}
.section p{background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:9px 14px;margin:0 0 6px;text-align:center}
.section p:last-child{margin-bottom:0}
.section.warn p{background:#fbf1ec;border-color:#f0d9cc}
.drug{font-weight:600;color:var(--price)}
.section.warn .drug{color:#a4532c}
.note{font-size:.92em;color:var(--ink-soft);font-style:italic}
.lead strong{color:var(--ink)}
@media (max-width:640px){.section h2{font-size:16px}.section p{padding:8px 11px}}
@media print{.section{margin:0 0 2.6mm}.section h2{font-size:12pt;margin:3.2mm 0 1.8mm}.section h2 small{font-size:8.5pt}.section p{font-size:9.8pt;line-height:1.35;padding:1.6mm 3mm;margin:0 0 1.4mm;border-radius:8px;-webkit-print-color-adjust:exact;print-color-adjust:exact}}
.section .note{display:inline!important;background:none!important;border:0!important;border-radius:0!important;padding:0!important;margin:0!important}

/* ===== Zgody i zalecenia: formularze (v6) ===== */
.form{font-size:12.5px;line-height:1.6}
.form p{margin:0 0 8px}
.form h2.part{font-family:'Inter',sans-serif;font-size:11.5px;font-weight:600;letter-spacing:.11em;line-height:1.45;color:var(--gold-deep);text-align:center;background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:8px 14px;margin:24px 0 12px}
.form h2.part:first-child{margin-top:4px}
.form h2.part.warn{color:#a4532c;background:#fbf1ec;border-color:#f0d9cc}
.form ol.num,.form ul.dash,.form ul.checks{list-style:none;margin:0 0 10px;padding:0}
.form ol.num>li{position:relative;padding-left:26px;margin-bottom:5px}
.form ol.num>li::before{content:attr(data-n);position:absolute;left:0;top:0;color:var(--gold-deep);font-weight:600;font-variant-numeric:tabular-nums}
.form ol.num .sub{display:block;margin-top:3px;padding-left:12px;border-left:2px solid var(--line)}
.form ul.dash>li{position:relative;padding-left:22px;margin-bottom:4px}
.form ul.dash>li::before{content:"–";position:absolute;left:6px;top:0;color:var(--gold-deep)}
.form ul.checks>li{position:relative;padding-left:26px;margin-bottom:6px}
.form ul.checks>li::before{content:"";position:absolute;left:0;top:.22em;width:13px;height:13px;box-sizing:border-box;border:1.3px solid var(--gold-deep);border-radius:3px;background:#fff}
.form ul.checks>li.on::after{content:"";position:absolute;left:4.6px;top:calc(.22em + 2px);width:3.5px;height:7px;border:solid var(--gold-deep);border-width:0 2px 2px 0;transform:rotate(45deg)}
.form ul.points{margin:0 0 10px}
.form .field,.form .sigline{display:flex;align-items:flex-end;gap:10px;margin:14px 0 8px}
.form .field.indent{margin-left:26px}
.form .field span,.form .sigline span{flex:1 1 auto;max-width:300px;height:1.3em;border-bottom:1px solid var(--ink)}
.form .sigs{display:grid;grid-template-columns:1fr 1fr;gap:34px;margin:20px 0 6px}
.form .sigs div{padding-bottom:36px;border-bottom:1px solid var(--ink);font-size:11.5px}
@media (max-width:640px){.form{font-size:12px}.form h2.part{font-size:11px;padding:7px 10px}.form .sigs{grid-template-columns:1fr;gap:24px}.form .field,.form .sigline{flex-wrap:wrap;gap:4px}.form .field span,.form .sigline span{flex:1 1 100%;max-width:none;height:1.8em}}
@media print{.form{font-size:9.6pt;line-height:1.38}.form p{margin:0 0 1.6mm}.form h2.part{font-size:8.4pt;padding:1.5mm 3mm;margin:4.5mm 0 2.4mm;border-radius:6px;-webkit-print-color-adjust:exact;print-color-adjust:exact;break-after:avoid;page-break-after:avoid}.form ol.num>li,.form ul.dash>li,.form ul.checks>li{margin-bottom:1mm;break-inside:avoid}.form .sigs,.form .sigline,.form .field{break-inside:avoid}.form .sigs div{padding-bottom:10mm}}

/* Telefon: w nagłówku samo logo, dane kontaktowe są w stopce (prośba klienta 10.11.2026) */
@media (max-width:640px){.doc-head .services{display:none}.doc-head{gap:0}}
