:root {
  --green: #047857;
  --green-2: #0f9f75;
  --mint: #e8f8f2;
  --mint-2: #f4fbf8;
  --ink: #0b1728;
  --muted: #667085;
  --line: #dce8e2;
  --cream: #fffaf3;
  --orange: #f97316;
  --red: #ef4444;
  --teal-dark: #003f3b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fbfefd;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.container-page {
  width: min(1220px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
}
.logo-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 12px;
  color: var(--green);
  font-size: 18px;
}
.logo strong { display: block; font-size: 22px; line-height: 1; }
.logo small { display: block; color: var(--muted); font-size: 9px; font-weight: 700; }
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  position: relative;
  font-size: 12px;
  font-weight: 800;
}
.nav-link.active:after, .nav-link:hover:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  border-radius: 999px;
  background: var(--green);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.emergency-call {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
}
.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  font-weight: 800;
}

.btn-primary, .btn-outline, .btn-light {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  padding: 11px 18px;
  border: 0;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary { color: white; background: linear-gradient(135deg, var(--green), var(--green-2)); box-shadow: 0 12px 24px rgba(4,120,87,.18); }
.btn-outline { color: var(--green); border: 1px solid #b9d9ce; background: white; }
.btn-light { color: var(--green); background: #eafff7; }
.btn-primary:hover, .btn-outline:hover, .btn-light:hover { transform: translateY(-2px); }

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 18px;
  max-width: 640px;
  font-size: clamp(42px, 5.3vw, 72px);
  line-height: 1.02;
  letter-spacing: -.055em;
}
h2 { margin-bottom: 10px; font-size: clamp(28px, 3vw, 42px); line-height: 1.08; letter-spacing: -.04em; }
h3 { margin-bottom: 8px; font-size: 18px; }
.lead { max-width: 590px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; line-height: 1.65; }
.link-accent { color: var(--green); font-size: 12px; font-weight: 900; }

.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 42%, rgba(14,165,128,.12), transparent 26%),
    linear-gradient(120deg, #fff 0 58%, #f1fbf7 58% 100%);
}
.hero-grid {
  min-height: 560px;
  display: grid;
  grid-template-columns: .9fr .9fr;
  align-items: center;
  gap: 36px;
  padding: 52px 0;
}
.hero-art {
  position: relative;
  min-height: 455px;
  display: grid;
  place-items: end center;
}
.pet-blob {
  position: absolute;
  inset: 26px 26px 0;
  border-radius: 46% 54% 42% 58%;
  background: #e2f7f0;
  border: 1px solid #c5eadf;
}
.hero-art img {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: 455px;
  object-fit: contain;
  filter: drop-shadow(0 24px 26px rgba(20,83,45,.14));
}
.floating-paw {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: white;
  color: var(--green);
  border: 1px solid var(--line);
  box-shadow: 0 18px 34px rgba(4,120,87,.1);
  font-weight: 900;
}
.floating-paw.one { left: 8%; top: 34%; }
.floating-paw.two { right: 7%; top: 18%; }
.floating-paw.three { right: 0; bottom: 24%; }
.trusted {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.flag-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  background: white;
  color: var(--ink);
}

.feature-strip {
  transform: translateY(-34px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255,255,255,.12);
  box-shadow: 0 20px 45px rgba(0,63,59,.16);
}
.feature {
  display: flex;
  gap: 14px;
  min-height: 108px;
  align-items: center;
  padding: 22px;
  color: white;
  background: linear-gradient(135deg, #003f3b, #005c50);
}
.icon-disc {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  background: var(--mint);
  color: var(--green);
  font-weight: 900;
}
.feature .icon-disc { background: rgba(255,255,255,.13); color: #86efac; }

.page-hero {
  background: radial-gradient(circle at 90% 20%, rgba(4,120,87,.12), transparent 25%), linear-gradient(135deg, #fff, #f2fbf7);
  padding: 42px 0 50px;
}
.crumbs { margin-bottom: 26px; color: var(--muted); font-size: 11px; font-weight: 700; }
.section { padding: 50px 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: 0 18px 38px rgba(16,24,40,.055);
}
.panel-pad { padding: 24px; }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card, .vet-card, .article-card, .plan-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: 0 16px 34px rgba(16,24,40,.05);
}
.service-card { min-height: 210px; padding: 18px; }
.service-card img { float: right; width: 122px; height: 110px; object-fit: cover; border-radius: 14px; margin-left: 12px; }
.service-card.red .icon-disc { color: var(--red); background: #fff0f0; }
.service-card.blue .icon-disc { color: #0284c7; background: #eaf7ff; }
.service-card.orange .icon-disc { color: var(--orange); background: #fff5e8; }
.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-radius: 14px;
  padding: 24px;
  color: white;
  background:
    radial-gradient(circle at 90% 55%, rgba(74,222,128,.2), transparent 18%),
    linear-gradient(135deg, #003f3b, #006251);
}

.vet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.vet-card img { width: 100%; height: 210px; object-fit: cover; object-position: top; background: #eef4f1; }
.tag-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0 22px; }
.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: white;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.tag.active { border-color: var(--green); background: var(--green); color: white; }

.booking-layout {
  display: grid;
  grid-template-columns: .95fr .95fr 1fr;
  gap: 18px;
}
.field {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  padding: 11px 12px;
  color: var(--ink);
  font-size: 13px;
}
.field:focus { outline: 3px solid rgba(4,120,87,.12); border-color: var(--green); }
.form-stack { display: grid; gap: 12px; }
.step-line {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 22px 0;
}
.step-line span {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.step-line b {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green);
}
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; text-align: center; }
.date-cell, .time-cell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 9px;
  font-size: 12px;
}
.date-cell.active, .time-cell.active { background: var(--green); color: white; border-color: var(--green); }
.time-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 18px; }

.dark-hero {
  color: white;
  background:
    linear-gradient(90deg, rgba(0,31,29,.94) 0 48%, rgba(0,31,29,.28)),
    url("https://images.unsplash.com/photo-1587351021759-3e566b6af7cc?auto=format&fit=crop&w=1400&q=85") center / cover;
}
.emergency-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255,255,255,.18);
}
.emergency-band div { padding: 16px; background: rgba(0,75,68,.82); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.check-list { display: grid; gap: 12px; }
.check-list span:before { content: "OK "; color: var(--green); font-weight: 900; }
.danger-list span:before { content: "! "; color: var(--red); font-weight: 900; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan-card { padding: 32px; text-align: center; }
.plan-card.popular { border: 3px solid var(--green); transform: translateY(-12px); }
.price { margin: 16px 0; font-size: 42px; font-weight: 900; letter-spacing: -.04em; }
.price small { font-size: 13px; color: var(--muted); }

.article-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.article-card img { width: 100%; height: 180px; object-fit: cover; }
.assistant-layout { display: grid; grid-template-columns: .45fr 1fr; gap: 24px; }
.assistant-intro {
  color: white;
  background:
    radial-gradient(circle at 20% 80%, rgba(34,197,94,.25), transparent 28%),
    linear-gradient(145deg, #00423c, #006251);
}
.prompt-card {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  padding: 14px;
  margin-top: 12px;
}
.chat-box { min-height: 430px; display: flex; flex-direction: column; }
.chat-messages { flex: 1; display: grid; gap: 12px; align-content: start; }
.bubble {
  max-width: 72%;
  border-radius: 14px;
  padding: 12px 14px;
  background: #f2f7f5;
  color: var(--ink);
  font-size: 13px;
}
.bubble.user { justify-self: end; background: var(--green); color: white; }
.chat-form { display: flex; gap: 10px; margin-top: 16px; }

.about-hero {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 24px;
  align-items: center;
}
.about-hero img { max-height: 360px; width: 100%; object-fit: contain; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  overflow: hidden;
}
.stats div { padding: 22px; text-align: center; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font-size: 28px; }

.location-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.location-card img { width: 100%; height: 170px; object-fit: cover; border-radius: 14px; }
.map-strip {
  min-height: 180px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background:
    linear-gradient(rgba(4,120,87,.08), rgba(4,120,87,.08)),
    url("https://images.unsplash.com/photo-1569336415962-a4bd9f69c07b?auto=format&fit=crop&w=1400&q=85") center / cover;
}

.site-footer {
  color: #d7fff1;
  background:
    radial-gradient(circle at 85% 75%, rgba(74,222,128,.2), transparent 20%),
    linear-gradient(135deg, #003f3b, #005149);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 34px;
  padding: 42px 0;
}
.site-footer .logo, .site-footer b { color: white; }
.site-footer a, .site-footer p { color: #b8e8dc; }
.footer-links { display: grid; gap: 10px; margin-top: 14px; font-size: 13px; }
.newsletter { display: flex; gap: 0; margin-top: 14px; }
.newsletter .field { border-radius: 8px 0 0 8px; }
.newsletter .btn-primary { border-radius: 0 8px 8px 0; }
.copyright { border-top: 1px solid rgba(255,255,255,.13); padding: 18px 0; color: #a8d8ce; font-size: 12px; }
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  transform: translateY(18px);
  opacity: 0;
  border-radius: 12px;
  background: var(--teal-dark);
  color: white;
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 800;
  transition: .2s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 1050px) {
  .hero-grid, .two-col, .assistant-layout, .about-hero { grid-template-columns: 1fr; }
  .card-grid, .vet-grid, .article-grid, .feature-strip, .booking-layout, .emergency-band, .plans, .location-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .menu-button { display: grid; place-items: center; }
  .nav {
    position: absolute;
    inset: 76px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
    padding: 14px;
    box-shadow: 0 24px 50px rgba(16,24,40,.14);
  }
  .nav.open { display: flex; }
  .nav-link { padding: 10px; }
  .nav-link.active:after, .nav-link:hover:after { display: none; }
  .header-actions .emergency-call, .header-actions .btn-primary { display: none; }
  .hero-grid { min-height: auto; padding: 40px 0; }
  .hero-art { min-height: 320px; }
  .feature-strip { transform: none; margin: 18px 0; }
  .card-grid, .vet-grid, .article-grid, .feature-strip, .booking-layout, .emergency-band, .plans, .location-grid, .footer-grid, .stats, .step-line, .time-grid {
    grid-template-columns: 1fr;
  }
  .section-head { flex-direction: column; align-items: flex-start; }
  h1 { font-size: 42px; }
}
