:root {
  --adopt-hero: #fdf4ef;
  --adopt-border: #f2d6c9;
  --adopt-text: #3a2a2a;
  --adopt-muted: #6b7280;
  --adopt-accent: #ff6b4a;
}

.adopt-page {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.adopt-hero {
  padding: 0 0 1.5rem;
  border-bottom: 1px solid rgba(242, 214, 201, 0.7);
}

.adopt-hero-content {
  display: grid;
  gap: 1.25rem;
  color: var(--adopt-text);
}

.adopt-lead {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 52rem;
}

.adopt-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.adopt-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, 0.05);
  box-shadow: 0 10px 25px rgba(16, 24, 40, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.adopt-card:hover,
.adopt-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(16, 24, 40, 0.12);
}

.adopt-card:focus-visible {
  outline: 3px solid rgba(255, 107, 74, 0.2);
  outline-offset: 4px;
}

.adopt-card-image {
  width: 64px;
  height: 64px;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}

.adopt-card-title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.adopt-card-text {
  margin: 0;
  color: var(--adopt-muted);
  font-size: 0.95rem;
}

.adopt-process {
  padding: 1.5rem 0 0 0;
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.adopt-intro {
  margin-top: 0.25rem;
  color: var(--adopt-muted);
}

.adopt-steps {
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
  counter-reset: adopt-steps;
  width: 100%;
  min-width: 0;
}

.adopt-steps li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 0.9rem;
  row-gap: 0.35rem;
  align-items: start;
  padding-bottom: 1rem;
  border-bottom: 1px dashed rgba(242, 214, 201, 0.8);
  width: 100%;
  min-width: 0;
}

.adopt-steps li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.adopt-steps li::before {
  counter-increment: adopt-steps;
  content: counter(adopt-steps);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #fbe4db;
  color: #b9482d;
  font-weight: 700;
  grid-row: 1 / span 2;
  align-self: center;
}

.adopt-steps h3,
.adopt-steps p {
  grid-column: 2;
}

.adopt-steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.adopt-steps p {
  margin: 0;
  color: var(--adopt-muted);
}

.adopt-support {
  padding: 1.25rem 0 0;
  border-top: 1px solid rgba(242, 214, 201, 0.7);
}

.adopt-support h3 {
  margin: 0 0 0.5rem;
}

.adopt-support p {
  margin: 0 0 0.75rem;
  color: var(--adopt-muted);
}

.adopt-info {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid rgba(242, 214, 201, 0.7);
}

.adopt-info h2 {
  margin: 0 0 0.25rem;
}

.adopt-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0 1rem;
  border-bottom: 2px solid rgba(242, 214, 201, 0.5);
}

.adopt-tab {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--adopt-muted);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: -2px;
}

.adopt-tab:hover {
  color: var(--adopt-text);
  background: rgba(242, 214, 201, 0.2);
}

.adopt-tab.active {
  color: var(--adopt-accent);
  border-bottom-color: var(--adopt-accent);
}

.adopt-tab:focus-visible {
  outline: 2px solid rgba(255, 107, 74, 0.3);
  outline-offset: 2px;
}

.adopt-tab-content {
  padding: 1.5rem 0;
}

.adopt-tab-content.hidden {
  display: none;
}

.adopt-tab-content h3 {
  margin: 0 0 1rem;
  color: var(--adopt-text);
  font-size: 1.35rem;
  font-weight: 700;
}

.adopt-tab-content h4 {
  margin: 1.5rem 0 0.75rem;
  color: var(--adopt-text);
  font-size: 1.2rem;
  font-weight: 700;
}

.adopt-tab-content h5 {
  margin: 1rem 0 0.5rem;
  color: var(--adopt-text);
  font-size: 1.05rem;
  font-weight: 700;
}

.adopt-tab-content p {
  margin: 0 0 0.75rem;
  color: var(--adopt-muted);
  line-height: 1.6;
}

.adopt-tab-content ul {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
  color: var(--adopt-muted);
}

.adopt-tab-content ul li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.adopt-tab-content ul li strong {
  color: var(--adopt-text);
}

@media (max-width: 800px) {
  .adopt-card-grid {
    grid-template-columns: 1fr;
  }

  .adopt-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .adopt-card-image {
    width: 56px;
    height: 56px;
  }

  .adopt-tabs {
    flex-direction: column;
    gap: 0;
    border-bottom: none;
  }

  .adopt-tab {
    border-bottom: 1px solid rgba(242, 214, 201, 0.5);
    border-left: 3px solid transparent;
    text-align: left;
    padding: 0.75rem 1rem;
    margin-bottom: 0;
  }

  .adopt-tab.active {
    border-bottom-color: rgba(242, 214, 201, 0.5);
    border-left-color: var(--adopt-accent);
  }
}
