/* =========================================================
   DOBRY DENTYSTA — design refresh
   Palette: navy #0d4f7c · blue #1a6fa8 · teal #12a07a · gold #e8a600
   Type:    Raleway (headings, 700/800) + Lato (body)
   Signature: teal left-stripe on every content card
   ========================================================= */

/* --- TOKENS --- */
:root {
    --dd-blue:    #1a6fa8;
    --dd-navy:    #0d4f7c;
    --dd-teal:    #12a07a;
    --dd-teal-lt: #e4f5ef;
    --dd-gold:    #e8a600;
    --dd-text:    #2d3037;
    --dd-muted:   #6c7a89;
    --dd-border:  #cfe0f0;
    --dd-surface: #fafcff;
    --dd-gray:    #eef4fa;
    --dd-radius:  6px;
    --dd-shadow:  0 1px 4px rgba(13,79,124,.07), 0 3px 12px rgba(13,79,124,.07);
}

/* --- GLOBAL FONT ---
   Lato (by Polish designer Łukasz Dziedzic): body — full ą ć ę ł ń ó ś ź ż support
   Raleway: headings only, 700/800 — geometric European modernism, distinct from Lato */
body { font-family: 'Lato', sans-serif; }

h1, h2, h3, h4, h5,
.heading, .top__heading, .services__heading {
    font-family: 'Raleway', 'Lato', sans-serif;
    letter-spacing: .01em;
}

.heading { font-weight: 800; }

/* --- HEADER --- */
.header {
    border-bottom: 3px solid var(--dd-blue);
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
}

/* --- FOOTER --- */
.footer { border-top: 3px solid var(--dd-blue); }

/* --- SECTION GRAY --- */
.section--gray { background: var(--dd-gray); }

/* --- HERO (homepage) --- */
.top {
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
}

/* --- SUB-PAGE HERO STRIP --- */
.top--sub {
    min-height: 120px;
    padding: 28px 0;
    background: linear-gradient(135deg, var(--dd-navy) 0%, var(--dd-blue) 100%);
}

.top--sub .top__heading {
    font-size: 1.65em;
    font-weight: 800;
    margin-bottom: 8px;
}

/* --- BREADCRUMB --- */
.breadcrumb-nav              { color: rgba(255,255,255,.7); font-size: .83em; }
.breadcrumb-nav a            { color: rgba(255,255,255,.85); text-decoration: none; }
.breadcrumb-nav a:hover      { color: #fff; text-decoration: underline; }

/* Light variant: breadcrumb on white background (dentist page, under header) */
.breadcrumb-nav--light           { color: #9aa3ab; margin: -12px 0 24px; }
.breadcrumb-nav--light a         { color: #6c7a89; }
.breadcrumb-nav--light a:hover   { color: #2d3037; }

/* --- STARS: gold active, muted empty --- */
.stars_vote                  { display: flex; }
.stars_vote__star .fa-star   { color: #c8d5e0; }
.stars_vote__star--active .fa-star { color: var(--dd-gold); }

/* --- BUTTONS --- */
.btn--blue {
    background: var(--dd-blue);
    border-color: var(--dd-blue);
    transition: background .18s, transform .1s;
}
.btn--blue:hover {
    background: var(--dd-navy);
    border-color: var(--dd-navy);
    transform: translateY(-1px);
}

/* --- INPUTS --- */
input.input, select.input, textarea.input {
    border: 1px solid var(--dd-border);
    border-radius: var(--dd-radius);
    padding: 9px 13px;
    font-size: .9em;
    color: var(--dd-text);
    outline: none;
    font-family: inherit;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
input.input:focus, select.input:focus, textarea.input:focus {
    border-color: var(--dd-blue);
    box-shadow: 0 0 0 3px rgba(26,111,168,.12);
}

/* =========================================================
   CARD SYSTEM — Signature: teal left-border on all panels
   ========================================================= */
.dd-card {
    background: var(--dd-surface);
    border: 1px solid var(--dd-border);
    border-left: 3px solid var(--dd-teal);
    border-radius: var(--dd-radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--dd-shadow);
}

.dd-card__title {
    margin: 0 0 16px;
    font-family: 'Raleway', 'Lato', sans-serif;
    font-size: .8em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--dd-navy);
}

/* --- Contact / info tables inside cards --- */
.dd-card__table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9em;
}
.dd-card__table tr { border-bottom: 1px solid #edf3fb; }
.dd-card__table td { padding: 7px 0; vertical-align: top; }
.dd-card__table td:first-child { color: var(--dd-muted); width: 140px; padding-right: 12px; }
.dd-card__table a  { color: var(--dd-blue); text-decoration: none; }
.dd-card__table a:hover { text-decoration: underline; }

/* --- Rating block (inside main info card) --- */
.dd-rating {
    text-align: center;
    background: var(--dd-gray);
    border: 1px solid var(--dd-border);
    border-top: 3px solid var(--dd-blue);
    padding: 16px 20px;
    border-radius: var(--dd-radius);
    flex-shrink: 0;
    min-width: 96px;
    box-shadow: var(--dd-shadow);
}
.dd-rating__score {
    font-family: 'Raleway', 'Lato', sans-serif;
    font-size: 2.6em;
    font-weight: 800;
    color: var(--dd-blue);
    line-height: 1;
}
.dd-rating__stars  { justify-content: center; margin: 5px 0 3px; }
.dd-rating__count  { font-size: .72em; color: var(--dd-muted); }

/* --- Featured badge --- */
.dd-badge-featured {
    display: inline-block;
    background: linear-gradient(135deg, #fff5cc, #ffe680);
    color: #7a5c00;
    font-family: 'Raleway', 'Lato', sans-serif;
    font-size: .72em;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 8px;
    letter-spacing: .04em;
}

/* --- Clinic logo identity strip (between hero and content cards) ---
   Teal border faces DOWN here — the one intentional break from the
   left-border signature, marking the transition from identity to info. */
.dd-clinic-logo-panel {
    background: #fff;
    border-bottom: 3px solid var(--dd-teal);
    box-shadow: 0 2px 12px rgba(13,79,124,.09);
    padding: 20px 0;
}

.dd-clinic-logo-panel .wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dd-clinic-logo-panel img {
    display: block;
    max-height: 72px;
    max-width: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* --- Info header layout (dentist page) --- */
.dd-info-header {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 20px;
}
.dd-info-main { flex: 1; min-width: 260px; }

/* --- Opening hours table --- */
.dd-hours { width: 100%; max-width: 400px; border-collapse: collapse; font-size: .9em; }
.dd-hours tr { border-bottom: 1px solid #edf3fb; }
.dd-hours td { padding: 7px 0; }
.dd-hours td:first-child { color: var(--dd-muted); width: 150px; }
.dd-closed { color: #c0392b; font-weight: 700; }
.dd-open   { font-weight: 600; color: var(--dd-text); }

/* --- Review cards (dentist show + homepage) --- */
.dd-review {
    border: 1px solid var(--dd-border);
    border-left: 3px solid var(--dd-teal);
    border-radius: var(--dd-radius);
    padding: 16px 20px;
    background: var(--dd-surface);
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(13,79,124,.05);
}
.dd-review__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.dd-review__meta   { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dd-review__author { font-family: 'Raleway','Lato',sans-serif; font-weight: 700; color: var(--dd-navy); font-size: .95em; }
.dd-review__title  { font-weight: 600; color: #555; font-size: .88em; }
.dd-review__date   { font-size: .78em; color: #aaa; white-space: nowrap; }
.dd-review__body   { margin: 0; color: #444; font-size: .9em; line-height: 1.65; }

/* --- Facility pills --- */
.dd-facilities { display: flex; flex-wrap: wrap; gap: 8px; }
.dd-facility {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--dd-teal-lt);
    border: 1px solid #9fd7c5;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: .85em;
    color: #0b5d45;
    transition: background .15s;
}
.dd-facility:hover { background: #cceee4; }
.dd-facility .fa-check { color: var(--dd-teal); font-size: .78em; }

/* --- Form label --- */
.dd-label {
    display: block;
    font-size: .83em;
    font-weight: 700;
    color: var(--dd-navy);
    margin-bottom: 5px;
    letter-spacing: .02em;
}

/* --- Alert boxes --- */
.dd-alert { padding: 12px 16px; border-radius: var(--dd-radius); margin-bottom: 16px; font-size: .9em; }
.dd-alert--success { background: var(--dd-teal-lt); border: 1px solid #9fd7c5; color: #0b5d45; }
.dd-alert--error   { background: #fff0f0; border: 1px solid #f5c0c0; color: #8b1c1c; }

/* --- Map --- */
.dd-map-frame { width: 100%; height: 350px; border: 0; border-radius: var(--dd-radius); display: block; }

/* --- Prev / next --- */
.dd-prevnext { display: flex; justify-content: space-between; margin-top: 8px; }
.dd-prevnext a { color: var(--dd-blue); text-decoration: none; font-weight: 600; font-size: .9em; transition: color .15s; }
.dd-prevnext a:hover { color: var(--dd-navy); }

/* --- Homepage reviews (uses main.min.css .reviews__item class) --- */
.reviews__item {
    background: var(--dd-surface);
    border: 1px solid var(--dd-border);
    border-left: 3px solid var(--dd-teal);
    border-radius: var(--dd-radius);
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(13,79,124,.05);
    margin-bottom: 10px;
}
.reviews__person { font-family: 'Raleway','Lato',sans-serif; font-weight: 700; color: var(--dd-navy); }

/* --- Offices slider: lift on hover --- */
.offices_list__item {
    border-radius: var(--dd-radius) !important;
    overflow: hidden;
    transition: box-shadow .2s, transform .18s;
}
.offices_list__item:hover {
    box-shadow: 0 6px 24px rgba(13,79,124,.18);
    transform: translateY(-3px);
}

/* --- Region/city table header --- */
.table th {
    background: var(--dd-blue);
    color: #fff;
    font-family: 'Raleway','Lato',sans-serif;
    letter-spacing: .05em;
    font-size: .84em;
}

/* --- Services card (matches original layout: circle icon + title + desc + button, blue hover) --- */
.services__item  { width: 20%; padding: 0 6px; box-sizing: border-box; }
.services__block {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; padding: 20px 14px; color: #2d3037;
    text-decoration: none; transition: background-color .15s;
}
.services__block:hover { background-color: #00aff0; color: #fff; text-decoration: none; }
.services__icon {
    width: 95px; height: 95px; border-radius: 50%;
    border: 1px solid #505050 !important;
    background: transparent !important; box-shadow: none !important;
    border-radius: 50% !important; overflow: hidden !important;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px; flex-shrink: 0;
    transition: border-color .15s;
}
.services__icon img { max-width: 60px; max-height: 60px; object-fit: contain; }
.services__block:hover .services__icon { border-color: rgba(255,255,255,.5) !important; }
.services__block:hover .services__icon img { filter: brightness(0) invert(1); }
.services__heading {
    font-size: .82em; font-weight: 800; letter-spacing: .04em;
    text-transform: uppercase; min-height: 36px; margin-bottom: 8px;
}
.services__block:hover .services__heading { color: #fff; }
.services__text { font-size: .8em; line-height: 1.5; flex: 1; margin-bottom: 12px; }
.services__block:hover .services__text { color: rgba(255,255,255,.9); }
.services__block .btn--outline {
    font-size: .78em; padding: 5px 16px; margin-top: auto;
    transition: border-color .15s, color .15s;
}
.services__block:hover .btn--outline { border-color: rgba(255,255,255,.5); color: #fff; }
/* Responsive */
@media (max-width: 1000px) { .services__item { width: 33.33%; } }
@media (max-width: 640px)  { .services__item { width: 50%; } }

/* =========================================================
   FULL-WIDTH GRAY BAND + SERVICES-CARD (from original layout)
   Used on dentist page: "Usługi w gabinecie" & "Udogodnienia"
   ========================================================= */
.dd-band {
    background: #ebecec;
    padding: 48px 0 44px;
    margin-bottom: 32px;
}
.dd-band__heading {
    text-align: center;
    font-weight: 900;
    font-size: 1.9em;
    color: #2d3037;
    text-transform: uppercase;
    margin: 0 0 40px;
}

/* Slider container: leave room for the 70px side arrows */
.dd-cards-slider { position: relative; margin: 0 70px; }

/* Equal-height slides: stretch cards, pin WIĘCEJ button to bottom */
.dd-cards-slider .slick-track { display: flex !important; }
.dd-cards-slider .slick-slide { height: auto; padding: 0 15px; box-sizing: border-box; }
.dd-cards-slider .slick-slide > div { height: 100%; display: flex; }
.dd-cards-slider .slick-slide > div > * { width: 100%; }
.dd-cards-slider .services-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.dd-cards-slider .services-card__btn { margin-top: auto; }

/* Card (ported from original _services-card.scss) */
.services-card {
    width: 100%;
    color: #2d3037;
    text-align: center;
    padding: 20px 15px;
    display: block;
    box-sizing: border-box;
    text-decoration: none;
}
.services-card__icon {
    height: 95px;
    border-radius: 9999px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 18px;
    box-sizing: border-box;
}
.services-card__icon img { max-height: 70px; }
.services-card__icon--bordered {
    width: 95px;
    border: 1px solid #505050;
}
.services-card__icon--bordered img { max-height: 60px; max-width: 60px; }
.services-card__title {
    min-height: 42px;
    font-weight: 700;
    font-size: 1em;
    line-height: 1.3;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.services-card__text { font-size: .82em; line-height: 1.55; margin: 0 0 14px; }
.services-card__btn {
    font-size: 12px;
    color: #2d3037;
    padding: 2px 14px;
    font-weight: bold;
    border: 1px solid #c8c8c8;
    display: inline-block;
    background: #fff;
    transition: border-color .15s, color .15s, background-color .15s;
}
a.services-card { transition: background-color .15s, color .15s; }
a.services-card:hover { background-color: #00aff0; color: #fff; }
a.services-card:hover .services-card__btn {
    border-color: rgba(255,255,255,.5);
    color: #fff;
    background: transparent;
}
a.services-card:hover .services-card__icon--bordered { border-color: rgba(255,255,255,.5); }
a.services-card:hover .services-card__icon img { filter: brightness(0) invert(1); }

@media (max-width: 800px) {
    .dd-cards-slider { margin: 0; }
    .dd-band__heading { font-size: 1.4em; }
}

/* =========================================================
   DENTIST PAGE HEADER (original layout: logo | name | badge)
   ========================================================= */
/* Offset for the fixed 100px site header (53px on mobile) —
   pages without the .top hero strip need it */
.dd-page-top { padding-top: 150px; }
@media (max-width: 800px) { .dd-page-top { padding-top: 85px; } }

.dd-head {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.dd-head__logo img {
    display: block;
    max-width: 260px;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
}
/* Logo prepared for dark background (admin toggle) */
.dd-head__logo--dark {
    background-color: #2d3037;
    padding: 14px 22px;
}
.dd-head__name { flex: 1; min-width: 240px; }
.dd-head__name h1,
.dd-head__name h2 {
    margin: 0;
    font-size: 2em;
    font-weight: 800;
    color: #2d3037;
    line-height: 1.2;
}
.dd-head__short {
    color: #2d3037;
    line-height: 1.65;
    font-size: .95em;
    margin: 0 0 16px;
}

/* Yellow "Nasza ocena" circle (original .rating) */
.dd-rating-badge {
    background-color: #FED504;
    width: 95px;
    height: 95px;
    border-radius: 9999px;
    font-weight: bold;
    text-align: center;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    line-height: 1;
    color: #2d3037;
    margin-left: auto;
}
.dd-rating-badge__label { font-size: .85em; line-height: 1.15; }
.dd-rating-badge__score { font-size: 1.7em; font-weight: 900; margin-top: 4px; }

/* =========================================================
   STARS (original .stars / .stars--lg)
   ========================================================= */
.dd-stars { display: inline-flex; }
.dd-stars__star { padding: 0 3px; font-size: 1.3rem; color: #adb5bd; }
.dd-stars__star--active { color: #FED504; }
.dd-stars--lg .dd-stars__star { font-size: 2.2rem; }

/* --- "Ocena klientów: 4,2" right-aligned block --- */
.dd-clients-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin: 4px 0 36px;
}
.dd-clients-rating__row {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 2px;
}
.dd-clients-rating__label { font-weight: 700; font-size: 1.05em; }
.dd-clients-rating__score { font-size: 1.9em; font-weight: 900; line-height: 1; }

/* =========================================================
   GALLERY (original: GALERIA ZDJĘĆ) — same width as sliders
   ========================================================= */
.dd-gallery { padding: 24px 0 8px; margin-bottom: 24px; }
.dd-gallery__slide { padding: 0 15px; text-align: center; }
.dd-gallery__slide img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}
@media (max-width: 800px) { .dd-gallery__slide img { height: 260px; } }

/* =========================================================
   MAP (original .map: full width, aspect-ratio box)
   ========================================================= */
.dd-map-section { padding: 24px 0 0; margin-bottom: 40px; }
.dd-map {
    width: 100%;
    padding-top: 56%;
    position: relative;
}
@media (min-width: 576px) { .dd-map { padding-top: 36%; } }
.dd-map iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border: 0;
    display: block;
}

/* =========================================================
   OPINIE O GABINECIE (original layout)
   ========================================================= */
.dd-opinie { padding-top: 8px; }
.dd-opinie__top {
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 36px;
}
.dd-opinie__heading {
    flex: 1 1 280px;
    margin: 0;
    font-size: 1.9em;
    font-weight: 300;
    color: #2d3037;
    text-transform: uppercase;
    line-height: 1.2;
}
.dd-opinie__heading-bold { font-weight: 900; }
.dd-opinie__summary { display: flex; flex: 2 1 460px; flex-wrap: wrap; }
.dd-opinie__box {
    border: 1px solid #dee2e6;
    padding: 18px 16px;
    text-align: center;
    background: #fff;
    box-sizing: border-box;
}
.dd-opinie__box--score { flex: 6; min-width: 240px; }
.dd-opinie__box--list  { flex: 5; min-width: 240px; margin-left: -1px; }
.dd-opinie__box-title { font-size: 1.25em; font-weight: 700; margin-bottom: 10px; }
.dd-opinie__score-row {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 6px;
}
.dd-opinie__score { font-size: 1.6em; font-weight: 700; }
.dd-opinie__count { font-weight: 700; }

/* --- rating distribution list (original .rating-list + .progressbar) --- */
.dd-rating-list {
    display: inline-flex;
    flex-direction: column;
    text-align: left;
    padding-top: 4px;
}
.dd-rating-list__item { display: flex; align-items: center; margin: 3px 0; }
.dd-rating-list__number { margin-right: .5rem; min-width: 14px; font-size: .95em; }
.dd-rating-list__item .dd-rating-list__number:last-child { margin-right: 0; margin-left: .25rem; }
.dd-rating-list__star { color: #FED504; margin-right: 1rem; font-size: .9em; }
.dd-rating-list__progressbar { width: 150px; margin-right: 1rem; }
.dd-progressbar {
    background-color: #ebecec;
    width: 100%;
    height: 6px;
    position: relative;
}
.dd-progressbar__bar {
    background-color: #FED504;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* --- add opinion form (original .form) --- */
.dd-form { width: 100%; font-size: 16px; margin-bottom: 16px; }
.dd-form__group--rating { position: relative; margin-bottom: 1.6rem; }
.dd-form__stars {
    position: absolute;
    top: 16px;
    right: 18px;
    z-index: 2;
    cursor: pointer;
}
.dd-form__stars .dd-stars__star { font-size: 1.5rem; transition: color .1s; }
.dd-form textarea {
    background-color: #fff;
    width: 100%;
    color: #2d3037;
    padding: 18px 24px;
    padding-right: 190px;
    border: 1px solid #cdcdcd;
    border-radius: 0;
    box-sizing: border-box;
    resize: none;
    font-family: inherit;
    font-size: 1em;
    outline: none;
}
.dd-form textarea:focus { border-color: #2d3037; box-shadow: none; }
.dd-form__row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}
.dd-form__input {
    background-color: #fff;
    color: #2d3037;
    padding: 10px 16px;
    border: 1px solid #cdcdcd;
    border-radius: 0;
    font-weight: bold;
    font-size: .95em;
    box-sizing: border-box;
    width: 180px;
    outline: none;
    font-family: inherit;
}
.dd-form__input:focus { border-color: #2d3037; box-shadow: none; }
.dd-form__input--captcha { width: 150px; }
.dd-form__submit {
    background-color: #00aff0;
    border: 1px solid #00aff0;
    color: #fff;
    padding: 10px;
    font-size: 16px;
    font-family: inherit;
    text-align: center;
    width: 280px;
    max-width: 100%;
    margin-left: auto;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}
.dd-form__submit:hover { background-color: #fff; color: #00aff0; }
.dd-form__note { color: #aaa; font-size: .8em; margin: 10px 0 0; }

/* --- sort --- */
.dd-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 0;
    margin-bottom: 8px;
    font-size: 16px;
}
.dd-sort select {
    border: none;
    background: transparent;
    font-weight: bold;
    font-size: 1em;
    font-family: inherit;
    cursor: pointer;
    outline: none;
}

/* --- review item (original gray bg-light box) --- */
.dd-op {
    background-color: #ebecec;
    padding: 26px 40px;
    margin-bottom: 24px;
    font-size: .9em;
}
.dd-op__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.dd-op__author { font-weight: bold; }
.dd-op__body { margin: 0; line-height: 1.65; color: #2d3037; }

@media (max-width: 640px) {
    .dd-head { gap: 16px; }
    .dd-rating-badge { margin-left: 0; }
    .dd-op { padding: 18px 20px; }
    .dd-form textarea { padding-right: 24px; }
    .dd-form__stars { position: static; display: inline-flex; margin-bottom: 8px; }
    .dd-form__submit { width: 100%; margin-left: 0; }
}

/* =========================================================
   HOMEPAGE — layout redesign (matches original index.html)
   ========================================================= */

/* Blue full-width bar heading (original .bg-primary strip) */
.dd-bar {
    background-color: #00aff0;
    color: #fff;
    padding: 16px;
    text-align: center;
    font-size: 1.55em;
    font-weight: 700;
    text-transform: uppercase;
}

/* Centered section heading: light + black spans */
.dd-h2 {
    text-align: center;
    font-size: 1.9em;
    color: #2d3037;
    text-transform: uppercase;
    margin: 0 0 40px;
    line-height: 1.3;
    font-weight: 300;
}
.dd-h2__light { font-weight: 300; }
.dd-h2__black { font-weight: 900; }
@media (max-width: 800px) { .dd-h2 { font-size: 1.4em; } }

.dd-section { padding: 48px 0 8px; }
.dd-slider-section { padding: 40px 0 32px; }

/* --- OFFICE CARD (original .office-card) --- */
.office-card {
    width: 100%;
    font-size: 14px;
    color: #2d3037;
    border: 1px solid #cdcdcd;
    text-align: center;
    display: block;
    text-decoration: none;
    background: #fff;
    transition: border-color .15s, color .15s;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
.office-card:hover { border-color: #00aff0; color: #fff; }
.office-card:hover .office-card__logo::after { opacity: 0; }
.office-card:hover .office-card__block { background-color: #00aff0; }
.office-card:hover .office-card__btn { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.office-card:hover .office-card__meta,
.office-card:hover .office-card__meta span,
.office-card:hover .office-card__text,
.office-card:hover .dd-distance { color: #fff !important; }

.office-card__logo {
    padding: 25px 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    flex-shrink: 0;
}
.office-card__logo::after {
    background-color: #cdcdcd;
    width: 115px;
    max-width: 100%;
    height: 1px;
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity .15s;
}
.office-card__logo-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.office-card__logo-chip--dark { background: #2d3037; padding: 8px 14px; }
.office-card__logo img { max-height: 64px; max-width: 150px; object-fit: contain; display: block; }

.office-card__block {
    padding: 20px;
    transition: background-color .15s;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.office-card__block b { display: block; margin-bottom: 6px; }
.office-card__meta { margin-bottom: 4px; }
.office-card__text { font-size: .92em; line-height: 1.5; margin: 8px 0 14px; }
.office-card__btn {
    margin-top: auto;
    align-self: center;
    background: #fff;
    transition: border-color .15s, color .15s, background-color .15s;
}

/* --- FEATURED ARTICLE HERO (original: bg-light text | full photo) --- */
.porady-hero {
    display: flex;
    flex-wrap: wrap;
    text-decoration: none;
    color: #2d3037;
    margin-bottom: 32px;
}
.porady-hero__text {
    flex: 1 1 50%;
    min-width: 300px;
    background: #ebecec;
    padding: 48px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    text-align: right;
    box-sizing: border-box;
    transition: background-color .15s, color .15s;
}
.porady-hero:hover .porady-hero__text { background-color: #00aff0; color: #fff; }
.porady-hero:hover .porady-hero__btn { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.porady-hero__inner { max-width: 480px; display: flex; flex-direction: column; }
.porady-hero__heading { font-size: 1.15em; font-weight: 700; text-transform: uppercase; margin: 0 0 16px; }
.porady-hero__inner p { font-size: .95em; line-height: 1.65; margin: 0 0 18px; }
.porady-hero__btn-wrap { margin-top: auto; }
.porady-hero__btn { background: #fff; transition: border-color .15s, color .15s, background-color .15s; }
.porady-hero__photo {
    flex: 1 1 50%;
    min-width: 300px;
    min-height: 340px;
    background-size: cover;
    background-position: center;
}

/* --- ARTICLE CARD (original .article-card) --- */
.articles-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
@media (max-width: 1000px) { .articles-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .articles-row { grid-template-columns: 1fr; } }

.article-card {
    width: 100%;
    color: #2d3037;
    display: block;
    text-decoration: none;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
.article-card:hover .article-card__block,
.article-card:hover .article-card__title { background-color: #00aff0; color: #fff; }
.article-card:hover .article-card__btn { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }

.article-card__thumbnail { position: relative; flex-shrink: 0; }
.article-card__thumbnail img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}
.article-card__title {
    background-color: rgba(255,255,255,.7);
    width: 100%;
    padding: 25px;
    position: absolute;
    bottom: 0;
    left: 0;
    box-sizing: border-box;
    transition: background-color .15s, color .15s;
}
.article-card__title-main {
    font-size: 1.45em;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 4px;
    line-height: 1.2;
}
.article-card__title-sub { font-size: 1.02em; font-weight: 400; line-height: 1.35; text-transform: uppercase; }

.article-card__block {
    padding: 30px 15px;
    transition: background-color .15s, color .15s;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.article-card__heading {
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 8px;
    line-height: 1.35;
}
.article-card__text { font-size: .88em; line-height: 1.6; margin: 0 0 8px; }
.article-card__block .text-center { margin-top: auto; }
.article-card__btn { background: #fff; transition: border-color .15s, color .15s, background-color .15s; }

/* --- SERVICES CARD: specialization footer (original) --- */
.services-card__specialization {
    color: inherit;
    margin-top: 20px;
    padding: 20px 10px;
    font-size: 14px;
    line-height: 1.25;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}
.services-card__specialization::before {
    background-color: #cdcdcd;
    width: calc(100% - 30px);
    height: 1px;
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: background-color .15s;
}
.services-card__arrow { width: 20px; height: 20px; margin-left: 15px; flex-shrink: 0; }
.services-card__arrow svg { width: 100%; height: 100%; display: block; }
a.services-card:hover .services-card__specialization::before { background-color: rgba(255,255,255,.5); }
a.services-card:hover .services-card__arrow svg path { fill: #fff; }
/* cards with specialization: text flexes so WIĘCEJ aligns; specialization pinned bottom */
.dd-cards-slider .services-card .services-card__text { flex: 1; }
.dd-cards-slider .services-card .services-card__specialization { margin-top: auto; }
.dd-cards-slider .services-card .services-card__btn { margin-top: 0; }

/* --- REGION TABLES (original .table + .tables-grid) --- */
.tables-grid {
    width: 100%;
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
}
@media (min-width: 1000px) { .tables-grid { gap: 60px; grid-template-columns: repeat(2, 1fr); } }

.dd-table {
    width: 100%;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: #2d3037;
    border-collapse: collapse;
    margin: 0;
    background: #fff;
}
.dd-table tr th {
    padding: 9px;
    border: 1px solid #cdcdcd;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    background: #fff;
    color: #2d3037;
    font-size: 1.05em;
    letter-spacing: .02em;
}
.dd-table tr td {
    padding: 20px;
    vertical-align: top;
    font-weight: 400;
    border: 1px solid #cdcdcd;
}
.dd-table__cell { width: 37%; transition: background-color .15s, color .15s; }
.dd-table__cell a { color: inherit; text-decoration: none; display: block; line-height: 1.5; }
.dd-table__cell:hover { background-color: #00aff0; color: #fff; }
.dd-table__informations { width: 26%; text-align: center; }
.dd-table__informations a { color: inherit; text-decoration: none; display: block; }
.dd-table__informations a:hover { color: #00aff0; }
.dd-table__logo-wrap { display: inline-flex; align-items: center; justify-content: center; }
.dd-table__logo-wrap--dark { background: #2d3037; padding: 10px 14px; }
.dd-table__logo { max-width: 100%; max-height: 80px; margin: auto; display: block; }
.dd-table__divider {
    background-color: #cdcdcd;
    width: calc(100% - 40px);
    height: 1px;
    margin: 20px auto;
    display: block;
    clear: both;
}
.dd-table__text { margin: 0; line-height: 1.55; }

/* --- REVIEW CARD (original .review-card) --- */
.reviews-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
@media (max-width: 1000px) { .reviews-row { grid-template-columns: 1fr; } }
.review-card {
    width: 100%;
    text-align: center;
    display: block;
    color: #2d3037;
    text-decoration: none;
    font-size: .9em;
}
.review-card__author { font-weight: 700; margin-bottom: 28px; }
.review-card__company { font-weight: 700; margin-bottom: 16px; text-transform: uppercase; }
.review-card__logo { margin-bottom: 20px; }
.review-card__logo span { display: inline-flex; align-items: center; justify-content: center; }
.review-card__logo-dark { background: #2d3037; padding: 10px 16px; }
.review-card__logo img { max-height: 70px; max-width: 180px; object-fit: contain; display: block; }
.review-card__text { text-align: justify; line-height: 1.7; }
.review-card:hover .review-card__company { color: #00aff0; }

/* --- WYSIWYG content output --- */
.dd-wysiwyg { color: var(--dd-text); line-height: 1.7; font-size: .95em; }
.dd-wysiwyg p  { margin: 0 0 .8em; }
.dd-wysiwyg ul, .dd-wysiwyg ol { margin: 0 0 .8em 1.4em; }
.dd-wysiwyg h2, .dd-wysiwyg h3 { color: var(--dd-navy); margin: 1em 0 .4em; }
.dd-wysiwyg strong { color: var(--dd-navy); }
.dd-wysiwyg a { color: var(--dd-blue); }

/* --- Phone link --- */
a.dd-phone { color: #1a7a2e; font-weight: 600; text-decoration: none; }
a.dd-phone:hover { text-decoration: underline; }

/* --- Office card hover (full blue block, from original design) --- */
.offices_list__item:hover {
    border-color: #00aff0;
    color: #fff;
}
.offices_list__item:hover .offices_list__divider {
    opacity: 0;
}
.offices_list__item:hover .offices_list__block {
    background-color: #00aff0;
}
.offices_list__item:hover .btn--outline {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}
.offices_list__item:hover .dd-distance {
    color: #fff;
}
.offices_list__item { transition: border-color 0.15s; }
.offices_list__block { transition: background-color 0.15s; }

/* --- Utils --- */
.text-center { text-align: center; }

/* --- Responsive --- */
@media (max-width: 640px) {
    .dd-info-header { flex-direction: column; }
    .dd-rating { min-width: auto; width: 100%; }
}

/* =========================================================
   MOBILE OVERFLOW FIXES
   Prevent any section from making the page wider than the
   viewport (which pushes the fixed hamburger off-screen).
   overflow-x: clip is safe for position:fixed — unlike
   overflow-x: hidden it does not create a scroll container.
   ========================================================= */
html, body { overflow-x: clip; }

/* Contain slider sections so arrow absolutely-positioned
   elements never extend past the viewport edge */
.dd-slider-section,
.dd-band { overflow: hidden; }

/* porady-hero: remove hard min-width so panels stack cleanly
   on narrow screens without forcing a 600px minimum */
@media (max-width: 640px) {
    .porady-hero__text,
    .porady-hero__photo { min-width: 0; width: 100%; }
    .porady-hero__text  { padding: 28px 20px; }
}

/* Region tables: hide the featured-dentist informations column
   on mobile — 3 HTML table columns are too wide for small screens */
@media (max-width: 640px) {
    .dd-table__informations { display: none; }
    .dd-table tr td         { padding: 12px; }
    .dd-table__cell         { width: 50%; }
}


/* Najwieksze miasta (region page) - matches dobry-dentysta reference .city-card */
.city-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 1000px) {
    .city-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .city-cards-grid { grid-template-columns: 1fr; }
}
.city-card {
    display: block;
    width: 100%;
    text-decoration: none;
}
.city-card img,
.city-card__placeholder {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-color: #dbe6ee;
}
.city-card__placeholder {
    background-image: linear-gradient(135deg, var(--dd-navy) 0%, var(--dd-blue) 100%);
}
.city-card__title {
    background-color: var(--dd-blue);
    color: #fff;
    text-align: center;
    font-weight: bold;
    font-size: 1.4em;
    padding: 10px 8px 14px;
    border: 1px solid var(--dd-blue);
    transition: background-color .15s, color .15s;
}
.city-card:hover .city-card__title {
    background-color: #fff;
    color: var(--dd-blue);
}

/* Region page intro: heading/breadcrumbs/description + coat of arms (region.blade.php) */
.region-intro {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.region-intro__coat {
    flex: 0 0 140px;
}
.region-intro__coat img {
    display: block;
    width: 100%;
    height: auto;
}
.region-intro__text {
    flex: 1;
    min-width: 260px;
}
.region-intro__heading {
    margin: 0 0 10px;
    font-size: 1.6em;
    font-weight: 900;
    color: #222;
}
.region-intro__description {
    color: #555;
    line-height: 1.7;
    margin: 16px 0 0;
    max-width: 900px;
}
@media (max-width: 640px) {
    .region-intro { text-align: center; justify-content: center; }
    .region-intro__coat { flex-basis: 100px; margin: 0 auto; }
}



/* ============================================================
   Dentist listing card (city page) — matches miasto.html reference
   Solid blue .dd-bar section band + bordered card with square photo
   ============================================================ */
.dd-office-list { padding-top: 40px; padding-bottom: 8px; }

.dd-dentist-card {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    flex-wrap: wrap;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid var(--dd-border);
    padding: 24px;
    margin-bottom: 24px;
    transition: border-color .15s, box-shadow .15s;
}
.dd-dentist-card:hover {
    border-color: var(--dd-blue);
    box-shadow: 0 4px 16px rgba(13,79,124,.10);
}
.dd-dentist-card__photo {
    flex: 0 0 180px;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f4f8fc;
}
.dd-dentist-card__photo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.dd-dentist-card__photo--dark {
    background: #2d3037;
}
.dd-dentist-card__photo--dark img {
    max-width: 78%;
    max-height: 78%;
}
.dd-dentist-card__body {
    flex: 1;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.dd-dentist-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 14px;
}
.dd-dentist-card__heading { min-width: 0; }
.dd-dentist-card__name {
    font-size: 1.5em;
    font-weight: 800;
    color: #222;
    line-height: 1.2;
    margin-bottom: 6px;
}
.dd-dentist-card__tagline {
    font-weight: 700;
    color: #444;
    font-size: .95em;
    line-height: 1.4;
}
.dd-dentist-card__score {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    white-space: nowrap;
}
.dd-dentist-card__score-num {
    font-weight: 700;
    font-size: 1.05em;
    color: #222;
}
.dd-dentist-card__text {
    color: #555;
    font-size: .92em;
    line-height: 1.65;
    margin: 0 0 16px;
}
.dd-dentist-card__meta {
    color: #888;
    font-size: .85em;
    margin: 0 0 4px;
}
.dd-dentist-card__btn {
    align-self: flex-start;
    margin-top: 8px;
}
@media (max-width: 640px) {
    .dd-dentist-card { text-align: center; flex-direction: column; align-items: center; }
    .dd-dentist-card__photo { flex-basis: 140px; width: 140px; height: 140px; }
    .dd-dentist-card__body { align-items: center; }
    .dd-dentist-card__header { flex-direction: column; align-items: center; gap: 10px; }
    .dd-dentist-card__btn { align-self: center; }
}

/* Card button — small bordered, fills blue on hover (miasto.html reference .btn) */
.dd-dentist-card__btn {
    font-size: 12px;
    font-weight: 700;
    color: #2d3037;
    padding: 7px 20px;
    border: 1px solid var(--dd-border);
    background: #fff;
    text-transform: uppercase;
    letter-spacing: .03em;
    transition: background-color .15s, border-color .15s, color .15s;
}
.dd-dentist-card:hover .dd-dentist-card__btn {
    background-color: var(--dd-blue);
    border-color: var(--dd-blue);
    color: #fff;
}

/* Services/Facilities index grid (uslugi / udogodnienia pages) */
.dd-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px 4px;
}
@media (max-width: 1100px) { .dd-cards-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .dd-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .dd-cards-grid { grid-template-columns: 1fr; } }
.services-card__count {
    font-size: .8em;
    color: #8a8f98;
    font-weight: 700;
    margin-bottom: 14px;
}

/* ============================================================
   Service / Facility detail pages (usluga.html reference)
   ============================================================ */
.detail-hero {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.detail-hero__icon {
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
    margin: 0;
}
.detail-hero__icon img { max-width: 52px; max-height: 52px; }
.detail-hero__body { flex: 1; min-width: 260px; }
.detail-hero__heading {
    margin: 0 0 10px;
    font-size: 1.7em;
    font-weight: 900;
    color: #222;
    line-height: 1.15;
}
.detail-hero__lead {
    color: #555;
    line-height: 1.7;
    margin: 16px 0 0;
    max-width: 900px;
}
.page-content { max-width: 820px; margin: 0 auto; }
.page-content h2 { font-size: 1.35em; font-weight: 800; color: #222; margin: 28px 0 14px; }
.page-content p { line-height: 1.8; margin: 0 0 16px; color: #444; }

/* dentist row (compact list on service/facility pages) */
.detail-office {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid var(--dd-border);
    padding: 16px 22px;
    margin-bottom: 12px;
    transition: border-color .15s, box-shadow .15s;
}
.detail-office:hover { border-color: var(--dd-blue); box-shadow: 0 3px 12px rgba(13,79,124,.10); }
.detail-office__info { flex: 1; min-width: 220px; }
.detail-office__name { font-weight: 800; font-size: 1.1em; color: var(--dd-blue); margin-bottom: 3px; }
.detail-office__meta { color: #888; font-size: .85em; }
.detail-office__rating { flex-shrink: 0; }
@media (max-width: 640px) {
    .detail-hero { justify-content: center; text-align: center; }
    .detail-hero__icon { margin: 0 auto; }
    .detail-office { justify-content: center; text-align: center; }
}

/* FAQ accordion (service pages) */
.dd-faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.dd-faq__item { border: 1px solid var(--dd-border); border-radius: 8px; background: #fff; overflow: hidden; }
.dd-faq__q {
    cursor: pointer; padding: 16px 20px; font-weight: 700; color: #222; list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.dd-faq__q::-webkit-details-marker { display: none; }
.dd-faq__q::after { content: "+"; color: var(--dd-blue); font-size: 1.4em; font-weight: 400; line-height: 1; }
.dd-faq__item[open] .dd-faq__q::after { content: "\2212"; }
.dd-faq__item[open] .dd-faq__q { border-bottom: 1px solid var(--dd-border); }
.dd-faq__a { padding: 16px 20px; color: #555; line-height: 1.7; font-size: .95em; }
