:root {
    --accent: #0d9488;
    --accent-dark: #0f766e;
    --ink: #0f172a;
    --muted: #64748b;
    --bg: #ffffff;
    --soft: #f8fafc;
    --line: #e2e8f0;
    --radius: 12px;
    --shadow-sm: 0 1px 2px rgba(15,23,42,.05);
    --shadow: 0 4px 16px rgba(15,23,42,.06);
    --shadow-lg: 0 20px 48px rgba(15,23,42,.10), 0 4px 16px rgba(15,23,42,.05);
}
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; display: block; }
h1,h2,h3,h4 { line-height: 1.15; margin: 0 0 .5rem; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 .75rem; }
p:last-child { margin-bottom: 0; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.muted { color: var(--muted); }
.lead { color: var(--muted); font-size: 1.1rem; line-height: 1.75; }
.center { text-align: center; margin-top: 2.5rem; }

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .45rem; padding: .6rem 1.25rem;
    border: 1.5px solid var(--line);
    background: var(--bg); color: var(--ink);
    border-radius: 8px; cursor: pointer;
    font-size: .9rem; font-weight: 600; font-family: inherit;
    transition: all .15s ease; white-space: nowrap; letter-spacing: -.01em;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary {
    background: var(--accent); color: #fff; border-color: var(--accent);
    box-shadow: 0 1px 2px rgba(13,148,136,.2), 0 4px 12px rgba(13,148,136,.15);
}
.btn.primary:hover {
    background: var(--accent-dark); border-color: var(--accent-dark); color: #fff;
    box-shadow: 0 1px 2px rgba(13,148,136,.25), 0 6px 18px rgba(13,148,136,.22);
    transform: translateY(-1px);
}
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--soft); border-color: var(--line); color: var(--ink); }
.btn.lg { padding: .75rem 1.75rem; font-size: 1rem; border-radius: 10px; }
.btn.block { display: flex; width: 100%; margin-top: .75rem; }

/* ─── Header ──────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(226,232,240,.8);
}
.header-inner {
    max-width: 1120px; margin: 0 auto; padding: .9rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.1rem; color: var(--ink); letter-spacing: -.02em; }
.brand-mark {
    width: 32px; height: 32px; border-radius: 9px;
    background: linear-gradient(135deg, var(--accent) 0%, #14b8a6 100%);
    display: grid; place-items: center; flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(13,148,136,.3);
}
.logo-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.9); display: block; }
.site-nav { display: flex; align-items: center; gap: .15rem; }
.site-nav > a:not(.btn) {
    color: var(--muted); font-weight: 500; font-size: .9rem;
    padding: .4rem .75rem; border-radius: 6px; transition: .12s;
}
.site-nav a.active, .site-nav > a:hover:not(.btn) { color: var(--ink); background: var(--soft); }
.nav-cta { margin-left: .75rem; }
.nav-toggle, .nav-burger { display: none; }

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
    padding: clamp(4rem, 10vw, 7rem) 0 clamp(3.5rem, 8vw, 6rem);
    background:
        radial-gradient(ellipse 70% 50% at 50% -5%, rgba(13,148,136,.09) 0%, transparent 60%),
        radial-gradient(ellipse 50% 35% at 85% 55%, rgba(20,184,166,.06) 0%, transparent 55%),
        #fff;
}
.hero-inner { display: grid; grid-template-columns: 1fr .9fr; gap: 4rem; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .4rem;
    background: rgba(13,148,136,.08); color: var(--accent);
    font-weight: 600; font-size: .72rem; padding: .3rem .75rem;
    border-radius: 999px; margin-bottom: 1.25rem;
    letter-spacing: .05em; text-transform: uppercase;
    border: 1px solid rgba(13,148,136,.16);
}
.eyebrow::before {
    content: ''; width: 5px; height: 5px; border-radius: 50%;
    background: var(--accent); flex-shrink: 0;
}
.hero-text h1 { margin-bottom: 1.25rem; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin: 2rem 0; }
.hero-points {
    list-style: none; padding: 0; margin: 0;
    display: flex; gap: 1.5rem; flex-wrap: wrap;
    color: var(--muted); font-size: .875rem;
}
.hero-points li::before { content: '✓'; color: var(--accent); margin-right: .35rem; font-weight: 700; }
.hero-card {
    background: #fff; border: 1px solid var(--line);
    border-radius: 16px; box-shadow: var(--shadow-lg);
    padding: 2rem; position: relative; overflow: hidden;
}
.hero-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), #14b8a6, #22d3ee);
}
.hero-card-row {
    display: flex; align-items: center; gap: .875rem;
    padding: .875rem 0; border-bottom: 1px solid var(--line);
}
.hero-card-row:last-of-type { border-bottom: none; }
.hero-card-icon {
    width: 38px; height: 38px; border-radius: 10px;
    background: rgba(13,148,136,.08); display: grid;
    place-items: center; flex-shrink: 0; font-size: 1.1rem;
}
.hero-card-text { font-size: .9rem; font-weight: 500; }
.hero-card .btn { margin-top: 1.5rem; }

/* ─── Sections ────────────────────────────────────────────── */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section.alt { background: var(--soft); }
.section-title {
    text-align: center; font-size: clamp(1.5rem, 3vw, 2.1rem);
    margin-bottom: 2.75rem; font-weight: 700; letter-spacing: -.02em;
}
.section-title.small { text-align: left; font-size: 1.25rem; margin: 2rem 0 1rem; }
.page-head { background: var(--soft); padding: clamp(2rem, 5vw, 3.5rem) 0; border-bottom: 1px solid var(--line); }
.back-link {
    display: inline-flex; align-items: center; gap: .3rem;
    margin-bottom: .75rem; font-size: .875rem; font-weight: 600; color: var(--muted);
}
.back-link:hover { color: var(--ink); }

/* ─── Steps ───────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps::before {
    content: '';
    position: absolute;
    top: 21px; left: calc(12.5% + 22px); right: calc(12.5% + 22px);
    height: 1.5px;
    background: linear-gradient(90deg, rgba(13,148,136,.35) 0%, var(--line) 100%);
    z-index: 0;
}
.step { text-align: center; padding: 0 1.5rem 1.5rem; position: relative; z-index: 1; }
.step-num {
    display: inline-grid; place-items: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--accent); color: #fff;
    font-weight: 700; font-size: .9rem; margin-bottom: 1.25rem;
    box-shadow: 0 0 0 5px rgba(13,148,136,.1), 0 4px 12px rgba(13,148,136,.2);
}
.step h3 { font-size: .95rem; margin-bottom: .35rem; }
.step p { color: var(--muted); font-size: .875rem; margin: 0; }

/* ─── Cards ───────────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.specialty-card {
    position: relative; overflow: hidden; display: flex;
    flex-direction: column; gap: .35rem;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.specialty-card:hover {
    box-shadow: 0 8px 28px rgba(15,23,42,.09);
    transform: translateY(-2px); border-color: rgba(0,0,0,.11);
}
.card-bar {
    position: absolute; top: 0; left: 0; bottom: 0;
    width: 3px; right: auto; height: auto;
    background: var(--accent);
}
.specialty-card h3 { color: var(--ink); padding-left: .625rem; }
.price { color: var(--muted); font-size: .85rem; padding-left: .625rem; }
.card-link { margin-top: auto; color: var(--accent); font-weight: 600; font-size: .85rem; padding-top: .5rem; padding-left: .625rem; }

/* ─── Doctors ─────────────────────────────────────────────── */
.doctor-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.doctor-avatar {
    width: 80px; height: 80px; border-radius: 16px; overflow: hidden;
    background: linear-gradient(135deg, var(--accent), #14b8a6);
    color: #fff; display: grid; place-items: center;
    font-size: 1.75rem; font-weight: 700; margin-bottom: .75rem;
    box-shadow: 0 4px 16px rgba(13,148,136,.18);
}
.doctor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.doctor-spec { color: var(--accent); font-weight: 600; font-size: .75rem; margin: 0 0 .35rem; text-transform: uppercase; letter-spacing: .05em; }
.bio { color: var(--muted); font-size: .875rem; margin-top: .2rem; }

/* ─── Values ──────────────────────────────────────────────── */
.prose { max-width: 720px; margin: 0 auto 3rem; font-size: 1.05rem; color: var(--muted); line-height: 1.8; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.value {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 2rem 1.75rem; text-align: center;
}
.value-icon {
    font-size: 1.5rem; width: 52px; height: 52px;
    background: rgba(13,148,136,.08); border-radius: 12px;
    display: grid; place-items: center; margin: 0 auto .875rem;
}
.value h3 { margin-bottom: .35rem; }
.value p { color: var(--muted); margin: 0; font-size: .9rem; }

/* ─── Forms & slots ───────────────────────────────────────── */
.filters { display: flex; gap: 1rem; flex-wrap: wrap; align-items: end; margin-bottom: 2rem; }
.filters label, .booking-form label, .contact-form label {
    display: flex; flex-direction: column; gap: .35rem;
    font-size: .75rem; color: var(--muted); font-weight: 600;
    letter-spacing: .03em; text-transform: uppercase;
}
input, select, textarea {
    padding: .625rem .875rem; border: 1.5px solid var(--line);
    border-radius: 8px; font-size: .95rem; font-family: inherit;
    color: var(--ink); background: #fff;
    transition: border-color .12s, box-shadow .12s;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(13,148,136,.12);
}
.slots { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 2rem; }
.slot {
    padding: .5rem .9rem; border: 1.5px solid var(--line);
    background: #fff; border-radius: 8px; cursor: pointer;
    font-weight: 500; font-size: .875rem; transition: .12s;
}
.slot:hover { border-color: var(--accent); color: var(--accent); }
.slot.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.booking-form, .contact-form { display: flex; flex-direction: column; gap: 1rem; max-width: 480px; }

/* ─── Contact ─────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-item { display: flex; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.contact-item > span {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(13,148,136,.08); display: grid;
    place-items: center; font-size: 1.1rem; flex-shrink: 0;
    min-width: 40px;
}
.contact-item h4 { margin: 0 0 .2rem; font-size: .9rem; }
.contact-item p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ─── CTA band ────────────────────────────────────────────── */
.cta-band { background: var(--ink); color: #fff; padding: 4.5rem 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { margin: 0; color: #fff; }
.cta-band p { margin: .3rem 0 0; color: #94a3b8; font-size: .95rem; }
.cta-band .btn.primary {
    background: var(--accent); color: #fff; border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(13,148,136,.35); white-space: nowrap;
}
.cta-band .btn.primary:hover { background: var(--accent-dark); }

/* ─── Carousel ────────────────────────────────────────────── */
.carousel { position: relative; overflow: hidden; border-radius: 16px; background: #000; }
.carousel-track { display: flex; transition: transform .55s cubic-bezier(.22,.68,0,1.2); }
.carousel-slide { min-width: 100%; }
.carousel-slide img { width: 100%; height: clamp(280px, 48vw, 560px); object-fit: cover; display: block; }
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 42px; height: 42px; border-radius: 50%; border: none;
    background: rgba(255,255,255,.9); color: var(--ink);
    font-size: 1.4rem; cursor: pointer; display: grid; place-items: center;
    box-shadow: 0 2px 12px rgba(0,0,0,.15); transition: .15s;
    backdrop-filter: blur(8px);
}
.carousel-btn:hover { background: #fff; color: var(--accent); transform: translateY(-50%) scale(1.05); }
.carousel-btn.prev { left: 1.25rem; }
.carousel-btn.next { right: 1.25rem; }
.carousel-dots { position: absolute; bottom: 1.25rem; left: 0; right: 0; display: flex; justify-content: center; gap: .4rem; }
.carousel-dots .dot {
    width: 6px; height: 6px; border-radius: 999px; border: none;
    background: rgba(255,255,255,.45); cursor: pointer; padding: 0; transition: all .2s;
}
.carousel-dots .dot.on { background: #fff; width: 20px; }

/* ─── Success ─────────────────────────────────────────────── */
.success-box { text-align: center; max-width: 520px; margin: 0 auto; }
.success-check {
    width: 72px; height: 72px; border-radius: 50%;
    background: rgba(13,148,136,.1); color: var(--accent);
    font-size: 2rem; display: grid; place-items: center; margin: 0 auto 1.5rem;
}

/* ─── Flash / errors ──────────────────────────────────────── */
.flash {
    background: rgba(13,148,136,.06); color: var(--accent-dark);
    padding: .875rem 1.25rem; border-radius: 10px; margin: 1.5rem 0;
    border: 1px solid rgba(13,148,136,.18); font-size: .9rem;
}
.error {
    background: #fef2f2; color: #991b1b;
    padding: .875rem 1.25rem; border-radius: 10px;
    border: 1px solid #fecaca; font-size: .9rem;
}

/* ─── Footer ──────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: #94a3b8; }
.footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem; padding: 4rem 1.5rem 3rem;
    max-width: 1120px; margin: 0 auto;
}
.footer-brand .brand-name { color: #fff; }
.footer-brand .muted { color: #64748b; font-size: .875rem; margin-top: .35rem; }
.site-footer h4 { color: #e2e8f0; font-size: .75rem; margin-bottom: 1.25rem; letter-spacing: .07em; text-transform: uppercase; }
.site-footer p { margin: .4rem 0; font-size: .875rem; }
.site-footer a { color: #94a3b8; transition: color .12s; }
.site-footer a:hover { color: #fff; }
.social { display: flex; gap: .75rem; margin-top: .75rem; }
.social a { font-size: .875rem; font-weight: 500; }
.footer-bottom {
    border-top: 1px solid #1e293b;
    max-width: 1120px; margin: 0 auto;
    padding: 1.5rem; text-align: center;
    font-size: .8rem; color: #475569;
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
    .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .steps::before { display: none; }
    .values, .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

    .nav-burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: .5rem; border: none; background: transparent; }
    .nav-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
    .site-nav {
        position: fixed; top: 61px; left: 0; right: 0;
        background: rgba(255,255,255,.97); backdrop-filter: blur(16px);
        flex-direction: column; align-items: stretch; gap: 0;
        padding: .5rem 1.5rem 1.5rem;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 8px 24px rgba(15,23,42,.08);
        transform: translateY(-110%); transition: transform .25s ease;
    }
    .site-nav > a:not(.btn) {
        padding: .875rem 0; border-bottom: 1px solid var(--line);
        border-radius: 0; background: transparent; font-size: 1rem;
        color: var(--ink);
    }
    .nav-cta { margin: 1rem 0 0; }
    .nav-toggle:checked ~ .site-nav { transform: translateY(0); }
}
@media (max-width: 520px) {
    .footer-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
}
