:root {
  --bg: #ffffff;
  --soft: #f6f8f7;
  --ink: #101614;
  --muted: #5d6965;
  --line: #e6ebe9;
  --accent: #12806a;
  --accent-2: #0d6655;
  --radius: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img, svg, canvas { display: block; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 30ch; margin-top: 20px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: 16px;
  transition: transform .25s var(--ease), background .25s;
}
.btn:hover { background: var(--accent); }
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.link { font-weight: 600; text-decoration: none; color: var(--ink); opacity: .7; transition: opacity .2s; }
.link:hover { opacity: 1; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.header.is-scrolled { border-color: var(--line); }
.header__in { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.logo__mark { width: 30px; height: 30px; color: var(--accent); }
.logo b { font-weight: 800; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: calc(68px + clamp(40px, 7vw, 96px)) 0 clamp(56px, 8vw, 104px); background: radial-gradient(55% 60% at 75% 45%, #eef6f2 0%, rgba(238,246,242,0) 70%); }
.hero__in { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 62px); }
.hero .lead { max-width: 46ch; }
.cta { display: flex; align-items: center; gap: 24px; margin-top: 36px; flex-wrap: wrap; }
.hero__points { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 12px; color: var(--muted); font-size: 16px; }
.hero__points li { position: relative; padding-left: 28px; }
.hero__points li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 10px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) scale(.8); }
.hero__points b { color: var(--ink); font-weight: 600; }
.hero__photo { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: #e3efea; box-shadow: 0 40px 80px -40px rgba(16, 40, 32, .35); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero__photo figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; background: rgba(255,255,255,.94); border-radius: 18px; padding: 14px 18px; display: grid; gap: 2px; }
.hero__photo figcaption span { color: var(--muted); font-size: 14px; }

/* Breadcrumbs & inner pages */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.page-hero { padding: calc(68px + clamp(40px, 6vw, 80px)) 0 clamp(40px, 5vw, 64px); background: linear-gradient(#f3f8f6, #fff); }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 58px); max-width: 20ch; }
.page-hero .lead { max-width: 60ch; }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(26px, 3vw, 36px); margin: 56px 0 18px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: #2c3532; margin-top: 14px; }
.prose ul, .prose ol { margin: 16px 0 0; padding-left: 22px; color: #2c3532; display: grid; gap: 8px; }
.prose a { color: var(--accent); font-weight: 600; }
.aside-cta { margin-top: 56px; padding: 32px; border-radius: var(--radius); background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.aside-cta p { font-size: 20px; font-weight: 700; max-width: 30ch; }
.aside-cta .btn { background: #fff; color: var(--ink); }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.related a { display: block; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; font-weight: 600; transition: border-color .2s, color .2s; }
.related a:hover { border-color: var(--accent); color: var(--accent); }
.related a span { display: block; color: var(--muted); font-weight: 400; font-size: 14px; margin-top: 4px; }
.service h3 a { text-decoration: none; }
.service h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.service__more { display: inline-block; margin-top: 18px; font-weight: 600; font-size: 15px; color: var(--accent); }

/* Sections */
.section { padding: clamp(88px, 12vw, 160px) 0; }
.section--soft { background: var(--soft); }
.section__head { max-width: 720px; margin-bottom: clamp(48px, 6vw, 80px); }
.section__head h2, .doctor h2, .contacts h2 { font-size: clamp(34px, 4.4vw, 56px); }
.section__sub { color: var(--muted); font-size: 19px; margin-top: 20px; max-width: 52ch; }

/* Services */
.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.service {
  grid-column: span 2; position: relative; padding: 36px 32px 40px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color .3s, box-shadow .4s var(--ease), transform .4s var(--ease);
}
.service:nth-child(4), .service:nth-child(5) { grid-column: span 3; }
.service:hover { border-color: transparent; box-shadow: 0 24px 60px -24px rgba(16, 40, 32, .22); transform: translateY(-4px); }
.service__num { position: absolute; top: 32px; right: 32px; font-size: 13px; font-weight: 600; color: var(--muted); }
.service__icon { width: 44px; height: 44px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 40px; }
.service h3 { font-size: 23px; margin-bottom: 14px; letter-spacing: -0.02em; }
.service p { color: var(--muted); font-size: 16px; }

/* Doctor */
.doctor { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.doctor__photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden;
  background: radial-gradient(120% 90% at 30% 20%, #ffffff 0%, #e3efea 55%, #cfe3da 100%);
  display: grid; place-items: center;
}
.doctor__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transform: scale(1.08); transition: transform 1.6s var(--ease); }
.doctor__photo.is-in img { transform: scale(1); }
.doctor__initials { font-size: clamp(90px, 12vw, 160px); font-weight: 800; letter-spacing: -0.06em; color: rgba(18, 128, 106, .18); }
.doctor__badge { position: absolute; left: 20px; bottom: 20px; background: #fff; border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px -12px rgba(0,0,0,.2); }
.doctor__role { color: var(--muted); font-size: 18px; margin: 12px 0 28px; }
.doctor__body > p { font-size: 18px; color: #2c3532; max-width: 54ch; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 44px 0; }
.stat { display: flex; flex-direction: column-reverse; border-top: 1px solid var(--ink); padding-top: 16px; }
.stat dd { margin: 0; font-size: clamp(40px, 4.6vw, 60px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.stat dt { color: var(--muted); font-size: 14px; margin-top: 10px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.checks li { position: relative; padding-left: 28px; font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 10px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) scale(.8); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.steps li::before { content: "0" counter(s); font-size: 13px; font-weight: 600; color: var(--accent); }
.steps b { font-size: 22px; letter-spacing: -0.02em; }
.steps span { color: var(--muted); font-size: 16px; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 48px 26px 0; position: relative; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details p { padding: 0 48px 26px 0; color: var(--muted); }

/* Contacts */
.contacts { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: stretch; }
.contacts address { font-style: normal; margin: 36px 0 36px; display: grid; gap: 20px; }
.contacts address p { font-size: 20px; font-weight: 600; }
.contacts address span { display: block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contacts address a { text-decoration: none; }
.contacts__map { min-height: 420px; border-radius: var(--radius); overflow: hidden; background: var(--soft); display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.contacts__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(1) contrast(1.05); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 14px; color: var(--muted); }
.footer__in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a { text-decoration: none; font-weight: 600; color: var(--ink); }

/* Floating call button (mobile) */
.fab { display: none; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--accent); place-items: center; box-shadow: 0 14px 30px -10px rgba(18, 128, 106, .7); }
.fab svg { width: 24px; height: 24px; fill: #fff; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .nav { display: none; }
  .header__in { justify-content: space-between; }
  .services { grid-template-columns: 1fr 1fr; }
  .service, .service:nth-child(4), .service:nth-child(5) { grid-column: span 1; }
  .service:nth-child(5) { grid-column: span 2; }
  .doctor, .faq, .contacts, .hero__in { grid-template-columns: 1fr; }
  .hero__photo { max-width: 420px; }
  .related { grid-template-columns: 1fr 1fr; }
  .doctor__photo { max-width: 460px; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header .btn--sm { display: none; }
  .fab { display: grid; }
  .cta { margin-top: 24px; }
  .services, .steps, .checks { grid-template-columns: 1fr; }
  .service:nth-child(5) { grid-column: span 1; }
  .service { padding: 28px 24px 32px; }
  .service__icon { margin-bottom: 28px; }
  .stats { gap: 10px; }
  .stat dt { font-size: 12px; }
  .contacts__map, .contacts__map iframe { min-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition-duration: .01s !important; transition-delay: 0s !important; }
}

/* ===== Added detail sections ===== */
.btn--accent { background: var(--accent); }
.btn--accent:hover { background: var(--ink); }
.eyebrow--alert { color: #c2410c; }
.section--tight { padding-block: clamp(72px, 9vw, 120px); }

/* Ribbon */
.ribbon { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: #fff; }
.ribbon__track { display: flex; align-items: center; gap: 36px; width: max-content; animation: ribbon 38s linear infinite; }
.ribbon span { font-size: clamp(22px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; }
.ribbon span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1.2px var(--ink); }
.ribbon i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* Facts */
.facts { padding: clamp(56px, 7vw, 96px) 0 0; }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fact { padding: 28px 0 0; border-top: 1px solid var(--ink); display: flex; flex-direction: column; gap: 10px; }
.fact b { font-size: clamp(44px, 5.4vw, 76px); font-weight: 800; letter-spacing: -0.06em; line-height: 1; }
.fact > span { color: var(--muted); font-size: 15px; max-width: 22ch; }

/* Service tags */
.tags { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--soft); color: #34403c; transition: background .3s, color .3s; }
.service:hover .tags li { background: #e6f3ee; color: var(--accent-2); }
.service:hover .service__icon { transform: rotate(-8deg) scale(1.08); }
.service__icon { transition: transform .5s var(--ease); }

/* Pets */
.pets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pet { padding: 36px 32px 40px; border-radius: var(--radius); background: var(--soft); transition: transform .5s var(--ease), background .4s; }
.pet:hover { transform: translateY(-6px); background: #edf5f1; }
.pet__art { width: 104px; height: 104px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 28px; transition: transform .6s var(--ease); }
.pet__art .fill { fill: var(--ink); stroke: none; }
.pet:hover .pet__art { transform: rotate(-6deg) translateY(-4px); }
.pet h3 { font-size: 26px; margin-bottom: 12px; }
.pet p { color: var(--muted); font-size: 16px; }

/* Urgent */
.urgent { background: #fffaf6; }
.signs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #f3e4d9; border: 1px solid #f3e4d9; border-radius: var(--radius); overflow: hidden; }
.signs li { background: #fffaf6; padding: 28px 24px 30px; color: var(--muted); font-size: 15px; position: relative; transition: background .3s; }
.signs li:hover { background: #fff; }
.signs b { display: block; color: var(--ink); font-size: 18px; letter-spacing: -0.01em; margin-bottom: 8px; padding-left: 20px; position: relative; }
.signs b::before { content: ""; position: absolute; left: 0; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: #ea580c; box-shadow: 0 0 0 0 rgba(234, 88, 12, .5); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(234, 88, 12, 0); } 100% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0); } }
.urgent__cta { margin-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.urgent__cta p { font-size: 20px; font-weight: 600; }

/* Surgery prep */
.prep { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: tip; }
.tip { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px 32px; }
.tip__k { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); background: #e9f5f0; border-radius: 999px; padding: 6px 12px; margin-bottom: 26px; }
.tip h3 { font-size: 21px; margin-bottom: 10px; }
.tip p { color: var(--muted); font-size: 15px; }

/* Callout */
.callout { padding: clamp(88px, 11vw, 150px) 0; background: var(--accent); color: #fff; overflow: hidden; }
.callout__in { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.callout .eyebrow { color: rgba(255,255,255,.75); }
.callout h2 { font-size: clamp(32px, 4.4vw, 56px); max-width: 18ch; }
.callout__phone { display: inline-block; margin-top: 36px; font-size: clamp(40px, 7vw, 96px); font-weight: 800; letter-spacing: -0.05em; text-decoration: none; line-height: 1; background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat; transition: background-size .6s var(--ease); padding-bottom: 8px; }
.callout__phone:hover { background-size: 100% 3px; }
.callout__note { margin-top: 24px; color: rgba(255,255,255,.8); max-width: 44ch; }
.callout__paw { position: absolute; width: 360px; height: 360px; right: -60px; top: -110px; color: rgba(255,255,255,.07); transform: rotate(20deg); pointer-events: none; }

/* Footer */
.footer { padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 48px; }
.footer h3 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer nav a { display: block; color: var(--ink); font-weight: 500; text-decoration: none; padding: 4px 0; }
.footer nav a:hover { color: var(--accent); }
.footer__about { margin-top: 16px; max-width: 34ch; }
.footer__grid p { color: var(--muted); }
.footer__phone { display: inline-block; margin-top: 10px; font-size: 22px; font-weight: 800 !important; letter-spacing: -0.02em; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; }

@media (max-width: 960px) {
  .facts__grid, .signs, .prep { grid-template-columns: 1fr 1fr; }
  .pets { grid-template-columns: 1fr; }
  .pet { display: grid; grid-template-columns: 88px 1fr; gap: 0 24px; align-items: start; }
  .pet__art { width: 88px; height: 88px; grid-row: span 2; margin: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .signs, .prep, .related { grid-template-columns: 1fr; }
  .fact > span { font-size: 13px; }
  .pet { grid-template-columns: 64px 1fr; padding: 24px; }
  .pet__art { width: 64px; height: 64px; }
  .footer__grid { grid-template-columns: 1fr; }
  .urgent__cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ribbon__track, .signs b::before { animation: none; }
}
