:root {
      --bg: #f7fbff;
      --text: #243042;
      --muted: #5f6d7a;
      --primary: #2aa6e8;
      --primary-2: #67c4f3;
      --accent: #f36da2;
      --accent-2: #ffd35d;
      --success: #0ca678;
      --card: #ffffff;
      --line: #e6edf5;
      --shadow: 0 12px 35px rgba(16, 24, 40, .08);
      --radius: 18px;
      --container: 1120px;
      --header-height: 74px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      color: var(--text);
      background:
        radial-gradient(circle at 10% 10%, rgba(103,196,243,.12), transparent 40%),
        radial-gradient(circle at 90% 20%, rgba(243,109,162,.10), transparent 38%),
        var(--bg);
    }

    img { max-width: 100%; display: block; }
    a { color: inherit; }

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

    .section { padding: 56px 0; }
    .section-title {
      margin: 0 0 10px;
      font-size: clamp(1.5rem, 2vw, 2rem);
      line-height: 1.15;
      letter-spacing: -0.02em;
    }
    .section-kicker {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 10px;
      color: var(--accent);
      font-weight: 800;
      text-transform: uppercase;
      font-size: .8rem;
      letter-spacing: .08em;
    }
    .section-subtitle {
      margin: 0;
      color: var(--muted);
      max-width: 760px;
      line-height: 1.55;
    }

    /* Header */
    .header {
      position: sticky;
      top: 0;
      z-index: 50;
      backdrop-filter: saturate(140%) blur(12px);
      background: rgba(255,255,255,.82);
      border-bottom: 1px solid rgba(230, 237, 245, .75);
    }
    .header-inner {
      height: var(--header-height);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }
    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      min-width: 0;
    }
    .brand-mark {
      width: 42px;
      height: 42px;
      border-radius: 14px;
      background: linear-gradient(135deg, #c2ebff, #ffe0eb);
      border: 1px solid var(--line);
      display: grid;
      place-items: center;
      overflow: hidden;
      box-shadow: 0 6px 18px rgba(42,166,232,.16);
    }
    .brand-mark img {
      width: 28px;
      height: 28px;
      object-fit: contain;
    }
    .brand-text {
      min-width: 0;
      line-height: 1.1;
    }
    .brand-text strong {
      display: block;
      font-size: .98rem;
      letter-spacing: -.02em;
    }
    .brand-text small {
      color: var(--muted);
    }
    .header-actions {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .chip {
      border: 1px solid var(--line);
      padding: 9px 12px;
      border-radius: 999px;
      font-size: .85rem;
      background: #fff;
      color: var(--muted);
      white-space: nowrap;
    }

    /* Buttons */
    .btn {
      appearance: none;
      border: 0;
      background: var(--primary);
      color: white;
      padding: 12px 18px;
      border-radius: 12px;
      font-weight: 700;
      cursor: pointer;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      box-shadow: 0 8px 22px rgba(42,166,232,.25);
      transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
    }
    .btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(42,166,232,.28); }
    .btn:active { transform: translateY(0); }
    .btn.secondary {
      background: white;
      color: var(--text);
      border: 1px solid var(--line);
      box-shadow: none;
    }
    .btn.accent {
      background: linear-gradient(135deg, var(--accent), #ff8aba);
      box-shadow: 0 10px 26px rgba(243,109,162,.28);
    }
    .btn.success {
      background: linear-gradient(135deg, #18c38f, #06a773);
      box-shadow: 0 10px 26px rgba(12,166,120,.28);
    }

    /* Hero */
    .hero {
      padding: 26px 0 12px;
    }
    .hero-grid {
      display: grid;
      grid-template-columns: 1.15fr .85fr;
      gap: 18px;
      align-items: stretch;
    }
    .hero-card, .side-card {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: 22px;
      box-shadow: var(--shadow);
      overflow: hidden;
    }
    .hero-banner {
      position: relative;
      min-height: 420px;
      background: #eaf6ff;
    }
    .hero-banner img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
    }
    .hero-overlay {
      position: absolute;
      inset: auto 18px 18px 18px;
      background: rgba(255,255,255,.88);
      border: 1px solid rgba(255,255,255,.9);
      backdrop-filter: blur(10px);
      border-radius: 16px;
      padding: 16px;
      box-shadow: 0 10px 30px rgba(0,0,0,.08);
    }
    .hero-overlay h1 {
      margin: 0 0 8px;
      line-height: 1.02;
      letter-spacing: -.03em;
      font-size: clamp(1.55rem, 2.8vw, 2.3rem);
    }
    .hero-overlay p {
      margin: 0;
      color: var(--muted);
      line-height: 1.45;
    }

    .side-stack {
      display: grid;
      grid-template-rows: auto auto 1fr;
      gap: 18px;
    }
    .side-card { padding: 18px; }
    .metric-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-top: 14px;
    }
    .metric {
      border: 1px solid var(--line);
      background: #fbfdff;
      border-radius: 14px;
      padding: 14px;
    }
    .metric .value {
      font-size: 1.25rem;
      font-weight: 800;
      letter-spacing: -.02em;
    }
    .metric .label {
      color: var(--muted);
      font-size: .9rem;
      line-height: 1.35;
      margin-top: 4px;
    }
    .mini-donate {
      display: grid;
      gap: 12px;
      align-content: start;
    }
    .mini-donate .amounts {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
    }
    .amount-btn {
      border: 1px solid var(--line);
      background: #fff;
      border-radius: 12px;
      padding: 10px;
      font-weight: 700;
      cursor: pointer;
      transition: .15s ease;
    }
    .amount-btn:hover { border-color: var(--primary-2); }
    .amount-btn.active {
      border-color: var(--primary);
      background: rgba(42,166,232,.08);
      color: var(--primary);
    }
    .mini-donate input {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 12px 14px;
      font-size: 1rem;
      outline: none;
    }
    .mini-donate input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(42,166,232,.12); }

    /* Generic cards */
    .cards-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
      margin-top: 20px;
    }
    .card {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow);
      display: flex;
      flex-direction: column;
    }
    .card-media {
      aspect-ratio: 16/9;
      background: #eef6fb;
    }
    .card-media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .card-body {
      padding: 16px;
      display: grid;
      gap: 10px;
    }
    .card-body h3 {
      margin: 0;
      font-size: 1.02rem;
      letter-spacing: -.02em;
    }
    .card-body p {
      margin: 0;
      color: var(--muted);
      line-height: 1.45;
      font-size: .95rem;
    }

    /* Impact list */
    .impact-wrap {
      display: grid;
      grid-template-columns: 1.1fr .9fr;
      gap: 18px;
      margin-top: 20px;
      align-items: start;
    }
    .impact-list {
      background: white;
      border: 1px solid var(--line);
      border-radius: 18px;
      box-shadow: var(--shadow);
      padding: 8px;
      display: grid;
      gap: 8px;
    }
    .impact-item {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 12px;
      align-items: start;
      border-radius: 14px;
      padding: 12px;
      background: #fbfdff;
      border: 1px solid #edf3f8;
    }
    .impact-item strong {
      min-width: 94px;
      display: inline-flex;
      justify-content: center;
      align-items: center;
      border-radius: 12px;
      background: linear-gradient(135deg, rgba(42,166,232,.1), rgba(103,196,243,.12));
      color: #197bb0;
      font-size: .95rem;
      padding: 10px;
    }
    .impact-item span {
      color: var(--text);
      line-height: 1.4;
      font-size: .95rem;
    }
    .impact-side {
      background: white;
      border: 1px solid var(--line);
      border-radius: 18px;
      box-shadow: var(--shadow);
      overflow: hidden;
      display: grid;
    }
    .impact-side img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      min-height: 360px;
    }

    /* PIX section */
    .pix-box {
      margin-top: 20px;
      background: linear-gradient(180deg, #ffffff, #f9fdff);
      border: 1px solid var(--line);
      border-radius: 20px;
      box-shadow: var(--shadow);
      padding: 18px;
      display: grid;
      grid-template-columns: 280px 1fr;
      gap: 18px;
      align-items: start;
    }
    .qr-wrap {
      background: #fff;
      border: 1px dashed #d6e3ef;
      border-radius: 16px;
      padding: 14px;
      display: grid;
      gap: 10px;
      justify-items: center;
      text-align: center;
    }
    .qr-placeholder {
      width: 100%;
      max-width: 220px;
      aspect-ratio: 1 / 1;
      border-radius: 12px;
      background:
        linear-gradient(45deg, #111 25%, transparent 25%) -10px 0/20px 20px,
        linear-gradient(-45deg, #111 25%, transparent 25%) -10px 0/20px 20px,
        linear-gradient(45deg, transparent 75%, #111 75%) -10px 0/20px 20px,
        linear-gradient(-45deg, transparent 75%, #111 75%) -10px 0/20px 20px,
        #fff;
      border: 10px solid #fff;
      box-shadow: inset 0 0 0 1px var(--line);
      position: relative;
      overflow: hidden;
    }
    .qr-placeholder::after {
      content: "QR PIX";
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      color: #111;
      font-weight: 900;
      letter-spacing: .18em;
      font-size: 1.1rem;
      text-shadow: 0 1px 0 #fff;
      background: rgba(255,255,255,.72);
    }
    .pix-content {
      display: grid;
      gap: 14px;
    }
    .pix-steps {
      margin: 0;
      padding-left: 18px;
      color: var(--muted);
      line-height: 1.6;
    }
    .pix-key {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: #fff;
    }
    .pix-key code {
      padding: 6px 10px;
      border-radius: 8px;
      background: #f4f9fd;
      border: 1px solid #e3eef7;
      font-size: .92rem;
      word-break: break-all;
    }
    .pix-meta {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      color: var(--muted);
      font-size: .9rem;
    }
    .pix-meta span {
      border: 1px solid var(--line);
      background: #fff;
      border-radius: 999px;
      padding: 6px 10px;
    }

    /* Gallery / sliders */
    .slider-shell {
      margin-top: 20px;
      background: white;
      border: 1px solid var(--line);
      border-radius: 18px;
      box-shadow: var(--shadow);
      padding: 12px;
    }
    .slider-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 10px;
    }
    .slider-controls {
      display: flex;
      gap: 8px;
    }
    .icon-btn {
      width: 38px;
      height: 38px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: white;
      cursor: pointer;
      font-size: 1.05rem;
    }
    .scroll-row {
      display: grid;
      grid-auto-flow: column;
      grid-auto-columns: minmax(220px, 280px);
      gap: 12px;
      overflow-x: auto;
      padding-bottom: 6px;
      scroll-snap-type: x proximity;
      scrollbar-width: thin;
    }
    .gallery-item, .testimonial-item {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 14px;
      overflow: hidden;
      scroll-snap-align: start;
    }
    .gallery-item img {
      width: 100%;
      aspect-ratio: 4 / 5;
      object-fit: cover;
      background: #eef6fb;
    }
    .gallery-item .caption {
      padding: 10px 12px;
      color: var(--muted);
      font-size: .9rem;
    }

    .testimonial-item {
      display: grid;
      grid-template-rows: auto 1fr;
      min-height: 100%;
    }
    .testimonial-item img {
      width: 100%;
      aspect-ratio: 3 / 4;
      object-fit: cover;
      background: #eef6fb;
    }
    .testimonial-body {
      padding: 12px;
      display: grid;
      align-content: start;
      gap: 8px;
    }
    .testimonial-body h4 {
      margin: 0;
      font-size: .98rem;
    }
    .testimonial-body .pet {
      color: var(--accent);
      font-weight: 700;
      font-size: .88rem;
    }
    .testimonial-body p {
      margin: 0;
      color: var(--muted);
      font-size: .92rem;
      line-height: 1.45;
    }

    /* Location */
    .location-grid {
      margin-top: 20px;
      display: grid;
      grid-template-columns: .95fr 1.05fr;
      gap: 18px;
    }
    .location-card, .map-card {
      background: white;
      border: 1px solid var(--line);
      border-radius: 18px;
      box-shadow: var(--shadow);
      overflow: hidden;
    }
    .location-card { padding: 18px; }
    .location-card h3 { margin: 0 0 10px; }
    .location-card p { margin: 0; color: var(--muted); line-height: 1.5; }
    .contact-list {
      margin-top: 14px;
      display: grid;
      gap: 10px;
    }
    .contact-row {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 10px;
      align-items: center;
      padding: 10px 12px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #fbfdff;
    }
    .contact-badge {
      width: 30px;
      height: 30px;
      border-radius: 10px;
      display: grid;
      place-items: center;
      font-weight: 800;
      background: rgba(42,166,232,.1);
      color: var(--primary);
    }
    .map-card iframe {
      width: 100%;
      height: 100%;
      min-height: 320px;
      border: 0;
      display: block;
    }

    /* Footer */
    .final-cta {
      background: linear-gradient(180deg, rgba(42,166,232,.06), rgba(243,109,162,.05));
      border-top: 1px solid rgba(230,237,245,.7);
      border-bottom: 1px solid rgba(230,237,245,.7);
    }
    .final-box {
      display: grid;
      grid-template-columns: 1.1fr .9fr;
      gap: 18px;
      align-items: center;
    }
    .final-panel {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 20px;
      box-shadow: var(--shadow);
      padding: 18px;
    }
    .final-panel h3 { margin: 0 0 10px; font-size: 1.25rem; letter-spacing: -.02em; }
    .final-panel p { margin: 0; color: var(--muted); line-height: 1.5; }
    .final-panel .actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
    .final-image {
      border-radius: 20px;
      overflow: hidden;
      border: 1px solid var(--line);
      box-shadow: var(--shadow);
      background: #fff;
    }
    .final-image img {
      width: 100%;
      height: 100%;
      min-height: 240px;
      object-fit: cover;
    }

    footer {
      padding: 28px 0 86px;
      background: #fff;
    }
    .footer-grid {
      display: grid;
      grid-template-columns: 1.05fr .95fr .9fr;
      gap: 18px;
    }
    .footer-card {
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 16px;
      background: #fff;
    }
    .footer-card h4 { margin: 0 0 10px; }
    .footer-card p, .footer-card li, .footer-card a {
      margin: 0;
      color: var(--muted);
      line-height: 1.5;
      font-size: .94rem;
      text-decoration: none;
    }
    .footer-card ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
    .socials { display: flex; gap: 10px; flex-wrap: wrap; }
    .socials a {
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 8px 10px;
      background: #fbfdff;
    }
    .footer-bottom {
      margin-top: 14px;
      color: var(--muted);
      font-size: .88rem;
      text-align: center;
    }

    /* Floating CTA */
    .floating-cta {
      position: fixed;
      left: 50%;
      transform: translateX(-50%);
      bottom: 14px;
      z-index: 55;
      width: min(720px, calc(100% - 20px));
      background: rgba(255,255,255,.94);
      border: 1px solid rgba(230,237,245,.9);
      border-radius: 16px;
      box-shadow: 0 20px 40px rgba(16,24,40,.14);
      backdrop-filter: blur(10px);
      padding: 10px;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .floating-cta .text {
      min-width: 0;
      flex: 1;
      color: var(--muted);
      font-size: .9rem;
      line-height: 1.25;
    }
    .floating-cta .text strong {
      display: block;
      color: var(--text);
      font-size: .95rem;
      margin-bottom: 2px;
    }
    .floating-cta .btn { padding-inline: 14px; }

    /* Modal donation */
    .modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(11, 17, 28, .55);
      z-index: 80;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 18px;
    }
    .modal-backdrop.open { display: flex; }
    .modal {
      width: min(700px, 100%);
      background: white;
      border-radius: 20px;
      border: 1px solid var(--line);
      box-shadow: 0 24px 70px rgba(0,0,0,.28);
      overflow: hidden;
    }
    .modal-header {
      padding: 16px 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      border-bottom: 1px solid var(--line);
    }
    .modal-header h3 { margin: 0; font-size: 1.05rem; }
    .close-btn {
      width: 38px; height: 38px; border-radius: 12px;
      border: 1px solid var(--line); background: white; cursor: pointer;
      font-size: 1.1rem;
    }
    .modal-body { padding: 16px 18px 18px; }
    .step { display: none; }
    .step.active { display: block; }
    .step-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
      margin-top: 12px;
    }
    .step-grid .amount-btn { padding: 13px 10px; }
    .input-group { display: grid; gap: 8px; margin-top: 12px; }
    .input-group label { font-size: .9rem; font-weight: 700; }
    .input, textarea {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 12px 14px;
      font: inherit;
      outline: none;
      background: #fff;
    }
    .input:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(42,166,232,.12); }
    textarea { min-height: 92px; resize: vertical; }
    .modal-actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 16px;
    }
    .summary-box {
      margin-top: 10px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: #fbfdff;
      padding: 12px;
      color: var(--muted);
      line-height: 1.45;
    }
    .summary-box strong { color: var(--text); }
    .small-note { color: var(--muted); font-size: .86rem; margin-top: 10px; }

    /* Exit popup */
    .exit-popup {
      position: fixed;
      right: 14px;
      bottom: 90px;
      z-index: 52;
      width: min(390px, calc(100% - 20px));
      border-radius: 18px;
      background: rgba(255,255,255,.96);
      border: 1px solid rgba(230,237,245,.95);
      box-shadow: 0 18px 40px rgba(16,24,40,.16);
      backdrop-filter: blur(10px);
      padding: 14px;
      display: none;
    }
    .exit-popup.show { display: block; }
    .exit-popup h4 { margin: 0 0 6px; font-size: 1rem; }
    .exit-popup p { margin: 0; color: var(--muted); line-height: 1.4; font-size: .92rem; }
    .exit-popup .actions { margin-top: 10px; display: flex; gap: 8px; }

    /* Utilities */
    .muted { color: var(--muted); }
    .mt-10 { margin-top: 10px; }
    .mt-14 { margin-top: 14px; }
    .mt-20 { margin-top: 20px; }
    .hidden { display: none !important; }

    /* Responsive */
    @media (max-width: 980px) {
      .hero-grid,
      .impact-wrap,
      .location-grid,
      .final-box,
      .footer-grid,
      .pix-box {
        grid-template-columns: 1fr;
      }
      .hero-banner { min-height: 340px; }
      .cards-grid { grid-template-columns: 1fr 1fr; }
      .map-card iframe { min-height: 280px; }
      .final-image img { min-height: 220px; }
      .pix-box { align-items: stretch; }
    }

    @media (max-width: 640px) {
      .section { padding: 44px 0; }
      .cards-grid { grid-template-columns: 1fr; }
      .scroll-row { grid-auto-columns: minmax(210px, 78vw); }
      .header-actions .chip { display: none; }
      .floating-cta {
        flex-direction: column;
        align-items: stretch;
      }
      .floating-cta .btn { width: 100%; }
      .side-stack { grid-template-rows: auto auto auto; }
      .metric-grid { grid-template-columns: 1fr; }
      .mini-donate .amounts { grid-template-columns: repeat(2, 1fr); }
      .step-grid { grid-template-columns: 1fr 1fr; }
      .exit-popup { right: 10px; left: 10px; width: auto; }
    }
