:root {
  --bg: #eef7f5;
  --bg-deep: #dcefed;
  --surface: rgba(255, 255, 255, .74);
  --surface-strong: rgba(255, 255, 255, .9);
  --text: #101828;
  --muted: #526173;
  --line: rgba(255, 255, 255, .58);
  --stroke: rgba(15, 23, 42, .1);
  --primary: #0b6f69;
  --primary-dark: #064743;
  --secondary: #2563eb;
  --accent: #23c4b7;
  --success: #047857;
  --warning: #b45309;
  --shadow: 0 28px 90px rgba(15, 23, 42, .16);
  --shadow-soft: 0 14px 40px rgba(15, 23, 42, .1);
  --radius: 8px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(255,255,255,.58), rgba(220,239,237,.72)),
    var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 16% 8%, rgba(35,196,183,.32), transparent 28rem),
    radial-gradient(circle at 86% 12%, rgba(37,99,235,.18), transparent 30rem),
    linear-gradient(120deg, transparent 0 42%, rgba(255,255,255,.48) 42% 43%, transparent 43% 100%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }

.container {
  width: min(var(--max), calc(100% - 36px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.top-alert {
  padding: 10px 18px;
  text-align: center;
  color: #eafffd;
  background: linear-gradient(90deg, #05312f, #0b6f69);
  font-size: 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.55);
  background: rgba(238, 247, 245, .78);
  backdrop-filter: blur(20px) saturate(150%);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand-mark {
  width: 58px;
  height: 48px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(218,255,251,.75));
  box-shadow: 0 18px 34px rgba(20,70,82,.22), inset 0 1px 0 rgba(255,255,255,.82);
  transform: rotateX(8deg) rotateY(-10deg) translateZ(6px);
  transform-style: preserve-3d;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 12px;
  background: linear-gradient(135deg, #21c7b7, #6657d8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.34);
  transform: translateZ(8px);
}

.brand-mark::after {
  display: none;
}

.brand-mark span {
  position: absolute;
  z-index: 2;
  display: block;
  width: 31px;
  height: 18px;
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15,23,42,.18);
  rotate: -28deg;
  transform: translateZ(14px);
}

.brand-mark span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 2px;
  bottom: 2px;
  width: 2px;
  background: #21c7b7;
  opacity: .8;
}

.brand-mark i {
  position: absolute;
  z-index: 2;
  right: 11px;
  bottom: 10px;
  width: 13px;
  height: 13px;
  display: block;
  border-radius: 3px 3px 2px 3px;
  background: #ff4b73;
  box-shadow: 0 5px 11px rgba(255,75,115,.28);
  rotate: -45deg;
  transform: translateZ(14px);
}

.brand-mark i::before,
.brand-mark i::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ff4b73;
}

.brand-mark i::before { left: 6px; top: 0; }
.brand-mark i::after { left: 0; top: -6px; }

.brand-title {
  color: #17193d;
}

.brand:hover .brand-mark {
  transform: rotateX(0deg) rotateY(0deg) translateY(-1px);
}

.brand-title {
  display: block;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.05;
}

.brand-subtitle {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #263449;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover {
  background: rgba(255,255,255,.68);
  color: var(--primary-dark);
}

.nav-cta {
  color: #fff !important;
  background: var(--primary) !important;
  padding-inline: 16px !important;
  box-shadow: 0 12px 26px rgba(11,111,105,.2);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: rgba(255,255,255,.82);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 99px;
  background: var(--text);
}

.section { padding: 92px 0; }

.hero {
  min-height: calc(100vh - 116px);
  padding: 72px 0 54px;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.05fr);
  gap: 44px;
  align-items: center;
}

.hero-copy { position: relative; z-index: 2; }

.eyebrow {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.18;
}

.hero-text,
.section-heading p:not(.eyebrow),
.split p,
.contact-grid p,
.trust-grid p,
.caretaker-grid p {
  color: var(--muted);
  font-size: 18px;
}

.hero-text {
  max-width: 670px;
  margin-bottom: 30px;
  font-size: 19px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 850;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #12a99f);
}

.btn-secondary,
.btn-light {
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.82);
  color: var(--primary-dark);
}

.full { width: 100%; }

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.trust-list li {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  color: #233148;
  font-size: 14px;
  font-weight: 750;
}

.hero-visual {
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% -4% -5% 8%;
  z-index: -1;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(11,111,105,.24), rgba(37,99,235,.16));
  filter: blur(22px);
  transform: translateZ(-90px) rotate(3deg);
}

.hero-visual img,
.image-card img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero-visual img {
  aspect-ratio: 1.18 / 1;
  transform: rotateY(-8deg) rotateX(3deg);
  transform-origin: center;
}

.hero-copy {
  transform-style: preserve-3d;
}

.hero-copy h1 {
  text-shadow: 0 18px 34px rgba(15,23,42,.12);
}

.glass-card,
.card,
.step,
.promise,
.form-card,
.branch-box,
.faq-list details {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(18px) saturate(145%);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.72);
}

.hero-panel {
  position: absolute;
  left: -24px;
  bottom: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 300px;
  padding: 16px 18px;
  border-radius: var(--radius);
}

.status-dot {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 8px rgba(34,197,94,.16);
}

.hero-panel strong,
.hero-panel span,
.metric-card strong,
.metric-card span {
  display: block;
}

.hero-panel span,
.metric-card span {
  color: var(--muted);
  font-size: 13px;
}

.metric-card {
  position: absolute;
  right: 16px;
  top: 18px;
  padding: 16px;
  border-radius: var(--radius);
  color: #fff;
  background: rgba(6,71,67,.88);
  box-shadow: var(--shadow-soft);
}
.metric-card span { color: rgba(255,255,255,.78); }

.signal-bar { padding: 18px 0 0; }

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.signal-grid div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.68);
}

.signal-grid strong,
.signal-grid span {
  display: block;
}

.signal-grid span {
  color: var(--muted);
  font-size: 14px;
}

.medicine-search-section {
  padding-top: 76px;
}

.search-grid {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(360px, 1fr);
  gap: 34px;
  align-items: start;
}

.search-copy {
  position: sticky;
  top: 116px;
}

.search-assist {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  padding: 20px;
  border-radius: var(--radius);
}

.search-assist.safety {
  margin-top: 14px;
  background: rgba(255,255,255,.82);
  border-color: rgba(11,111,105,.18);
}

.search-assist span {
  color: var(--muted);
}

.medicine-search {
  padding: 24px;
  border-radius: var(--radius);
}

.search-label {
  display: block;
  margin-bottom: 10px;
  color: #1d2a3d;
  font-weight: 850;
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.search-box input {
  min-height: 52px;
  margin-top: 0;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.chip {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: rgba(255,255,255,.76);
  color: #263449;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.chip.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(11,111,105,.2);
}

.medicine-results {
  display: grid;
  gap: 12px;
}

.medicine-card,
.medicine-empty {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.74);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

.medicine-empty {
  grid-template-columns: 1fr;
}

.medicine-photo {
  width: 96px;
  height: 96px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 16px 32px rgba(15,23,42,.12);
}

.medicine-card-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.medicine-card h3 {
  margin-bottom: 4px;
}

.medicine-card p,
.medicine-empty span {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.medicine-category {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.medicine-card .btn {
  min-height: 42px;
  white-space: nowrap;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.cards {
  display: grid;
  gap: 18px;
}

.cards.three { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease;
  transform-style: preserve-3d;
}

.tilt-card:hover {
  transform: translateY(-8px) rotateX(4deg) rotateY(-3deg);
  box-shadow: var(--shadow);
}

.tilt-card::after,
.step::after,
.form-card::after {
  content: "";
  position: absolute;
  inset: auto 12px -10px 12px;
  height: 18px;
  border-radius: 50%;
  background: rgba(15,23,42,.14);
  filter: blur(12px);
  z-index: -1;
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

.icon {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 900;
}

.split-section {
  background: linear-gradient(180deg, rgba(255,255,255,.32), rgba(220,239,237,.42));
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.sticky-copy {
  position: sticky;
  top: 116px;
}

.inline-link {
  color: var(--primary);
  font-weight: 850;
}

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

.glass-stack {
  transform-style: preserve-3d;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius);
}

.step:nth-child(even) { transform: translateX(20px); }

.step span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}

.step p { margin-bottom: 0; }

.visual-band {
  background:
    linear-gradient(135deg, rgba(6,71,67,.95), rgba(11,111,105,.9)),
    var(--primary-dark);
  color: #fff;
}

.visual-band .eyebrow,
.final-cta .eyebrow,
.caretaker-section .eyebrow {
  color: #9ffcf3;
}

.visual-band p,
.final-grid p,
.caretaker-grid p {
  color: rgba(255,255,255,.78);
}

.trust-grid {
  display: grid;
  grid-template-columns: minmax(320px, .86fr) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.image-card img { aspect-ratio: 4 / 3; }

.promise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.promise-grid.single {
  grid-template-columns: minmax(0, 620px);
}

.promise {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  color: var(--text);
}

.promise h3 { font-size: 24px; }

.promise ul,
.check-list,
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.promise li,
.check-list li {
  position: relative;
  padding: 9px 0 9px 26px;
  border-bottom: 1px solid rgba(15,23,42,.09);
  color: #263449;
}

.promise li:last-child,
.check-list li:last-child { border-bottom: 0; }

.promise li::before,
.check-list li::before {
  position: absolute;
  left: 0;
  font-weight: 900;
}

.promise.good li::before,
.check-list li::before {
  content: "";
  width: 8px;
  height: 14px;
  top: 10px;
  display: block;
  border-right: 3px solid var(--success);
  border-bottom: 3px solid var(--success);
  transform: rotate(42deg);
  color: var(--success);
}

.promise.caution li::before {
  content: "!";
  color: var(--warning);
}

.caretaker-section {
  background:
    linear-gradient(135deg, rgba(6,71,67,.9), rgba(37,99,235,.72)),
    var(--primary-dark);
}

.caretaker-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(280px, .7fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  border-radius: var(--radius);
  color: #fff;
}

.care-card {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.13);
}

.care-card li {
  color: #fff;
  border-color: rgba(255,255,255,.18);
}

.contact-section {
  background: linear-gradient(180deg, rgba(220,239,237,.58), rgba(238,247,245,.2));
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(320px, .88fr);
  gap: 34px;
  align-items: start;
}

.branch-box {
  margin-top: 26px;
  padding: 22px;
  border-radius: var(--radius);
}

.branch-box p {
  margin-bottom: 8px;
  color: var(--muted);
}

.form-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
}

.form-card label {
  display: block;
  margin-bottom: 14px;
  color: #1d2a3d;
  font-weight: 750;
}

input,
textarea {
  width: 100%;
  margin-top: 7px;
  padding: 14px 15px;
  border: 1px solid rgba(15,23,42,.14);
  border-radius: var(--radius);
  outline: none;
  background: rgba(255,255,255,.82);
  color: var(--text);
  font: inherit;
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(11,111,105,.12);
}

textarea { resize: vertical; }

.consent {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted) !important;
  font-size: 14px;
}

.consent input {
  width: auto;
  margin-top: 4px;
}

.hidden { display: none; }

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 880px;
  margin: 0 auto;
}

details {
  padding: 0 20px;
  border-radius: var(--radius);
}

summary {
  padding: 18px 0;
  cursor: pointer;
  font-weight: 850;
  list-style: none;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  float: right;
  color: var(--primary);
  font-size: 22px;
  line-height: 1;
}

details[open] summary::after { content: "-"; }

details p {
  padding-bottom: 18px;
  margin-bottom: 0;
  color: var(--muted);
}

.final-cta {
  padding: 54px 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
  color: #fff;
}

.final-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.final-grid p { margin-bottom: 0; }

.site-footer {
  padding: 56px 0 24px;
  background: #061f1e;
  color: #dff7f5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  gap: 34px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.footer-brand .brand-subtitle,
.site-footer p,
.site-footer li,
.site-footer a {
  color: rgba(223,247,245,.72);
}

.site-footer h3 { color: #fff; }
.site-footer li { padding: 6px 0; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  font-size: 13px;
}

.footer-bottom p { margin: 0; }

.floating-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
}

.floating-cta a {
  display: inline-flex;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: #25d366;
  color: #062a17;
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(37,211,102,.32);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

@media (min-width: 981px) {
  .section,
  .signal-bar,
  .final-cta,
  .site-footer {
    position: relative;
    transform-style: preserve-3d;
  }

  .section::before {
    content: "";
    position: absolute;
    inset: 28px 2vw auto 2vw;
    height: 38%;
    z-index: -1;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,.34), rgba(35,196,183,.08));
    filter: blur(1px);
    transform: translateZ(-80px) rotateX(8deg);
    pointer-events: none;
  }

  .hero-grid,
  .split,
  .search-grid,
  .trust-grid,
  .contact-grid {
    perspective: 1200px;
  }

  .hero-copy {
    transform: translateZ(24px);
  }

  .hero-copy h1 {
    text-shadow: 0 20px 36px rgba(15,23,42,.14);
  }

  .hero-visual::after {
    content: "";
    position: absolute;
    inset: 10% 4% -9% 12%;
    z-index: -2;
    border-radius: 8px;
    background: rgba(6,71,67,.18);
    filter: blur(18px);
    transform: translateZ(-130px) rotateX(18deg) skewX(-8deg);
  }

  .hero-visual img {
    transform: rotateY(-10deg) rotateX(5deg) translateZ(18px);
  }

  .hero-panel {
    transform: translateZ(60px) rotateY(-7deg);
  }

  .metric-card {
    transform: translateZ(70px) rotateY(-9deg);
  }

  .signal-grid div,
  .medicine-search,
  .search-assist,
  .medicine-card,
  .medicine-empty,
  .card,
  .step,
  .promise,
  .branch-box,
  .form-card,
  details,
  .caretaker-grid,
  .final-grid {
    transform-style: preserve-3d;
    box-shadow: 0 26px 56px rgba(15,23,42,.12), inset 0 1px 0 rgba(255,255,255,.72);
  }

  .signal-grid div {
    transform: perspective(900px) rotateX(3deg);
  }

  .medicine-search {
    transform: perspective(1100px) rotateY(-3deg) translateZ(14px);
  }

  .search-assist {
    transform: perspective(900px) rotateX(3deg);
  }

  .medicine-card {
    transform: perspective(850px) rotateX(1.5deg);
  }

  .card {
    transform: perspective(900px) rotateX(2deg) translateZ(0);
  }

  .card h3,
  .card p,
  .card .icon {
    transform: translateZ(18px);
  }

  .icon {
    box-shadow: 0 14px 28px rgba(11,111,105,.22);
  }

  .step {
    transform: perspective(900px) rotateY(-2deg);
  }

  .step:nth-child(even) {
    transform: translateX(20px) perspective(900px) rotateY(2deg);
  }

  .image-card {
    perspective: 1100px;
  }

  .image-card img {
    transform: rotateY(7deg) rotateX(3deg);
    box-shadow: 0 36px 90px rgba(0,0,0,.3);
  }

  .promise,
  .branch-box,
  details {
    transform: perspective(900px) rotateX(2deg);
  }

  .caretaker-grid {
    transform: perspective(1000px) rotateX(2deg);
    box-shadow: 0 34px 90px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.28);
  }

  .form-card {
    transform: perspective(1000px) rotateY(-3deg) translateZ(12px);
  }

  .final-grid {
    transform: perspective(1000px) rotateX(2deg);
  }
}

@media (max-width: 980px) {
  .menu-toggle { display: block; }

  .nav-links {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 86px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,.92);
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }

  .hero-grid,
  .split,
  .search-grid,
  .trust-grid,
  .caretaker-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .sticky-copy,
  .search-copy { position: static; }
  .cards.three,
  .signal-grid,
  .promise-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual img,
  .medicine-search,
  .search-assist,
  .medicine-card,
  .medicine-empty { transform: none; }
  .hero-panel { left: 14px; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, var(--max)); }
  .section { padding: 64px 0; }
  .hero {
    min-height: auto;
    padding: 52px 0 38px;
    background:
      linear-gradient(180deg, rgba(238,247,245,.86), rgba(238,247,245,.97) 58%, rgba(238,247,245,1)),
      url("/assets/hero-pharmacy-consultation.png") center top / cover no-repeat;
  }
  h1 { font-size: clamp(34px, 10vw, 44px); }
  h2 { font-size: clamp(30px, 9vw, 42px); }
  .hero-text { font-size: 17px; }
  .hero-actions .btn,
  .contact-actions .btn,
  .search-box .btn {
    width: 100%;
  }
  .search-box,
  .medicine-card,
  .medicine-empty {
    display: grid;
    grid-template-columns: 1fr;
  }
  .medicine-photo {
    width: 100%;
    height: 170px;
  }
  .medicine-card-copy {
    display: grid;
    gap: 12px;
  }
  .cards.three,
  .signal-grid,
  .promise-grid {
    grid-template-columns: 1fr;
  }
  .step,
  .caretaker-grid,
  .form-card {
    padding: 20px;
  }
  .step {
    grid-template-columns: 46px 1fr;
  }
  .step span {
    width: 38px;
    height: 38px;
  }
  .step:nth-child(even) { transform: none; }
  .hero-panel,
  .metric-card {
    position: static;
    margin-top: 12px;
  }
  .final-grid,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .floating-cta {
    display: none;
  }
}
