:root {
  --green: #0a9b8e;
  --green-dark: #04746d;
  --orange: #f28b24;
  --ink: #263c42;
  --muted: #718186;
  --line: #e3eeee;
  --light: #f7fbfb;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, Arial, sans-serif; color: var(--ink); background: #fff; letter-spacing: 0; }
html, body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.page-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(22px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--green-dark); font-weight: 800; }
.brand span { display: none; }
nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-size: 14px; font-weight: 800; color: #244d53; }
.hero {
  min-height: 300px;
  display: grid;
  align-items: center;
  padding: 52px max(22px, calc((100vw - 1180px) / 2));
  color: #fff;
  background: url("assets/perf/unsplash-91d62e1612.webp") center/cover;
}
.hero p { margin: 0 0 8px; color: #fff; font-weight: 800; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0,0,0,.34); }
.hero h1 { margin: 0 0 12px; font-size: clamp(36px, 6vw, 58px); line-height: 1.05; letter-spacing: 0; text-shadow: 0 4px 18px rgba(0,0,0,.38); }
.hero span { max-width: 720px; display: block; color: #fff; font-size: 18px; line-height: 1.6; text-shadow: 0 3px 14px rgba(0,0,0,.36); }
.content { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 68px 0; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; align-items: start; }
h2 { margin: 0 0 14px; color: var(--green-dark); font-size: 32px; line-height: 1.16; }
h3 { margin: 0 0 8px; color: var(--green-dark); }
p, li { color: var(--muted); line-height: 1.72; }
ul { padding-left: 18px; }
.card { display: grid; gap: 12px; padding: 24px; border: 1px solid var(--line); background: var(--light); }
input, select, textarea { width: 100%; min-height: 46px; border: 1px solid var(--line); padding: 0 12px; font: inherit; }
textarea { min-height: 92px; padding-top: 12px; resize: vertical; }
button, .button { display: inline-flex; width: max-content; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border: 0; background: var(--orange); color: #fff; font-weight: 800; cursor: pointer; }
small { color: var(--green-dark); font-weight: 800; }
.photo { width: 100%; max-height: 520px; object-fit: cover; border: 1px solid var(--line); box-shadow: 0 16px 38px rgba(26,57,63,.12); }
.doctor-profile-photo {
  height: clamp(430px, 44vw, 520px);
  max-height: none;
  object-fit: cover;
  object-position: center top;
  background: #d8efff;
}
.photo.wide { aspect-ratio: 1.45; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.features article { padding: 18px; background: var(--light); border-left: 4px solid var(--green); }
.features p { margin: 0; font-size: 14px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cards article { border: 1px solid var(--line); background: #fff; }
.cards a { display: block; color: inherit; text-decoration: none; border: 1px solid var(--line); background: #fff; }
.cards img { width: 100%; height: 170px; object-fit: cover; border-bottom: 4px solid var(--green); }
.cards h2 { font-size: 21px; padding: 18px 18px 0; }
.cards p { padding: 0 18px 20px; margin: 0; }
.treatment-detail { display: grid; grid-template-columns: .95fr 1.05fr; gap: 38px; align-items: start; }
.treatment-detail ol { margin: 0 0 22px; padding-left: 22px; }
.treatment-detail li { margin-bottom: 10px; }
.detail-kicker { display: inline-block; margin-bottom: 8px; color: var(--orange); font-weight: 800; text-transform: uppercase; font-size: 13px; }
.detail-intro { font-size: 17px; color: var(--muted); line-height: 1.85; margin: 0 0 22px; }
.detail-panels { display: grid; grid-template-columns: 1fr 1.25fr; gap: 18px; margin-bottom: 18px; }
.detail-panels article { padding: 20px; border: 1px solid var(--line); background: var(--light); }
.detail-panels h3 { font-size: 20px; }
.detail-panels ul, .detail-panels ol { margin: 0; padding-left: 20px; }
.detail-note { padding: 16px 18px; border-left: 4px solid var(--green); background: #fff; box-shadow: 0 10px 24px rgba(26,57,63,.08); }
.appointment-page { display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: start; }
.map-card { border: 1px solid var(--line); background: #fff; box-shadow: 0 16px 38px rgba(26,57,63,.1); }
.map-frame { width: 100%; aspect-ratio: 1.42; background: var(--light); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-info { padding: 22px; }
.map-info h2, .appointment-form h2 { font-size: 28px; }
.map-info p, .appointment-form p { margin-top: 0; }
.appointment-form { min-height: 100%; }
.admin-page { padding-top: 48px; }
.locked { display: none; }
.login-screen { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 22px; background: linear-gradient(135deg, rgba(4,116,109,.96), rgba(10,155,142,.82)); }
.login-card { width: min(420px, 100%); display: grid; gap: 14px; padding: 30px; background: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.22); }
.login-card h1 { margin: 0; color: var(--green-dark); font-size: 32px; }
.login-card p { margin: 0; }
.login-card small { min-height: 18px; color: #b00020; font-weight: 800; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.admin-toolbar h2 { margin-bottom: 6px; }
.admin-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.button.secondary { background: var(--green-dark); }
.request-table-wrap { overflow-x: auto; border: 1px solid var(--line); background: #fff; box-shadow: 0 16px 38px rgba(26,57,63,.08); }
.request-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.request-table th, .request-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.request-table th { color: var(--green-dark); background: var(--light); font-size: 13px; text-transform: uppercase; }
.request-table td { color: var(--muted); line-height: 1.55; }
.request-table a { color: var(--green-dark); font-weight: 800; }
.empty-state { padding: 28px; border: 1px dashed var(--line); color: var(--muted); background: var(--light); text-align: center; }
.faq-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 32px; align-items: start; }
.faq-aside { position: sticky; top: 24px; padding: 26px; border: 1px solid var(--line); background: var(--light); }
.faq-aside h2 { font-size: 28px; }
.faq-aside p { margin-bottom: 22px; }
.faq-list { display: grid; gap: 14px; }
.faq-list details { border: 1px solid var(--line); background: #fff; box-shadow: 0 12px 28px rgba(26,57,63,.07); }
.faq-list summary { cursor: pointer; padding: 20px 22px; color: var(--green-dark); font-size: 18px; font-weight: 800; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: var(--orange); font-size: 24px; line-height: 1; }
.faq-list details[open] summary::after { content: "-"; }
.faq-list details p { margin: 0; padding: 0 22px 22px; }
@media (max-width: 850px) {
  .page-header { align-items: flex-start; flex-direction: column; padding-top: 16px; padding-bottom: 16px; }
  .grid, .cards, .features, .treatment-detail, .detail-panels, .appointment-page, .faq-layout { grid-template-columns: 1fr; }
  .faq-aside { position: static; }
  .admin-toolbar, .admin-actions { align-items: flex-start; flex-direction: column; }
  nav { gap: 14px; }
}
