* { box-sizing: border-box; }
body {
    margin: 0; min-height: 100vh; display: flex; flex-direction: column;
    background: var(--paper); color: var(--ink); font: 16px/1.5 var(--font);
}
a { color: var(--navy); text-decoration: none; }
button, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header__inner, .widget, .site-footer { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.site-header__inner { min-height: 78px; display: flex; justify-content: space-between; align-items: center; }
.brand img { width: 48px; height: 48px; display: block; }
.header-right, .actions { display: flex; align-items: center; gap: 24px; }
.header-phone { color: var(--ink); white-space: nowrap; font-size: 16px; font-weight: 700; }
.back-link { padding: 9px 15px; border: 1px solid #c7d1db; border-radius: 7px; font-size: 14px; }
.back-link span, .help-link span { margin-left: 6px; }
a:hover { color: var(--action); text-decoration: underline; text-underline-offset: 4px; }
.widget { flex: 1; align-content: start; padding-block: clamp(40px, 6.6vw, 92px); }
.welcome { display: grid; grid-template-columns: 0.95fr 1.08fr; gap: clamp(28px, 5.2vw, 80px); align-items: center; }
.welcome-copy { padding-block: 20px; }
.project-name { color: var(--action); font-size: 15px; font-weight: 500; margin-bottom: 20px; overflow-wrap: anywhere; }
.welcome h1 { font-size: clamp(48px, 5.45vw, 80px); font-weight: 500; letter-spacing: -.045em; line-height: 1.02; max-width: 11.5ch; }
.lead { max-width: 40ch; margin-top: 24px; color: var(--muted); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; }
.prebooking-note { max-width: 42ch; margin-top: 20px; padding: 10px 14px; border-left: 3px solid var(--action); background: #edf2f7; color: var(--ink); }
.prebooking-note time { white-space: nowrap; }
.prebooking-note:not([hidden]) + .lead { margin-top: 14px; }
.welcome-help { max-width: 390px; border-top: 1px solid #cfd8dc; margin-top: 36px; padding-top: 19px; }
.welcome-help p { font-size: 13px; color: var(--muted); }
.help-link { display: inline-flex; align-items: center; min-height: 40px; font-weight: 700; }
.residence { position: relative; overflow: hidden; height: clamp(370px, 35vw, 510px); background: #d6e2ea; border-radius: 6px 64px 6px 6px; }
.residence img { width: 100%; height: 100%; object-fit: cover; object-position: 51% 46%; display: block; }
.residence::after { content: ''; position: absolute; inset: 48% 0 0; background: linear-gradient(transparent, #1023369e); pointer-events: none; }
.residence figcaption { position: absolute; z-index: 1; left: 24px; bottom: 20px; display: flex; gap: 8px; align-items: center; color: white; font-size: 14px; }
.pin { width: 11px; height: 11px; border: 1.5px solid currentColor; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.site-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-block: 19px; font-size: 13px; color: var(--muted); }
.site-footer a { color: inherit; }

.booking-heading { margin-bottom: 32px; }
.booking-heading .project-name { margin-bottom: 9px; }
.booking-heading h1 { font-size: clamp(36px, 4vw, 56px); letter-spacing: -.035em; font-weight: 500; }
.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .48fr); gap: clamp(26px, 6vw, 88px); align-items: start; }
.appointment { border-top: 2px solid var(--navy); padding: 24px 0 0; }
.visit-info { padding: 25px 27px; border-radius: 5px 24px 5px 5px; background: #eaf0f3; min-width: 0; }
.appointment h2, .visit-info h2 { font-size: 23px; letter-spacing: -.025em; }
.visit-info .location { font-size: 18px; margin-top: 12px; line-height: 1.5; }
.visit-line { border-top: 1px solid #cdd8df; margin-top: 22px; padding-top: 17px; }
.visit-line h3 { font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 7px; }
.visit-line p, .location { white-space: pre-line; overflow-wrap: anywhere; }
#phone { font-size: 19px; font-weight: 600; }
.section-row, .booking-submit { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.section-row > span { color: var(--muted); font-size: 13px; }
.day-menu { position: relative; color: var(--action); font-size: 14px; padding: 8px 2px; cursor: pointer; }
.day-menu select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.day-menu:focus-within { outline: 2px solid var(--action); outline-offset: 2px; }
.date-picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 16px 0 28px; }
.date-pick, .time {
    border: 1px solid #c8d4de; border-radius: 8px; background: #fff; color: var(--ink); text-align: center;
}
.date-pick { min-height: 70px; padding: 7px; display: grid; align-content: center; }
.date-pick small { font-size: 12px; color: var(--muted); }
.date-pick strong { font-size: 17px; font-weight: 600; }
.date-pick[aria-pressed="true"] { background: var(--navy); color: white; border-color: var(--navy); }
.date-pick[aria-pressed="true"] small { color: #d9e8f6; }
.times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.time { min-height: 46px; padding: 8px 4px; font-size: 15px; font-weight: 500; }
.time[aria-pressed="true"] { background: #e3edf7; border-color: var(--action); box-shadow: inset 0 0 0 1px var(--action); }
.time:hover:not(:disabled), .date-pick:hover:not(:disabled) { border-color: var(--action); }
.booking-submit { padding-top: 22px; margin-top: 25px; border-top: 1px solid var(--line); }
#selection { color: var(--muted); font-size: 14px; }
.primary, .secondary { padding: 12px 21px; min-height: 46px; border-radius: 7px; border: 1px solid var(--navy); background: var(--navy); color: white; font-weight: 600; font-size: 15px; }
.primary:hover:enabled { background: var(--action-hover); }
.secondary { background: white; color: var(--navy); border-color: #b7c7d5; }
.primary:disabled { background: #dce3e7; color: #566875; border-color: #dce3e7; }
.text-link { padding: 7px 0; min-height: 38px; background: none; border: 0; font-size: 14px; color: var(--action); text-decoration: underline; text-underline-offset: 4px; }
.refresh { margin-top: 17px; color: var(--muted); }
.confirmed { border-left: 3px solid #51866a; padding: 4px 0 4px 18px; margin: 4px 0 24px; }
.state-label { display: block; color: var(--green); font-size: 14px; font-weight: 600; }
.confirmed strong { display: block; font-size: clamp(23px, 2.6vw, 34px); line-height: 1.27; letter-spacing: -.02em; margin: 8px 0 3px; }
.confirmed small { color: var(--muted); }
.confirmed p { margin: 12px 0 0; }
.actions { gap: 10px 20px; flex-wrap: wrap; }
#manage-actions { margin-bottom: 19px; }
.confirm { padding: 20px; border: 1px solid #d7c5a9; border-radius: 8px; margin-bottom: 20px; }
.confirm p { margin: 9px 0 12px; }
.danger { color: #974239; }
.feedback, .empty-note, .outcome { padding: 13px 16px; background: var(--wash); border-radius: 6px; color: var(--ink); }
.feedback { margin-bottom: 18px; }
.feedback.is-success, .outcome { color: var(--green); background: var(--green-soft); }
.feedback.error { color: #853a32; background: #f9eae5; }
#retry { margin: -10px 0 14px; }
@media (max-width: 820px) {
    .site-header__inner, .widget, .site-footer { width: calc(100% - 48px); }
    .welcome { gap: 28px; }
    .welcome h1 { font-size: 50px; }
    .residence { height: 380px; border-top-right-radius: 40px; }
    .booking-layout { gap: 24px; grid-template-columns: minmax(0, 1.55fr) minmax(225px, 1fr); }
    .booking-submit { align-items: start; flex-direction: column; }
    .times { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
    .site-header__inner, .widget, .site-footer { width: calc(100% - 40px); }
    .site-header__inner { min-height: 65px; }
    .brand img { width: 40px; height: 40px; }
    .header-right { gap: 13px; }
    .header-phone { font-size: 14px; padding-block: 10px; }
    .back-link { font-size: 13px; padding: 7px 9px; }
    .widget { padding-block: 32px; }
    .welcome, .booking-layout { grid-template-columns: minmax(0,1fr); gap: 28px; }
    .welcome-copy { padding: 0; }
    .welcome .project-name { margin-bottom: 12px; }
    .welcome h1 { font-size: clamp(44px, 9vw, 56px); max-width: 13ch; }
    .lead { margin-top: 14px; }
    .welcome-help { max-width: none; margin-top: 24px; padding-top: 12px; }
    .residence { height: clamp(190px, 52vw, 290px); border-top-right-radius: 36px; }
    .residence img { object-position: center 52%; }
    .residence figcaption { left: 16px; bottom: 12px; }
    .booking-heading { margin-bottom: 22px; }
    .appointment { padding-top: 18px; }
    .date-picks, .times { gap: 6px; }
    .date-pick { padding-inline: 2px; min-height: 62px; }
    .date-pick strong { font-size: 15px; }
    .booking-submit .primary { width: 100%; }
    .visit-info { padding: 21px; }
    .site-footer { padding-block: 14px; }
}

.lookup-form { display: grid; gap: 7px; margin: 22px 0 18px; max-width: 400px; }
.lookup-form label { font-size: 14px; font-weight: 600; }
.lookup-form input { box-sizing: border-box; width: 100%; padding: 10px 12px; min-height: 44px; font: inherit; background: white; color: var(--ink); border: 1px solid #a8b9c7; border-radius: 6px; margin-bottom: 6px; }
.lookup-form .primary { justify-self: start; margin-top: 3px; }
#unit-choice { margin: 24px 0; }
#unit-list { display: grid; gap: 8px; margin: 10px 0; }
#unit-list button { text-align: left; }
.booking-heading { position: relative; }
.booking-heading .project-name { padding-right: 74px; }
.session-exit { position: absolute; top: 0; right: 0; }
.welcome:has(.lookup-form) .welcome-help { padding-top: 12px; margin-top: 15px; }
@media (max-width: 560px) { .lookup-form .primary { width: 100%; } }

.welcome-help { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.section-note { margin-top: 12px; color: var(--muted); max-width: 62ch; }
.settlement, .key-contacts { border-top: 1px solid var(--line); margin-top: clamp(32px,5vw,72px); padding-top: clamp(24px,3vw,40px); scroll-margin-top: 20px; }
.settlement { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.3fr); gap: clamp(28px,6vw,88px); align-items: start; }
.settlement h2, .key-contacts h2 { font-size: clamp(24px,2.4vw,36px); font-weight: 500; letter-spacing: -.025em; }
.settlement-heading p, .key-contacts p { margin-top: 12px; color: var(--muted); line-height: 1.55; max-width: 57ch; }
.settlement-list { list-style: none; margin: 0; padding: 0; counter-reset: phase; }
.settlement-list li { position: relative; counter-increment: phase; padding: 2px 0 20px 44px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.settlement-list li:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.settlement-list li::before { content: counter(phase); position: absolute; left: 0; top: 0; color: var(--action); width: 29px; height: 29px; line-height: 27px; border: 1px solid var(--line); border-radius: 50%; text-align: center; font-weight: 500; }
.settlement-list h3 { font-size: clamp(17px,1.45vw,21px); font-weight: 500; line-height: 1.3; }
.settlement-list p { color: var(--muted); margin-top: 5px; line-height: 1.55; }
.key-contacts { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.key-contacts nav { display: flex; flex-wrap: wrap; gap: 8px; }
.key-contacts a { display: inline-flex; min-height: 44px; align-items: center; padding: 7px 14px; border: 1px solid #b9c7d3; border-radius: 7px; }
@media (max-width: 760px) {
    .settlement { grid-template-columns: minmax(0,1fr); gap: 24px; }
    .key-contacts { align-items: start; flex-direction: column; }
}
