/* ============================================================================
   VEDATMA AYURVEDALAYA — public website stylesheet
   Self-contained: no framework, no build step. Matches the Surya Sutra HMS
   application theme (green #2F6B4F · gold #C89B3C · ink #1F2A24 · Instrument Sans).
   ========================================================================== */

/* ---------- Fonts (self-hosted, same family as the app) ---------- */
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/instrument-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/instrument-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/instrument-sans-600.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/instrument-sans-700.woff2') format('woff2'); }

/* ---------- Design tokens (mirror of the app theme) ---------- */
:root {
  --green: #2F6B4F;
  --green-dark: #24523C;
  --green-deep: #1B3D2E;
  --green-tint: #EAF2ED;
  --green-soft: #DCEAE2;
  --gold: #C89B3C;
  --gold-dark: #A8812E;
  --gold-tint: #F7EFDD;
  --ink: #1F2A24;
  --paper: #FAFAF9;
  --paper-2: #F4F4F2;
  --line: #E7E5E4;
  --text: #292524;
  --muted: #5C5751;
  --white: #FFFFFF;
  --danger: #B3413B;
  --shadow-sm: 0 1px 2px rgba(31, 42, 36, .06);
  --shadow: 0 10px 30px -12px rgba(31, 42, 36, .18);
  --shadow-lg: 0 24px 60px -20px rgba(31, 42, 36, .30);
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --container: 1200px;
  --header-h: 76px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Instrument Sans', 'Noto Sans Devanagari', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16.5px; line-height: 1.65; color: var(--text);
  background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4, h5 { line-height: 1.18; color: var(--ink); font-weight: 700; letter-spacing: -.015em; }
::selection { background: var(--green); color: #fff; }
:focus-visible { outline: 3px solid rgba(47, 107, 79, .45); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(60px, 8vw, 100px); }
.section--tint { background: var(--paper); }
.section--green { background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 70%, var(--green-deep) 100%); color: #E9F1EC; }
.section--ink { background: linear-gradient(160deg, #26332C, var(--ink)); color: #D9E2DC; }
.section--tight { padding-block: clamp(44px, 6vw, 68px); }

.section-head { max-width: 720px; margin-bottom: clamp(34px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }
.section-head--center .eyebrow::after { content: ''; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }
.section-title { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
.section-title em { font-style: normal; color: var(--green); }
.section--green .section-title, .section--ink .section-title { color: #fff; }
.section--green .section-title em, .section--ink .section-title em { color: var(--gold); }
.section-lead { font-size: 17.5px; color: var(--muted); }
.section--green .section-lead, .section--ink .section-lead { color: #C4D4CB; }

.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 15.5px; line-height: 1.2; letter-spacing: .01em;
  border: 1.5px solid transparent; transition: all .22s ease; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--gold { background: var(--gold); color: #26200F; }
.btn--gold:hover { background: var(--gold-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--outline { border-color: #CBD5CE; color: var(--green-dark); background: transparent; }
.btn--outline:hover { border-color: var(--green); background: var(--green-tint); }
.btn--white { background: #fff; color: var(--green-dark); }
.btn--white:hover { background: var(--green-tint); color: var(--green-deep); transform: translateY(-1px); }
.btn--ghost-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--sm { padding: 9px 18px; font-size: 14px; border-radius: 7px; }
.btn--lg { padding: 16px 34px; font-size: 16.5px; }
.btn--block { width: 100%; }
.btn--link { padding: 0; color: var(--green); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.btn--link:hover { color: var(--gold-dark); }
.text-link { font-weight: 600; color: var(--green); display: inline-flex; align-items: center; gap: 6px; }
.text-link svg { width: 16px; height: 16px; transition: transform .2s; }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- Badges & chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; }
.badge--green { background: var(--green-tint); color: var(--green-dark); }
.badge--gold { background: var(--gold-tint); color: var(--gold-dark); }
.badge--dark { background: rgba(255,255,255,.14); color: #fff; }
.pill {
  padding: 9px 20px; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--muted); background: #fff; transition: all .2s;
}
.pill:hover { border-color: var(--green); color: var(--green-dark); }
.pill.is-active { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: var(--green-tint); color: var(--green); margin-bottom: 20px;
}
.card__icon svg { width: 28px; height: 28px; }
.card__icon--gold { background: var(--gold-tint); color: var(--gold-dark); }
.card__title { font-size: 19px; margin-bottom: 8px; }
.card__text { font-size: 15px; color: var(--muted); }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #C9D6CE; font-size: 13.5px; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 40px; }
.topbar__group { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 7px; color: inherit; }
.topbar svg { width: 14px; height: 14px; color: var(--gold); }
.topbar a:hover { color: #fff; }
/* Address / phone / hours strip: hidden on phones, back from tablet width. */
@media (max-width: 899px) {
  .topbar { display: none; }
}
.topbar__social { display: flex; gap: 4px; }
.topbar__social a { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; }
.topbar__social a:hover { background: rgba(255,255,255,.1); color: var(--gold); }
.topbar__social svg { width: 15px; height: 15px; color: currentColor; }

/* ---------- Navbar ---------- */
/* z-index must stay above .wa-float (80) so the dimmed backdrop covers it,
   but below .dialog/.drawer (100) that open from inside the menu. */
.site-header { position: sticky; top: 0; z-index: 95; }
.navbar { background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header.is-scrolled .navbar { box-shadow: 0 8px 24px -12px rgba(31,42,36,.18); }
.navbar__in { display: flex; align-items: center; gap: 22px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: 6px; }
.brand img { width: 46px; height: 46px; border-radius: 12px; }
.brand__text { font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.1; letter-spacing: -.01em; }
.brand__text em { display: block; font-style: normal; font-weight: 600; font-size: 12.5px; color: var(--green); letter-spacing: .14em; text-transform: uppercase; }
.brand__text:hover { color: var(--green-dark); }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
/* Drawer-only brand row (logo + name + close) — hidden on desktop. */
.nav__head { display: none; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 5px; padding: 10px 11px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; color: var(--text); background: none; white-space: nowrap;
}
.nav__link svg { width: 13px; height: 13px; opacity: .55; transition: transform .2s; }
.nav__item:hover > .nav__link, .nav__link.is-open, .nav__link.is-active { color: var(--green-dark); background: var(--green-tint); }
.nav__item.is-current > .nav__link { color: var(--green-dark); }
.nav__item.is-current > .nav__link::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; background: var(--gold); border-radius: 2px;
}
.nav__item:hover > .nav__link svg, .nav__link.is-open svg { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transition: all .2s ease; z-index: 70;
}
.dropdown::before { content: ''; position: absolute; top: -7px; left: 50%; width: 12px; height: 12px; background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: translateX(-50%) rotate(45deg); }
.nav__item:hover > .dropdown, .dropdown.is-open { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
/* Right-clamped dropdown: JS adds .is-right when a centred flyout would
   overflow the viewport edge (right-hand nav items, long translated labels). */
.dropdown.is-right { left: auto; right: 0; transform: translateY(6px); }
.dropdown.is-right::before { left: auto; right: 22px; }
.nav__item:hover > .dropdown.is-right, .dropdown.is-right.is-open { transform: translateY(0); }
.dropdown a { display: flex; align-items: center; gap: 11px; padding: 10px 13px; border-radius: var(--r-sm); font-size: 14.5px; font-weight: 500; color: var(--text); }
.dropdown a:hover { background: var(--green-tint); color: var(--green-dark); }
.dropdown a svg { width: 16px; height: 16px; color: var(--gold-dark); flex: none; }
.dropdown__head { padding: 9px 13px 7px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* language switcher */
.lang-btn svg { width: 15px; height: 15px; color: var(--gold-dark); opacity: 1; }
.lang-btn span { font-weight: 700; letter-spacing: .08em; }
.dropdown--lang { min-width: 168px; left: auto; right: 0; transform: translateY(6px); }
.dropdown--lang::before { left: auto; right: 22px; }
.nav__item:hover > .dropdown--lang, .dropdown--lang.is-open { transform: translateY(0); }
.dropdown--lang a.is-active { background: var(--green-tint); color: var(--green-dark); font-weight: 700; }
.dropdown--lang a.is-active::after { content: '✓'; margin-left: auto; color: var(--gold-dark); font-weight: 700; }

.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); border: 1.5px solid var(--line); place-items: center; margin-left: auto; }
.nav-toggle svg { width: 22px; height: 22px; color: var(--ink); }
.nav-backdrop { display: none; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--green) 0%, var(--green-dark) 55%, var(--green-deep) 100%); color: #E9F1EC; }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 560px; height: 560px; border: 1.5px solid rgba(255,255,255,.09); top: -220px; right: -140px; }
.hero::after { width: 380px; height: 380px; background: radial-gradient(circle, rgba(200,155,60,.16), transparent 65%); bottom: -140px; left: -100px; }
.hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(34px, 5vw, 70px); align-items: center; padding-block: clamp(64px, 8vw, 110px); }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #F0E6CE; margin-bottom: 24px; }
.hero__eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.hero h1 { font-size: clamp(38px, 5.4vw, 60px); color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero__lead { font-size: clamp(16.5px, 1.6vw, 19px); color: #CBDCCF; max-width: 54ch; margin-bottom: 34px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero__stats { display: flex; gap: clamp(26px, 4vw, 52px); flex-wrap: wrap; }
.stat { border-left: 2.5px solid var(--gold); padding-left: 16px; }
.stat__num { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; color: #fff; line-height: 1.1; }
.stat__label { font-size: 13.5px; color: #AEC6B7; letter-spacing: .02em; }
.hero__media { position: relative; }
.hero__media-frame { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 5 / 5.6; }
.hero__media-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__media-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 55%, rgba(27,61,46,.42)); }
.hero__chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.96); border-radius: 16px; padding: 13px 18px; box-shadow: var(--shadow);
}
.hero__chip .chip-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--green-tint); color: var(--green); display: grid; place-items: center; flex: none; }
.hero__chip .chip-ico svg { width: 21px; height: 21px; }
.hero__chip b { display: block; font-size: 14.5px; color: var(--ink); line-height: 1.25; }
.hero__chip span { font-size: 12.5px; color: var(--muted); }
.hero__chip--a { top: 26px; left: -22px; }
.hero__chip--b { bottom: 30px; right: -18px; }

/* ---------- Feature strip (overlapping hero) ---------- */
.features { position: relative; z-index: 5; margin-top: -64px; }
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.feature { display: flex; gap: 16px; align-items: flex-start; padding: 26px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s; }
.feature:hover { background: var(--paper); }
.feature:nth-child(3n) { border-right: 0; }
.feature:nth-child(n+4) { border-bottom: 0; }
.feature__ico { width: 46px; height: 46px; border-radius: 13px; background: var(--green-tint); color: var(--green); display: grid; place-items: center; flex: none; }
.feature:nth-child(even) .feature__ico { background: var(--gold-tint); color: var(--gold-dark); }
.feature__ico svg { width: 23px; height: 23px; }
.feature b { display: block; font-size: 15.5px; color: var(--ink); margin-bottom: 2px; }
.feature span { font-size: 13.5px; color: var(--muted); line-height: 1.45; display: block; }

/* ---------- Split (image + text) sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: var(--r-lg); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }
.split__media::before { content: ''; position: absolute; inset: 22px -22px -22px 22px; border-radius: var(--r-lg); border: 2px solid var(--green-soft); z-index: -1; }
.split__badge { position: absolute; bottom: -20px; right: 22px; background: var(--green); color: #fff; border-radius: var(--r); padding: 16px 22px; box-shadow: var(--shadow); text-align: center; }
.split__badge b { display: block; font-size: 26px; line-height: 1; }
.split__badge span { font-size: 12.5px; opacity: .85; }
.checklist { display: grid; gap: 13px; margin: 26px 0 32px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.checklist .ck { width: 24px; height: 24px; border-radius: 50%; background: var(--green-tint); color: var(--green); display: grid; place-items: center; flex: none; margin-top: 1px; }
.checklist .ck svg { width: 13px; height: 13px; }
.checklist b { color: var(--ink); }

/* ---------- Green "why" cards ---------- */
.why-card { background: linear-gradient(165deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-lg); padding: 32px 28px; transition: transform .25s, background .25s; }
.why-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.13); }
.why-card__num { font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--gold); margin-bottom: 18px; }
.why-card__ico { width: 54px; height: 54px; border-radius: 15px; background: rgba(255,255,255,.12); display: grid; place-items: center; margin-bottom: 20px; }
.why-card__ico svg { width: 27px; height: 27px; color: var(--gold); }
.why-card h3 { color: #fff; font-size: 18.5px; margin-bottom: 9px; }
.why-card p { font-size: 14.5px; color: #C4D4CB; }

/* ---------- Steps ---------- */
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 28px 30px; box-shadow: var(--shadow-sm); }
.step__num { position: absolute; top: -21px; left: 26px; width: 42px; height: 42px; border-radius: 13px; background: var(--gold); color: #26200F; font-weight: 700; font-size: 17px; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.step h3 { font-size: 18.5px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding-top: 21px; }

/* ---------- Doctor cards ---------- */
.doc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; text-decoration: none; display: block; }
.doc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.doc-card__media { aspect-ratio: 1 / 1.04; overflow: hidden; position: relative; }
.doc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.doc-card:hover .doc-card__media img { transform: scale(1.045); }
.doc-card__tag { position: absolute; top: 14px; left: 14px; background: rgba(31,42,36,.72); backdrop-filter: blur(6px); color: #F0E6CE; }
.doc-card__body { padding: 22px 24px 26px; }
.doc-card__body h3 { font-size: 19px; }
.doc-card__body .role { color: var(--gold-dark); font-size: 13.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin: 4px 0 10px; }
.doc-card__body p { font-size: 14.5px; color: var(--muted); margin-bottom: 14px; }

/* ---------- Testimonials ---------- */
.tslider { position: relative; max-width: 860px; margin-inline: auto; text-align: center; }
.tslide { display: none; }
.tslide.is-active { display: block; animation: fadeUp .5s ease; }
.tslide__quote { width: 52px; height: 52px; border-radius: 16px; background: var(--gold-tint); color: var(--gold-dark); display: grid; place-items: center; margin: 0 auto 24px; }
.tslide blockquote { font-size: clamp(18px, 2.2vw, 23px); line-height: 1.6; color: var(--ink); font-weight: 500; margin-bottom: 26px; }
.tslide__who { display: flex; align-items: center; justify-content: center; gap: 13px; }
.avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 17px; letter-spacing: .02em; flex: none; }
.tslide__who b { display: block; color: var(--ink); font-size: 15.5px; text-align: left; }
.tslide__who span { display: block; font-size: 13px; color: var(--muted); text-align: left; }
.tdots { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.tdots button { width: 9px; height: 9px; border-radius: 999px; background: var(--line); transition: all .25s; }
.tdots button.is-active { width: 26px; background: var(--gold); }
.stars { display: inline-flex; gap: 3px; color: var(--gold); margin-bottom: 18px; }
.stars svg { width: 17px; height: 17px; }

/* ---------- Article cards ---------- */
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__media { aspect-ratio: 16 / 9.6; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.post-card__meta .badge { font-size: 11.5px; }
.post-card__body h3 { font-size: 18px; line-height: 1.35; }
.post-card__body h3 a { color: inherit; }
.post-card__body h3 a:hover { color: var(--green-dark); }
.post-card__body p { font-size: 14.5px; color: var(--muted); flex: 1; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); background: linear-gradient(140deg, var(--green) 0%, var(--green-dark) 60%, var(--green-deep) 100%); padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 34px; align-items: center; color: #D9E7DE; }
.cta-band::before { content: ''; position: absolute; width: 340px; height: 340px; border: 1.5px solid rgba(255,255,255,.1); border-radius: 50%; top: -160px; right: -80px; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 12px; }
.cta-band h2 em { font-style: normal; color: var(--gold); }
.cta-band p { max-width: 56ch; }
.cta-band__actions { display: flex; flex-direction: column; gap: 13px; align-items: stretch; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #AABFB3; font-size: 14.5px; }
.footer__main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: clamp(30px, 4vw, 60px); padding-block: clamp(52px, 7vw, 78px) 44px; }
.footer .brand__text { color: #fff; }
.footer .brand__text em { color: var(--gold); }
.footer__about { margin-top: 18px; max-width: 40ch; }
.footer__social { display: flex; gap: 9px; margin-top: 22px; }
.footer__social a { width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.07); display: grid; place-items: center; color: #C9D6CE; transition: all .2s; }
.footer__social a:hover { background: var(--green); color: #fff; }
.footer__social svg { width: 17px; height: 17px; }
.footer h4 { color: #fff; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 20px; }
.footer h4::after { content: ''; display: block; width: 30px; height: 2px; background: var(--gold); border-radius: 2px; margin-top: 9px; }
.footer__links { display: grid; gap: 11px; }
.footer__links a { color: #AABFB3; display: inline-flex; align-items: center; gap: 8px; }
.footer__links a::before { content: '›'; color: var(--gold); font-weight: 700; }
.footer__links a:hover { color: #fff; }
.footer__contact { display: grid; gap: 15px; }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer__contact svg { width: 17px; height: 17px; color: var(--gold); flex: none; margin-top: 3px; }
.footer__contact a { color: #C9D6CE; }
.footer__contact a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.09); padding-block: 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13.5px; }
.footer__bottom a { color: #AABFB3; }
.footer__bottom a:hover { color: #fff; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; background: linear-gradient(150deg, var(--green) 0%, var(--green-dark) 60%, var(--green-deep) 100%); color: #E9F1EC; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; width: 460px; height: 460px; border: 1.5px solid rgba(255,255,255,.08); border-radius: 50%; top: -200px; right: -120px; }
.page-hero__in { position: relative; z-index: 1; padding-block: clamp(46px, 6vw, 76px); }
.breadcrumb { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: #B8CDC0; margin-bottom: 14px; flex-wrap: wrap; }
.breadcrumb a { color: #D7E5DB; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { opacity: .5; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 46px); max-width: 22ch; }
.page-hero__lead { margin-top: 14px; max-width: 66ch; color: #C4D4CB; font-size: 17px; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field label span { color: var(--danger); }
.input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm); border: 1.5px solid #D6D3D0;
  background: #fff; font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3.5px rgba(47,107,79,.14); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235C5751' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 38px; }
.hp-field { position: absolute !important; left: -6000px; opacity: 0; pointer-events: none; }
.form-note { font-size: 13px; color: var(--muted); }
.form-status { display: none; padding: 14px 18px; border-radius: var(--r-sm); font-size: 14.5px; font-weight: 500; }
.form-status.is-ok { display: block; background: var(--green-tint); color: var(--green-dark); border: 1px solid var(--green-soft); }
.form-status.is-err { display: block; background: #FBEDEA; color: var(--danger); border: 1px solid #F0D4CF; }
.form-status a { font-weight: 700; text-decoration: underline; }

/* ---------- Dialogs (modal) ---------- */
.dialog { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 22px; background: rgba(24,32,27,.6); backdrop-filter: blur(5px); opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s; overflow-y: auto; }
.dialog.is-open { opacity: 1; visibility: visible; }
.dialog__card { width: 100%; max-width: 560px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: clamp(26px, 4vw, 38px); position: relative; transform: translateY(14px) scale(.985); transition: transform .25s ease; margin: auto; }
.dialog.is-open .dialog__card { transform: none; }
.dialog__close { position: absolute; top: 15px; right: 15px; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--muted); background: var(--paper); transition: all .2s; }
.dialog__close:hover { background: var(--paper-2); color: var(--ink); }
.dialog__close svg { width: 18px; height: 18px; }
.dialog__head { margin-bottom: 22px; padding-right: 40px; }
.dialog__head h3 { font-size: 23px; margin-bottom: 6px; }
.dialog__head p { color: var(--muted); font-size: 14.5px; }

/* login choice cards */
.choice-grid { display: grid; gap: 14px; }
.choice { display: flex; align-items: center; gap: 16px; padding: 19px 20px; border: 1.5px solid var(--line); border-radius: var(--r); text-decoration: none; transition: all .2s; background: #fff; }
.choice:hover { border-color: var(--green); background: var(--green-tint); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.choice__ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.choice__ico svg { width: 24px; height: 24px; }
.choice--patient .choice__ico { background: var(--green-tint); color: var(--green); }
.choice--staff .choice__ico { background: var(--gold-tint); color: var(--gold-dark); }
.choice b { display: block; color: var(--ink); font-size: 16px; }
.choice span { display: block; font-size: 13.5px; color: var(--muted); }
.choice__arrow { margin-left: auto; color: var(--muted); transition: transform .2s; }
.choice:hover .choice__arrow { transform: translateX(4px); color: var(--green); }

/* ---------- Cart drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(24,32,27,.55); opacity: 0; transition: opacity .25s; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 94vw); background: #fff; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .28s ease; }
.drawer.is-open { visibility: visible; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 18px; display: flex; align-items: center; gap: 9px; }
.drawer__head h3 svg { width: 20px; height: 20px; color: var(--green); }
.drawer__items { flex: 1; overflow-y: auto; padding: 18px 22px; display: grid; gap: 16px; align-content: start; }
.cart-empty { text-align: center; color: var(--muted); padding: 44px 10px; }
.cart-empty svg { width: 46px; height: 46px; margin: 0 auto 14px; color: var(--line); }
.citem { display: grid; grid-template-columns: 64px 1fr auto; gap: 13px; align-items: center; border: 1px solid var(--line); border-radius: var(--r); padding: 11px; }
.citem img { width: 64px; height: 64px; object-fit: cover; border-radius: 9px; }
.citem b { font-size: 14px; color: var(--ink); display: block; line-height: 1.3; }
.citem .price { font-size: 13.5px; color: var(--gold-dark); font-weight: 700; }
.qty { display: inline-flex; align-items: center; gap: 3px; border: 1.5px solid var(--line); border-radius: 8px; padding: 2px; margin-top: 6px; }
.qty button { width: 26px; height: 26px; border-radius: 6px; font-weight: 700; color: var(--green-dark); display: grid; place-items: center; }
.qty button:hover { background: var(--green-tint); }
.qty span { min-width: 24px; text-align: center; font-size: 14px; font-weight: 600; }
.citem__rm { color: var(--muted); width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; }
.citem__rm:hover { background: #FBEDEA; color: var(--danger); }
.citem__rm svg { width: 15px; height: 15px; }
.drawer__foot { border-top: 1px solid var(--line); padding: 18px 22px 22px; display: grid; gap: 13px; }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: var(--muted); }
.drawer__total b { font-size: 22px; color: var(--ink); }
.drawer__hint { font-size: 12.5px; color: var(--muted); text-align: center; }
.cart-badge { position: absolute; top: -7px; right: -9px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: #26200F; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.cart-badge[hidden] { display: none; }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 7px; }

/* ---------- eShop ---------- */
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 30px; }
.shop-toolbar__filters { display: flex; gap: 9px; flex-wrap: wrap; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; position: relative; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card__media { aspect-ratio: 1; overflow: hidden; position: relative; background: var(--paper-2); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card__flag { position: absolute; top: 12px; left: 12px; }
.product-card__flag .badge--rx { background: #FBEDEA; color: var(--danger); }
.product-card__body { padding: 17px 18px 19px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.product-card__cat { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); }
.product-card__body h3 { font-size: 16.5px; line-height: 1.35; }
.product-card__desc { font-size: 13.5px; color: var(--muted); flex: 1; }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; }
.price-now { font-size: 19px; font-weight: 700; color: var(--green-dark); }
.price-now small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.btn--cart { padding: 9px 15px; font-size: 13.5px; border-radius: 8px; }
.btn--cart.is-added { background: var(--green-dark); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gitem { position: relative; border-radius: var(--r); overflow: hidden; cursor: zoom-in; aspect-ratio: 1; background: var(--paper-2); }
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gitem:hover img { transform: scale(1.06); }
.gitem figcaption { position: absolute; inset: auto 0 0 0; padding: 34px 15px 13px; background: linear-gradient(transparent, rgba(24,32,27,.78)); color: #fff; font-size: 13.5px; font-weight: 600; opacity: 0; transition: opacity .25s; }
.gitem:hover figcaption { opacity: 1; }
.gitem.is-hidden { display: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 110; background: rgba(20,27,23,.92); display: grid; place-items: center; padding: 30px; opacity: 0; visibility: hidden; transition: opacity .22s, visibility .22s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1020px, 92vw); max-height: 84vh; border-radius: var(--r); box-shadow: var(--shadow-lg); }
.lightbox__btn { position: absolute; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; transition: background .2s; }
.lightbox__btn:hover { background: rgba(255,255,255,.22); }
.lightbox__btn svg { width: 21px; height: 21px; }
.lightbox__close { top: 22px; right: 22px; }
.lightbox__prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__cap { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #CBD8CF; font-size: 14px; }

/* ---------- Accordion (FAQ) ---------- */
.acc { display: grid; gap: 13px; }
.acc__item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.acc__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 22px; text-align: left; font-weight: 600; font-size: 16px; color: var(--ink); }
.acc__btn:hover { background: var(--paper); }
.acc__btn svg { width: 19px; height: 19px; flex: none; color: var(--gold-dark); transition: transform .25s; }
.acc__item.is-open .acc__btn svg { transform: rotate(45deg); }
.acc__panel { display: none; padding: 0 22px 20px; color: var(--muted); font-size: 15px; }
.acc__item.is-open .acc__panel { display: block; }

/* ---------- Misc blocks ---------- */
.info-list { display: grid; gap: 22px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--green-tint); color: var(--green); display: grid; place-items: center; flex: none; }
.info-list .ico svg { width: 22px; height: 22px; }
.info-list b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 3px; }
.info-list p, .info-list a { color: var(--muted); font-size: 14.5px; }
.info-list a:hover { color: var(--green-dark); }

.table-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table-wrap th { text-align: left; background: var(--paper); color: var(--ink); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.table-wrap th, .table-wrap td { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.table-wrap tr:last-child td { border-bottom: 0; }

.map-frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-height: 420px; background: var(--paper-2); display: grid; place-items: center; color: var(--muted); font-size: 14.5px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

.page-cta { margin-top: 20px; }

/* therapy cards on panchakarma */
.therapy-card { display: flex; flex-direction: column; }
.therapy-card .card__icon { flex-direction: row; width: auto; height: auto; background: none; padding: 0; gap: 0; display: flex; align-items: center; justify-content: space-between; }
.therapy-card .sanskrit { font-size: 13px; color: var(--gold-dark); font-weight: 700; letter-spacing: .04em; }

/* timeline (doctor pages) */
.timeline { position: relative; display: grid; gap: 26px; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--green-soft); }
.timeline li { position: relative; }
.timeline li::before { content: ''; position: absolute; left: -26px; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); border: 3.5px solid #fff; box-shadow: 0 0 0 2px var(--green-soft); }
.timeline b { color: var(--ink); }
.timeline .tl-year { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; color: var(--gold-dark); text-transform: uppercase; }

/* WhatsApp floating button */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 28px; height: 28px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(16px); z-index: 120; background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 12px; font-size: 14.5px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: all .25s; display: flex; gap: 10px; align-items: center; max-width: min(480px, 92vw); text-align: center; }
.toast.is-show { opacity: 1; visibility: visible; transform: translateX(-50%); }
.toast svg { width: 18px; height: 18px; color: var(--gold); flex: none; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001s !important; }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  /* No backdrop-filter here: it would make .navbar the containing block for
     the fixed drawer (collapsing it to the navbar's 76px strip) and give the
     navbar a stacking context that drops the drawer behind .nav-backdrop. */
  .navbar { backdrop-filter: none; }
  .nav { position: fixed; inset: 0; top: 0; left: 0; z-index: 90; flex-direction: column; align-items: stretch; background: #fff; padding: 26px 24px 40px; overflow-y: auto; transform: translateX(-100%); transition: transform .28s ease; margin-left: 0; gap: 4px; width: 100%; }
  .nav.is-open { transform: none; }
  .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 85; background: rgba(24,32,27,.5); opacity: 0; visibility: hidden; transition: opacity .25s; }
  .nav-backdrop.is-show { opacity: 1; visibility: visible; }
  .nav__item { width: 100%; }
  .nav__link { width: 100%; justify-content: space-between; padding: 13px 14px; font-size: 16px; border: 1px solid transparent; }
  .dropdown { position: static; transform: none; min-width: 0; opacity: 1; visibility: visible; box-shadow: none; border: 0; border-radius: var(--r-sm); background: var(--paper); padding: 6px; margin: 2px 0 6px; display: none; }
  /* A dropdown pre-clamped for desktop must behave like every other one
     inside the drawer: plain static block, no transforms. */
  .dropdown.is-right, .nav__item:hover > .dropdown.is-right { position: static; transform: none; }
  .dropdown::before { display: none; }
  .dropdown.is-open { display: block; }
  /* Hover must not restyle the drawer's static dropdowns — the desktop
     hover rule re-applies translateX(-50%), which slid the open submenu
     about half its width to the left. */
  .nav__item:hover > .dropdown { display: none; transform: none; }
  .nav__item.is-dd-open > .dropdown { display: block; transform: none; }
  .nav__item:hover > .nav__link { background: none; }
  .dropdown--lang { display: none; flex-direction: row; flex-wrap: wrap; gap: 6px; background: transparent; padding: 2px 0; }
  .nav__item.is-dd-open > .dropdown--lang { display: flex; }
  .dropdown--lang a { background: #fff; border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; font-size: 13.5px; }
  .dropdown--lang a.is-active { border-color: var(--green); }
  .lang-item { margin-top: 10px; }
  .nav-cta { margin: 14px 0 0; flex-direction: column; align-items: stretch; }
  .nav-toggle { display: grid; }
  .nav__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
  .nav__head .brand img { width: 42px; height: 42px; }
  .nav__head .brand__text { font-size: 18px; }
  .nav-close { width: 42px; height: 42px; flex: none; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; }
  .nav-close svg { width: 20px; height: 20px; }
  .navbar__in { gap: 14px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(3n) { border-right: 1px solid var(--line); }
  .feature:nth-child(2n) { border-right: 0; }
  .feature:nth-child(n+4) { border-bottom: 1px solid var(--line); }
  .feature:nth-child(n+5) { border-bottom: 0; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__main { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__media { max-width: 560px; }
  .hero__chip--a { left: 10px; }
  .hero__chip--b { right: 10px; }
  .split { grid-template-columns: 1fr; }
  .split__media { max-width: 560px; }
  .split--flip .split__media { order: -1; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .topbar__group--extra { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container { padding-inline: 18px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: 1fr; }
  .feature { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .feature:last-child { border-bottom: 0 !important; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__main { grid-template-columns: 1fr; gap: 34px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .hero__actions .btn { flex: 1; justify-content: center; }
  .hero__stats { gap: 20px; }
  .split__badge { right: 12px; padding: 12px 16px; }
  .topbar__in { justify-content: center; }
  .topbar__group:first-child { justify-content: center; }
  .shop-toolbar { flex-direction: column; align-items: stretch; }
  .table-wrap { overflow-x: auto; }
}

/* ---------- Article detail page ---------- */
.article-wrap { max-width: 760px; margin: 0 auto; }
.article__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; font-size: 14px; color: var(--muted); }
.article__title { font-size: clamp(28px, 4.4vw, 42px); margin-top: 14px; letter-spacing: -.02em; }
.article__lead { font-size: 18.5px; line-height: 1.6; color: var(--muted); margin-top: 16px; }
.article__byline { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.article__byline img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.article__byline b { display: block; font-size: 15px; color: var(--ink); }
.article__byline span { font-size: 13px; color: var(--muted); }
.article__figure { margin: 30px 0 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.article__figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article__figure figcaption { font-size: 13px; color: var(--muted); padding: 12px 6px; background: var(--white); }
.article__body { margin-top: 34px; font-size: 16.5px; }
.article__body h2 { font-size: 24px; margin: 38px 0 14px; }
.article__body h3 { font-size: 19px; margin: 28px 0 10px; }
.article__body p { margin: 0 0 16px; }
.article__body ul { margin: 0 0 18px; }
.article__body ul li { position: relative; padding-left: 26px; margin-bottom: 9px; }
.article__body ul li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.article__body ol { margin: 0 0 18px; counter-reset: art; }
.article__body ol li { position: relative; padding-left: 34px; margin-bottom: 10px; counter-increment: art; }
.article__body ol li::before { content: counter(art); position: absolute; left: 0; top: .18em; width: 22px; height: 22px; border-radius: 50%; background: var(--green-tint); color: var(--green-dark); font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.article__body blockquote { margin: 26px 0; padding: 20px 24px; border-left: 4px solid var(--gold); background: var(--gold-tint); border-radius: 0 var(--r) var(--r) 0; font-size: 16.5px; color: var(--green-deep); font-weight: 500; }
.article__body table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14.5px; }
.article__body th { text-align: left; background: var(--green); color: #fff; padding: 11px 14px; font-weight: 600; }
.article__body td { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.article__body tr:nth-child(even) td { background: var(--paper); }
.article__body strong { color: var(--ink); }
.article__note { display: flex; gap: 12px; align-items: flex-start; margin-top: 34px; padding: 18px 20px; background: var(--green-tint); border: 1px solid var(--green-soft); border-radius: var(--r); font-size: 14px; color: var(--green-deep); }
.article__note svg { width: 20px; height: 20px; flex: none; color: var(--green); margin-top: 2px; }
.author-box { display: flex; gap: 18px; align-items: center; margin-top: 36px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.author-box img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box h3 { font-size: 18px; margin-top: 4px; }
.author-box p { font-size: 14px; color: var(--muted); margin-top: 6px; }
@media (max-width: 640px) {
  .author-box { flex-direction: column; text-align: center; }
  .article__body { font-size: 16px; }
  .article__body table { display: block; overflow-x: auto; }
}

/* eShop stock badges */
.badge--stock { display: inline-block; background: #e8f5ee; color: #1a6b52; border: 1px solid #bfe0d0;
  border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.badge--out { display: inline-block; background: #fdecea; color: #b3261e; border: 1px solid #f5c6c2;
  border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.product-card__stock { min-height: 22px; margin-bottom: 4px; }
