/* Dr Alain site — asset version 1.0.1 */
:root {
    color-scheme: light;
    --page: #ffffff;
    --surface: #ffffff;
    --surface-soft: #f4fbfc;
    --hero: #edfafd;
    --ink: #073743;
    --ink-strong: #032c36;
    --muted: #5c747b;
    --line: #dcebed;
    --primary: #1587a4;
    --primary-light: #2fb2c7;
    --primary-dark: #0e708a;
    --mint: #61c5ad;
    --success: #13795b;
    --warning: #9a6510;
    --danger: #aa3546;
    --shadow-sm: 0 12px 34px rgba(7, 55, 67, 0.08);
    --shadow-lg: 0 30px 80px rgba(7, 55, 67, 0.16);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--page);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--ink);
    background: var(--page);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.modal-open {
    overflow: hidden;
}

button,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

a {
    color: inherit;
    text-underline-offset: 3px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3,
strong {
    text-wrap: balance;
}

.shell {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.sr-only {
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    position: absolute;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    padding: 10px 14px;
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 200;
    color: #fff;
    background: var(--ink);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    min-height: 82px;
    border-bottom: 1px solid rgba(220, 235, 237, 0.92);
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
}

.header-inner {
    min-height: 82px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 34px;
}

.doctor-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
}

.doctor-brand > span:last-child {
    display: grid;
    line-height: 1.16;
}

.doctor-brand strong {
    font-size: 1.06rem;
    letter-spacing: -0.02em;
}

.doctor-brand small {
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.medical-mark {
    width: 43px;
    height: 43px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    background: linear-gradient(145deg, var(--primary-light), var(--primary-dark));
    box-shadow: 0 12px 26px rgba(21, 135, 164, 0.24);
    font-size: 1.42rem;
    font-weight: 350;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(22px, 3.4vw, 42px);
}

.main-nav a,
.text-action,
.mobile-nav-action {
    border: 0;
    padding: 8px 0;
    color: #294f59;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 730;
    text-decoration: none;
    cursor: pointer;
}

.main-nav a:hover,
.text-action:hover,
.mobile-nav-action:hover {
    color: var(--primary);
}

.mobile-nav-action {
    display: none;
}

.header-actions,
.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.primary-action,
.phone-action {
    min-height: 46px;
    border: 0;
    border-radius: 12px;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 790;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.primary-action {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    box-shadow: 0 13px 27px rgba(21, 135, 164, 0.23);
}

.primary-action:hover {
    filter: saturate(1.08) brightness(1.02);
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(21, 135, 164, 0.29);
}

.primary-action.large,
.phone-action {
    min-height: 52px;
    padding-inline: 24px;
}

.phone-action {
    border: 1px solid var(--line);
    color: var(--ink);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.phone-action:hover {
    border-color: #b9d8dd;
    transform: translateY(-1px);
}

.full-width {
    width: 100%;
}

.menu-toggle {
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    background: #fff;
    cursor: pointer;
}

.menu-toggle::before,
.menu-toggle::after,
.menu-toggle > span:first-child {
    width: 20px;
    height: 2px;
    border-radius: 10px;
    position: absolute;
    content: "";
    background: var(--ink);
    transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle::before {
    transform: translateY(-6px);
}

.menu-toggle::after {
    transform: translateY(6px);
}

.menu-toggle[aria-expanded="true"] > span:first-child {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"]::before {
    transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
    transform: rotate(-45deg);
}

.hero-section {
    min-height: 650px;
    border-bottom: 1px solid rgba(190, 222, 228, 0.68);
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 35% 58%, rgba(255, 255, 255, 0.95) 0, rgba(255, 255, 255, 0) 35%),
        linear-gradient(110deg, #effbfd 0%, #f7fdfe 54%, #e7f8fb 100%);
}

.hero-section::after {
    width: 520px;
    height: 520px;
    border: 1px solid rgba(43, 153, 179, 0.16);
    border-radius: 50%;
    position: absolute;
    right: -230px;
    bottom: -280px;
    content: "";
}

.hero-grid {
    min-height: 650px;
    padding-block: 72px 76px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
    align-items: center;
    gap: clamp(48px, 7vw, 92px);
    position: relative;
    z-index: 1;
}

.location-line,
.section-kicker {
    color: var(--primary-dark);
    font-size: 0.72rem;
    font-weight: 830;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.location-line {
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 11px;
}

.location-line span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 5px rgba(97, 197, 173, 0.13);
}

.hero-copy h1 {
    max-width: 670px;
    margin-bottom: 28px;
    color: var(--ink-strong);
    font-size: clamp(3.05rem, 5.1vw, 5rem);
    font-weight: 820;
    letter-spacing: -0.064em;
    line-height: 0.99;
}

.hero-copy h1 > span {
    display: block;
}

.hero-copy h1 em {
    display: inline;
    color: var(--primary-light);
    font-style: normal;
}

.hero-lead {
    max-width: 650px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.72;
}

.hero-trust {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    color: #43636b;
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-trust span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.hero-trust b {
    color: var(--primary);
}

.agenda-card {
    border: 1px solid rgba(206, 226, 230, 0.94);
    border-radius: var(--radius-lg);
    padding: 34px 28px 24px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-lg);
}

.agenda-card-heading {
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.agenda-card-heading .section-kicker {
    margin-bottom: 7px;
}

.agenda-card h2 {
    margin: 0;
    font-size: 1.45rem;
    letter-spacing: -0.035em;
}

.duration-pill {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 11px;
    display: inline-flex;
    gap: 6px;
    color: #536e75;
    background: #f7fbfb;
    font-size: 0.76rem;
    font-weight: 760;
    white-space: nowrap;
}

.agenda-preview {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 17px;
    padding: 0;
    overflow: hidden;
    color: var(--ink);
    background: #fbfefe;
    text-align: left;
    cursor: pointer;
}

.agenda-preview-top {
    min-height: 70px;
    padding: 16px 18px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    background: #eef9fb;
}

.agenda-symbol {
    color: var(--primary);
    font-size: 1.15rem;
}

.agenda-preview-top > span:nth-child(2) {
    display: grid;
}

.agenda-preview-top small {
    color: #70868c;
    font-size: 0.65rem;
    font-weight: 760;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.agenda-preview-top strong {
    font-size: 0.9rem;
}

.available-copy {
    color: var(--success) !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.agenda-preview-days {
    min-height: 137px;
    display: grid;
}

.agenda-loading,
.agenda-empty {
    padding: 26px 18px;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 0.82rem;
    text-align: center;
}

.preview-day {
    min-height: 67px;
    border-top: 1px solid var(--line);
    padding: 13px 17px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
}

.preview-day:first-child {
    border-top: 0;
}

.preview-date {
    display: grid;
}

.preview-date strong {
    font-size: 0.82rem;
    text-transform: capitalize;
}

.preview-date small {
    color: #8ba0a5;
    font-size: 0.65rem;
    text-transform: capitalize;
}

.preview-slots {
    display: flex;
    gap: 7px;
}

.preview-slots span {
    border: 1px solid #cde0e4;
    border-radius: 8px;
    padding: 6px 9px;
    color: var(--primary-dark);
    background: #fff;
    font-size: 0.69rem;
    font-weight: 760;
}

.agenda-preview-cta {
    min-height: 49px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    font-size: 0.77rem;
    font-weight: 790;
}

.agenda-note {
    margin: 15px 3px 0;
    color: #7d9196;
    font-size: 0.72rem;
}

.practical-strip {
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.practical-grid {
    min-height: 90px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
}

.practical-item {
    min-width: 0;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    gap: 13px;
}

.practical-item + .practical-item {
    border-left: 1px solid var(--line);
}

.practical-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--primary);
    background: #f0fafb;
}

.practical-item > span:last-child {
    min-width: 0;
    display: grid;
}

.practical-item small {
    color: #8a9ca1;
    font-size: 0.67rem;
}

.practical-item strong {
    overflow: hidden;
    font-size: 0.85rem;
    text-overflow: ellipsis;
}

.steps-section,
.cabinet-section,
.contact-section {
    padding-block: 104px;
}

.steps-section {
    background: #fff;
}

.section-intro {
    max-width: 720px;
    margin-bottom: 52px;
}

.section-intro.centered {
    margin-inline: auto;
    text-align: center;
}

.section-intro .section-kicker,
.cabinet-copy .section-kicker,
.contact-copy .section-kicker {
    margin-bottom: 11px;
}

.section-intro h2,
.cabinet-copy h2,
.contact-copy h2,
.legal-content h1 {
    margin-bottom: 15px;
    color: var(--ink-strong);
    font-size: clamp(2rem, 3.3vw, 3.1rem);
    letter-spacing: -0.05em;
    line-height: 1.08;
}

.section-intro > p:last-child,
.cabinet-copy > p,
.contact-copy > p {
    color: var(--muted);
}

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

.step-card {
    min-height: 244px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 28px;
    position: relative;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.step-card > span {
    margin-bottom: 52px;
    display: block;
    color: var(--primary);
    font-size: 0.77rem;
    font-weight: 830;
    letter-spacing: 0.12em;
}

.step-card h3 {
    margin-bottom: 10px;
    font-size: 1.14rem;
    letter-spacing: -0.025em;
}

.step-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.91rem;
}

.cabinet-section {
    background: linear-gradient(120deg, #effafb, #f8fdfd);
}

.cabinet-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
    align-items: center;
    gap: clamp(54px, 9vw, 130px);
}

.cabinet-signature {
    min-height: 370px;
    border: 1px solid rgba(193, 221, 226, 0.8);
    border-radius: var(--radius-lg);
    display: grid;
    place-items: center;
    align-content: center;
    gap: 22px;
    background:
        radial-gradient(circle at 50% 42%, rgba(47, 178, 199, 0.18), transparent 40%),
        #f5fcfd;
}

.large-mark {
    width: 74px;
    height: 74px;
    border-radius: 21px;
    font-size: 2.25rem;
}

.cabinet-signature p {
    margin: 0;
    display: grid;
    color: #547178;
    font-size: 1rem;
    text-align: center;
}

.cabinet-signature strong {
    color: var(--ink);
    font-size: 1.65rem;
}

.cabinet-copy > p {
    max-width: 650px;
    margin-bottom: 30px;
    font-size: 1rem;
}

.contact-list {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
    list-style: none;
}

.contact-list li {
    border-bottom: 1px solid var(--line);
    padding: 13px 0;
    display: grid;
    grid-template-columns: 35px 1fr;
    align-items: start;
    gap: 10px;
}

.contact-list li > span {
    color: var(--primary);
    font-weight: 780;
}

.contact-list li div {
    display: grid;
    font-weight: 680;
}

.contact-list small {
    color: #83979c;
    font-size: 0.7rem;
    font-weight: 570;
}

.contact-list a {
    width: fit-content;
    text-decoration: none;
}

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

.contact-section {
    background: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(430px, 1.15fr);
    align-items: start;
    gap: clamp(50px, 8vw, 105px);
}

.medical-warning {
    border-left: 3px solid var(--primary-light);
    padding-left: 17px;
    font-size: 0.88rem;
}

.contact-form,
.patient-form {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 28px;
    display: grid;
    gap: 17px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.contact-form label,
.patient-form label {
    display: grid;
    gap: 7px;
    color: #284e57;
    font-size: 0.78rem;
    font-weight: 760;
}

.contact-form input,
.contact-form textarea,
.patient-form input {
    width: 100%;
    border: 1px solid #ccdee2;
    border-radius: 11px;
    padding: 12px 13px;
    color: var(--ink);
    background: #fff;
    resize: vertical;
}

.contact-form input,
.patient-form input {
    min-height: 48px;
}

.contact-form textarea {
    min-height: 130px;
}

.contact-form input:focus,
.contact-form textarea:focus,
.patient-form input:focus {
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(21, 135, 164, 0.12);
}

.consent-field,
.choice-line {
    grid-template-columns: auto 1fr !important;
    align-items: start;
    gap: 10px !important;
}

.consent-field input,
.choice-line input {
    width: 18px;
    min-height: 18px;
    margin: 2px 0 0;
    padding: 0;
    accent-color: var(--primary);
}

.consent-field span {
    color: var(--muted);
    font-weight: 560;
}

.honeypot {
    width: 1px;
    height: 1px;
    position: absolute;
    left: -10000px;
    overflow: hidden;
}

.form-status {
    min-height: 22px;
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.form-status.success {
    color: var(--success);
}

.form-status.error {
    color: var(--danger);
}

.site-footer {
    color: #dcebef;
    background: var(--ink-strong);
}

.footer-inner {
    min-height: 220px;
    padding-block: 48px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 28px 48px;
}

.footer-brand {
    color: #fff;
}

.footer-brand small,
.footer-inner > div > p {
    color: #97b3ba;
}

.footer-inner > div > p {
    margin: 15px 0 0;
    font-size: 0.82rem;
}

.footer-inner nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 11px 24px;
}

.footer-inner nav a,
.siteprime-credit a {
    color: #dcebef;
    font-size: 0.8rem;
    text-decoration: none;
}

.footer-inner nav a:hover,
.siteprime-credit a:hover {
    color: #fff;
    text-decoration: underline;
}

.siteprime-credit {
    grid-column: 1 / -1;
    margin: 0;
    color: #7f9fa7;
    font-size: 0.75rem;
}

.modal[hidden] {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 35, 43, 0.56);
    backdrop-filter: blur(8px);
}

.modal-panel {
    width: min(760px, calc(100% - 32px));
    max-height: min(90vh, 900px);
    border-radius: 25px;
    padding: clamp(25px, 4vw, 38px);
    position: relative;
    z-index: 1;
    overflow: auto;
    background: #fff;
    box-shadow: 0 35px 100px rgba(3, 44, 54, 0.28);
}

.patient-modal-panel {
    width: min(540px, calc(100% - 32px));
}

.modal-panel > .section-kicker,
.modal-panel [data-patient-register] > .section-kicker,
.modal-panel [data-patient-dashboard] > .section-kicker {
    margin-bottom: 7px;
}

.modal-panel h2 {
    margin-bottom: 8px;
    font-size: clamp(1.7rem, 4vw, 2.25rem);
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.modal-panel h2 + p {
    color: var(--muted);
    font-size: 0.9rem;
}

.modal-close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 11px;
    position: absolute;
    top: 17px;
    right: 17px;
    display: grid;
    place-items: center;
    color: #6b858b;
    background: #eef7f8;
    font-size: 1.45rem;
    cursor: pointer;
}

.progress-steps {
    margin: 23px 0 26px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.progress-steps span {
    border-radius: 8px;
    padding: 8px 10px;
    color: #789097;
    background: #f3f8f9;
    font-size: 0.72rem;
    font-weight: 720;
    text-align: center;
}

.progress-steps span.active {
    color: var(--primary-dark);
    background: #e8f7fa;
}

.calendar-heading {
    margin-bottom: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.calendar-heading p,
.times-heading p {
    margin: 0;
    font-size: 0.83rem;
    font-weight: 780;
}

.month-controls {
    display: grid;
    grid-template-columns: 36px minmax(130px, auto) 36px;
    align-items: center;
    gap: 7px;
}

.month-controls button {
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: #fff;
    font-size: 1.35rem;
    cursor: pointer;
}

.month-controls button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.month-controls strong {
    font-size: 0.85rem;
    text-align: center;
    text-transform: capitalize;
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.calendar-weekdays {
    margin-bottom: 6px;
}

.calendar-weekdays span {
    color: #80959b;
    font-size: 0.66rem;
    font-weight: 740;
    text-align: center;
}

.calendar-day,
.calendar-placeholder {
    aspect-ratio: 1.15;
    border-radius: 9px;
}

.calendar-day {
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    background: #fff;
    font-size: 0.76rem;
    font-weight: 730;
}

.calendar-day:not(:disabled) {
    color: var(--primary-dark);
    background: #f0fafb;
    cursor: pointer;
}

.calendar-day:not(:disabled):hover,
.calendar-day.selected {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary);
}

.calendar-day:disabled {
    color: #b8c6c9;
    background: #fafcfc;
}

.times-panel {
    border-top: 1px solid var(--line);
    margin-top: 22px;
    padding-top: 21px;
}

.times-heading {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.times-heading span {
    color: var(--success);
    font-size: 0.74rem;
    font-weight: 720;
}

.times-grid {
    min-height: 52px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.time-button {
    min-height: 40px;
    border: 1px solid #cfe2e5;
    border-radius: 9px;
    color: var(--primary-dark);
    background: #fff;
    font-size: 0.76rem;
    font-weight: 760;
    cursor: pointer;
}

.time-button:hover,
.time-button.selected {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary);
}

.times-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 12px;
    color: var(--muted);
    background: #f6fafb;
    font-size: 0.78rem;
    text-align: center;
}

.modal-help {
    margin: 18px 0 0;
    color: #7d9398;
    font-size: 0.73rem;
}

.patient-form {
    margin-top: 21px;
    border: 0;
    padding: 0;
    box-shadow: none;
}

.patient-form fieldset {
    min-width: 0;
    border: 0;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 9px;
}

.patient-form legend {
    margin-bottom: 8px;
    color: #284e57;
    font-size: 0.78rem;
    font-weight: 760;
}

.choice-line {
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 11px 13px;
    cursor: pointer;
}

.choice-line:has(input:checked) {
    border-color: var(--primary);
    background: #effafb;
}

.choice-line span {
    font-weight: 650;
}

.patient-account-status {
    border-radius: 10px;
    padding: 11px 13px;
    color: var(--warning);
    background: #fff7e7;
    font-size: 0.8rem;
}

.patient-account-status.approved {
    color: var(--success);
    background: #eaf8f3;
}

.patient-appointments {
    margin-block: 20px;
    display: grid;
    gap: 9px;
}

.patient-appointment {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
}

.patient-appointment strong,
.patient-appointment small {
    display: block;
}

.patient-appointment small {
    color: var(--muted);
}

.appointment-badge {
    border-radius: 999px;
    padding: 5px 8px;
    color: var(--warning);
    background: #fff4db;
    font-size: 0.65rem;
    font-weight: 760;
}

.appointment-badge.confirmed {
    color: var(--success);
    background: #e7f7f1;
}

.appointment-badge.rejected,
.appointment-badge.cancelled {
    color: var(--danger);
    background: #feedef;
}

.legal-main {
    min-height: 65vh;
    padding-block: 84px 110px;
    background: linear-gradient(150deg, #f1fbfc, #fff 42%);
}

.legal-content {
    max-width: 850px;
}

.legal-content > p {
    color: var(--muted);
}

.legal-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    margin-top: 30px;
    padding: clamp(24px, 4vw, 42px);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.legal-card h2 {
    margin: 30px 0 8px;
    font-size: 1.22rem;
}

.legal-card h2:first-child {
    margin-top: 0;
}

.legal-card p,
.legal-card li {
    color: var(--muted);
    font-size: 0.93rem;
}

.legal-card .pending {
    border-radius: 9px;
    padding: 9px 11px;
    color: var(--warning);
    background: #fff7e7;
    font-weight: 680;
}

:focus-visible {
    outline: 3px solid rgba(21, 135, 164, 0.34);
    outline-offset: 3px;
}

@media (max-width: 1050px) {
    .header-inner {
        grid-template-columns: auto auto 1fr;
    }

    .menu-toggle {
        display: inline-flex;
        justify-self: end;
    }

    .main-nav {
        border-top: 1px solid var(--line);
        padding: 15px 24px 20px;
        position: absolute;
        top: 81px;
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 3px;
        background: #fff;
        box-shadow: 0 20px 36px rgba(7, 55, 67, 0.1);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav.legal-nav {
        border-top: 0;
        padding: 0;
        position: static;
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 10px 24px;
        background: transparent;
        box-shadow: none;
    }

    .main-nav a {
        padding: 10px 0;
    }

    .mobile-nav-action {
        border: 0;
        padding: 10px 0;
        display: block;
        text-align: left;
    }

    .mobile-nav-action.primary {
        border-radius: 10px;
        margin-top: 6px;
        padding: 11px 14px;
        color: #fff;
        background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    }

    .main-nav.legal-nav .mobile-nav-action {
        display: none;
    }

    .header-actions {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(380px, 0.85fr);
        gap: 42px;
    }

    .hero-copy h1 {
        font-size: clamp(3rem, 6vw, 4.2rem);
    }

    .times-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .header-inner {
        grid-template-columns: 1fr auto;
        gap: 18px;
    }

    .menu-toggle {
        grid-column: 2;
        grid-row: 1;
    }

    .header-actions {
        display: none;
    }

    .main-nav.legal-nav {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-bottom: 14px;
    }

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

    .hero-grid {
        padding-block: 58px;
    }

    .hero-copy {
        max-width: 700px;
    }

    .agenda-card {
        max-width: 620px;
    }

    .practical-grid {
        grid-template-columns: 1fr;
        padding-block: 12px;
    }

    .practical-item {
        padding: 13px 0;
    }

    .practical-item + .practical-item {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

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

    .step-card {
        min-height: 0;
    }

    .step-card > span {
        margin-bottom: 24px;
    }

    .cabinet-signature {
        min-height: 300px;
    }

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

    .footer-inner nav {
        justify-content: flex-start;
    }

    .siteprime-credit {
        grid-column: 1;
    }
}

@media (max-width: 620px) {
    .shell {
        width: min(100% - 30px, 1180px);
    }

    .site-header,
    .header-inner {
        min-height: 72px;
    }

    .main-nav {
        top: 71px;
    }

    .medical-mark {
        width: 40px;
        height: 40px;
    }

    .hero-section,
    .hero-grid {
        min-height: auto;
    }

    .hero-grid {
        padding-block: 44px 48px;
    }

    .location-line {
        align-items: flex-start;
        font-size: 0.63rem;
    }

    .hero-copy h1 {
        font-size: clamp(2.65rem, 13vw, 3.6rem);
    }

    .hero-lead {
        font-size: 1rem;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-action.large,
    .phone-action {
        width: 100%;
    }

    .hero-trust {
        gap: 11px;
        flex-direction: column;
    }

    .agenda-card {
        border-radius: 22px;
        padding: 24px 17px 18px;
    }

    .agenda-card-heading {
        gap: 10px;
    }

    .available-copy {
        display: none;
    }

    .agenda-preview-top {
        grid-template-columns: auto 1fr;
    }

    .preview-day {
        grid-template-columns: 1fr;
    }

    .preview-slots {
        justify-content: flex-start;
    }

    .steps-section,
    .cabinet-section,
    .contact-section {
        padding-block: 72px;
    }

    .contact-form {
        padding: 20px;
    }

    .modal {
        align-items: end;
    }

    .modal-panel,
    .patient-modal-panel {
        width: 100%;
        max-height: 93vh;
        border-radius: 24px 24px 0 0;
        padding: 25px 17px 30px;
    }

    .modal-close {
        top: 13px;
        right: 13px;
    }

    .calendar-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .month-controls {
        grid-template-columns: 40px 1fr 40px;
    }

    .calendar-day {
        aspect-ratio: 1;
        font-size: 0.72rem;
    }

    .times-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .times-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .patient-form {
        padding: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
