:root { --motion-out: cubic-bezier(.22, 1, .36, 1); --umka-blue: #0b3a61; --umka-mint: #79d6cc; }
html { scrollbar-gutter: stable; }
::selection { background: #b8eae3; color: #092c49; }
input { caret-color: #0b3a61; }
.btn, .pet-button, .pet-preview-button, .copy, .catalog-arrow, .dialog-close { transition: transform 140ms var(--motion-out), background-color 160ms ease, color 160ms ease; }
.btn:active, .pet-button:active, .pet-preview-button:active, .copy:active, .catalog-arrow:not(:disabled):active, .dialog-close:active { transform: scale(.98); }
.pet-preview { padding: 24px 0 70px; background: #fff; color: var(--umka-blue); }
.pet-preview-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 28px; }
.pet-preview-heading h2 { max-width: 20ch; font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.12; letter-spacing: -.03em; }
.pet-preview-heading .text-link { flex: none; font-size: 17px; min-height: 44px; align-content: center; }
.pet-preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pet-preview-card { display: flex; flex-direction: column; min-width: 0; border-radius: 14px; overflow: hidden; background: #f1f8fc; }
.pet-preview-photo { width: 100%; aspect-ratio: 4/3; height: auto; object-fit: cover; object-position: center 38%; }
.pet-preview-copy { display: flex; flex: 1; flex-direction: column; align-items: start; padding: 24px; }
.pet-preview-copy h3 { font-size: 28px; letter-spacing: -.025em; margin-bottom: 7px; }
.pet-preview-copy p { font-size: 16px; line-height: 1.5; margin: 0 0 8px; }
.pet-preview-copy .pet-preview-meta { color: #46627a; margin-top: auto; padding-top: 10px; font-size: 15px; }
.pet-preview-button { width: 100%; min-height: 48px; margin-top: 13px; padding: 11px 18px; border: 0; border-radius: 8px; background: var(--umka-blue); color: #fff; font-size: 16px; font-weight: 650; cursor: pointer; }
.pet-preview-button:hover { background: #185279; }
.catalog-enhanced .catalog-copy > details { display: none; }
.catalog-enhanced .pet-button { cursor: pointer; }
.bank-details { margin-top: 18px; border-top: 1px solid #dce7ed; }
.bank-details summary { padding: 18px 0; font-weight: 650; color: var(--umka-blue); cursor: pointer; min-height: 48px; }
.bank-details summary:focus-visible { outline: 3px solid #2167aa; outline-offset: 4px; border-radius: 4px; }
.details .bank-details dl { margin: 0; }
.details .copy { min-height: 44px; min-width: 132px; font-variant-numeric: tabular-nums; }
.details .copy-all { width: 100%; margin-top: 20px; padding: 12px 16px; font-size: 16px; font-weight: 650; white-space: normal; background: #e1f6f1; color: #123e52; }
.details .copy.is-copied { background: #ccefe4; color: #194d40; }
.qr-panel .qr-device-help { margin: 20px 0 0; font-size: 15px; line-height: 1.55; color: #365b71; }
.qr-save { display: flex; justify-content: center; align-items: center; min-height: 48px; margin-top: 18px; padding: 10px 15px; border-radius: 8px; background: #e1f6f1; color: #123e52; text-decoration: none; font-weight: 650; }
.qr-original { display: block; text-align: center; min-height: 44px; align-content: center; }
.dialog-close { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 50%; background: #eaf3f8; color: var(--umka-blue); cursor: pointer; }
.dialog-close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.pet-photo-dialog .dialog-close { position: absolute; right: 8px; top: 5px; font-size: inherit; }
.pet-photo-dialog, .pet-story-dialog { color: #133b5a; }
.pet-story-dialog { position: fixed; inset: 0; width: min(900px, calc(100% - 48px)); max-width: none; height: min(710px, 90dvh); max-height: 90dvh; margin: auto; padding: 0; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 18px 65px #102b4140; overflow: hidden; }
.pet-story-dialog::backdrop { background: #0a2337b8; }
.pet-story-shell { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.pet-story-header { display: flex; justify-content: space-between; align-items: center; flex: none; gap: 16px; padding: 24px 28px 20px; background: #fff; border-bottom: 1px solid #dce7ed; }
.pet-story-header h2 { color: #0b3a61; font-size: 32px; letter-spacing: -.025em; line-height: 1.15; }
.pet-story-header p { margin: 7px 0 0; color: #48677c; font-size: 15px; line-height: 1.4; }
.pet-story-scroll { display: grid; grid-template-columns: .9fr 1.1fr; align-items: start; gap: 28px; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; padding: 26px 28px; scrollbar-width: thin; scrollbar-color: #8eafbd #edf5f8; }
.pet-story-scroll:focus-visible { outline: 3px solid #2167aa; outline-offset: -4px; }
.pet-story-photo { position: sticky; top: 0; width: 100%; height: auto; aspect-ratio: 4/3; border-radius: 12px; object-fit: cover; object-position: center 38%; }
.pet-story-text { min-width: 0; font-size: 17px; line-height: 1.65; }
.pet-story-traits { margin-bottom: 16px; color: #0b3a61; font-weight: 650; }
.pet-story-content p + p { margin-top: 16px; }
.pet-story-footer { display: flex; align-items: center; justify-content: space-between; flex: none; gap: 24px; padding: 18px 28px; padding-bottom: max(18px, env(safe-area-inset-bottom)); background: #edf8f5; border-top: 1px solid #cce4de; }
.pet-story-footer p { max-width: 32ch; font-size: 15px; line-height: 1.45; color: #365b67; }
.pet-story-contact { flex: none; min-height: 50px; border-radius: 8px; background: #0b3a61; color: #fff; }
.pet-story-contact:hover { background: #185279; }
@media (hover: none) {
  .btn:hover { transform: none; }
  .btn:active { transform: scale(.98); }
}
@media (max-width: 760px) {
  .pet-preview { padding: 14px 0 48px; }
  .pet-preview-heading { align-items: start; gap: 14px; flex-direction: column; margin-bottom: 20px; }
  .pet-preview-heading h2 { font-size: clamp(1.8rem, 7.5vw, 2.4rem); }
  .pet-preview-heading .text-link { font-size: 16px; }
  .pet-preview-grid { gap: 14px; }
  .pet-preview-copy { padding: 18px; }
  .pet-preview-copy h3 { font-size: 26px; }
  .hero .hero-topline { display: block; padding: 12px 14px; margin-bottom: 20px; border-left: 1px solid #b0ded6; }
  .hero-topline .project-banner-label { font-size: 12px; line-height: 1.4; margin-bottom: 2px; }
  .hero-topline .project-banner-title { font-size: 15px; line-height: 1.35; }
  .hero-topline .hero-partner { margin-top: 7px; padding: 0; border: 0; font-size: 12px; line-height: 1.4; }
  .hero-topline .hero-partner span, .hero-topline .hero-partner strong { display: inline; font-size: 12px; line-height: 1.4; }
  .hero-topline .hero-partner strong { margin-left: .3em; }
  .hero .hero-lead { font-size: 18px; line-height: 1.4; }
  .hero .hero-actions { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
  .hero .hero-actions .btn { min-height: 52px; padding: 11px 12px; font-size: 15px; line-height: 1.3; }
  .hero-stage { margin-top: 26px; }
}
@media (max-width: 650px) {
  .hero .aza-banner { height: clamp(350px, 95vw, 420px); }
  .aza-banner-copy { font-size: clamp(2.2rem, 9.5vw, 2.8rem); line-height: 1; max-width: 74%; }
  .aza-banner-copy small { margin-left: 0; font-size: 14px; }
  .aza-cutout { right: 0; width: 84%; }
  .pet-preview-grid { grid-template-columns: 1fr; }
  .pet-preview-card { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: stretch; }
  .pet-preview-photo { height: 100%; min-height: 200px; aspect-ratio: auto; }
  .pet-preview-copy { padding: 18px 16px; }
  .pet-preview-copy h3 { font-size: 24px; overflow-wrap: anywhere; }
  .pet-preview-copy p { font-size: 14px; line-height: 1.45; }
  .pet-preview-copy .pet-preview-meta { font-size: 13px; padding-top: 6px; }
  .pet-preview-button { font-size: 14px; padding: 10px 8px; min-height: 46px; }
  .pet-story-dialog { inset: auto 0 0; width: 100%; height: min(780px, 91dvh); max-height: 91dvh; margin: 0 auto; border-radius: 16px 16px 0 0; }
  .pet-story-header { padding: 22px 20px 16px; touch-action: none; cursor: grab; }
  .pet-story-header:active { cursor: grabbing; }
  .pet-story-header h2 { font-size: 28px; }
  .pet-story-header p { max-width: 25ch; font-size: 14px; }
  .pet-story-scroll { display: block; padding: 20px; }
  .pet-story-photo { position: static; height: 190px; aspect-ratio: auto; margin-bottom: 20px; }
  .pet-story-text { font-size: 17px; line-height: 1.6; }
  .pet-story-footer { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 20px max(16px, env(safe-area-inset-bottom)); }
  .pet-story-footer p { max-width: none; font-size: 13px; line-height: 1.4; }
  .pet-story-contact { width: 100%; min-height: 50px; font-size: 16px; }
}
@media (max-width: 359px) {
  .hero .hero-actions { grid-template-columns: 1fr; }
  .pet-preview-card { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .pet-preview-copy { padding: 16px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .pet-button, .pet-preview-button, .copy, .catalog-arrow, .dialog-close { transition: background-color 100ms ease, color 100ms ease; }
  .btn:hover, .btn:active, .pet-button:active, .pet-preview-button:active, .copy:active, .catalog-arrow:not(:disabled):active, .dialog-close:active { transform: none; }
}
