/*
Theme Name: MedESTica Kadence Child
Theme URI: https://medestica.pl/
Author: MedESTica – Bielscy Centrum Medyczne
Description: Edytowalny motyw potomny Kadence dla serwisu MedESTica. Treść stron pozostaje w blokach Gutenberga.
Template: kadence
Version: 1.2.6
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: medestica-kadence-child
*/

:root {
  --med-pink: var(--global-palette1, #d94c83);
  --med-pink-dark: var(--global-palette2, #bd3168);
  --med-ink: var(--global-palette3, #262124);
  --med-muted: var(--global-palette5, #746b70);
  --med-cream: var(--global-palette8, #fbf8f6);
  --med-soft: #fff5f8;
  --med-line: #eee4e7;
  --med-white: #ffffff;
  --med-shadow: 0 18px 60px rgb(91 52 68 / 10%);
  --med-width: 1220px;
  --med-serif: Georgia, "Times New Roman", serif;
}

html { scroll-behavior: smooth; }
body { color: var(--med-ink); background: var(--med-white); overflow-x: clip; }
body, button, input, textarea, select { font-family: Arial, Helvetica, sans-serif; }
.medestica-canvas, .med-template-content { overflow-x: clip; }
.medestica-canvas > .entry-content { margin: 0; }
.medestica-canvas > .entry-content > *, .med-template-content > * { margin-block-start: 0; }
.med-shell { width: min(var(--med-width), calc(100% - 48px)); margin-inline: auto; }
.med-shell-wide { width: min(1380px, calc(100% - 48px)); margin-inline: auto; }
.med-shell-narrow { width: min(850px, calc(100% - 48px)); margin-inline: auto; }
.med-section { padding-block: clamp(78px, 9vw, 125px); }
.med-section-soft { background: linear-gradient(180deg, #fff9fb, #fdf8f8); }
.med-centered { text-align: center; }
.med-centered .wp-block-buttons { justify-content: center; }
.med-section-heading { max-width: 720px; margin: 0 auto 45px; text-align: center; }
.med-section-heading p:not(.med-eyebrow) { max-width: 610px; margin: 18px auto 0; }
.medestica-canvas h1, .medestica-canvas h2, .med-template-content h1, .med-template-content h2 {
  font-family: var(--med-serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.025em;
}
.medestica-canvas h1, .med-template-content h1 { font-size: clamp(42px, 5vw, 76px); }
.medestica-canvas h2, .med-template-content h2 { font-size: clamp(32px, 3.6vw, 51px); }
.medestica-canvas h3, .med-template-content h3 { font-size: 18px; line-height: 1.25; }
.medestica-canvas p, .med-template-content p { color: var(--med-muted); line-height: 1.7; }
.med-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--med-pink) !important;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.med-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* Globalny nagłówek pozostaje nagłówkiem Kadence, edytowanym w jego kreatorze. */
#masthead { position: relative; z-index: 50; background: var(--med-white); }
#masthead .site-main-header-wrap,
#masthead .site-header-row-container-inner { background: var(--med-white); }
#masthead .site-container { max-width: 1380px; }
#masthead .site-branding img { max-width: 185px; height: auto; }
#masthead .primary-navigation .primary-menu-container > ul { gap: clamp(8px, 1.25vw, 21px); }
#masthead .primary-navigation .menu-item > a { font-size: 13px; color: #51494d; }
#masthead .primary-navigation .menu-item > a:hover { color: var(--med-pink); }
#masthead .med-menu-cta > a {
  min-height: 42px;
  margin-left: 8px;
  padding: 10px 17px !important;
  border-radius: 10px;
  background: var(--med-pink);
  color: var(--med-white) !important;
  font-weight: 700;
}
#masthead .med-menu-cta > a:hover { background: var(--med-pink-dark); }

/* Wszystkie przyciski są zwykłymi, edytowalnymi blokami core/buttons. */
.medestica-canvas .wp-block-button__link,
.med-template-content .wp-block-button__link,
.med-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 23px;
  border: 1px solid var(--med-pink);
  border-radius: 11px;
  background: var(--med-pink);
  color: var(--med-white);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.medestica-canvas .wp-block-button__link:hover,
.med-template-content .wp-block-button__link:hover,
.med-form-submit:hover { transform: translateY(-2px); background: var(--med-pink-dark); box-shadow: 0 10px 25px rgb(217 76 131 / 20%); }
.medestica-canvas .wp-block-button.is-style-outline .wp-block-button__link,
.med-template-content .wp-block-button.is-style-outline .wp-block-button__link { border-color: var(--med-pink); color: var(--med-pink); background: transparent; }
.medestica-canvas .wp-block-button.is-style-outline .wp-block-button__link:hover,
.med-template-content .wp-block-button.is-style-outline .wp-block-button__link:hover { color: var(--med-white); background: var(--med-pink); }

/* Hero jest blokiem core/cover; obraz można wymienić w edytorze strony. */
.med-hero.wp-block-cover { min-height: 555px; padding: 80px max(24px, calc((100vw - var(--med-width)) / 2)) 48px; background: #fbf9f8; }
.med-hero > .wp-block-cover__image-background { object-fit: cover !important; object-position: right center; }
.med-hero > .wp-block-cover__background { opacity: 1 !important; background: linear-gradient(90deg, #fbf9f8 0%, #fbf9f8 29%, rgb(251 249 248 / 95%) 40%, rgb(251 249 248 / 50%) 56%, rgb(251 249 248 / 7%) 76%) !important; }
.med-hero .wp-block-cover__inner-container { max-width: var(--med-width); margin-inline: auto; }
.med-hero-copy { width: min(690px, 57%); }
.med-hero-copy h1 { margin: 0; color: var(--med-ink); font-size: clamp(38px, 4.1vw, 62px); white-space: nowrap; }
.med-hero-copy h1 em { display: inline-block; color: var(--med-pink); font-style: italic; font-weight: 400; white-space: nowrap; }
.med-hero-copy > p:not(.med-eyebrow) { max-width: 610px; margin: 18px 0 21px; font-size: clamp(15px, 1.2vw, 18px); }
.med-hero-copy .wp-block-buttons { gap: 12px; }

/* Grafika lasera nie zawiera napisów: nagłówek i opis są blokami Gutenberga. */
.med-laser-hero.wp-block-cover { min-height: 480px; padding: 62px max(24px, calc((100vw - var(--med-width)) / 2)); background: #f8efeb; }
.med-laser-hero > .wp-block-cover__image-background { object-fit: cover !important; object-position: right center; }
.med-laser-hero > .wp-block-cover__background { opacity: 0 !important; }
.med-laser-hero .wp-block-cover__inner-container { width: min(var(--med-width), 100%); margin-inline: auto; }
.med-laser-copy { width: min(650px, 54%); }
.med-laser-copy .med-eyebrow { margin-bottom: 18px; }
.med-laser-title { margin: 0; color: #bd6a80 !important; font-size: clamp(52px, 6.2vw, 92px) !important; font-weight: 400 !important; line-height: 1 !important; white-space: nowrap; }
.med-laser-title::after { content: ""; display: block; width: min(430px, 91%); height: 1px; margin-top: 20px; background: rgb(189 106 128 / 58%); }
.med-laser-subtitle { max-width: 570px; margin: 18px 0 22px; color: #746b70 !important; font-size: clamp(16px, 1.6vw, 23px); line-height: 1.45 !important; }
.med-laser-actions { margin-top: 8px; }
.med-laser-intro { padding-bottom: 54px; }
.med-laser-document-title { max-width: 820px; margin: 0 0 17px; font-size: clamp(36px, 4.3vw, 56px) !important; }
.med-laser-lead { margin: 0 0 28px; color: var(--med-pink) !important; font-size: 20px; font-weight: 600; }
.med-laser-intro > p:not(.med-eyebrow):not(.med-laser-lead), .med-laser-section > p { margin: 15px 0; font-size: 16px; }
.med-laser-article { padding-top: 22px; }
.med-laser-section + .med-laser-section { padding-top: 49px; margin-top: 49px; border-top: 1px solid var(--med-line); }
.med-laser-section h2 { margin: 0 0 23px; font-size: clamp(29px, 3.3vw, 43px) !important; }
.med-laser-list { display: grid; gap: 9px; margin: 19px 0 21px; padding-left: 22px; color: var(--med-muted); }
.med-laser-list li { padding-left: 4px; line-height: 1.65; }
.med-laser-list li::marker { color: var(--med-pink); }
.med-laser-section--important { padding: 31px 33px; border: 1px solid #f0e2e6; border-radius: 19px; background: #fffbfc; }
.med-laser-section--important + .med-laser-section--important { margin-top: 24px; }

/* Szeroki hero zabiegu: zdjęcie i tekst pozostają osobnymi, edytowalnymi blokami. */
.med-treatment-photo-hero.wp-block-cover { min-height: 480px; padding: 62px max(24px, calc((100vw - var(--med-width)) / 2)); background: #f7eae5; }
.med-treatment-photo-hero > .wp-block-cover__image-background { object-fit: cover !important; object-position: right center; }
.med-treatment-photo-hero > .wp-block-cover__background { opacity: 1 !important; background: linear-gradient(90deg, rgb(250 240 236 / 98%) 0%, rgb(250 240 236 / 94%) 34%, rgb(250 240 236 / 46%) 56%, rgb(250 240 236 / 0%) 72%) !important; }
.med-treatment-photo-hero .wp-block-cover__inner-container { width: min(var(--med-width), 100%); margin-inline: auto; }
.med-treatment-photo-hero .med-shell { width: 100%; max-width: var(--med-width); }
.med-treatment-photo-hero .med-shell > h1 { max-width: 690px; margin: 0 0 15px; font-size: clamp(38px, 4.1vw, 62px); white-space: nowrap; }
.med-treatment-photo-hero .med-shell > p:not(.med-eyebrow) { max-width: 610px; margin: 0; font-size: clamp(15px, 1.2vw, 18px); }
.med-treatment-photo-hero + .med-page-hero { display: none; }

/* Zdjęcie O nas nie zawiera napisów: wszystkie hasła są blokami Gutenberga. */
.med-about-hero.wp-block-cover { min-height: 495px; padding: 52px max(24px, calc((100vw - var(--med-width)) / 2)); background: #f8eeec; }
.med-about-hero > .wp-block-cover__image-background { object-fit: cover !important; object-position: right center; }
.med-about-hero > .wp-block-cover__background { opacity: 1 !important; background: linear-gradient(90deg, rgb(248 238 236 / 96%) 0%, rgb(248 238 236 / 85%) 35%, rgb(248 238 236 / 28%) 64%, rgb(248 238 236 / 0%) 83%) !important; }
.med-about-hero .wp-block-cover__inner-container { width: min(var(--med-width), 100%); margin-inline: auto; }
.med-about-hero-copy { width: min(720px, 59%); }
.med-about-hero-copy .med-eyebrow { margin-bottom: 19px; }
.med-about-hero-title { margin: 0; color: #94114f !important; font-size: clamp(32px, 3.25vw, 49px) !important; font-weight: 400 !important; line-height: 1.12 !important; text-transform: uppercase; white-space: nowrap; }
.med-about-hero-subtitle { max-width: 680px; margin: 18px 0 0; color: #94114f !important; font-family: var(--med-serif); font-size: clamp(19px, 2vw, 30px); line-height: 1.3 !important; text-transform: uppercase; white-space: nowrap; }
.med-about-hero-signature { margin: 15px 0 0; color: #a31c5b !important; font-family: var(--med-serif); font-size: clamp(21px, 2.1vw, 31px); line-height: 1.2 !important; text-transform: uppercase; white-space: nowrap; }
.med-about-article { max-width: 900px; }
.med-about-document-section + .med-about-document-section { padding-top: 48px; margin-top: 48px; border-top: 1px solid var(--med-line); }
.med-about-document-heading { margin: 0 0 22px; font-size: clamp(34px, 4vw, 49px) !important; }
.med-about-document-section > p { margin: 15px 0; font-size: 16px; line-height: 1.8; }
.med-about-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 30px; margin: 22px 0 26px; padding-left: 22px; color: var(--med-muted); }
.med-about-list li { padding-left: 3px; line-height: 1.65; }
.med-about-list li::marker { color: var(--med-pink); }
.med-about-document-section--important { padding: 31px 33px; border: 1px solid #f0e2e6; border-radius: 19px; background: #fffbfc; }
.med-about-values { color: var(--med-pink) !important; font-size: 18px !important; font-weight: 700; }
.med-about-closing { margin-top: 24px !important; color: var(--med-ink) !important; font-family: var(--med-serif); font-size: 23px !important; line-height: 1.55 !important; }
.med-about-disclaimer { margin-top: 37px; padding: 20px 23px; border-left: 3px solid var(--med-pink); background: var(--med-soft); font-size: 13px; line-height: 1.75; }
.med-about-actions { margin-top: 29px; }

.med-trust-strip { position: relative; z-index: 2; margin-top: -52px !important; padding: 0; border-radius: 22px; background: var(--med-white); box-shadow: var(--med-shadow); }
.med-trust-strip > .wp-block-columns { margin: 0; gap: 0; }
.med-trust-strip > .wp-block-columns > .wp-block-column { padding: 25px 28px; }
.med-trust-strip > .wp-block-columns > .wp-block-column + .wp-block-column { border-left: 1px solid var(--med-line); }
.med-trust-card > .wp-block-columns { margin: 0; gap: 14px; }
.med-trust-card > .wp-block-columns > .wp-block-column:first-child { flex-basis: 44px !important; flex-grow: 0; }
.med-trust-icon { display: grid; place-items: center; width: 44px; height: 44px; margin: 0; border-radius: 50%; background: var(--med-soft); color: var(--med-pink) !important; font-size: 22px; }
.med-trust-card h3 { margin: 0 0 6px; font-size: 16px; }
.med-trust-card p:not(.med-trust-icon) { margin: 0; font-size: 13px; }

.med-about-columns { align-items: center; gap: clamp(60px, 8vw, 120px); }
.med-about-image img { width: 100%; min-height: 500px; object-fit: cover; object-position: 67% center; border-radius: 28px; }
.med-about-image--doctors img { aspect-ratio: 1; min-height: 0; object-position: 50% 50%; }
.med-about-copy p:not(.med-eyebrow) { margin-top: 20px; font-size: 17px; }
.med-about-copy .wp-block-buttons { margin-top: 28px; }

.med-treatment-grid { display: grid; grid-template-columns: repeat(var(--med-columns, 5), minmax(0, 1fr)); gap: 16px; }
.med-treatment-grid--featured { --med-columns: 5 !important; }
.med-treatment-grid--featured > .med-treatment-card:nth-child(n + 6) { display: none; }
.med-treatment-card { overflow: hidden; min-width: 0; border: 1px solid rgb(79 51 62 / 8%); border-radius: 20px; background: var(--med-white); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.med-treatment-card:hover, .med-treatment-card:focus-visible { transform: translateY(-6px); box-shadow: var(--med-shadow); }
.med-treatment-visual { position: relative; height: 230px; overflow: hidden; background: linear-gradient(145deg, #e7d4d7, #c89ba7); }
.med-treatment-visual img { width: 100%; height: 100%; object-fit: cover; }
.med-treatment-card--laser-co2 .med-treatment-visual img { object-position: 78% 50%; }
.med-treatment-card--botox .med-treatment-visual img { object-position: 84% 50%; }
.med-treatment-card:nth-child(5n + 2) .med-treatment-visual { background: linear-gradient(145deg, #f2dfd6, #cfa891); }
.med-treatment-card:nth-child(5n + 3) .med-treatment-visual { background: linear-gradient(145deg, #e6d8e5, #a995ad); }
.med-treatment-card:nth-child(5n + 4) .med-treatment-visual { background: linear-gradient(145deg, #e3ebed, #9fbac0); }
.med-treatment-card:nth-child(5n + 5) .med-treatment-visual { background: linear-gradient(145deg, #eee2dc, #c8a99c); }
.med-treatment-category { position: absolute; top: 15px; left: 15px; z-index: 1; padding: 5px 9px; border-radius: 99px; background: rgb(255 255 255 / 83%); color: #66545c; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.med-treatment-copy { padding: 21px 19px 23px; }
.med-treatment-copy h3 { margin: 0; color: var(--med-ink); }
.med-treatment-copy p { min-height: 64px; margin: 8px 0 14px; font-size: 13px; }
.med-treatment-price { display: block; margin: 0 0 11px; color: var(--med-muted); font-size: 12px; }
.med-text-link { color: var(--med-pink); font-size: 12px; font-weight: 700; }
.med-treatment-grid--archive { --med-columns: 3; }
.med-treatment-grid--related { --med-columns: 1; }
.med-treatment-grid--related .med-treatment-visual { display: none; }
.med-treatment-grid--related .med-treatment-copy p { min-height: auto; }

.med-problem-grid { display: grid; grid-template-columns: repeat(var(--med-columns, 8), minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--med-line); border-radius: 20px; }
.med-problem-card { display: flex; min-height: 150px; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 17px 8px; border-left: 1px solid var(--med-line); color: var(--med-ink); text-align: center; text-decoration: none; }
.med-problem-card:first-child { border-left: 0; }
.med-problem-card:hover { background: var(--med-soft); color: var(--med-pink); }
.med-problem-icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%; background: var(--med-soft); color: var(--med-pink); font: 25px var(--med-serif); }
.med-problem-name { font-size: 13px; font-weight: 700; }
.med-problem-arrow { color: var(--med-pink); font-size: 13px; }
.med-problem-grid--archive { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; overflow: visible; border: 0; }
.med-problem-grid--archive .med-problem-card { min-height: 175px; flex-direction: row; justify-content: flex-start; gap: 18px; padding: 27px; border: 1px solid var(--med-line); border-radius: 20px; text-align: left; }
.med-problem-card-copy { flex: 1; }
.med-problem-card-copy strong { display: block; font: 27px var(--med-serif); }
.med-problem-card-copy small { display: block; margin-top: 7px; color: var(--med-muted); font-size: 13px; }

.med-effects-columns { align-items: center; gap: clamp(50px, 8vw, 110px); }
.med-before-after { --med-compare: 52%; position: relative; height: 430px; overflow: hidden; border-radius: 26px; background: #ede4e5; box-shadow: var(--med-shadow); }
.med-before-after-layer { position: absolute; inset: 0; overflow: hidden; background: #927b82; }
.med-before-after-layer--after { width: var(--med-compare); background: #c17993; }
.med-before-after-layer img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.med-before-after-layer--after img { width: var(--med-compare-width, 700px); }
.med-before-after-label { position: absolute; bottom: 20px; left: 20px; z-index: 2; padding: 7px 11px; border-radius: 7px; background: rgb(40 28 33 / 65%); color: white; font-size: 10px; letter-spacing: .15em; }
.med-before-after-layer--after .med-before-after-label { left: auto; right: 20px; }
.med-before-after-placeholder { position: absolute; inset: 0; display: grid; place-items: center; padding: 35px; color: white; font-size: 13px; text-align: center; }
.med-before-after-line { position: absolute; top: 0; bottom: 0; left: var(--med-compare); z-index: 3; width: 2px; transform: translateX(-1px); background: white; }
.med-before-after-line::after { content: "↔"; position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 44px; height: 44px; transform: translate(-50%, -50%); border-radius: 50%; background: white; color: var(--med-pink); box-shadow: 0 6px 20px rgb(0 0 0 / 16%); }
.med-before-after-range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; }
.med-effects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.med-effects-grid .med-before-after { height: 340px; }
.med-effect-caption { margin-top: 12px; color: var(--med-muted); font-size: 13px; }
.med-empty-state { padding: 28px; border: 1px dashed var(--med-line); border-radius: 16px; color: var(--med-muted); }

.med-reviews-heading { margin-bottom: 40px; }
.med-reviews-section > .med-review-showcase { width: 100%; }
.med-review-grid { display: grid; grid-template-columns: repeat(var(--med-columns, 3), minmax(0, 1fr)); gap: 20px; opacity: 1; transform: translateY(0); transition: opacity 280ms ease, transform 280ms ease; }
.med-review-grid.is-transitioning-out { opacity: 0; transform: translateY(12px); }
.med-review-grid.is-transitioning-in { opacity: 0; transform: translateY(-12px); }
.med-review-card { min-height: 245px; padding: 25px; border: 1px solid var(--med-line); border-radius: 18px; background: white; }
.med-review-card[hidden] { display: none !important; }
.med-review-showcase { min-width: 0; }
.med-review-overview { display: flex; min-height: 42px; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 15px; }
.med-review-overview-rating { color: var(--med-muted); font-size: 12px; }
.med-review-overview-rating > span { color: #e5a532; }
.med-review-overview > .med-text-link { margin-left: auto; }
.med-review-card--google { display: flex; min-height: 265px; flex-direction: column; }
.med-review-card-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.med-review-card-top .med-review-stars { margin-left: 0; }
.med-review-text { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-height: 1.65; }
.med-review-attribution { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 17px; }
.med-review-avatar { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 50%; object-fit: cover; }
.med-review-avatar--fallback { background: #eef4ff; color: #4285f4; font-size: 16px; font-weight: 800; }
.med-review-attribution .med-review-author { margin-top: 0; font-weight: 700; }
.med-review-author a { color: inherit; text-decoration: none; }
.med-review-author small { display: block; margin-top: 3px; color: var(--med-muted); font-size: 10px; font-weight: 400; }
.med-review-original { margin-top: 12px; }
.med-review-setup { color: var(--med-muted); font-size: 11px; }
.med-review-source { color: #4285f4; font-weight: 800; }
.med-review-source--google { color: #1f1f1f; font-size: 14px; font-weight: 400; white-space: nowrap; }
.med-review-stars { margin-left: 10px; color: #e5a532; letter-spacing: .1em; }
.med-review-card h3 { margin-top: 17px; }
.med-review-card p { margin-top: 10px; font-size: 13px; }
.med-review-author { display: block; margin-top: 15px; font-size: 12px; }
.med-demo-label { display: inline-block; margin-top: 9px; padding: 4px 8px; border-radius: 99px; background: var(--med-soft); color: var(--med-pink); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.med-review-rating { font: 46px var(--med-serif); }
.med-review-rating strong { color: #e5a532; font: 14px Arial, sans-serif; }
.med-review-card--summary { display: flex; flex-direction: column; }
.med-review-card--summary .med-review-rating { margin-top: 18px; color: var(--med-ink); }
.med-review-card--summary .med-text-link { margin-top: auto; padding-top: 15px; }

.med-map-columns { align-items: center; gap: clamp(36px, 6vw, 90px); }
.med-map-columns > .wp-block-column:first-child { flex-basis: 35%; }
.med-map-embed { overflow: hidden; border: 1px solid var(--med-line); border-radius: 24px; background: var(--med-white); box-shadow: var(--med-shadow); }
.med-map-embed iframe { display: block; width: 100%; min-height: 430px; border: 0; }
.med-map-link { display: block; padding: 14px 18px; color: var(--med-pink); font-size: 13px; font-weight: 700; text-align: center; text-decoration: none; }
.med-contact-map { margin-top: 18px; }
.med-contact-map .med-map-embed { border-radius: 16px; }
.med-contact-map .med-map-embed iframe { min-height: 285px; }

.med-instagram-gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 13px; }
.med-instagram-gallery .wp-block-image { margin: 0; }
.med-instagram-gallery img { width: 100%; height: 150px; object-fit: cover; object-position: 65% center; border-radius: 14px; }
.med-contact-strip { padding-block: 24px; border-radius: 18px; background: var(--med-pink); }
.med-contact-strip .med-contact-info { grid-template-columns: repeat(3, 1fr); }
.med-contact-strip .med-contact-item { border-color: rgb(255 255 255 / 22%); }
.med-contact-strip .med-contact-item, .med-contact-strip .med-contact-item a,
.med-contact-strip .med-contact-item strong, .med-contact-strip .med-contact-item small,
.med-contact-strip .med-contact-icon { color: white; }

.med-page-hero { position: relative; padding: 112px 0 55px; overflow: hidden; background: linear-gradient(135deg, #fbf8f7, #fff6f9); }
.med-page-hero h1 { max-width: 1100px; margin: 0 0 13px; font-size: clamp(34px, 3.4vw, 53px); overflow-wrap: normal; word-break: normal; }
.med-page-hero p:not(.med-eyebrow) { max-width: 850px; margin: 0; font-size: 16px; }

/* Kompletne opisy z Worda pozostają prawdziwymi blokami nagłówków, list i akapitów. */
.med-treatment-document { max-width: 920px; padding-block: clamp(58px, 7vw, 88px); }
.med-treatment-document-title { margin: 0 0 26px; font-size: clamp(31px, 3.2vw, 46px) !important; }
.med-treatment-document-intro > p, .med-treatment-document-section > p { margin: 13px 0; font-size: 16px; line-height: 1.8; }
.med-treatment-document-section { padding-top: 35px; margin-top: 35px; border-top: 1px solid var(--med-line); }
.med-treatment-document-heading { margin: 0 0 19px; font-size: clamp(27px, 2.8vw, 39px) !important; }
.med-treatment-document-list { display: grid; gap: 8px; margin: 17px 0 20px; padding-left: 23px; color: var(--med-muted); }
.med-treatment-document-list li { padding-left: 3px; line-height: 1.7; }
.med-treatment-document-list li::marker { color: var(--med-pink); }
.med-treatment-document-section--important { padding: 27px 29px; border: 1px solid #f0e2e6; border-radius: 18px; background: #fffbfc; }
.med-medical-note { padding: 17px 20px; border-left: 3px solid var(--med-pink); background: var(--med-soft); color: #685d62 !important; font-size: 13px; }
.med-price-list { border-top: 1px solid var(--med-line); }
.med-price-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 22px 7px; border-bottom: 1px solid var(--med-line); color: var(--med-ink); text-decoration: none; }
.med-price-name { display: flex; align-items: center; gap: 19px; }
.med-price-category { min-width: 105px; color: var(--med-pink); font-size: 11px; letter-spacing: .11em; text-transform: uppercase; }
.med-price-value { text-align: right; }
.med-price-value::after { content: " ↗"; color: var(--med-pink); }
.med-treatment-meta { display: flex; flex-wrap: wrap; gap: 13px; margin: 22px 0; }
.med-treatment-meta-item { min-width: 160px; padding: 13px 16px; border: 1px solid var(--med-line); border-radius: 12px; background: rgb(255 255 255 / 76%); }
.med-treatment-meta-item span { display: block; color: var(--med-muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.med-treatment-meta-item strong { display: block; margin-top: 5px; font-size: 14px; }
.med-dynamic-list { display: grid; gap: 9px; padding-left: 19px; color: var(--med-muted); }
.med-dynamic-list li::marker { color: var(--med-pink); }
.med-dynamic-list-empty { color: var(--med-muted); font-size: 13px; }
.med-template-body > .wp-block-group + .wp-block-group { padding-top: 45px; margin-top: 45px; border-top: 1px solid var(--med-line); }
.med-treatment-featured img { min-height: 380px; object-fit: cover; border-radius: 27px; }

.med-contact-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.med-contact-item { display: flex; align-items: flex-start; gap: 12px; padding: 17px; border: 1px solid var(--med-line); border-radius: 13px; }
.med-contact-icon { color: var(--med-pink); font-size: 19px; }
.med-contact-item small { display: block; color: var(--med-muted); font-size: 10px; text-transform: uppercase; }
.med-contact-item strong, .med-contact-item a { color: var(--med-ink); font-size: 13px; text-decoration: none; }
.med-contact-form { display: grid; gap: 16px; margin-top: 25px; }
.med-registration-note { margin: 0; padding: 14px 17px; border-left: 3px solid var(--med-pink); border-radius: 0 9px 9px 0; background: var(--med-soft); font-size: 13px; }
.med-registration-note a { color: var(--med-pink); font-weight: 700; text-decoration: none; }
.med-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.med-contact-form label { display: grid; gap: 7px; color: #554b50; font-size: 13px; font-weight: 700; }
.med-contact-form input:not([type="checkbox"]), .med-contact-form textarea { width: 100%; padding: 13px 14px; border: 1px solid #ded2d6; border-radius: 10px; background: white; }
.med-contact-form input:focus, .med-contact-form textarea:focus { border-color: var(--med-pink); outline: 3px solid rgb(217 76 131 / 12%); }
.med-form-consent { grid-template-columns: 20px 1fr !important; align-items: start; font-weight: 400 !important; }
.med-form-consent input { width: 17px; height: 17px; margin-top: 3px; }
.med-form-submit { width: max-content; cursor: pointer; }
.med-form-status { padding: 13px; border-radius: 9px; background: #edf8f2; color: #31694b !important; }
.med-form-status--error { background: #fff2f2; color: #a23636 !important; }
.med-form-trap { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* Stopka to jeden globalny, edytowalny szablon Gutenberg. */
.med-global-footer { margin-top: 0; padding: 90px 0 25px; background: white; }
body.medestica-global-footer #colophon { display: none; }
.med-footer-columns { gap: 30px; }
.med-footer-logo img { width: 185px; height: auto; }
.med-footer-columns h3 { margin-bottom: 17px; font-size: 15px; }
.med-footer-columns p, .med-footer-columns li { font-size: 13px; }
.med-footer-columns ul { display: grid; gap: 9px; padding: 0; list-style: none; }
.med-footer-columns a { color: var(--med-muted); text-decoration: none; }
.med-footer-columns a:hover { color: var(--med-pink); }
.med-footer-bottom { margin-top: 42px; padding-top: 18px; border-top: 1px solid var(--med-line); }
.med-footer-bottom p { font-size: 12px; }
.med-social-links { display: flex; gap: 12px; }
.med-social-links a { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid var(--med-line); border-radius: 50%; }
.med-newsletter-form { display: flex; gap: 8px; }
.med-newsletter-form input { min-width: 0; width: 100%; padding: 10px; border: 1px solid var(--med-line); border-radius: 8px; }
.med-newsletter-form button { padding: 0 13px; border: 0; border-radius: 8px; background: var(--med-pink); color: white; }

@media (max-width: 1180px) {
  .med-treatment-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .med-treatment-grid--related { grid-template-columns: 1fr; }
  .med-problem-grid:not(.med-problem-grid--archive) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .med-problem-grid:not(.med-problem-grid--archive) .med-problem-card:nth-child(4n + 1) { border-left: 0; }
  .med-problem-grid:not(.med-problem-grid--archive) .med-problem-card:nth-child(n + 5) { border-top: 1px solid var(--med-line); }
}

@media (max-width: 900px) {
  .med-shell, .med-shell-narrow { width: min(720px, calc(100% - 36px)); }
  .med-hero.wp-block-cover { min-height: 520px !important; padding-inline: 28px; }
  .med-hero-copy { width: 76%; }
  .med-laser-hero.wp-block-cover { min-height: 445px !important; padding-inline: 28px; }
  .med-laser-hero > .wp-block-cover__image-background { object-position: right center; }
  .med-treatment-photo-hero.wp-block-cover { min-height: 445px !important; padding-inline: 28px; }
  .med-treatment-photo-hero > .wp-block-cover__image-background { object-position: right center; }
  .med-laser-copy { width: 63%; }
  .med-about-hero.wp-block-cover { min-height: 465px !important; padding-inline: 28px; }
  .med-about-hero > .wp-block-cover__image-background { object-position: right center; }
  .med-about-hero-copy { width: 66%; }
  .med-trust-strip > .wp-block-columns { flex-direction: column; }
  .med-trust-strip > .wp-block-columns > .wp-block-column + .wp-block-column { border-top: 1px solid var(--med-line); border-left: 0; }
  .med-about-columns, .med-effects-columns, .med-template-columns, .med-contact-columns, .med-map-columns { flex-direction: column; }
  .med-review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .med-instagram-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .med-contact-strip .med-contact-info { grid-template-columns: 1fr; }
  .med-footer-columns { flex-wrap: wrap !important; }
  .med-footer-columns > .wp-block-column { flex-basis: calc(50% - 20px) !important; }
}

@media (max-width: 620px) {
  .med-shell, .med-shell-narrow { width: min(520px, calc(100% - 28px)); }
  .medestica-canvas h1, .med-template-content h1 { font-size: clamp(38px, 11vw, 56px); }
  .medestica-canvas h2, .med-template-content h2 { font-size: clamp(30px, 9vw, 43px); }
  .med-hero.wp-block-cover { min-height: 500px !important; align-items: flex-start; padding: 110px 18px 165px; }
  .med-hero > .wp-block-cover__image-background { object-fit: cover !important; object-position: right center; }
  .med-hero > .wp-block-cover__background { background: linear-gradient(180deg, #fbf9f8 0%, rgb(251 249 248 / 96%) 48%, rgb(251 249 248 / 28%) 75%, rgb(251 249 248 / 0%) 100%) !important; }
  .med-hero-copy { width: 100%; }
  .med-hero-copy h1 { font-size: clamp(27px, 7.6vw, 46px); }
  .med-hero-copy .wp-block-buttons { flex-direction: column; align-items: flex-start; }
  .med-laser-hero.wp-block-cover { min-height: 490px !important; align-items: flex-start; padding: 45px 19px 220px; }
  .med-laser-hero > .wp-block-cover__image-background { object-position: right center; }
  .med-laser-hero > .wp-block-cover__background { opacity: 1 !important; background: linear-gradient(180deg, #f7eeea 0%, rgb(247 238 234 / 97%) 41%, rgb(247 238 234 / 8%) 79%) !important; }
  .med-treatment-photo-hero.wp-block-cover { min-height: 490px !important; align-items: flex-start; padding: 45px 19px 220px; }
  .med-treatment-photo-hero > .wp-block-cover__image-background { object-position: right center; }
  .med-treatment-photo-hero > .wp-block-cover__background { background: linear-gradient(180deg, #f8ece8 0%, rgb(248 236 232 / 97%) 41%, rgb(248 236 232 / 8%) 79%) !important; }
  .med-treatment-photo-hero .med-shell > h1 { font-size: clamp(31px, 9vw, 47px); white-space: normal; }
  .med-laser-copy { width: 100%; }
  .med-laser-title { font-size: clamp(47px, 12vw, 66px) !important; }
  .med-laser-subtitle { max-width: 360px; margin-block: 15px; font-size: 17px; }
  .med-laser-intro { padding-bottom: 36px; }
  .med-laser-section--important { padding: 23px 18px; }
  .med-about-hero.wp-block-cover { min-height: 555px !important; align-items: flex-start; padding: 50px 16px 255px; }
  .med-about-hero > .wp-block-cover__image-background { object-fit: cover !important; object-position: right center; }
  .med-about-hero > .wp-block-cover__background { opacity: 1 !important; background: linear-gradient(90deg, #f8efec 0%, rgb(248 239 236 / 96%) 42%, rgb(248 239 236 / 30%) 68%, rgb(248 239 236 / 0%) 86%) !important; }
  .med-about-hero-copy { width: 70%; }
  .med-about-hero-title { font-size: clamp(24px, 6.5vw, 35px) !important; }
  .med-about-hero-subtitle { font-size: clamp(15px, 4.1vw, 21px); }
  .med-about-hero-signature { font-size: clamp(19px, 5vw, 25px); }
  .med-about-list { grid-template-columns: 1fr; }
  .med-about-document-section--important { padding: 24px 19px; }
  .med-trust-strip { width: 100%; margin-top: 0 !important; border-radius: 0; box-shadow: none; }
  .med-treatment-grid, .med-treatment-grid--archive { grid-template-columns: 1fr; }
  .med-treatment-copy p { min-height: auto; }
  .med-problem-grid:not(.med-problem-grid--archive) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .med-problem-grid:not(.med-problem-grid--archive) .med-problem-card:nth-child(odd) { border-left: 0; }
  .med-problem-grid:not(.med-problem-grid--archive) .med-problem-card:nth-child(n + 3) { border-top: 1px solid var(--med-line); }
  .med-problem-grid--archive, .med-review-grid, .med-effects-grid, .med-contact-info, .med-form-row { grid-template-columns: 1fr; }
  .med-before-after { height: 340px; }
  .med-instagram-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .med-page-hero { padding: 92px 0 46px; }
  .med-page-hero h1 { font-size: clamp(29px, 7.5vw, 43px); }
  .med-treatment-document-section--important { padding: 21px 17px; }
  .med-price-name { flex-direction: column; align-items: flex-start; gap: 5px; }
  .med-footer-columns > .wp-block-column { flex-basis: 100% !important; }
}

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