@font-face {
    font-family: Manrope;
    src: url("manrope.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
}
@font-face {
    font-family: "Playfair Display";
    src: url("playfairdisplay.woff2") format("woff2");
    font-style: italic;
    font-weight: 500;
    font-display: swap;
}
:root {
    color-scheme: light;
    --ink: #12372a;
    --muted: #52635b;
    --green: #104330;
    --deep: #0c3023;
    --lime: #e2ed85;
    --mint: #e8f1e9;
    --paper: #f7f8f3;
    --line: #dce5dc;
    --white: #fff;
    font-family: Manrope, "Segoe UI", system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
figure, dl, dd { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2 { letter-spacing: -.055em; line-height: 1.02; }
h2 { font-size: clamp(2.15rem, 4.5vw, 3.65rem); }
p { color: var(--muted); line-height: 1.65; }
:focus-visible { outline: 3px solid #769527; outline-offset: 4px; }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.site-nav { background: var(--paper); }
.nav-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 86px; }
.nav-inner nav { display: flex; gap: 30px; font-weight: 600; }
.nav-inner nav a:hover, .footer-inner > a:last-child:hover { text-decoration: underline; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 1.65rem; font-weight: 800; letter-spacing: -.055em; white-space: nowrap; width: max-content; }
.brand > span:last-child { color: #52763a; margin-left: -7px; }
.mark { display: grid; place-items: center; inline-size: 37px; block-size: 37px; border-radius: 12px; color: var(--lime); background: var(--green); font-size: 1.45rem; }
.button { min-height: 48px; border-radius: 9px; border: 1px solid transparent; padding: 11px 17px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; text-align: center; line-height: 1.25; }
.primary { color: white; background: var(--green); }
.primary:hover { background: #1c6046; }
.lime { color: var(--deep); background: var(--lime); }
.lime:hover { background: #f0f7ae; }
.outline { color: white; border-color: #729384; }
.outline:hover { background: #ffffff14; }
.hero { background: radial-gradient(ellipse at 88% 0%, #225840, transparent 61%), var(--deep); color: white; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr); align-items: center; gap: clamp(25px, 4vw, 60px); padding-block: clamp(35px, 4.5vw, 62px); }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: .875rem; letter-spacing: .1em; font-weight: 750; }
.eyebrow span { width: 9px; height: 9px; border-radius: 50%; background: #82a13d; }
.hero .eyebrow { color: var(--lime); }
.hero .eyebrow span { background: var(--lime); }
.hero h1 { margin: 23px 0; font-size: clamp(3rem, 5.8vw, 5.5rem); }
.hero h1 em { color: var(--lime); font-family: "Playfair Display", Georgia, serif; font-weight: 500; letter-spacing: -.065em; }
.hero p { color: #dce8df; font-size: 1.12rem; max-width: 42ch; }
.actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 27px; }
.hero-gallery { min-width: 0; scroll-margin-top: 16px; }
.gallery-frame { border: 1px solid #ffffff36; border-radius: 22px; overflow: hidden; background: #113b2c; box-shadow: 0 18px 36px #001b1355; }
.gallery-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #294d3e; }
.gallery-frame figcaption { padding: 12px 16px; }
.gallery-frame figcaption strong { font-size: clamp(1rem, 2vw, 1.2rem); }
.gallery-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-block: 10px 8px; color: #dce8df; font-size: .875rem; font-weight: 700; }
.gallery-steps { display: flex; gap: 7px; }
.gallery-step { color: #f5f8ee; background: #ffffff0d; min-height: 42px; border: 1px solid #88a194; border-radius: 8px; padding: 7px 11px; font-size: .875rem; font-weight: 700; }
.gallery-step:hover { background: #ffffff1c; }
.gallery-thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(44px, 1fr); gap: 6px; overflow-x: auto; padding: 3px; margin-inline: -3px; scrollbar-color: #a0b8a9 transparent; }
.gallery-thumbs button { min-height: 44px; padding: 2px; border: 2px solid #719183; border-radius: 9px; background: #0c3023; }
.gallery-thumbs img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 5px; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--lime); }
.gallery-thumbs button:hover { border-color: white; }
.hero-gallery button:focus-visible { outline: 2px solid white; outline-offset: -1px; }
.section { padding-block: clamp(54px, 8vw, 104px); scroll-margin-top: 12px; }
.section h2, .clinic h2 { margin: 12px 0 24px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: 0 8px 24px #1938280a; }
.service-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 11px; margin-bottom: 14px; background: var(--mint); color: var(--green); font-size: 1.4rem; }
.service h3 { font-size: 1.32rem; letter-spacing: -.025em; margin-bottom: 6px; }
.service dl { width: 100%; margin-block: 14px; }
.service dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-block: 8px; border-top: 1px solid var(--line); }
.service dd { text-align: right; font-weight: 750; }
.service dd small { font-size: .82rem; font-weight: 500; }
.text-link { font-weight: 700; color: var(--green); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #84a28e; }
.text-link:hover { text-decoration-color: currentColor; }
.service .text-link { margin-top: auto; padding-top: 12px; }
.more { background: #e6efdd; }
.clinic { background: #e8efe5; }
.clinic-inner { display: grid; grid-template-columns: minmax(180px, 350px) 1fr; align-items: center; gap: clamp(30px, 7vw, 100px); padding-block: 56px; }
.clinic-inner img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 24%; border-radius: 20px; background: #d3dfd2; }
.clinic-inner p { max-width: 54ch; }
.clinic h2 { margin-bottom: 7px; }
.clinic .role { font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.clinic .text-link { display: inline-block; margin-top: 15px; }
.booking { display: grid; grid-template-columns: 1fr 1.24fr; gap: clamp(22px, 6vw, 72px); align-items: start; }
.booking > div p { max-width: 42ch; margin-bottom: 18px; }
.form-card, .panel { border: 1px solid var(--line); background: white; border-radius: 16px; padding: clamp(16px, 3vw, 28px); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.full { grid-column: 1 / -1; }
label { display: grid; gap: 6px; font-size: .9rem; font-weight: 650; min-width: 0; }
input, select { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #becec2; border-radius: 8px; padding: 9px 11px; background: white; color: var(--ink); font-size: 1rem; }
select { appearance: none; padding-right: 32px; background: linear-gradient(45deg, transparent 50%, #456557 50%) right 17px center / 5px 5px no-repeat, linear-gradient(135deg, #456557 50%, transparent 50%) right 12px center / 5px 5px no-repeat, white; }
.form-note { font-size: .875rem; }
.notice { padding: 12px 14px; border-radius: 8px; }
.success { background: #e4f2e7; color: #13482d; }
.error { background: #fbe9e6; color: #892d23; }
footer { border-top: 1px solid var(--line); }

.admin-body { background: #f3f6f3; min-height: 100vh; }
.login { display: grid; grid-template-columns: 1fr 1fr; width: min(900px, calc(100% - 36px)); margin: clamp(24px, 12vh, 108px) auto; border-radius: 25px; overflow: hidden; background: white; box-shadow: 0 16px 55px #10342616; }
.login-brand, .login-form { padding: clamp(24px, 5vw, 60px); }
.login-brand { background: var(--deep); color: white; }
.login-brand .brand > span:last-child, .sidebar .brand > span:last-child { color: var(--lime); }
.login-brand h1 { font-size: clamp(2.6rem, 5vw, 4.25rem); margin: 55px 0 20px; }
.login-brand p { color: #dce8df; }
.login-form h2 { font-size: 2.15rem; margin: 12px 0; }
.login-form .notice { margin-top: 15px; }
.stack { display: grid; gap: 16px; margin-block: 25px 18px; }
.admin-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--deep); color: white; display: flex; flex-direction: column; gap: 32px; padding: 24px 17px; }
.sidebar nav { display: grid; gap: 6px; }
.sidebar nav a, .logout { padding: 11px; border-radius: 8px; }
.sidebar nav a:hover, .sidebar nav .active, .logout:hover { background: #ffffff22; }
.sidebar > form { margin-top: auto; }
.logout { color: white; background: transparent; border: 1px solid #719080; }
.dashboard { width: min(100%, 1380px); margin-inline: auto; padding: clamp(18px, 3.5vw, 50px); }
.dashboard-header, .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dashboard h1 { font-size: clamp(2.4rem, 4.8vw, 4rem); margin: 8px 0; }
.dashboard > .notice { margin-top: 18px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0; }
.metric { display: grid; align-content: start; justify-items: start; gap: 10px; border-radius: 13px; padding: 15px; border: 1px solid var(--line); background: white; }
.metric:hover { border-color: #82a58c; }
.metric strong { font-size: 2rem; line-height: 1; }
.status { font-size: .875rem; font-weight: 700; border-radius: 50px; padding: 4px 9px; white-space: nowrap; }
.pending { background: #fff0cb; color: #704c03; }
.confirmed { background: #e0f2e6; color: #185839; }
.completed { background: #e1ebfb; color: #244983; }
.cancelled { background: #f9e8e7; color: #8a3432; }
.panel h2 { font-size: 1.65rem; letter-spacing: -.035em; }
.panel-head { margin-bottom: 19px; }
.panel-head span { color: var(--muted); }
.editor { margin-bottom: 20px; }
.editor .notice { margin-bottom: 16px; }
.save-button { align-self: end; }
.filters { display: grid; grid-template-columns: minmax(135px, 1.35fr) minmax(128px, 1fr) minmax(120px, 1fr) auto auto; align-items: end; gap: 10px; }
.filters .button { min-height: 44px; }
.filters .text-link { align-self: end; padding: 10px 0; }
.table-wrap { overflow-x: auto; margin-top: 18px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
td, th { padding: 14px 11px; border-bottom: 1px solid var(--line); }
thead { background: #eef4ee; font-size: .875rem; }
tbody th { font-weight: 700; }
table small { display: block; color: var(--muted); font-weight: 400; margin-top: 3px; font-size: .875rem; }
.nowrap, .row-actions { white-space: nowrap; }
.row-actions, .pagination { display: flex; gap: 12px; }
.pagination { margin-top: 18px; flex-wrap: wrap; }
.empty { margin-top: 18px; background: #f1f6f1; padding: 28px 12px; text-align: center; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 950px) {
    .admin-shell { grid-template-columns: 175px minmax(0, 1fr); }
    .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .filters .text-link { justify-self: start; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .wrap { width: calc(100% - 36px); }
    .nav-inner { min-height: 70px; gap: 10px; }
    .nav-inner nav { display: none; }
    .hero-grid, .booking { grid-template-columns: 1fr; }
    .clinic-inner { grid-template-columns: minmax(105px, 35%) 1fr; gap: 18px; padding-block: 40px; }
    .clinic h2 { font-size: clamp(1.7rem, 6vw, 2.6rem); }
    .footer-inner { flex-wrap: wrap; justify-content: flex-start; padding-block: 17px; gap: 12px 18px; }
    .footer-inner p { display: none; }
    .admin-shell, .login { grid-template-columns: 1fr; }
    .sidebar { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 16px; gap: 10px; }
    .sidebar nav { display: flex; flex-wrap: wrap; gap: 4px; }
    .sidebar > form { margin-top: 0; }
    .login-brand h1 { margin-top: 22px; }
}
@media (max-width: 480px) {
    .gallery-step { padding-inline: 7px; }
    .service-grid, .fields { grid-template-columns: 1fr; }
    .dashboard-header { align-items: flex-start; flex-direction: column; }
    .metrics, .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .clinic-inner { grid-template-columns: 1fr; }
    .clinic-inner img { width: min(100%, 240px); }
    .nav-inner .button { padding-inline: 10px; font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

.brand > .brand-name { margin-left: 0; color: inherit; }
.brand-name b { color: #52763a; }
.sidebar .brand > .brand-name, .login-brand .brand > .brand-name { color: white; }
.sidebar .brand-name b, .login-brand .brand-name b { color: var(--lime); }
.staff-ident { display: grid; gap: 4px; margin-top: auto; }
.staff-ident small { color: #d0e5d8; }
.staff-ident form { margin-top: 9px; }
.dashboard > .panel { margin-top: 18px; }
.metrics { grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
.metric strong { overflow-wrap: anywhere; }
.finance-metrics strong { font-size: clamp(1.15rem, 2vw, 1.65rem); }
.awaiting { background: #e9e8f8; color: #473a86; }
.status { white-space: normal; }
.row-actions, .flex-actions, .unit-actions { flex-wrap: wrap; align-items: center; }
.row-actions { white-space: normal; }
.flex-actions, .unit-actions, .quick-links { display: flex; gap: 12px; }
.flex-actions { margin-top: 16px; }
.quick-links { margin-bottom: 12px; }
.quick-search { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; }
.quick-search label { flex: 0 1 260px; }
.month-filter { margin-top: 18px; }
.agenda-filters { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.check-field { display: flex; gap: 9px; align-items: center; }
.check-field input { inline-size: 18px; block-size: 18px; min-height: 0; padding: 0; flex: 0 0 auto; }
.link-button { background: none; border: 0; padding: 0; text-align: start; }
.secondary { background: #e8f1e9; color: var(--ink); border-color: #b8cbba; }
.danger { background: #fff1ee; color: #852b24; border-color: #d8a49e; }
.chart-legend { display: flex; gap: 18px; margin-block: 8px 14px; color: var(--muted); font-size: .9rem; }
.chart-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; background: #317250; }
.chart-legend span + span::before { background: #af644e; }
.chart-row { display: grid; grid-template-columns: 68px 1fr; gap: 12px; align-items: center; margin-block: 8px; }
.chart-track { display: flex; align-items: center; gap: 7px; min-height: 20px; }
.chart-fill { display: block; height: 9px; flex: 0 1 auto; border-radius: 5px; background: #317250; }
.chart-fill.expense { background: #af644e; }
.chart-track small { white-space: nowrap; color: var(--muted); }
.qr-frame { width: fit-content; padding: 10px; border: 1px solid var(--line); border-radius: 10px; margin-top: 14px; }
.photo-editor { display: grid; grid-template-columns: repeat(auto-fit, minmax(95px, 1fr)); gap: 10px; }
.photo-editor img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 7px; }
.unit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 18px; }
.unit-card { background: white; border: 1px solid var(--line); border-radius: 17px; padding: 19px; display: grid; gap: 12px; align-content: start; }
.unit-card h3 { font-size: 1.42rem; }
.unit-card address { font-style: normal; color: var(--muted); }
.unit-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.unit-photos img { width: 100%; aspect-ratio: 4 / 3; border-radius: 8px; object-fit: cover; }
.unit-map { width: 100%; height: 260px; border: 0; border-radius: 10px; background: var(--mint); }
.unit-actions { justify-content: space-between; }
@media (max-width: 760px) {
    .staff-ident { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-top: 0; }
    .staff-ident form { margin-top: 0; }
    .sidebar nav { width: 100%; }
    .sidebar nav a { padding: 8px; }
    .mobile-table, .mobile-table tbody { display: block; }
    .mobile-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .mobile-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; margin: 9px 0; }
    .mobile-table tr > th, .mobile-table tr > td { padding: 0; border: 0; overflow-wrap: anywhere; }
    .mobile-table tr > th, .mobile-table tr > td:last-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .agenda-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
