* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: #101827;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 126, 38, 0.12), transparent 25%),
    radial-gradient(circle at 85% 18%, rgba(255, 166, 75, 0.16), transparent 24%),
    #fffaf4;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  object-fit: cover;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 38px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 178px;
}

.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  border: 3px solid #ff4b0b;
  border-radius: 48% 48% 55% 55%;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  top: -13px;
  width: 11px;
  height: 17px;
  border-radius: 999px;
  background: #ff5a12;
}

.brand-mark::before {
  left: 4px;
  transform: rotate(-18deg);
}

.brand-mark::after {
  right: 4px;
  transform: rotate(18deg);
}

.brand-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.brand-title span,
.accent {
  color: #ff4b0b;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: #1f2937;
  font-size: 11px;
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 34px);
  font-size: 13px;
  font-weight: 600;
}

.nav a {
  padding: 8px 0;
}

.nav a.active {
  color: #ff4b0b;
  border-bottom: 2px solid #ff4b0b;
}

.donate,
.primary-btn {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff4b0b, #ff7518);
  box-shadow: 0 14px 24px rgba(255, 76, 11, 0.2);
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.donate {
  padding: 12px 24px;
  font-size: 13px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
}

.ghost-btn {
  border: 1px solid #ff4b0b;
  border-radius: 999px;
  color: #ff4b0b;
  background: #fff;
  padding: 11px 20px;
  font-weight: 800;
  cursor: pointer;
}

.subtle-btn {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  color: #111827;
  background: #fff;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.eyebrow {
  margin: 0 0 8px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 600;
}

.page-title {
  margin: 0 0 6px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.lead {
  margin: 0;
  color: #4b5563;
  line-height: 1.65;
}

.card {
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 46px rgba(31, 41, 55, 0.08);
  backdrop-filter: blur(12px);
}

.section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-head h1,
.section-head h2 {
  margin: 0 0 8px;
}

.section-head p {
  margin: 0;
  color: #4b5563;
}

.results-layout {
  display: grid;
  grid-template-columns: 210px 1fr 280px;
  gap: 20px;
}

.match-list,
.match-main,
.match-aside,
.profile-panel,
.form-panel,
.service-card,
.blog-card,
.contact-panel {
  padding: 18px;
}

.mini-dog {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  border: 1px solid #f0d7c8;
  border-radius: 10px;
  padding: 9px;
  background: #fff;
}

.mini-dog img {
  height: 62px;
  border-radius: 8px;
}

.mini-dog h3 {
  margin: 0 0 2px;
  font-size: 14px;
}

.mini-dog p {
  margin: 0;
  color: #ff4b0b;
  font-size: 11px;
  font-weight: 700;
}

.match-score {
  margin-top: 6px;
  color: #16a34a;
  font-size: 11px;
  font-weight: 800;
}

.feature-dog {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(220px, 0.8fr);
  gap: 24px;
}

.feature-dog img,
.profile-hero img {
  height: 330px;
  border-radius: 12px;
}

.bullet-list {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
  color: #334155;
  line-height: 1.45;
}

.bullet-list li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 9px;
  border-radius: 50%;
  color: #ff4b0b;
  background: #fff1e7;
  font-size: 11px;
  font-weight: 900;
}

.dog-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.dog-tile {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}

.dog-tile img {
  height: 120px;
}

.dog-tile div {
  padding: 10px;
}

.dog-tile h3 {
  margin: 0 0 3px;
  font-size: 14px;
}

.dog-tile p {
  margin: 0;
  color: #16a34a;
  font-size: 11px;
  font-weight: 800;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 26px;
  padding: 18px 26px;
  background: linear-gradient(105deg, #fffaf4, #fff4e8 50%, #fff9f0);
}

.bot {
  width: 96px;
  height: 96px;
  position: relative;
  flex: 0 0 auto;
}

.bot-head {
  position: absolute;
  left: 18px;
  top: 2px;
  width: 62px;
  height: 45px;
  border-radius: 20px;
  background: #263238;
  border: 7px solid #fff;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.15);
}

.bot-head::before,
.bot-head::after {
  content: "";
  position: absolute;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a9f8ff;
}

.bot-head::before {
  left: 15px;
}

.bot-head::after {
  right: 15px;
}

.bot-body {
  position: absolute;
  left: 29px;
  top: 48px;
  width: 43px;
  height: 44px;
  border-radius: 16px 16px 14px 14px;
  background: #fff;
  border: 1px solid #f0d8c2;
}

.bot-body::after {
  content: "🐾";
  position: absolute;
  left: 9px;
  top: 10px;
  color: #ff5a12;
  font-size: 20px;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.95fr) minmax(380px, 1.05fr);
  gap: 22px;
}

.profile-hero {
  position: relative;
}

.badge {
  display: inline-flex;
  border-radius: 6px;
  padding: 5px 8px;
  color: #15803d;
  background: #effce7;
  font-size: 11px;
  font-weight: 800;
}

.profile-hero .badge {
  position: absolute;
  left: 16px;
  top: 16px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.info-table {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  color: #374151;
  font-size: 13px;
}

.info-table div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px;
}

.pill {
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 700;
}

.bars {
  display: grid;
  gap: 13px;
}

.bar {
  display: grid;
  grid-template-columns: 150px 1fr 36px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.bar span:nth-child(2) {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff4b0b var(--v), #ffe4d0 var(--v));
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0;
}

.step {
  position: relative;
  text-align: center;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.step::before {
  content: attr(data-icon);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 8px;
  border-radius: 50%;
  border: 1px solid #ffd7bd;
  color: #ff4b0b;
  background: #fff;
}

.step.active {
  color: #ff4b0b;
}

.application-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: #374151;
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #fff;
  padding: 12px;
  color: #111827;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  text-align: center;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: #fff1e7;
  color: #ff4b0b;
  font-size: 28px;
}

.story-layout,
.blog-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: start;
}

.story-layout img,
.blog-feature img,
.map-card {
  border-radius: 12px;
}

.story-layout img {
  height: 330px;
}

.stat-row,
.values-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.stat strong {
  display: block;
  color: #ff4b0b;
  font-size: 24px;
}

.value-card,
.contact-item {
  padding: 18px;
}

.value-card strong,
.contact-item strong {
  display: block;
  margin-bottom: 8px;
}

.blog-feature img {
  height: 260px;
  margin-bottom: 18px;
}

.blog-list {
  display: grid;
  gap: 14px;
}

.blog-small {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px;
}

.blog-small img {
  height: 72px;
  border-radius: 8px;
}

.blog-small h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.blog-small p,
.blog-feature p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.map-card {
  min-height: 230px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.4), rgba(255,255,255,0.4)),
    repeating-linear-gradient(35deg, #e5e7eb 0 2px, transparent 2px 34px),
    repeating-linear-gradient(125deg, #dbeafe 0 4px, transparent 4px 42px),
    #eef7ef;
  position: relative;
}

.map-card::after {
  content: "📍";
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  font-size: 44px;
}

.site-footer {
  margin-top: 34px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 46px rgba(31, 41, 55, 0.07);
  overflow: hidden;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, minmax(150px, 1fr));
  gap: 28px;
  padding: 28px;
}

.footer-main p {
  margin: 14px 0 0;
  color: #4b5563;
  line-height: 1.65;
}

.footer-title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 800;
}

.footer-links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
}

.footer-links a:hover {
  color: #ff4b0b;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid #f1e4da;
  padding: 16px 28px;
  color: #6b7280;
  font-size: 13px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #ff4b0b;
  background: #fff1e7;
  font-weight: 800;
}

@media (max-width: 1050px) {
  .nav {
    display: none;
  }

  .results-layout,
  .profile-grid,
  .application-layout,
  .story-layout,
  .blog-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .dog-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .page {
    width: min(100% - 22px, 560px);
  }

  .site-header,
  .section-head,
  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-main,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-dog,
  .two-col,
  .form-grid,
  .services-grid,
  .dog-strip,
  .stat-row,
  .values-row,
  .steps,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .feature-dog img,
  .profile-hero img,
  .story-layout img {
    height: 260px;
  }

  .bar {
    grid-template-columns: 1fr;
  }
}
