.theme-v5 .v5-nav .v5-menu-group > button {
    height: 80px;
    padding: 0;
    gap: 6px;
    font-weight: 500;
    color: #223033;
    border-bottom: 3px solid transparent;
}

.theme-v5 .v5-menu-group > button[aria-expanded="true"] {
    color: #004050;
    border-bottom-color: #2cc3ec;
}

.theme-v5 .v5-menu-group > button[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.theme-v5 .v5-shade {
    position: absolute;
    inset: 100% 0 auto;
    height: 100vh;
    height: 100dvh;
    z-index: 1;
    background: rgba(0, 48, 60, .32);
}

.theme-v5 .v5-shade[hidden], .theme-v5 .v5-panel[hidden] {
    display: none;
}

.theme-v5 .v5-panel {
    z-index: 2;
    width: min(1200px, calc(100% - 80px));
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 0 30px 60px rgba(0, 48, 60, .22);
}

.theme-v5 .v5-offer-browser {
    display: grid;
    grid-template-columns: minmax(215px, 30%) minmax(0, 1fr) minmax(185px, 21.667%);
    min-height: 440px;
    color: #223033;
}
.theme-v5 .v5-departments {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 24px 12px 24px 14px;
    border-right: 1px solid #eef2f2;
}
.theme-v5 .v5-nav .v5-department {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px 10px 12px;
    border: 0;
    border-radius: 16px;
    text-align: left;
    box-shadow: none;
}
.theme-v5 .v5-department:hover { background: #f3fbfd; }
.theme-v5 .v5-department[aria-selected="true"] { background: #eaf7fb; }
.theme-v5 .v5-department-copy { flex: 1; min-width: 0; }
.theme-v5 .v5-department-copy :is(strong, small) {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.theme-v5 .v5-department-copy strong, .theme-v5 .v5-service-card strong {
    display: block;
    color: #004050;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
}
.theme-v5 .v5-department-copy small, .theme-v5 .v5-service-card small {
    display: block;
    margin-top: 2px;
    color: #5d6e71;
    font-size: 12.5px;
    line-height: 1.35;
}
.theme-v5 .v5-department > .mn-icon { width: 16px; color: #93a6a9; flex: none; }
.theme-v5 .v5-department[aria-selected="true"] > .mn-icon { color: #0b6f8f; }
.theme-v5 .v5-offer-details { min-width: 0; padding: 32px clamp(20px, 2.5vw, 36px) 28px; }
/* Nagłówek działu: „Cały dział →” zawsze w wierszu liczby zabiegów, po prawej, niezależnie od długości tytułu i opisu.
   Kolejność w HTML bez zmian (nagłówek przed linkiem), układ robi siatka. */
.theme-v5 .v5-offer-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: baseline; }
.theme-v5 .v5-offer-intro > div { display: contents; }
.theme-v5 .v5-offer-intro > div > * { grid-column: 1 / -1; }
.theme-v5 .v5-offer-intro > div > .v5-offer-count { grid-column: 1; grid-row: 1; }
.theme-v5 .v5-offer-intro > .v5-department-link { grid-column: 2; grid-row: 1; white-space: nowrap; }
.theme-v5 .v5-offer-count { margin: 0 0 6px; color: #0b6f8f; font: 500 12px/1.5 Poppins,sans-serif; text-transform: uppercase; letter-spacing: .12em; }
.theme-v5 .v5-offer-intro h2 { margin: 0; color: #004050; font: 500 25px/1.2 Poppins,sans-serif; letter-spacing: -.01em; }
.theme-v5 .v5-offer-lead { margin: 6px 0 0; font-size: 14.5px; line-height: 1.6; color: #4c5d60; }
.theme-v5 .v5-department-link { font-size: 14.5px; font-weight: 500; color: #0b6f8f; }
.theme-v5 .v5-service-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 22px; }
.theme-v5 .v5-service-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 72px;
    padding: 12px 14px 12px 18px;
    border: 1px solid #e7eeee;
    border-radius: 18px;
    text-decoration: none;
}
.theme-v5 .v5-service-card small { margin-top: 3px; font-size: 13px; line-height: 1.4; }
.theme-v5 .v5-service-arrow { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; color: #004050; background: #f1f5f5; }
.theme-v5 .v5-service-arrow svg { width: 14px; height: 14px; }
.theme-v5 .v5-service-card:is(:hover,:focus-visible) { background: #f3fbfd; text-decoration: none; }
.theme-v5 .v5-service-card:is(:hover,:focus-visible) .v5-service-arrow { background: #2cc3ec; color: #062b33; }
.theme-v5 .v5-patient-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 36px 40px 32px;
}
.theme-v5 .v5-panel .v5-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    color: #1aa6cf;
    background: #eaf7fb;
}

.theme-v5 .v5-department .v5-icon { width: 40px; height: 40px; border-radius: 12px; }
.theme-v5 .v5-department .v5-icon svg { width: 22px; }
.theme-v5 .v5-department[aria-selected="true"] .v5-icon { background: #fff; }
.theme-v5 .v5-menu-aside {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 32px 24px 24px;
    border-radius: 0;
}

.theme-v5 .v5-menu-aside > strong { font-size: 17px; font-weight: 500; color: #004050; }
.theme-v5 .v5-menu-aside > strong em { font-weight: 400; }
.theme-v5 .v5-menu-aside .v5-chips { display: flex; flex-flow: row wrap; gap: 6px; margin: 0; }

.theme-v5 .v5-menu-aside .v5-chips a {
    flex: 0 1 auto;
    width: auto;
    justify-content: flex-start;
    min-height: 30px;
    padding: 4px 11px;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.35;
    background: #fff;
    color: #0d4a5a;
    transition: background-color .2s, transform .2s;
}

.theme-v5 .v5-menu-aside .v5-chips a:hover {
    background: #d5f2f8;
    transform: translateY(-1px);
}

.theme-v5 .v5-offer-call { margin-top: auto; padding: 16px 18px; border-radius: 20px; background: #fff; color: #4c5d60; font-size: 13.5px; line-height: 1.5; }
.theme-v5 .v5-offer-call a { display: block; margin-top: 4px; color: #004050; font-size: 20px; font-weight: 600; }
.theme-v5 .v5-patient-grid { gap: 14px; grid-auto-rows: 1fr; }

.theme-v5 .v5-patient-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border: 1px solid #e7eeee;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color .2s, border-color .2s;
}

.theme-v5 .v5-patient-card:hover { background: #f3fbfd; border-color: #bfe3ee; }
.theme-v5 .v5-patient-card strong { display: block; color: #004050; font-size: 16px; font-weight: 500; }
.theme-v5 .v5-patient-description { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.5; color: #4c5d60; }

@media (max-width: 1200px) {
    .theme-v5 .v5-service-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 172px), 1fr)); }
}

@media (max-width: 1024px) {
    .theme-v5:not(.has-mobile-navigation) .v5-patient-grid { grid-template-columns: 1fr; }
    .theme-v5:not(.has-mobile-navigation) .v5-panel { width: calc(100% - 24px); }
}

@media (prefers-reduced-motion: reduce) {
    .theme-v5 .v5-menu-aside .v5-chips a:hover { transform: none; }
    .theme-v5 .v5-menu-aside .v5-chips a, .theme-v5 .v5-patient-card { transition: none; }
}
