*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green-dark: #1a5c3a;
  --green: #2d8a56;
  --green-light: #e8f5ee;
  --orange: #e8913a;
  --orange-light: #fff4e8;
  --brand-blue: #1c2f6e;
  --brand-blue-light: #2a3f8f;
  --brand-red: #d13438;
  --cream: #faf8f4;
  --text: #2c2c2c;
  --text-muted: #666;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(26, 92, 58, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 92, 58, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--green-dark);
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.logo strong {
  color: var(--orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--green);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(232, 145, 58, 0.35);
}

.btn-primary:hover {
  background: #d47f2a;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-small {
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
}

.btn-large {
  padding: 1rem 2.25rem;
  font-size: 1.1rem;
}

.nav-links .btn-small {
  background: var(--green);
  color: var(--white);
  border: none;
}

.nav-links .btn-small:hover {
  background: var(--green-dark);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 50%, var(--green-dark) 100%);
  z-index: -1;
}

.hero-content {
  color: var(--white);
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.highlight {
  color: #ffd699;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 560px;
  opacity: 0.92;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.85;
  margin-top: 0.25rem;
}

/* Sections */
.section {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto;
}

.section-header-light h2,
.section-header-light p {
  color: var(--white);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.about-visual {
  position: relative;
  min-height: 360px;
}

.about-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-card-main {
  background: linear-gradient(160deg, var(--brand-blue) 0%, var(--brand-blue-light) 100%);
  padding: 3rem 2.25rem;
  text-align: center;
  border: 3px solid var(--brand-red);
}

.about-logo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--white);
  margin: 0 auto 1.75rem;
  display: block;
  border: 5px solid var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.about-card-main p {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  font-style: italic;
  line-height: 1.45;
}

.about-card-accent {
  position: absolute;
  bottom: 0;
  right: -1rem;
  background: var(--brand-red);
  color: var(--white);
  padding: 1rem 1.5rem;
  font-weight: 800;
  font-size: 1.1rem;
  transform: rotate(-3deg);
  box-shadow: var(--shadow);
}

.about-text h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 1.25rem;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-features {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-features li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.about-features strong {
  display: block;
  color: var(--green-dark);
  margin-bottom: 0.15rem;
}

.about-features span:last-child {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.feature-simple div span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-dark);
}

/* Pets */
.pets {
  background: var(--white);
}

.pets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 760px;
  margin: 0 auto;
  gap: 1.75rem;
}

.pet-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.pet-card:hover {
  transform: translateY(-6px);
}

.pet-photo {
  height: 260px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--green-light);
}

.pet-photo-1 {
  background-image: url('images/cat-domna.jpg');
}

.pet-photo-2 {
  background-image: url('images/dog-gavrosh.jpg');
}

.pet-photo-3 {
  background-image: url('images/dog-gera.jpg');
}

.pet-photo-4 {
  background-image: url('images/dog-slavik.jpg');
}

.pet-info {
  padding: 1.5rem;
}

.pet-info h3 {
  font-size: 1.25rem;
  color: var(--green-dark);
  margin-bottom: 0.25rem;
}

.pet-meta {
  font-size: 0.85rem;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.pet-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.pet-desc-poem {
  font-style: italic;
  line-height: 1.5;
}

.pet-info .btn-small {
  background: var(--green);
  color: var(--white);
  width: 100%;
}

.pet-info .btn-small:hover {
  background: var(--green-dark);
}

/* Help */
.help {
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green) 100%);
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.help-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  color: var(--white);
  transition: background 0.3s, transform 0.3s;
}

.help-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.help-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.help-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.help-card p {
  font-size: 0.925rem;
  opacity: 0.9;
  line-height: 1.55;
}

/* CTA */
.cta {
  background: var(--orange-light);
  padding: 72px 0;
}

.cta-inner {
  text-align: center;
}

.cta h2 {
  font-size: 2rem;
  color: var(--green-dark);
  margin-bottom: 0.75rem;
}

.cta p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  font-size: 1.1rem;
}

.cta-phones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 2rem;
  color: var(--green-dark);
  margin-bottom: 0.75rem;
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
}

.contact-list a {
  color: var(--green-dark);
  font-weight: 700;
  font-size: 1.1rem;
}

.contact-list a:hover {
  color: var(--orange);
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 1.35rem;
  color: var(--green-dark);
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.75rem 1rem;
  border: 2px solid #e8e8e8;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
}

.contact-form .btn-primary {
  width: 100%;
  margin-top: 0.5rem;
}

.form-note {
  margin-top: 1rem;
  color: var(--green);
  font-weight: 600;
  text-align: center;
}

/* Page hero (для подстраниц: выбор категории, кошки, собаки) */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 50%, var(--green-dark) 100%);
  padding: 150px 0 64px;
  color: var(--white);
  text-align: center;
}

.page-hero .breadcrumb {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0.85;
}

.page-hero .breadcrumb:hover {
  opacity: 1;
  text-decoration: underline;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.page-hero p {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 520px;
  margin: 0 auto;
}

/* Category picker (страница «Наши питомцы») */
.category-section {
  background: var(--white);
  padding: 80px 0 100px;
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 860px;
  margin: 0 auto;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  padding: 3.5rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: var(--white);
  transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(26, 92, 58, 0.25);
}

.category-card-cats {
  background: linear-gradient(160deg, var(--brand-blue) 0%, var(--brand-blue-light) 100%);
}

.category-card-dogs {
  background: linear-gradient(160deg, var(--orange) 0%, #f0a95e 100%);
}

.category-icon {
  font-size: 3.5rem;
  line-height: 1;
}

.category-card h2 {
  font-size: 1.6rem;
  font-weight: 800;
}

.category-card p {
  font-size: 0.95rem;
  opacity: 0.9;
}

.category-card .btn {
  margin-top: 0.75rem;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.category-card .btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Каталог питомцев (кошки / собаки) */
.catalog-section {
  background: var(--white);
  padding: 80px 0 100px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.pet-photo-img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  display: block;
  background: var(--green-light);
}

.catalog-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 1rem;
  font-size: 1.05rem;
  grid-column: 1 / -1;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 2rem;
}

.back-link:hover {
  color: var(--orange);
}

@media (max-width: 640px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-brand span:not(.logo-icon) {
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-brand strong {
  color: #ffd699;
}

.footer-brand p {
  font-size: 0.85rem;
  opacity: 0.7;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-weight: 600;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #ffd699;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-visual {
    min-height: 280px;
  }

  .about-logo {
    width: 170px;
    height: 170px;
  }

  .about-card-accent {
    right: 0;
  }

  .pets-grid {
    max-width: 100%;
  }

  .pet-photo {
    height: 240px;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Donate page */
.donate-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.donate-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.donate-card h3 {
  color: var(--green-dark);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.donate-org {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.donate-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.donate-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  border-bottom: 1px dashed #eee;
  padding-bottom: 0.5rem;
}

.donate-list li span {
  color: var(--text-muted);
}

.donate-list li strong {
  color: var(--text);
  text-align: right;
}

.donate-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.donate-card-accent {
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green) 100%);
  color: var(--white);
  text-align: center;
}

.donate-card-accent h3 {
  color: var(--white);
}

.donate-qr {
  background: var(--white);
  display: inline-block;
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

.donate-qr img {
  display: block;
  width: 200px;
  height: 200px;
}

.donate-card-number {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.donate-card-accent a {
  color: #ffd699;
  font-weight: 700;
}

.donate-card-accent .donate-note {
  color: rgba(255, 255, 255, 0.85);
}

a.help-card {
  display: block;
}

@media (max-width: 700px) {
  .donate-grid {
    grid-template-columns: 1fr;
  }
}

/* Новости приюта */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.news-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.news-card-body {
  padding: 1.75rem;
}

.news-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--green-dark);
}

.news-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

.news-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.news-photos img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.news-placeholder {
  padding: 2.5rem 1.75rem;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  border: 2px dashed var(--green-light);
  border-radius: var(--radius-sm);
  margin: 0 1.75rem 1.75rem;
}

/* Лайтбокс для фото */
.pet-photo-img,
.news-photos img {
  cursor: zoom-in;
  transition: transform 0.3s, filter 0.3s;
}

.pet-photo-img:hover,
.news-photos img:hover {
  transform: scale(1.035);
  filter: brightness(1.03);
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 15, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 88vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
  animation: lightboxPop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lightboxPop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 2.4rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.lightbox-nav:hover {
  background: var(--green-dark, rgba(255, 255, 255, 0.3));
  transform: translateY(-50%) scale(1.08);
}

.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

.lightbox-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

@media (max-width: 700px) {
  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
  }
  .lightbox-close {
    width: 40px;
    height: 40px;
    font-size: 1.9rem;
    top: 10px;
    right: 10px;
  }
}

/* Аккордеон новостей */
.news-rubric {
  margin-bottom: 3rem;
}

.news-rubric:last-child {
  margin-bottom: 0;
}

.news-rubric-title {
  font-size: 1.5rem;
  color: var(--green-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--green-light, #d7e8d9);
}

.news-post {
  background: var(--cream);
  border-radius: var(--radius-sm);
  margin-bottom: 0.9rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.news-post:last-child {
  margin-bottom: 0;
}

.news-post summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  user-select: none;
}

.news-post summary::-webkit-details-marker {
  display: none;
}

.news-post-summary-text {
  line-height: 1.4;
}

.news-post-toggle {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-light, #d7e8d9);
  position: relative;
  transition: transform 0.25s ease, background 0.25s ease;
}

.news-post-toggle::before,
.news-post-toggle::after {
  content: '';
  position: absolute;
  background: var(--green-dark);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.news-post-toggle::before {
  width: 12px;
  height: 2px;
}

.news-post-toggle::after {
  width: 2px;
  height: 12px;
  transition: opacity 0.2s ease;
}

.news-post[open] .news-post-toggle {
  transform: rotate(180deg);
  background: var(--orange);
}

.news-post[open] .news-post-toggle::after {
  opacity: 0;
}

.news-post summary:hover {
  background: rgba(0, 0, 0, 0.03);
}

.news-post-body {
  padding: 0 1.5rem 1.5rem;
  animation: newsPostOpen 0.25s ease;
}

@keyframes newsPostOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.news-post-body .news-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.news-post-body .news-photos img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.news-post-body p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.85rem;
}

.news-post-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .news-post-body .news-photos {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-post summary {
    padding: 1rem;
    font-size: 0.95rem;
  }
}

/* Страница "Стать волонтёром" */
.volunteer-hero {
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green) 100%);
}

.volunteer-hero h1,
.volunteer-hero p {
  color: var(--white);
}

.volunteer-hero .breadcrumb {
  color: rgba(255, 255, 255, 0.85);
}

.volunteer-intro {
  max-width: 700px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.volunteer-intro p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.volunteer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.volunteer-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.volunteer-card:hover {
  transform: translateY(-4px);
}

.volunteer-card h3 {
  color: var(--green-dark);
  margin: 0.5rem 0 0.6rem;
  font-size: 1.15rem;
}

.volunteer-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.volunteer-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 3rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.volunteer-photos img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.3s;
}

.volunteer-photos img:hover {
  transform: scale(1.04);
}

.volunteer-cta {
  background: linear-gradient(160deg, var(--orange) 0%, #f2b15a 100%);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--white);
}

.volunteer-cta h2 {
  color: var(--white);
  margin-bottom: 0.6rem;
}

.volunteer-cta p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 520px;
  margin: 0 auto;
}

.volunteer-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.volunteer-cta .btn-primary {
  background: var(--white);
  color: var(--green-dark);
}

.volunteer-cta-outline {
  border-color: var(--white);
  color: var(--white);
}

.volunteer-cta-outline:hover {
  background: var(--white);
  color: var(--orange);
}

.volunteer-cta .donate-note {
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 700px) {
  .volunteer-photos {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Кнопка "Поделиться" на карточке питомца */
.pet-info {
  display: flex;
  flex-direction: column;
}

.btn-share {
  background: transparent;
  border: 1.5px solid var(--green);
  color: var(--green-dark);
  margin-top: 0.6rem;
  cursor: pointer;
}

.btn-share:hover {
  background: var(--green-light);
}

.btn-share.copied {
  background: var(--green-dark);
  color: var(--white);
  border-color: var(--green-dark);
}

.share-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--green-dark);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10000;
}

.share-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Вишлист нужных вещей */
.wishlist-section {
  margin-top: 4rem;
}

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

.wishlist-card {
  background: var(--orange-light);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.wishlist-card h3 {
  color: var(--green-dark);
  margin: 0.5rem 0 0.5rem;
  font-size: 1.1rem;
}

.wishlist-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Страница "Нашли семью" */
.adopted-hero {
  background: linear-gradient(160deg, var(--orange) 0%, #f2b15a 100%);
}

.adopted-hero h1,
.adopted-hero p {
  color: var(--white);
}

.adopted-hero .breadcrumb {
  color: rgba(255, 255, 255, 0.85);
}

.adopted-empty {
  text-align: center;
  max-width: 520px;
  margin: 1rem auto 2rem;
}

.adopted-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.adopted-empty h2 {
  color: var(--green-dark);
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}

.adopted-empty p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.adopted-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}

.adopted-card {
  position: relative;
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.adopted-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  z-index: 2;
}

/* Соцсети в футере */
.footer-social {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  transition: background 0.2s, transform 0.2s;
}

.footer-social a:hover {
  background: #4c75a3;
  transform: translateY(-2px);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.contact-list a[href*="vk.ru"] {
  font-weight: 700;
}

/* Счётчик питомцев */
.pet-count-badge {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
}

.category-count {
  display: block;
  font-weight: 700;
  color: var(--green-dark);
  margin: -0.5rem 0 1rem;
  font-size: 0.95rem;
}

/* Встроенная карта проезда */
.map-embed {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  width: 100%;
  padding-bottom: 56%;
  height: 0;
}

.map-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Поиск и фильтр питомцев */
.pet-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
  padding: 1.25rem;
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pet-search-input {
  flex: 1 1 220px;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--green-light);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.pet-search-input:focus {
  border-color: var(--green);
}

.pet-filter-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--green-light);
  background: var(--white);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--green);
}

.filter-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.pet-filter-count {
  width: 100%;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.pet-card.pet-hidden {
  display: none;
}

.pet-no-results {
  text-align: center;
  color: var(--text-muted);
  padding: 2.5rem 1rem;
  font-size: 1.05rem;
}

/* Блок "Последние новости" на главной */
.latest-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.latest-news-card {
  display: block;
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.25s ease;
}

.latest-news-card:hover {
  transform: translateY(-4px);
}

.latest-news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.latest-news-card-body {
  padding: 1.25rem 1.5rem;
}

.latest-news-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

.latest-news-card h3 {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.4;
  margin: 0;
}
