:root {
    --bg: #f6f1ea;
    --bg-alt: #efe7de;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-soft: #fbf8f4;
    --text: #24303a;
    --text-soft: #5f6d76;
    --line: #e5ddd3;

    --accent: #9bb9c4;
    --accent-strong: #7ea5b3;
    --accent-soft: #bfd4db;

    --lux: #cbb79d;
    --lux-soft: #e8dccb;

    --shadow-main: 0 14px 34px rgba(36, 48, 58, 0.08);
    --shadow-soft: 0 10px 26px rgba(203, 183, 157, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

/* LOADER */
#page-loader {
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, #f8f3ed 0%, #f2ebe3 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

#page-loader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-inner {
    width: min(320px, 80vw);
    text-align: center;
}

.loader-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d7c4ad, #eee2d4);
    color: #4c4236;
    font-size: 22px;
    font-weight: 700;
    box-shadow: 0 10px 26px rgba(203, 183, 157, 0.25);
}

.loader-bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(155, 185, 196, 0.18);
}

.loader-progress {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #a6c2cd, #d8c7b1, #8fb2bf);
    animation: loaderMove 1.2s ease-in-out infinite;
    transform-origin: left center;
}

@keyframes loaderMove {
    0% { transform: translateX(-70%); }
    100% { transform: translateX(100%); }
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(246, 241, 234, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--text);
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d7c4ad, #eee2d4);
    color: #4c4236;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(203, 183, 157, 0.24);
}

.logo-text {
    font-size: 18px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.nav a {
    font-size: 15px;
    color: #42515c;
    transition: color 0.2s ease;
}

.nav a:hover {
    color: var(--accent-strong);
}

/* SEKCJE */
.section {
    padding: 84px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-head {
    margin-bottom: 28px;
}

.section-head.center {
    text-align: center;
}

.section-kicker,
.hero-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: #8a7d6c;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* HERO */
.hero {
    padding: 62px 0 70px;
    background:
        radial-gradient(circle at top right, rgba(191, 212, 219, 0.75) 0%, transparent 28%),
        radial-gradient(circle at left center, rgba(232, 220, 203, 0.45) 0%, transparent 24%),
        linear-gradient(180deg, #faf6f0 0%, #f4ede5 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 28px;
    align-items: center;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(40px, 5vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.035em;
    max-width: 640px;
    color: #22303a;
}

.lead {
    margin: 0 0 28px;
    max-width: 650px;
    font-size: 18px;
    color: var(--text-soft);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-badges span {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(203, 183, 157, 0.38);
    color: var(--text-soft);
    font-size: 14px;
    box-shadow: 0 8px 20px rgba(36, 48, 58, 0.04);
}

/* KARTY */
.card {
    background: var(--surface);
    border: 1px solid rgba(203, 183, 157, 0.18);
    border-radius: 24px;
    padding: 28px;
    box-shadow:
        0 12px 30px rgba(36, 48, 58, 0.06),
        0 2px 8px rgba(203, 183, 157, 0.08);
}

.soft-card {
    background: var(--surface-soft);
}

.hero-card h3,
.service-card h3,
.price-card h3,
.faq-item h3,
.contact-card h2,
.step h3 {
    margin-top: 0;
}

.feature-list {
    margin: 0;
    padding-left: 20px;
    color: var(--text-soft);
}

/* KOLUMNY / GRID */
.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 28px;
    align-items: start;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.contact-cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* TAGI */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-list span {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: #eef3f6;
    color: #42515c;
    font-size: 14px;
}

/* LINKI WEWNĄTRZ KART */
.text-link {
    display: inline-block;
    margin-top: 14px;
    color: var(--accent-strong);
    font-weight: 700;
}

/* CENNIK */
.price-card {
    text-align: center;
}

.price-card.featured {
    background: linear-gradient(180deg, #fcfbf8 0%, #f6efe7 100%);
    border-color: rgba(203, 183, 157, 0.28);
}

.price {
    margin: 14px 0 6px;
    font-size: 36px;
    font-weight: 700;
}

/* KROKI */
.step-no {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d7c4ad, #eee2d4);
    color: #4c4236;
    font-weight: 700;
    margin-bottom: 16px;
    box-shadow: 0 8px 18px rgba(203, 183, 157, 0.18);
}

/* FAQ */
.faq-list {
    display: grid;
    gap: 18px;
}

/* STOPKA */
.site-footer {
    background: #24303a;
    color: #f8f6f2;
    padding: 34px 0;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.muted {
    color: var(--text-soft);
}

.site-footer .muted {
    color: #c7d0d6;
}

/* PRZYCISKI */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    color: #ffffff;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.28s ease;
    box-shadow: 0 12px 28px rgba(155, 185, 196, 0.28);
    letter-spacing: 0.01em;
}

.btn:hover {
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(126, 165, 179, 0.36);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-small {
    min-height: 42px;
    padding: 0 18px;
}

/* PRZYCISK W MENU */
.nav a.btn.btn-small {
    min-height: 46px;
    padding: 0 24px;
    background: linear-gradient(135deg, #8fb2bf, #b4ced6) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.58) !important;
    box-shadow: 0 14px 32px rgba(143, 178, 191, 0.34) !important;
}

.nav a.btn.btn-small:hover {
    background: linear-gradient(135deg, #7fa6b5, #a8c7d1) !important;
    color: #ffffff !important;
    box-shadow: 0 18px 38px rgba(143, 178, 191, 0.42) !important;
}

/* OUTLINE */
.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid #d5dde2;
    box-shadow: none;
}

.btn-outline:hover {
    background: #fff;
}

/* FORMULARZE */
input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #d9d1c7;
    border-radius: 14px;
    background: #fff;
    font: inherit;
    color: var(--text);
}

label {
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 700;
}

.field {
    margin-bottom: 16px;
}

.notice.error {
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff1f1;
    color: #9b2e2e;
    border: 1px solid #f0c8c8;
    margin-bottom: 16px;
}

.form-card {
    max-width: 760px;
    margin: 0 auto;
}

.small {
    font-size: 14px;
}

/* DELIKATNE ANIMACJE */
.card,
.section-head,
.hero-copy,
.hero-card {
    animation: fadeUp 0.7s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSYWNOŚĆ */
@media (max-width: 980px) {
    .hero-grid,
    .two-col,
    .grid-3,
    .steps,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .nav {
        gap: 14px;
    }
}

@media (max-width: 720px) {
    .header-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 0;
    }

    .nav {
        width: 100%;
    }

    .hero-copy h1 {
        font-size: 42px;
    }

    .lead {
        font-size: 16px;
    }

    .section {
        padding: 60px 0;
    }
}

/* --- PREMIUM LOGIN PACJENTA --- */
body.patient-ui.patient-login-page {
    --patient-ivory: #fbf8f2;
    --patient-warm-white: #fffdf9;
    --patient-gold: #b98b4f;
    --patient-gold-dark: #93672f;
    --patient-ink: #2d2924;
    --patient-muted: #746c62;
    background: var(--patient-ivory);
    color: var(--patient-ink);
    overflow-x: hidden;
}

body.patient-ui.patient-login-page main {
    min-height: calc(100vh - 82px);
}

body.patient-ui.patient-login-page .patient-login {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 82px);
    padding: 64px 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 20%, rgba(214, 183, 134, 0.17), transparent 28%),
        linear-gradient(135deg, #fbf8f2 0%, #f6efe6 52%, #efe2d1 100%);
}

body.patient-ui.patient-login-page .patient-login__ambient {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

body.patient-ui.patient-login-page .patient-login__ambient--one {
    width: 360px;
    height: 360px;
    top: -190px;
    right: 8%;
    border: 1px solid rgba(185, 139, 79, 0.18);
}

body.patient-ui.patient-login-page .patient-login__ambient--two {
    width: 220px;
    height: 220px;
    bottom: -130px;
    left: 5%;
    background: rgba(255, 255, 255, 0.38);
    box-shadow: 0 0 80px rgba(185, 139, 79, 0.1);
}

body.patient-ui.patient-login-page .patient-login__container {
    width: min(1080px, calc(100% - 48px));
}

body.patient-ui.patient-login-page .patient-login__shell {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.96fr);
    min-height: 650px;
    overflow: hidden;
    border: 1px solid rgba(185, 139, 79, 0.2);
    border-radius: 32px;
    background: rgba(255, 253, 249, 0.9);
    box-shadow:
        0 32px 80px rgba(75, 58, 38, 0.12),
        0 8px 24px rgba(75, 58, 38, 0.06);
    backdrop-filter: blur(18px);
}

body.patient-ui.patient-login-page .patient-login__form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px clamp(42px, 6vw, 78px);
}

body.patient-ui.patient-login-page .patient-login__brand {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 13px;
    margin-bottom: 54px;
}

body.patient-ui.patient-login-page .patient-login__brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(185, 139, 79, 0.55);
    border-radius: 50%;
    color: var(--patient-gold-dark);
    font-family: Georgia, serif;
    font-size: 17px;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 10px 24px rgba(147, 103, 47, 0.1);
}

body.patient-ui.patient-login-page .patient-login__brand-copy {
    display: grid;
    gap: 2px;
    line-height: 1.15;
}

body.patient-ui.patient-login-page .patient-login__brand-copy strong {
    color: var(--patient-ink);
    font-family: Georgia, serif;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.patient-ui.patient-login-page .patient-login__brand-copy small {
    color: var(--patient-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

body.patient-ui.patient-login-page .patient-login__heading {
    margin-bottom: 30px;
}

body.patient-ui.patient-login-page .patient-login__eyebrow,
body.patient-ui.patient-login-page .patient-login__visual-kicker {
    display: block;
    margin-bottom: 12px;
    color: var(--patient-gold-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

body.patient-ui.patient-login-page .patient-login__heading h1 {
    margin: 0 0 12px;
    color: var(--patient-ink);
    font-family: Georgia, serif;
    font-size: clamp(38px, 4vw, 52px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

body.patient-ui.patient-login-page .patient-login__heading p {
    max-width: 420px;
    margin: 0;
    color: var(--patient-muted);
    font-size: 16px;
    line-height: 1.65;
}

body.patient-ui.patient-login-page .patient-login__notice {
    margin: 0 0 22px;
    border-color: rgba(168, 72, 72, 0.22);
    background: #fff7f5;
}

body.patient-ui.patient-login-page .patient-login__form {
    display: grid;
    gap: 20px;
}

body.patient-ui.patient-login-page .patient-login__field label {
    margin-bottom: 9px;
    color: #443d35;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.025em;
}

body.patient-ui.patient-login-page .patient-login__field input {
    min-height: 56px;
    padding: 14px 17px;
    border: 1px solid rgba(132, 111, 84, 0.24);
    border-radius: 14px;
    outline: none;
    background: rgba(255, 255, 255, 0.82);
    color: var(--patient-ink);
    font-size: 16px;
    box-shadow: 0 8px 20px rgba(75, 58, 38, 0.035);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

body.patient-ui.patient-login-page .patient-login__field input:focus {
    border-color: rgba(185, 139, 79, 0.72);
    background: #ffffff;
    box-shadow:
        0 0 0 4px rgba(185, 139, 79, 0.1),
        0 12px 26px rgba(75, 58, 38, 0.06);
}

body.patient-ui.patient-login-page .patient-login__options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: -2px;
}

body.patient-ui.patient-login-page .patient-login__remember {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--patient-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

body.patient-ui.patient-login-page .patient-login__remember input {
    width: 18px;
    min-height: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border-radius: 5px;
    accent-color: var(--patient-gold);
}

body.patient-ui.patient-login-page .patient-login__forgot,
body.patient-ui.patient-login-page .patient-login__register a {
    color: var(--patient-gold-dark);
    font-weight: 700;
    transition: color 0.2s ease;
}

body.patient-ui.patient-login-page .patient-login__forgot {
    font-size: 13px;
}

body.patient-ui.patient-login-page .patient-login__forgot:hover,
body.patient-ui.patient-login-page .patient-login__register a:hover {
    color: #68451f;
}

body.patient-ui.patient-login-page .patient-login__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    margin-top: 3px;
    padding: 0 24px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 14px;
    background: linear-gradient(135deg, #c7a36a, #ad8246);
    color: #fffdf9;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.025em;
    cursor: pointer;
    box-shadow: 0 15px 30px rgba(147, 103, 47, 0.2);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

body.patient-ui.patient-login-page .patient-login__submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 19px 36px rgba(147, 103, 47, 0.27);
}

body.patient-ui.patient-login-page .patient-login__submit:active {
    transform: translateY(0);
}

body.patient-ui.patient-login-page .patient-login__register {
    margin: 24px 0 0;
    color: var(--patient-muted);
    font-size: 14px;
    text-align: center;
}

body.patient-ui.patient-login-page .patient-login__visual {
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 56px 50px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(82, 66, 47, 0.02), rgba(75, 56, 35, 0.2)),
        radial-gradient(circle at 65% 24%, rgba(255, 255, 255, 0.72), transparent 28%),
        linear-gradient(145deg, #eadbc8 0%, #d9c09e 52%, #b89566 100%);
}

body.patient-ui.patient-login-page .patient-login__visual::before,
body.patient-ui.patient-login-page .patient-login__visual::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

body.patient-ui.patient-login-page .patient-login__visual::before {
    width: 390px;
    height: 390px;
    top: -145px;
    right: -120px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 0 46px rgba(255, 255, 255, 0.06);
}

body.patient-ui.patient-login-page .patient-login__visual::after {
    width: 230px;
    height: 230px;
    right: 46px;
    bottom: 72px;
    background: rgba(255, 255, 255, 0.11);
}

body.patient-ui.patient-login-page .patient-login__visual-content {
    position: relative;
    z-index: 1;
    max-width: 390px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 22px;
    background: rgba(255, 253, 249, 0.62);
    box-shadow: 0 22px 54px rgba(76, 52, 27, 0.15);
    backdrop-filter: blur(16px);
}

body.patient-ui.patient-login-page .patient-login__visual-content blockquote {
    margin: 0 0 28px;
    color: #3c3329;
    font-family: Georgia, serif;
    font-size: clamp(23px, 2.35vw, 32px);
    font-weight: 400;
    line-height: 1.35;
}

body.patient-ui.patient-login-page .patient-login__trust {
    display: grid;
    gap: 11px;
    color: #665747;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

body.patient-ui.patient-login-page .patient-login__trust span {
    display: flex;
    align-items: center;
    gap: 9px;
}

body.patient-ui.patient-login-page .patient-login__trust span::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: var(--patient-gold);
    box-shadow: 0 0 0 4px rgba(185, 139, 79, 0.12);
}

@media (max-width: 1200px) {
    body.patient-ui.patient-login-page .patient-login {
        padding: 52px 0;
    }

    body.patient-ui.patient-login-page .patient-login__shell {
        min-height: 610px;
    }

    body.patient-ui.patient-login-page .patient-login__form-panel {
        padding: 54px 48px;
    }

    body.patient-ui.patient-login-page .patient-login__visual {
        padding: 44px 36px;
    }
}

@media (max-width: 991px) {
    body.patient-ui.patient-login-page .patient-login__shell {
        grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    }

    body.patient-ui.patient-login-page .patient-login__form-panel {
        padding: 46px 38px;
    }

    body.patient-ui.patient-login-page .patient-login__brand {
        margin-bottom: 38px;
    }

    body.patient-ui.patient-login-page .patient-login__visual {
        padding: 34px 26px;
    }

    body.patient-ui.patient-login-page .patient-login__visual-content {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    body.patient-ui.patient-login-page main,
    body.patient-ui.patient-login-page .patient-login {
        min-height: auto;
    }

    body.patient-ui.patient-login-page .patient-login {
        padding: 36px 0;
    }

    body.patient-ui.patient-login-page .patient-login__container {
        width: min(100% - 32px, 620px);
    }

    body.patient-ui.patient-login-page .patient-login__shell {
        grid-template-columns: 1fr;
        min-height: 0;
        border-radius: 26px;
    }

    body.patient-ui.patient-login-page .patient-login__form-panel {
        padding: 42px clamp(24px, 7vw, 44px);
    }

    body.patient-ui.patient-login-page .patient-login__visual {
        min-height: 285px;
        padding: 34px;
    }

    body.patient-ui.patient-login-page .patient-login__visual-content {
        max-width: 100%;
    }

    body.patient-ui.patient-login-page .patient-login__visual-content blockquote {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    body.patient-ui.patient-login-page .patient-login {
        padding: 20px 0 28px;
    }

    body.patient-ui.patient-login-page .patient-login__container {
        width: calc(100% - 24px);
    }

    body.patient-ui.patient-login-page .patient-login__shell {
        border-radius: 22px;
    }

    body.patient-ui.patient-login-page .patient-login__form-panel {
        padding: 32px 20px;
    }

    body.patient-ui.patient-login-page .patient-login__brand {
        margin-bottom: 30px;
    }

    body.patient-ui.patient-login-page .patient-login__heading {
        margin-bottom: 24px;
    }

    body.patient-ui.patient-login-page .patient-login__heading h1 {
        font-size: 36px;
    }

    body.patient-ui.patient-login-page .patient-login__options {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    body.patient-ui.patient-login-page .patient-login__submit,
    body.patient-ui.patient-login-page .patient-login__field input {
        min-height: 54px;
    }

    body.patient-ui.patient-login-page .patient-login__visual {
        min-height: 250px;
        padding: 22px;
    }

    body.patient-ui.patient-login-page .patient-login__visual-content {
        padding: 22px;
        border-radius: 18px;
    }

    body.patient-ui.patient-login-page .patient-login__visual-content blockquote {
        margin-bottom: 22px;
        font-size: 21px;
    }
}

/* --- KOMPAKTOWY AUTH SCREEN PACJENTA --- */
body.patient-ui.patient-login-page .site-footer {
    display: none;
}

body.patient-ui.patient-login-page main {
    min-height: calc(100svh - 82px);
}

body.patient-ui.patient-login-page .site-header {
    background: rgba(251, 248, 242, 0.94);
    border-bottom-color: rgba(185, 139, 79, 0.16);
    box-shadow: 0 10px 35px rgba(54, 40, 24, 0.045);
    backdrop-filter: blur(18px);
}

body.patient-ui.patient-login-page .site-header .header-row {
    min-height: 82px;
    gap: 30px;
}

body.patient-ui.patient-login-page .site-header .logo {
    gap: 13px;
    flex: 0 0 auto;
}

body.patient-ui.patient-login-page .site-header .logo-mark {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(185, 128, 49, 0.56);
    background: rgba(255, 253, 249, 0.76);
    color: #a46e25;
    font-family: Georgia, serif;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 8px 22px rgba(147, 103, 47, 0.09);
}

body.patient-ui.patient-login-page .patient-header__brand-copy {
    display: grid;
    gap: 3px;
    line-height: 1;
}

body.patient-ui.patient-login-page .patient-header__brand-copy strong {
    color: #28251f;
    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.patient-ui.patient-login-page .patient-header__brand-copy small {
    color: #766c60;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

body.patient-ui.patient-login-page .site-header .nav a {
    color: #4f473e;
    font-size: 12px;
    font-weight: 500;
}

body.patient-ui.patient-login-page .site-header .nav a.btn.btn-small {
    background: linear-gradient(135deg, #c7a36a, #ad8246) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 10px 24px rgba(147, 103, 47, 0.18) !important;
}

body.patient-ui.patient-login-page .site-header .nav a.btn.btn-small:hover {
    background: linear-gradient(135deg, #d0ad74, #b58a4d) !important;
    box-shadow: 0 14px 28px rgba(147, 103, 47, 0.24) !important;
}

body.patient-ui.patient-login-page .site-header .nav a:not(.btn) {
    position: relative;
}

body.patient-ui.patient-login-page .site-header .nav a:not(.btn)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -10px;
    left: 0;
    height: 1px;
    background: var(--patient-gold);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.24s ease;
}

body.patient-ui.patient-login-page .site-header .nav a:not(.btn):hover::after,
body.patient-ui.patient-login-page .site-header .nav a[href="/konto/login"]::after {
    transform: scaleX(1);
    transform-origin: left center;
}

body.patient-ui.patient-login-page .patient-login {
    min-height: calc(100svh - 82px);
    padding: clamp(24px, 3.5vh, 36px) 0 20px;
}

body.patient-ui.patient-login-page .patient-login__container {
    display: flex;
    flex-direction: column;
    width: min(1180px, calc(100% - 64px));
}

body.patient-ui.patient-login-page .patient-login__shell {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    min-height: 0;
    height: auto;
    max-height: none;
    border-radius: 30px;
    background: rgba(255, 253, 249, 0.96);
    box-shadow:
        0 24px 64px rgba(75, 58, 38, 0.1),
        0 5px 16px rgba(75, 58, 38, 0.045);
}

body.patient-ui.patient-login-page .patient-login__form-panel {
    justify-content: flex-start;
    padding: clamp(34px, 4.2vh, 46px) clamp(44px, 5.2vw, 68px);
}

body.patient-ui.patient-login-page .patient-login__brand {
    margin-bottom: clamp(24px, 3vh, 32px);
}

body.patient-ui.patient-login-page .patient-login__brand-mark {
    width: 48px;
    height: 48px;
}

body.patient-ui.patient-login-page .patient-login__heading {
    margin-bottom: 18px;
}

body.patient-ui.patient-login-page .patient-login__heading h1 {
    margin-bottom: 8px;
    font-size: clamp(38px, 3.4vw, 50px);
}

body.patient-ui.patient-login-page .patient-login__heading p {
    font-size: 15px;
    line-height: 1.55;
}

body.patient-ui.patient-login-page .patient-login__form {
    gap: 13px;
}

body.patient-ui.patient-login-page .patient-login__field label {
    margin-bottom: 7px;
}

body.patient-ui.patient-login-page .patient-login__field input {
    min-height: 54px;
    border-color: rgba(151, 126, 94, 0.24);
    background: #fffdfa;
    box-shadow: none;
}

body.patient-ui.patient-login-page .patient-login__field input::placeholder {
    color: #a39a8f;
    opacity: 1;
}

body.patient-ui.patient-login-page .patient-login__field input:-webkit-autofill,
body.patient-ui.patient-login-page .patient-login__field input:-webkit-autofill:hover,
body.patient-ui.patient-login-page .patient-login__field input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--patient-ink);
    -webkit-box-shadow: 0 0 0 1000px #fffdfa inset !important;
    caret-color: var(--patient-ink);
    transition: background-color 9999s ease-out 0s;
}

body.patient-ui.patient-login-page .patient-login__options {
    margin: 0;
}

body.patient-ui.patient-login-page .patient-login__submit {
    min-height: 54px;
    margin-top: 0;
}

body.patient-ui.patient-login-page .patient-login__register {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 18px 0 0;
    padding-top: 17px;
}

body.patient-ui.patient-login-page .patient-login__register::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(147, 103, 47, 0.25), transparent);
}

body.patient-ui.patient-login-page .patient-login__visual {
    align-items: center;
    padding: clamp(36px, 4.5vw, 56px);
    background:
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.7), transparent 28%),
        linear-gradient(145deg, #f4eadc 0%, #ead7bd 56%, #d6b98f 100%);
}

body.patient-ui.patient-login-page .patient-login__visual::before {
    width: 360px;
    height: 360px;
    top: -150px;
    right: -100px;
}

body.patient-ui.patient-login-page .patient-login__visual::after {
    width: 190px;
    height: 190px;
    right: 10%;
    bottom: -80px;
    background: rgba(255, 255, 255, 0.16);
}

body.patient-ui.patient-login-page .patient-login__visual-content {
    width: 100%;
    max-width: 440px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

body.patient-ui.patient-login-page .patient-login__quote-mark {
    display: block;
    height: 35px;
    color: #c69243;
    font-family: Georgia, serif;
    font-size: 66px;
    font-weight: 700;
    line-height: 0.9;
}

body.patient-ui.patient-login-page .patient-login__visual-content blockquote {
    max-width: 410px;
    margin: 15px 0 25px;
    font-size: clamp(26px, 2.4vw, 36px);
    line-height: 1.28;
}

body.patient-ui.patient-login-page .patient-login__trust {
    position: relative;
    gap: 15px;
    padding-top: 22px;
}

body.patient-ui.patient-login-page .patient-login__trust::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 64%;
    height: 1px;
    background: linear-gradient(90deg, #c89a56, rgba(200, 154, 86, 0));
}

body.patient-ui.patient-login-page .patient-login__benefit {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

body.patient-ui.patient-login-page .patient-login__benefit span::before {
    content: none;
}

body.patient-ui.patient-login-page .patient-login__benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    padding: 0;
    line-height: 0;
    border: 1px solid rgba(185, 139, 79, 0.24);
    border-radius: 50%;
    background: rgba(255, 253, 249, 0.82);
    color: var(--patient-gold-dark);
    box-shadow: 0 8px 20px rgba(90, 67, 41, 0.06);
}

body.patient-ui.patient-login-page .patient-login__benefit-icon svg {
    display: block;
    width: 24px;
    height: 24px;
    margin: 0;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.patient-ui.patient-login-page .patient-login__benefit > span:last-child {
    display: grid;
    gap: 2px;
}

body.patient-ui.patient-login-page .patient-login__benefit strong {
    color: #38312a;
    font-size: 14px;
}

body.patient-ui.patient-login-page .patient-login__benefit small {
    color: #74695d;
    font-size: 12px;
    font-weight: 400;
}

body.patient-ui.patient-login-page .patient-login__legal {
    margin: 15px 0 0;
    color: #8a8177;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 1200px) {
    body.patient-ui.patient-login-page .patient-login__container {
        width: min(1080px, calc(100% - 48px));
    }

    body.patient-ui.patient-login-page .patient-login__shell {
        height: auto;
        max-height: none;
    }

    body.patient-ui.patient-login-page .patient-login__form-panel {
        padding: 36px 48px;
    }

    body.patient-ui.patient-login-page .patient-login__visual {
        padding: 44px;
    }
}

@media (max-width: 991px) {
    body.patient-ui.patient-login-page .patient-login {
        padding-top: 24px;
    }

    body.patient-ui.patient-login-page .patient-login__shell {
        grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.95fr);
        height: auto;
        min-height: 0;
    }

    body.patient-ui.patient-login-page .patient-login__form-panel {
        padding: 34px 36px;
    }

    body.patient-ui.patient-login-page .patient-login__brand {
        margin-bottom: 28px;
    }

    body.patient-ui.patient-login-page .patient-login__visual {
        padding: 32px;
    }

    body.patient-ui.patient-login-page .patient-login__visual-content blockquote {
        font-size: 27px;
    }

    body.patient-ui.patient-login-page .patient-login__benefit {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    body.patient-ui.patient-login-page .patient-login__benefit-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    body.patient-ui.patient-login-page .site-header .header-row {
        gap: 14px;
    }

    body.patient-ui.patient-login-page .site-header .nav {
        justify-content: flex-end;
        gap: 12px 16px;
    }

    body.patient-ui.patient-login-page .site-header .nav a {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    body.patient-ui.patient-login-page main {
        min-height: auto;
    }

    body.patient-ui.patient-login-page .site-header {
        position: relative;
    }

    body.patient-ui.patient-login-page .site-header .header-row {
        align-items: center;
        padding: 12px 0 14px;
    }

    body.patient-ui.patient-login-page .site-header .nav {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
        gap: 8px 12px;
    }

    body.patient-ui.patient-login-page .site-header .nav a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 34px;
        text-align: center;
    }

    body.patient-ui.patient-login-page .site-header .nav a.btn.btn-small {
        min-height: 40px;
        padding: 0 13px;
    }

    body.patient-ui.patient-login-page .patient-login {
        padding: 22px 0 16px;
    }

    body.patient-ui.patient-login-page .patient-login__container {
        width: min(620px, calc(100% - 28px));
    }

    body.patient-ui.patient-login-page .patient-login__shell {
        grid-template-columns: 1fr;
        min-height: 0;
        max-height: none;
        border-radius: 24px;
    }

    body.patient-ui.patient-login-page .patient-login__form-panel {
        padding: 36px clamp(24px, 7vw, 42px);
    }

    body.patient-ui.patient-login-page .patient-login__visual {
        min-height: 0;
        padding: 34px clamp(24px, 7vw, 42px);
    }

    body.patient-ui.patient-login-page .patient-login__visual-content {
        max-width: none;
    }

    body.patient-ui.patient-login-page .patient-login__visual-content blockquote {
        max-width: 520px;
        margin: 12px 0 24px;
        font-size: 25px;
    }

    body.patient-ui.patient-login-page .patient-login__trust {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    body.patient-ui.patient-login-page .patient-login__benefit {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 9px;
    }

    body.patient-ui.patient-login-page .patient-login__benefit-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    body.patient-ui.patient-login-page .patient-login__benefit small {
        display: none;
    }
}

@media (max-width: 480px) {
    body.patient-ui.patient-login-page .site-header .container {
        width: calc(100% - 24px);
    }

    body.patient-ui.patient-login-page .site-header .logo-mark {
        width: 38px;
        height: 38px;
    }

    body.patient-ui.patient-login-page .patient-header__brand-copy strong {
        font-size: 12px;
    }

    body.patient-ui.patient-login-page .patient-header__brand-copy small {
        font-size: 7px;
    }

    body.patient-ui.patient-login-page .site-header .nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px 10px;
    }

    body.patient-ui.patient-login-page .site-header .nav a {
        min-height: 32px;
        font-size: 12px;
    }

    body.patient-ui.patient-login-page .site-header .nav a.btn.btn-small {
        grid-column: 1 / -1;
        min-height: 42px;
    }

    body.patient-ui.patient-login-page .patient-login {
        padding: 12px 0;
    }

    body.patient-ui.patient-login-page .patient-login__container {
        width: calc(100% - 20px);
    }

    body.patient-ui.patient-login-page .patient-login__form-panel {
        padding: 28px 20px;
    }

    body.patient-ui.patient-login-page .patient-login__brand {
        margin-bottom: 24px;
    }

    body.patient-ui.patient-login-page .patient-login__heading h1 {
        font-size: 35px;
    }

    body.patient-ui.patient-login-page .patient-login__form {
        gap: 14px;
    }

    body.patient-ui.patient-login-page .patient-login__field input,
    body.patient-ui.patient-login-page .patient-login__submit {
        min-height: 54px;
    }

    body.patient-ui.patient-login-page .patient-login__options {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    body.patient-ui.patient-login-page .patient-login__remember,
    body.patient-ui.patient-login-page .patient-login__forgot {
        font-size: 12px;
    }

    body.patient-ui.patient-login-page .patient-login__register {
        flex-wrap: wrap;
        margin-top: 19px;
        padding-top: 17px;
    }

    body.patient-ui.patient-login-page .patient-login__visual {
        padding: 27px 20px;
    }

    body.patient-ui.patient-login-page .patient-login__quote-mark {
        height: 27px;
        font-size: 52px;
    }

    body.patient-ui.patient-login-page .patient-login__visual-content blockquote {
        margin-bottom: 20px;
        font-size: 21px;
    }

    body.patient-ui.patient-login-page .patient-login__trust {
        grid-template-columns: 1fr;
        gap: 11px;
        padding-top: 19px;
    }

    body.patient-ui.patient-login-page .patient-login__benefit {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    body.patient-ui.patient-login-page .patient-login__benefit-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    body.patient-ui.patient-login-page .patient-login__benefit-icon svg {
        width: 19px;
        height: 19px;
    }

    body.patient-ui.patient-login-page .patient-login__benefit small {
        display: block;
    }

    body.patient-ui.patient-login-page .patient-login__legal {
        margin-top: 11px;
        padding: 0 12px;
        font-size: 11px;
    }
}

/* --- PREMIUM REJESTRACJA PACJENTA --- */
body.patient-ui.patient-register-page {
    --register-ivory: #fbf8f2;
    --register-white: #fffdf9;
    --register-gold: #b98b4f;
    --register-gold-dark: #93672f;
    --register-ink: #2d2924;
    --register-muted: #746c62;
    overflow-x: hidden;
    background: var(--register-ivory);
    color: var(--register-ink);
}

body.patient-ui.patient-register-page .site-footer {
    display: none;
}

body.patient-ui.patient-register-page .site-header {
    background: rgba(251, 248, 242, 0.94);
    border-bottom-color: rgba(185, 139, 79, 0.16);
    box-shadow: 0 10px 35px rgba(54, 40, 24, 0.045);
    backdrop-filter: blur(18px);
}

body.patient-ui.patient-register-page .site-header .header-row {
    min-height: 82px;
    gap: 30px;
}

body.patient-ui.patient-register-page .site-header .logo {
    gap: 13px;
    flex: 0 0 auto;
}

body.patient-ui.patient-register-page .site-header .logo-mark {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(185, 128, 49, 0.56);
    background: rgba(255, 253, 249, 0.76);
    color: #a46e25;
    font-family: Georgia, serif;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 8px 22px rgba(147, 103, 47, 0.09);
}

body.patient-ui.patient-register-page .site-header .logo-text {
    display: grid;
    gap: 3px;
    color: #28251f;
    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.patient-ui.patient-register-page .site-header .logo-text::after {
    content: "Psycholog";
    color: #766c60;
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

body.patient-ui.patient-register-page .site-header .nav a {
    position: relative;
    color: #4f473e;
    font-size: 12px;
    font-weight: 500;
}

body.patient-ui.patient-register-page .site-header .nav a:not(.btn)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -10px;
    left: 0;
    height: 1px;
    background: var(--register-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.24s ease;
}

body.patient-ui.patient-register-page .site-header .nav a:not(.btn):hover::after,
body.patient-ui.patient-register-page .site-header .nav a[href="/konto/rejestracja"]::after {
    transform: scaleX(1);
    transform-origin: left;
}

body.patient-ui.patient-register-page .site-header .nav a.btn.btn-small {
    background: linear-gradient(135deg, #c7a36a, #ad8246) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 10px 24px rgba(147, 103, 47, 0.18) !important;
}

body.patient-ui.patient-register-page .site-header .nav a.btn.btn-small:hover {
    background: linear-gradient(135deg, #d0ad74, #b58a4d) !important;
    box-shadow: 0 14px 28px rgba(147, 103, 47, 0.24) !important;
}

body.patient-ui.patient-register-page main {
    min-height: calc(100svh - 82px);
}

body.patient-ui.patient-register-page .patient-register {
    position: relative;
    isolation: isolate;
    min-height: calc(100svh - 82px);
    padding: clamp(24px, 3.5vh, 36px) 0 20px;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 18%, rgba(214, 183, 134, 0.16), transparent 27%),
        linear-gradient(135deg, #fbf8f2 0%, #f6efe6 52%, #efe2d1 100%);
}

body.patient-ui.patient-register-page .patient-register__ambient {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

body.patient-ui.patient-register-page .patient-register__ambient--one {
    width: 350px;
    height: 350px;
    top: -190px;
    right: 7%;
    border: 1px solid rgba(185, 139, 79, 0.18);
}

body.patient-ui.patient-register-page .patient-register__ambient--two {
    width: 210px;
    height: 210px;
    bottom: -130px;
    left: 5%;
    background: rgba(255, 255, 255, 0.35);
}

body.patient-ui.patient-register-page .patient-register__container {
    display: flex;
    flex-direction: column;
    width: min(1180px, calc(100% - 64px));
}

body.patient-ui.patient-register-page .patient-register__shell {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(350px, 0.88fr);
    overflow: hidden;
    border: 1px solid rgba(185, 139, 79, 0.2);
    border-radius: 30px;
    background: rgba(255, 253, 249, 0.96);
    box-shadow:
        0 24px 64px rgba(75, 58, 38, 0.1),
        0 5px 16px rgba(75, 58, 38, 0.045);
}

body.patient-ui.patient-register-page .patient-register__form-panel {
    padding: clamp(32px, 4vh, 44px) clamp(40px, 4.8vw, 62px);
}

body.patient-ui.patient-register-page .patient-register__brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 24px;
}

body.patient-ui.patient-register-page .patient-register__brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(185, 139, 79, 0.55);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.56);
    color: var(--register-gold-dark);
    font-family: Georgia, serif;
    font-size: 17px;
    box-shadow: 0 10px 24px rgba(147, 103, 47, 0.1);
}

body.patient-ui.patient-register-page .patient-register__brand-copy {
    display: grid;
    gap: 2px;
    line-height: 1.15;
}

body.patient-ui.patient-register-page .patient-register__brand-copy strong {
    color: var(--register-ink);
    font-family: Georgia, serif;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.patient-ui.patient-register-page .patient-register__brand-copy small {
    color: var(--register-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

body.patient-ui.patient-register-page .patient-register__heading {
    margin-bottom: 18px;
}

body.patient-ui.patient-register-page .patient-register__eyebrow {
    display: block;
    margin-bottom: 9px;
    color: var(--register-gold-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

body.patient-ui.patient-register-page .patient-register__heading h1 {
    margin: 0 0 7px;
    color: var(--register-ink);
    font-family: Georgia, serif;
    font-size: clamp(36px, 3.2vw, 48px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

body.patient-ui.patient-register-page .patient-register__heading p {
    max-width: 520px;
    margin: 0;
    color: var(--register-muted);
    font-size: 15px;
    line-height: 1.55;
}

body.patient-ui.patient-register-page .patient-register__notice {
    margin: 0 0 17px;
    border-color: rgba(168, 72, 72, 0.22);
    background: #fff7f5;
}

body.patient-ui.patient-register-page .patient-register__form {
    display: grid;
    gap: 16px;
}

body.patient-ui.patient-register-page .patient-register__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 14px;
}

body.patient-ui.patient-register-page .patient-register__field--wide {
    grid-column: 1 / -1;
}

body.patient-ui.patient-register-page .patient-register__field label {
    margin-bottom: 6px;
    color: #443d35;
    font-size: 13px;
    font-weight: 700;
}

body.patient-ui.patient-register-page .patient-register__field input {
    min-height: 54px;
    padding: 13px 16px;
    border: 1px solid rgba(151, 126, 94, 0.24);
    border-radius: 14px;
    outline: none;
    background: #fffdfa;
    color: var(--register-ink);
    font-size: 15px;
    box-shadow: none;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

body.patient-ui.patient-register-page .patient-register__field input::placeholder {
    color: #a39a8f;
    opacity: 1;
}

body.patient-ui.patient-register-page .patient-register__field input:focus {
    border-color: rgba(185, 139, 79, 0.72);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(185, 139, 79, 0.1);
}

body.patient-ui.patient-register-page .patient-register__field input:-webkit-autofill,
body.patient-ui.patient-register-page .patient-register__field input:-webkit-autofill:hover,
body.patient-ui.patient-register-page .patient-register__field input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--register-ink);
    -webkit-box-shadow: 0 0 0 1000px #fffdfa inset !important;
    caret-color: var(--register-ink);
    transition: background-color 9999s ease-out 0s;
}

body.patient-ui.patient-register-page .patient-register__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    padding: 0 24px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 14px;
    background: linear-gradient(135deg, #c7a36a, #ad8246);
    color: #fffdf9;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 15px 30px rgba(147, 103, 47, 0.2);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

body.patient-ui.patient-register-page .patient-register__submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 19px 36px rgba(147, 103, 47, 0.27);
}

body.patient-ui.patient-register-page .patient-register__login {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 17px 0 0;
    padding-top: 16px;
    color: var(--register-muted);
    font-size: 14px;
}

body.patient-ui.patient-register-page .patient-register__login::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(147, 103, 47, 0.25), transparent);
}

body.patient-ui.patient-register-page .patient-register__login a {
    color: var(--register-gold-dark);
    font-weight: 700;
}

body.patient-ui.patient-register-page .patient-register__visual {
    position: relative;
    display: flex;
    align-items: center;
    padding: clamp(36px, 4.5vw, 56px);
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.7), transparent 28%),
        linear-gradient(145deg, #f4eadc 0%, #ead7bd 56%, #d6b98f 100%);
}

body.patient-ui.patient-register-page .patient-register__visual::before,
body.patient-ui.patient-register-page .patient-register__visual::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

body.patient-ui.patient-register-page .patient-register__visual::before {
    width: 350px;
    height: 350px;
    top: -150px;
    right: -100px;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

body.patient-ui.patient-register-page .patient-register__visual::after {
    width: 180px;
    height: 180px;
    right: 10%;
    bottom: -75px;
    background: rgba(255, 255, 255, 0.16);
}

body.patient-ui.patient-register-page .patient-register__visual-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
}

body.patient-ui.patient-register-page .patient-register__quote-mark {
    display: block;
    height: 35px;
    color: #c69243;
    font-family: Georgia, serif;
    font-size: 66px;
    font-weight: 700;
    line-height: 0.9;
}

body.patient-ui.patient-register-page .patient-register__visual blockquote {
    max-width: 405px;
    margin: 15px 0 25px;
    color: #3c3329;
    font-family: Georgia, serif;
    font-size: clamp(25px, 2.3vw, 34px);
    line-height: 1.3;
}

body.patient-ui.patient-register-page .patient-register__benefits {
    position: relative;
    display: grid;
    gap: 15px;
    padding-top: 22px;
}

body.patient-ui.patient-register-page .patient-register__benefits::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 64%;
    height: 1px;
    background: linear-gradient(90deg, #c89a56, rgba(200, 154, 86, 0));
}

body.patient-ui.patient-register-page .patient-register__benefit {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

body.patient-ui.patient-register-page .patient-register__benefit span::before {
    content: none;
}

body.patient-ui.patient-register-page .patient-register__benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(185, 139, 79, 0.24);
    border-radius: 50%;
    background: rgba(255, 253, 249, 0.82);
    color: var(--register-gold-dark);
    line-height: 0;
    box-shadow: 0 8px 20px rgba(90, 67, 41, 0.06);
}

body.patient-ui.patient-register-page .patient-register__benefit-icon svg {
    display: block;
    width: 24px;
    height: 24px;
    margin: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.patient-ui.patient-register-page .patient-register__benefit > span:last-child {
    display: grid;
    gap: 2px;
}

body.patient-ui.patient-register-page .patient-register__benefit strong {
    color: #38312a;
    font-size: 14px;
}

body.patient-ui.patient-register-page .patient-register__benefit small {
    color: #74695d;
    font-size: 12px;
    font-weight: 400;
}

body.patient-ui.patient-register-page .patient-register__legal {
    margin: 15px 0 0;
    color: #8a8177;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 1200px) {
    body.patient-ui.patient-register-page .patient-register__container {
        width: min(1080px, calc(100% - 48px));
    }

    body.patient-ui.patient-register-page .patient-register__form-panel {
        padding: 34px 42px;
    }

    body.patient-ui.patient-register-page .patient-register__visual {
        padding: 40px;
    }
}

@media (max-width: 991px) {
    body.patient-ui.patient-register-page .site-header .header-row {
        gap: 14px;
    }

    body.patient-ui.patient-register-page .site-header .nav {
        justify-content: flex-end;
        gap: 12px 16px;
    }

    body.patient-ui.patient-register-page .site-header .nav a {
        font-size: 13px;
    }

    body.patient-ui.patient-register-page .patient-register__shell {
        grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    }

    body.patient-ui.patient-register-page .patient-register__form-panel {
        padding: 32px;
    }

    body.patient-ui.patient-register-page .patient-register__visual {
        padding: 30px;
    }

    body.patient-ui.patient-register-page .patient-register__visual blockquote {
        font-size: 26px;
    }

    body.patient-ui.patient-register-page .patient-register__benefit {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    body.patient-ui.patient-register-page .patient-register__benefit-icon {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 768px) {
    body.patient-ui.patient-register-page main,
    body.patient-ui.patient-register-page .patient-register {
        min-height: auto;
    }

    body.patient-ui.patient-register-page .site-header {
        position: relative;
    }

    body.patient-ui.patient-register-page .site-header .header-row {
        align-items: center;
        padding: 12px 0 14px;
    }

    body.patient-ui.patient-register-page .site-header .nav {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
        gap: 8px 12px;
    }

    body.patient-ui.patient-register-page .site-header .nav a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 34px;
        text-align: center;
    }

    body.patient-ui.patient-register-page .site-header .nav a.btn.btn-small {
        min-height: 40px;
        padding: 0 13px;
    }

    body.patient-ui.patient-register-page .patient-register {
        padding: 22px 0 16px;
    }

    body.patient-ui.patient-register-page .patient-register__container {
        width: min(620px, calc(100% - 28px));
    }

    body.patient-ui.patient-register-page .patient-register__shell {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }

    body.patient-ui.patient-register-page .patient-register__form-panel {
        padding: 36px clamp(24px, 7vw, 42px);
    }

    body.patient-ui.patient-register-page .patient-register__visual {
        padding: 34px clamp(24px, 7vw, 42px);
    }

    body.patient-ui.patient-register-page .patient-register__visual-content {
        max-width: none;
    }

    body.patient-ui.patient-register-page .patient-register__visual blockquote {
        max-width: 520px;
        font-size: 25px;
    }

    body.patient-ui.patient-register-page .patient-register__benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    body.patient-ui.patient-register-page .patient-register__benefit {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 9px;
    }

    body.patient-ui.patient-register-page .patient-register__benefit-icon {
        width: 38px;
        height: 38px;
    }

    body.patient-ui.patient-register-page .patient-register__benefit-icon svg {
        width: 19px;
        height: 19px;
    }

    body.patient-ui.patient-register-page .patient-register__benefit small {
        display: none;
    }
}

@media (max-width: 480px) {
    body.patient-ui.patient-register-page .site-header .container {
        width: calc(100% - 24px);
    }

    body.patient-ui.patient-register-page .site-header .logo-mark {
        width: 38px;
        height: 38px;
    }

    body.patient-ui.patient-register-page .site-header .logo-text {
        font-size: 12px;
    }

    body.patient-ui.patient-register-page .site-header .logo-text::after {
        font-size: 7px;
    }

    body.patient-ui.patient-register-page .site-header .nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px 10px;
    }

    body.patient-ui.patient-register-page .site-header .nav a {
        min-height: 32px;
        font-size: 12px;
    }

    body.patient-ui.patient-register-page .site-header .nav a.btn.btn-small {
        grid-column: 1 / -1;
        min-height: 42px;
    }

    body.patient-ui.patient-register-page .patient-register {
        padding: 12px 0;
    }

    body.patient-ui.patient-register-page .patient-register__container {
        width: calc(100% - 20px);
    }

    body.patient-ui.patient-register-page .patient-register__form-panel {
        padding: 28px 20px;
    }

    body.patient-ui.patient-register-page .patient-register__brand {
        margin-bottom: 22px;
    }

    body.patient-ui.patient-register-page .patient-register__heading h1 {
        font-size: 35px;
    }

    body.patient-ui.patient-register-page .patient-register__fields {
        grid-template-columns: 1fr;
    }

    body.patient-ui.patient-register-page .patient-register__field--wide {
        grid-column: auto;
    }

    body.patient-ui.patient-register-page .patient-register__field input,
    body.patient-ui.patient-register-page .patient-register__submit {
        min-height: 54px;
    }

    body.patient-ui.patient-register-page .patient-register__login {
        flex-wrap: wrap;
    }

    body.patient-ui.patient-register-page .patient-register__visual {
        padding: 27px 20px;
    }

    body.patient-ui.patient-register-page .patient-register__quote-mark {
        height: 27px;
        font-size: 52px;
    }

    body.patient-ui.patient-register-page .patient-register__visual blockquote {
        margin-bottom: 20px;
        font-size: 21px;
    }

    body.patient-ui.patient-register-page .patient-register__benefits {
        grid-template-columns: 1fr;
        gap: 11px;
        padding-top: 19px;
    }

    body.patient-ui.patient-register-page .patient-register__benefit {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    body.patient-ui.patient-register-page .patient-register__benefit small {
        display: block;
    }

    body.patient-ui.patient-register-page .patient-register__legal {
        margin-top: 11px;
        padding: 0 12px;
        font-size: 11px;
    }
}

/* --- PREMIUM PANEL PACJENTA --- */
body.patient-ui.patient-dashboard-page {
    --dashboard-ivory: #fbf8f2;
    --dashboard-white: #fffdf9;
    --dashboard-soft: #f6efe5;
    --dashboard-gold: #b98b4f;
    --dashboard-gold-dark: #93672f;
    --dashboard-ink: #2d2924;
    --dashboard-muted: #746c62;
    overflow-x: hidden;
    background: var(--dashboard-ivory);
    color: var(--dashboard-ink);
}

body.patient-ui.patient-dashboard-page .site-footer {
    display: none;
}

body.patient-ui.patient-dashboard-page .site-header {
    position: sticky;
    background: rgba(255, 253, 249, 0.95);
    border-bottom-color: rgba(185, 139, 79, 0.14);
    box-shadow: 0 10px 35px rgba(54, 40, 24, 0.04);
    backdrop-filter: blur(18px);
}

body.patient-ui.patient-dashboard-page .site-header .header-row {
    min-height: 82px;
    gap: 30px;
}

body.patient-ui.patient-dashboard-page .site-header .logo {
    gap: 13px;
    flex: 0 0 auto;
}

body.patient-ui.patient-dashboard-page .site-header .logo-mark {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(185, 128, 49, 0.56);
    background: rgba(255, 253, 249, 0.76);
    color: #a46e25;
    font-family: Georgia, serif;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 8px 22px rgba(147, 103, 47, 0.09);
}

body.patient-ui.patient-dashboard-page .site-header .logo-text {
    display: grid;
    gap: 3px;
    color: #28251f;
    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.patient-ui.patient-dashboard-page .site-header .logo-text::after {
    content: "Psycholog";
    color: #766c60;
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

body.patient-ui.patient-dashboard-page .site-header .nav a {
    position: relative;
    color: #4f473e;
    font-size: 12px;
    font-weight: 500;
}

body.patient-ui.patient-dashboard-page .site-header .nav a:not(.btn)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -10px;
    left: 0;
    height: 1px;
    background: var(--dashboard-gold);
    transform: scaleX(0);
    transition: transform 0.24s ease;
}

body.patient-ui.patient-dashboard-page .site-header .nav a:not(.btn):hover::after,
body.patient-ui.patient-dashboard-page .site-header .nav a[href="/konto/login"]::after {
    transform: scaleX(1);
}

body.patient-ui.patient-dashboard-page .site-header .nav a.btn.btn-small {
    background: linear-gradient(135deg, #c7a36a, #ad8246) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 10px 24px rgba(147, 103, 47, 0.18) !important;
}

body.patient-ui.patient-dashboard-page .patient-dashboard {
    min-height: calc(100svh - 82px);
    background:
        radial-gradient(circle at 82% 2%, rgba(221, 194, 155, 0.24), transparent 24%),
        linear-gradient(135deg, #fbf8f2, #f5eee5);
}

body.patient-ui.patient-dashboard-page .patient-dashboard__layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    width: min(1480px, 100%);
    min-height: calc(100svh - 82px);
    margin: 0 auto;
}

body.patient-ui.patient-dashboard-page .patient-sidebar {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 34px 18px 25px;
    border-right: 1px solid rgba(157, 127, 89, 0.15);
    background: rgba(255, 253, 249, 0.78);
}

body.patient-ui.patient-dashboard-page .patient-sidebar__intro {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 10px 28px;
}

body.patient-ui.patient-dashboard-page .patient-sidebar__icon,
body.patient-ui.patient-dashboard-page .patient-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid rgba(185, 139, 79, 0.2);
    border-radius: 50%;
    background: linear-gradient(145deg, #fffdf9, #f4e9d9);
    color: var(--dashboard-gold-dark);
}

body.patient-ui.patient-dashboard-page .patient-sidebar__icon {
    width: 52px;
    height: 52px;
}

body.patient-ui.patient-dashboard-page .patient-sidebar__icon svg,
body.patient-ui.patient-dashboard-page .patient-card__icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.patient-ui.patient-dashboard-page .patient-sidebar__intro > span:last-child {
    display: grid;
    gap: 3px;
}

body.patient-ui.patient-dashboard-page .patient-sidebar__intro strong {
    color: var(--dashboard-gold-dark);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.patient-ui.patient-dashboard-page .patient-sidebar__intro small {
    color: var(--dashboard-muted);
    font-size: 12px;
}

body.patient-ui.patient-dashboard-page .patient-sidebar__nav {
    display: grid;
    gap: 5px;
}

body.patient-ui.patient-dashboard-page .patient-sidebar__nav a {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 50px;
    padding: 0 17px;
    border-radius: 14px;
    color: #514a42;
    font-size: 14px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

body.patient-ui.patient-dashboard-page .patient-sidebar__nav a:hover,
body.patient-ui.patient-dashboard-page .patient-sidebar__nav a.is-active {
    color: var(--dashboard-gold-dark);
    background: linear-gradient(90deg, rgba(232, 213, 186, 0.52), rgba(249, 245, 238, 0.72));
    transform: translateX(2px);
}

body.patient-ui.patient-dashboard-page .patient-sidebar__nav a span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    color: #a7793c;
}

body.patient-ui.patient-dashboard-page .patient-sidebar__nav a span svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.patient-ui.patient-dashboard-page .patient-sidebar__bottom {
    display: grid;
    gap: 7px;
    margin-top: auto;
    padding: 24px 10px 0;
    border-top: 1px solid rgba(157, 127, 89, 0.15);
}

body.patient-ui.patient-dashboard-page .patient-sidebar__bottom a {
    padding: 8px 7px;
    color: var(--dashboard-muted);
    font-size: 13px;
}

body.patient-ui.patient-dashboard-page .patient-sidebar__bottom a:hover {
    color: var(--dashboard-gold-dark);
}

body.patient-ui.patient-dashboard-page .patient-sidebar__logout {
    font-weight: 700;
}

body.patient-ui.patient-dashboard-page .patient-dashboard__main {
    min-width: 0;
    padding: 34px clamp(28px, 3.6vw, 56px) 30px;
}

body.patient-ui.patient-dashboard-page .patient-dashboard__welcome {
    position: relative;
    margin-bottom: 18px;
    padding: 25px 28px;
    overflow: hidden;
    border: 1px solid rgba(185, 139, 79, 0.13);
    border-radius: 20px;
    background:
        radial-gradient(circle at 92% 18%, rgba(216, 184, 137, 0.22), transparent 28%),
        linear-gradient(135deg, rgba(255, 253, 249, 0.92), rgba(244, 234, 220, 0.72));
}

body.patient-ui.patient-dashboard-page .patient-dashboard__welcome::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -76px;
    bottom: -112px;
    border: 1px solid rgba(185, 139, 79, 0.17);
    border-radius: 50%;
    pointer-events: none;
}

body.patient-ui.patient-dashboard-page .patient-dashboard__eyebrow {
    margin: 0 0 7px;
    color: var(--dashboard-gold-dark);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

body.patient-ui.patient-dashboard-page .patient-dashboard__welcome h1 {
    margin: 0 0 8px;
    color: var(--dashboard-ink);
    font-family: Georgia, serif;
    font-size: clamp(33px, 3vw, 44px);
    font-weight: 500;
    line-height: 1.1;
}

body.patient-ui.patient-dashboard-page .patient-dashboard__welcome > p:last-child {
    margin: 0;
    color: var(--dashboard-muted);
    font-size: 14px;
}

body.patient-ui.patient-dashboard-page .patient-dashboard__primary-grid,
body.patient-ui.patient-dashboard-page .patient-dashboard__secondary-grid {
    display: grid;
    gap: 16px;
}

body.patient-ui.patient-dashboard-page .patient-dashboard__primary-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(270px, 0.95fr);
    margin-bottom: 16px;
}

body.patient-ui.patient-dashboard-page .patient-dashboard__secondary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 16px;
}

body.patient-ui.patient-dashboard-page .patient-card {
    min-width: 0;
    padding: 24px;
    border: 1px solid rgba(157, 127, 89, 0.16);
    border-radius: 20px;
    background: rgba(255, 253, 249, 0.9);
    box-shadow: 0 14px 36px rgba(75, 58, 38, 0.045);
}

body.patient-ui.patient-dashboard-page .patient-card--appointment {
    position: relative;
    min-height: 290px;
    padding: 28px;
    background:
        radial-gradient(circle at 96% 0%, rgba(224, 199, 163, 0.2), transparent 28%),
        rgba(255, 253, 249, 0.94);
}

body.patient-ui.patient-dashboard-page .patient-card--visits-summary {
    display: flex;
    flex-direction: column;
    min-height: 290px;
}

body.patient-ui.patient-dashboard-page .patient-card--visits-summary .patient-text-link {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(157, 127, 89, 0.12);
}

body.patient-ui.patient-dashboard-page .patient-card__heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

body.patient-ui.patient-dashboard-page .patient-card__icon {
    width: 44px;
    height: 44px;
}

body.patient-ui.patient-dashboard-page .patient-card__icon svg {
    width: 20px;
    height: 20px;
}

body.patient-ui.patient-dashboard-page .patient-card h2,
body.patient-ui.patient-dashboard-page .patient-visits__header h2 {
    margin: 0;
    color: #36312b;
    font-family: Georgia, serif;
    font-size: 21px;
    font-weight: 500;
}

body.patient-ui.patient-dashboard-page .patient-appointment {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    padding: 18px 0;
    border-top: 1px solid rgba(157, 127, 89, 0.13);
    border-bottom: 1px solid rgba(157, 127, 89, 0.13);
}

body.patient-ui.patient-dashboard-page .patient-appointment__date {
    display: grid;
    min-width: 90px;
    text-align: center;
}

body.patient-ui.patient-dashboard-page .patient-appointment__date strong {
    color: var(--dashboard-ink);
    font-family: Georgia, serif;
    font-size: 45px;
    font-weight: 500;
    line-height: 1;
}

body.patient-ui.patient-dashboard-page .patient-appointment__date span {
    color: var(--dashboard-gold-dark);
    font-size: 12px;
    font-weight: 700;
}

body.patient-ui.patient-dashboard-page .patient-appointment__details {
    display: grid;
    gap: 3px;
}

body.patient-ui.patient-dashboard-page .patient-appointment__details strong {
    color: var(--dashboard-ink);
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: 500;
}

body.patient-ui.patient-dashboard-page .patient-appointment__details span {
    font-size: 14px;
    font-weight: 700;
}

body.patient-ui.patient-dashboard-page .patient-appointment__details small,
body.patient-ui.patient-dashboard-page .patient-card__muted {
    color: var(--dashboard-muted);
}

body.patient-ui.patient-dashboard-page .patient-card__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

body.patient-ui.patient-dashboard-page .patient-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 11px;
    background: linear-gradient(135deg, #c7a36a, #ad8246);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(147, 103, 47, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.patient-ui.patient-dashboard-page .patient-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(147, 103, 47, 0.23);
}

body.patient-ui.patient-dashboard-page .patient-button--outline {
    border-color: rgba(185, 139, 79, 0.46);
    background: transparent;
    color: var(--dashboard-gold-dark);
    box-shadow: none;
}

body.patient-ui.patient-dashboard-page .patient-text-link {
    color: var(--dashboard-gold-dark);
    font-size: 12px;
    font-weight: 700;
}

body.patient-ui.patient-dashboard-page .patient-stat {
    display: grid;
    gap: 3px;
    padding: 13px 0;
}

body.patient-ui.patient-dashboard-page .patient-stat strong,
body.patient-ui.patient-dashboard-page .patient-balance strong {
    color: var(--dashboard-ink);
    font-family: Georgia, serif;
    font-size: 35px;
    font-weight: 500;
    line-height: 1.1;
}

body.patient-ui.patient-dashboard-page .patient-stat span,
body.patient-ui.patient-dashboard-page .patient-balance span,
body.patient-ui.patient-dashboard-page .patient-card--visits-summary > p {
    color: var(--dashboard-muted);
    font-size: 12px;
}

body.patient-ui.patient-dashboard-page .patient-card--visits-summary > p {
    margin: 4px 0 20px;
}

body.patient-ui.patient-dashboard-page .patient-balance {
    display: grid;
    gap: 3px;
    margin-bottom: 16px;
}

body.patient-ui.patient-dashboard-page .patient-transactions {
    display: grid;
    border-top: 1px solid rgba(157, 127, 89, 0.13);
}

body.patient-ui.patient-dashboard-page .patient-transactions > div {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(157, 127, 89, 0.1);
    font-size: 11px;
}

body.patient-ui.patient-dashboard-page .patient-transactions small {
    overflow: hidden;
    color: var(--dashboard-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.patient-ui.patient-dashboard-page .patient-transactions strong {
    font-size: 11px;
}

body.patient-ui.patient-dashboard-page .patient-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 170px;
    padding: 18px;
    border: 1px dashed rgba(185, 139, 79, 0.28);
    border-radius: 15px;
    background: rgba(249, 244, 236, 0.64);
}

body.patient-ui.patient-dashboard-page .patient-card--appointment .patient-empty {
    min-height: 190px;
    border: 0;
    background: transparent;
}

body.patient-ui.patient-dashboard-page .patient-empty strong {
    color: #443b32;
    font-size: 14px;
    line-height: 1.45;
}

body.patient-ui.patient-dashboard-page .patient-empty p {
    margin: 7px 0 15px;
    color: var(--dashboard-muted);
    font-size: 12px;
}

body.patient-ui.patient-dashboard-page .patient-empty--compact {
    min-height: 135px;
    align-items: center;
    padding: 8px 2px;
    border: 0;
    background: transparent;
    text-align: center;
}

body.patient-ui.patient-dashboard-page .patient-card--empty,
body.patient-ui.patient-dashboard-page .patient-card--payments {
    min-height: 275px;
}

body.patient-ui.patient-dashboard-page .patient-card--empty {
    display: flex;
    flex-direction: column;
}

body.patient-ui.patient-dashboard-page .patient-card--empty .patient-empty {
    flex: 1;
}

body.patient-ui.patient-dashboard-page .patient-space {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
    padding: 22px 25px;
    border: 1px solid rgba(185, 139, 79, 0.17);
    border-radius: 20px;
    background:
        linear-gradient(105deg, rgba(255, 253, 249, 0.94), rgba(240, 224, 201, 0.62)),
        var(--dashboard-white);
    box-shadow: 0 12px 32px rgba(75, 58, 38, 0.04);
}

body.patient-ui.patient-dashboard-page .patient-space__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f7e8cf, #dcb97e);
    color: #8d622d;
}

body.patient-ui.patient-dashboard-page .patient-space__icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.patient-ui.patient-dashboard-page .patient-space__copy {
    display: grid;
    gap: 3px;
}

body.patient-ui.patient-dashboard-page .patient-space__copy > span {
    color: var(--dashboard-gold-dark);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.patient-ui.patient-dashboard-page .patient-space__copy h2 {
    margin: 0;
    color: #39332d;
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 500;
}

body.patient-ui.patient-dashboard-page .patient-space__copy p {
    margin: 0;
    color: var(--dashboard-muted);
    font-size: 12px;
}

body.patient-ui.patient-dashboard-page .patient-space__actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

body.patient-ui.patient-dashboard-page .patient-visits {
    scroll-margin-top: 100px;
    margin-top: 0;
}

body.patient-ui.patient-dashboard-page .patient-visits__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

body.patient-ui.patient-dashboard-page .patient-visits__list {
    display: grid;
    gap: 9px;
}

body.patient-ui.patient-dashboard-page .patient-visit {
    display: grid;
    grid-template-columns: 120px minmax(180px, 1fr) minmax(120px, auto) minmax(180px, auto);
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(157, 127, 89, 0.14);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.55);
}

body.patient-ui.patient-dashboard-page .patient-visit__date,
body.patient-ui.patient-dashboard-page .patient-visit__service,
body.patient-ui.patient-dashboard-page .patient-visit__status {
    display: grid;
    gap: 3px;
}

body.patient-ui.patient-dashboard-page .patient-visit__date strong,
body.patient-ui.patient-dashboard-page .patient-visit__service strong {
    color: #3e3730;
    font-size: 13px;
}

body.patient-ui.patient-dashboard-page .patient-visit__date span,
body.patient-ui.patient-dashboard-page .patient-visit__service span,
body.patient-ui.patient-dashboard-page .patient-visit__status small {
    color: var(--dashboard-muted);
    font-size: 11px;
}

body.patient-ui.patient-dashboard-page .patient-visit__actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px 11px;
}

body.patient-ui.patient-dashboard-page .patient-visit__actions a {
    color: var(--dashboard-gold-dark);
    font-size: 11px;
    font-weight: 700;
}

body.patient-ui.patient-dashboard-page .patient-visit__actions a.is-danger {
    color: #a9504a;
}

body.patient-ui.patient-dashboard-page .patient-visit__actions span {
    color: var(--dashboard-muted);
    font-size: 11px;
}

body.patient-ui.patient-dashboard-page .patient-dashboard__legal {
    margin: 16px 0 0;
    color: #91877b;
    font-size: 10px;
    text-align: center;
}

@media (max-width: 1200px) {
    body.patient-ui.patient-dashboard-page .patient-dashboard__layout {
        grid-template-columns: 230px minmax(0, 1fr);
    }

    body.patient-ui.patient-dashboard-page .patient-dashboard__main {
        padding: 36px 28px 46px;
    }

    body.patient-ui.patient-dashboard-page .patient-card {
        padding: 21px;
    }

    body.patient-ui.patient-dashboard-page .patient-card--appointment {
        padding: 25px;
    }

    body.patient-ui.patient-dashboard-page .patient-space {
        grid-template-columns: auto minmax(0, 1fr);
    }

    body.patient-ui.patient-dashboard-page .patient-space__actions {
        grid-column: 2;
        justify-content: flex-start;
    }

    body.patient-ui.patient-dashboard-page .patient-visit {
        grid-template-columns: 105px minmax(160px, 1fr) minmax(105px, auto);
    }

    body.patient-ui.patient-dashboard-page .patient-visit__actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-top: 8px;
        border-top: 1px solid rgba(157, 127, 89, 0.1);
    }
}

@media (max-width: 991px) {
    body.patient-ui.patient-dashboard-page .site-header .header-row {
        gap: 14px;
    }

    body.patient-ui.patient-dashboard-page .site-header .nav {
        justify-content: flex-end;
        gap: 12px 16px;
    }

    body.patient-ui.patient-dashboard-page .site-header .nav a {
        font-size: 13px;
    }

    body.patient-ui.patient-dashboard-page .patient-dashboard__layout {
        display: block;
    }

    body.patient-ui.patient-dashboard-page .patient-sidebar {
        display: block;
        padding: 18px 24px;
        border-right: 0;
        border-bottom: 1px solid rgba(157, 127, 89, 0.15);
    }

    body.patient-ui.patient-dashboard-page .patient-sidebar__intro {
        padding: 0 0 14px;
    }

    body.patient-ui.patient-dashboard-page .patient-sidebar__nav {
        display: flex;
        gap: 7px;
        overflow-x: auto;
        padding-bottom: 5px;
        scrollbar-width: thin;
    }

    body.patient-ui.patient-dashboard-page .patient-sidebar__nav a {
        flex: 0 0 auto;
        min-height: 42px;
        padding: 0 14px;
    }

    body.patient-ui.patient-dashboard-page .patient-sidebar__bottom {
        display: flex;
        justify-content: flex-end;
        margin-top: 10px;
        padding: 10px 0 0;
    }

    body.patient-ui.patient-dashboard-page .patient-dashboard__secondary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.patient-ui.patient-dashboard-page .patient-card--payments {
        grid-column: 1 / -1;
    }

    body.patient-ui.patient-dashboard-page .patient-card--payments,
    body.patient-ui.patient-dashboard-page .patient-card--empty {
        min-height: 0;
    }
}

@media (max-width: 768px) {
    body.patient-ui.patient-dashboard-page .site-header {
        position: relative;
    }

    body.patient-ui.patient-dashboard-page .site-header .header-row {
        align-items: center;
        padding: 12px 0 14px;
    }

    body.patient-ui.patient-dashboard-page .site-header .nav {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
        gap: 8px 12px;
    }

    body.patient-ui.patient-dashboard-page .site-header .nav a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 34px;
        text-align: center;
    }

    body.patient-ui.patient-dashboard-page .site-header .nav a.btn.btn-small {
        min-height: 40px;
        padding: 0 13px;
    }

    body.patient-ui.patient-dashboard-page .patient-dashboard__main {
        padding: 30px 18px 40px;
    }

    body.patient-ui.patient-dashboard-page .patient-dashboard__welcome {
        padding: 23px;
    }

    body.patient-ui.patient-dashboard-page .patient-dashboard__primary-grid,
    body.patient-ui.patient-dashboard-page .patient-dashboard__secondary-grid {
        grid-template-columns: 1fr;
    }

    body.patient-ui.patient-dashboard-page .patient-card--payments {
        grid-column: auto;
    }

    body.patient-ui.patient-dashboard-page .patient-space {
        grid-template-columns: auto minmax(0, 1fr);
    }

    body.patient-ui.patient-dashboard-page .patient-visit {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.patient-ui.patient-dashboard-page .patient-visit__actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    body.patient-ui.patient-dashboard-page .site-header .container {
        width: calc(100% - 24px);
    }

    body.patient-ui.patient-dashboard-page .site-header .logo-mark {
        width: 38px;
        height: 38px;
    }

    body.patient-ui.patient-dashboard-page .site-header .logo-text {
        font-size: 12px;
    }

    body.patient-ui.patient-dashboard-page .site-header .logo-text::after {
        font-size: 7px;
    }

    body.patient-ui.patient-dashboard-page .site-header .nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px 10px;
    }

    body.patient-ui.patient-dashboard-page .site-header .nav a {
        min-height: 32px;
        font-size: 12px;
    }

    body.patient-ui.patient-dashboard-page .site-header .nav a.btn.btn-small {
        grid-column: 1 / -1;
        min-height: 42px;
    }

    body.patient-ui.patient-dashboard-page .patient-sidebar {
        padding: 15px 12px;
    }

    body.patient-ui.patient-dashboard-page .patient-sidebar__intro {
        padding-left: 6px;
    }

    body.patient-ui.patient-dashboard-page .patient-sidebar__nav a {
        min-height: 40px;
        padding: 0 12px;
        font-size: 12px;
    }

    body.patient-ui.patient-dashboard-page .patient-sidebar__nav a span {
        display: none;
    }

    body.patient-ui.patient-dashboard-page .patient-sidebar__bottom {
        justify-content: space-between;
    }

    body.patient-ui.patient-dashboard-page .patient-dashboard__main {
        padding: 25px 10px 34px;
    }

    body.patient-ui.patient-dashboard-page .patient-dashboard__welcome {
        padding: 21px 18px;
        border-radius: 17px;
    }

    body.patient-ui.patient-dashboard-page .patient-dashboard__welcome h1 {
        font-size: 34px;
    }

    body.patient-ui.patient-dashboard-page .patient-card {
        padding: 19px 16px;
        border-radius: 17px;
    }

    body.patient-ui.patient-dashboard-page .patient-card--appointment,
    body.patient-ui.patient-dashboard-page .patient-card--visits-summary {
        min-height: 0;
    }

    body.patient-ui.patient-dashboard-page .patient-appointment {
        gap: 13px;
    }

    body.patient-ui.patient-dashboard-page .patient-appointment__date {
        min-width: 65px;
    }

    body.patient-ui.patient-dashboard-page .patient-appointment__date strong {
        font-size: 38px;
    }

    body.patient-ui.patient-dashboard-page .patient-card__actions,
    body.patient-ui.patient-dashboard-page .patient-visits__header {
        align-items: stretch;
        flex-direction: column;
    }

    body.patient-ui.patient-dashboard-page .patient-button {
        width: 100%;
        min-height: 48px;
    }

    body.patient-ui.patient-dashboard-page .patient-space {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 20px 17px;
    }

    body.patient-ui.patient-dashboard-page .patient-space__icon {
        width: 50px;
        height: 50px;
    }

    body.patient-ui.patient-dashboard-page .patient-space__actions {
        grid-column: auto;
        align-items: stretch;
        flex-direction: column;
    }

    body.patient-ui.patient-dashboard-page .patient-transactions > div {
        grid-template-columns: 62px minmax(0, 1fr);
    }

    body.patient-ui.patient-dashboard-page .patient-transactions strong {
        grid-column: 2;
    }

    body.patient-ui.patient-dashboard-page .patient-visit {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    body.patient-ui.patient-dashboard-page .patient-visit__actions {
        grid-column: auto;
    }
}

/* --- PREMIUM PŁATNOŚCI PACJENTA --- */
body.patient-ui.patient-payments-page {
    --payments-ivory: #fbf8f2;
    --payments-white: #fffdf9;
    --payments-gold: #b98b4f;
    --payments-gold-dark: #93672f;
    --payments-ink: #2d2924;
    --payments-muted: #746c62;
    overflow-x: hidden;
    background: var(--payments-ivory);
    color: var(--payments-ink);
}

body.patient-ui.patient-payments-page .site-footer {
    display: none;
}

body.patient-ui.patient-payments-page .site-header {
    position: sticky;
    background: rgba(255, 253, 249, 0.95);
    border-bottom-color: rgba(185, 139, 79, 0.14);
    box-shadow: 0 10px 35px rgba(54, 40, 24, 0.04);
    backdrop-filter: blur(18px);
}

body.patient-ui.patient-payments-page .site-header .header-row {
    min-height: 82px;
    gap: 30px;
}

body.patient-ui.patient-payments-page .site-header .logo {
    gap: 13px;
    flex: 0 0 auto;
}

body.patient-ui.patient-payments-page .site-header .logo-mark {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(185, 128, 49, 0.56);
    background: rgba(255, 253, 249, 0.76);
    color: #a46e25;
    font-family: Georgia, serif;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 8px 22px rgba(147, 103, 47, 0.09);
}

body.patient-ui.patient-payments-page .site-header .logo-text {
    display: grid;
    gap: 3px;
    color: #28251f;
    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.patient-ui.patient-payments-page .site-header .logo-text::after {
    content: "Psycholog";
    color: #766c60;
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

body.patient-ui.patient-payments-page .site-header .nav a {
    position: relative;
    color: #4f473e;
    font-size: 12px;
    font-weight: 500;
}

body.patient-ui.patient-payments-page .site-header .nav a:not(.btn)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -10px;
    left: 0;
    height: 1px;
    background: var(--payments-gold);
    transform: scaleX(0);
    transition: transform 0.24s ease;
}

body.patient-ui.patient-payments-page .site-header .nav a:not(.btn):hover::after,
body.patient-ui.patient-payments-page .site-header .nav a[href="/konto/login"]::after {
    transform: scaleX(1);
}

body.patient-ui.patient-payments-page .site-header .nav a.btn.btn-small {
    background: linear-gradient(135deg, #c7a36a, #ad8246) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 10px 24px rgba(147, 103, 47, 0.18) !important;
}

body.patient-ui.patient-payments-page .patient-payments {
    min-height: calc(100svh - 82px);
    background:
        radial-gradient(circle at 82% 3%, rgba(221, 194, 155, 0.22), transparent 24%),
        linear-gradient(135deg, #fbf8f2, #f5eee5);
}

body.patient-ui.patient-payments-page .patient-payments__layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    width: min(1480px, 100%);
    min-height: calc(100svh - 82px);
    margin: 0 auto;
}

body.patient-ui.patient-payments-page .payments-sidebar {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 34px 18px 25px;
    border-right: 1px solid rgba(157, 127, 89, 0.15);
    background: rgba(255, 253, 249, 0.78);
}

body.patient-ui.patient-payments-page .payments-sidebar__intro {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 10px 28px;
}

body.patient-ui.patient-payments-page .payments-sidebar__icon,
body.patient-ui.patient-payments-page .payments-card__icon,
body.patient-ui.patient-payments-page .payments-security__icon,
body.patient-ui.patient-payments-page .payments-transaction__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid rgba(185, 139, 79, 0.2);
    border-radius: 50%;
    background: linear-gradient(145deg, #fffdf9, #f4e9d9);
    color: var(--payments-gold-dark);
}

body.patient-ui.patient-payments-page .payments-sidebar__icon {
    width: 52px;
    height: 52px;
}

body.patient-ui.patient-payments-page .payments-sidebar__icon svg,
body.patient-ui.patient-payments-page .payments-card__icon svg,
body.patient-ui.patient-payments-page .payments-security__icon svg,
body.patient-ui.patient-payments-page .payments-transaction__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.patient-ui.patient-payments-page .payments-sidebar__intro > span:last-child {
    display: grid;
    gap: 3px;
}

body.patient-ui.patient-payments-page .payments-sidebar__intro strong {
    color: var(--payments-gold-dark);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.patient-ui.patient-payments-page .payments-sidebar__intro small {
    color: var(--payments-muted);
    font-size: 12px;
}

body.patient-ui.patient-payments-page .payments-sidebar__nav {
    display: grid;
    gap: 5px;
}

body.patient-ui.patient-payments-page .payments-sidebar__nav a {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 50px;
    padding: 0 17px;
    border-radius: 14px;
    color: #514a42;
    font-size: 14px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

body.patient-ui.patient-payments-page .payments-sidebar__nav a:hover,
body.patient-ui.patient-payments-page .payments-sidebar__nav a.is-active {
    color: var(--payments-gold-dark);
    background: linear-gradient(90deg, rgba(232, 213, 186, 0.52), rgba(249, 245, 238, 0.72));
    transform: translateX(2px);
}

body.patient-ui.patient-payments-page .payments-sidebar__nav a span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    color: #a7793c;
}

body.patient-ui.patient-payments-page .payments-sidebar__nav a span svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.patient-ui.patient-payments-page .payments-sidebar__bottom {
    margin-top: auto;
    padding: 24px 10px 0;
    border-top: 1px solid rgba(157, 127, 89, 0.15);
}

body.patient-ui.patient-payments-page .payments-sidebar__bottom a {
    display: block;
    padding: 8px 7px;
    color: var(--payments-muted);
    font-size: 13px;
    font-weight: 700;
}

body.patient-ui.patient-payments-page .patient-payments__main {
    min-width: 0;
    padding: 34px clamp(28px, 3.6vw, 56px) 30px;
}

body.patient-ui.patient-payments-page .patient-payments__hero {
    position: relative;
    margin-bottom: 18px;
    padding: 25px 28px;
    overflow: hidden;
    border: 1px solid rgba(185, 139, 79, 0.13);
    border-radius: 20px;
    background:
        radial-gradient(circle at 92% 18%, rgba(216, 184, 137, 0.22), transparent 28%),
        linear-gradient(135deg, rgba(255, 253, 249, 0.92), rgba(244, 234, 220, 0.72));
}

body.patient-ui.patient-payments-page .patient-payments__hero::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -76px;
    bottom: -112px;
    border: 1px solid rgba(185, 139, 79, 0.17);
    border-radius: 50%;
}

body.patient-ui.patient-payments-page .patient-payments__eyebrow {
    margin: 0 0 7px;
    color: var(--payments-gold-dark);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

body.patient-ui.patient-payments-page .patient-payments__hero h1 {
    margin: 0 0 8px;
    color: var(--payments-ink);
    font-family: Georgia, serif;
    font-size: clamp(33px, 3vw, 44px);
    font-weight: 500;
    line-height: 1.1;
}

body.patient-ui.patient-payments-page .patient-payments__hero > p:last-child {
    max-width: 650px;
    margin: 0;
    color: var(--payments-muted);
    font-size: 14px;
}

body.patient-ui.patient-payments-page .patient-payments__summary {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 16px;
    margin-bottom: 16px;
}

body.patient-ui.patient-payments-page .payments-card,
body.patient-ui.patient-payments-page .payments-history {
    border: 1px solid rgba(157, 127, 89, 0.16);
    border-radius: 20px;
    background: rgba(255, 253, 249, 0.91);
    box-shadow: 0 14px 36px rgba(75, 58, 38, 0.045);
}

body.patient-ui.patient-payments-page .payments-card {
    padding: 25px;
}

body.patient-ui.patient-payments-page .payments-card__heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: #494139;
    font-size: 13px;
    font-weight: 700;
}

body.patient-ui.patient-payments-page .payments-card__icon {
    width: 44px;
    height: 44px;
}

body.patient-ui.patient-payments-page .payments-balance > strong {
    display: block;
    margin-bottom: 5px;
    color: var(--payments-ink);
    font-family: Georgia, serif;
    font-size: clamp(38px, 4vw, 52px);
    font-weight: 500;
    line-height: 1.05;
}

body.patient-ui.patient-payments-page .payments-balance > p,
body.patient-ui.patient-payments-page .payments-security p {
    color: var(--payments-muted);
    font-size: 13px;
    line-height: 1.6;
}

body.patient-ui.patient-payments-page .payments-balance > p {
    max-width: 520px;
    margin: 0 0 20px;
}

body.patient-ui.patient-payments-page .payments-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 11px;
    background: linear-gradient(135deg, #c7a36a, #ad8246);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(147, 103, 47, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.patient-ui.patient-payments-page .payments-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(147, 103, 47, 0.23);
}

body.patient-ui.patient-payments-page .payments-security {
    display: flex;
    align-items: center;
    gap: 20px;
    background:
        linear-gradient(125deg, rgba(255, 253, 249, 0.95), rgba(239, 223, 199, 0.66));
}

body.patient-ui.patient-payments-page .payments-security__icon {
    width: 66px;
    height: 66px;
}

body.patient-ui.patient-payments-page .payments-security__icon svg {
    width: 29px;
    height: 29px;
}

body.patient-ui.patient-payments-page .payments-security h2,
body.patient-ui.patient-payments-page .payments-history__header h2 {
    margin: 0;
    color: #39332d;
    font-family: Georgia, serif;
    font-size: 21px;
    font-weight: 500;
}

body.patient-ui.patient-payments-page .payments-security p {
    margin: 7px 0 0;
}

body.patient-ui.patient-payments-page .payments-history {
    padding: 25px;
}

body.patient-ui.patient-payments-page .payments-history__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

body.patient-ui.patient-payments-page .payments-history__header > span {
    color: var(--payments-muted);
    font-size: 11px;
}

body.patient-ui.patient-payments-page .payments-history__list {
    display: grid;
    gap: 8px;
}

body.patient-ui.patient-payments-page .payments-transaction {
    display: grid;
    grid-template-columns: 42px minmax(180px, 1fr) minmax(120px, auto) minmax(135px, auto);
    align-items: center;
    gap: 14px;
    padding: 13px 15px;
    border: 1px solid rgba(157, 127, 89, 0.13);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.54);
}

body.patient-ui.patient-payments-page .payments-transaction__icon {
    width: 38px;
    height: 38px;
}

body.patient-ui.patient-payments-page .payments-transaction__icon svg {
    width: 18px;
    height: 18px;
}

body.patient-ui.patient-payments-page .payments-transaction__description,
body.patient-ui.patient-payments-page .payments-transaction__amount {
    display: grid;
    gap: 2px;
}

body.patient-ui.patient-payments-page .payments-transaction__description strong {
    overflow: hidden;
    color: #403830;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.patient-ui.patient-payments-page .payments-transaction__description span,
body.patient-ui.patient-payments-page .payments-transaction time,
body.patient-ui.patient-payments-page .payments-transaction__amount small {
    color: var(--payments-muted);
    font-size: 11px;
}

body.patient-ui.patient-payments-page .payments-transaction__amount {
    justify-items: end;
}

body.patient-ui.patient-payments-page .payments-transaction__amount strong {
    font-size: 13px;
}

body.patient-ui.patient-payments-page .payments-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 230px;
    padding: 25px;
    border: 1px dashed rgba(185, 139, 79, 0.28);
    border-radius: 15px;
    background: rgba(249, 244, 236, 0.58);
    text-align: center;
}

body.patient-ui.patient-payments-page .payments-empty strong {
    margin-top: 13px;
    color: #443b32;
    font-size: 15px;
}

body.patient-ui.patient-payments-page .payments-empty p {
    margin: 7px 0 0;
    color: var(--payments-muted);
    font-size: 12px;
}

body.patient-ui.patient-payments-page .patient-payments__legal {
    margin: 16px 0 0;
    color: #91877b;
    font-size: 10px;
    text-align: center;
}

@media (max-width: 1200px) {
    body.patient-ui.patient-payments-page .patient-payments__layout {
        grid-template-columns: 230px minmax(0, 1fr);
    }

    body.patient-ui.patient-payments-page .patient-payments__main {
        padding: 32px 28px 28px;
    }

    body.patient-ui.patient-payments-page .payments-transaction {
        grid-template-columns: 40px minmax(160px, 1fr) minmax(110px, auto);
    }

    body.patient-ui.patient-payments-page .payments-transaction__amount {
        grid-column: 2 / -1;
        grid-row: 2;
        justify-items: start;
        padding-top: 7px;
        border-top: 1px solid rgba(157, 127, 89, 0.09);
    }
}

@media (max-width: 991px) {
    body.patient-ui.patient-payments-page .site-header .header-row {
        gap: 14px;
    }

    body.patient-ui.patient-payments-page .site-header .nav {
        justify-content: flex-end;
        gap: 12px 16px;
    }

    body.patient-ui.patient-payments-page .site-header .nav a {
        font-size: 13px;
    }

    body.patient-ui.patient-payments-page .patient-payments__layout {
        display: block;
    }

    body.patient-ui.patient-payments-page .payments-sidebar {
        display: block;
        padding: 18px 24px;
        border-right: 0;
        border-bottom: 1px solid rgba(157, 127, 89, 0.15);
    }

    body.patient-ui.patient-payments-page .payments-sidebar__intro {
        padding: 0 0 14px;
    }

    body.patient-ui.patient-payments-page .payments-sidebar__nav {
        display: flex;
        gap: 7px;
        overflow-x: auto;
        padding-bottom: 5px;
        scrollbar-width: thin;
    }

    body.patient-ui.patient-payments-page .payments-sidebar__nav a {
        flex: 0 0 auto;
        min-height: 42px;
        padding: 0 14px;
    }

    body.patient-ui.patient-payments-page .payments-sidebar__bottom {
        display: flex;
        justify-content: flex-end;
        margin-top: 10px;
        padding: 10px 0 0;
    }
}

@media (max-width: 768px) {
    body.patient-ui.patient-payments-page .site-header {
        position: relative;
    }

    body.patient-ui.patient-payments-page .site-header .header-row {
        align-items: center;
        padding: 12px 0 14px;
    }

    body.patient-ui.patient-payments-page .site-header .nav {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
        gap: 8px 12px;
    }

    body.patient-ui.patient-payments-page .site-header .nav a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 34px;
        text-align: center;
    }

    body.patient-ui.patient-payments-page .site-header .nav a.btn.btn-small {
        min-height: 40px;
        padding: 0 13px;
    }

    body.patient-ui.patient-payments-page .patient-payments__main {
        padding: 30px 18px 34px;
    }

    body.patient-ui.patient-payments-page .patient-payments__summary {
        grid-template-columns: 1fr;
    }

    body.patient-ui.patient-payments-page .payments-transaction {
        grid-template-columns: 40px minmax(0, 1fr) auto;
    }

    body.patient-ui.patient-payments-page .payments-transaction time {
        grid-column: 2;
    }

    body.patient-ui.patient-payments-page .payments-transaction__amount {
        grid-column: 2 / -1;
        grid-row: auto;
    }
}

@media (max-width: 480px) {
    body.patient-ui.patient-payments-page .site-header .container {
        width: calc(100% - 24px);
    }

    body.patient-ui.patient-payments-page .site-header .logo-mark {
        width: 38px;
        height: 38px;
    }

    body.patient-ui.patient-payments-page .site-header .logo-text {
        font-size: 12px;
    }

    body.patient-ui.patient-payments-page .site-header .logo-text::after {
        font-size: 7px;
    }

    body.patient-ui.patient-payments-page .site-header .nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px 10px;
    }

    body.patient-ui.patient-payments-page .site-header .nav a {
        min-height: 32px;
        font-size: 12px;
    }

    body.patient-ui.patient-payments-page .site-header .nav a.btn.btn-small {
        grid-column: 1 / -1;
        min-height: 42px;
    }

    body.patient-ui.patient-payments-page .payments-sidebar {
        padding: 15px 12px;
    }

    body.patient-ui.patient-payments-page .payments-sidebar__intro {
        padding-left: 6px;
    }

    body.patient-ui.patient-payments-page .payments-sidebar__nav a {
        min-height: 40px;
        padding: 0 12px;
        font-size: 12px;
    }

    body.patient-ui.patient-payments-page .payments-sidebar__nav a span {
        display: none;
    }

    body.patient-ui.patient-payments-page .patient-payments__main {
        padding: 24px 10px 30px;
    }

    body.patient-ui.patient-payments-page .patient-payments__hero {
        padding: 21px 18px;
        border-radius: 17px;
    }

    body.patient-ui.patient-payments-page .patient-payments__hero h1 {
        font-size: 34px;
    }

    body.patient-ui.patient-payments-page .payments-card,
    body.patient-ui.patient-payments-page .payments-history {
        padding: 19px 16px;
        border-radius: 17px;
    }

    body.patient-ui.patient-payments-page .payments-button {
        width: 100%;
        min-height: 48px;
    }

    body.patient-ui.patient-payments-page .payments-security {
        align-items: flex-start;
        flex-direction: column;
    }

    body.patient-ui.patient-payments-page .payments-security__icon {
        width: 54px;
        height: 54px;
    }

    body.patient-ui.patient-payments-page .payments-history__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    body.patient-ui.patient-payments-page .payments-transaction {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px;
    }

    body.patient-ui.patient-payments-page .payments-transaction time,
    body.patient-ui.patient-payments-page .payments-transaction__amount {
        grid-column: 2;
    }

    body.patient-ui.patient-payments-page .payments-transaction__amount {
        justify-items: start;
    }
}

/* --- PREMIUM WIZYTY PACJENTA --- */
body.patient-ui.patient-visits-page {
    --visits-ivory: #fbf8f2;
    --visits-white: #fffdf9;
    --visits-gold: #b98b4f;
    --visits-gold-dark: #93672f;
    --visits-ink: #2d2924;
    --visits-muted: #746c62;
    overflow-x: hidden;
    background: var(--visits-ivory);
    color: var(--visits-ink);
}

body.patient-ui.patient-visits-page .site-footer {
    display: none;
}

body.patient-ui.patient-visits-page .site-header {
    position: sticky;
    background: rgba(255, 253, 249, 0.95);
    border-bottom-color: rgba(185, 139, 79, 0.14);
    box-shadow: 0 10px 35px rgba(54, 40, 24, 0.04);
    backdrop-filter: blur(18px);
}

body.patient-ui.patient-visits-page .site-header .header-row {
    min-height: 82px;
    gap: 30px;
}

body.patient-ui.patient-visits-page .site-header .logo {
    gap: 13px;
    flex: 0 0 auto;
}

body.patient-ui.patient-visits-page .site-header .logo-mark {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(185, 128, 49, 0.56);
    background: rgba(255, 253, 249, 0.76);
    color: #a46e25;
    font-family: Georgia, serif;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 8px 22px rgba(147, 103, 47, 0.09);
}

body.patient-ui.patient-visits-page .site-header .logo-text {
    display: grid;
    gap: 3px;
    color: #28251f;
    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.patient-ui.patient-visits-page .site-header .logo-text::after {
    content: "Psycholog";
    color: #766c60;
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

body.patient-ui.patient-visits-page .site-header .nav a {
    position: relative;
    color: #4f473e;
    font-size: 12px;
    font-weight: 500;
}

body.patient-ui.patient-visits-page .site-header .nav a:not(.btn)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -10px;
    left: 0;
    height: 1px;
    background: var(--visits-gold);
    transform: scaleX(0);
    transition: transform 0.24s ease;
}

body.patient-ui.patient-visits-page .site-header .nav a:not(.btn):hover::after,
body.patient-ui.patient-visits-page .site-header .nav a[href="/konto/login"]::after {
    transform: scaleX(1);
}

body.patient-ui.patient-visits-page .site-header .nav a.btn.btn-small {
    background: linear-gradient(135deg, #c7a36a, #ad8246) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 10px 24px rgba(147, 103, 47, 0.18) !important;
}

body.patient-ui.patient-visits-page .patient-visits-page {
    min-height: calc(100svh - 82px);
    background:
        radial-gradient(circle at 82% 3%, rgba(221, 194, 155, 0.22), transparent 24%),
        linear-gradient(135deg, #fbf8f2, #f5eee5);
}

body.patient-ui.patient-visits-page .patient-visits-page__layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    width: min(1480px, 100%);
    min-height: calc(100svh - 82px);
    margin: 0 auto;
}

body.patient-ui.patient-visits-page .visits-sidebar {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 34px 18px 25px;
    border-right: 1px solid rgba(157, 127, 89, 0.15);
    background: rgba(255, 253, 249, 0.78);
}

body.patient-ui.patient-visits-page .visits-sidebar__intro {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 10px 28px;
}

body.patient-ui.patient-visits-page .visits-sidebar__icon,
body.patient-ui.patient-visits-page .visits-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid rgba(185, 139, 79, 0.2);
    border-radius: 50%;
    background: linear-gradient(145deg, #fffdf9, #f4e9d9);
    color: var(--visits-gold-dark);
}

body.patient-ui.patient-visits-page .visits-sidebar__icon {
    width: 52px;
    height: 52px;
}

body.patient-ui.patient-visits-page .visits-sidebar__icon svg,
body.patient-ui.patient-visits-page .visits-empty__icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.patient-ui.patient-visits-page .visits-sidebar__intro > span:last-child {
    display: grid;
    gap: 3px;
}

body.patient-ui.patient-visits-page .visits-sidebar__intro strong {
    color: var(--visits-gold-dark);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.patient-ui.patient-visits-page .visits-sidebar__intro small {
    color: var(--visits-muted);
    font-size: 12px;
}

body.patient-ui.patient-visits-page .visits-sidebar__nav {
    display: grid;
    gap: 5px;
}

body.patient-ui.patient-visits-page .visits-sidebar__nav a {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 50px;
    padding: 0 17px;
    border-radius: 14px;
    color: #514a42;
    font-size: 14px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

body.patient-ui.patient-visits-page .visits-sidebar__nav a:hover,
body.patient-ui.patient-visits-page .visits-sidebar__nav a.is-active {
    color: var(--visits-gold-dark);
    background: linear-gradient(90deg, rgba(232, 213, 186, 0.52), rgba(249, 245, 238, 0.72));
    transform: translateX(2px);
}

body.patient-ui.patient-visits-page .visits-sidebar__nav a span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    color: #a7793c;
}

body.patient-ui.patient-visits-page .visits-sidebar__nav a span svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.patient-ui.patient-visits-page .visits-sidebar__bottom {
    margin-top: auto;
    padding: 24px 10px 0;
    border-top: 1px solid rgba(157, 127, 89, 0.15);
}

body.patient-ui.patient-visits-page .visits-sidebar__bottom a {
    display: block;
    padding: 8px 7px;
    color: var(--visits-muted);
    font-size: 13px;
    font-weight: 700;
}

body.patient-ui.patient-visits-page .patient-visits-page__main {
    min-width: 0;
    padding: 34px clamp(28px, 3.6vw, 56px) 30px;
}

body.patient-ui.patient-visits-page .patient-visits-page__hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 18px;
    padding: 25px 28px;
    overflow: hidden;
    border: 1px solid rgba(185, 139, 79, 0.13);
    border-radius: 20px;
    background:
        radial-gradient(circle at 92% 18%, rgba(216, 184, 137, 0.22), transparent 28%),
        linear-gradient(135deg, rgba(255, 253, 249, 0.92), rgba(244, 234, 220, 0.72));
}

body.patient-ui.patient-visits-page .patient-visits-page__hero::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -76px;
    bottom: -112px;
    border: 1px solid rgba(185, 139, 79, 0.17);
    border-radius: 50%;
    pointer-events: none;
}

body.patient-ui.patient-visits-page .patient-visits-page__hero > * {
    position: relative;
    z-index: 1;
}

body.patient-ui.patient-visits-page .patient-visits-page__eyebrow {
    margin: 0 0 7px;
    color: var(--visits-gold-dark);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

body.patient-ui.patient-visits-page .patient-visits-page__hero h1 {
    margin: 0 0 8px;
    color: var(--visits-ink);
    font-family: Georgia, serif;
    font-size: clamp(33px, 3vw, 44px);
    font-weight: 500;
    line-height: 1.1;
}

body.patient-ui.patient-visits-page .patient-visits-page__hero p:last-child {
    margin: 0;
    color: var(--visits-muted);
    font-size: 14px;
}

body.patient-ui.patient-visits-page .visits-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 11px;
    background: linear-gradient(135deg, #c7a36a, #ad8246);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(147, 103, 47, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.patient-ui.patient-visits-page .visits-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(147, 103, 47, 0.23);
}

body.patient-ui.patient-visits-page .visits-list-card {
    padding: 25px;
    border: 1px solid rgba(157, 127, 89, 0.16);
    border-radius: 20px;
    background: rgba(255, 253, 249, 0.91);
    box-shadow: 0 14px 36px rgba(75, 58, 38, 0.045);
}

body.patient-ui.patient-visits-page .visits-list {
    display: grid;
    gap: 10px;
}

body.patient-ui.patient-visits-page .visits-record {
    display: grid;
    grid-template-columns: 120px minmax(210px, 1fr) minmax(130px, auto) minmax(210px, auto);
    align-items: center;
    gap: 18px;
    padding: 18px;
    border: 1px solid rgba(157, 127, 89, 0.14);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.58);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.patient-ui.patient-visits-page .visits-record:hover {
    border-color: rgba(185, 139, 79, 0.28);
    box-shadow: 0 12px 28px rgba(75, 58, 38, 0.055);
    transform: translateY(-1px);
}

body.patient-ui.patient-visits-page .visits-record__date {
    display: flex;
    align-items: center;
    gap: 11px;
}

body.patient-ui.patient-visits-page .visits-record__day {
    color: var(--visits-ink);
    font-family: Georgia, serif;
    font-size: 38px;
    line-height: 1;
}

body.patient-ui.patient-visits-page .visits-record__date > span:last-child,
body.patient-ui.patient-visits-page .visits-record__service,
body.patient-ui.patient-visits-page .visits-record__badges {
    display: grid;
    gap: 3px;
}

body.patient-ui.patient-visits-page .visits-record__date strong,
body.patient-ui.patient-visits-page .visits-record__service strong {
    color: #3e3730;
    font-size: 13px;
}

body.patient-ui.patient-visits-page .visits-record__date small,
body.patient-ui.patient-visits-page .visits-record__service > span,
body.patient-ui.patient-visits-page .visits-record__service small {
    color: var(--visits-muted);
    font-size: 11px;
}

body.patient-ui.patient-visits-page .visits-record__service > span {
    color: var(--visits-gold-dark);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body.patient-ui.patient-visits-page .visits-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    min-height: 25px;
    padding: 0 9px;
    border: 1px solid rgba(157, 127, 89, 0.16);
    border-radius: 999px;
    background: #f4eee5;
    color: #6e6254;
    font-size: 10px;
    font-weight: 700;
}

body.patient-ui.patient-visits-page .visits-badge--confirmed {
    background: #f5ead8;
    color: #8d642e;
}

body.patient-ui.patient-visits-page .visits-badge--completed,
body.patient-ui.patient-visits-page .visits-badge--payment-paid {
    background: #eaf1e9;
    color: #5c7357;
}

body.patient-ui.patient-visits-page .visits-badge--cancelled {
    background: #f5e9e6;
    color: #95625b;
}

body.patient-ui.patient-visits-page .visits-badge--payment-unpaid {
    background: #f7eee2;
    color: #9a6b35;
}

body.patient-ui.patient-visits-page .visits-record__actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
}

body.patient-ui.patient-visits-page .visits-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid rgba(185, 139, 79, 0.3);
    border-radius: 9px;
    color: var(--visits-gold-dark);
    font-size: 10px;
    font-weight: 700;
}

body.patient-ui.patient-visits-page .visits-action--primary {
    border-color: transparent;
    background: linear-gradient(135deg, #c7a36a, #ad8246);
    color: #fff;
}

body.patient-ui.patient-visits-page .visits-action--disabled,
body.patient-ui.patient-visits-page .visits-action--disabled:hover {
    cursor: not-allowed;
    opacity: 0.62;
    transform: none;
    box-shadow: none;
}

body.patient-ui.patient-visits-page .visits-action--soft {
    background: rgba(249, 244, 236, 0.72);
}

body.patient-ui.patient-visits-page .visits-action--danger {
    border-color: rgba(169, 80, 74, 0.2);
    background: rgba(248, 238, 235, 0.7);
    color: #965b55;
}

body.patient-ui.patient-visits-page .visits-record__complete {
    color: var(--visits-muted);
    font-size: 11px;
}

body.patient-ui.patient-visits-page .visits-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 245px;
    padding: 28px;
    border: 1px dashed rgba(185, 139, 79, 0.28);
    border-radius: 15px;
    background: rgba(249, 244, 236, 0.58);
    text-align: center;
}

body.patient-ui.patient-visits-page .visits-empty__icon {
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
}

body.patient-ui.patient-visits-page .visits-empty strong {
    color: #443b32;
    font-size: 15px;
}

body.patient-ui.patient-visits-page .visits-empty p {
    margin: 7px 0 18px;
    color: var(--visits-muted);
    font-size: 12px;
}

body.patient-ui.patient-visits-page .patient-visits-page__legal {
    margin: 16px 0 0;
    color: #91877b;
    font-size: 10px;
    text-align: center;
}

@media (max-width: 1200px) {
    body.patient-ui.patient-visits-page .patient-visits-page__layout {
        grid-template-columns: 230px minmax(0, 1fr);
    }

    body.patient-ui.patient-visits-page .patient-visits-page__main {
        padding: 32px 28px 28px;
    }

    body.patient-ui.patient-visits-page .visits-record {
        grid-template-columns: 110px minmax(180px, 1fr) minmax(120px, auto);
    }

    body.patient-ui.patient-visits-page .visits-record__actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-top: 9px;
        border-top: 1px solid rgba(157, 127, 89, 0.1);
    }
}

@media (max-width: 991px) {
    body.patient-ui.patient-visits-page .site-header .header-row {
        gap: 14px;
    }

    body.patient-ui.patient-visits-page .site-header .nav {
        justify-content: flex-end;
        gap: 12px 16px;
    }

    body.patient-ui.patient-visits-page .site-header .nav a {
        font-size: 13px;
    }

    body.patient-ui.patient-visits-page .patient-visits-page__layout {
        display: block;
    }

    body.patient-ui.patient-visits-page .visits-sidebar {
        display: block;
        padding: 18px 24px;
        border-right: 0;
        border-bottom: 1px solid rgba(157, 127, 89, 0.15);
    }

    body.patient-ui.patient-visits-page .visits-sidebar__intro {
        padding: 0 0 14px;
    }

    body.patient-ui.patient-visits-page .visits-sidebar__nav {
        display: flex;
        gap: 7px;
        overflow-x: auto;
        padding-bottom: 5px;
        scrollbar-width: thin;
    }

    body.patient-ui.patient-visits-page .visits-sidebar__nav a {
        flex: 0 0 auto;
        min-height: 42px;
        padding: 0 14px;
    }

    body.patient-ui.patient-visits-page .visits-sidebar__bottom {
        display: flex;
        justify-content: flex-end;
        margin-top: 10px;
        padding: 10px 0 0;
    }
}

@media (max-width: 768px) {
    body.patient-ui.patient-visits-page .site-header {
        position: relative;
    }

    body.patient-ui.patient-visits-page .site-header .header-row {
        align-items: center;
        padding: 12px 0 14px;
    }

    body.patient-ui.patient-visits-page .site-header .nav {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
        gap: 8px 12px;
    }

    body.patient-ui.patient-visits-page .site-header .nav a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 34px;
        text-align: center;
    }

    body.patient-ui.patient-visits-page .site-header .nav a.btn.btn-small {
        min-height: 40px;
        padding: 0 13px;
    }

    body.patient-ui.patient-visits-page .patient-visits-page__main {
        padding: 30px 18px 34px;
    }

    body.patient-ui.patient-visits-page .patient-visits-page__hero {
        align-items: flex-start;
        flex-direction: column;
    }

    body.patient-ui.patient-visits-page .visits-record {
        grid-template-columns: 105px minmax(0, 1fr);
    }

    body.patient-ui.patient-visits-page .visits-record__badges,
    body.patient-ui.patient-visits-page .visits-record__actions {
        grid-column: 1 / -1;
    }

    body.patient-ui.patient-visits-page .visits-record__badges {
        display: flex;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    body.patient-ui.patient-visits-page .site-header .container {
        width: calc(100% - 24px);
    }

    body.patient-ui.patient-visits-page .site-header .logo-mark {
        width: 38px;
        height: 38px;
    }

    body.patient-ui.patient-visits-page .site-header .logo-text {
        font-size: 12px;
    }

    body.patient-ui.patient-visits-page .site-header .logo-text::after {
        font-size: 7px;
    }

    body.patient-ui.patient-visits-page .site-header .nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px 10px;
    }

    body.patient-ui.patient-visits-page .site-header .nav a {
        min-height: 32px;
        font-size: 12px;
    }

    body.patient-ui.patient-visits-page .site-header .nav a.btn.btn-small {
        grid-column: 1 / -1;
        min-height: 42px;
    }

    body.patient-ui.patient-visits-page .visits-sidebar {
        padding: 15px 12px;
    }

    body.patient-ui.patient-visits-page .visits-sidebar__intro {
        padding-left: 6px;
    }

    body.patient-ui.patient-visits-page .visits-sidebar__nav a {
        min-height: 40px;
        padding: 0 12px;
        font-size: 12px;
    }

    body.patient-ui.patient-visits-page .visits-sidebar__nav a span {
        display: none;
    }

    body.patient-ui.patient-visits-page .patient-visits-page__main {
        padding: 24px 10px 30px;
    }

    body.patient-ui.patient-visits-page .patient-visits-page__hero,
    body.patient-ui.patient-visits-page .visits-list-card {
        padding: 20px 16px;
        border-radius: 17px;
    }

    body.patient-ui.patient-visits-page .patient-visits-page__hero h1 {
        font-size: 34px;
    }

    body.patient-ui.patient-visits-page .visits-button {
        width: 100%;
        min-height: 48px;
    }

    body.patient-ui.patient-visits-page .visits-record {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px 14px;
    }

    body.patient-ui.patient-visits-page .visits-record__badges,
    body.patient-ui.patient-visits-page .visits-record__actions {
        grid-column: auto;
    }

    body.patient-ui.patient-visits-page .visits-record__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.patient-ui.patient-visits-page .visits-action {
        min-height: 42px;
        padding: 0 8px;
        text-align: center;
    }

    body.patient-ui.patient-visits-page .visits-record__complete {
        grid-column: 1 / -1;
    }
}

/* --- PREMIUM DOKUMENTY PACJENTA --- */
body.patient-ui.patient-documents-page {
    --documents-ivory: #fbf8f2;
    --documents-white: #fffdf9;
    --documents-gold: #b98b4f;
    --documents-gold-dark: #93672f;
    --documents-ink: #2d2924;
    --documents-muted: #746c62;
    overflow-x: hidden;
    background: var(--documents-ivory);
    color: var(--documents-ink);
}

body.patient-ui.patient-documents-page .site-footer {
    display: none;
}

body.patient-ui.patient-documents-page .site-header {
    position: sticky;
    background: rgba(255, 253, 249, 0.95);
    border-bottom-color: rgba(185, 139, 79, 0.14);
    box-shadow: 0 10px 35px rgba(54, 40, 24, 0.04);
    backdrop-filter: blur(18px);
}

body.patient-ui.patient-documents-page .site-header .header-row {
    min-height: 82px;
    gap: 30px;
}

body.patient-ui.patient-documents-page .site-header .logo {
    gap: 13px;
    flex: 0 0 auto;
}

body.patient-ui.patient-documents-page .site-header .logo-mark {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(185, 128, 49, 0.56);
    background: rgba(255, 253, 249, 0.76);
    color: #a46e25;
    font-family: Georgia, serif;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 8px 22px rgba(147, 103, 47, 0.09);
}

body.patient-ui.patient-documents-page .site-header .logo-text {
    display: grid;
    gap: 3px;
    color: #28251f;
    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.patient-ui.patient-documents-page .site-header .logo-text::after {
    content: "Psycholog";
    color: #766c60;
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

body.patient-ui.patient-documents-page .site-header .nav a {
    position: relative;
    color: #4f473e;
    font-size: 12px;
    font-weight: 500;
}

body.patient-ui.patient-documents-page .site-header .nav a:not(.btn)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -10px;
    left: 0;
    height: 1px;
    background: var(--documents-gold);
    transform: scaleX(0);
    transition: transform 0.24s ease;
}

body.patient-ui.patient-documents-page .site-header .nav a:not(.btn):hover::after,
body.patient-ui.patient-documents-page .site-header .nav a[href="/konto/login"]::after {
    transform: scaleX(1);
}

body.patient-ui.patient-documents-page .site-header .nav a.btn.btn-small {
    background: linear-gradient(135deg, #c7a36a, #ad8246) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 10px 24px rgba(147, 103, 47, 0.18) !important;
}

body.patient-ui.patient-documents-page .patient-documents {
    min-height: calc(100svh - 82px);
    background:
        radial-gradient(circle at 82% 3%, rgba(221, 194, 155, 0.22), transparent 24%),
        linear-gradient(135deg, #fbf8f2, #f5eee5);
}

body.patient-ui.patient-documents-page .patient-documents__layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    width: min(1480px, 100%);
    min-height: calc(100svh - 82px);
    margin: 0 auto;
}

body.patient-ui.patient-documents-page .documents-sidebar {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 34px 18px 25px;
    border-right: 1px solid rgba(157, 127, 89, 0.15);
    background: rgba(255, 253, 249, 0.78);
}

body.patient-ui.patient-documents-page .documents-sidebar__intro {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 10px 28px;
}

body.patient-ui.patient-documents-page .documents-sidebar__icon,
body.patient-ui.patient-documents-page .documents-empty__icon,
body.patient-ui.patient-documents-page .documents-info-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid rgba(185, 139, 79, 0.2);
    border-radius: 50%;
    background: linear-gradient(145deg, #fffdf9, #f4e9d9);
    color: var(--documents-gold-dark);
}

body.patient-ui.patient-documents-page .documents-sidebar__icon {
    width: 52px;
    height: 52px;
}

body.patient-ui.patient-documents-page .documents-sidebar__icon svg,
body.patient-ui.patient-documents-page .documents-empty__icon svg,
body.patient-ui.patient-documents-page .documents-info-card__icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.patient-ui.patient-documents-page .documents-sidebar__intro > span:last-child {
    display: grid;
    gap: 3px;
}

body.patient-ui.patient-documents-page .documents-sidebar__intro strong {
    color: var(--documents-gold-dark);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.patient-ui.patient-documents-page .documents-sidebar__intro small {
    color: var(--documents-muted);
    font-size: 12px;
}

body.patient-ui.patient-documents-page .documents-sidebar__nav {
    display: grid;
    gap: 5px;
}

body.patient-ui.patient-documents-page .documents-sidebar__nav a {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 50px;
    padding: 0 17px;
    border-radius: 14px;
    color: #514a42;
    font-size: 14px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

body.patient-ui.patient-documents-page .documents-sidebar__nav a:hover,
body.patient-ui.patient-documents-page .documents-sidebar__nav a.is-active {
    color: var(--documents-gold-dark);
    background: linear-gradient(90deg, rgba(232, 213, 186, 0.52), rgba(249, 245, 238, 0.72));
    transform: translateX(2px);
}

body.patient-ui.patient-documents-page .documents-sidebar__nav a span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    color: #a7793c;
}

body.patient-ui.patient-documents-page .documents-sidebar__nav a span svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.patient-ui.patient-documents-page .documents-sidebar__bottom {
    margin-top: auto;
    padding: 24px 10px 0;
    border-top: 1px solid rgba(157, 127, 89, 0.15);
}

body.patient-ui.patient-documents-page .documents-sidebar__bottom a {
    display: block;
    padding: 8px 7px;
    color: var(--documents-muted);
    font-size: 13px;
    font-weight: 700;
}

body.patient-ui.patient-documents-page .patient-documents__main {
    min-width: 0;
    padding: 34px clamp(28px, 3.6vw, 56px) 30px;
}

body.patient-ui.patient-documents-page .patient-documents__hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 18px;
    padding: 25px 28px;
    overflow: hidden;
    border: 1px solid rgba(185, 139, 79, 0.13);
    border-radius: 20px;
    background:
        radial-gradient(circle at 92% 18%, rgba(216, 184, 137, 0.22), transparent 28%),
        linear-gradient(135deg, rgba(255, 253, 249, 0.92), rgba(244, 234, 220, 0.72));
}

body.patient-ui.patient-documents-page .patient-documents__hero::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -76px;
    bottom: -112px;
    border: 1px solid rgba(185, 139, 79, 0.17);
    border-radius: 50%;
    pointer-events: none;
}

body.patient-ui.patient-documents-page .patient-documents__hero > * {
    position: relative;
    z-index: 1;
}

body.patient-ui.patient-documents-page .patient-documents__eyebrow {
    margin: 0 0 7px;
    color: var(--documents-gold-dark);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

body.patient-ui.patient-documents-page .patient-documents__hero h1 {
    margin: 0 0 8px;
    color: var(--documents-ink);
    font-family: Georgia, serif;
    font-size: clamp(33px, 3vw, 44px);
    font-weight: 500;
    line-height: 1.1;
}

body.patient-ui.patient-documents-page .patient-documents__hero p:last-child {
    margin: 0;
    color: var(--documents-muted);
    font-size: 14px;
}

body.patient-ui.patient-documents-page .documents-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 11px;
    background: linear-gradient(135deg, #c7a36a, #ad8246);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(147, 103, 47, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.patient-ui.patient-documents-page .documents-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(147, 103, 47, 0.23);
}

body.patient-ui.patient-documents-page .documents-button--outline {
    border-color: rgba(185, 139, 79, 0.42);
    background: rgba(255, 253, 249, 0.46);
    color: var(--documents-gold-dark);
    box-shadow: none;
}

body.patient-ui.patient-documents-page .patient-documents__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 16px;
}

body.patient-ui.patient-documents-page .documents-empty-card,
body.patient-ui.patient-documents-page .documents-info-card {
    border: 1px solid rgba(157, 127, 89, 0.16);
    border-radius: 20px;
    background: rgba(255, 253, 249, 0.91);
    box-shadow: 0 14px 36px rgba(75, 58, 38, 0.045);
}

body.patient-ui.patient-documents-page .documents-empty-card {
    padding: 28px;
}

body.patient-ui.patient-documents-page .documents-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 390px;
    padding: 35px;
    border: 1px dashed rgba(185, 139, 79, 0.28);
    border-radius: 16px;
    background:
        radial-gradient(circle at center, rgba(235, 216, 188, 0.22), transparent 38%),
        rgba(249, 244, 236, 0.5);
    text-align: center;
}

body.patient-ui.patient-documents-page .documents-empty__icon {
    width: 72px;
    height: 72px;
    margin-bottom: 18px;
}

body.patient-ui.patient-documents-page .documents-empty__icon svg {
    width: 31px;
    height: 31px;
}

body.patient-ui.patient-documents-page .documents-empty h2,
body.patient-ui.patient-documents-page .documents-info-card h2 {
    margin: 0;
    color: #39332d;
    font-family: Georgia, serif;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.25;
}

body.patient-ui.patient-documents-page .documents-empty > p:not(.patient-documents__eyebrow),
body.patient-ui.patient-documents-page .documents-info-card > div > p:last-child {
    color: var(--documents-muted);
    font-size: 13px;
    line-height: 1.65;
}

body.patient-ui.patient-documents-page .documents-empty > p:not(.patient-documents__eyebrow) {
    max-width: 480px;
    margin: 9px 0 20px;
}

body.patient-ui.patient-documents-page .documents-empty__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

body.patient-ui.patient-documents-page .documents-info-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 28px;
    background:
        linear-gradient(145deg, rgba(255, 253, 249, 0.95), rgba(239, 223, 199, 0.66));
}

body.patient-ui.patient-documents-page .documents-info-card__icon {
    width: 62px;
    height: 62px;
}

body.patient-ui.patient-documents-page .documents-info-card__icon svg {
    width: 28px;
    height: 28px;
}

body.patient-ui.patient-documents-page .documents-info-card > div {
    min-width: 0;
}

body.patient-ui.patient-documents-page .documents-info-card > div > p:last-child {
    margin: 9px 0 0;
}

body.patient-ui.patient-documents-page .patient-documents__legal {
    margin: 16px 0 0;
    color: #91877b;
    font-size: 10px;
    text-align: center;
}

@media (max-width: 1200px) {
    body.patient-ui.patient-documents-page .patient-documents__layout {
        grid-template-columns: 230px minmax(0, 1fr);
    }

    body.patient-ui.patient-documents-page .patient-documents__main {
        padding: 32px 28px 28px;
    }

    body.patient-ui.patient-documents-page .patient-documents__grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(270px, 0.85fr);
    }
}

@media (max-width: 991px) {
    body.patient-ui.patient-documents-page .site-header .header-row {
        gap: 14px;
    }

    body.patient-ui.patient-documents-page .site-header .nav {
        justify-content: flex-end;
        gap: 12px 16px;
    }

    body.patient-ui.patient-documents-page .site-header .nav a {
        font-size: 13px;
    }

    body.patient-ui.patient-documents-page .patient-documents__layout {
        display: block;
    }

    body.patient-ui.patient-documents-page .documents-sidebar {
        display: block;
        padding: 18px 24px;
        border-right: 0;
        border-bottom: 1px solid rgba(157, 127, 89, 0.15);
    }

    body.patient-ui.patient-documents-page .documents-sidebar__intro {
        padding: 0 0 14px;
    }

    body.patient-ui.patient-documents-page .documents-sidebar__nav {
        display: flex;
        gap: 7px;
        overflow-x: auto;
        padding-bottom: 5px;
        scrollbar-width: thin;
    }

    body.patient-ui.patient-documents-page .documents-sidebar__nav a {
        flex: 0 0 auto;
        min-height: 42px;
        padding: 0 14px;
    }

    body.patient-ui.patient-documents-page .documents-sidebar__bottom {
        display: flex;
        justify-content: flex-end;
        margin-top: 10px;
        padding: 10px 0 0;
    }

    body.patient-ui.patient-documents-page .patient-documents__grid {
        grid-template-columns: 1fr;
    }

    body.patient-ui.patient-documents-page .documents-empty {
        min-height: 320px;
    }
}

@media (max-width: 768px) {
    body.patient-ui.patient-documents-page .site-header {
        position: relative;
    }

    body.patient-ui.patient-documents-page .site-header .header-row {
        align-items: center;
        padding: 12px 0 14px;
    }

    body.patient-ui.patient-documents-page .site-header .nav {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
        gap: 8px 12px;
    }

    body.patient-ui.patient-documents-page .site-header .nav a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 34px;
        text-align: center;
    }

    body.patient-ui.patient-documents-page .site-header .nav a.btn.btn-small {
        min-height: 40px;
        padding: 0 13px;
    }

    body.patient-ui.patient-documents-page .patient-documents__main {
        padding: 30px 18px 34px;
    }

    body.patient-ui.patient-documents-page .patient-documents__hero {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    body.patient-ui.patient-documents-page .site-header .container {
        width: calc(100% - 24px);
    }

    body.patient-ui.patient-documents-page .site-header .logo-mark {
        width: 38px;
        height: 38px;
    }

    body.patient-ui.patient-documents-page .site-header .logo-text {
        font-size: 12px;
    }

    body.patient-ui.patient-documents-page .site-header .logo-text::after {
        font-size: 7px;
    }

    body.patient-ui.patient-documents-page .site-header .nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px 10px;
    }

    body.patient-ui.patient-documents-page .site-header .nav a {
        min-height: 32px;
        font-size: 12px;
    }

    body.patient-ui.patient-documents-page .site-header .nav a.btn.btn-small {
        grid-column: 1 / -1;
        min-height: 42px;
    }

    body.patient-ui.patient-documents-page .documents-sidebar {
        padding: 15px 12px;
    }

    body.patient-ui.patient-documents-page .documents-sidebar__intro {
        padding-left: 6px;
    }

    body.patient-ui.patient-documents-page .documents-sidebar__nav a {
        min-height: 40px;
        padding: 0 12px;
        font-size: 12px;
    }

    body.patient-ui.patient-documents-page .documents-sidebar__nav a span {
        display: none;
    }

    body.patient-ui.patient-documents-page .patient-documents__main {
        padding: 24px 10px 30px;
    }

    body.patient-ui.patient-documents-page .patient-documents__hero,
    body.patient-ui.patient-documents-page .documents-empty-card,
    body.patient-ui.patient-documents-page .documents-info-card {
        padding: 20px 16px;
        border-radius: 17px;
    }

    body.patient-ui.patient-documents-page .patient-documents__hero h1 {
        font-size: 34px;
    }

    body.patient-ui.patient-documents-page .documents-button {
        width: 100%;
        min-height: 48px;
    }

    body.patient-ui.patient-documents-page .documents-empty {
        min-height: 280px;
        padding: 24px 15px;
    }

    body.patient-ui.patient-documents-page .documents-empty__actions {
        width: 100%;
    }

    body.patient-ui.patient-documents-page .documents-info-card {
        flex-direction: column;
    }
}

/* --- WIADOMOSCI PACJENTA --- */
body.patient-ui.patient-messages-page {
  --messages-ink: #302d28;
  --messages-muted: #756e65;
  --messages-gold: #b88843;
  --messages-gold-dark: #91682f;
  --messages-line: rgba(166, 126, 68, 0.18);
  --messages-card: rgba(255, 253, 249, 0.94);
  background:
    radial-gradient(circle at 83% 12%, rgba(216, 187, 145, 0.18), transparent 25rem),
    #f7f3ec;
  color: var(--messages-ink);
  overflow-x: hidden;
}

body.patient-ui.patient-messages-page .site-footer {
  display: none;
}

body.patient-ui.patient-messages-page .site-header {
  position: sticky;
  background: rgba(255, 253, 249, 0.95);
  border-bottom-color: rgba(185, 139, 79, 0.14);
  box-shadow: 0 10px 35px rgba(54, 40, 24, 0.04);
  backdrop-filter: blur(18px);
}

body.patient-ui.patient-messages-page .site-header .header-row {
  min-height: 82px;
  gap: 30px;
}

body.patient-ui.patient-messages-page .site-header .logo {
  gap: 13px;
  flex: 0 0 auto;
}

body.patient-ui.patient-messages-page .site-header .logo-mark {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(185, 128, 49, 0.56);
  color: #a87532;
  background: rgba(255, 253, 249, 0.76);
  font-family: Georgia, serif;
  font-weight: 500;
  box-shadow: 0 8px 22px rgba(147, 103, 47, 0.09);
}

body.patient-ui.patient-messages-page .site-header .logo-text {
  display: grid;
  gap: 3px;
  color: #28251f;
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.patient-ui.patient-messages-page .site-header .logo-text::after {
  content: "Psycholog";
  color: #766c60;
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

body.patient-ui.patient-messages-page .site-header .nav a {
  position: relative;
  color: #4f473e;
  font-size: 12px;
  font-weight: 500;
}

body.patient-ui.patient-messages-page .site-header .nav a:not(.btn)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 1px;
  background: #b9823c;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.24s ease;
}

body.patient-ui.patient-messages-page .site-header .nav a:not(.btn):hover::after,
body.patient-ui.patient-messages-page .site-header .nav a[href="/konto/login"]::after {
  transform: scaleX(1);
  transform-origin: left center;
}

body.patient-ui.patient-messages-page .site-header .nav a.btn.btn-small {
  color: #fff !important;
  background: linear-gradient(135deg, #c7a36a, #ad8246) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 10px 24px rgba(147, 103, 47, 0.18) !important;
}

body.patient-ui.patient-messages-page .site-header .nav a.btn.btn-small:hover {
  background: linear-gradient(135deg, #d0ad74, #b58a4d) !important;
  box-shadow: 0 14px 28px rgba(147, 103, 47, 0.24) !important;
}

body.patient-ui.patient-messages-page .patient-messages-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  width: min(1480px, 100%);
  min-height: calc(100vh - 82px);
  margin: 0 auto;
  background:
    radial-gradient(circle at 84% 8%, rgba(219, 193, 155, 0.16), transparent 25rem),
    linear-gradient(135deg, #fbf8f2, #f5eee5);
}

body.patient-ui.patient-messages-page .messages-sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 34px 22px 28px;
  border-right: 1px solid var(--messages-line);
  background: rgba(255, 253, 249, 0.76);
}

body.patient-ui.patient-messages-page .messages-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 10px 28px;
}

body.patient-ui.patient-messages-page .messages-sidebar__brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(184, 136, 67, 0.3);
  border-radius: 50%;
  color: var(--messages-gold);
  background: linear-gradient(145deg, #fffdfa, #f4eadc);
}

body.patient-ui.patient-messages-page .messages-sidebar svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.patient-ui.patient-messages-page .messages-sidebar__brand strong,
body.patient-ui.patient-messages-page .messages-sidebar__brand small {
  display: block;
}

body.patient-ui.patient-messages-page .messages-sidebar__brand strong {
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--messages-gold-dark);
}

body.patient-ui.patient-messages-page .messages-sidebar__brand small {
  margin-top: 3px;
  font-size: 0.74rem;
  color: var(--messages-muted);
}

body.patient-ui.patient-messages-page .messages-sidebar__nav {
  display: grid;
  gap: 5px;
}

body.patient-ui.patient-messages-page .messages-sidebar__nav a,
body.patient-ui.patient-messages-page .messages-sidebar__logout {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 13px;
  border-radius: 13px;
  color: #5f5951;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

body.patient-ui.patient-messages-page .messages-sidebar__nav a > span,
body.patient-ui.patient-messages-page .messages-sidebar__logout > span {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 25px;
  color: #a29a90;
}

body.patient-ui.patient-messages-page .messages-sidebar__nav a:hover,
body.patient-ui.patient-messages-page .messages-sidebar__nav a.is-active {
  color: var(--messages-gold-dark);
  background: linear-gradient(90deg, rgba(219, 190, 147, 0.22), rgba(255, 253, 249, 0.7));
  transform: translateX(2px);
}

body.patient-ui.patient-messages-page .messages-sidebar__nav a.is-active > span {
  color: var(--messages-gold);
}

body.patient-ui.patient-messages-page .messages-sidebar__logout {
  margin-top: auto;
  border-top: 1px solid var(--messages-line);
  border-radius: 0;
  padding-top: 22px;
}

body.patient-ui.patient-messages-page .messages-sidebar__logout:hover {
  color: var(--messages-gold-dark);
}

body.patient-ui.patient-messages-page .patient-messages-content {
  min-width: 0;
  padding: 34px clamp(28px, 3.6vw, 56px) 30px;
}

body.patient-ui.patient-messages-page .patient-messages-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 30px;
  border: 1px solid rgba(184, 136, 67, 0.14);
  border-radius: 20px;
  background:
    radial-gradient(circle at 90% 20%, rgba(205, 166, 109, 0.19), transparent 18rem),
    linear-gradient(125deg, rgba(255, 254, 251, 0.98), rgba(244, 234, 219, 0.78));
  box-shadow: none;
}

body.patient-ui.patient-messages-page .patient-messages-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--messages-gold-dark);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body.patient-ui.patient-messages-page .patient-messages-hero h1 {
  margin: 0;
  color: var(--messages-ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 3.25vw, 3.35rem);
  font-weight: 500;
  line-height: 1.08;
}

body.patient-ui.patient-messages-page .patient-messages-hero p {
  max-width: 690px;
  margin: 13px 0 0;
  color: var(--messages-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

body.patient-ui.patient-messages-page .patient-messages-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--messages-gold);
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, #c99c58, #ad7934);
  box-shadow: 0 9px 20px rgba(164, 112, 45, 0.17);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

body.patient-ui.patient-messages-page .patient-messages-button:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 13px 26px rgba(164, 112, 45, 0.23);
}

body.patient-ui.patient-messages-page .patient-messages-button--secondary {
  color: var(--messages-gold-dark);
  border-color: rgba(166, 116, 50, 0.38);
  background: rgba(255, 253, 249, 0.72);
  box-shadow: none;
}

body.patient-ui.patient-messages-page .patient-messages-button--secondary:hover {
  color: var(--messages-gold-dark);
  background: #fffdf9;
  box-shadow: 0 9px 22px rgba(80, 57, 29, 0.08);
}

body.patient-ui.patient-messages-page .patient-messages-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(290px, 0.8fr);
  gap: 16px;
  margin-top: 18px;
}

body.patient-ui.patient-messages-page .patient-messages-empty,
body.patient-ui.patient-messages-page .patient-messages-info {
  border: 1px solid var(--messages-line);
  border-radius: 20px;
  background: var(--messages-card);
  box-shadow: 0 14px 36px rgba(75, 58, 38, 0.045);
}

body.patient-ui.patient-messages-page .patient-messages-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  padding: 42px clamp(24px, 5vw, 64px);
  text-align: center;
}

body.patient-ui.patient-messages-page .patient-messages-empty__icon,
body.patient-ui.patient-messages-page .patient-messages-info__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(184, 136, 67, 0.24);
  border-radius: 50%;
  color: var(--messages-gold);
  background: linear-gradient(145deg, #fffefa, #f5ead9);
}

body.patient-ui.patient-messages-page .patient-messages-empty__icon svg,
body.patient-ui.patient-messages-page .patient-messages-info__icon svg {
  width: 31px;
  height: 31px;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.patient-ui.patient-messages-page .patient-messages-empty__label {
  margin-top: 22px;
  color: var(--messages-gold-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.patient-ui.patient-messages-page .patient-messages-empty h2,
body.patient-ui.patient-messages-page .patient-messages-info h2 {
  margin: 9px 0 0;
  color: var(--messages-ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.55rem, 2.1vw, 2.15rem);
  font-weight: 500;
  line-height: 1.2;
}

body.patient-ui.patient-messages-page .patient-messages-empty p,
body.patient-ui.patient-messages-page .patient-messages-info p {
  color: var(--messages-muted);
  line-height: 1.72;
}

body.patient-ui.patient-messages-page .patient-messages-empty p {
  max-width: 510px;
  margin: 13px 0 0;
}

body.patient-ui.patient-messages-page .patient-messages-empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px;
  margin-top: 25px;
}

body.patient-ui.patient-messages-page .patient-messages-info {
  align-self: stretch;
  padding: 32px 29px;
  background:
    radial-gradient(circle at 100% 0, rgba(213, 180, 132, 0.2), transparent 15rem),
    rgba(251, 247, 240, 0.94);
}

body.patient-ui.patient-messages-page .patient-messages-info__icon {
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
}

body.patient-ui.patient-messages-page .patient-messages-info__icon svg {
  width: 27px;
  height: 27px;
}

body.patient-ui.patient-messages-page .patient-messages-info p {
  margin: 14px 0 0;
}

body.patient-ui.patient-messages-page .patient-messages-info__note {
  display: grid;
  gap: 4px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--messages-line);
}

body.patient-ui.patient-messages-page .patient-messages-info__note strong {
  color: #4a443d;
  font-size: 0.89rem;
}

body.patient-ui.patient-messages-page .patient-messages-info__note span {
  color: var(--messages-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

body.patient-ui.patient-messages-page .patient-messages-legal {
  margin: 20px 0 0;
  color: #918980;
  font-size: 0.72rem;
  text-align: center;
}

@media (max-width: 1200px) {
  body.patient-ui.patient-messages-page .patient-messages-shell {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  body.patient-ui.patient-messages-page .patient-messages-content {
    padding-inline: 30px;
  }
}

@media (max-width: 991px) {
  body.patient-ui.patient-messages-page .site-header .header-row {
    gap: 14px;
  }

  body.patient-ui.patient-messages-page .site-header .nav {
    justify-content: flex-end;
    gap: 12px 16px;
  }

  body.patient-ui.patient-messages-page .site-header .nav a {
    font-size: 13px;
  }

  body.patient-ui.patient-messages-page .patient-messages-shell {
    display: block;
    min-height: auto;
  }

  body.patient-ui.patient-messages-page .messages-sidebar {
    display: block;
    padding: 20px 22px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--messages-line);
  }

  body.patient-ui.patient-messages-page .messages-sidebar__brand {
    padding: 0 0 15px;
  }

  body.patient-ui.patient-messages-page .messages-sidebar__nav {
    display: flex;
    gap: 6px;
    padding-bottom: 5px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  body.patient-ui.patient-messages-page .messages-sidebar__nav a {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 8px 12px;
    white-space: nowrap;
  }

  body.patient-ui.patient-messages-page .messages-sidebar__nav a:hover,
  body.patient-ui.patient-messages-page .messages-sidebar__nav a.is-active {
    transform: none;
  }

  body.patient-ui.patient-messages-page .messages-sidebar__logout {
    display: none;
  }

  body.patient-ui.patient-messages-page .patient-messages-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.patient-ui.patient-messages-page .patient-messages-info {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 20px;
  }

  body.patient-ui.patient-messages-page .patient-messages-info__icon {
    grid-row: 1 / span 4;
    margin: 0;
  }

  body.patient-ui.patient-messages-page .patient-messages-info__note {
    grid-column: 2;
  }
}

@media (max-width: 768px) {
  body.patient-ui.patient-messages-page .site-header {
    position: relative;
  }

  body.patient-ui.patient-messages-page .site-header .header-row {
    align-items: center;
    padding: 12px 0 14px;
  }

  body.patient-ui.patient-messages-page .site-header .nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 8px 12px;
  }

  body.patient-ui.patient-messages-page .site-header .nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    text-align: center;
  }

  body.patient-ui.patient-messages-page .site-header .nav a.btn.btn-small {
    min-height: 40px;
    padding: 0 13px;
  }

  body.patient-ui.patient-messages-page .patient-messages-shell {
    width: 100%;
  }

  body.patient-ui.patient-messages-page .patient-messages-content {
    padding: 22px 16px 16px;
  }

  body.patient-ui.patient-messages-page .patient-messages-hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    padding: 27px 23px;
  }

  body.patient-ui.patient-messages-page .patient-messages-hero .patient-messages-button {
    width: 100%;
  }

  body.patient-ui.patient-messages-page .patient-messages-empty {
    min-height: 340px;
    padding: 38px 22px;
  }

  body.patient-ui.patient-messages-page .patient-messages-info {
    padding: 27px 23px;
  }
}

@media (max-width: 480px) {
  body.patient-ui.patient-messages-page .site-header .container {
    width: calc(100% - 24px);
  }

  body.patient-ui.patient-messages-page .site-header .logo-mark {
    width: 38px;
    height: 38px;
  }

  body.patient-ui.patient-messages-page .site-header .logo-text {
    font-size: 12px;
  }

  body.patient-ui.patient-messages-page .site-header .logo-text::after {
    font-size: 7px;
  }

  body.patient-ui.patient-messages-page .site-header .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
  }

  body.patient-ui.patient-messages-page .site-header .nav a {
    min-height: 32px;
    font-size: 12px;
  }

  body.patient-ui.patient-messages-page .site-header .nav a.btn.btn-small {
    grid-column: 1 / -1;
    min-height: 42px;
  }

  body.patient-ui.patient-messages-page .patient-messages-shell {
    width: 100%;
  }

  body.patient-ui.patient-messages-page .messages-sidebar {
    padding-inline: 16px;
  }

  body.patient-ui.patient-messages-page .messages-sidebar__brand-icon {
    flex-basis: 43px;
    width: 43px;
    height: 43px;
  }

  body.patient-ui.patient-messages-page .messages-sidebar__nav a > span {
    display: none;
  }

  body.patient-ui.patient-messages-page .patient-messages-content {
    padding-inline: 12px;
  }

  body.patient-ui.patient-messages-page .patient-messages-hero,
  body.patient-ui.patient-messages-page .patient-messages-info {
    border-radius: 18px;
  }

  body.patient-ui.patient-messages-page .patient-messages-hero h1 {
    font-size: 2rem;
  }

  body.patient-ui.patient-messages-page .patient-messages-grid {
    gap: 14px;
    margin-top: 14px;
  }

  body.patient-ui.patient-messages-page .patient-messages-empty {
    min-height: 0;
    padding: 34px 18px;
    border-radius: 18px;
  }

  body.patient-ui.patient-messages-page .patient-messages-empty__icon {
    width: 60px;
    height: 60px;
  }

  body.patient-ui.patient-messages-page .patient-messages-empty__actions {
    display: grid;
    width: 100%;
  }

  body.patient-ui.patient-messages-page .patient-messages-button {
    width: 100%;
    min-height: 52px;
  }

  body.patient-ui.patient-messages-page .patient-messages-info {
    display: block;
  }

  body.patient-ui.patient-messages-page .patient-messages-info__icon {
    margin-bottom: 21px;
  }

  body.patient-ui.patient-messages-page .patient-messages-info__note {
    display: grid;
  }
}

/* --- PROFIL PACJENTA --- */
body.patient-ui.patient-profile-page {
    --profile-ink: #37322c;
    --profile-muted: #766e65;
    --profile-gold: #b9843f;
    --profile-gold-dark: #94672f;
    --profile-border: rgba(157, 127, 89, 0.16);
    color: var(--profile-ink);
    background: #f7f3ec;
    overflow-x: hidden;
}

body.patient-ui.patient-profile-page .site-footer {
    display: none;
}

body.patient-ui.patient-profile-page .site-header {
    position: sticky;
    background: rgba(255, 253, 249, 0.95);
    border-bottom-color: rgba(185, 139, 79, 0.14);
    box-shadow: 0 10px 35px rgba(54, 40, 24, 0.04);
    backdrop-filter: blur(18px);
}

body.patient-ui.patient-profile-page .site-header .header-row {
    min-height: 82px;
    gap: 30px;
}

body.patient-ui.patient-profile-page .site-header .logo {
    gap: 13px;
    flex: 0 0 auto;
}

body.patient-ui.patient-profile-page .site-header .logo-mark {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(185, 128, 49, 0.56);
    color: #a87532;
    background: rgba(255, 253, 249, 0.76);
    font-family: Georgia, serif;
    font-weight: 500;
    box-shadow: 0 8px 22px rgba(147, 103, 47, 0.09);
}

body.patient-ui.patient-profile-page .site-header .logo-text {
    display: grid;
    gap: 3px;
    color: #28251f;
    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.patient-ui.patient-profile-page .site-header .logo-text::after {
    content: "Psycholog";
    color: #766c60;
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

body.patient-ui.patient-profile-page .site-header .nav a {
    position: relative;
    color: #4f473e;
    font-size: 12px;
    font-weight: 500;
}

body.patient-ui.patient-profile-page .site-header .nav a:not(.btn)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -10px;
    left: 0;
    height: 1px;
    background: #b9823c;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.24s ease;
}

body.patient-ui.patient-profile-page .site-header .nav a:not(.btn):hover::after,
body.patient-ui.patient-profile-page .site-header .nav a[href="/konto/login"]::after {
    transform: scaleX(1);
    transform-origin: left center;
}

body.patient-ui.patient-profile-page .site-header .nav a.btn.btn-small {
    color: #fff !important;
    background: linear-gradient(135deg, #c7a36a, #ad8246) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 10px 24px rgba(147, 103, 47, 0.18) !important;
}

body.patient-ui.patient-profile-page .patient-profile {
    background:
        radial-gradient(circle at 84% 8%, rgba(219, 193, 155, 0.16), transparent 25rem),
        linear-gradient(135deg, #fbf8f2, #f5eee5);
}

body.patient-ui.patient-profile-page .patient-profile__layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    width: min(1480px, 100%);
    min-height: calc(100vh - 82px);
    margin: 0 auto;
}

body.patient-ui.patient-profile-page .profile-sidebar {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 34px 22px 28px;
    border-right: 1px solid var(--profile-border);
    background: rgba(255, 253, 249, 0.78);
}

body.patient-ui.patient-profile-page .profile-sidebar__intro {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 10px 28px;
}

body.patient-ui.patient-profile-page .profile-sidebar__icon,
body.patient-ui.patient-profile-page .profile-form-card__icon,
body.patient-ui.patient-profile-page .profile-security-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid rgba(185, 128, 49, 0.2);
    border-radius: 50%;
    color: var(--profile-gold-dark);
    background: linear-gradient(145deg, #fffdf9, #f3e6d3);
}

body.patient-ui.patient-profile-page .profile-sidebar__icon {
    width: 52px;
    height: 52px;
}

body.patient-ui.patient-profile-page .profile-sidebar__icon svg,
body.patient-ui.patient-profile-page .profile-form-card__icon svg,
body.patient-ui.patient-profile-page .profile-security-card__icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.patient-ui.patient-profile-page .profile-sidebar__intro > span:last-child {
    display: grid;
    gap: 3px;
}

body.patient-ui.patient-profile-page .profile-sidebar__intro strong {
    color: var(--profile-gold-dark);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.patient-ui.patient-profile-page .profile-sidebar__intro small {
    color: var(--profile-muted);
    font-size: 12px;
}

body.patient-ui.patient-profile-page .profile-sidebar__nav {
    display: grid;
    gap: 5px;
}

body.patient-ui.patient-profile-page .profile-sidebar__nav a {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    color: #5f5850;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

body.patient-ui.patient-profile-page .profile-sidebar__nav a:hover,
body.patient-ui.patient-profile-page .profile-sidebar__nav a.is-active {
    color: var(--profile-gold-dark);
    background: linear-gradient(90deg, rgba(232, 213, 186, 0.52), rgba(249, 245, 238, 0.72));
    transform: translateX(2px);
}

body.patient-ui.patient-profile-page .profile-sidebar__nav a span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    color: #a7793c;
}

body.patient-ui.patient-profile-page .profile-sidebar__nav a span svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.patient-ui.patient-profile-page .profile-sidebar__bottom {
    margin-top: auto;
    padding: 24px 10px 0;
    border-top: 1px solid var(--profile-border);
}

body.patient-ui.patient-profile-page .profile-sidebar__bottom a {
    display: block;
    padding: 8px 7px;
    color: var(--profile-muted);
    font-size: 13px;
    text-decoration: none;
}

body.patient-ui.patient-profile-page .patient-profile__main {
    min-width: 0;
    padding: 34px clamp(28px, 3.6vw, 56px) 30px;
}

body.patient-ui.patient-profile-page .patient-profile__hero {
    position: relative;
    overflow: hidden;
    padding: 28px 30px;
    border: 1px solid var(--profile-border);
    border-radius: 20px;
    background:
        radial-gradient(circle at 90% 15%, rgba(215, 183, 137, 0.22), transparent 14rem),
        linear-gradient(135deg, rgba(255, 253, 249, 0.92), rgba(244, 234, 220, 0.72));
}

body.patient-ui.patient-profile-page .patient-profile__eyebrow {
    margin: 0 0 8px;
    color: var(--profile-gold-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

body.patient-ui.patient-profile-page .patient-profile__hero h1 {
    margin: 0 0 8px;
    color: var(--profile-ink);
    font-family: Georgia, serif;
    font-size: clamp(34px, 3.1vw, 48px);
    font-weight: 500;
    line-height: 1.1;
}

body.patient-ui.patient-profile-page .patient-profile__hero p:last-child {
    max-width: 720px;
    margin: 0;
    color: var(--profile-muted);
    font-size: 14px;
    line-height: 1.65;
}

body.patient-ui.patient-profile-page .patient-profile__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(285px, 0.78fr);
    gap: 16px;
    margin-top: 18px;
}

body.patient-ui.patient-profile-page .profile-form-card,
body.patient-ui.patient-profile-page .profile-security-card {
    border: 1px solid var(--profile-border);
    border-radius: 20px;
    background: rgba(255, 253, 249, 0.93);
    box-shadow: 0 14px 36px rgba(75, 58, 38, 0.045);
}

body.patient-ui.patient-profile-page .profile-form-card {
    padding: 30px;
}

body.patient-ui.patient-profile-page .profile-form-card__heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 25px;
}

body.patient-ui.patient-profile-page .profile-form-card__icon {
    width: 54px;
    height: 54px;
}

body.patient-ui.patient-profile-page .profile-form-card__heading h2,
body.patient-ui.patient-profile-page .profile-security-card h2 {
    margin: 0;
    color: var(--profile-ink);
    font-family: Georgia, serif;
    font-size: 25px;
    font-weight: 500;
    line-height: 1.2;
}

body.patient-ui.patient-profile-page .profile-form-card__heading .patient-profile__eyebrow {
    margin-bottom: 5px;
}

body.patient-ui.patient-profile-page .profile-alert {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 20px;
    padding: 13px 15px;
    border: 1px solid;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
}

body.patient-ui.patient-profile-page .profile-alert span {
    display: inline-flex;
    flex: 0 0 auto;
}

body.patient-ui.patient-profile-page .profile-alert svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.patient-ui.patient-profile-page .profile-alert--success {
    color: #526a50;
    border-color: rgba(86, 118, 81, 0.2);
    background: rgba(231, 239, 227, 0.72);
}

body.patient-ui.patient-profile-page .profile-alert--error {
    color: #8a5149;
    border-color: rgba(151, 75, 67, 0.2);
    background: rgba(247, 231, 226, 0.75);
}

body.patient-ui.patient-profile-page .profile-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

body.patient-ui.patient-profile-page .profile-field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

body.patient-ui.patient-profile-page .profile-field label {
    color: #514a42;
    font-size: 13px;
    font-weight: 650;
}

body.patient-ui.patient-profile-page .profile-field input {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid rgba(157, 127, 89, 0.23);
    border-radius: 12px;
    outline: none;
    color: #38332d;
    background: #fffdfa;
    box-shadow: 0 6px 18px rgba(77, 57, 34, 0.025);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.patient-ui.patient-profile-page .profile-field input:focus {
    border-color: rgba(181, 128, 60, 0.7);
    box-shadow: 0 0 0 4px rgba(198, 158, 103, 0.12);
}

body.patient-ui.patient-profile-page .profile-field input:disabled {
    opacity: 1;
    color: #71695f;
    background: #f4efe7;
    cursor: not-allowed;
}

body.patient-ui.patient-profile-page .profile-field small {
    color: #91887e;
    font-size: 11px;
    line-height: 1.5;
}

body.patient-ui.patient-profile-page .profile-form__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--profile-border);
}

body.patient-ui.patient-profile-page .profile-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 23px;
    border: 1px solid var(--profile-gold);
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, #c99c58, #ad7934);
    box-shadow: 0 9px 20px rgba(164, 112, 45, 0.17);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.patient-ui.patient-profile-page .profile-button:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 13px 26px rgba(164, 112, 45, 0.23);
}

body.patient-ui.patient-profile-page .profile-button--outline {
    margin-top: 24px;
    color: var(--profile-gold-dark);
    border-color: rgba(166, 116, 50, 0.38);
    background: rgba(255, 253, 249, 0.72);
    box-shadow: none;
}

body.patient-ui.patient-profile-page .profile-button--outline:hover {
    color: var(--profile-gold-dark);
    background: #fffdf9;
    box-shadow: 0 9px 22px rgba(80, 57, 29, 0.08);
}

body.patient-ui.patient-profile-page .profile-security-card {
    align-self: start;
    padding: 30px 28px;
    background:
        radial-gradient(circle at 100% 0, rgba(213, 180, 132, 0.2), transparent 15rem),
        rgba(251, 247, 240, 0.95);
}

body.patient-ui.patient-profile-page .profile-security-card__icon {
    width: 62px;
    height: 62px;
    margin-bottom: 25px;
}

body.patient-ui.patient-profile-page .profile-security-card__icon svg {
    width: 28px;
    height: 28px;
}

body.patient-ui.patient-profile-page .profile-security-card > p:not(.patient-profile__eyebrow) {
    margin: 12px 0 0;
    color: var(--profile-muted);
    font-size: 13px;
    line-height: 1.7;
}

body.patient-ui.patient-profile-page .patient-profile__legal {
    margin: 20px 0 0;
    color: #918980;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 1200px) {
    body.patient-ui.patient-profile-page .patient-profile__layout {
        grid-template-columns: 230px minmax(0, 1fr);
    }

    body.patient-ui.patient-profile-page .patient-profile__main {
        padding-inline: 30px;
    }
}

@media (max-width: 991px) {
    body.patient-ui.patient-profile-page .site-header .header-row {
        gap: 14px;
    }

    body.patient-ui.patient-profile-page .site-header .nav {
        justify-content: flex-end;
        gap: 12px 16px;
    }

    body.patient-ui.patient-profile-page .site-header .nav a {
        font-size: 13px;
    }

    body.patient-ui.patient-profile-page .patient-profile__layout {
        display: block;
    }

    body.patient-ui.patient-profile-page .profile-sidebar {
        display: block;
        padding: 18px 24px;
        border-right: 0;
        border-bottom: 1px solid var(--profile-border);
    }

    body.patient-ui.patient-profile-page .profile-sidebar__intro {
        padding: 0 0 14px;
    }

    body.patient-ui.patient-profile-page .profile-sidebar__nav {
        display: flex;
        gap: 7px;
        padding-bottom: 5px;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    body.patient-ui.patient-profile-page .profile-sidebar__nav a {
        flex: 0 0 auto;
        min-height: 42px;
        padding: 0 14px;
    }

    body.patient-ui.patient-profile-page .profile-sidebar__nav a:hover,
    body.patient-ui.patient-profile-page .profile-sidebar__nav a.is-active {
        transform: none;
    }

    body.patient-ui.patient-profile-page .profile-sidebar__bottom {
        display: flex;
        justify-content: flex-end;
        margin-top: 10px;
        padding-top: 10px;
    }

    body.patient-ui.patient-profile-page .patient-profile__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    body.patient-ui.patient-profile-page .site-header {
        position: relative;
    }

    body.patient-ui.patient-profile-page .site-header .header-row {
        align-items: center;
        padding: 12px 0 14px;
    }

    body.patient-ui.patient-profile-page .site-header .nav {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
        gap: 8px 12px;
    }

    body.patient-ui.patient-profile-page .site-header .nav a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 34px;
        text-align: center;
    }

    body.patient-ui.patient-profile-page .site-header .nav a.btn.btn-small {
        min-height: 40px;
        padding: 0 13px;
    }

    body.patient-ui.patient-profile-page .patient-profile__main {
        padding: 30px 18px 34px;
    }

    body.patient-ui.patient-profile-page .profile-form__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 480px) {
    body.patient-ui.patient-profile-page .site-header .container {
        width: calc(100% - 24px);
    }

    body.patient-ui.patient-profile-page .site-header .logo-mark {
        width: 38px;
        height: 38px;
    }

    body.patient-ui.patient-profile-page .site-header .logo-text {
        font-size: 12px;
    }

    body.patient-ui.patient-profile-page .site-header .logo-text::after {
        font-size: 7px;
    }

    body.patient-ui.patient-profile-page .site-header .nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px 10px;
    }

    body.patient-ui.patient-profile-page .site-header .nav a {
        min-height: 32px;
        font-size: 12px;
    }

    body.patient-ui.patient-profile-page .site-header .nav a.btn.btn-small {
        grid-column: 1 / -1;
        min-height: 42px;
    }

    body.patient-ui.patient-profile-page .profile-sidebar {
        padding: 15px 12px;
    }

    body.patient-ui.patient-profile-page .profile-sidebar__intro {
        padding-left: 6px;
    }

    body.patient-ui.patient-profile-page .profile-sidebar__nav a {
        min-height: 40px;
        padding: 0 12px;
        font-size: 12px;
    }

    body.patient-ui.patient-profile-page .profile-sidebar__nav a span {
        display: none;
    }

    body.patient-ui.patient-profile-page .patient-profile__main {
        padding: 24px 10px 30px;
    }

    body.patient-ui.patient-profile-page .patient-profile__hero,
    body.patient-ui.patient-profile-page .profile-form-card,
    body.patient-ui.patient-profile-page .profile-security-card {
        padding: 20px 16px;
        border-radius: 17px;
    }

    body.patient-ui.patient-profile-page .patient-profile__hero h1 {
        font-size: 34px;
    }

    body.patient-ui.patient-profile-page .profile-form-card__heading {
        align-items: flex-start;
    }

    body.patient-ui.patient-profile-page .profile-form__actions,
    body.patient-ui.patient-profile-page .profile-button {
        width: 100%;
    }
}

/* --- ZMIANA HASLA PACJENTA --- */
body.patient-ui.patient-password-page {
    --password-ink: #37322c;
    --password-muted: #766e65;
    --password-gold: #b9843f;
    --password-gold-dark: #94672f;
    --password-border: rgba(157, 127, 89, 0.16);
    color: var(--password-ink);
    background: #f7f3ec;
    overflow-x: hidden;
}

body.patient-ui.patient-password-page .site-footer {
    display: none;
}

body.patient-ui.patient-password-page .site-header {
    position: sticky;
    background: rgba(255, 253, 249, 0.95);
    border-bottom-color: rgba(185, 139, 79, 0.14);
    box-shadow: 0 10px 35px rgba(54, 40, 24, 0.04);
    backdrop-filter: blur(18px);
}

body.patient-ui.patient-password-page .site-header .header-row {
    min-height: 82px;
    gap: 30px;
}

body.patient-ui.patient-password-page .site-header .logo {
    gap: 13px;
    flex: 0 0 auto;
}

body.patient-ui.patient-password-page .site-header .logo-mark {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(185, 128, 49, 0.56);
    color: #a87532;
    background: rgba(255, 253, 249, 0.76);
    font-family: Georgia, serif;
    font-weight: 500;
    box-shadow: 0 8px 22px rgba(147, 103, 47, 0.09);
}

body.patient-ui.patient-password-page .site-header .logo-text {
    display: grid;
    gap: 3px;
    color: #28251f;
    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.patient-ui.patient-password-page .site-header .logo-text::after {
    content: "Psycholog";
    color: #766c60;
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

body.patient-ui.patient-password-page .site-header .nav a {
    position: relative;
    color: #4f473e;
    font-size: 12px;
    font-weight: 500;
}

body.patient-ui.patient-password-page .site-header .nav a:not(.btn)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -10px;
    left: 0;
    height: 1px;
    background: #b9823c;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.24s ease;
}

body.patient-ui.patient-password-page .site-header .nav a:not(.btn):hover::after,
body.patient-ui.patient-password-page .site-header .nav a[href="/konto/login"]::after {
    transform: scaleX(1);
    transform-origin: left center;
}

body.patient-ui.patient-password-page .site-header .nav a.btn.btn-small {
    color: #fff !important;
    background: linear-gradient(135deg, #c7a36a, #ad8246) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 10px 24px rgba(147, 103, 47, 0.18) !important;
}

body.patient-ui.patient-password-page .patient-password {
    background:
        radial-gradient(circle at 84% 8%, rgba(219, 193, 155, 0.16), transparent 25rem),
        linear-gradient(135deg, #fbf8f2, #f5eee5);
}

body.patient-ui.patient-password-page .patient-password__layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    width: min(1480px, 100%);
    min-height: calc(100vh - 82px);
    margin: 0 auto;
}

body.patient-ui.patient-password-page .password-sidebar {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 34px 22px 28px;
    border-right: 1px solid var(--password-border);
    background: rgba(255, 253, 249, 0.78);
}

body.patient-ui.patient-password-page .password-sidebar__intro {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 10px 28px;
}

body.patient-ui.patient-password-page .password-sidebar__icon,
body.patient-ui.patient-password-page .password-form-card__icon,
body.patient-ui.patient-password-page .password-security-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid rgba(185, 128, 49, 0.2);
    border-radius: 50%;
    color: var(--password-gold-dark);
    background: linear-gradient(145deg, #fffdf9, #f3e6d3);
}

body.patient-ui.patient-password-page .password-sidebar__icon {
    width: 52px;
    height: 52px;
}

body.patient-ui.patient-password-page .password-sidebar__icon svg,
body.patient-ui.patient-password-page .password-form-card__icon svg,
body.patient-ui.patient-password-page .password-security-card__icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.patient-ui.patient-password-page .password-sidebar__intro > span:last-child {
    display: grid;
    gap: 3px;
}

body.patient-ui.patient-password-page .password-sidebar__intro strong {
    color: var(--password-gold-dark);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.patient-ui.patient-password-page .password-sidebar__intro small {
    color: var(--password-muted);
    font-size: 12px;
}

body.patient-ui.patient-password-page .password-sidebar__nav {
    display: grid;
    gap: 5px;
}

body.patient-ui.patient-password-page .password-sidebar__nav a {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    color: #5f5850;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

body.patient-ui.patient-password-page .password-sidebar__nav a:hover,
body.patient-ui.patient-password-page .password-sidebar__nav a.is-active {
    color: var(--password-gold-dark);
    background: linear-gradient(90deg, rgba(232, 213, 186, 0.52), rgba(249, 245, 238, 0.72));
    transform: translateX(2px);
}

body.patient-ui.patient-password-page .password-sidebar__nav a span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    color: #a7793c;
}

body.patient-ui.patient-password-page .password-sidebar__nav a span svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.patient-ui.patient-password-page .password-sidebar__bottom {
    margin-top: auto;
    padding: 24px 10px 0;
    border-top: 1px solid var(--password-border);
}

body.patient-ui.patient-password-page .password-sidebar__bottom a {
    display: block;
    padding: 8px 7px;
    color: var(--password-muted);
    font-size: 13px;
    text-decoration: none;
}

body.patient-ui.patient-password-page .patient-password__main {
    min-width: 0;
    padding: 34px clamp(28px, 3.6vw, 56px) 30px;
}

body.patient-ui.patient-password-page .patient-password__hero {
    padding: 28px 30px;
    border: 1px solid var(--password-border);
    border-radius: 20px;
    background:
        radial-gradient(circle at 90% 15%, rgba(215, 183, 137, 0.22), transparent 14rem),
        linear-gradient(135deg, rgba(255, 253, 249, 0.92), rgba(244, 234, 220, 0.72));
}

body.patient-ui.patient-password-page .patient-password__eyebrow {
    margin: 0 0 8px;
    color: var(--password-gold-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

body.patient-ui.patient-password-page .patient-password__hero h1 {
    margin: 0 0 8px;
    color: var(--password-ink);
    font-family: Georgia, serif;
    font-size: clamp(34px, 3.1vw, 48px);
    font-weight: 500;
    line-height: 1.1;
}

body.patient-ui.patient-password-page .patient-password__hero p:last-child {
    max-width: 720px;
    margin: 0;
    color: var(--password-muted);
    font-size: 14px;
    line-height: 1.65;
}

body.patient-ui.patient-password-page .patient-password__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(285px, 0.78fr);
    gap: 16px;
    margin-top: 18px;
}

body.patient-ui.patient-password-page .password-form-card,
body.patient-ui.patient-password-page .password-security-card {
    border: 1px solid var(--password-border);
    border-radius: 20px;
    background: rgba(255, 253, 249, 0.93);
    box-shadow: 0 14px 36px rgba(75, 58, 38, 0.045);
}

body.patient-ui.patient-password-page .password-form-card {
    padding: 30px;
}

body.patient-ui.patient-password-page .password-form-card__heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 25px;
}

body.patient-ui.patient-password-page .password-form-card__icon {
    width: 54px;
    height: 54px;
}

body.patient-ui.patient-password-page .password-form-card__heading h2,
body.patient-ui.patient-password-page .password-security-card h2 {
    margin: 0;
    color: var(--password-ink);
    font-family: Georgia, serif;
    font-size: 25px;
    font-weight: 500;
    line-height: 1.2;
}

body.patient-ui.patient-password-page .password-form-card__heading .patient-password__eyebrow {
    margin-bottom: 5px;
}

body.patient-ui.patient-password-page .password-alert {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 20px;
    padding: 13px 15px;
    border: 1px solid;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
}

body.patient-ui.patient-password-page .password-alert span {
    display: inline-flex;
    flex: 0 0 auto;
}

body.patient-ui.patient-password-page .password-alert svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.patient-ui.patient-password-page .password-alert--success {
    color: #526a50;
    border-color: rgba(86, 118, 81, 0.2);
    background: rgba(231, 239, 227, 0.72);
}

body.patient-ui.patient-password-page .password-alert--error {
    color: #8a5149;
    border-color: rgba(151, 75, 67, 0.2);
    background: rgba(247, 231, 226, 0.75);
}

body.patient-ui.patient-password-page .password-form {
    display: grid;
    gap: 19px;
}

body.patient-ui.patient-password-page .password-field {
    display: grid;
    gap: 8px;
}

body.patient-ui.patient-password-page .password-field label {
    color: #514a42;
    font-size: 13px;
    font-weight: 650;
}

body.patient-ui.patient-password-page .password-field input {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid rgba(157, 127, 89, 0.23);
    border-radius: 12px;
    outline: none;
    color: #38332d;
    background: #fffdfa;
    box-shadow: 0 6px 18px rgba(77, 57, 34, 0.025);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.patient-ui.patient-password-page .password-field input:focus {
    border-color: rgba(181, 128, 60, 0.7);
    box-shadow: 0 0 0 4px rgba(198, 158, 103, 0.12);
}

body.patient-ui.patient-password-page .password-form__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 5px;
    padding-top: 22px;
    border-top: 1px solid var(--password-border);
}

body.patient-ui.patient-password-page .password-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 23px;
    border: 1px solid var(--password-gold);
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, #c99c58, #ad7934);
    box-shadow: 0 9px 20px rgba(164, 112, 45, 0.17);
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.patient-ui.patient-password-page .password-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 13px 26px rgba(164, 112, 45, 0.23);
}

body.patient-ui.patient-password-page .password-security-card {
    align-self: start;
    padding: 30px 28px;
    background:
        radial-gradient(circle at 100% 0, rgba(213, 180, 132, 0.2), transparent 15rem),
        rgba(251, 247, 240, 0.95);
}

body.patient-ui.patient-password-page .password-security-card__icon {
    width: 62px;
    height: 62px;
    margin-bottom: 25px;
}

body.patient-ui.patient-password-page .password-security-card__icon svg {
    width: 28px;
    height: 28px;
}

body.patient-ui.patient-password-page .password-security-card > p:not(.patient-password__eyebrow) {
    margin: 12px 0 0;
    color: var(--password-muted);
    font-size: 13px;
    line-height: 1.7;
}

body.patient-ui.patient-password-page .password-security-card__tips {
    display: grid;
    gap: 12px;
    margin: 24px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--password-border);
    list-style: none;
}

body.patient-ui.patient-password-page .password-security-card__tips li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #5f574e;
    font-size: 12px;
    line-height: 1.5;
}

body.patient-ui.patient-password-page .password-security-card__tips li span {
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--password-gold);
    box-shadow: 0 0 0 4px rgba(185, 132, 63, 0.1);
}

body.patient-ui.patient-password-page .patient-password__legal {
    margin: 20px 0 0;
    color: #918980;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 1200px) {
    body.patient-ui.patient-password-page .patient-password__layout {
        grid-template-columns: 230px minmax(0, 1fr);
    }

    body.patient-ui.patient-password-page .patient-password__main {
        padding-inline: 30px;
    }
}

@media (max-width: 991px) {
    body.patient-ui.patient-password-page .site-header .header-row {
        gap: 14px;
    }

    body.patient-ui.patient-password-page .site-header .nav {
        justify-content: flex-end;
        gap: 12px 16px;
    }

    body.patient-ui.patient-password-page .site-header .nav a {
        font-size: 13px;
    }

    body.patient-ui.patient-password-page .patient-password__layout {
        display: block;
    }

    body.patient-ui.patient-password-page .password-sidebar {
        display: block;
        padding: 18px 24px;
        border-right: 0;
        border-bottom: 1px solid var(--password-border);
    }

    body.patient-ui.patient-password-page .password-sidebar__intro {
        padding: 0 0 14px;
    }

    body.patient-ui.patient-password-page .password-sidebar__nav {
        display: flex;
        gap: 7px;
        padding-bottom: 5px;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    body.patient-ui.patient-password-page .password-sidebar__nav a {
        flex: 0 0 auto;
        min-height: 42px;
        padding: 0 14px;
    }

    body.patient-ui.patient-password-page .password-sidebar__nav a:hover,
    body.patient-ui.patient-password-page .password-sidebar__nav a.is-active {
        transform: none;
    }

    body.patient-ui.patient-password-page .password-sidebar__bottom {
        display: flex;
        justify-content: flex-end;
        margin-top: 10px;
        padding-top: 10px;
    }

    body.patient-ui.patient-password-page .patient-password__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    body.patient-ui.patient-password-page .site-header {
        position: relative;
    }

    body.patient-ui.patient-password-page .site-header .header-row {
        align-items: center;
        padding: 12px 0 14px;
    }

    body.patient-ui.patient-password-page .site-header .nav {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
        gap: 8px 12px;
    }

    body.patient-ui.patient-password-page .site-header .nav a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 34px;
        text-align: center;
    }

    body.patient-ui.patient-password-page .site-header .nav a.btn.btn-small {
        min-height: 40px;
        padding: 0 13px;
    }

    body.patient-ui.patient-password-page .patient-password__main {
        padding: 30px 18px 34px;
    }
}

@media (max-width: 480px) {
    body.patient-ui.patient-password-page .site-header .container {
        width: calc(100% - 24px);
    }

    body.patient-ui.patient-password-page .site-header .logo-mark {
        width: 38px;
        height: 38px;
    }

    body.patient-ui.patient-password-page .site-header .logo-text {
        font-size: 12px;
    }

    body.patient-ui.patient-password-page .site-header .logo-text::after {
        font-size: 7px;
    }

    body.patient-ui.patient-password-page .site-header .nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px 10px;
    }

    body.patient-ui.patient-password-page .site-header .nav a {
        min-height: 32px;
        font-size: 12px;
    }

    body.patient-ui.patient-password-page .site-header .nav a.btn.btn-small {
        grid-column: 1 / -1;
        min-height: 42px;
    }

    body.patient-ui.patient-password-page .password-sidebar {
        padding: 15px 12px;
    }

    body.patient-ui.patient-password-page .password-sidebar__intro {
        padding-left: 6px;
    }

    body.patient-ui.patient-password-page .password-sidebar__nav a {
        min-height: 40px;
        padding: 0 12px;
        font-size: 12px;
    }

    body.patient-ui.patient-password-page .password-sidebar__nav a span {
        display: none;
    }

    body.patient-ui.patient-password-page .patient-password__main {
        padding: 24px 10px 30px;
    }

    body.patient-ui.patient-password-page .patient-password__hero,
    body.patient-ui.patient-password-page .password-form-card,
    body.patient-ui.patient-password-page .password-security-card {
        padding: 20px 16px;
        border-radius: 17px;
    }

    body.patient-ui.patient-password-page .patient-password__hero h1 {
        font-size: 34px;
    }

    body.patient-ui.patient-password-page .password-form-card__heading {
        align-items: flex-start;
    }

    body.patient-ui.patient-password-page .password-form__actions,
    body.patient-ui.patient-password-page .password-button {
        width: 100%;
    }
}

/* --- REZERWACJA WIZYTY PREMIUM --- */
body.patient-ui.patient-booking-page {
    --booking-ink: #37322c;
    --booking-muted: #766e65;
    --booking-gold: #b9843f;
    --booking-gold-dark: #94672f;
    --booking-border: rgba(157, 127, 89, 0.16);
    color: var(--booking-ink);
    background: #f7f3ec;
    overflow-x: hidden;
}

body.patient-ui.patient-booking-page .site-footer {
    display: none;
}

body.patient-ui.patient-booking-page .site-header {
    position: sticky;
    background: rgba(255, 253, 249, 0.95);
    border-bottom-color: rgba(185, 139, 79, 0.14);
    box-shadow: 0 10px 35px rgba(54, 40, 24, 0.04);
    backdrop-filter: blur(18px);
}

body.patient-ui.patient-booking-page .site-header .header-row {
    min-height: 82px;
    gap: 30px;
}

body.patient-ui.patient-booking-page .site-header .logo {
    gap: 13px;
    flex: 0 0 auto;
}

body.patient-ui.patient-booking-page .site-header .logo-mark {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(185, 128, 49, 0.56);
    color: #a87532;
    background: rgba(255, 253, 249, 0.76);
    font-family: Georgia, serif;
    font-weight: 500;
    box-shadow: 0 8px 22px rgba(147, 103, 47, 0.09);
}

body.patient-ui.patient-booking-page .site-header .logo-text {
    display: grid;
    gap: 3px;
    color: #28251f;
    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.patient-ui.patient-booking-page .site-header .logo-text::after {
    content: "Psycholog";
    color: #766c60;
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

body.patient-ui.patient-booking-page .site-header .nav a {
    position: relative;
    color: #4f473e;
    font-size: 12px;
    font-weight: 500;
}

body.patient-ui.patient-booking-page .site-header .nav a:not(.btn)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -10px;
    left: 0;
    height: 1px;
    background: #b9823c;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.24s ease;
}

body.patient-ui.patient-booking-page .site-header .nav a:not(.btn):hover::after {
    transform: scaleX(1);
    transform-origin: left center;
}

body.patient-ui.patient-booking-page .site-header .nav a.btn.btn-small {
    color: #fff !important;
    background: linear-gradient(135deg, #c7a36a, #ad8246) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 10px 24px rgba(147, 103, 47, 0.18) !important;
}

body.patient-ui.patient-booking-page .patient-booking {
    min-height: calc(100vh - 82px);
    padding: 34px 24px 26px;
    background:
        radial-gradient(circle at 86% 7%, rgba(219, 193, 155, 0.19), transparent 27rem),
        linear-gradient(135deg, #fbf8f2, #f5eee5);
}

body.patient-ui.patient-booking-page .patient-booking__container {
    width: min(1320px, 100%);
    margin: 0 auto;
}

body.patient-ui.patient-booking-page .patient-booking__hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 28px 30px;
    border: 1px solid var(--booking-border);
    border-radius: 20px;
    background:
        radial-gradient(circle at 91% 15%, rgba(215, 183, 137, 0.22), transparent 14rem),
        linear-gradient(135deg, rgba(255, 253, 249, 0.94), rgba(244, 234, 220, 0.76));
}

body.patient-ui.patient-booking-page .patient-booking__eyebrow {
    margin: 0 0 8px;
    color: var(--booking-gold-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

body.patient-ui.patient-booking-page .patient-booking__hero h1 {
    margin: 0 0 8px;
    color: var(--booking-ink);
    font-family: Georgia, serif;
    font-size: clamp(36px, 3.3vw, 52px);
    font-weight: 500;
    line-height: 1.08;
}

body.patient-ui.patient-booking-page .patient-booking__hero p:last-child {
    margin: 0;
    color: var(--booking-muted);
    font-size: 14px;
    line-height: 1.65;
}

body.patient-ui.patient-booking-page .patient-booking__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid rgba(166, 116, 50, 0.38);
    border-radius: 11px;
    color: var(--booking-gold-dark);
    background: rgba(255, 253, 249, 0.72);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

body.patient-ui.patient-booking-page .patient-booking__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.78fr) minmax(300px, 0.72fr);
    align-items: start;
    gap: 18px;
    margin-top: 18px;
}

body.patient-ui.patient-booking-page .booking-premium-card,
body.patient-ui.patient-booking-page .booking-guide-card {
    border: 1px solid var(--booking-border);
    border-radius: 20px;
    background: rgba(255, 253, 249, 0.94);
    box-shadow: 0 14px 36px rgba(75, 58, 38, 0.045);
}

body.patient-ui.patient-booking-page .booking-premium-card {
    padding: 30px;
}

body.patient-ui.patient-booking-page .booking-auth-required {
    display: flex;
    min-height: 430px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

body.patient-ui.patient-booking-page .booking-auth-required__icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    margin-bottom: 1.35rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(184, 139, 74, 0.3);
    border-radius: 50%;
    color: #b88b4a;
    background: rgba(255, 250, 241, 0.9);
}

body.patient-ui.patient-booking-page .booking-auth-required__icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.patient-ui.patient-booking-page .booking-auth-required h2 {
    max-width: 580px;
    margin: 0 0 1rem;
}

body.patient-ui.patient-booking-page .booking-auth-required > p:not(.patient-booking__eyebrow) {
    max-width: 620px;
    margin: 0 0 0.65rem;
}

body.patient-ui.patient-booking-page .booking-auth-required__support {
    color: #746b60;
}

body.patient-ui.patient-booking-page .booking-auth-required__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

body.patient-ui.patient-booking-page .booking-auth-required__actions .booking-primary-button,
body.patient-ui.patient-booking-page .booking-auth-required__actions .patient-booking__back {
    min-height: 52px;
    justify-content: center;
    text-decoration: none;
}

body.patient-ui.patient-booking-page .booking-form--premium {
    display: grid;
    gap: 0;
}

body.patient-ui.patient-booking-page .booking-step--premium {
    padding: 28px 0;
    border-bottom: 1px solid var(--booking-border);
}

body.patient-ui.patient-booking-page .booking-step--premium:first-child {
    padding-top: 0;
}

body.patient-ui.patient-booking-page .booking-step__heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 21px;
}

body.patient-ui.patient-booking-page .booking-step__heading > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(185, 128, 49, 0.22);
    border-radius: 50%;
    color: var(--booking-gold-dark);
    background: linear-gradient(145deg, #fffdf9, #f3e6d3);
    font-family: Georgia, serif;
    font-size: 15px;
}

body.patient-ui.patient-booking-page .booking-step__heading .patient-booking__eyebrow {
    margin-bottom: 4px;
}

body.patient-ui.patient-booking-page .booking-step__heading h2 {
    margin: 0;
    color: var(--booking-ink);
    font-family: Georgia, serif;
    font-size: 25px;
    font-weight: 500;
}

body.patient-ui.patient-booking-page .booking-options--premium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

body.patient-ui.patient-booking-page .booking-options--premium.booking-options--single {
    grid-template-columns: minmax(0, 1fr);
}

body.patient-ui.patient-booking-page .booking-option {
    display: block;
    min-width: 0;
    cursor: pointer;
}

body.patient-ui.patient-booking-page .booking-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

body.patient-ui.patient-booking-page .booking-option > span {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 150px;
    padding: 18px;
    border: 1px solid rgba(157, 127, 89, 0.18);
    border-radius: 16px;
    color: #4a443d;
    background: #fffdfa;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body.patient-ui.patient-booking-page .booking-option:hover > span {
    border-color: rgba(185, 128, 49, 0.36);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(84, 61, 34, 0.07);
}

body.patient-ui.patient-booking-page .booking-option input:focus-visible + span {
    outline: 3px solid rgba(185, 132, 63, 0.16);
    outline-offset: 2px;
}

body.patient-ui.patient-booking-page .booking-option input:checked + span {
    border-color: rgba(185, 128, 49, 0.58);
    background: linear-gradient(145deg, #fffefb, #f5ead9);
    box-shadow: 0 12px 28px rgba(156, 109, 49, 0.11);
}

body.patient-ui.patient-booking-page .booking-option input:checked + span::after {
    content: "✓";
    position: absolute;
    top: 13px;
    right: 14px;
    color: var(--booking-gold-dark);
    font-weight: 700;
}

body.patient-ui.patient-booking-page .booking-option__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 15px;
    border-radius: 50%;
    color: var(--booking-gold-dark);
    background: rgba(234, 215, 187, 0.45);
}

body.patient-ui.patient-booking-page .booking-option__icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.patient-ui.patient-booking-page .booking-option strong {
    margin: 0 0 7px;
    font-size: 14px;
    line-height: 1.35;
}

body.patient-ui.patient-booking-page .booking-option small {
    margin-top: auto;
    color: var(--booking-muted);
    font-size: 12px;
}

body.patient-ui.patient-booking-page .booking-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

body.patient-ui.patient-booking-page .booking-field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

body.patient-ui.patient-booking-page .booking-field--full {
    margin-top: 18px;
}

body.patient-ui.patient-booking-page .booking-field label {
    color: #514a42;
    font-size: 13px;
    font-weight: 650;
}

body.patient-ui.patient-booking-page .booking-field input,
body.patient-ui.patient-booking-page .booking-field select,
body.patient-ui.patient-booking-page .booking-field textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(157, 127, 89, 0.23);
    border-radius: 12px;
    outline: none;
    color: #38332d;
    background: #fffdfa;
    box-shadow: 0 6px 18px rgba(77, 57, 34, 0.025);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.patient-ui.patient-booking-page .booking-field input,
body.patient-ui.patient-booking-page .booking-field select {
    min-height: 54px;
    padding: 0 16px;
}

body.patient-ui.patient-booking-page .booking-field textarea {
    min-height: 118px;
    padding: 15px 16px;
    resize: vertical;
}

body.patient-ui.patient-booking-page .booking-field input:focus,
body.patient-ui.patient-booking-page .booking-field select:focus,
body.patient-ui.patient-booking-page .booking-field textarea:focus {
    border-color: rgba(181, 128, 60, 0.7);
    box-shadow: 0 0 0 4px rgba(198, 158, 103, 0.12);
}

body.patient-ui.patient-booking-page .booking-field select:disabled {
    opacity: 1;
    color: #8d857a;
    background: #f4efe7;
    cursor: not-allowed;
}

body.patient-ui.patient-booking-page .booking-slot-info {
    display: none;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 12px;
    line-height: 1.55;
}

body.patient-ui.patient-booking-page .booking-slot-info:not(:empty) {
    display: block;
}

body.patient-ui.patient-booking-page .booking-slot-info--loading {
    color: #786a57;
    border-color: rgba(171, 133, 78, 0.16);
    background: rgba(244, 235, 220, 0.7);
}

body.patient-ui.patient-booking-page .booking-slot-info--success {
    color: #526a50;
    border-color: rgba(86, 118, 81, 0.18);
    background: rgba(231, 239, 227, 0.72);
}

body.patient-ui.patient-booking-page .booking-slot-info--empty,
body.patient-ui.patient-booking-page .booking-slot-info--error {
    color: #8a5149;
    border-color: rgba(151, 75, 67, 0.18);
    background: rgba(247, 231, 226, 0.75);
}

body.patient-ui.patient-booking-page .booking-consents--premium {
    display: grid;
    gap: 11px;
}

body.patient-ui.patient-booking-page .consent-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 15px;
    border: 1px solid rgba(157, 127, 89, 0.14);
    border-radius: 12px;
    background: rgba(249, 245, 238, 0.68);
    cursor: pointer;
}

body.patient-ui.patient-booking-page .consent-line input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--booking-gold);
}

body.patient-ui.patient-booking-page .consent-line > span {
    color: var(--booking-muted);
    font-size: 12px;
    line-height: 1.55;
}

body.patient-ui.patient-booking-page .consent-line strong {
    display: block;
    margin-bottom: 2px;
    color: #4b443d;
    font-size: 12px;
}

body.patient-ui.patient-booking-page .booking-submit--premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 26px;
}

body.patient-ui.patient-booking-page .booking-submit--premium p {
    max-width: 430px;
    margin: 0;
    color: var(--booking-muted);
    font-size: 12px;
    line-height: 1.55;
}

body.patient-ui.patient-booking-page .booking-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 25px;
    border: 1px solid var(--booking-gold);
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, #c99c58, #ad7934);
    box-shadow: 0 9px 20px rgba(164, 112, 45, 0.17);
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.patient-ui.patient-booking-page .booking-primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 13px 26px rgba(164, 112, 45, 0.23);
}

body.patient-ui.patient-booking-page .booking-guide-card {
    position: sticky;
    top: 104px;
    padding: 30px 28px;
    background:
        radial-gradient(circle at 100% 0, rgba(213, 180, 132, 0.2), transparent 15rem),
        rgba(251, 247, 240, 0.96);
}

body.patient-ui.patient-booking-page .booking-guide-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 25px;
    border: 1px solid rgba(185, 128, 49, 0.2);
    border-radius: 50%;
    color: var(--booking-gold-dark);
    background: linear-gradient(145deg, #fffdf9, #f3e6d3);
}

body.patient-ui.patient-booking-page .booking-guide-card__icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.patient-ui.patient-booking-page .booking-guide-card h2 {
    margin: 0;
    color: var(--booking-ink);
    font-family: Georgia, serif;
    font-size: 25px;
    font-weight: 500;
    line-height: 1.2;
}

body.patient-ui.patient-booking-page .booking-guide-card > p:not(.patient-booking__eyebrow) {
    margin: 12px 0 0;
    color: var(--booking-muted);
    font-size: 13px;
    line-height: 1.7;
}

body.patient-ui.patient-booking-page .booking-guide-card__steps {
    display: grid;
    gap: 17px;
    margin: 25px 0 0;
    padding: 23px 0 0;
    border-top: 1px solid var(--booking-border);
    list-style: none;
}

body.patient-ui.patient-booking-page .booking-guide-card__steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

body.patient-ui.patient-booking-page .booking-guide-card__steps li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--booking-gold-dark);
    background: rgba(231, 211, 181, 0.55);
    font-family: Georgia, serif;
    font-size: 11px;
}

body.patient-ui.patient-booking-page .booking-guide-card__steps strong,
body.patient-ui.patient-booking-page .booking-guide-card__steps small {
    display: block;
}

body.patient-ui.patient-booking-page .booking-guide-card__steps strong {
    color: #4a433b;
    font-size: 12px;
}

body.patient-ui.patient-booking-page .booking-guide-card__steps small {
    margin-top: 3px;
    color: var(--booking-muted);
    font-size: 11px;
    line-height: 1.45;
}

body.patient-ui.patient-booking-page .booking-guide-card__note {
    display: grid;
    gap: 5px;
    margin-top: 25px;
    padding: 17px;
    border: 1px solid rgba(157, 127, 89, 0.15);
    border-radius: 13px;
    background: rgba(255, 253, 249, 0.66);
}

body.patient-ui.patient-booking-page .booking-guide-card__note strong {
    color: #4c453d;
    font-size: 12px;
}

body.patient-ui.patient-booking-page .booking-guide-card__note span {
    color: var(--booking-muted);
    font-size: 11px;
    line-height: 1.5;
}

body.patient-ui.patient-booking-page .booking-guide-card__note a {
    margin-top: 4px;
    color: var(--booking-gold-dark);
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

body.patient-ui.patient-booking-page .patient-booking__legal {
    margin: 20px 0 0;
    color: #918980;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 1200px) {
    body.patient-ui.patient-booking-page .patient-booking__grid {
        grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.72fr);
    }

    body.patient-ui.patient-booking-page .booking-options--premium {
        grid-template-columns: minmax(0, 1fr);
    }

    body.patient-ui.patient-booking-page .booking-option > span {
        min-height: 112px;
    }
}

@media (max-width: 991px) {
    body.patient-ui.patient-booking-page .site-header .header-row {
        gap: 14px;
    }

    body.patient-ui.patient-booking-page .site-header .nav {
        justify-content: flex-end;
        gap: 12px 16px;
    }

    body.patient-ui.patient-booking-page .site-header .nav a {
        font-size: 13px;
    }

    body.patient-ui.patient-booking-page .patient-booking__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body.patient-ui.patient-booking-page .booking-options--premium {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.patient-ui.patient-booking-page .booking-guide-card {
        position: static;
    }
}

@media (max-width: 768px) {
    body.patient-ui.patient-booking-page .site-header {
        position: relative;
    }

    body.patient-ui.patient-booking-page .site-header .header-row {
        align-items: center;
        padding: 12px 0 14px;
    }

    body.patient-ui.patient-booking-page .site-header .nav {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
        gap: 8px 12px;
    }

    body.patient-ui.patient-booking-page .site-header .nav a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 34px;
        text-align: center;
    }

    body.patient-ui.patient-booking-page .site-header .nav a.btn.btn-small {
        min-height: 40px;
        padding: 0 13px;
    }

    body.patient-ui.patient-booking-page .patient-booking {
        padding: 26px 16px 24px;
    }

    body.patient-ui.patient-booking-page .patient-booking__hero {
        align-items: flex-start;
        flex-direction: column;
    }

    body.patient-ui.patient-booking-page .patient-booking__back {
        width: 100%;
    }

    body.patient-ui.patient-booking-page .booking-options--premium,
    body.patient-ui.patient-booking-page .booking-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    body.patient-ui.patient-booking-page .booking-option > span {
        min-height: 0;
    }

    body.patient-ui.patient-booking-page .booking-submit--premium {
        align-items: stretch;
        flex-direction: column;
    }

    body.patient-ui.patient-booking-page .booking-primary-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body.patient-ui.patient-booking-page .site-header .container {
        width: calc(100% - 24px);
    }

    body.patient-ui.patient-booking-page .site-header .logo-mark {
        width: 38px;
        height: 38px;
    }

    body.patient-ui.patient-booking-page .site-header .logo-text {
        font-size: 12px;
    }

    body.patient-ui.patient-booking-page .site-header .logo-text::after {
        font-size: 7px;
    }

    body.patient-ui.patient-booking-page .site-header .nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px 10px;
    }

    body.patient-ui.patient-booking-page .site-header .nav a {
        min-height: 32px;
        font-size: 12px;
    }

    body.patient-ui.patient-booking-page .site-header .nav a.btn.btn-small {
        grid-column: 1 / -1;
        min-height: 42px;
    }

    body.patient-ui.patient-booking-page .patient-booking {
        padding: 18px 10px 22px;
    }

    body.patient-ui.patient-booking-page .patient-booking__hero,
    body.patient-ui.patient-booking-page .booking-premium-card,
    body.patient-ui.patient-booking-page .booking-guide-card {
        padding: 20px 16px;
        border-radius: 17px;
    }

    body.patient-ui.patient-booking-page .patient-booking__hero h1 {
        font-size: 34px;
    }

    body.patient-ui.patient-booking-page .booking-step__heading {
        align-items: flex-start;
    }

    body.patient-ui.patient-booking-page .booking-step__heading > span {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }

    body.patient-ui.patient-booking-page .booking-step__heading h2 {
        font-size: 22px;
    }

    body.patient-ui.patient-booking-page .consent-line {
        padding: 13px 12px;
    }
}

/* --- POTWIERDZENIE REZERWACJI PREMIUM --- */
body.patient-ui.patient-booking-success-page {
    --success-ink: #37322c;
    --success-muted: #766e65;
    --success-gold: #b9843f;
    --success-gold-dark: #94672f;
    --success-border: rgba(157, 127, 89, 0.16);
    color: var(--success-ink);
    background: #f7f3ec;
    overflow-x: hidden;
}

body.patient-ui.patient-booking-success-page .site-footer {
    display: none;
}

body.patient-ui.patient-booking-success-page .site-header {
    position: sticky;
    background: rgba(255, 253, 249, 0.95);
    border-bottom-color: rgba(185, 139, 79, 0.14);
    box-shadow: 0 10px 35px rgba(54, 40, 24, 0.04);
    backdrop-filter: blur(18px);
}

body.patient-ui.patient-booking-success-page .site-header .header-row {
    min-height: 82px;
    gap: 30px;
}

body.patient-ui.patient-booking-success-page .site-header .logo {
    gap: 13px;
    flex: 0 0 auto;
}

body.patient-ui.patient-booking-success-page .site-header .logo-mark {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(185, 128, 49, 0.56);
    color: #a87532;
    background: rgba(255, 253, 249, 0.76);
    font-family: Georgia, serif;
    font-weight: 500;
    box-shadow: 0 8px 22px rgba(147, 103, 47, 0.09);
}

body.patient-ui.patient-booking-success-page .site-header .logo-text {
    display: grid;
    gap: 3px;
    color: #28251f;
    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.patient-ui.patient-booking-success-page .site-header .logo-text::after {
    content: "Psycholog";
    color: #766c60;
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

body.patient-ui.patient-booking-success-page .site-header .nav a {
    position: relative;
    color: #4f473e;
    font-size: 12px;
    font-weight: 500;
}

body.patient-ui.patient-booking-success-page .site-header .nav a:not(.btn)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -10px;
    left: 0;
    height: 1px;
    background: #b9823c;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.24s ease;
}

body.patient-ui.patient-booking-success-page .site-header .nav a:not(.btn):hover::after {
    transform: scaleX(1);
    transform-origin: left center;
}

body.patient-ui.patient-booking-success-page .site-header .nav a.btn.btn-small {
    color: #fff !important;
    background: linear-gradient(135deg, #c7a36a, #ad8246) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 10px 24px rgba(147, 103, 47, 0.18) !important;
}

body.patient-ui.patient-booking-success-page .booking-success {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 82px);
    padding: 42px 24px 28px;
    background:
        radial-gradient(circle at 82% 12%, rgba(219, 193, 155, 0.2), transparent 27rem),
        radial-gradient(circle at 15% 85%, rgba(232, 215, 190, 0.2), transparent 22rem),
        linear-gradient(135deg, #fbf8f2, #f5eee5);
}

body.patient-ui.patient-booking-success-page .booking-success__container {
    width: min(780px, 100%);
    margin: 0 auto;
}

body.patient-ui.patient-booking-success-page .booking-success__card {
    padding: clamp(34px, 5.5vw, 62px);
    border: 1px solid var(--success-border);
    border-radius: 26px;
    background:
        radial-gradient(circle at 100% 0, rgba(216, 184, 137, 0.18), transparent 18rem),
        rgba(255, 253, 249, 0.95);
    box-shadow: 0 25px 70px rgba(74, 54, 31, 0.09);
    text-align: center;
}

body.patient-ui.patient-booking-success-page .booking-success__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin-bottom: 24px;
    border: 1px solid rgba(185, 128, 49, 0.24);
    border-radius: 50%;
    color: var(--success-gold-dark);
    background: linear-gradient(145deg, #fffdf9, #f0dfc5);
    box-shadow: 0 12px 28px rgba(149, 104, 48, 0.1);
}

body.patient-ui.patient-booking-success-page .booking-success__icon svg,
body.patient-ui.patient-booking-success-page .booking-success__details-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.patient-ui.patient-booking-success-page .booking-success__icon svg {
    width: 36px;
    height: 36px;
}

body.patient-ui.patient-booking-success-page .booking-success__eyebrow {
    margin: 0 0 10px;
    color: var(--success-gold-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

body.patient-ui.patient-booking-success-page .booking-success__card h1 {
    margin: 0;
    color: var(--success-ink);
    font-family: Georgia, serif;
    font-size: clamp(36px, 5vw, 54px);
    font-weight: 500;
    line-height: 1.08;
}

body.patient-ui.patient-booking-success-page .booking-success__lead {
    max-width: 560px;
    margin: 17px auto 0;
    color: var(--success-muted);
    font-size: 15px;
    line-height: 1.7;
}

body.patient-ui.patient-booking-success-page .booking-success__details {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 590px;
    margin: 30px auto 0;
    padding: 20px;
    border: 1px solid rgba(157, 127, 89, 0.15);
    border-radius: 16px;
    background: rgba(248, 242, 233, 0.68);
    text-align: left;
}

body.patient-ui.patient-booking-success-page .booking-success__details-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: var(--success-gold-dark);
    background: rgba(231, 211, 181, 0.55);
}

body.patient-ui.patient-booking-success-page .booking-success__details-icon svg {
    width: 23px;
    height: 23px;
}

body.patient-ui.patient-booking-success-page .booking-success__details strong {
    color: #484139;
    font-size: 13px;
}

body.patient-ui.patient-booking-success-page .booking-success__details p {
    margin: 5px 0 0;
    color: var(--success-muted);
    font-size: 12px;
    line-height: 1.6;
}

body.patient-ui.patient-booking-success-page .booking-success__details a {
    display: inline-block;
    margin-top: 8px;
    color: var(--success-gold-dark);
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

body.patient-ui.patient-booking-success-page .booking-success__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

body.patient-ui.patient-booking-success-page .booking-success__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border: 1px solid var(--success-gold);
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, #c99c58, #ad7934);
    box-shadow: 0 9px 20px rgba(164, 112, 45, 0.17);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.patient-ui.patient-booking-success-page .booking-success__button:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 13px 26px rgba(164, 112, 45, 0.23);
}

body.patient-ui.patient-booking-success-page .booking-success__button--outline {
    color: var(--success-gold-dark);
    border-color: rgba(166, 116, 50, 0.38);
    background: rgba(255, 253, 249, 0.76);
    box-shadow: none;
}

body.patient-ui.patient-booking-success-page .booking-success__button--outline:hover {
    color: var(--success-gold-dark);
    background: #fffdf9;
    box-shadow: 0 9px 22px rgba(80, 57, 29, 0.08);
}

body.patient-ui.patient-booking-success-page .booking-success__legal {
    margin: 20px 0 0;
    color: #918980;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 991px) {
    body.patient-ui.patient-booking-success-page .site-header .header-row {
        gap: 14px;
    }

    body.patient-ui.patient-booking-success-page .site-header .nav {
        justify-content: flex-end;
        gap: 12px 16px;
    }

    body.patient-ui.patient-booking-success-page .site-header .nav a {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    body.patient-ui.patient-booking-success-page .site-header {
        position: relative;
    }

    body.patient-ui.patient-booking-success-page .site-header .header-row {
        align-items: center;
        padding: 12px 0 14px;
    }

    body.patient-ui.patient-booking-success-page .site-header .nav {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
        gap: 8px 12px;
    }

    body.patient-ui.patient-booking-success-page .site-header .nav a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 34px;
        text-align: center;
    }

    body.patient-ui.patient-booking-success-page .site-header .nav a.btn.btn-small {
        min-height: 40px;
        padding: 0 13px;
    }

    body.patient-ui.patient-booking-success-page .booking-success {
        min-height: auto;
        padding: 30px 16px 24px;
    }
}

@media (max-width: 480px) {
    body.patient-ui.patient-booking-success-page .site-header .container {
        width: calc(100% - 24px);
    }

    body.patient-ui.patient-booking-success-page .site-header .logo-mark {
        width: 38px;
        height: 38px;
    }

    body.patient-ui.patient-booking-success-page .site-header .logo-text {
        font-size: 12px;
    }

    body.patient-ui.patient-booking-success-page .site-header .logo-text::after {
        font-size: 7px;
    }

    body.patient-ui.patient-booking-success-page .site-header .nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px 10px;
    }

    body.patient-ui.patient-booking-success-page .site-header .nav a {
        min-height: 32px;
        font-size: 12px;
    }

    body.patient-ui.patient-booking-success-page .site-header .nav a.btn.btn-small {
        grid-column: 1 / -1;
        min-height: 42px;
    }

    body.patient-ui.patient-booking-success-page .booking-success {
        padding: 20px 10px;
    }

    body.patient-ui.patient-booking-success-page .booking-success__card {
        padding: 30px 18px;
        border-radius: 19px;
    }

    body.patient-ui.patient-booking-success-page .booking-success__icon {
        width: 66px;
        height: 66px;
    }

    body.patient-ui.patient-booking-success-page .booking-success__card h1 {
        font-size: 35px;
    }

    body.patient-ui.patient-booking-success-page .booking-success__details {
        flex-direction: column;
        padding: 17px;
    }

    body.patient-ui.patient-booking-success-page .booking-success__actions {
        display: grid;
    }

    body.patient-ui.patient-booking-success-page .booking-success__button {
        width: 100%;
        min-height: 52px;
    }
}

/* --- PRZELOZENIE WIZYTY PREMIUM --- */
body.patient-ui.patient-reschedule-page {
    --reschedule-ink: #37322c;
    --reschedule-muted: #766e65;
    --reschedule-gold: #b9843f;
    --reschedule-gold-dark: #94672f;
    --reschedule-border: rgba(157, 127, 89, 0.16);
    color: var(--reschedule-ink);
    background: #f7f3ec;
    overflow-x: hidden;
}

body.patient-ui.patient-reschedule-page .site-footer {
    display: none;
}

body.patient-ui.patient-reschedule-page .site-header {
    position: sticky;
    background: rgba(255, 253, 249, 0.95);
    border-bottom-color: rgba(185, 139, 79, 0.14);
    box-shadow: 0 10px 35px rgba(54, 40, 24, 0.04);
    backdrop-filter: blur(18px);
}

body.patient-ui.patient-reschedule-page .site-header .header-row {
    min-height: 82px;
    gap: 30px;
}

body.patient-ui.patient-reschedule-page .site-header .logo {
    gap: 13px;
    flex: 0 0 auto;
}

body.patient-ui.patient-reschedule-page .site-header .logo-mark {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(185, 128, 49, 0.56);
    color: #a87532;
    background: rgba(255, 253, 249, 0.76);
    font-family: Georgia, serif;
    font-weight: 500;
    box-shadow: 0 8px 22px rgba(147, 103, 47, 0.09);
}

body.patient-ui.patient-reschedule-page .site-header .logo-text {
    display: grid;
    gap: 3px;
    color: #28251f;
    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.patient-ui.patient-reschedule-page .site-header .logo-text::after {
    content: "Psycholog";
    color: #766c60;
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

body.patient-ui.patient-reschedule-page .site-header .nav a {
    position: relative;
    color: #4f473e;
    font-size: 12px;
    font-weight: 500;
}

body.patient-ui.patient-reschedule-page .site-header .nav a:not(.btn)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -10px;
    left: 0;
    height: 1px;
    background: #b9823c;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.24s ease;
}

body.patient-ui.patient-reschedule-page .site-header .nav a:not(.btn):hover::after {
    transform: scaleX(1);
    transform-origin: left center;
}

body.patient-ui.patient-reschedule-page .site-header .nav a.btn.btn-small {
    color: #fff !important;
    background: linear-gradient(135deg, #c7a36a, #ad8246) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 10px 24px rgba(147, 103, 47, 0.18) !important;
}

body.patient-ui.patient-reschedule-page .patient-reschedule {
    background:
        radial-gradient(circle at 84% 8%, rgba(219, 193, 155, 0.16), transparent 25rem),
        linear-gradient(135deg, #fbf8f2, #f5eee5);
}

body.patient-ui.patient-reschedule-page .patient-reschedule__layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    width: min(1480px, 100%);
    min-height: calc(100vh - 82px);
    margin: 0 auto;
}

body.patient-ui.patient-reschedule-page .reschedule-sidebar {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 34px 22px 28px;
    border-right: 1px solid var(--reschedule-border);
    background: rgba(255, 253, 249, 0.78);
}

body.patient-ui.patient-reschedule-page .reschedule-sidebar__intro {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 10px 28px;
}

body.patient-ui.patient-reschedule-page .reschedule-sidebar__icon,
body.patient-ui.patient-reschedule-page .reschedule-current__icon,
body.patient-ui.patient-reschedule-page .reschedule-guide-card__icon,
body.patient-ui.patient-reschedule-page .reschedule-error-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid rgba(185, 128, 49, 0.2);
    border-radius: 50%;
    color: var(--reschedule-gold-dark);
    background: linear-gradient(145deg, #fffdf9, #f3e6d3);
}

body.patient-ui.patient-reschedule-page .reschedule-sidebar__icon {
    width: 52px;
    height: 52px;
}

body.patient-ui.patient-reschedule-page .reschedule-sidebar__icon svg,
body.patient-ui.patient-reschedule-page .reschedule-current__icon svg,
body.patient-ui.patient-reschedule-page .reschedule-guide-card__icon svg,
body.patient-ui.patient-reschedule-page .reschedule-error-state__icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.patient-ui.patient-reschedule-page .reschedule-sidebar__intro > span:last-child {
    display: grid;
    gap: 3px;
}

body.patient-ui.patient-reschedule-page .reschedule-sidebar__intro strong {
    color: var(--reschedule-gold-dark);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.patient-ui.patient-reschedule-page .reschedule-sidebar__intro small {
    color: var(--reschedule-muted);
    font-size: 12px;
}

body.patient-ui.patient-reschedule-page .reschedule-sidebar__nav {
    display: grid;
    gap: 5px;
}

body.patient-ui.patient-reschedule-page .reschedule-sidebar__nav a {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    color: #5f5850;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

body.patient-ui.patient-reschedule-page .reschedule-sidebar__nav a:hover,
body.patient-ui.patient-reschedule-page .reschedule-sidebar__nav a.is-active {
    color: var(--reschedule-gold-dark);
    background: linear-gradient(90deg, rgba(232, 213, 186, 0.52), rgba(249, 245, 238, 0.72));
    transform: translateX(2px);
}

body.patient-ui.patient-reschedule-page .reschedule-sidebar__nav a span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    color: #a7793c;
}

body.patient-ui.patient-reschedule-page .reschedule-sidebar__nav a span svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.patient-ui.patient-reschedule-page .reschedule-sidebar__bottom {
    margin-top: auto;
    padding: 24px 10px 0;
    border-top: 1px solid var(--reschedule-border);
}

body.patient-ui.patient-reschedule-page .reschedule-sidebar__bottom a {
    display: block;
    padding: 8px 7px;
    color: var(--reschedule-muted);
    font-size: 13px;
    text-decoration: none;
}

body.patient-ui.patient-reschedule-page .patient-reschedule__main {
    min-width: 0;
    padding: 34px clamp(28px, 3.6vw, 56px) 30px;
}

body.patient-ui.patient-reschedule-page .patient-reschedule__hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 28px 30px;
    border: 1px solid var(--reschedule-border);
    border-radius: 20px;
    background:
        radial-gradient(circle at 90% 15%, rgba(215, 183, 137, 0.22), transparent 14rem),
        linear-gradient(135deg, rgba(255, 253, 249, 0.92), rgba(244, 234, 220, 0.72));
}

body.patient-ui.patient-reschedule-page .patient-reschedule__eyebrow {
    margin: 0 0 8px;
    color: var(--reschedule-gold-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

body.patient-ui.patient-reschedule-page .patient-reschedule__hero h1 {
    margin: 0 0 8px;
    color: var(--reschedule-ink);
    font-family: Georgia, serif;
    font-size: clamp(34px, 3.1vw, 48px);
    font-weight: 500;
    line-height: 1.1;
}

body.patient-ui.patient-reschedule-page .patient-reschedule__hero p:last-child {
    margin: 0;
    color: var(--reschedule-muted);
    font-size: 14px;
    line-height: 1.65;
}

body.patient-ui.patient-reschedule-page .patient-reschedule__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(285px, 0.76fr);
    align-items: start;
    gap: 16px;
    margin-top: 18px;
}

body.patient-ui.patient-reschedule-page .reschedule-form-card,
body.patient-ui.patient-reschedule-page .reschedule-guide-card,
body.patient-ui.patient-reschedule-page .reschedule-error-state {
    border: 1px solid var(--reschedule-border);
    border-radius: 20px;
    background: rgba(255, 253, 249, 0.94);
    box-shadow: 0 14px 36px rgba(75, 58, 38, 0.045);
}

body.patient-ui.patient-reschedule-page .reschedule-form-card {
    padding: 30px;
}

body.patient-ui.patient-reschedule-page .reschedule-current {
    padding-bottom: 28px;
    border-bottom: 1px solid var(--reschedule-border);
}

body.patient-ui.patient-reschedule-page .reschedule-current__heading,
body.patient-ui.patient-reschedule-page .reschedule-form-section__heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 21px;
}

body.patient-ui.patient-reschedule-page .reschedule-current__icon {
    width: 54px;
    height: 54px;
}

body.patient-ui.patient-reschedule-page .reschedule-current__heading .patient-reschedule__eyebrow,
body.patient-ui.patient-reschedule-page .reschedule-form-section__heading .patient-reschedule__eyebrow {
    margin-bottom: 4px;
}

body.patient-ui.patient-reschedule-page .reschedule-current__heading h2,
body.patient-ui.patient-reschedule-page .reschedule-form-section__heading h2,
body.patient-ui.patient-reschedule-page .reschedule-guide-card h2,
body.patient-ui.patient-reschedule-page .reschedule-error-state h2 {
    margin: 0;
    color: var(--reschedule-ink);
    font-family: Georgia, serif;
    font-size: 25px;
    font-weight: 500;
    line-height: 1.2;
}

body.patient-ui.patient-reschedule-page .reschedule-current__details {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

body.patient-ui.patient-reschedule-page .reschedule-current__details > div {
    min-width: 0;
    padding: 13px;
    border: 1px solid rgba(157, 127, 89, 0.13);
    border-radius: 12px;
    background: rgba(249, 245, 238, 0.68);
}

body.patient-ui.patient-reschedule-page .reschedule-current__details span,
body.patient-ui.patient-reschedule-page .reschedule-current__details strong {
    display: block;
}

body.patient-ui.patient-reschedule-page .reschedule-current__details span {
    margin-bottom: 5px;
    color: #948a7e;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.patient-ui.patient-reschedule-page .reschedule-current__details strong {
    overflow-wrap: anywhere;
    color: #484139;
    font-size: 12px;
    line-height: 1.45;
}

body.patient-ui.patient-reschedule-page .reschedule-status {
    color: var(--reschedule-gold-dark) !important;
}

body.patient-ui.patient-reschedule-page .reschedule-form-section {
    padding-top: 28px;
}

body.patient-ui.patient-reschedule-page .reschedule-form-section__heading > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(185, 128, 49, 0.22);
    border-radius: 50%;
    color: var(--reschedule-gold-dark);
    background: linear-gradient(145deg, #fffdf9, #f3e6d3);
    font-family: Georgia, serif;
    font-size: 15px;
}

body.patient-ui.patient-reschedule-page .reschedule-alert {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 20px;
    padding: 13px 15px;
    border: 1px solid;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
}

body.patient-ui.patient-reschedule-page .reschedule-alert span {
    display: inline-flex;
    flex: 0 0 auto;
}

body.patient-ui.patient-reschedule-page .reschedule-alert svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.patient-ui.patient-reschedule-page .reschedule-alert--success {
    color: #526a50;
    border-color: rgba(86, 118, 81, 0.2);
    background: rgba(231, 239, 227, 0.72);
}

body.patient-ui.patient-reschedule-page .reschedule-alert--error {
    color: #8a5149;
    border-color: rgba(151, 75, 67, 0.2);
    background: rgba(247, 231, 226, 0.75);
}

body.patient-ui.patient-reschedule-page .reschedule-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

body.patient-ui.patient-reschedule-page .reschedule-field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

body.patient-ui.patient-reschedule-page .reschedule-field label {
    color: #514a42;
    font-size: 13px;
    font-weight: 650;
}

body.patient-ui.patient-reschedule-page .reschedule-field input,
body.patient-ui.patient-reschedule-page .reschedule-field select {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid rgba(157, 127, 89, 0.23);
    border-radius: 12px;
    outline: none;
    color: #38332d;
    background: #fffdfa;
    box-shadow: 0 6px 18px rgba(77, 57, 34, 0.025);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.patient-ui.patient-reschedule-page .reschedule-field input:focus,
body.patient-ui.patient-reschedule-page .reschedule-field select:focus {
    border-color: rgba(181, 128, 60, 0.7);
    box-shadow: 0 0 0 4px rgba(198, 158, 103, 0.12);
}

body.patient-ui.patient-reschedule-page .reschedule-field select:disabled {
    opacity: 1;
    color: #8d857a;
    background: #f4efe7;
    cursor: not-allowed;
}

body.patient-ui.patient-reschedule-page .reschedule-slot-info {
    display: none;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 12px;
    line-height: 1.55;
}

body.patient-ui.patient-reschedule-page .reschedule-slot-info:not(:empty) {
    display: block;
}

body.patient-ui.patient-reschedule-page .reschedule-slot-info--loading {
    color: #786a57;
    border-color: rgba(171, 133, 78, 0.16);
    background: rgba(244, 235, 220, 0.7);
}

body.patient-ui.patient-reschedule-page .reschedule-slot-info--success {
    color: #526a50;
    border-color: rgba(86, 118, 81, 0.18);
    background: rgba(231, 239, 227, 0.72);
}

body.patient-ui.patient-reschedule-page .reschedule-slot-info--empty,
body.patient-ui.patient-reschedule-page .reschedule-slot-info--error {
    color: #8a5149;
    border-color: rgba(151, 75, 67, 0.18);
    background: rgba(247, 231, 226, 0.75);
}

body.patient-ui.patient-reschedule-page .reschedule-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 11px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--reschedule-border);
}

body.patient-ui.patient-reschedule-page .reschedule-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 23px;
    border: 1px solid var(--reschedule-gold);
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, #c99c58, #ad7934);
    box-shadow: 0 9px 20px rgba(164, 112, 45, 0.17);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.patient-ui.patient-reschedule-page .reschedule-button:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 13px 26px rgba(164, 112, 45, 0.23);
}

body.patient-ui.patient-reschedule-page .reschedule-button--outline {
    color: var(--reschedule-gold-dark);
    border-color: rgba(166, 116, 50, 0.38);
    background: rgba(255, 253, 249, 0.72);
    box-shadow: none;
}

body.patient-ui.patient-reschedule-page .reschedule-button--outline:hover {
    color: var(--reschedule-gold-dark);
    background: #fffdf9;
    box-shadow: 0 9px 22px rgba(80, 57, 29, 0.08);
}

body.patient-ui.patient-reschedule-page .reschedule-guide-card {
    position: sticky;
    top: 104px;
    padding: 30px 28px;
    background:
        radial-gradient(circle at 100% 0, rgba(213, 180, 132, 0.2), transparent 15rem),
        rgba(251, 247, 240, 0.95);
}

body.patient-ui.patient-reschedule-page .reschedule-guide-card__icon {
    width: 62px;
    height: 62px;
    margin-bottom: 25px;
}

body.patient-ui.patient-reschedule-page .reschedule-guide-card__icon svg {
    width: 28px;
    height: 28px;
}

body.patient-ui.patient-reschedule-page .reschedule-guide-card > p:not(.patient-reschedule__eyebrow) {
    margin: 12px 0 0;
    color: var(--reschedule-muted);
    font-size: 13px;
    line-height: 1.7;
}

body.patient-ui.patient-reschedule-page .reschedule-guide-card__steps {
    display: grid;
    gap: 17px;
    margin: 25px 0 0;
    padding: 23px 0 0;
    border-top: 1px solid var(--reschedule-border);
    list-style: none;
}

body.patient-ui.patient-reschedule-page .reschedule-guide-card__steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

body.patient-ui.patient-reschedule-page .reschedule-guide-card__steps li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--reschedule-gold-dark);
    background: rgba(231, 211, 181, 0.55);
    font-family: Georgia, serif;
    font-size: 11px;
}

body.patient-ui.patient-reschedule-page .reschedule-guide-card__steps strong,
body.patient-ui.patient-reschedule-page .reschedule-guide-card__steps small {
    display: block;
}

body.patient-ui.patient-reschedule-page .reschedule-guide-card__steps strong {
    color: #4a433b;
    font-size: 12px;
}

body.patient-ui.patient-reschedule-page .reschedule-guide-card__steps small {
    margin-top: 3px;
    color: var(--reschedule-muted);
    font-size: 11px;
    line-height: 1.45;
}

body.patient-ui.patient-reschedule-page .reschedule-guide-card__link {
    display: inline-block;
    margin-top: 24px;
    color: var(--reschedule-gold-dark);
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

body.patient-ui.patient-reschedule-page .reschedule-error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 760px;
    min-height: 350px;
    margin: 18px auto 0;
    padding: 48px 32px;
    justify-content: center;
    text-align: center;
}

body.patient-ui.patient-reschedule-page .reschedule-error-state__icon {
    width: 68px;
    height: 68px;
    margin-bottom: 22px;
}

body.patient-ui.patient-reschedule-page .reschedule-error-state__icon svg {
    width: 30px;
    height: 30px;
}

body.patient-ui.patient-reschedule-page .reschedule-error-state > p:not(.patient-reschedule__eyebrow) {
    max-width: 500px;
    margin: 13px 0 24px;
    color: var(--reschedule-muted);
    font-size: 13px;
    line-height: 1.7;
}

body.patient-ui.patient-reschedule-page .patient-reschedule__legal {
    margin: 20px 0 0;
    color: #918980;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 1200px) {
    body.patient-ui.patient-reschedule-page .patient-reschedule__layout {
        grid-template-columns: 230px minmax(0, 1fr);
    }

    body.patient-ui.patient-reschedule-page .patient-reschedule__main {
        padding-inline: 30px;
    }

    body.patient-ui.patient-reschedule-page .reschedule-current__details {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    body.patient-ui.patient-reschedule-page .site-header .header-row {
        gap: 14px;
    }

    body.patient-ui.patient-reschedule-page .site-header .nav {
        justify-content: flex-end;
        gap: 12px 16px;
    }

    body.patient-ui.patient-reschedule-page .site-header .nav a {
        font-size: 13px;
    }

    body.patient-ui.patient-reschedule-page .patient-reschedule__layout {
        display: block;
    }

    body.patient-ui.patient-reschedule-page .reschedule-sidebar {
        display: block;
        padding: 18px 24px;
        border-right: 0;
        border-bottom: 1px solid var(--reschedule-border);
    }

    body.patient-ui.patient-reschedule-page .reschedule-sidebar__intro {
        padding: 0 0 14px;
    }

    body.patient-ui.patient-reschedule-page .reschedule-sidebar__nav {
        display: flex;
        gap: 7px;
        padding-bottom: 5px;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    body.patient-ui.patient-reschedule-page .reschedule-sidebar__nav a {
        flex: 0 0 auto;
        min-height: 42px;
        padding: 0 14px;
    }

    body.patient-ui.patient-reschedule-page .reschedule-sidebar__nav a:hover,
    body.patient-ui.patient-reschedule-page .reschedule-sidebar__nav a.is-active {
        transform: none;
    }

    body.patient-ui.patient-reschedule-page .reschedule-sidebar__bottom {
        display: flex;
        justify-content: flex-end;
        margin-top: 10px;
        padding-top: 10px;
    }

    body.patient-ui.patient-reschedule-page .patient-reschedule__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body.patient-ui.patient-reschedule-page .reschedule-guide-card {
        position: static;
    }
}

@media (max-width: 768px) {
    body.patient-ui.patient-reschedule-page .site-header {
        position: relative;
    }

    body.patient-ui.patient-reschedule-page .site-header .header-row {
        align-items: center;
        padding: 12px 0 14px;
    }

    body.patient-ui.patient-reschedule-page .site-header .nav {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
        gap: 8px 12px;
    }

    body.patient-ui.patient-reschedule-page .site-header .nav a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 34px;
        text-align: center;
    }

    body.patient-ui.patient-reschedule-page .site-header .nav a.btn.btn-small {
        min-height: 40px;
        padding: 0 13px;
    }

    body.patient-ui.patient-reschedule-page .patient-reschedule__main {
        padding: 30px 18px 34px;
    }

    body.patient-ui.patient-reschedule-page .patient-reschedule__hero {
        align-items: flex-start;
        flex-direction: column;
    }

    body.patient-ui.patient-reschedule-page .patient-reschedule__hero .reschedule-button {
        width: 100%;
    }

    body.patient-ui.patient-reschedule-page .reschedule-current__details,
    body.patient-ui.patient-reschedule-page .reschedule-fields {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 480px) {
    body.patient-ui.patient-reschedule-page .site-header .container {
        width: calc(100% - 24px);
    }

    body.patient-ui.patient-reschedule-page .site-header .logo-mark {
        width: 38px;
        height: 38px;
    }

    body.patient-ui.patient-reschedule-page .site-header .logo-text {
        font-size: 12px;
    }

    body.patient-ui.patient-reschedule-page .site-header .logo-text::after {
        font-size: 7px;
    }

    body.patient-ui.patient-reschedule-page .site-header .nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px 10px;
    }

    body.patient-ui.patient-reschedule-page .site-header .nav a {
        min-height: 32px;
        font-size: 12px;
    }

    body.patient-ui.patient-reschedule-page .site-header .nav a.btn.btn-small {
        grid-column: 1 / -1;
        min-height: 42px;
    }

    body.patient-ui.patient-reschedule-page .reschedule-sidebar {
        padding: 15px 12px;
    }

    body.patient-ui.patient-reschedule-page .reschedule-sidebar__intro {
        padding-left: 6px;
    }

    body.patient-ui.patient-reschedule-page .reschedule-sidebar__nav a {
        min-height: 40px;
        padding: 0 12px;
        font-size: 12px;
    }

    body.patient-ui.patient-reschedule-page .reschedule-sidebar__nav a span {
        display: none;
    }

    body.patient-ui.patient-reschedule-page .patient-reschedule__main {
        padding: 24px 10px 30px;
    }

    body.patient-ui.patient-reschedule-page .patient-reschedule__hero,
    body.patient-ui.patient-reschedule-page .reschedule-form-card,
    body.patient-ui.patient-reschedule-page .reschedule-guide-card,
    body.patient-ui.patient-reschedule-page .reschedule-error-state {
        padding: 20px 16px;
        border-radius: 17px;
    }

    body.patient-ui.patient-reschedule-page .patient-reschedule__hero h1 {
        font-size: 34px;
    }

    body.patient-ui.patient-reschedule-page .reschedule-current__heading,
    body.patient-ui.patient-reschedule-page .reschedule-form-section__heading {
        align-items: flex-start;
    }

    body.patient-ui.patient-reschedule-page .reschedule-form-section__heading > span {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }

    body.patient-ui.patient-reschedule-page .reschedule-form__actions {
        display: grid;
    }

    body.patient-ui.patient-reschedule-page .reschedule-button {
        width: 100%;
        min-height: 52px;
    }
}

/* --- DOLADOWANIE PORTFELA PREMIUM --- */
body.patient-ui.patient-topup-page {
    --topup-ink: #37322c;
    --topup-muted: #766e65;
    --topup-gold: #b9843f;
    --topup-gold-dark: #94672f;
    --topup-border: rgba(157, 127, 89, 0.16);
    color: var(--topup-ink);
    background: #f7f3ec;
    overflow-x: hidden;
}

body.patient-ui.patient-topup-page .site-footer {
    display: none;
}

body.patient-ui.patient-topup-page .site-header {
    position: sticky;
    background: rgba(255, 253, 249, 0.95);
    border-bottom-color: rgba(185, 139, 79, 0.14);
    box-shadow: 0 10px 35px rgba(54, 40, 24, 0.04);
    backdrop-filter: blur(18px);
}

body.patient-ui.patient-topup-page .site-header .header-row {
    min-height: 82px;
    gap: 30px;
}

body.patient-ui.patient-topup-page .site-header .logo {
    gap: 13px;
    flex: 0 0 auto;
}

body.patient-ui.patient-topup-page .site-header .logo-mark {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(185, 128, 49, 0.56);
    color: #a87532;
    background: rgba(255, 253, 249, 0.76);
    font-family: Georgia, serif;
    font-weight: 500;
    box-shadow: 0 8px 22px rgba(147, 103, 47, 0.09);
}

body.patient-ui.patient-topup-page .site-header .logo-text {
    display: grid;
    gap: 3px;
    color: #28251f;
    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.patient-ui.patient-topup-page .site-header .logo-text::after {
    content: "Psycholog";
    color: #766c60;
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

body.patient-ui.patient-topup-page .site-header .nav a {
    position: relative;
    color: #4f473e;
    font-size: 12px;
    font-weight: 500;
}

body.patient-ui.patient-topup-page .site-header .nav a:not(.btn)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -10px;
    left: 0;
    height: 1px;
    background: #b9823c;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.24s ease;
}

body.patient-ui.patient-topup-page .site-header .nav a:not(.btn):hover::after {
    transform: scaleX(1);
    transform-origin: left center;
}

body.patient-ui.patient-topup-page .site-header .nav a.btn.btn-small {
    color: #fff !important;
    background: linear-gradient(135deg, #c7a36a, #ad8246) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 10px 24px rgba(147, 103, 47, 0.18) !important;
}

body.patient-ui.patient-topup-page .patient-topup {
    background:
        radial-gradient(circle at 84% 8%, rgba(219, 193, 155, 0.16), transparent 25rem),
        linear-gradient(135deg, #fbf8f2, #f5eee5);
}

body.patient-ui.patient-topup-page .patient-topup__layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    width: min(1480px, 100%);
    min-height: calc(100vh - 82px);
    margin: 0 auto;
}

body.patient-ui.patient-topup-page .topup-sidebar {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 34px 22px 28px;
    border-right: 1px solid var(--topup-border);
    background: rgba(255, 253, 249, 0.78);
}

body.patient-ui.patient-topup-page .topup-sidebar__intro {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 10px 28px;
}

body.patient-ui.patient-topup-page .topup-sidebar__icon,
body.patient-ui.patient-topup-page .topup-balance-card__icon,
body.patient-ui.patient-topup-page .topup-guide-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid rgba(185, 128, 49, 0.2);
    border-radius: 50%;
    color: var(--topup-gold-dark);
    background: linear-gradient(145deg, #fffdf9, #f3e6d3);
}

body.patient-ui.patient-topup-page .topup-sidebar__icon {
    width: 52px;
    height: 52px;
}

body.patient-ui.patient-topup-page .topup-sidebar__icon svg,
body.patient-ui.patient-topup-page .topup-balance-card__icon svg,
body.patient-ui.patient-topup-page .topup-guide-card__icon svg,
body.patient-ui.patient-topup-page .topup-payment-note svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.patient-ui.patient-topup-page .topup-sidebar__intro > span:last-child {
    display: grid;
    gap: 3px;
}

body.patient-ui.patient-topup-page .topup-sidebar__intro strong {
    color: var(--topup-gold-dark);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.patient-ui.patient-topup-page .topup-sidebar__intro small {
    color: var(--topup-muted);
    font-size: 12px;
}

body.patient-ui.patient-topup-page .topup-sidebar__nav {
    display: grid;
    gap: 5px;
}

body.patient-ui.patient-topup-page .topup-sidebar__nav a {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    color: #5f5850;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

body.patient-ui.patient-topup-page .topup-sidebar__nav a:hover,
body.patient-ui.patient-topup-page .topup-sidebar__nav a.is-active {
    color: var(--topup-gold-dark);
    background: linear-gradient(90deg, rgba(232, 213, 186, 0.52), rgba(249, 245, 238, 0.72));
    transform: translateX(2px);
}

body.patient-ui.patient-topup-page .topup-sidebar__nav a span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    color: #a7793c;
}

body.patient-ui.patient-topup-page .topup-sidebar__nav a span svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.patient-ui.patient-topup-page .topup-sidebar__bottom {
    margin-top: auto;
    padding: 24px 10px 0;
    border-top: 1px solid var(--topup-border);
}

body.patient-ui.patient-topup-page .topup-sidebar__bottom a {
    display: block;
    padding: 8px 7px;
    color: var(--topup-muted);
    font-size: 13px;
    text-decoration: none;
}

body.patient-ui.patient-topup-page .patient-topup__main {
    min-width: 0;
    padding: 34px clamp(28px, 3.6vw, 56px) 30px;
}

body.patient-ui.patient-topup-page .patient-topup__hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 28px 30px;
    border: 1px solid var(--topup-border);
    border-radius: 20px;
    background:
        radial-gradient(circle at 90% 15%, rgba(215, 183, 137, 0.22), transparent 14rem),
        linear-gradient(135deg, rgba(255, 253, 249, 0.92), rgba(244, 234, 220, 0.72));
}

body.patient-ui.patient-topup-page .patient-topup__eyebrow {
    margin: 0 0 8px;
    color: var(--topup-gold-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

body.patient-ui.patient-topup-page .patient-topup__hero h1 {
    margin: 0 0 8px;
    color: var(--topup-ink);
    font-family: Georgia, serif;
    font-size: clamp(34px, 3.1vw, 48px);
    font-weight: 500;
    line-height: 1.1;
}

body.patient-ui.patient-topup-page .patient-topup__hero p:last-child {
    margin: 0;
    color: var(--topup-muted);
    font-size: 14px;
    line-height: 1.65;
}

body.patient-ui.patient-topup-page .patient-topup__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(285px, 0.76fr);
    align-items: start;
    gap: 16px;
    margin-top: 18px;
}

body.patient-ui.patient-topup-page .topup-form-card,
body.patient-ui.patient-topup-page .topup-guide-card {
    border: 1px solid var(--topup-border);
    border-radius: 20px;
    background: rgba(255, 253, 249, 0.94);
    box-shadow: 0 14px 36px rgba(75, 58, 38, 0.045);
}

body.patient-ui.patient-topup-page .topup-form-card {
    padding: 30px;
}

body.patient-ui.patient-topup-page .topup-balance-card {
    display: flex;
    align-items: center;
    gap: 17px;
    margin-bottom: 28px;
    padding: 20px;
    border: 1px solid rgba(185, 128, 49, 0.17);
    border-radius: 16px;
    background:
        radial-gradient(circle at 100% 0, rgba(213, 180, 132, 0.18), transparent 13rem),
        linear-gradient(135deg, rgba(250, 244, 235, 0.88), rgba(255, 253, 249, 0.95));
}

body.patient-ui.patient-topup-page .topup-balance-card__icon {
    width: 56px;
    height: 56px;
}

body.patient-ui.patient-topup-page .topup-balance-card span,
body.patient-ui.patient-topup-page .topup-balance-card strong {
    display: block;
}

body.patient-ui.patient-topup-page .topup-balance-card div > span {
    margin-bottom: 3px;
    color: var(--topup-muted);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.patient-ui.patient-topup-page .topup-balance-card strong {
    color: var(--topup-ink);
    font-family: Georgia, serif;
    font-size: 31px;
    font-weight: 500;
}

body.patient-ui.patient-topup-page .topup-form-card__heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
}

body.patient-ui.patient-topup-page .topup-form-card__heading > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(185, 128, 49, 0.22);
    border-radius: 50%;
    color: var(--topup-gold-dark);
    background: linear-gradient(145deg, #fffdf9, #f3e6d3);
    font-family: Georgia, serif;
    font-size: 15px;
}

body.patient-ui.patient-topup-page .topup-form-card__heading .patient-topup__eyebrow {
    margin-bottom: 4px;
}

body.patient-ui.patient-topup-page .topup-form-card__heading h2,
body.patient-ui.patient-topup-page .topup-guide-card h2 {
    margin: 0;
    color: var(--topup-ink);
    font-family: Georgia, serif;
    font-size: 25px;
    font-weight: 500;
    line-height: 1.2;
}

body.patient-ui.patient-topup-page .topup-amounts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

body.patient-ui.patient-topup-page .topup-amount {
    display: block;
    min-width: 0;
    cursor: pointer;
}

body.patient-ui.patient-topup-page .topup-amount input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

body.patient-ui.patient-topup-page .topup-amount > span {
    position: relative;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    min-height: 92px;
    padding: 20px 12px;
    border: 1px solid rgba(157, 127, 89, 0.18);
    border-radius: 15px;
    color: #4a433b;
    background: #fffdfa;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body.patient-ui.patient-topup-page .topup-amount:hover > span {
    border-color: rgba(185, 128, 49, 0.36);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(84, 61, 34, 0.07);
}

body.patient-ui.patient-topup-page .topup-amount input:focus-visible + span {
    outline: 3px solid rgba(185, 132, 63, 0.16);
    outline-offset: 2px;
}

body.patient-ui.patient-topup-page .topup-amount input:checked + span {
    border-color: rgba(185, 128, 49, 0.58);
    color: var(--topup-gold-dark);
    background: linear-gradient(145deg, #fffefb, #f5ead9);
    box-shadow: 0 12px 28px rgba(156, 109, 49, 0.11);
}

body.patient-ui.patient-topup-page .topup-amount input:checked + span::after {
    content: "✓";
    position: absolute;
    top: 9px;
    right: 11px;
    font-size: 11px;
    font-weight: 700;
}

body.patient-ui.patient-topup-page .topup-amount strong {
    font-family: Georgia, serif;
    font-size: 29px;
    font-weight: 500;
}

body.patient-ui.patient-topup-page .topup-amount small {
    color: var(--topup-muted);
    font-size: 12px;
}

body.patient-ui.patient-topup-page .topup-payment-note {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-top: 22px;
    padding: 16px;
    border: 1px solid rgba(157, 127, 89, 0.14);
    border-radius: 13px;
    background: rgba(249, 245, 238, 0.68);
}

body.patient-ui.patient-topup-page .topup-payment-note > span {
    display: inline-flex;
    flex: 0 0 auto;
    color: var(--topup-gold-dark);
}

body.patient-ui.patient-topup-page .topup-payment-note strong {
    color: #4b443d;
    font-size: 12px;
}

body.patient-ui.patient-topup-page .topup-payment-note p {
    margin: 4px 0 0;
    color: var(--topup-muted);
    font-size: 11px;
    line-height: 1.55;
}

body.patient-ui.patient-topup-page .topup-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 11px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--topup-border);
}

body.patient-ui.patient-topup-page .topup-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 23px;
    border: 1px solid var(--topup-gold);
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, #c99c58, #ad7934);
    box-shadow: 0 9px 20px rgba(164, 112, 45, 0.17);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.patient-ui.patient-topup-page .topup-button:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 13px 26px rgba(164, 112, 45, 0.23);
}

body.patient-ui.patient-topup-page .topup-button:disabled,
body.patient-ui.patient-topup-page .topup-button[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.68;
    transform: none;
    box-shadow: 0 8px 20px rgba(164, 112, 45, 0.12);
}

body.patient-ui.patient-topup-page .topup-button:disabled:hover,
body.patient-ui.patient-topup-page .topup-button[aria-disabled="true"]:hover {
    color: #fff;
    transform: none;
    box-shadow: 0 8px 20px rgba(164, 112, 45, 0.12);
}

body.patient-ui.patient-topup-page .topup-button--outline {
    color: var(--topup-gold-dark);
    border-color: rgba(166, 116, 50, 0.38);
    background: rgba(255, 253, 249, 0.72);
    box-shadow: none;
}

body.patient-ui.patient-topup-page .topup-button--outline:hover {
    color: var(--topup-gold-dark);
    background: #fffdf9;
    box-shadow: 0 9px 22px rgba(80, 57, 29, 0.08);
}

body.patient-ui.patient-topup-page .topup-guide-card {
    position: sticky;
    top: 104px;
    padding: 30px 28px;
    background:
        radial-gradient(circle at 100% 0, rgba(213, 180, 132, 0.2), transparent 15rem),
        rgba(251, 247, 240, 0.95);
}

body.patient-ui.patient-topup-page .topup-guide-card__icon {
    width: 62px;
    height: 62px;
    margin-bottom: 25px;
}

body.patient-ui.patient-topup-page .topup-guide-card__icon svg {
    width: 28px;
    height: 28px;
}

body.patient-ui.patient-topup-page .topup-guide-card > p:not(.patient-topup__eyebrow) {
    margin: 12px 0 0;
    color: var(--topup-muted);
    font-size: 13px;
    line-height: 1.7;
}

body.patient-ui.patient-topup-page .topup-guide-card__steps {
    display: grid;
    gap: 17px;
    margin: 25px 0 0;
    padding: 23px 0 0;
    border-top: 1px solid var(--topup-border);
    list-style: none;
}

body.patient-ui.patient-topup-page .topup-guide-card__steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

body.patient-ui.patient-topup-page .topup-guide-card__steps li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--topup-gold-dark);
    background: rgba(231, 211, 181, 0.55);
    font-family: Georgia, serif;
    font-size: 11px;
}

body.patient-ui.patient-topup-page .topup-guide-card__steps strong,
body.patient-ui.patient-topup-page .topup-guide-card__steps small {
    display: block;
}

body.patient-ui.patient-topup-page .topup-guide-card__steps strong {
    color: #4a433b;
    font-size: 12px;
}

body.patient-ui.patient-topup-page .topup-guide-card__steps small {
    margin-top: 3px;
    color: var(--topup-muted);
    font-size: 11px;
    line-height: 1.45;
}

body.patient-ui.patient-topup-page .topup-guide-card__link {
    display: inline-block;
    margin-top: 24px;
    color: var(--topup-gold-dark);
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

body.patient-ui.patient-topup-page .patient-topup__legal {
    margin: 20px 0 0;
    color: #918980;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 1200px) {
    body.patient-ui.patient-topup-page .patient-topup__layout {
        grid-template-columns: 230px minmax(0, 1fr);
    }

    body.patient-ui.patient-topup-page .patient-topup__main {
        padding-inline: 30px;
    }

    body.patient-ui.patient-topup-page .topup-amounts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    body.patient-ui.patient-topup-page .site-header .header-row {
        gap: 14px;
    }

    body.patient-ui.patient-topup-page .site-header .nav {
        justify-content: flex-end;
        gap: 12px 16px;
    }

    body.patient-ui.patient-topup-page .site-header .nav a {
        font-size: 13px;
    }

    body.patient-ui.patient-topup-page .patient-topup__layout {
        display: block;
    }

    body.patient-ui.patient-topup-page .topup-sidebar {
        display: block;
        padding: 18px 24px;
        border-right: 0;
        border-bottom: 1px solid var(--topup-border);
    }

    body.patient-ui.patient-topup-page .topup-sidebar__intro {
        padding: 0 0 14px;
    }

    body.patient-ui.patient-topup-page .topup-sidebar__nav {
        display: flex;
        gap: 7px;
        padding-bottom: 5px;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    body.patient-ui.patient-topup-page .topup-sidebar__nav a {
        flex: 0 0 auto;
        min-height: 42px;
        padding: 0 14px;
    }

    body.patient-ui.patient-topup-page .topup-sidebar__nav a:hover,
    body.patient-ui.patient-topup-page .topup-sidebar__nav a.is-active {
        transform: none;
    }

    body.patient-ui.patient-topup-page .topup-sidebar__bottom {
        display: flex;
        justify-content: flex-end;
        margin-top: 10px;
        padding-top: 10px;
    }

    body.patient-ui.patient-topup-page .patient-topup__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body.patient-ui.patient-topup-page .topup-amounts {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    body.patient-ui.patient-topup-page .topup-guide-card {
        position: static;
    }
}

@media (max-width: 768px) {
    body.patient-ui.patient-topup-page .site-header {
        position: relative;
    }

    body.patient-ui.patient-topup-page .site-header .header-row {
        align-items: center;
        padding: 12px 0 14px;
    }

    body.patient-ui.patient-topup-page .site-header .nav {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
        gap: 8px 12px;
    }

    body.patient-ui.patient-topup-page .site-header .nav a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 34px;
        text-align: center;
    }

    body.patient-ui.patient-topup-page .site-header .nav a.btn.btn-small {
        min-height: 40px;
        padding: 0 13px;
    }

    body.patient-ui.patient-topup-page .patient-topup__main {
        padding: 30px 18px 34px;
    }

    body.patient-ui.patient-topup-page .patient-topup__hero {
        align-items: flex-start;
        flex-direction: column;
    }

    body.patient-ui.patient-topup-page .patient-topup__hero .topup-button {
        width: 100%;
    }

    body.patient-ui.patient-topup-page .topup-amounts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    body.patient-ui.patient-topup-page .site-header .container {
        width: calc(100% - 24px);
    }

    body.patient-ui.patient-topup-page .site-header .logo-mark {
        width: 38px;
        height: 38px;
    }

    body.patient-ui.patient-topup-page .site-header .logo-text {
        font-size: 12px;
    }

    body.patient-ui.patient-topup-page .site-header .logo-text::after {
        font-size: 7px;
    }

    body.patient-ui.patient-topup-page .site-header .nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px 10px;
    }

    body.patient-ui.patient-topup-page .site-header .nav a {
        min-height: 32px;
        font-size: 12px;
    }

    body.patient-ui.patient-topup-page .site-header .nav a.btn.btn-small {
        grid-column: 1 / -1;
        min-height: 42px;
    }

    body.patient-ui.patient-topup-page .topup-sidebar {
        padding: 15px 12px;
    }

    body.patient-ui.patient-topup-page .topup-sidebar__intro {
        padding-left: 6px;
    }

    body.patient-ui.patient-topup-page .topup-sidebar__nav a {
        min-height: 40px;
        padding: 0 12px;
        font-size: 12px;
    }

    body.patient-ui.patient-topup-page .topup-sidebar__nav a span {
        display: none;
    }

    body.patient-ui.patient-topup-page .patient-topup__main {
        padding: 24px 10px 30px;
    }

    body.patient-ui.patient-topup-page .patient-topup__hero,
    body.patient-ui.patient-topup-page .topup-form-card,
    body.patient-ui.patient-topup-page .topup-guide-card {
        padding: 20px 16px;
        border-radius: 17px;
    }

    body.patient-ui.patient-topup-page .patient-topup__hero h1 {
        font-size: 34px;
    }

    body.patient-ui.patient-topup-page .topup-form-card__heading {
        align-items: flex-start;
    }

    body.patient-ui.patient-topup-page .topup-form-card__heading > span {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }

    body.patient-ui.patient-topup-page .topup-form__actions {
        display: grid;
    }

    body.patient-ui.patient-topup-page .topup-button {
        width: 100%;
        min-height: 52px;
    }
}

/* --- SZLIF STRONY GŁÓWNEJ --- */

.premium-panel {
    position: relative;
    overflow: hidden;
}

.premium-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(203, 183, 157, 0.14), transparent 35%);
    pointer-events: none;
}

.mini-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: #8a7d6c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-panel-note {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(203, 183, 157, 0.22);
    color: #6d766f;
    font-size: 14px;
}

.highlight-card {
    border: 1px solid rgba(203, 183, 157, 0.28);
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(250,246,240,0.92) 100%);
}

.service-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 34px rgba(36, 48, 58, 0.08);
    border-color: rgba(155, 185, 196, 0.35);
}

.service-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d7c4ad, #eee2d4);
    color: #4c4236;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(203, 183, 157, 0.18);
}

.price-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(203, 183, 157, 0.16);
    color: #8a7d6c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.faq-accordion details {
    transition: all 0.25s ease;
}

.faq-accordion summary {
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    color: #24303a;
    position: relative;
    padding-right: 24px;
}

.faq-accordion summary::-webkit-details-marker {
    display: none;
}

.faq-accordion summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    color: #8a7d6c;
    font-size: 20px;
    line-height: 1;
}

.faq-accordion details[open] summary::after {
    content: "–";
}

.faq-accordion details p {
    margin: 14px 0 0;
}

.contact-list {
    display: grid;
    gap: 18px;
}

.contact-line {
    display: grid;
    gap: 6px;
}

.final-cta {
    background:
        radial-gradient(circle at top right, rgba(191, 212, 219, 0.22), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(248,243,237,0.96) 100%);
}

.hero-copy .btn,
.final-cta .btn {
    min-width: 190px;
}

@media (max-width: 720px) {
    .hero-copy .btn,
    .final-cta .btn {
        width: 100%;
    }
}

/* --- SZLIF PANELU ADMINA --- */

.admin-section {
    background:
        radial-gradient(circle at top right, rgba(191, 212, 219, 0.18), transparent 24%),
        linear-gradient(180deg, #f7f2eb 0%, #f3ece4 100%);
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.admin-title {
    margin: 6px 0 10px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.admin-topbar-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card {
    padding: 24px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(250,245,239,0.92) 100%);
    border: 1px solid rgba(203, 183, 157, 0.2);
    box-shadow: 0 14px 30px rgba(36, 48, 58, 0.06);
}

.stat-label {
    display: block;
    margin-bottom: 10px;
    color: #7b6e5e;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.stat-value {
    font-size: 34px;
    font-weight: 700;
    color: #24303a;
    line-height: 1;
}

.admin-table-card {
    padding: 0;
    overflow: hidden;
}

.admin-table-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 24px 24px 12px;
}

.admin-table-head h2 {
    margin: 0 0 6px;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 940px;
}

.admin-table thead th {
    text-align: left;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7b6e5e;
    background: rgba(239, 231, 222, 0.62);
    padding: 16px 20px;
    border-bottom: 1px solid rgba(203, 183, 157, 0.2);
}

.admin-table tbody td {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(229, 221, 211, 0.75);
    vertical-align: middle;
    color: #33414b;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.58);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid transparent;
    white-space: nowrap;
}

.status-pending {
    background: rgba(255, 241, 214, 0.9);
    color: #946b16;
    border-color: rgba(201, 162, 76, 0.25);
}

.status-confirmed {
    background: rgba(221, 244, 231, 0.92);
    color: #24714a;
    border-color: rgba(78, 165, 111, 0.22);
}

.status-cancelled {
    background: rgba(255, 232, 232, 0.92);
    color: #9b3737;
    border-color: rgba(201, 97, 97, 0.24);
}

.status-completed {
    background: rgba(226, 236, 245, 0.92);
    color: #46657d;
    border-color: rgba(111, 145, 172, 0.24);
}

.table-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.action-link {
    color: #7ea5b3;
    font-weight: 700;
    transition: color 0.2s ease;
}

.action-link:hover {
    color: #5d8796;
}

.action-link-danger {
    color: #b05b5b;
}

.action-link-danger:hover {
    color: #964545;
}

.empty-cell {
    text-align: center;
    color: #6f7d86;
    padding: 28px 20px !important;
}

@media (max-width: 980px) {
    .admin-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }
}

/* --- ROZBUDOWA REZERWACJI --- */

.booking-card {
    padding: 34px;
}

.booking-form {
    display: grid;
    gap: 28px;
}

.booking-step h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 22px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.booking-options {
    gap: 16px;
}

.booking-option {
    display: block;
    cursor: pointer;
}

.booking-option input {
    display: none;
}

.booking-option span {
    display: block;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(203, 183, 157, 0.24);
    box-shadow: 0 10px 24px rgba(36, 48, 58, 0.04);
    transition: all 0.22s ease;
}

.booking-option strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
}

.booking-option small {
    color: #6c7a83;
}

.booking-option input:checked + span {
    border-color: rgba(126, 165, 179, 0.45);
    background: linear-gradient(180deg, rgba(244,249,251,0.96) 0%, rgba(255,255,255,0.95) 100%);
    box-shadow: 0 16px 28px rgba(126, 165, 179, 0.14);
    transform: translateY(-2px);
}

.booking-consents {
    display: grid;
    gap: 14px;
}

.consent-line {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: #55646d;
}

.consent-line input {
    width: auto;
    min-height: auto;
    margin-top: 3px;
}

.booking-submit {
    display: flex;
    justify-content: flex-start;
}

.success-card {
    text-align: center;
}

@media (max-width: 720px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .booking-card {
        padding: 24px;
    }

    .booking-submit .btn {
        width: 100%;
    }
}

/* --- TERMINY EXPERT --- */

.slot-info {
    margin-top: 8px;
    font-size: 14px;
}

#booking_time:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* --- PANEL EXPERT+ --- */

.admin-filters-card {
    margin-bottom: 24px;
}

.admin-filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.admin-filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.payment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 6px;
    border: 1px solid transparent;
}

.payment-paid {
    background: rgba(221, 244, 231, 0.92);
    color: #24714a;
    border-color: rgba(78, 165, 111, 0.22);
}

.payment-unpaid {
    background: rgba(255, 232, 232, 0.92);
    color: #9b3737;
    border-color: rgba(201, 97, 97, 0.24);
}

.note-cell {
    max-width: 240px;
    color: #5d6b74;
}

@media (max-width: 980px) {
    .admin-filters {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .admin-filters {
        grid-template-columns: 1fr;
    }
}

/* --- PORTFEL EXPERT --- */

.amount-positive {
    color: #24714a;
}

.amount-negative {
    color: #9b3737;
}

/* --- PANEL KLIENTA PRO --- */

.notice.success {
    padding: 14px 16px;
    border-radius: 14px;
    background: #edf8f1;
    color: #24714a;
    border: 1px solid #cfe8d8;
    margin-bottom: 16px;
}

.account-links-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.account-link-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.account-link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(36, 48, 58, 0.08);
}

@media (max-width: 900px) {
    .account-links-grid {
        grid-template-columns: 1fr;
    }
}

/* --- PANEL ADMINA PRO --- */

.admin-table .small {
    line-height: 1.5;
}

.table-actions .action-link {
    white-space: nowrap;
}

/* --- GRAFIK PRO --- */

.calendar-toolbar-card {
    margin-bottom: 24px;
}

.calendar-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

.calendar-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.calendar-date-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.calendar-week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 16px;
}

.calendar-day-list {
    display: grid;
    gap: 18px;
}

.calendar-day-card {
    min-height: 220px;
}

.calendar-day-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.calendar-day-head h2 {
    margin: 6px 0 0;
    font-size: 24px;
    line-height: 1.1;
}

.calendar-day-count {
    min-width: 42px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(203, 183, 157, 0.16);
    color: #8a7d6c;
    font-weight: 700;
    font-size: 13px;
}

.calendar-events {
    display: grid;
    gap: 12px;
}

.calendar-events.compact {
    gap: 10px;
}

.calendar-event {
    display: grid;
    grid-template-columns: 78px 1fr auto;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(203, 183, 157, 0.16);
}

.calendar-event-time {
    font-size: 24px;
    font-weight: 700;
    color: #24303a;
    line-height: 1;
    padding-top: 2px;
}

.calendar-event-body strong {
    display: block;
    margin-bottom: 4px;
}

.calendar-event-side {
    display: grid;
    gap: 10px;
    justify-items: end;
    text-align: right;
}

.calendar-event-mini {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(203, 183, 157, 0.16);
}

.calendar-event-mini-time {
    font-size: 18px;
    font-weight: 700;
    color: #24303a;
    line-height: 1;
}

.calendar-event-mini-body strong {
    display: block;
    margin-bottom: 4px;
}

.status-line-pending {
    border-left: 4px solid #d6b45b;
}

.status-line-confirmed {
    border-left: 4px solid #57a877;
}

.status-line-cancelled {
    border-left: 4px solid #d06c6c;
}

.status-line-completed {
    border-left: 4px solid #7da1bf;
}

@media (max-width: 1200px) {
    .calendar-week-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .calendar-week-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calendar-event {
        grid-template-columns: 1fr;
    }

    .calendar-event-side {
        justify-items: start;
        text-align: left;
    }
}

@media (max-width: 640px) {
    .calendar-week-grid {
        grid-template-columns: 1fr;
    }
}

/* --- EDYCJA TREŚCI STRONY --- */

.content-editor-form textarea {
    min-height: 120px;
}

/* --- STATYSTYKI PRO --- */

.stats-grid-pro {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stat-card-wide {
    grid-column: span 1;
}

.stats-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 1100px) {
    .stats-grid-pro {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .stats-grid-pro {
        grid-template-columns: 1fr;
    }
}

/* --- OPINIE KLIENTÓW --- */

.review-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.review-stars {
    color: #c7a86e;
    font-size: 20px;
    letter-spacing: 2px;
}

.review-text {
    margin: 0;
    color: #42515c;
    line-height: 1.7;
}

.review-author {
    font-weight: 700;
    color: #24303a;
}

/* --- PRZEŁOŻENIE WIZYTY --- */

.table-actions {
    align-items: center;
}

/* --- FINALNY AUDYT MOBILE: STRONA I PANEL PACJENTA V2 --- */

@media (max-width: 768px) {
    html,
    body {
        max-width: 100%;
    }

    .container {
        width: min(100% - 32px, 1120px);
    }

    .site-header .header-row {
        min-height: 0;
        gap: 12px;
        padding: 12px 0;
    }

    .site-header .nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        gap: 7px 10px;
    }

    .site-header .nav a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        min-height: 34px;
        text-align: center;
        line-height: 1.25;
    }

    .site-header .nav a.btn.btn-small {
        min-height: 42px;
    }

    .hero {
        padding: 46px 0 52px;
    }

    .hero-copy h1 {
        font-size: clamp(36px, 9vw, 44px);
        overflow-wrap: anywhere;
    }

    .section {
        padding: 54px 0;
    }

    .card {
        min-width: 0;
        padding: 22px;
    }

    body.patient-ui .patient-sidebar__nav,
    body.patient-ui .visits-sidebar__nav,
    body.patient-ui .payments-sidebar__nav,
    body.patient-ui .documents-sidebar__nav,
    body.patient-ui .messages-sidebar__nav,
    body.patient-ui .profile-sidebar__nav,
    body.patient-ui .password-sidebar__nav,
    body.patient-ui .reschedule-sidebar__nav,
    body.patient-ui .topup-sidebar__nav {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        overflow: visible;
        padding: 0;
    }

    body.patient-ui .patient-sidebar__nav a,
    body.patient-ui .visits-sidebar__nav a,
    body.patient-ui .payments-sidebar__nav a,
    body.patient-ui .documents-sidebar__nav a,
    body.patient-ui .messages-sidebar__nav a,
    body.patient-ui .profile-sidebar__nav a,
    body.patient-ui .password-sidebar__nav a,
    body.patient-ui .reschedule-sidebar__nav a,
    body.patient-ui .topup-sidebar__nav a {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        padding: 8px 11px;
        justify-content: flex-start;
        white-space: normal;
        line-height: 1.25;
    }

    body.patient-ui .patient-dashboard__main,
    body.patient-ui .patient-visits-page__main,
    body.patient-ui .patient-payments__main,
    body.patient-ui .patient-documents__main,
    body.patient-ui .patient-messages-content,
    body.patient-ui .patient-profile__main,
    body.patient-ui .patient-password__main,
    body.patient-ui .patient-reschedule__main,
    body.patient-ui .patient-topup__main {
        min-width: 0;
        padding-right: 18px;
        padding-left: 18px;
    }

    body.patient-ui .patient-messages-hero,
    body.patient-ui .patient-documents__hero,
    body.patient-ui .patient-profile__hero,
    body.patient-ui .patient-password__hero,
    body.patient-ui .patient-reschedule__hero,
    body.patient-ui .patient-topup__hero,
    body.patient-ui .patient-payments__hero {
        align-items: flex-start;
    }

    body.patient-ui input,
    body.patient-ui select,
    body.patient-ui textarea,
    body.patient-ui button,
    body.patient-ui a {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .site-header .logo {
        align-self: center;
    }

    .site-header .nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-header .nav a.btn.btn-small {
        grid-column: 1 / -1;
        width: 100%;
    }

    .hero-copy h1 {
        font-size: clamp(34px, 9.5vw, 40px);
    }

    .hero-actions .btn,
    .final-cta .btn {
        width: 100%;
    }

    body.patient-ui .patient-booking__hero,
    body.patient-ui .booking-success__actions,
    body.patient-ui .patient-messages-empty__actions,
    body.patient-ui .documents-empty__actions,
    body.patient-ui .profile-form__actions,
    body.patient-ui .password-form__actions,
    body.patient-ui .reschedule-form__actions,
    body.patient-ui .topup-form__actions {
        align-items: stretch;
        flex-direction: column;
    }

    body.patient-ui .patient-booking__hero > a,
    body.patient-ui .booking-success__actions > *,
    body.patient-ui .patient-messages-empty__actions > *,
    body.patient-ui .documents-empty__actions > *,
    body.patient-ui .profile-form__actions > *,
    body.patient-ui .password-form__actions > *,
    body.patient-ui .reschedule-form__actions > *,
    body.patient-ui .topup-form__actions > * {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(100% - 24px, 1120px);
    }

    .site-header .logo-mark {
        flex: 0 0 auto;
    }

    .site-header .nav {
        gap: 6px 8px;
    }

    .site-header .nav a {
        min-height: 32px;
        padding: 4px 6px;
        font-size: 12px;
    }

    .hero {
        padding: 38px 0 44px;
    }

    .hero-copy h1 {
        font-size: clamp(32px, 10vw, 38px);
        line-height: 1.08;
    }

    .hero-badges span,
    .tag-list span {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .section {
        padding: 46px 0;
    }

    .card {
        padding: 19px;
        border-radius: 20px;
    }

    body.patient-ui .patient-sidebar,
    body.patient-ui .visits-sidebar,
    body.patient-ui .payments-sidebar,
    body.patient-ui .documents-sidebar,
    body.patient-ui .messages-sidebar,
    body.patient-ui .profile-sidebar,
    body.patient-ui .password-sidebar,
    body.patient-ui .reschedule-sidebar,
    body.patient-ui .topup-sidebar {
        padding-right: 12px;
        padding-left: 12px;
    }

    body.patient-ui .patient-sidebar__nav a,
    body.patient-ui .visits-sidebar__nav a,
    body.patient-ui .payments-sidebar__nav a,
    body.patient-ui .documents-sidebar__nav a,
    body.patient-ui .messages-sidebar__nav a,
    body.patient-ui .profile-sidebar__nav a,
    body.patient-ui .password-sidebar__nav a,
    body.patient-ui .reschedule-sidebar__nav a,
    body.patient-ui .topup-sidebar__nav a {
        min-height: 42px;
        padding: 7px 9px;
        font-size: 11.5px;
    }

    body.patient-ui .patient-sidebar__nav a > span,
    body.patient-ui .visits-sidebar__nav a > span,
    body.patient-ui .payments-sidebar__nav a > span,
    body.patient-ui .documents-sidebar__nav a > span,
    body.patient-ui .messages-sidebar__nav a > span,
    body.patient-ui .profile-sidebar__nav a > span,
    body.patient-ui .password-sidebar__nav a > span,
    body.patient-ui .reschedule-sidebar__nav a > span,
    body.patient-ui .topup-sidebar__nav a > span {
        display: inline-flex !important;
        flex: 0 0 auto;
    }

    body.patient-ui .patient-dashboard__main,
    body.patient-ui .patient-visits-page__main,
    body.patient-ui .patient-payments__main,
    body.patient-ui .patient-documents__main,
    body.patient-ui .patient-messages-content,
    body.patient-ui .patient-profile__main,
    body.patient-ui .patient-password__main,
    body.patient-ui .patient-reschedule__main,
    body.patient-ui .patient-topup__main {
        padding-right: 14px;
        padding-left: 14px;
    }

    body.patient-ui h1 {
        overflow-wrap: anywhere;
    }
}

/* --- OPINIE PACJENTA --- */
body.patient-ui.patient-reviews-page {
    --reviews-ink: #37322c;
    --reviews-muted: #766e65;
    --reviews-gold: #b9843f;
    --reviews-gold-dark: #94672f;
    --reviews-border: rgba(157, 127, 89, 0.17);
    color: var(--reviews-ink);
    background:
        radial-gradient(circle at 88% 8%, rgba(213, 182, 139, 0.2), transparent 25rem),
        #f7f3ec;
    overflow-x: hidden;
}

body.patient-ui.patient-reviews-page .site-footer {
    display: none;
}

body.patient-ui.patient-reviews-page .site-header {
    position: sticky;
    background: rgba(255, 253, 249, 0.95);
    border-bottom-color: rgba(185, 139, 79, 0.14);
    box-shadow: 0 10px 35px rgba(54, 40, 24, 0.04);
    backdrop-filter: blur(18px);
}

body.patient-ui.patient-reviews-page .site-header .header-row {
    min-height: 82px;
    gap: 30px;
}

body.patient-ui.patient-reviews-page .site-header .logo {
    gap: 13px;
    flex: 0 0 auto;
}

body.patient-ui.patient-reviews-page .site-header .logo-mark {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(185, 128, 49, 0.56);
    color: #a87532;
    background: rgba(255, 253, 249, 0.76);
    font-family: Georgia, serif;
    font-weight: 500;
    box-shadow: 0 8px 22px rgba(147, 103, 47, 0.09);
}

body.patient-ui.patient-reviews-page .site-header .logo-text {
    display: grid;
    gap: 3px;
    color: #28251f;
    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.patient-ui.patient-reviews-page .site-header .logo-text::after {
    content: "Psycholog";
    color: #766c60;
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

body.patient-ui.patient-reviews-page .site-header .nav a {
    color: #4f473e;
    font-size: 12px;
    font-weight: 500;
}

body.patient-ui.patient-reviews-page .site-header .nav a.btn.btn-small {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(135deg, #d4aa68, #b9843f);
    box-shadow: 0 12px 28px rgba(148, 103, 47, 0.2);
}

body.patient-ui.patient-reviews-page .patient-reviews {
    min-height: calc(100vh - 82px);
}

body.patient-ui.patient-reviews-page .patient-reviews__layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: calc(100vh - 82px);
}

body.patient-ui.patient-reviews-page .reviews-sidebar {
    padding: 38px 22px 30px;
    border-right: 1px solid var(--reviews-border);
    background: rgba(255, 253, 249, 0.78);
}

body.patient-ui.patient-reviews-page .reviews-sidebar__intro {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

body.patient-ui.patient-reviews-page .reviews-sidebar__icon,
body.patient-ui.patient-reviews-page .reviews-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(185, 132, 63, 0.24);
    border-radius: 50%;
    color: var(--reviews-gold);
    background: rgba(255, 252, 246, 0.9);
}

body.patient-ui.patient-reviews-page .reviews-sidebar__icon svg,
body.patient-ui.patient-reviews-page .reviews-card__icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.patient-ui.patient-reviews-page .reviews-sidebar__intro > span:last-child {
    display: grid;
    gap: 3px;
}

body.patient-ui.patient-reviews-page .reviews-sidebar__intro strong {
    color: var(--reviews-gold-dark);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body.patient-ui.patient-reviews-page .reviews-sidebar__intro small {
    color: var(--reviews-muted);
    font-size: 11px;
}

body.patient-ui.patient-reviews-page .reviews-sidebar__nav {
    display: grid;
    gap: 5px;
}

body.patient-ui.patient-reviews-page .reviews-sidebar__nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 12px;
    color: #5d554c;
    font-size: 13px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

body.patient-ui.patient-reviews-page .reviews-sidebar__nav a:hover,
body.patient-ui.patient-reviews-page .reviews-sidebar__nav a.is-active {
    color: var(--reviews-gold-dark);
    background: rgba(202, 164, 105, 0.13);
    transform: translateX(2px);
}

body.patient-ui.patient-reviews-page .reviews-sidebar__nav .reviews-sidebar__logout {
    margin-top: 18px;
    padding-top: 20px;
    border-top: 1px solid var(--reviews-border);
    border-radius: 0;
}

body.patient-ui.patient-reviews-page .patient-reviews__main {
    width: min(100%, 1180px);
    padding: 42px clamp(24px, 4vw, 64px) 56px;
}

body.patient-ui.patient-reviews-page .patient-reviews__hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 24px;
    padding: 28px 32px;
    border: 1px solid rgba(185, 139, 79, 0.12);
    border-radius: 24px;
    background: linear-gradient(120deg, rgba(255, 253, 249, 0.95), rgba(241, 229, 210, 0.7));
    box-shadow: 0 20px 55px rgba(80, 59, 34, 0.06);
}

body.patient-ui.patient-reviews-page .patient-reviews__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--reviews-gold-dark);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

body.patient-ui.patient-reviews-page .patient-reviews__hero h1 {
    margin: 0 0 8px;
    color: #302b25;
    font-family: Georgia, serif;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 500;
    line-height: 1.05;
}

body.patient-ui.patient-reviews-page .patient-reviews__hero p {
    max-width: 650px;
    margin: 0;
    color: var(--reviews-muted);
    font-size: 14px;
    line-height: 1.7;
}

body.patient-ui.patient-reviews-page .patient-reviews__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.75fr);
    gap: 22px;
    align-items: start;
}

body.patient-ui.patient-reviews-page .reviews-form-card,
body.patient-ui.patient-reviews-page .reviews-info-card {
    border: 1px solid var(--reviews-border);
    border-radius: 24px;
    background: rgba(255, 253, 249, 0.92);
    box-shadow: 0 18px 50px rgba(70, 50, 28, 0.06);
}

body.patient-ui.patient-reviews-page .reviews-form-card {
    padding: clamp(24px, 3vw, 38px);
}

body.patient-ui.patient-reviews-page .reviews-card__heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

body.patient-ui.patient-reviews-page .reviews-card__heading > div {
    display: grid;
    gap: 3px;
}

body.patient-ui.patient-reviews-page .reviews-card__heading span {
    color: var(--reviews-gold-dark);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

body.patient-ui.patient-reviews-page .reviews-card__heading h2,
body.patient-ui.patient-reviews-page .reviews-info-card h2 {
    margin: 0;
    color: #363028;
    font-family: Georgia, serif;
    font-size: 26px;
    font-weight: 500;
}

body.patient-ui.patient-reviews-page .reviews-form {
    display: grid;
    gap: 18px;
}

body.patient-ui.patient-reviews-page .reviews-field {
    display: grid;
    gap: 8px;
}

body.patient-ui.patient-reviews-page .reviews-field label {
    color: #514940;
    font-size: 12px;
    font-weight: 600;
}

body.patient-ui.patient-reviews-page .reviews-field select,
body.patient-ui.patient-reviews-page .reviews-field textarea {
    width: 100%;
    min-height: 54px;
    padding: 14px 16px;
    border: 1px solid rgba(140, 112, 76, 0.2);
    border-radius: 14px;
    color: #3d3730;
    background: #fffefa;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.patient-ui.patient-reviews-page .reviews-field textarea {
    min-height: 145px;
    resize: vertical;
}

body.patient-ui.patient-reviews-page .reviews-field select:focus,
body.patient-ui.patient-reviews-page .reviews-field textarea:focus {
    border-color: rgba(185, 132, 63, 0.55);
    outline: none;
    box-shadow: 0 0 0 4px rgba(185, 132, 63, 0.09);
}

body.patient-ui.patient-reviews-page .reviews-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, #d4aa68, #b9843f);
    box-shadow: 0 12px 28px rgba(148, 103, 47, 0.18);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.patient-ui.patient-reviews-page .reviews-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(148, 103, 47, 0.23);
}

body.patient-ui.patient-reviews-page .reviews-button--outline {
    color: var(--reviews-gold-dark);
    border-color: rgba(185, 132, 63, 0.35);
    background: rgba(255, 253, 249, 0.7);
    box-shadow: none;
}

body.patient-ui.patient-reviews-page .reviews-info-card {
    padding: 30px;
}

body.patient-ui.patient-reviews-page .reviews-info-card .reviews-card__icon {
    margin-bottom: 22px;
}

body.patient-ui.patient-reviews-page .reviews-info-card p {
    margin: 14px 0 20px;
    color: var(--reviews-muted);
    font-size: 13px;
    line-height: 1.7;
}

body.patient-ui.patient-reviews-page .reviews-info-card ul {
    display: grid;
    gap: 11px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

body.patient-ui.patient-reviews-page .reviews-info-card li {
    position: relative;
    padding-left: 18px;
    color: #655d54;
    font-size: 12px;
    line-height: 1.55;
}

body.patient-ui.patient-reviews-page .reviews-info-card li::before {
    content: "";
    position: absolute;
    top: 0.55em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--reviews-gold);
}

body.patient-ui.patient-reviews-page .reviews-info-card > a {
    color: var(--reviews-gold-dark);
    font-size: 12px;
    font-weight: 600;
}

body.patient-ui.patient-reviews-page .reviews-alert {
    margin-bottom: 20px;
    padding: 13px 15px;
    border: 1px solid;
    border-radius: 13px;
    font-size: 12px;
    line-height: 1.5;
}

body.patient-ui.patient-reviews-page .reviews-alert--success {
    color: #4f6b51;
    border-color: rgba(95, 130, 95, 0.2);
    background: rgba(225, 237, 223, 0.68);
}

body.patient-ui.patient-reviews-page .reviews-alert--error {
    color: #8a4d45;
    border-color: rgba(149, 75, 65, 0.18);
    background: rgba(247, 229, 225, 0.72);
}

@media (max-width: 1200px) {
    body.patient-ui.patient-reviews-page .patient-reviews__layout {
        grid-template-columns: 230px minmax(0, 1fr);
    }

    body.patient-ui.patient-reviews-page .patient-reviews__main {
        padding-right: 28px;
        padding-left: 28px;
    }
}

@media (max-width: 991px) {
    body.patient-ui.patient-reviews-page .patient-reviews__layout {
        display: block;
    }

    body.patient-ui.patient-reviews-page .reviews-sidebar {
        padding: 18px 20px;
        border-right: 0;
        border-bottom: 1px solid var(--reviews-border);
    }

    body.patient-ui.patient-reviews-page .reviews-sidebar__intro {
        margin-bottom: 14px;
    }

    body.patient-ui.patient-reviews-page .reviews-sidebar__nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    body.patient-ui.patient-reviews-page .reviews-sidebar__nav a,
    body.patient-ui.patient-reviews-page .reviews-sidebar__nav .reviews-sidebar__logout {
        justify-content: center;
        min-height: 42px;
        margin-top: 0;
        padding: 8px;
        border-top: 0;
        border-radius: 10px;
        text-align: center;
    }

    body.patient-ui.patient-reviews-page .patient-reviews__main {
        width: 100%;
        padding-top: 28px;
    }
}

@media (max-width: 768px) {
    body.patient-ui.patient-reviews-page .patient-reviews__hero {
        align-items: stretch;
        flex-direction: column;
        padding: 24px;
    }

    body.patient-ui.patient-reviews-page .patient-reviews__grid {
        grid-template-columns: 1fr;
    }

    body.patient-ui.patient-reviews-page .reviews-sidebar__nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.patient-ui.patient-reviews-page .patient-reviews__hero .reviews-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body.patient-ui.patient-reviews-page .reviews-sidebar {
        padding-right: 12px;
        padding-left: 12px;
    }

    body.patient-ui.patient-reviews-page .reviews-sidebar__nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.patient-ui.patient-reviews-page .reviews-sidebar__nav a,
    body.patient-ui.patient-reviews-page .reviews-sidebar__nav .reviews-sidebar__logout {
        font-size: 11.5px;
    }

    body.patient-ui.patient-reviews-page .patient-reviews__main {
        padding: 20px 14px 32px;
    }

    body.patient-ui.patient-reviews-page .patient-reviews__hero,
    body.patient-ui.patient-reviews-page .reviews-form-card,
    body.patient-ui.patient-reviews-page .reviews-info-card {
        padding: 20px;
        border-radius: 20px;
    }

    body.patient-ui.patient-reviews-page .patient-reviews__hero h1 {
        font-size: 34px;
    }

    body.patient-ui.patient-reviews-page .reviews-button {
        width: 100%;
    }
}

/* --- WSPÓLNY HEADER PANELU PACJENTA / ZGODNY Z HOMEPAGE PREMIUM --- */
body.patient-ui .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(124, 91, 47, 0.09);
    background: rgba(255, 253, 249, 0.94);
    box-shadow: 0 10px 35px rgba(54, 40, 24, 0.045);
    backdrop-filter: blur(18px);
}

body.patient-ui .site-header .container {
    width: min(1260px, calc(100% - 64px));
}

body.patient-ui .site-header .header-row {
    min-height: 86px;
    padding: 0;
    gap: 30px;
}

body.patient-ui .site-header .logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 12px;
    color: #28251f;
}

body.patient-ui .site-header .logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 49px;
    width: 49px;
    height: 49px;
    border: 1px solid #c48c3c;
    border-radius: 50%;
    color: #b97d2b;
    background: rgba(255, 253, 249, 0.76);
    box-shadow: none;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1;
}

body.patient-ui .site-header .logo-text,
body.patient-ui .site-header .patient-header__brand-copy {
    display: grid;
    gap: 3px;
    color: #28251f;
    font-family: "Inter", Arial, sans-serif;
    line-height: 1;
    text-transform: none;
}

body.patient-ui .site-header .logo-text strong {
    color: #28251f;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-transform: uppercase;
}

body.patient-ui .site-header .logo-text small {
    display: block;
    color: #756e64;
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.64rem;
    font-weight: 500;
    letter-spacing: 0.13em;
    line-height: 1.2;
    text-transform: uppercase;
}

body.patient-ui .site-header .logo-text::after {
    content: none !important;
    display: none !important;
}

body.patient-ui .site-header .nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: clamp(15px, 1.65vw, 27px);
    margin-left: auto;
    font-family: "Inter", Arial, sans-serif;
}

body.patient-ui .site-header .nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 10px 0;
    color: #28251f;
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.35;
    white-space: nowrap;
    transition: color 0.28s ease, transform 0.24s ease;
}

body.patient-ui .site-header .nav a:not(.btn)::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: 3px;
    left: 50%;
    height: 1px;
    background: #b9843f;
    opacity: 0;
    transform: none;
    transition: right 0.28s ease, left 0.28s ease, opacity 0.28s ease;
}

body.patient-ui .site-header .nav a:not(.btn):hover,
body.patient-ui .site-header .nav a:not(.btn):focus-visible,
body.patient-ui .site-header .nav a:not(.btn)[aria-current="page"] {
    color: #9d7138;
    transform: none;
}

body.patient-ui .site-header .nav a:not(.btn):hover::after,
body.patient-ui .site-header .nav a:not(.btn):focus-visible::after,
body.patient-ui .site-header .nav a:not(.btn)[aria-current="page"]::after {
    right: 0;
    left: 0;
    opacity: 1;
}

body.patient-ui .site-header .nav a.btn.btn-small {
    min-height: 45px;
    padding: 0 23px;
    border: 1px solid transparent;
    border-radius: 5px;
    color: #fff;
    background: linear-gradient(135deg, #d4aa68, #b9843f);
    box-shadow:
        0 12px 26px rgba(155, 105, 39, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1;
    transform: translateY(3px);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

body.patient-ui .site-header .nav a.btn.btn-small:hover,
body.patient-ui .site-header .nav a.btn.btn-small:focus-visible {
    color: #fff;
    background: linear-gradient(135deg, #d4aa68, #b9843f);
    box-shadow:
        0 16px 30px rgba(155, 105, 39, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(1px);
}

@media (max-width: 1200px) {
    body.patient-ui .site-header .container {
        width: min(100% - 40px, 1260px);
    }

    body.patient-ui .site-header .header-row {
        gap: 22px;
    }

    body.patient-ui .site-header .nav {
        gap: 14px;
    }

    body.patient-ui .site-header .nav a {
        font-size: 0.71rem;
    }

    body.patient-ui .site-header .nav a.btn.btn-small {
        padding-inline: 17px;
    }
}

@media (max-width: 991px) {
    body.patient-ui .site-header .header-row {
        align-items: center;
        flex-direction: column;
        min-height: 0;
        gap: 14px;
        padding: 14px 0 16px;
    }

    body.patient-ui .site-header .logo {
        align-self: center;
    }

    body.patient-ui .site-header .nav {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
        margin-left: 0;
        gap: 8px 10px;
    }

    body.patient-ui .site-header .nav a {
        min-width: 0;
        min-height: 38px;
        padding: 7px 5px;
        white-space: normal;
        text-align: center;
    }

    body.patient-ui .site-header .nav a:not(.btn)::after {
        bottom: 2px;
    }

    body.patient-ui .site-header .nav a.btn.btn-small {
        min-height: 42px;
        padding: 0 14px;
        transform: none;
    }
}

@media (max-width: 768px) {
    body.patient-ui .site-header .container {
        width: min(100% - 32px, 1260px);
    }

    body.patient-ui .site-header .nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body.patient-ui .site-header .nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.patient-ui .site-header .nav a.btn.btn-small {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 480px) {
    body.patient-ui .site-header .container {
        width: min(100% - 24px, 1260px);
    }

    body.patient-ui .site-header .logo-mark {
        flex-basis: 43px;
        width: 43px;
        height: 43px;
        font-size: 1rem;
    }

    body.patient-ui .site-header .logo-text strong {
        font-size: 0.9rem;
    }

    body.patient-ui .site-header .logo-text small {
        font-size: 0.57rem;
    }

    body.patient-ui .site-header .nav {
        gap: 6px 8px;
    }

    body.patient-ui .site-header .nav a {
        min-height: 34px;
        padding: 5px 4px;
        font-size: 0.68rem;
    }
}
