/* ============ Tokens ============ */
:root {
  --primary: #0b6e6b;
  --primary-600: #095d5a;
  --primary-50: #e6f4f3;
  --accent: #2ec4b6;
  --warm: #f4a259;
  --ink: #0f2a2e;
  --muted: #5b7175;
  --line: #dde9e8;
  --bg: #ffffff;
  --tint: #f3faf9;
  --card: #ffffff;
  --shadow-sm: 0 2px 8px rgba(11, 60, 60, .06);
  --shadow: 0 14px 40px rgba(11, 60, 60, .12);
  --shadow-lg: 0 30px 70px rgba(11, 60, 60, .18);
  --radius: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ta: 'Noto Sans Tamil', 'Plus Jakarta Sans', system-ui, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
html[lang="ta"] body { font-family: var(--font-ta); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ============ Loader ============ */
.loader {
  position: fixed; inset: 0; z-index: 999; display: grid; place-items: center;
  background: var(--bg); transition: opacity .5s var(--ease), visibility .5s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-tooth { width: 64px; height: 64px; color: var(--primary); stroke-width: 1.2; }
.loader-tooth path { stroke-dasharray: 90; stroke-dashoffset: 90; animation: draw 1s var(--ease) forwards, fillIn .4s .8s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillIn { to { fill: var(--primary-50); } }

/* ============ Scroll progress ============ */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 120;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ============ Buttons ============ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
}
.btn .ico { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px rgba(11, 110, 107, .3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(11, 110, 107, .38); background: var(--primary-600); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: #fff; color: var(--primary); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.18); }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,.6); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }

/* ============ Header ============ */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: background .4s, box-shadow .4s, height .4s var(--ease);
}
.header.scrolled {
  --header-h: 64px; height: 64px;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(11,60,60,.06);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: none; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
  box-shadow: 0 8px 18px rgba(11,110,107,.3); transition: transform .5s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.06); }
.brand-mark svg { width: 22px; height: 22px; fill: #fff; stroke: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong { font-size: 17px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.brand-text small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; padding: 8px 12px; font-size: 15px; font-weight: 600; color: var(--muted); border-radius: 10px;
  transition: color .25s;
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--primary); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.lang {
  position: relative; display: flex; padding: 4px; border-radius: 999px; background: var(--primary-50);
}
.lang button { position: relative; z-index: 1; padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--muted); border-radius: 999px; transition: color .3s; }
.lang button.active { color: #fff; }
.lang button[data-lang="ta"] { font-family: var(--font-ta); }
.lang-pill {
  position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: var(--primary);
  transition: transform .45s var(--ease), width .45s var(--ease);
}

.burger { display: none; width: 42px; height: 42px; border-radius: 12px; background: var(--primary-50); position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--primary); border-radius: 2px; transition: transform .35s var(--ease), opacity .25s; }
.burger span:nth-child(1) { top: 14px; } .burger span:nth-child(2) { top: 20px; } .burger span:nth-child(3) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 120px; overflow: hidden;
  background: radial-gradient(1200px 600px at 85% -10%, #dff3f1 0%, transparent 60%), linear-gradient(180deg, #f6fcfb, #fff);
}
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; animation: blob 18s ease-in-out infinite; }
.b1 { width: 420px; height: 420px; background: #bfe9e4; top: -80px; left: -120px; }
.b2 { width: 360px; height: 360px; background: #ffe2c4; bottom: -60px; right: 30%; animation-delay: -6s; opacity: .45; }
.b3 { width: 300px; height: 300px; background: #c9f0ea; top: 30%; right: -80px; animation-delay: -12s; }
@keyframes blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 30px) scale(.95); }
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--primary-50); color: var(--primary); font-size: 13px; font-weight: 700; letter-spacing: .02em;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(46,196,182,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(46,196,182,0); } 100% { box-shadow: 0 0 0 0 rgba(46,196,182,0); } }

.hero-title { margin: 20px 0 18px; font-size: clamp(38px, 5.6vw, 66px); line-height: 1.06; font-weight: 800; letter-spacing: -.03em; }
html[lang="ta"] .hero-title { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.3; letter-spacing: 0; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .line > span { display: inline-block; }
.grad { background: linear-gradient(90deg, var(--primary), var(--accent) 60%, var(--primary)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.hero-sub { font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 540px; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.chips { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.chips li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.chips li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--primary-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b6e6b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat; }

/* Hero entrance */
.hero-in { opacity: 0; transform: translateY(26px); }
.ready .hero-in { animation: rise .9s var(--ease) var(--d, 0s) forwards; }
.hero-title .hero-in { transform: translateY(105%); }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-visual { position: relative; }
.hero-img {
  position: relative; border-radius: 36px 36px 36px 120px; overflow: hidden; aspect-ratio: 4 / 4.2;
  box-shadow: var(--shadow-lg); clip-path: inset(0 0 100% 0 round 36px);
}
.ready .hero-img { animation: unclip 1.3s var(--ease) .3s forwards; }
@keyframes unclip { to { clip-path: inset(0 0 0 0 round 36px 36px 36px 120px); } }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; transform: scale(1.18); }
.ready .hero-img img { animation: settle 2s var(--ease) .3s forwards; }
@keyframes settle { to { transform: scale(1.02); } }
.hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11,60,60,.35)); }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-radius: 18px; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(20px) scale(.95);
}
.float-card strong { display: block; font-size: 14px; line-height: 1.25; }
.float-card small { font-size: 12px; color: var(--muted); }
.ready .float-card { animation: pop .8s var(--ease) forwards, bob 5s ease-in-out infinite; }
.fc1 { top: 12%; left: -36px; } .ready .fc1 { animation-delay: 1.1s, 2s; }
.fc2 { bottom: 9%; right: -24px; } .ready .fc2 { animation-delay: 1.3s, 2.6s; }
@keyframes pop { to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.fc-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); }
.fc-ico svg { width: 20px; height: 20px; stroke-width: 3; }
.fc-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--accent); }
.sparkle { position: absolute; fill: var(--warm); stroke: none; animation: twinkle 3s ease-in-out infinite; }
.s1 { width: 26px; top: -14px; right: 18%; }
.s2 { width: 16px; bottom: 26%; left: -18px; fill: var(--accent); animation-delay: -1.5s; }
@keyframes twinkle { 0%, 100% { transform: scale(.6) rotate(0); opacity: .5; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }

.scroll-cue { position: absolute; left: 50%; bottom: 56px; translate: -50% 0; width: 26px; height: 42px; border: 2px solid #b9d6d3; border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--primary); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ============ Stats ============ */
.stats-wrap { position: relative; z-index: 2; margin-top: -40px; }
.stats-wrap:has(.stats:empty) { display: none; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 28px 24px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; color: var(--primary); letter-spacing: -.02em; line-height: 1.1; }
.stat span { font-size: 14px; color: var(--muted); font-weight: 600; }

/* ============ Sections ============ */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-tint { background: var(--tint); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; margin: 16px 0 14px; }
html[lang="ta"] .h2 { font-size: clamp(24px, 2.8vw, 34px); line-height: 1.4; letter-spacing: 0; }
.lead { font-size: 17px; color: var(--muted); margin: 0 0 24px; }

/* Reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--rd, 0s); }
[data-reveal="left"] { transform: translateX(50px); }
[data-reveal="right"] { transform: translateX(-50px); }
[data-reveal="zoom"] { transform: scale(.92); }
[data-reveal].in { opacity: 1; transform: none; }

/* ============ About ============ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-media { position: relative; }
.about-img { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3.3; }
.about-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about-media:hover .about-img img { transform: scale(1.05); }
.about-badge {
  position: absolute; right: -20px; bottom: -28px; max-width: 260px; display: flex; gap: 12px; align-items: center;
  padding: 16px 18px; border-radius: 18px; color: #fff; font-weight: 700; font-size: 14px; line-height: 1.4;
  background: linear-gradient(135deg, var(--primary), #13958f); box-shadow: var(--shadow);
}
.about-badge svg { width: 30px; height: 30px; flex: none; fill: rgba(255,255,255,.25); stroke: #fff; stroke-width: 1.5; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; font-weight: 600; }
.tick { flex: none; width: 26px; height: 26px; border-radius: 9px; background: var(--primary-50); position: relative; margin-top: 1px; }
.tick::after { content: ""; position: absolute; left: 9px; top: 5px; width: 6px; height: 11px; border: solid var(--primary); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform .5s var(--ease) calc(var(--rd, 0s) + .3s); }
.ticks li.in .tick::after { transform: rotate(45deg) scale(1); }

/* ============ Services ============ */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.svc {
  position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  transform-style: preserve-3d; will-change: transform;
  transition: box-shadow .45s var(--ease), border-color .45s, opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--rd, 0s);
  overflow: hidden;
}
.svc::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .45s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(46,196,182,.14), transparent 45%);
}
.svc:hover { box-shadow: var(--shadow); border-color: transparent; }
.svc:hover::before { opacity: 1; }
.svc-ico {
  position: relative; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--primary-50); color: var(--primary); transition: background .4s, color .4s, transform .5s var(--ease);
}
.svc-ico svg { width: 30px; height: 30px; stroke-width: 1.7; }
.svc:hover .svc-ico { background: var(--primary); color: #fff; transform: translateY(-4px) rotate(-6deg); }
.svc h3 { position: relative; margin: 0 0 8px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.svc p { position: relative; margin: 0; font-size: 14.5px; color: var(--muted); }
.svc-num { position: absolute; top: 18px; right: 22px; font-size: 13px; font-weight: 800; color: #c6dcda; }

/* ============ Process ============ */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-line { position: absolute; top: 32px; left: 12.5%; right: 12.5%; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.process-line span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease) .3s; }
.process.in .process-line span { transform: scaleX(1); }
.step { position: relative; text-align: center; padding: 0 8px; }
.step-num {
  width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  font-size: 22px; font-weight: 800; color: var(--primary); background: #fff; border: 3px solid var(--primary-50);
  box-shadow: var(--shadow-sm); transition: background .4s, color .4s, border-color .4s, transform .4s var(--ease);
}
.step:hover .step-num { background: var(--primary); color: #fff; border-color: var(--primary); transform: scale(1.08); }
.step h3 { margin: 0 0 6px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ============ Doctor ============ */
.doctor-card {
  display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center;
  padding: clamp(28px, 5vw, 56px); border-radius: 32px; background: #fff; box-shadow: var(--shadow);
}
.doctor-photo { position: relative; width: 260px; aspect-ratio: 1; margin: auto; }
.doctor-photo img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 8px solid #fff; box-shadow: var(--shadow); }
.ring { position: absolute; inset: -14px; border-radius: 50%; border: 2px dashed var(--accent); animation: spin 26s linear infinite; }
.ring::before { content: ""; position: absolute; top: 12%; left: 6%; width: 16px; height: 16px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 0 5px #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.doc-quals { margin: -6px 0 16px; font-weight: 700; color: var(--primary); }
.doc-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============ Gallery ============ */
.gallery { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(2, 230px); gap: 18px; }
.g-item { position: relative; border-radius: var(--radius); overflow: hidden; padding: 0; cursor: zoom-in; }
.g-wide { grid-row: span 2; }
/* More than 3 photos (from HMS Website Settings): an even 3-column grid, first photo large */
.gallery.g-many { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; grid-auto-rows: 200px; }
.gallery.g-many .g-wide { grid-column: span 2; grid-row: span 2; }
.gallery.g-few { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); grid-template-rows: none; grid-auto-rows: 380px; }
.gallery.g-few .g-wide { grid-row: auto; }
@media (max-width: 900px) { .gallery.g-many { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.g-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11,60,60,.45)); opacity: 0; transition: opacity .5s; }
.g-item:hover img { transform: scale(1.08); }
.g-item:hover::after { opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px;
  background: rgba(8, 30, 32, .9); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-height: 86vh; border-radius: 16px; transform: scale(.92); transition: transform .5s var(--ease); }
.lightbox.open img { transform: none; }
.lb-close { position: absolute; top: 18px; right: 22px; width: 46px; height: 46px; border-radius: 50%; color: #fff; font-size: 30px; background: rgba(255,255,255,.12); }

/* ============ CTA band ============ */
.cta-band { padding: 0 0 clamp(72px, 10vw, 120px); }
.cta-inner {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: clamp(32px, 5vw, 56px); border-radius: 32px; color: #fff;
  background: linear-gradient(120deg, #0b6e6b, #13958f, #0b6e6b); background-size: 200% 200%; animation: flow 10s ease infinite;
}
.cta-inner::before, .cta-inner::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); }
.cta-inner::before { width: 300px; height: 300px; right: -80px; top: -120px; animation: blob 14s ease-in-out infinite; }
.cta-inner::after { width: 180px; height: 180px; left: 30%; bottom: -90px; animation: blob 16s ease-in-out infinite reverse; }
@keyframes flow { 50% { background-position: 100% 50%; } }
.cta-inner > * { position: relative; z-index: 1; }
.cta-inner h2 { margin: 0 0 6px; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.2; }
.cta-inner p { margin: 0; opacity: .85; font-size: 17px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============ Contact ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; }
.contact-cards { display: grid; gap: 16px; }
.c-card {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); min-width: 0;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s, opacity .9s var(--ease);
  transition-delay: var(--rd, 0s);
}
a.c-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.c-card small { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.c-card strong { font-size: 16px; }
.c-card > span:last-child { min-width: 0; }
.break { overflow-wrap: anywhere; }
.c-ico { flex: none; width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); transition: transform .4s var(--ease); }
.c-ico svg { width: 22px; height: 22px; }
.c-ico.wa { background: #e7f8ee; color: #1fa855; }
.c-ico.star { background: #fff4e5; color: #e8890c; }
.c-ico.star svg { fill: currentColor; fill-opacity: .25; }
a.c-card:hover .c-ico.star svg { animation: twinkle 1.2s ease-in-out; }
a.c-card:hover .c-ico { transform: scale(1.1) rotate(-8deg); }

.map-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; min-height: 380px; }
.map-frame { position: relative; flex: 1; min-height: 280px; background: linear-gradient(135deg, #e6f4f3, #f5fbfa); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder { position: absolute; inset: 0; display: grid; place-items: center;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 36px 36px; }
.pin { position: relative; z-index: 2; color: var(--primary); animation: drop 2.4s var(--ease) infinite; }
.pin svg { width: 56px; height: 56px; fill: #fff; stroke-width: 1.8; filter: drop-shadow(0 8px 10px rgba(11,60,60,.25)); }
.radar { position: absolute; width: 40px; height: 40px; margin-top: 52px; border-radius: 50%; border: 2px solid var(--accent); animation: radar 2.4s ease-out infinite; }
@keyframes drop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes radar { from { transform: scale(.4) scaleY(.4); opacity: 1; } to { transform: scale(3) scaleY(.9); opacity: 0; } }
.map-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-top: 1px solid var(--line); }
.map-foot small { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }

/* ============ Footer ============ */
.footer { background: #0c2b2d; color: #cfe3e1; padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.brand-foot .brand-text small { color: #8fb1ae; }
.brand-foot .brand-text strong { color: #fff; }
.copy { margin: 0; font-size: 14px; color: #8fb1ae; }

/* ============ Floating buttons ============ */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 28px rgba(37,211,102,.45);
  transition: transform .35s var(--ease);
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: pulse 2.2s ease-out infinite; }
.wa-float svg { width: 28px; height: 28px; stroke-width: 1.8; }
.wa-float:hover { transform: scale(1.1); }
@keyframes pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(1.7); opacity: 0; } }
.to-top {
  position: fixed; right: 27px; bottom: 92px; z-index: 90; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--primary); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .35s, transform .35s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

/* Hours + open badge */
.hrs { display: flex; flex-wrap: wrap; gap: 0 10px; font-size: 15px; line-height: 1.5; }
.hrs b { min-width: 92px; }
.hrs span { font-weight: 600; color: var(--muted); }
.open-badge { display: inline-flex; align-items: center; gap: 7px; margin: 4px 0 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: #fdecea; color: #b42318; }
.open-badge:empty { display: none; }
.open-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.open-badge.is-open { background: #e7f8ee; color: #137a3c; }
.open-badge.is-open::before { animation: ping-green 1.8s infinite; }
@keyframes ping-green { 0% { box-shadow: 0 0 0 0 rgba(19,122,60,.5); } 70%, 100% { box-shadow: 0 0 0 7px rgba(19,122,60,0); } }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 24px; }
.team[hidden], .team-title:has(+ .team[hidden]) { display: none; }
.team-title { margin: 48px 0 0; text-align: center; font-size: 22px; font-weight: 800; }
.member { display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s, opacity .9s var(--ease); transition-delay: var(--rd, 0s); }
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.member h3 { margin: 0 0 4px; font-size: 18px; }
.member .doc-quals { margin: 0; font-size: 14px; }
.member-pic { flex: none; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--accent); }
.member-pic img { width: 100%; height: 100%; object-fit: cover; }
.initials { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 24px; background: linear-gradient(135deg, var(--primary), var(--accent)); background-size: 200% 200%; animation: flow 6s ease infinite; }

/* Language crossfade */
.i18n-swap [data-i18n]:not(.hero-in) { animation: swap .45s var(--ease); }
.i18n-swap .hero-in { opacity: 1; transform: none; }

/* Tamil labels are longer: tighten the header */
.nav a { white-space: nowrap; }
html[lang="ta"] .nav a { font-size: 14px; padding: 8px 7px; }
html[lang="ta"] .brand-text strong { font-size: 15px; }
html[lang="ta"] .header-inner { gap: 16px; }
@media (max-width: 1499px) { html[lang="ta"] .header-actions .js-book { display: none; } }

/* Highlights strip (shown when no real stats are configured) */
.hl { display: flex; align-items: center; gap: 14px; padding: 24px; border-right: 1px solid var(--line); }
.hl:last-child { border-right: 0; }
.hl-ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); transition: transform .5s var(--ease), background .4s, color .4s; }
.hl-ico svg { width: 22px; height: 22px; }
.hl:hover .hl-ico { transform: rotate(-10deg) scale(1.08); background: var(--primary); color: #fff; }
.hl strong { display: block; font-size: 15px; line-height: 1.3; }
.hl span { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .hl { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 20px; } .hl:last-child { border-bottom: 0; } }
@keyframes swap { from { opacity: 0; filter: blur(4px); } to { opacity: 1; filter: none; } }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .nav a { padding: 8px 9px; font-size: 14px; }
}
@media (max-width: 1240px) {
  .burger { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; margin: 0;
    padding: 12px 16px 20px; background: #fff; box-shadow: 0 20px 40px rgba(11,60,60,.12);
    clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease); visibility: hidden;
  }
  .nav.open { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav a { padding: 14px 8px; font-size: 17px; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(-8px); transition: opacity .4s, transform .4s var(--ease), color .25s; }
  .nav.open a { opacity: 1; transform: none; }
  .nav.open a:nth-child(2) { transition-delay: .04s; } .nav.open a:nth-child(3) { transition-delay: .08s; }
  .nav.open a:nth-child(4) { transition-delay: .12s; } .nav.open a:nth-child(5) { transition-delay: .16s; } .nav.open a:nth-child(6) { transition-delay: .2s; }
  .nav a::after { display: none; }
  .header-actions { margin-left: auto; }
  html[lang="ta"] .header-actions .js-book { display: none; }
  html[lang="ta"] .nav a { font-size: 17px; padding: 14px 8px; }
}
@media (min-width: 800px) and (max-width: 1240px) { html[lang="ta"] .header-actions .js-book { display: inline-flex; } }
@media (max-width: 440px) {
  .brand { flex: 0 1 auto; }
  .brand-text strong, html[lang="ta"] .brand-text strong { white-space: normal; font-size: 14px; line-height: 1.2; }
  .header-actions { gap: 8px; }
}
@media (max-width: 920px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 44px; }
  .hero-visual { max-width: 520px; width: 100%; margin: 0 auto; }
  .fc1 { left: -8px; } .fc2 { right: -8px; }
  .about-grid { gap: 56px; }
  .about-badge { right: 12px; }
  .doctor-card { grid-template-columns: 1fr; text-align: center; gap: 36px; }
  .doc-actions { justify-content: center; }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .process-line { display: none; }
  .scroll-cue { display: none; }
}
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .hide-sm { display: none; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 15px; }
  .brand-mark { width: 38px; height: 38px; }
  .lang button { padding: 6px 10px; }
  .hero { padding-top: calc(var(--header-h) + 28px); }
  .hero-cta .btn { flex: 1 1 auto; }
  .services { grid-template-columns: 1fr; }
  .gallery, .gallery.g-many, .gallery.g-few { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 220px; }
  .g-wide, .gallery.g-many .g-wide { grid-row: auto; grid-column: auto; }
  .doctor-photo { width: 200px; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .map-foot { flex-direction: column; align-items: flex-start; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .float-card { padding: 9px 12px 9px 9px; }
  .float-card strong { font-size: 13px; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .hero-in, [data-reveal], .float-card { opacity: 1 !important; transform: none !important; }
  .hero-img { clip-path: none !important; }
  .hero-img img { transform: none !important; }
  .t-title .line > span { transform: none !important; opacity: 1 !important; }
}

/* =====================================================================
   Treatment cards as links
   ===================================================================== */
a.svc { color: inherit; }
.services .svc { display: flex; flex-direction: column; }
.services .svc p { flex: 1; }
.svc-more { position: relative; display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--primary); }
.svc-more svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.svc:hover .svc-more svg { transform: translateX(5px); }

/* =====================================================================
   Equipment
   ===================================================================== */
[data-equip-section][hidden] { display: none; }
.equip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 370px)); justify-content: center; gap: 24px; }
.eq { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s, opacity .9s var(--ease); transition-delay: var(--rd, 0s); }
.eq:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.eq-img { display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; cursor: zoom-in; border-radius: 0; }
.eq-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.eq:hover .eq-img img { transform: scale(1.07); }
.eq-body { padding: 20px 22px 24px; }
.eq-body h3 { margin: 0 0 6px; font-size: 18px; }
.eq-body p { margin: 0; font-size: 14.5px; color: var(--muted); }
.center-link { text-align: center; margin: 36px 0 0; }
.center-link[hidden] { display: none; }

/* =====================================================================
   Sub-pages (treatments/*.html, equipment.html)
   ===================================================================== */
.t-hero {
  position: relative; overflow: hidden; padding: calc(var(--header-h) + 48px) 0 72px;
  background: radial-gradient(900px 500px at 85% -10%, #dff3f1 0%, transparent 60%), linear-gradient(180deg, #f6fcfb, #fff);
}
.t-hero-sm { padding-bottom: 40px; }
.t-hero-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--primary); }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-current] { color: var(--ink); }
.t-title { margin: 0 0 16px; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
html[lang="ta"] .t-title { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.35; letter-spacing: 0; }
.t-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.t-title .line > span { display: inline-block; transform: translateY(105%); }

.t-orb { position: relative; width: min(300px, 70vw); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.orb-core {
  position: relative; z-index: 1; width: 52%; aspect-ratio: 1; border-radius: 34%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 30px 60px rgba(11,110,107,.35);
  animation: orbFloat 6s ease-in-out infinite;
}
.orb-core svg { width: 52%; height: 52%; stroke-width: 1.5; }
.orb-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(46,196,182,.45); animation: spin 30s linear infinite; }
.orb-ring.r2 { inset: 13%; border-style: solid; border-color: rgba(11,110,107,.12); animation-duration: 18s; animation-direction: reverse; }
.orb-ring.r1::after { content: ""; position: absolute; top: 8%; left: 18%; width: 14px; height: 14px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 0 5px #fff; }
@keyframes orbFloat { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(4deg); } }

.t-section { padding-top: 56px; }
.t-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.t-block { margin-bottom: 56px; }
.t-block:last-child { margin-bottom: 0; }
.t-h { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; margin: 0 0 18px; letter-spacing: -.01em; }
html[lang="ta"] .t-h { font-size: clamp(20px, 2vw, 24px); letter-spacing: 0; }
.t-note { margin: 0; padding: 14px 18px; border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--tint); color: var(--muted); font-size: 15px; }

/* steps timeline */
.t-steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 18px; }
.t-steps::before, .t-steps::after { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 3px; border-radius: 3px; background: var(--line); }
.t-steps::after { background: linear-gradient(180deg, var(--primary), var(--accent)); transform: scaleY(0); transform-origin: top; transition: transform 1.6s var(--ease) .2s; }
.t-steps.in::after { transform: scaleY(1); }
.t-steps li { position: relative; z-index: 1; display: flex; gap: 18px; align-items: center; padding: 16px 20px 16px 0; }
.t-step-num { flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: var(--primary); background: #fff; border: 3px solid var(--primary-50); box-shadow: var(--shadow-sm); transition: background .4s, color .4s, border-color .4s, transform .4s var(--ease); }
.t-steps li:hover .t-step-num { background: var(--primary); color: #fff; border-color: var(--primary); transform: scale(1.08); }
.t-steps p { margin: 0; font-weight: 600; font-size: 16px; }

/* photos */
.t-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.t-photos .g-item { aspect-ratio: 4 / 3; }

/* aftercare */
.t-care { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.care-card { padding: 22px 20px; border-radius: var(--radius); background: var(--tint); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s, background .4s, opacity .9s var(--ease); transition-delay: var(--rd, 0s); }
.care-card:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--shadow); }
.care-num { display: block; font-size: 13px; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.care-card p { margin: 0; font-weight: 600; font-size: 15px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: box-shadow .35s, border-color .35s, opacity .9s var(--ease), transform .9s var(--ease); }
.faq details[open] { border-color: transparent; box-shadow: var(--shadow); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-50); transition: background .3s, transform .4s var(--ease); }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 2px; border-radius: 2px; background: var(--primary); transition: transform .4s var(--ease), background .3s; }
.faq-plus::after { transform: rotate(90deg); }
.faq details[open] .faq-plus { background: var(--primary); transform: rotate(180deg); }
.faq details[open] .faq-plus::before, .faq details[open] .faq-plus::after { background: #fff; }
.faq details[open] .faq-plus::after { transform: rotate(0); }
.faq-a { padding: 0 22px 20px; color: var(--muted); }
.faq-a p { margin: 0; }
.faq details[open] .faq-a { animation: faqIn .45s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* sidebar */
.t-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }
.aside-card { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.aside-card h3 { margin: 0 0 12px; font-size: 18px; }
.book-card { display: grid; gap: 10px; background: linear-gradient(180deg, #fff, var(--tint)); }
.book-card .open-badge { justify-self: start; margin: 0; }
.aside-hours { display: grid; gap: 2px; margin-bottom: 6px; }
.aside-hours .hrs { font-size: 14px; }
.aside-hours .hrs b { min-width: 84px; }
.book-card .btn { width: 100%; }
.others { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.others a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; font-size: 14.5px; font-weight: 600; transition: background .25s, color .25s; }
.others a:hover { background: var(--primary-50); color: var(--primary); }
.others a > span:nth-child(2) { flex: 1; }
.others .ico { width: 16px; height: 16px; opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .35s var(--ease); }
.others a:hover .ico { opacity: 1; transform: none; }
.o-ico { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); }
.o-ico svg { width: 18px; height: 18px; stroke-width: 1.8; }

@media (max-width: 980px) {
  .t-layout { grid-template-columns: 1fr; }
  .t-aside { position: static; }
}
@media (max-width: 760px) {
  .t-hero-grid { grid-template-columns: 1fr; }
  .t-orb { width: 200px; order: -1; margin: 0; }
  .t-care { grid-template-columns: 1fr; }
}

/* the hidden attribute must win over .btn display rules */
[hidden] { display: none !important; }

/* ===================== Content from HMS (cms.js) ===================== */
.cms-preview { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; box-shadow: 0 -4px 16px rgba(0,0,0,.12); padding: 10px 16px; background: #fff3cd; color: #5c4400; font: 600 14px/1.4 system-ui, sans-serif; text-align: center; }
.cms-preview a { color: inherit; margin-left: 8px; }
.cms-desc { max-width: 720px; margin-inline: auto; white-space: pre-line; }
.cms-one img { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: 20px; }
.cms-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 28px; }
.cms-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 18px; background: #fff; box-shadow: 0 8px 30px rgba(11, 110, 107, .08); color: inherit; text-decoration: none; }
.cms-card img { width: 100%; height: 170px; object-fit: cover; border-radius: 12px; }
.cms-card h3 { margin: 4px 0 0; font-size: 1.1rem; }
.cms-card p { margin: 0; opacity: .8; white-space: pre-line; }
.cms-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.cms-logo { background: none !important; overflow: hidden; }
.cms-social a { color: inherit; }
.cms-form { margin-top: 32px; padding: 24px; border-radius: 20px; background: #fff; box-shadow: 0 8px 30px rgba(11, 110, 107, .08); display: grid; gap: 14px; }
.cms-form h3 { margin: 0; }
.cms-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.cms-form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.cms-form input, .cms-form textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #cfe3e0; border-radius: 10px; width: 100%; box-sizing: border-box; }
.cms-form button { justify-self: start; }
.cms-form .cms-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cms-form-msg { margin: 0; color: #0b6e6b; }
.cms-form-msg.err { color: #b42318; }
