:root {
    --ink: #102027;
    --muted: #5d6d73;
    --paper: #fbfdfc;
    --line: #dfe8e5;
    --teal: #047d84;
    --teal-dark: #035d63;
    --coral: #e86f61;
    --mint: #dff5ef;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(12, 50, 54, .14);
}

* {
    box-sizing: border-box;
}

img,
svg,
video {
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 112px;
}

body {
    margin: 0;
    font-family: "Noto Kufi Arabic", Tahoma, Arial, sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.8;
    overflow-x: hidden;
}

body,
button,
input,
select,
textarea {
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: fixed;
    z-index: 20;
    inset: 18px 24px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: 0 18px 50px rgba(20, 42, 45, .12);
    backdrop-filter: blur(18px);
    border-radius: 10px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 210px;
    min-width: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: var(--teal);
    color: var(--white);
    font-weight: 800;
    letter-spacing: 0;
}

.brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex: 0 0 auto;
}

.brand strong,
.brand small {
    display: block;
    overflow-wrap: anywhere;
}

.brand small {
    color: var(--muted);
    font-size: 12px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #31474d;
    font-size: 14px;
    min-width: 0;
}

.nav a {
    padding: 8px 11px;
    border-radius: 6px;
    transition: background .25s ease, color .25s ease;
}

.nav a:hover,
.nav-admin {
    background: var(--mint);
    color: var(--teal-dark);
}

.nav-action {
    background: var(--teal);
    color: var(--white);
}

.nav-action:hover {
    background: var(--teal-dark);
    color: var(--white);
}

.nav-action.secondary {
    background: var(--mint);
    color: var(--teal-dark);
}

.hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    align-items: center;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: heroZoom 14s ease-in-out infinite alternate;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(251, 253, 252, .1), rgba(251, 253, 252, .82) 50%, rgba(251, 253, 252, .96));
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(760px, calc(100% - 40px));
    margin: 130px auto 70px;
    margin-right: 96px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--teal);
    font-weight: 800;
    font-size: 14px;
}

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

h1 {
    margin-bottom: 18px;
    font-size: 72px;
    line-height: 1.15;
    letter-spacing: 0;
}

h2 {
    font-size: 42px;
    line-height: 1.28;
    letter-spacing: 0;
}

.hero-lead,
.section-head p,
.doctor-copy p,
.booking-copy p {
    max-width: 680px;
    color: #32484d;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 26px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    text-align: center;
    white-space: normal;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    background: var(--teal);
    color: var(--white);
    box-shadow: 0 14px 32px rgba(4, 125, 132, .28);
}

.btn.primary:hover {
    background: var(--teal-dark);
}

.btn.ghost {
    background: rgba(255, 255, 255, .82);
    border-color: var(--line);
    color: var(--teal-dark);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 660px;
    margin: 30px 0 0;
}

.hero-stats div,
.info-item,
.service-card,
.timeline div,
.booking-form,
.dashboard-card,
.admin-panel {
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(223, 232, 229, .9);
    box-shadow: var(--shadow);
}

.hero-stats div {
    padding: 16px;
    border-radius: 8px;
}

dt {
    color: var(--muted);
    font-size: 12px;
}

dd {
    margin: 4px 0 0;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.info-band {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.2fr;
    gap: 16px;
    width: min(1180px, calc(100% - 40px));
    margin: -42px auto 80px;
    position: relative;
    z-index: 3;
}

.info-item {
    padding: 20px;
    border-radius: 8px;
}

.info-item span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 6px;
}

.contact-section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 96px;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 24px;
    align-items: center;
    padding: 28px;
    border-radius: 8px;
    background: #102027;
    color: var(--white);
    box-shadow: var(--shadow);
}

.contact-copy p {
    color: rgba(255, 255, 255, .76);
    max-width: 680px;
}

.contact-section .eyebrow {
    color: #8ee4d4;
}

.contact-section h2 {
    margin-bottom: 12px;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.contact-actions .btn.ghost {
    background: rgba(255, 255, 255, .1);
    color: var(--white);
    border-color: rgba(255, 255, 255, .22);
}

.section,
.doctor-section,
.booking-section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 96px;
}

.section-head {
    display: block;
    text-align: center;
    margin-bottom: 28px;
}

.section-head .eyebrow {
    margin-inline: auto;
}

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

.service-card {
    min-height: 250px;
    padding: 24px;
    border-radius: 8px;
    transition: transform .25s ease, border-color .25s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(4, 125, 132, .32);
}

.service-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 8px;
    margin-bottom: 18px;
    background:
        radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .9), transparent 34%),
        linear-gradient(135deg, rgba(4, 125, 132, .13), rgba(232, 111, 97, .18));
    color: var(--teal-dark);
    border: 1px solid rgba(4, 125, 132, .12);
    box-shadow: 0 14px 34px rgba(4, 125, 132, .12);
}

.service-icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-baby {
    color: #047d84;
}

.icon-stethoscope {
    color: #365486;
}

.icon-growth {
    color: #2f7d55;
}

.icon-chat {
    color: #9b5b34;
}

.icon-record {
    color: #6f5aa8;
}

.icon-heart {
    color: #c94d58;
}

.service-icon::before,
.service-icon::after {
    content: "";
    position: absolute;
    box-sizing: border-box;
    display: none;
}

.icon-baby::before {
    width: 24px;
    height: 24px;
    border: 3px solid currentColor;
    border-radius: 50%;
    top: 10px;
}

.icon-baby::after {
    width: 30px;
    height: 15px;
    border: 3px solid var(--coral);
    border-top: 0;
    border-radius: 0 0 18px 18px;
    bottom: 10px;
}

.icon-stethoscope::before {
    width: 25px;
    height: 27px;
    border: 3px solid currentColor;
    border-top: 0;
    border-radius: 0 0 18px 18px;
    top: 10px;
}

.icon-stethoscope::after {
    width: 12px;
    height: 12px;
    border: 3px solid var(--coral);
    border-radius: 50%;
    right: 12px;
    bottom: 10px;
}

.icon-growth::before {
    width: 28px;
    height: 24px;
    border-right: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    transform: rotate(-45deg);
    bottom: 13px;
}

.icon-growth::after {
    width: 9px;
    height: 9px;
    border-top: 3px solid var(--coral);
    border-right: 3px solid var(--coral);
    transform: rotate(-45deg);
    top: 12px;
    left: 14px;
}

.icon-chat::before {
    width: 30px;
    height: 22px;
    border: 3px solid currentColor;
    border-radius: 8px;
}

.icon-chat::after {
    width: 10px;
    height: 10px;
    border-right: 3px solid var(--coral);
    border-bottom: 3px solid var(--coral);
    transform: rotate(45deg);
    bottom: 11px;
    right: 16px;
}

.icon-record::before {
    width: 24px;
    height: 31px;
    border: 3px solid currentColor;
    border-radius: 5px;
}

.icon-record::after {
    width: 16px;
    height: 10px;
    border-right: 3px solid var(--coral);
    border-bottom: 3px solid var(--coral);
    transform: rotate(35deg);
}

.icon-heart::before {
    width: 24px;
    height: 24px;
    background: var(--coral);
    transform: rotate(45deg);
    border-radius: 5px;
}

.icon-heart::after {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    box-shadow: -8px 0 0 var(--coral), 0 -8px 0 var(--coral);
    transform: rotate(45deg);
}

.service-card p,
.timeline p {
    color: var(--muted);
}

.reviews-section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 96px;
}

.posts-section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 96px;
}

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

.post-card {
    display: grid;
    align-content: start;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(223, 232, 229, .95);
    box-shadow: var(--shadow);
}

.post-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--mint);
}

.post-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
}

.post-card:hover .post-card__media img {
    transform: scale(1.04);
}

.post-card__body {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.post-card__body span,
.post-date {
    color: var(--muted);
    font-size: 13px;
}

.post-card__body span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.post-card__body h3 {
    margin-bottom: 0;
    font-size: 21px;
}

.post-card__body p {
    color: var(--muted);
}

.post-card__body .btn {
    justify-self: start;
}

.reviews-marquee {
    position: relative;
    overflow: hidden;
    padding: 14px 0 28px;
    isolation: isolate;
}

.reviews-marquee::before,
.reviews-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 130px;
    pointer-events: none;
}

.reviews-marquee::before {
    right: 0;
    background: linear-gradient(90deg, rgba(251, 253, 252, 0), var(--paper));
}

.reviews-marquee::after {
    left: 0;
    background: linear-gradient(270deg, rgba(251, 253, 252, 0), var(--paper));
}

.reviews-track {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: reviewsMarquee 120s linear infinite;
    will-change: transform;
}

.reviews-marquee:hover .reviews-track,
.reviews-marquee:focus-within .reviews-track {
    animation-play-state: paused;
}

.review-card {
    display: block;
    flex: 0 0 280px;
    width: 280px;
    aspect-ratio: 4 / 5;
    padding: 0;
    border: 1px solid rgba(223, 232, 229, .95);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
    cursor: pointer;
    transform: translateZ(0);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

@keyframes reviewsMarquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(50%);
    }
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: rgba(4, 125, 132, .32);
    box-shadow: 0 26px 70px rgba(12, 50, 54, .16);
}

.review-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top center;
}

.review-modal[hidden] {
    display: none;
}

.review-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.review-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 22, 28, .68);
    backdrop-filter: blur(4px);
}

.review-modal__dialog {
    position: relative;
    width: min(860px, 100%);
    max-height: min(88vh, 920px);
    margin: 0;
    padding: 12px;
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
}

.review-modal__dialog img {
    display: block;
    width: 100%;
    max-height: calc(88vh - 24px);
    object-fit: contain;
    border-radius: 6px;
}

.review-modal__close {
    position: absolute;
    top: -14px;
    left: -14px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--teal);
    color: var(--white);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}

.doctor-section,
.booking-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

.post-page {
    width: min(960px, calc(100% - 40px));
    margin: 140px auto 90px;
}

.post-article {
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(223, 232, 229, .95);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 28px;
}

.post-article__image {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 24px;
}

.post-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 14px;
    overflow: hidden;
    border-radius: 8px;
    background: #102027;
    border: 1px solid rgba(223, 232, 229, .95);
}

.post-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.post-video-link {
    margin-bottom: 22px;
}

.post-content {
    color: #263d42;
    font-size: 18px;
    line-height: 2;
    margin: 26px 0;
    white-space: normal;
}

.post-content p {
    margin-bottom: 18px;
}

.check-list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 24px 0 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-right: 28px;
}

.check-list li::before {
    content: "";
    position: absolute;
    top: 12px;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--coral);
}

.timeline {
    display: grid;
    gap: 14px;
}

.timeline div {
    padding: 22px;
    border-radius: 8px;
}

.timeline span {
    color: var(--coral);
    font-weight: 800;
}

.timeline strong {
    display: block;
    font-size: 20px;
}

.booking-section {
    padding: 48px;
    width: 100%;
    max-width: none;
    background: var(--mint);
    margin-bottom: 0;
}

.booking-section > * {
    width: min(560px, 100%);
}

.booking-copy {
    justify-self: end;
}

.booking-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 22px 0 14px;
}

.booking-contact div {
    padding: 14px;
    border: 1px solid rgba(4, 125, 132, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .78);
}

.booking-contact span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 4px;
}

.booking-contact strong {
    display: block;
    overflow-wrap: anywhere;
}

.booking-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.booking-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 22px;
    border-radius: 8px;
}

label {
    display: grid;
    gap: 6px;
    color: #263d42;
    font-weight: 700;
    font-size: 13px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 12px 13px;
    font: inherit;
    color: var(--ink);
    background: var(--white);
    outline: none;
    transition: border .2s ease, box-shadow .2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(4, 125, 132, .12);
}

.full {
    grid-column: 1 / -1;
}

.alert {
    padding: 14px 16px;
    border-radius: 7px;
    margin: 20px 0;
    font-weight: 700;
}

.alert.success {
    background: #e5f8ed;
    color: #12643b;
}

.alert.error {
    background: #fff0ef;
    color: #a83226;
}

.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    padding: 28px;
    background: #102027;
    color: var(--white);
}

.footer span {
    color: rgba(255, 255, 255, .74);
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.admin-body {
    background: #f3f7f6;
}

.admin-shell {
    width: min(1240px, calc(100% - 32px));
    margin: 32px auto;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-nav a {
    padding: 9px 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 7px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.dashboard-card {
    border-radius: 8px;
    padding: 20px;
}

.dashboard-card span {
    color: var(--muted);
}

.dashboard-card strong {
    display: block;
    font-size: 34px;
}

.admin-panel {
    border-radius: 8px;
    padding: 18px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: right;
    vertical-align: top;
}

.admin-table th {
    color: var(--teal-dark);
    font-size: 13px;
}

.admin-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.login-card {
    width: min(440px, calc(100% - 32px));
    margin: 10vh auto;
    padding: 26px;
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

@keyframes heroZoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

@media (max-width: 900px) {
    .site-header {
        position: sticky;
        top: 0;
        inset: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin: 0;
        padding: 10px 14px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        background: rgba(255, 255, 255, .96);
    }

    .brand {
        width: 100%;
    }

    .brand-logo {
        width: 46px;
        height: 46px;
    }

    .nav {
        display: grid;
        grid-template-columns: repeat(3, max-content);
        gap: 6px;
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: thin;
        white-space: nowrap;
    }

    .nav a {
        padding: 8px 10px;
    }

    .hero {
        min-height: auto;
        display: block;
        background: var(--paper);
        overflow: visible;
    }

    .hero-media {
        position: relative;
        display: block;
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        object-position: center top;
        animation: none;
    }

    .hero-content {
        width: min(100% - 32px, 720px);
        margin: 24px auto 44px;
    }

    .hero-overlay {
        display: none;
    }

    h1 {
        font-size: 46px;
    }

    h2 {
        font-size: 32px;
    }

    .hero-lead,
    .section-head p,
    .doctor-copy p,
    .booking-copy p {
        font-size: 16px;
    }

    .info-band,
    .service-grid,
    .contact-section,
    .posts-grid,
    .doctor-section,
    .booking-section,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .info-band {
        width: min(100% - 32px, 720px);
        margin: 0 auto 56px;
    }

    .section,
    .contact-section,
    .posts-section,
    .reviews-section,
    .doctor-section {
        width: min(100% - 32px, 720px);
        margin-bottom: 64px;
    }

    .service-card {
        min-height: auto;
    }

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

    .review-card {
        flex-basis: 240px;
        width: 240px;
    }

    .booking-section {
        padding: 40px 16px;
        width: 100%;
    }

    .booking-copy {
        justify-self: stretch;
    }

    .booking-contact-actions .btn {
        flex: 1 1 160px;
    }

    .booking-section > * {
        width: min(100%, 720px);
        margin-right: auto;
        margin-left: auto;
    }

    .footer {
        display: grid;
        gap: 8px;
        text-align: center;
    }

    .contact-section {
        padding: 22px;
        margin-bottom: 64px;
    }

    .contact-actions {
        justify-content: stretch;
    }

    .contact-actions .btn {
        flex: 1 1 160px;
    }

    .post-page {
        width: min(100% - 32px, 720px);
        margin: 36px auto 64px;
    }

    .admin-shell {
        width: min(100% - 24px, 900px);
        margin: 18px auto;
    }

    .admin-header {
        display: grid;
        gap: 12px;
        align-items: start;
    }

    .admin-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .admin-nav a,
    .admin-nav span {
        flex: 0 0 auto;
    }

    .dashboard-card strong {
        font-size: 28px;
    }
}

@media (max-width: 1100px) and (min-width: 901px) {
    .site-header {
        inset: 14px 16px auto;
        gap: 12px;
    }

    .nav {
        gap: 4px;
        font-size: 13px;
    }

    .nav a {
        padding: 7px 9px;
    }

    .hero-content {
        margin-right: 48px;
        width: min(680px, calc(100% - 32px));
    }

    h1 {
        font-size: 58px;
    }

    h2 {
        font-size: 36px;
    }

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

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

@media (max-width: 640px) {
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 27px;
    }

    h3 {
        font-size: 19px;
    }

    body {
        line-height: 1.7;
    }

    .site-header {
        padding: 9px 12px;
    }

    .brand {
        gap: 10px;
    }

    .brand-logo {
        width: 42px;
        height: 42px;
    }

    .brand strong {
        font-size: 15px;
    }

    .brand small {
        font-size: 11px;
        line-height: 1.5;
    }

    .nav {
        grid-template-columns: repeat(3, max-content);
        font-size: 13px;
    }

    .hero-media {
        aspect-ratio: 1 / 1;
        object-position: center top;
    }

    .hero-content {
        width: calc(100% - 28px);
        margin-top: 20px;
    }

    .hero-actions {
        margin: 20px 0;
    }

    .hero-stats,
    .booking-contact,
    .booking-form,
    .admin-form {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 8px;
        margin-top: 20px;
    }

    .hero-stats div,
    .info-item,
    .service-card,
    .timeline div,
    .booking-form,
    .dashboard-card,
    .admin-panel {
        box-shadow: 0 14px 36px rgba(12, 50, 54, .1);
    }

    .hero-actions .btn {
        width: 100%;
    }

    .booking-contact-actions .btn {
        width: 100%;
        flex-basis: 100%;
    }

    .contact-actions .btn {
        width: 100%;
        flex-basis: 100%;
    }

    .btn {
        min-height: 44px;
        padding: 9px 14px;
    }

    .info-band,
    .section,
    .contact-section,
    .posts-section,
    .reviews-section,
    .doctor-section {
        width: calc(100% - 28px);
    }

    .service-card,
    .post-card,
    .review-card,
    .timeline div,
    .info-item,
    .admin-panel {
        padding: 16px;
    }

    .booking-form {
        padding: 16px;
    }

    .booking-section {
        padding: 32px 14px;
    }

    input,
    select,
    textarea {
        min-height: 44px;
        padding: 10px 12px;
        font-size: 16px;
    }

    textarea {
        min-height: 120px;
    }

    .admin-shell {
        width: calc(100% - 16px);
        margin: 8px auto 18px;
    }

    .admin-header h1 {
        font-size: 26px !important;
    }

    .admin-nav a {
        padding: 8px 10px;
        font-size: 13px;
    }

    .admin-panel {
        padding: 12px;
    }

    .admin-table {
        min-width: 680px;
        font-size: 13px;
    }

    .admin-table th,
    .admin-table td {
        padding: 9px;
    }

    .login-card {
        width: calc(100% - 24px);
        margin: 24px auto;
        padding: 18px;
    }

    .post-page {
        width: calc(100% - 28px);
        margin-top: 24px;
    }

    .post-article {
        padding: 18px;
    }

    .post-content {
        font-size: 16px;
        line-height: 1.9;
    }
}

@media (max-width: 420px) {
    .hero-media {
        aspect-ratio: 4 / 5;
    }

    h1 {
        font-size: 31px;
    }

    h2 {
        font-size: 24px;
    }

    .nav {
        grid-template-columns: repeat(3, max-content);
    }

    .hero-stats div {
        padding: 12px;
    }

    .footer {
        padding: 22px 14px;
    }

    .reviews-marquee {
        margin-inline: -14px;
        padding-inline: 14px;
    }

    .review-card {
        flex-basis: 220px;
        width: 220px;
    }

    .reviews-track {
        gap: 12px;
        animation-duration: 90s;
    }

    .review-modal {
        padding: 12px;
    }

    .review-modal__close {
        top: 8px;
        left: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reviews-track {
        animation: none;
        overflow-x: auto;
        max-width: 100%;
        padding-bottom: 8px;
    }
}
