:root {
  color-scheme: light;
  --bg: #f2f6fb;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --text: #14213d;
  --muted: #63708a;
  --line: #e1e8f2;
  --primary: #173d7a;
  --primary-hover: #102f61;
  --success: #1faa55;
  --success-hover: #188944;
  --telegram: #168bd2;
  --telegram-hover: #1175b4;
  --shadow: 0 22px 60px rgba(21, 47, 87, 0.13);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  background: radial-gradient(circle at 10% 0%, rgba(58,115,190,.09), transparent 35rem), var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
.page { width: min(100% - 32px, 760px); margin: 36px auto; }
.pet-card { overflow: hidden; background: var(--surface); border: 1px solid rgba(203,214,230,.8); border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.hero { position: relative; overflow: hidden; background: #dfe6ef; }
.hero picture { display: block; }
.hero img { width: 100%; height: auto; display: block; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 22%; background: linear-gradient(to bottom, transparent, rgba(4,14,33,.18)); pointer-events: none; }
.content { position: relative; z-index: 1; margin-top: -34px; padding: 34px 42px 38px; background: var(--surface); border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.pet-heading { text-align: center; }
.pet-heading h1 { margin: 0; color: var(--primary); font-size: clamp(2rem, 7vw, 3rem); line-height: 1; letter-spacing: .04em; }
.pet-heading p { margin: 16px auto 0; max-width: 520px; font-size: 1.05rem; }
.pet-heading strong { font-weight: 750; }
.location { display: inline-flex; align-items: center; gap: 7px; margin-top: 13px; color: var(--muted); font-size: .95rem; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: currentColor; }
.actions { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 10px; margin: 28px 0 30px; }
.action { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 14px; border-radius: 13px; color: #fff; font-size: .94rem; font-weight: 750; text-decoration: none; transition: transform 120ms ease, background-color 120ms ease, box-shadow 120ms ease; }
.action:hover { transform: translateY(-1px); }
.action:focus-visible, .contact-row:focus-visible, .home-link:focus-visible { outline: 3px solid rgba(23,61,122,.28); outline-offset: 3px; }
.action-call, .action-whatsapp { background: var(--success); box-shadow: 0 8px 18px rgba(31,170,85,.17); }
.action-call:hover, .action-whatsapp:hover { background: var(--success-hover); }
.action-telegram { background: var(--telegram); box-shadow: 0 8px 18px rgba(22,139,210,.16); }
.action-telegram:hover { background: var(--telegram-hover); }
.section { padding: 22px 0; border-top: 1px solid var(--line); }
.section-title { display: flex; align-items: center; gap: 9px; margin: 0 0 16px; color: var(--primary); font-size: 1.02rem; letter-spacing: .015em; }
.details { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 0; }
.detail { min-width: 0; }
.detail dt { margin: 0 0 2px; color: var(--muted); font-size: .82rem; font-weight: 650; }
.detail dd { margin: 0; font-size: .96rem; font-weight: 600; }
.detail-wide { grid-column: 1/-1; }
.contacts { display: grid; gap: 9px; }
.contact-row { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 12px; min-height: 58px; padding: 10px 13px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-md); text-decoration: none; }
.contact-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: #eaf1fb; color: var(--primary); }
.contact-meta { min-width: 0; }
.contact-name { display: block; font-weight: 750; }
.contact-number { display: block; margin-top: 1px; color: var(--muted); font-size: .9rem; }
.contact-link-label { color: var(--primary); font-size: .86rem; font-weight: 750; }
.extra-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px 18px; margin-top: 15px; font-size: .9rem; }
.extra-links a { color: var(--primary); font-weight: 650; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.thanks { margin: 22px 0 0; text-align: center; font-size: .95rem; }

.home-page { min-height: 100vh; display: grid; place-items: center; width: min(100% - 32px, 660px); margin: 0 auto; padding: 36px 0; }
.home-card { width: 100%; padding: 44px; text-align: center; background: var(--surface); border: 1px solid rgba(203,214,230,.8); border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.home-mark { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 22px; background: #eaf1fb; color: var(--primary); }
.home-mark .icon { width: 38px; height: 38px; }
.home-eyebrow { margin: 0 0 7px; color: var(--primary); font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.home-card h1 { margin: 0; color: var(--primary); font-size: clamp(2.1rem, 8vw, 3.2rem); line-height: 1; }
.home-lead { max-width: 500px; margin: 18px auto 28px; color: var(--muted); font-size: 1rem; }
.home-links { display: grid; gap: 10px; text-align: left; }
.home-link { position: relative; display: block; min-height: 72px; padding: 13px 52px 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-soft); text-decoration: none; transition: transform 120ms ease, border-color 120ms ease, background-color 120ms ease; }
.home-link:hover { transform: translateY(-1px); border-color: #c6d5e9; background: #f2f6fc; }
.home-link-name { display: block; color: var(--primary); font-size: 1.02rem; font-weight: 800; }
.home-link-note { display: block; margin-top: 2px; color: var(--muted); font-size: .88rem; }
.home-link-arrow { position: absolute; right: 17px; top: 50%; transform: translateY(-50%); color: var(--primary); font-size: 1.35rem; font-weight: 700; }
.home-status { display: inline-flex; align-items: center; gap: 8px; margin: 26px 0 0; color: var(--muted); font-size: .85rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(31,170,85,.12); }

@media (max-width: 640px) {
  .page { width: 100%; margin: 0; }
  .pet-card { border: 0; border-radius: 0; box-shadow: none; }
  .content { margin-top: -30px; padding: 30px 20px; border-radius: 26px 26px 0 0; }
  .pet-heading p { font-size: 1rem; }
  .actions { grid-template-columns: 1fr; gap: 8px; margin-top: 24px; }
  .action { min-height: 54px; font-size: .98rem; }
  .details { grid-template-columns: 1fr; }
  .detail-wide { grid-column: auto; }
  .contact-row { grid-template-columns: 38px minmax(0,1fr); }
  .contact-link-label { display: none; }
  .home-page { width: 100%; min-height: 100svh; padding: 0; }
  .home-card { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 34px 20px; border: 0; border-radius: 0; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { .action, .home-link { transition: none; } }
