/* Praktyka Lekarzy Rodzinnych — stylesheet */
:root {
    --primary: #0d7a6b;
    --primary-dark: #095a50;
    --primary-light: #e6f4f2;
    --accent: #b5571a;
    --text: #1f2937;
    --text-muted: #4b5563;
    --bg: #ffffff;
    --bg-soft: #f7faf9;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(13, 122, 107, 0.08);
    --shadow-lg: 0 20px 60px rgba(13, 122, 107, 0.12);
    --radius: 10px;
    --radius-lg: 16px;
    --container: 1180px;
    --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* ===== Accessibility — WCAG 2.2 AA ===== */

/* Skip-link (SC 2.4.1 Bypass Blocks) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 8px;
    z-index: 1000;
    background: var(--primary-dark);
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
    top: 8px;
    color: #fff;
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* Focus-visible (SC 2.4.7 Focus Visible, 2.4.11 Focus Not Obscured, 2.4.13 Focus Appearance) */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

main:focus,
main:focus-visible {
    outline: none;
}

/* Visually-hidden label (SR-only) */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Reduced motion (SC 2.3.3) */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Target size (SC 2.5.8 Target Size Minimum — 24×24 CSS px) */
.nav a,
.footer a,
.topbar a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
}


body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

/* A11y: font scaling — applied to content containers (skips .a11y-bar) */
.topbar,
.header,
main,
.footer {
    zoom: var(--a11y-font-scale, 1);
}

@supports not (zoom: 1) {
    .topbar,
    .header,
    main,
    .footer {
        font-size: calc(1rem * var(--a11y-font-scale, 1));
    }
}

/* A11y: high contrast mode */
html.a11y-contrast {
    --primary: #005a4d;
    --primary-dark: #003c33;
    --primary-light: #ffffff;
    --accent: #a03700;
    --text: #000000;
    --text-muted: #1f2937;
    --bg: #ffffff;
    --bg-soft: #ffffff;
    --border: #000000;
}

html.a11y-contrast body,
html.a11y-contrast .content-block,
html.a11y-contrast .footer {
    background: #ffffff;
    color: #000000;
}

html.a11y-contrast .footer {
    border-top: 2px solid #000;
}

html.a11y-contrast img {
    filter: grayscale(0.2) contrast(1.1);
}

/* A11y: underline all links */
html.a11y-underline a {
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

/* A11y: toolbar */
.a11y-bar {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    align-items: flex-start;
}

.a11y-toggle {
    width: 48px;
    height: 48px;
    border-radius: 24px 0 0 24px;
    border: 2px solid #fff;
    background: var(--primary-dark);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.a11y-toggle:hover,
.a11y-toggle:focus-visible {
    background: var(--primary);
}

.a11y-panel {
    position: absolute;
    top: 0;
    right: 56px;
    width: 240px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.a11y-panel[hidden] {
    display: none;
}

.a11y-panel h2 {
    font-size: 16px;
    margin: 0 0 4px;
    color: var(--primary-dark);
}

.a11y-group {
    display: flex;
    gap: 6px;
}

.a11y-panel button {
    flex: 1;
    padding: 10px 12px;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    text-align: center;
}

.a11y-panel button:hover,
.a11y-panel button:focus-visible {
    background: var(--primary-light);
    border-color: var(--primary);
}

.a11y-panel .a11y-option[aria-pressed="true"] {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary-dark);
}

.a11y-panel .a11y-reset {
    background: var(--bg-soft);
    margin-top: 4px;
}

@media (max-width: 640px) {
    .a11y-panel {
        width: 200px;
        right: 52px;
    }
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== TOP BAR ===== */
.topbar {
    background: var(--primary-dark);
    color: #fff;
    font-size: 14px;
    padding: 8px 0;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.topbar a {
    color: #fff;
    opacity: 0.9;
}

.topbar a:hover {
    opacity: 1;
}

.topbar-info {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.topbar-info span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ===== HEADER / NAV ===== */
.header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text);
}

.logo img {
    height: 54px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text strong {
    font-size: 16px;
    color: var(--primary-dark);
    font-weight: 700;
}

.logo-text span {
    font-size: 12px;
    color: var(--text-muted);
}

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

.nav a {
    color: var(--text);
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
}

.nav a:hover,
.nav a.active,
.nav a[aria-current="page"] {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.nav a[aria-current="page"] {
    font-weight: 700;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    min-width: 44px;
    min-height: 44px;
    font-size: 22px;
    cursor: pointer;
    color: var(--primary-dark);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    background:
        linear-gradient(135deg, rgba(9, 90, 80, 0.85) 0%, rgba(13, 122, 107, 0.7) 100%),
        url("images/clinic-01.jpg") center/cover;
    color: #fff;
    padding: 96px 0 120px;
}

.hero-content {
    max-width: 720px;
}

.hero .eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero p.lead {
    font-size: 18px;
    line-height: 1.65;
    opacity: 0.95;
    margin-bottom: 32px;
    max-width: 580px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: #d06f28;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(232, 131, 58, 0.35);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-outline:hover {
    background: #fff;
    color: var(--primary-dark);
}

.btn-secondary {
    background: var(--primary);
    color: #fff;
}

.btn-secondary:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* ===== SECTIONS ===== */
section {
    padding: 80px 0;
}

.section-head {
    text-align: center;
    margin-bottom: 56px;
}

.section-head .eyebrow {
    display: inline-block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-head p {
    color: var(--text-muted);
    font-size: 17px;
    max-width: 680px;
    margin: 0 auto;
}

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

/* ===== FEATURE STRIP ===== */
.features {
    padding: 56px 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.feature h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.feature p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===== CARDS (services) ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* ===== ABOUT / SPLIT ===== */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.split-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.split-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.split h2 {
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.split .eyebrow {
    display: inline-block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.split p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 16px;
    line-height: 1.7;
}

.split ul {
    list-style: none;
    margin: 20px 0;
}

.split ul li {
    padding: 10px 0 10px 32px;
    position: relative;
    color: var(--text);
}

.split ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 10px;
    width: 22px;
    height: 22px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* ===== STAFF CARDS ===== */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.staff-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.25s ease;
}

.staff-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.staff-avatar {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary-light), #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: var(--primary);
    font-weight: 700;
    overflow: hidden;
}

.staff-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.35s ease;
}

.staff-card:hover .staff-avatar img {
    transform: scale(1.04);
}

.staff-avatar.placeholder {
    background: linear-gradient(135deg, var(--primary-light), #fff);
}

.staff-body {
    padding: 24px;
}

.staff-body .role {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.staff-body h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.staff-body p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.staff-body ul {
    list-style: none;
    margin-top: 12px;
    font-size: 13.5px;
    color: var(--text);
}

.staff-body ul li {
    padding: 4px 0 4px 18px;
    position: relative;
}

.staff-body ul li::before {
    content: "•";
    position: absolute;
    left: 4px;
    color: var(--primary);
    font-weight: 700;
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

/* ===== CTA BANNER ===== */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    text-align: center;
    padding: 72px 24px;
    border-radius: var(--radius-lg);
    margin: 0 auto;
}

.cta h2 {
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 700;
    margin-bottom: 16px;
}

.cta p {
    font-size: 17px;
    opacity: 0.95;
    margin-bottom: 32px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn-primary {
    background: #fff;
    color: var(--primary-dark);
}

.cta .btn-primary:hover {
    background: var(--accent);
    color: #fff;
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
}

.contact-info .info-block {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.contact-info .info-block:last-child {
    border-bottom: none;
}

.contact-info .info-block h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.contact-info .info-block p {
    font-size: 17px;
    color: var(--text);
    line-height: 1.6;
}

.contact-info .info-block a {
    color: var(--text);
    font-weight: 600;
}

.contact-info .info-block a:hover {
    color: var(--primary);
}

.hours-list {
    list-style: none;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 15px;
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-list strong {
    color: var(--primary-dark);
}

.map-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4/3;
}

.map-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== PAGE HEADER (inner pages) ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 72px 0 56px;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header p {
    opacity: 0.9;
    font-size: 17px;
}

.breadcrumb {
    font-size: 13px;
    opacity: 0.85;
    margin-top: 16px;
}

.breadcrumb a {
    color: #fff;
}

/* ===== CONTENT BLOCK ===== */
.content-block {
    max-width: 900px;
    margin: 0 auto;
}

.content-block h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 40px 0 16px;
    padding-left: 16px;
    border-left: 4px solid var(--primary);
}

.content-block h2:first-child {
    margin-top: 0;
}

.content-block h3 {
    font-size: 19px;
    font-weight: 700;
    margin: 24px 0 10px;
    color: var(--text);
}

.content-block p {
    margin-bottom: 14px;
    color: var(--text);
    line-height: 1.75;
}

.content-block ul,
.content-block ol {
    margin: 12px 0 20px 24px;
    color: var(--text);
}

.content-block ul li,
.content-block ol li {
    padding: 4px 0;
    line-height: 1.65;
}

.info-box {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    border-radius: 8px;
    margin: 24px 0;
}

.info-box strong {
    color: var(--primary-dark);
}

.warning-box {
    background: #fef6e6;
    border-left: 4px solid var(--accent);
    padding: 20px 24px;
    border-radius: 8px;
    margin: 24px 0;
}

/* ===== NFZ STRIP ===== */
.nfz-strip {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
}

.nfz-strip img {
    max-height: 60px;
    margin: 0 auto 12px;
}

.nfz-strip p {
    color: var(--text-muted);
    font-size: 15px;
}

/* ===== FOOTER ===== */
.footer {
    background: #0a2e2a;
    color: #cbd5d0;
    padding: 64px 0 24px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
}

.footer p,
.footer li {
    font-size: 14px;
    line-height: 1.8;
}

.footer ul {
    list-style: none;
}

.footer a {
    color: #cbd5d0;
}

.footer a:hover {
    color: #fff;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.footer-brand img {
    height: 48px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-brand strong {
    color: #fff;
    font-size: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #8b9a96;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 720px) {
    .nav {
        display: none;
    }

    .nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 12px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }

    .nav.open a {
        width: 100%;
    }

    .nav-toggle {
        display: block;
    }

    .header {
        position: relative;
    }

    section {
        padding: 56px 0;
    }

    .hero {
        padding: 64px 0 80px;
    }

    .topbar-info {
        font-size: 13px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .logo-text strong {
        font-size: 14px;
    }

    .logo img {
        height: 44px;
    }
}

/* Document (regulamin) */
.doc-intro {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    border-radius: var(--radius);
    margin: 8px 0 24px;
    line-height: 1.6;
}

.doc-sign {
    margin-top: 24px;
    text-align: right;
    font-style: italic;
    color: var(--text-muted);
}

.content-block hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 32px 0;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox[hidden] {
    display: none;
}

.lightbox-stage {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
}

.lb-img {
    max-width: 92vw;
    max-height: 86vh;
    object-fit: contain;
    display: block;
    transform-origin: center center;
    transition: transform 0.15s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox-toolbar {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 6px 10px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.lb-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.lb-btn:hover,
.lb-btn:focus-visible {
    background: rgba(255, 255, 255, 0.25);
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.lb-counter {
    color: #fff;
    font-size: 13px;
    padding: 0 8px;
    min-width: 50px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.lb-close {
    background: rgba(220, 60, 60, 0.4);
    font-size: 24px;
    line-height: 1;
}

.lb-close:hover {
    background: rgba(220, 60, 60, 0.7);
}

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.lb-nav:hover,
.lb-nav:focus-visible {
    background: rgba(0, 0, 0, 0.85);
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.lb-prev { left: 16px; }
.lb-next { right: 16px; }

@media (max-width: 640px) {
    .lb-nav {
        width: 44px;
        height: 44px;
        font-size: 28px;
    }
    .lb-prev { left: 4px; }
    .lb-next { right: 4px; }
    .lightbox-toolbar {
        top: 8px;
        padding: 4px 6px;
        gap: 4px;
    }
    .lb-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    .lb-img {
        max-width: 100vw;
        max-height: 78vh;
    }
}

/* Price table */
.price-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    background: var(--bg);
    margin: 24px 0 8px;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    color: var(--text);
}

.price-table thead th {
    background: var(--primary);
    color: #fff;
    text-align: left;
    font-weight: 600;
    padding: 14px 18px;
    letter-spacing: 0.2px;
    border-bottom: 2px solid var(--primary-dark);
}

.price-table th.col-no {
    width: 56px;
    text-align: center;
}

.price-table th.col-price {
    width: 180px;
    text-align: right;
}

.price-table tbody td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.price-table tbody td:first-child {
    width: 56px;
    text-align: center;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.price-table tbody td:last-child {
    width: 180px;
    text-align: right;
    font-weight: 600;
    color: var(--primary-dark);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.price-table tbody tr:nth-child(even) {
    background: var(--bg-soft);
}

.price-table tbody tr:hover {
    background: var(--primary-light);
}

.price-table tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 640px) {
    .price-table {
        font-size: 14px;
    }

    .price-table thead th,
    .price-table tbody td {
        padding: 10px 12px;
    }

    .price-table th.col-price,
    .price-table tbody td:last-child {
        width: 130px;
    }
}
