/*
 Theme Name: Gabinet Child
 Template: generatepress
 Description: Child theme dla strony gabinetu lekarskiego
 Version: 1.0
*/

/* ====== ZMIENNE KOLORYSTYCZNE ====== */
:root {
    --color-primary: #5EBBA6;      /* główny akcent (teal) */
    --color-primary-light: #C9E8E1; /* jasny akcent */
    --color-primary-dark: #429485;  /* ciemny akcent */
    --color-accent: #B8D8E8;        /* jasno niebieski */
    --color-text: #4A4A4A;          /* ciemny szary na tekst */
    --color-text-light: #7A7A7A;    /* jaśniejszy szary */
    --color-bg: #FFFFFF;            /* białe tło */
    --color-bg-soft: #F0F8F6;       /* delikatnie zielonkawe tło */
    --color-bg-grey: #F5F5F5;       /* szare tło sekcji */
    --color-border: #E8E8E8;        /* ramki */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Nunito', sans-serif;
    --max-width: 1200px;
    --radius: 8px;
}

/* ====== TYPOGRAFIA ====== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400&family=Nunito:wght@300;400;500;600&display=swap');

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.75;
    font-size: 1.05rem;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 3.4rem; }
h2 { font-size: 2.6rem; }
h3 { font-size: 1.9rem; }

/* ====== LAYOUT ====== */
.site-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Pojedynczy wpis (single post) ── */

/* Ukryj featured image wewnątrz artykułu */
body.single .post-image,
body.single .featured-image,
body.single .generate-featured-image,
body.single .post-thumbnail,
body.single .entry > .wp-post-image,
body.single .entry-content > img:first-child {
    display: none !important;
}

/* Padding i max-width jak reszta strony */
body.single .site-main,
body.single .content-area {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 32px 80px;
    width: 100%;
}

body.single .entry-content {
    max-width: 760px;
}

/* Ukryj meta wpisu (autor, data) */
.entry-meta,
.entry-footer,
.posted-on,
.posted-by,
.byline,
.author.vcard {
    display: none !important;
}

/* ====== NAWIGACJA ====== */
.main-navigation {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.main-navigation a {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--color-text);
    text-transform: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--color-primary-dark);
}

/* ====== PRZYCISKI ====== */
.btn-primary,
button[type="submit"],
.gform_button {
    background-color: var(--color-primary) !important;
    color: white !important;
    border: none !important;
    padding: 14px 32px !important;
    border-radius: var(--radius) !important;
    font-family: var(--font-body) !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover,
button[type="submit"]:hover,
.gform_button:hover {
    background-color: var(--color-primary-dark) !important;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary-dark);
    border: 2px solid var(--color-primary);
    padding: 12px 30px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--color-primary-light);
}

/* ====== SEKCJE ====== */
.section {
    padding: 80px 0;
}

.section-soft {
    background-color: var(--color-bg-soft);
    padding: 80px 0;
}

.section-grey {
    background-color: var(--color-bg-grey);
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ====== KARTY ====== */
.card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

/* ====== GRAVITY FORMS STYLE ====== */
.gform_wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="number"],
.gform_wrapper textarea,
.gform_wrapper select {
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius) !important;
    padding: 12px 16px !important;
    font-family: var(--font-body) !important;
    font-size: 0.95rem !important;
    transition: border-color 0.3s ease;
}

.gform_wrapper input:focus,
.gform_wrapper textarea:focus {
    border-color: var(--color-primary) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(94, 187, 166, 0.2) !important;
}

.gform_wrapper .gfield_label {
    font-family: var(--font-body) !important;
    font-weight: 500 !important;
    color: var(--color-text) !important;
    font-size: 0.95rem !important;
}

.gform_wrapper .gf_progressbar {
    background-color: var(--color-bg-grey) !important;
    border-radius: 20px !important;
    overflow: hidden;
}

.gform_wrapper .gf_progressbar_percentage {
    background-color: var(--color-primary) !important;
    border-radius: 20px !important;
}

/* ====== FOOTER ====== */
.site-footer {
    background-color: var(--color-text);
    color: white;
    padding: 50px 0 20px;
}

.site-footer a {
    color: var(--color-primary-light);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    .section { padding: 50px 0; }
    .section-soft { padding: 50px 0; }
}

/* ============================================================
   NAVBAR — dwupiętrowy  (header.php)
   ============================================================ */

:root {
    --nav-top-h:    96px;   /* pasek z logo              */
    --nav-bottom-h: 68px;   /* pasek z linkami + ikonami  */
    --nav-h:        164px;  /* suma — używana w calc()    */
}

/* Ukryj domyślny header GeneratePress */
.site-header { display: none !important; }

/* ── WordPress Admin Bar — przesuwa stały navbar w dół ── */
body.admin-bar .site-nav {
    top: 32px;
}
body.admin-bar #page > *:not(.site-nav) {
    margin-top: calc(var(--nav-h) + 32px);
}
@media screen and (max-width: 782px) {
    body.admin-bar .site-nav              { top: 46px; }
    body.admin-bar #page > *:not(.site-nav) { margin-top: calc(var(--nav-h) + 46px); }
}

/* ── Cały header ── */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s ease;
}

.site-nav.is-scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* Górny pasek chowa się — cały header przesuwa się w górę o jego wysokość */
.site-nav.is-compact {
    transform: translateY(calc(-1 * var(--nav-top-h)));
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

/* Wspólny wewnętrzny kontener */
.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
}

/* ── PASEK GÓRNY ── */
.nav-top {
    border-bottom: 1px solid var(--color-border);
}

.nav-top .nav-inner {
    height: var(--nav-top-h);
    justify-content: space-between;
    gap: 32px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.nav-logo-img {
    height: 72px;        /* ← dużo większe niż poprzednio */
    width: auto;
    display: block;
}

.nav-logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text);
}

/* Przycisk "Wizyta" — obrazek PNG z ikoną i podpisem */
.nav-appointment {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    opacity: 0.75;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-appointment:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.nav-appointment-img {
    height: 72px;
    width: auto;
    display: block;
}

/* ── PASEK DOLNY: nawigacja ── */
.nav-bottom {
    background: #fff;
    border-top: 1px solid var(--color-border);
}

.nav-bottom .nav-inner {
    height: var(--nav-bottom-h);
    justify-content: space-between; /* pills od lewej, CTA przy prawej */
}

/* Lista linków — pill layout, od lewej do prawej krawędzi */
.nav-links {
    display: flex;
    align-items: center;
    justify-content: space-between; /* pierwszy pill przy lewej, ostatni przy prawej */
    flex: 1;                        /* wypełnia całą szerokość przed CTA */
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: flex;
}

/* Pill */
.nav-links a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text);
    text-decoration: none;
    white-space: nowrap;
    border-radius: 50px;
    border: 1.5px solid transparent;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.nav-links a:hover {
    background: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary-dark);
}

.nav-links .current-menu-item > a,
.nav-links .current-page-ancestor > a {
    background: transparent;
    border-color: var(--color-primary-dark);
    color: var(--color-primary-dark);
}


/* Ikona PNG */
.nav-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    opacity: 0.55;
    transition: opacity 0.25s ease;
}

.nav-links a:hover .nav-icon,
.nav-links .current-menu-item > a .nav-icon,
.nav-links .current-page-ancestor > a .nav-icon {
    opacity: 1;
}

/* Brak podkreślenia — używamy tła jako feedback */
.nav-links a::after { display: none; }

/* Różowy przycisk CTA w nav-bottom */
.nav-book-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 22px;
    background: var(--color-primary);
    color: #fff !important;
    text-decoration: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 16px;
    transition: background 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 16px rgba(66, 148, 133, 0.35);
}

.nav-book-btn:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 6px 20px rgba(66, 148, 133, 0.45);
    color: #fff !important;
}

.nav-book-icon {
    height: 22px;
    width: auto;
    display: block;
    /* ikona jest ciemnoszara — odwracamy na biały żeby pasowała do przycisku */
    filter: brightness(0) invert(1);
    /* przycinamy do samej ikonki kalendarza (bez napisu "Wizyta" pod spodem) */
    object-fit: cover;
    object-position: top;
    aspect-ratio: 1;
    overflow: hidden;
}

/* ── Hamburger (tylko mobile) ── */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-right: -8px;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Przesunięcie treści stronicy pod stały header ── */
#page > *:not(.site-nav) {
    margin-top: var(--nav-h);
}

/* ── MOBILE ── */
@media (max-width: 900px) {
    :root {
        --nav-top-h: 76px;
        --nav-h:     76px;
    }

    .nav-toggle { display: flex; }

    /* Ikonę wizyty na mobile — tylko sam obrazek, mniejszy */
    .nav-appointment-img { height: 52px; }

    /* Nawigacja chowana, otwierana hamburgerem */
    .nav-bottom {
        display: none;
        border-top: 1px solid var(--color-border);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
    }

    .nav-bottom.is-open { display: block; }

    .nav-bottom .nav-inner {
        height: auto;
        justify-content: flex-start;
        padding: 6px 0 14px;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 4px 12px;
        width: 100%;
    }

    .nav-links li { flex-direction: column; }

    .nav-links a {
        justify-content: flex-start;
        padding: 10px 16px;
        gap: 12px;
        font-size: 0.82rem;
        border-radius: 50px;
    }

    .nav-icon {
        width: 20px;
        height: 20px;
    }

    .nav-links a:hover {
        background: transparent;
        border-color: var(--color-primary);
        color: var(--color-primary-dark);
    }

    .nav-book-btn {
        position: static;  /* na mobile - w normalnym flow, nie absolute */
        margin: 8px 24px 0;
        justify-content: center;
    }

    .nav-logo-img { height: 54px; }
}

@media (max-width: 480px) {
    .nav-logo-img        { height: 44px; }
    .nav-appointment-img { height: 44px; }
}

/* ============================================================
   PAGE: POZNAJMY SIĘ  (page-poznajmy-sie.php)
   ============================================================ */

/* ----- Shared inner container ----- */
.ps-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ----- Hero ----- */
.ps-hero {
    position: relative;
    z-index: 2;
    margin-top: calc(-1 * var(--nav-h));
    padding-top: var(--nav-h);
    height: auto;
    min-height: 800px;
    background: linear-gradient(115deg, var(--color-bg-soft) 0%, #e3f3ef 40%, #fff 65%);
    display: flex;
    align-items: stretch;   /* inner wypełnia pełną wysokość hero */
    overflow: visible;
}

body.admin-bar .ps-hero {
    margin-top: calc(-1 * (var(--nav-h) + 32px));
    padding-top: calc(var(--nav-h) + 32px);
}

/* Ozdobny blob za zdjęciem — organiczny kształt */
.ps-hero__blob {
    position: absolute;
    right: 3%;
    top: 50%;
    transform: translateY(-50%);
    width: 480px;
    height: 520px;
    background: var(--color-primary-light);
    border-radius: 62% 38% 50% 50% / 55% 45% 55% 45%;
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
}

/* Dwukolumnowy układ hero */
.ps-hero__inner {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 32px 32px 0; /* brak dolnego padding — zdjęcie dosięga dołu */
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 44%;
    grid-template-rows: 1fr;  /* jeden rząd wypełniający całą wysokość */
    gap: 40px;
    align-items: center;
}

/* Kolumna tekstowa */
.ps-hero__text {
    max-width: 560px;
}

.ps-hero__eyebrow {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-primary-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ps-hero__eyebrow::before {
    display: none;
}

.ps-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 4.8vw, 4.6rem);
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.05;
    margin-bottom: 16px;
}

.ps-hero__lead {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.75;
    margin-bottom: 28px;
}

.ps-hero__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ps-hero__actions .btn-primary,
.ps-hero__actions .btn-secondary {
    display: inline-block;
    text-decoration: none;
}

.ps-hero__actions .btn-primary {
    box-shadow: 0 6px 24px rgba(66, 148, 133, 0.35);
}

/* Kolumna ze zdjęciem */
.ps-hero__visual {
    position: relative;
    display: flex;
    align-items: flex-end;      /* zdjęcie przy dole kolumny */
    justify-content: center;
    align-self: end;            /* kolumna przy dole gridu (= dół hero) */
    z-index: 3;
}

.ps-hero__photo {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    filter: drop-shadow(0 32px 40px rgba(66, 148, 133, 0.22));
}

/* Sekcja #o-mnie */
#o-mnie {
    position: relative;
    z-index: 1;
    background: var(--color-bg);
}

/* ----- O mnie ----- */
.ps-about {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 64px;
    align-items: start;
}

.ps-about__photo-wrap {
    position: sticky;
    top: calc(var(--nav-h) + 20px);
}

.ps-about__photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(94, 187, 166, 0.3);
    /* pastel gradient shown when doctor.jpg is absent */
    background: linear-gradient(160deg, var(--color-primary-light) 0%, var(--color-accent) 100%);
    display: block;
}

.ps-about__header {
    margin-bottom: 28px;
}

.ps-about__header h2 {
    margin-bottom: 8px;
}

/* left-align the decorative underline */
.ps-about__header h2::after {
    margin: 12px 0 0;
}

.ps-about__role {
    font-size: 0.88rem;
    color: var(--color-primary-dark);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ps-about__content p {
    margin-bottom: 20px;
    font-size: 1.02rem;
    color: var(--color-text);
}

/* ----- Dlaczego ja — siatka kart ----- */
.ps-subtitle {
    color: var(--color-text-light);
    font-size: 1.05rem;
    margin-top: -10px;
}

.ps-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
}

.ps-card {
    text-align: center;
    padding: 36px 28px;
}

.ps-card__icon {
    width: 64px;
    height: 64px;
    background: var(--color-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--color-primary-dark);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.ps-card:hover .ps-card__icon {
    background: var(--color-primary);
    color: #fff;
}

.ps-card__icon svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.ps-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--color-text);
}

.ps-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin: 0;
}

/* ----- CTA bar ----- */
.ps-cta-bar {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 70px 0;
}

.ps-cta-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.ps-cta-bar__text h2 {
    color: #fff;
    margin-bottom: 8px;
    font-size: 2rem;
}

/* hide decorative underline inside coloured bar */
.ps-cta-bar__text h2::after {
    display: none;
}

.ps-cta-bar__text p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    margin: 0;
}

.ps-cta-bar__btn {
    display: inline-block;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    background-color: #fff !important;
    color: var(--color-primary-dark) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.ps-cta-bar__btn:hover {
    background-color: var(--color-primary-light) !important;
}

/* ----- Responsive: tablet ----- */
@media (max-width: 960px) {
    .ps-about {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ps-about__photo-wrap {
        position: static;
        max-width: 340px;
        margin: 0 auto;
    }

    .ps-cta-bar__inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ----- Responsive: mobile ----- */
@media (max-width: 768px) {
    .ps-hero {
        min-height: auto;
    }

    .ps-hero__inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 48px 24px 0;
        text-align: center;
    }

    .ps-hero__text {
        max-width: 100%;
        order: 1;
    }

    .ps-hero__eyebrow {
        justify-content: center;
    }

    .ps-hero__lead {
        font-size: 0.98rem;
    }

    .ps-hero__actions {
        justify-content: center;
    }

    .ps-hero__visual {
        order: 2;
        max-width: 300px;
        margin: 0 auto;
    }

    .ps-hero__blob {
        width: 300px;
        height: 300px;
        right: 50%;
        transform: translate(50%, -40%);
        top: auto;
        bottom: 0;
    }

    .ps-why-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ps-cta-bar__text h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .ps-why-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   PAGE: E-RECEPTA  (page-e-recepta.php)
   ============================================================ */

/* Różowe tło od samej góry — na body żeby nie było białej przerwy */
body.page-template-page-e-recepta-php,
body.page-template-page-e-recepta-php #page,
#page-e-recepta {
    background: var(--color-bg-soft);
}

.er-main {
    min-height: 60vh;
    padding: 56px 0 80px;
}

/* ── Pill z nagłówkiem — ta sama szerokość co formularz ── */
.er-hero__pill {
    max-width: 820px;
    margin: 0 auto 32px;
    background: #fff;
    border-radius: 24px;
    padding: 36px 48px;
    box-shadow: 0 4px 24px rgba(66, 148, 133, 0.12);
    text-align: center;
}

.er-hero__eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-primary-dark);
    margin-bottom: 14px;
}

.er-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 12px;
    line-height: 1.1;
}

.er-hero__lead {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin: 0;
}

/* ── Karta formularza — taki sam styl jak pill ── */
.er-form-card {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    padding: 52px 56px;
    box-shadow: 0 4px 24px rgba(66, 148, 133, 0.12);
}

/* Gravity Forms — usuń własny max-width */
.er-form-card .gform_wrapper {
    max-width: 100% !important;
    margin: 0 !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .er-main { padding: 40px 0 60px; }

    .er-hero__pill {
        padding: 28px 24px;
        border-radius: 18px;
        margin-bottom: 32px;
    }

    .er-form-card {
        padding: 32px 24px;
        border-radius: 14px;
    }
}

/* ============================================================
   PAGE: OFERTA  (page-oferta.php)
   ============================================================ */

.of-page {
    background: #fff;
}

/* ── Nagłówek ── */
.of-hero {
    background: linear-gradient(115deg, var(--color-bg-soft) 0%, #fff 70%);
    padding: 52px 0 44px;
    border-bottom: 1px solid var(--color-border);
}

.of-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 12px;
}

.of-hero__lead {
    font-size: 1.05rem;
    color: var(--color-text-light);
}

/* ── Siatka ── */
.of-grid-section {
    padding: 56px 0 80px;
}

.of-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ── Kafelek ── */
.of-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.of-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(66, 148, 133, 0.18);
}

/* Zdjęcie */
.of-card__img-wrap {
    width: 100%;
    height: 210px;
    overflow: hidden;
    flex-shrink: 0;
}

.of-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.of-card:hover .of-card__img {
    transform: scale(1.05);
}

/* Treść */
.of-card__body {
    padding: 22px 24px 28px;
    flex: 1;
}

.of-card__title {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text);
    margin-bottom: 12px;
}

.of-card__text {
    font-size: 0.92rem;
    color: var(--color-text-light);
    line-height: 1.75;
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .of-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
    .of-grid { grid-template-columns: 1fr; gap: 20px; }
    .of-card__img-wrap { height: 200px; }
}

/* ============================================================
   PAGE: UMÓW WIZYTĘ  (page-umow-wizyte.php)
   ============================================================ */

.uv-page { background: #fff; }

/* ── Nagłówek ── */
.uv-hero {
    background: linear-gradient(115deg, var(--color-bg-soft) 0%, #fff 70%);
    padding: 52px 0 44px;
    border-bottom: 1px solid var(--color-border);
}

.uv-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 10px;
}

.uv-hero__lead {
    font-size: 1.05rem;
    color: var(--color-text-light);
}

/* ── Sekcja specjalności ── */
.uv-specialty {
    padding: 56px 0 48px;
    border-bottom: 1px solid var(--color-border);
}

.uv-specialty--alt {
    background: var(--color-bg-soft);
    border-bottom: none;
}

.uv-specialty__header {
    margin-bottom: 36px;
}

.uv-specialty__title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 0;
    position: relative;
    display: inline-block;
}

.uv-specialty__title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    margin-top: 10px;
}

/* ── Grupa (Prywatnie / NFZ / Teleporada…) ── */
.uv-group {
    margin-bottom: 32px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    overflow: hidden;
}

.uv-specialty--alt .uv-group {
    background: #fff;
}

.uv-group__title {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-primary-dark);
    padding: 14px 24px;
    margin: 0;
    background: var(--color-bg-soft);
    border-bottom: 1px solid var(--color-border);
}

/* ── Pojedyncza opcja ── */
.uv-option {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    border-bottom: 1px solid var(--color-border);
}

.uv-option:last-child {
    border-bottom: none;
}

.uv-option__label {
    flex: 1;
    min-width: 0;
}

.uv-option__badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 8px;
}

.uv-option__badge--teal {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
}

.uv-option__badge--grey {
    background: #e8e8e8;
    color: var(--color-text-light);
}

.uv-option__badge--nfz {
    background: #d4eaf6;
    color: #1a5f8a;
}

.uv-option__desc {
    font-size: 0.95rem;
    color: var(--color-text);
    margin: 0;
    line-height: 1.6;
}

.uv-option__note {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin: 10px 0 0;
    line-height: 1.6;
    text-align: right;
}

/* ── Akcje (przyciski) ── */
.uv-option__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
    margin-left: auto;
}

.uv-option__actions--col {
    flex-direction: column;
    align-items: flex-end;
}

.uv-phone-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ── Przyciski ── */
.uv-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.uv-btn--primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(66, 148, 133, 0.30);
}

.uv-btn--primary:hover {
    background: var(--color-primary-dark);
    color: #fff;
    box-shadow: 0 6px 18px rgba(66, 148, 133, 0.40);
}

.uv-btn--secondary {
    background: transparent;
    color: var(--color-primary-dark);
    border: 1.5px solid var(--color-primary);
}

.uv-btn--secondary:hover {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
}

.uv-btn--phone {
    background: #f0f0f0;
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 700;
}

.uv-btn--phone svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--color-primary-dark);
}

.uv-btn--phone:hover {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
}

/* ── Responsive tablet ── */
@media (max-width: 760px) {
    .uv-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .uv-option__actions {
        width: 100%;
        margin-left: 0;
    }

    .uv-option__actions--col {
        align-items: flex-start;
    }

    .uv-option__note {
        text-align: left;
    }

    .uv-btn--primary,
    .uv-btn--secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .uv-specialty { padding: 40px 0 32px; }

    .uv-btn--phone {
        font-size: 0.95rem;
    }
}

/* ============================================================
   PRZYCISK DRUKOWANIA PDF  (single post)
   ============================================================ */

.print-btn-wrap {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

.print-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-primary-dark);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: color 0.2s ease, transform 0.2s ease;
}

.print-btn:hover {
    color: var(--color-primary);
    transform: translateY(-2px);
}

.print-btn__icon {
    width: 52px;
    height: 52px;
    object-fit: contain;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.print-btn:hover .print-btn__icon {
    opacity: 1;
}

/* ============================================================
   PAGE: WARTO WIEDZIEĆ  (page-warto-wiedziec.php)
   ============================================================ */

.ww-page { background: #fff; }

/* ── Nagłówek ── */
.ww-hero {
    background: linear-gradient(115deg, var(--color-bg-soft) 0%, #fff 70%);
    padding: 52px 0 44px;
    border-bottom: 1px solid var(--color-border);
}

.ww-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 12px;
}

.ww-hero__lead {
    font-size: 1.05rem;
    color: var(--color-text-light);
}

/* ── Siatka ── */
.ww-grid-section {
    padding: 56px 0 80px;
}

.ww-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ── Kafelek ── */
.ww-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.ww-card:hover {
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.09);
}

/* Zdjęcie */
.ww-card__img-link {
    display: block;
    text-decoration: none;
}

.ww-card__img-wrap {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--color-bg-grey);
}

.ww-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.ww-card:hover .ww-card__img {
    transform: scale(1.04);
}

.ww-card__img-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-bg-soft);
}

/* Treść */
.ww-card__body {
    padding: 22px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ww-card__title {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text);
    margin-bottom: 12px;
}

.ww-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ww-card__title a:hover {
    color: var(--color-primary-dark);
}

.ww-card__excerpt {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 16px;
    flex: 1;
}

/* "Czytaj dalej" */
.ww-card__more {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary-dark);
    text-decoration: none;
    margin-top: auto;
    transition: color 0.2s ease;
}

.ww-card__more:hover {
    color: var(--color-primary);
}

.ww-empty {
    text-align: center;
    color: var(--color-text-light);
    padding: 60px 0;
    font-size: 1.1rem;
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .ww-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
    .ww-grid { grid-template-columns: 1fr; gap: 20px; }
    .ww-card__img-wrap { height: 200px; }
}

/* ============================================================
   PAGE: KONTAKT  (page-kontakt.php)
   ============================================================ */

.k-page { background: #fff; }

/* ── Hero ── */
.k-hero {
    background: linear-gradient(115deg, var(--color-bg-soft) 0%, #fff 70%);
    padding: 0;
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}

.k-hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.k-hero-content {
    padding: 52px 0 44px;
    flex: 1;
}

.k-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0;
}

.k-hero__img {
    width: 480px;
    height: auto;
    border-radius: 12px;
    flex-shrink: 0;
    object-fit: cover;
}

/* ── Sekcja kontaktu ── */
.k-contact-section {
    padding: 64px 0;
}

.k-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* ── Blok kontaktu ── */
.k-contact-block {
    background: var(--color-bg-soft);
    padding: 32px;
    border-radius: 12px;
}

.k-contact__title {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.k-contact__location {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 24px;
}

.k-contact__item {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.k-contact__item:last-child {
    margin-bottom: 0;
}

.k-contact__item strong {
    display: block;
    color: var(--color-primary-dark);
    font-weight: 600;
    margin-bottom: 4px;
}

.k-contact__item p {
    margin: 0;
    color: var(--color-text);
}

.k-link {
    color: var(--color-primary-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.k-link:hover {
    color: var(--color-primary);
}

/* ── Sekcja lokalizacji z mapami ── */
.k-locations-section {
    padding: 64px 0;
    background: #f9f9f9;
}

.k-location-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 64px;
}

.k-location-card:last-child {
    margin-bottom: 0;
}

.k-location-photo {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.k-location-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.k-location-info {
    padding: 0 20px;
}

.k-location-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.k-location-address {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

.k-location-hours {
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 24px;
}

.k-location-map {
    border-radius: 12px;
    overflow: hidden;
}

.k-location-map iframe {
    display: block;
}

/* ── Sekcja email ── */
.k-email-section {
    padding: 48px 0 80px;
    background: #f9f9f9;
}

.k-email-box {
    text-align: center;
}

.k-email__label {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.k-email__link {
    display: inline-block;
    font-size: 1.3rem;
    color: var(--color-primary-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.k-email__link:hover {
    color: var(--color-primary);
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .k-hero-inner {
        flex-direction: column;
        gap: 24px;
    }

    .k-hero-content {
        padding: 40px 0 0;
    }

    .k-hero__img {
        width: 100%;
        max-width: 400px;
    }

    .k-contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .k-location-card {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .k-contact-grid {
        grid-template-columns: 1fr;
    }

    .k-contact-block {
        padding: 24px;
    }
}

@media (max-width: 580px) {
    .k-hero {
        padding: 40px 0 32px;
    }

    .k-hero__title {
        font-size: 1.8rem;
    }

    .k-contact-section {
        padding: 40px 0;
    }

    .k-contact__title {
        font-size: 1.2rem;
    }
}