:root {
  --bg: #f6f8f5;
  --surface: #ffffff;
  --surface-soft: #eef3ec;
  --text: #1b261f;
  --muted: #4f6358;
  --line: #d8e1db;
  --primary: #23623f;
  --primary-hover: #1a4e31;
  --accent: #db964b;
  --shadow: 0 24px 80px rgba(27, 38, 31, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, #e8efe7 0%, transparent 36%),
    radial-gradient(circle at 90% 15%, #f5ead9 0%, transparent 32%),
    var(--bg);
  min-height: 100vh;
}

.bg-orb {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.2;
  z-index: -1;
  animation: float 8s ease-in-out infinite;
}

.bg-orb--left {
  background: #4f9f74;
  left: -120px;
  top: 140px;
}

.bg-orb--right {
  background: #e8af6a;
  right: -100px;
  top: 70px;
  animation-delay: 2s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-16px);
  }
}

.container {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(246, 248, 245, 0.75);
  border-bottom: 1px solid rgba(216, 225, 219, 0.7);
}

.header-row {
  min-height: 74px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand__icon {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e9efe9;
}

.brand__text {
  font-size: 1.03rem;
}

.button {
  border: 0;
  border-radius: 999px;
  height: 44px;
  padding: 0 1.15rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button--primary {
  color: #fff;
  background: var(--primary);
}

.button--primary:hover {
  background: var(--primary-hover);
}

.button--ghost {
  color: var(--primary);
  background: #e8f1eb;
}

.button--ghost:hover {
  background: #d7e8de;
}

.button--light {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
}

.button--small {
  height: 36px;
  padding-inline: 0.85rem;
  font-size: 0.85rem;
}

.hero {
  padding: 3.4rem 0 2.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.08;
  margin: 0 0 0.85rem;
}

.hero p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.3rem;
}

.hero-stats {
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.3rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(216, 225, 219, 0.8);
  box-shadow: 0 24px 70px rgba(27, 38, 31, 0.08);
  display: grid;
  gap: 1.1rem;
}

.stat {
  display: grid;
  gap: 0.2rem;
}

.stat strong {
  font-size: 1.4rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.controls {
  margin: 1.8rem 0;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(216, 225, 219, 0.8);
  box-shadow: 0 18px 60px rgba(27, 38, 31, 0.08);
}

.controls__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: end;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: rgba(35, 98, 63, 0.6);
  box-shadow: 0 0 0 4px rgba(35, 98, 63, 0.12);
}

.field--grow {
  grid-column: span 2;
}

.controls__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  padding-bottom: 4rem;
}

.dog-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(216, 225, 219, 0.8);
  box-shadow: 0 22px 60px rgba(27, 38, 31, 0.08);
  display: grid;
  min-height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: reveal 0.55s ease both;
}

@keyframes reveal {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.dog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.dog-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.dog-card__body {
  padding: 1.1rem 1.15rem 1.3rem;
  display: grid;
  gap: 0.85rem;
}

.dog-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
}

.dog-card__top h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.price {
  margin: 0;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0;
  list-style: none;
  margin: 0;
}

.meta li {
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(35, 98, 63, 0.1);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
}

.description {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.dog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: auto;
}

.footer {
  padding: 1.8rem 0 2.4rem;
  color: var(--muted);
  border-top: 1px solid rgba(216, 225, 219, 0.8);
  background: rgba(246, 248, 245, 0.82);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(27, 38, 31, 0.4);
  padding: 1.4rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal__panel {
  width: min(720px, 100%);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(216, 225, 219, 0.8);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.25rem 1.3rem;
  display: grid;
  gap: 1rem;
  max-height: calc(100vh - 3rem);
  overflow: auto;
}

.modal__header {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
}

.modal__header h2 {
  margin: 0;
  font-family: "Fraunces", serif;
}

.modal__close {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.2rem 0.35rem;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.form-grid .field--grow {
  grid-column: span 2;
}

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .controls__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field--grow {
    grid-column: span 2;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .header-row {
    min-height: 64px;
  }

  .brand__text {
    font-size: 0.95rem;
  }

  .button {
    height: 40px;
    padding-inline: 0.9rem;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .controls__row,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .field--grow {
    grid-column: span 1;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .modal__panel {
    border-radius: 16px;
    padding: 0.85rem;
  }
}