/* Phòng khám Khớp Việt – khopviet.com */
:root{
  --navy:#0B3B4F; --teal:#0B5E5E; --teal-l:#E3F1F0; --ink:#12263A; --ink2:#33475A; --muted:#4A5D6E;
  --line:#DCE5E8; --bg:#F4F7F8; --accent:#C2410C; --accent-d:#9A3412; --white:#fff;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:'Be Vietnam Pro',system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--ink);background:var(--bg);line-height:1.6}
img{max-width:100%;display:block}
a{color:var(--teal)}a:hover{color:#083F3F}
h1,h2,h3{line-height:1.2;margin:0}
p{margin:0}
.wrap{max-width:1200px;margin:0 auto;padding:0 24px}
.section{padding:80px 0}
.eyebrow{font-size:14px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--teal)}
.dark .eyebrow{color:#9FD8D4}
.h2{font-size:clamp(26px,4vw,34px);font-weight:800}
.lead{font-size:17px;color:var(--muted)}
.stack{display:flex;flex-direction:column;gap:16px}
.btn{display:inline-block;text-decoration:none;font-weight:700;border-radius:12px;padding:14px 24px;min-height:44px;text-align:center}
.btn-accent{background:var(--accent);color:#fff}.btn-accent:hover{background:var(--accent-d);color:#fff}
.btn-white{background:#fff;color:var(--navy)}.btn-white:hover{color:var(--navy);background:#EAF2F4}
.btn-teal{background:var(--teal);color:#fff}.btn-teal:hover{background:#083F3F;color:#fff}
.btn-dark{background:var(--ink);color:#fff}.btn-dark:hover{color:#fff;background:#000}
.btn-yt{background:#B91C1C;color:#fff}.btn-yt:hover{color:#fff;background:#991B1B}
.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:28px}
.grid{display:grid;gap:20px}
.g-auto-320{grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr))}
.g-auto-260{grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr))}
.dot{display:flex;gap:10px;align-items:flex-start}
.dot::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--teal);margin-top:10px;flex:0 0 7px}
.icon-row{display:flex;gap:12px;align-items:flex-start}
.icon-row svg{flex:0 0 24px;margin-top:2px}

/* header */
.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}
.site-header .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding-top:12px;padding-bottom:12px}
.logo img{height:48px;width:auto}
.nav{display:flex;flex-wrap:wrap;align-items:center;gap:4px 22px;font-weight:500;font-size:15px}
.nav a{text-decoration:none;color:var(--ink);padding:10px 0}
.nav .btn{padding:11px 18px;color:#fff}
@media (max-width:720px){.nav a:not(.btn){display:none}.logo img{height:40px}}

/* hero */
.hero{background:var(--navy);color:#fff}
.hero .wrap{display:flex;flex-wrap:wrap;align-items:center;gap:48px;padding-top:64px;padding-bottom:64px}
.hero-text{flex:1 1 460px;display:flex;flex-direction:column;gap:20px}
.hero h1{font-size:clamp(32px,5vw,46px);font-weight:800}
.hero p{font-size:18px;color:#D5E3EA}
.hero-meta{display:flex;flex-wrap:wrap;gap:12px 24px;font-size:15px;color:#D5E3EA}
.hero-meta span{display:flex;align-items:center;gap:8px}
.hero-img{flex:1 1 320px;display:flex;justify-content:center}
.hero-img img{width:100%;max-width:420px;aspect-ratio:4/5;object-fit:cover;object-position:top;border-radius:24px;background:#E8EDF1}
.btn-row{display:flex;flex-wrap:wrap;gap:12px}

/* services */
.svc-head{display:flex;align-items:center;gap:14px}
.num{width:44px;height:44px;border-radius:12px;background:var(--teal-l);color:var(--teal);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:18px;flex:0 0 44px}
.svc h3{font-size:21px}
.svc .sym{color:var(--teal);font-weight:600;font-size:15px}
.svc ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;font-size:15px;color:var(--ink2)}
.svc li{display:flex;gap:10px}
.svc li::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--teal);margin-top:10px;flex:0 0 6px}
.card-cta{background:var(--teal);color:#fff;border:0;display:flex;flex-direction:column;gap:14px;justify-content:center}
.card-cta p{color:#D7ECEA}
.mini{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;display:flex;flex-direction:column;gap:6px}
.mini b{font-size:17px}.mini span{font-size:15px;color:var(--muted)}

/* booking */
.dark{background:var(--navy);color:#fff}
.booking .wrap{display:flex;flex-wrap:wrap;gap:40px;align-items:flex-start}
.booking .txt{flex:1 1 360px;display:flex;flex-direction:column;gap:16px}
.booking .txt p{color:#D5E3EA;font-size:17px}
.booking .txt a{color:#fff;font-weight:700}
.booking-box{flex:1 1 520px;background:#fff;color:var(--ink);border-radius:20px;padding:24px;min-height:200px}
.booking-box iframe{width:100%;height:640px;border:0;border-radius:12px}

/* articles / tiktok */
.art{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;display:flex;flex-direction:column;text-decoration:none;color:var(--ink)}
.art .thumb{aspect-ratio:16/9;background:var(--navy);color:#BFDCE3;display:flex;align-items:center;justify-content:center;font-weight:700;padding:16px;text-align:center}
.art .body{padding:22px;display:flex;flex-direction:column;gap:10px}
.tag{align-self:flex-start;font-size:12px;font-weight:700;color:var(--teal);background:var(--teal-l);padding:5px 10px;border-radius:999px}
.art .title{font-weight:700;font-size:19px;line-height:1.35}
.art .desc{font-size:15px;color:var(--muted)}
.social{display:flex;flex-wrap:wrap;gap:28px;align-items:flex-start}
.social .txt{flex:1 1 300px;display:flex;flex-direction:column;gap:12px}
.social .embed{flex:2 1 420px;min-width:0}

/* doctor */
.doctor{background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.doctor .top{display:flex;flex-wrap:wrap;gap:48px;align-items:center}
.doctor .top img{flex:1 1 300px;max-width:400px;width:100%;aspect-ratio:3/4;object-fit:cover;object-position:top;border-radius:24px}
.doctor .info{flex:1 1 460px;display:flex;flex-direction:column;gap:16px}
.doctor .list{display:flex;flex-direction:column;gap:10px;font-size:16px;color:var(--ink2)}
figure{margin:0;display:flex;flex-direction:column;gap:10px}
figure img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:16px;border:1px solid var(--line)}
figcaption{font-size:14px;color:var(--muted)}

/* contact */
.contact .wrap{display:flex;flex-wrap:wrap;gap:40px}
.contact .txt{flex:1 1 360px;display:flex;flex-direction:column;gap:20px;font-size:17px}
.map{flex:1 1 480px;min-height:360px;border-radius:20px;overflow:hidden;border:1px solid var(--line);background:#E3EBEE}
.map iframe{width:100%;height:100%;min-height:360px;border:0;display:block}

footer{background:#0A2433;color:#BFD0DA;font-size:14px}
footer .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;padding-top:32px;padding-bottom:32px}
footer a{color:#fff;font-weight:600}

/* mobile sticky call bar */
.callbar{display:none}
@media (max-width:720px){
  .callbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:30;background:#fff;border-top:1px solid var(--line);padding:8px;gap:8px}
  .callbar a{flex:1;padding:12px 8px}
  body{padding-bottom:68px}
  .section{padding:56px 0}
}

/* article page */
.article-layout{display:flex;flex-wrap:wrap;gap:40px;align-items:flex-start;padding-top:24px;padding-bottom:80px}
.article{flex:999 1 560px;min-width:0;background:#fff;border:1px solid var(--line);border-radius:20px;padding:clamp(22px,4vw,40px);display:flex;flex-direction:column;gap:18px}
.article h1{font-size:clamp(28px,4vw,38px);font-weight:800}
.article h2{font-size:24px;margin-top:12px}
.article p,.article li{font-size:17px;color:var(--ink2)}
.article ul{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:8px}
.byline{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:14px;color:var(--muted)}
.byline img{width:40px;height:40px;border-radius:50%;object-fit:cover;object-position:top}
.summary{background:var(--bg);border-radius:14px;padding:20px 24px}
.draft{background:#FFEDD5;color:#9A3412;font-weight:700;font-size:13px;padding:8px 12px;border-radius:10px}
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));gap:14px}
.steps>div{border:1px solid var(--line);border-radius:14px;padding:18px}
.steps b{color:var(--teal);display:block;margin-bottom:4px}
.refs{border-top:1px solid var(--line);padding-top:18px;font-size:14px;color:var(--muted)}
.refs ol{padding-left:20px;margin:8px 0}
aside.side{flex:1 1 300px;display:flex;flex-direction:column;gap:20px}
.crumb{font-size:14px;color:var(--muted);padding-top:28px}

/* registration form */
.dk{display:flex;flex-direction:column;gap:16px}
.dk fieldset{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.dk legend{font-size:14px;font-weight:600;margin-bottom:8px;padding:0}
.dk small{font-size:14px;color:var(--muted)}
.dk input[type=date],.fld input,.fld textarea{font:inherit;font-size:16px;padding:12px;border:1px solid #BFD3DA;border-radius:10px;width:100%;background:#fff;color:var(--ink)}
.fld{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips label{position:relative}
.chips input{position:absolute;opacity:0;inset:0}
.chips span{display:inline-flex;align-items:center;min-height:42px;padding:8px 14px;border-radius:999px;border:1px solid #BFD3DA;color:var(--teal);font-weight:600;font-size:14px;cursor:pointer}
.chips input:checked+span{background:var(--teal);color:#fff;border-color:var(--teal)}
.chips input:focus-visible+span{outline:3px solid #9FD8D4}
.dk button{border:0;cursor:pointer;font:inherit;font-weight:700;font-size:17px}
.dk button:disabled{opacity:.6}
.hp{position:absolute;left:-9999px;width:1px;height:1px}
#dk-msg{font-weight:600;margin:0}
#dk-msg.ok{color:var(--teal)}#dk-msg.err{color:#B91C1C}
section[id]{scroll-margin-top:84px}
