/* ============================================================
   SHELTER.KZ — DESIGN SYSTEM v2
   Тёплый минимализм. DM Sans + Playfair Display. Зелёный акцент.
   ============================================================ */

/* --- TOKENS --- */
:root {
  /* Colors */
  --c-bg:          #FFFBF2;    /* warm off-white */
  --c-surface:     #FFF7E6;    /* card / header / footer */
  --c-surface-alt: #FFF0CC;    /* hover state, section accent */
  --c-border:      #EDE3CC;    /* subtle divider */
  --c-text:        #1A1510;    /* near-black warm */
  --c-text-2:      #6B5E47;    /* secondary / muted */
  --c-text-3:      #9E8E72;    /* placeholder, caption */
  --c-green:       #1DB963;    /* brand accent */
  --c-green-dark:  #178F4C;    /* hover */
  --c-green-light: #E8F8EE;    /* tinted bg */
  --c-green-mid:   #B8EACF;    /* support section */

  /* Typography */
  --f-body:   'DM Sans', Arial, sans-serif;
  --f-head:   'Playfair Display', Georgia, serif;

  /* Scale */
  --r-card:   16px;
  --r-btn:    10px;
  --r-input:  10px;

  /* Shadows */
  --sh-card:  0 2px 16px rgba(90, 60, 10, 0.07);
  --sh-card-hover: 0 6px 28px rgba(90, 60, 10, 0.13);
  --sh-btn:   0 2px 10px rgba(29, 185, 99, 0.18);

  /* Spacing */
  --gap-section: 80px;
  --gap-inner:   48px;
  --gap-card:    24px;
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  background: var(--c-bg);
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, p { margin: 0; }
a { color: var(--c-green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-green-dark); }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { cursor: pointer; font-family: var(--f-body); }
input, select, textarea { font-family: var(--f-body); }

/* --- LAYOUT --- */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}
.container-inner {
  max-width: 1240px;
  margin: 0 auto;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header__inner {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo__icon {
  width: 36px;
  height: 36px;
}
.logo__wordmark {
  height: 22px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text-2);
  padding: 8px 14px;
  border-radius: 8px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav__link:hover {
  background: var(--c-surface-alt);
  color: var(--c-text);
}
.nav__link--active {
  color: var(--c-green);
}

/* Auth dropdown */
.nav__auth-dropdown {
  position: relative;
  margin-left: 8px;
}
.nav__auth-btn {
  background: var(--c-green);
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: var(--r-btn);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: background .2s, box-shadow .2s;
  box-shadow: var(--sh-btn);
  white-space: nowrap;
}
.nav__auth-btn:hover {
  background: var(--c-green-dark);
}
.nav__auth-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  box-shadow: var(--sh-card-hover);
  min-width: 200px;
  padding: 8px;
  z-index: 200;
}
.nav__auth-dropdown:hover .nav__auth-menu,
.nav__auth-menu:hover { display: block; }
.nav__auth-menu a,
.nav__auth-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--c-text);
  border-radius: 8px;
  background: none;
  border: none;
  transition: background .15s;
  font-family: var(--f-body);
}
.nav__auth-menu a:hover,
.nav__auth-menu button:hover {
  background: var(--c-green-light);
  color: var(--c-green);
}

/* Burger (hidden on desktop) */
.hamb { display: none; }
.bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: .25s;
  margin: 5px 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 48px 40px;
}
.footer__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 80px;
}
.footer__logo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
}
.footer__logo img:first-child { width: 32px; }
.footer__logo img:last-child  { width: 120px; }
.footer__info {
  display: flex;
  gap: 80px;
  margin-left: auto;
}
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-text-3);
  margin-bottom: 4px;
}
.footer__link {
  font-size: 14px;
  color: var(--c-text-2);
  transition: color .2s;
}
.footer__link:hover { color: var(--c-green); }

/* ============================================================
   SHARED COMPONENTS
   ============================================================ */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-btn);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background .2s, box-shadow .2s, transform .15s;
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--f-body);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--c-green);
  color: #fff;
  box-shadow: var(--sh-btn);
}
.btn--primary:hover {
  background: var(--c-green-dark);
  box-shadow: 0 4px 18px rgba(29,185,99,.28);
  color: #fff;
}
.btn--outline {
  background: transparent;
  color: var(--c-green);
  border: 1.5px solid var(--c-green);
}
.btn--outline:hover {
  background: var(--c-green-light);
  color: var(--c-green-dark);
}
.btn--ghost {
  background: var(--c-surface-alt);
  color: var(--c-text-2);
}
.btn--ghost:hover {
  background: var(--c-border);
  color: var(--c-text);
}
.btn--lg { padding: 16px 32px; font-size: 16px; border-radius: 12px; }
.btn--sm { padding: 8px 16px; font-size: 13px; }

/* Animal card */
.animal-card {
  background: #fff;
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--sh-card);
  transition: box-shadow .2s, transform .2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.animal-card:hover {
  box-shadow: var(--sh-card-hover);
  transform: translateY(-3px);
}
.animal-card__img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  background: var(--c-surface);
}
.animal-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.animal-card:hover .animal-card__img { transform: scale(1.04); }
.animal-card__body {
  padding: 14px 16px 16px;
}
.animal-card__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
}

/* Photo count badge */
.photo-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(26,21,16,.65);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

/* Section heading */
.section-title {
  font-family: var(--f-head);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-text);
}
.section-subtitle {
  font-size: 16px;
  color: var(--c-text-2);
  margin-top: 10px;
  line-height: 1.6;
}

/* ============================================================
   HOME PAGE
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
}
.hero__img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(255,251,242,.82) 0%,
    rgba(255,251,242,.3) 55%,
    transparent 80%);
  display: flex;
  align-items: center;
  padding: 0 80px;
}
.hero__text {
  max-width: 480px;
}
.hero__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: 16px;
}
.hero__title {
  font-family: var(--f-head);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-text);
  margin-bottom: 20px;
}
.hero__sub {
  font-size: 17px;
  color: var(--c-text-2);
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero__actions { display: flex; flex-direction: row; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 28px; }

/* Gallery section */
.gallery-section {
  padding: var(--gap-section) 0;
}
.gallery-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gap-card);
}
.gallery-grid__more {
  background: var(--c-green);
  border-radius: var(--r-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  gap: 8px;
  aspect-ratio: 1 / 1;
  transition: background .2s, transform .2s;
  padding: 20px;
  text-align: center;
}
.gallery-grid__more:hover {
  background: var(--c-green-dark);
  transform: translateY(-3px);
  color: #fff;
}
.gallery-grid__more-count {
  font-family: var(--f-head);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}
.gallery-grid__more-label {
  font-size: 13px;
  font-weight: 500;
  opacity: .9;
}

/* Support section */
.support-section {
  background: var(--c-green-mid);
  padding: var(--gap-section) 0;
}
.support-section__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}
.support-section__text .section-title { margin-bottom: 16px; }
.support-section__text p {
  font-size: 16px;
  color: var(--c-text-2);
  max-width: 600px;
  line-height: 1.7;
}
.support-section__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 200px;
}

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-page {
  padding: 48px 0 80px;
}
.search-page__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

/* Sidebar */
.search-sidebar {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 24px;
  position: sticky;
  top: 88px;
}
.search-sidebar__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-border);
}
.filter-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--c-border);
}
.filter-section:last-of-type { border-bottom: none; margin-bottom: 0; }
.filter-section__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--c-text-3);
  margin-bottom: 10px;
  display: block;
}
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  user-select: none;
}
.filter-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--c-green);
  flex-shrink: 0;
  cursor: pointer;
}
.filter-checkbox span {
  font-size: 14px;
  color: var(--c-text-2);
}
.filter-checkbox:hover span { color: var(--c-text); }
.filter-count {
  font-size: 12px;
  color: var(--c-text-3);
  margin-left: auto;
}
.filter-select {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-input);
  font-size: 14px;
  color: var(--c-text);
  background: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239E8E72' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  transition: border-color .2s;
}
.filter-select:focus {
  outline: none;
  border-color: var(--c-green);
}
.filter-input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-input);
  font-size: 14px;
  color: var(--c-text);
  background: #fff;
  transition: border-color .2s;
}
.filter-input::placeholder { color: var(--c-text-3); }
.filter-input:focus {
  outline: none;
  border-color: var(--c-green);
}
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.filter-tag {
  padding: 3px 10px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--c-text-2);
  cursor: pointer;
  transition: all .15s;
  font-family: var(--f-body);
}
.filter-tag:hover {
  background: var(--c-green-light);
  border-color: var(--c-green);
  color: var(--c-green);
}
.filter-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }

/* Show more breeds */
.filter-show-more {
  background: none;
  border: none;
  color: var(--c-green);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color .2s;
  font-family: var(--f-body);
}
.filter-show-more:hover { color: var(--c-green-dark); }

/* Search content */
.search-content__header {
  margin-bottom: 28px;
}
.search-content__title {
  font-size: 26px;
  font-weight: 700;
  color: var(--c-text);
}
.search-content__count {
  font-size: 14px;
  color: var(--c-text-3);
  margin-top: 4px;
}
.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--gap-card);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.paginator-btn {
  padding: 8px 16px;
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-2);
  text-decoration: none;
  transition: all .15s;
}
.paginator-btn:hover {
  border-color: var(--c-green);
  color: var(--c-green);
  background: var(--c-green-light);
}
.paginator-info {
  font-size: 14px;
  color: var(--c-text-3);
  padding: 0 8px;
}

/* ============================================================
   ANIMAL (PET) PAGE
   ============================================================ */
.pet-page {
  padding: 48px 0 80px;
}
.pet-page__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}
.pet-page__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 64px;
}
.pet-page__photo-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--sh-card);
  aspect-ratio: 1;
  position: relative;
}
.pet-page__main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .25s;
}
.pet-page__thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.pet-page__thumb {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: border-color .2s;
  flex-shrink: 0;
}
.pet-page__thumb.active { border-color: var(--c-green); }
.pet-page__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pet-page__main-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--c-green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
}

.pet-page__name {
  font-family: var(--f-head);
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--c-text);
}
.pet-page__attrs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.pet-attr {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  padding: 12px 16px;
  background: var(--c-surface);
  border-radius: 10px;
  border: 1px solid var(--c-border);
}
.pet-attr__key {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--c-text-3);
}
.pet-attr__val {
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text);
}

/* Shelter block on pet page */
.pet-shelter-block {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: var(--c-green-light);
  border: 1.5px solid var(--c-green-mid);
  border-radius: 14px;
  margin-bottom: 28px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s;
}
.pet-shelter-block:hover { box-shadow: var(--sh-card); }
.shelter-logo-medium {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.shelter-logo-medium img { width: 100%; height: 100%; object-fit: contain; }
.pet-shelter-block__name {
  font-weight: 700;
  font-size: 15px;
  color: var(--c-text);
}
.pet-shelter-block__region {
  font-size: 13px;
  color: var(--c-text-3);
  margin-top: 2px;
}
.pet-page__buttons { display: flex; gap: 12px; }

/* Similar animals */
.pet-similar { margin-top: 16px; }
.pet-similar__title {
  font-family: var(--f-head);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 28px;
}
.pet-similar__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

/* ============================================================
   SHELTER PAGE
   ============================================================ */
.shelter-page { padding: 48px 0 80px; }
.shelter-page__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}
.shelter-top {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  margin-bottom: 48px;
  align-items: start;
}
.shelter-logo-large {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
}
.shelter-logo-large img { width: 100%; height: 100%; object-fit: contain; }
.shelter-logo-placeholder {
  background: var(--c-surface);
  color: var(--c-text-3);
}
.shelter-content__title {
  font-family: var(--f-head);
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 12px;
}
.shelter-content__chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-text-2);
}
.chip--green {
  background: var(--c-green-light);
  border-color: var(--c-green-mid);
  color: var(--c-green-dark);
}
.shelter-content__desc {
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text-2);
  white-space: pre-line;
  margin-bottom: 28px;
}
.shelter-content__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Shelter contacts */
.shelter-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.shelter-col {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 28px;
}
.shelter-col__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--c-text-3);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-border);
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-border);
}
.contact-row:last-child { border-bottom: none; }
.contact-row__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--c-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.contact-row__label { font-size: 11px; color: var(--c-text-3); }
.contact-row__val {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
}
.contact-row__val a { color: var(--c-green); }
.contact-row__val a:hover { color: var(--c-green-dark); }

/* Requisites */
.shelter-requisites {
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-text-2);
  white-space: pre-line;
}

/* ============================================================
   SHELTERS LIST PAGE
   ============================================================ */
.shelters-list-page { padding: 48px 0 80px; }
.shelters-list-page__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}
.shelters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.shelter-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
}
.shelter-card:hover {
  box-shadow: var(--sh-card-hover);
  transform: translateY(-3px);
}
.shelter-card__logo {
  width: 100px;
  height: 100px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--c-surface);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.shelter-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.shelter-card__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.4;
}
.shelter-card__adopted {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--c-green-dark);
  background: var(--c-green-light);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-page { padding: 48px 0 80px; }
.about-page__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-main__title {
  font-family: var(--f-head);
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 32px;
}
.about-main__img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 32px;
  max-height: 360px;
}
.about-main p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--c-text-2);
  margin-bottom: 20px;
}
.about-sidebar {
  position: sticky;
  top: 96px;
}
.about-cta {
  background: var(--c-green-light);
  border: 1.5px solid var(--c-green-mid);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
}
.about-cta__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--c-text);
}
.about-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.about-list li {
  font-size: 14px;
  color: var(--c-text-2);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}
.about-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-green);
}
.about-note {
  background: var(--c-surface);
  border-radius: 12px;
  padding: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text-2);
}

/* ============================================================
   DONATE PAGE
   ============================================================ */
.donate-page { padding: 48px 0 80px; }
.donate-page__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  align-items: start;
}
.donate-main__title {
  font-family: var(--f-head);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 32px;
}
.donate-main__img {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 28px;
  object-fit: cover;
  max-height: 320px;
}
.donate-main p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--c-text-2);
  margin-bottom: 20px;
}
.donate-sidebar { position: sticky; top: 96px; }
.donate-info-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 28px;
}
.donate-info-card__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
}
.donate-info-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-text-2);
  margin-bottom: 20px;
}

/* ============================================================
   SHELTER CABINET (login/register pages)
   ============================================================ */
.auth-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
}
.auth-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 20px;
  padding: 48px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--sh-card);
}
.auth-card__title {
  font-family: var(--f-head);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}
.auth-card__sub {
  font-size: 14px;
  color: var(--c-text-3);
  margin-bottom: 32px;
}
.form-field { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-2);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-input);
  font-size: 15px;
  color: var(--c-text);
  background: #fff;
  transition: border-color .2s;
  font-family: var(--f-body);
}
.form-input::placeholder { color: var(--c-text-3); }
.form-input:focus { outline: none; border-color: var(--c-green); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .pet-similar__grid { grid-template-columns: repeat(4, 1fr); }
  .shelters-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .container { padding: 0 24px; }
  :root { --gap-section: 56px; }

  .header { padding: 0 24px; }
  .nav {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    background: var(--c-surface);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 4px;
    z-index: 99;
    overflow-y: auto;
    border-top: 1px solid var(--c-border);
  }
  .nav.open { display: flex; }
  .nav__link { width: 100%; font-size: 18px; padding: 14px 16px; }
  .nav__auth-dropdown { width: 100%; margin-left: 0; }
  .nav__auth-btn { width: 100%; font-size: 16px; padding: 14px 18px; }
  .nav__auth-menu { position: static; box-shadow: none; border: 1px solid var(--c-border); margin-top: 8px; }
  .hamb {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: auto;
    border-radius: 8px;
    cursor: pointer;
  }
  .hamb.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamb.active .bar:nth-child(2) { opacity: 0; }
  .hamb.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .pet-similar__grid { grid-template-columns: repeat(3, 1fr); }
  .shelters-grid { grid-template-columns: repeat(2, 1fr); }

  .search-page__inner { grid-template-columns: 1fr; }
  .search-sidebar { position: static; }

  .shelter-top { grid-template-columns: 180px 1fr; gap: 32px; }
  .shelter-bottom { grid-template-columns: 1fr; }

  .about-page__inner,
  .donate-page__inner { grid-template-columns: 1fr; }
  .about-sidebar, .donate-sidebar { position: static; }

  .support-section__inner { grid-template-columns: 1fr; gap: 32px; }

  .pet-page__layout { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .header { padding: 0 16px; }
  .footer { padding: 32px 16px; }
  .footer__inner { flex-direction: column; gap: 32px; }
  .footer__info { gap: 32px; }

  .hero__overlay { padding: 0 24px; }
  .hero__title { font-size: 28px; }
  .hero__sub { font-size: 15px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery-section__header { flex-direction: column; gap: 12px; }

  .pet-similar__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .shelters-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .shelter-top { grid-template-columns: 1fr; text-align: center; }
  .shelter-content__chips { justify-content: center; }
  .shelter-content__actions { justify-content: center; }
  .shelter-logo-large { max-width: 160px; margin: 0 auto; }

  .about-main__title, .donate-main__title { font-size: 32px; }
  .section-title { font-size: 26px; }

  .search-page__inner { padding: 0 16px; }
  .shelters-list-page__inner,
  .about-page__inner,
  .donate-page__inner,
  .pet-page__inner,
  .shelter-page__inner { padding: 0 16px; }
  .support-section__inner { padding: 0 16px; }
}
