:root {
  --c-cyan-dark: #0097a7;
  --c-cyan: #00bcd4;
  --c-cyan-light: #4fc3f7;
  --c-cyan-mid: #00acc1;
  --c-cyan-soft: #e0f7fa;
  --c-pink: #e91e8c;
  --c-pink-light: #f48fb1;
  --c-pink-mid: #f06292;
  --c-pink-soft: #fce4ec;
  --c-bg-1: #ffffff;
  --c-bg-2: #e8f6fb;
  --c-bg-3: #cdeaf7;
  --c-text: #263238;
  --c-muted: #607d8b;
  --c-border: #cfd8dc;
  --shadow: 0 4px 12px rgba(144, 164, 174, 0.25);
  --shadow-hover: 0 8px 20px rgba(144, 164, 174, 0.4);
  --radius: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-text);
  background: linear-gradient(180deg, var(--c-bg-1) 0%, var(--c-bg-2) 50%, var(--c-bg-3) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

a { color: var(--c-cyan-dark); text-decoration: none; }
a:hover { color: var(--c-pink); }

h2 { font-size: 32px; font-weight: 800; margin-bottom: 10px; }
h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-pink { background: linear-gradient(135deg, var(--c-pink), var(--c-pink-light)); color: white; }
.btn-pink:hover { color: white; }
.btn-cyan { background: linear-gradient(135deg, var(--c-cyan-dark), var(--c-cyan-light)); color: white; }
.btn-cyan:hover { color: white; }

/* ===== Шапка ===== */
.site-header {
  position: relative;
  color: white;
  overflow: visible;
}
.header-bg {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--c-cyan-dark) 0%, var(--c-cyan) 50%, var(--c-cyan-light) 100%);
  overflow: hidden;
  height: 116px;
}
.header-paws {
  position: absolute; top: 0; right: 0; width: 320px; height: 116px;
}
.header-inner {
  position: relative;
  display: flex; align-items: center; gap: 20px;
  padding: 14px 20px; min-height: 116px;
}
.logo-circle {
  width: 104px; height: 104px; border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}
.logo-circle img { width: 92px; height: 92px; object-fit: contain; }
.header-text { flex: 1; }
.site-title {
  font-size: 32px; font-weight: 900; line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.site-subtitle { font-size: 15px; opacity: 0.95; margin-top: 4px; }
.site-nav {
  position: relative;
  background: rgba(255,255,255,0.95);
  box-shadow: var(--shadow);
  z-index: 5;
}
.nav-inner {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 20px;
}
.site-nav a {
  padding: 8px 16px; border-radius: 20px;
  font-weight: 600; font-size: 15px;
  color: var(--c-cyan-dark);
  transition: background 0.15s;
}
.site-nav a:hover { background: var(--c-cyan-soft); color: var(--c-pink); }

/* ===== Hero ===== */
.hero { padding: 50px 0 30px; }
.hero-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; }
.hero-text h2 { font-size: 44px; color: var(--c-cyan-dark); margin-bottom: 20px; line-height: 1.1; }
.hero-lead { font-size: 18px; color: var(--c-text); margin-bottom: 25px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats { display: flex; flex-direction: column; gap: 16px; }
.stat-card {
  background: white; border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 16px;
  border-top: 6px solid var(--c-cyan-mid);
}
.stat-card.stat-pink { border-top-color: var(--c-pink); }
.stat-number { font-size: 44px; font-weight: 900; color: var(--c-cyan-dark); line-height: 1; }
.stat-card.stat-pink .stat-number { color: var(--c-pink); font-size: 32px; }
.stat-label { font-size: 14px; color: var(--c-muted); font-weight: 600; }

/* ===== About ===== */
.about { padding: 40px 0; }
.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.info-card {
  background: white; border-radius: var(--radius);
  padding: 24px 20px; box-shadow: var(--shadow);
  text-align: center;
  border-top: 7px solid var(--c-cyan-mid);
  transition: transform 0.2s;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.info-card.info-pink { border-top-color: var(--c-pink); background: var(--c-pink-soft); }
.info-card.info-cyan { background: var(--c-cyan-soft); }
.info-card .icon {
  font-size: 36px; line-height: 1; margin-bottom: 10px;
  color: var(--c-cyan-dark);
}
.info-card.info-pink .icon { color: var(--c-pink); }
.info-card h3 { color: var(--c-text); margin-bottom: 6px; }
.info-card p { font-size: 14px; color: var(--c-muted); }

/* ===== Section header ===== */
.section-header { text-align: center; margin-bottom: 30px; }
.section-header h2 {
  color: var(--c-cyan-dark);
  display: inline-block;
  position: relative;
  padding-bottom: 12px;
}
.section-header h2::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 60px; height: 4px; background: linear-gradient(90deg, var(--c-pink), var(--c-cyan));
  transform: translateX(-50%); border-radius: 2px;
}
.section-header p { color: var(--c-muted); margin-top: 14px; font-size: 16px; }

/* ===== Pets ===== */
.pets { padding: 50px 0; }
.pets-filters { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.filter-btn {
  padding: 8px 22px; border-radius: 25px;
  background: white; color: var(--c-cyan-dark);
  border: 2px solid var(--c-cyan-mid);
  font-weight: 700; font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-btn:hover { background: var(--c-cyan-soft); }
.filter-btn.active {
  background: linear-gradient(135deg, var(--c-cyan-dark), var(--c-cyan-light));
  color: white;
}
.pets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 20px;
}
.pets-loading, .news-loading {
  grid-column: 1 / -1; text-align: center;
  padding: 40px; color: var(--c-muted);
}
.pet-card {
  background: white; border-radius: var(--radius);
  padding: 8px; box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.pet-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.pet-photo-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #eceff1;
}
.pet-photo-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.pet-card:hover .pet-photo-wrap img { transform: scale(1.05); }
.pet-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.72) 100%);
  pointer-events: none;
}
.pet-name-overlay {
  position: absolute; left: 12px; right: 12px; bottom: 10px;
  color: white;
  pointer-events: none;
}
.pet-name-overlay .name { font-size: 20px; font-weight: 900; line-height: 1; }
.pet-name-overlay .meta { font-size: 12px; opacity: 0.9; margin-top: 4px; }
.pet-corners { position: absolute; inset: 0; pointer-events: none; }
.pet-corners::before,
.pet-corners::after,
.pet-corner-br,
.pet-corner-bl {
  content: ""; position: absolute; width: 18px; height: 18px;
  border: 3px solid var(--c-pink-mid);
}
.pet-corners::before { top: 0; left: 0; border-right: none; border-bottom: none; border-top-left-radius: 6px; }
.pet-corners::after { top: 0; right: 0; border-left: none; border-bottom: none; border-top-right-radius: 6px; }
.pet-card.corner-cyan .pet-corners::before,
.pet-card.corner-cyan .pet-corners::after { border-color: var(--c-cyan-mid); }
.pet-corner-br { bottom: 0; right: 0; border-left: none; border-top: none; border-bottom-right-radius: 6px; }
.pet-corner-bl { bottom: 0; left: 0; border-right: none; border-top: none; border-bottom-left-radius: 6px; }
.pet-card.corner-cyan .pet-corner-br,
.pet-card.corner-cyan .pet-corner-bl { border-color: var(--c-cyan-mid); }

.pet-info { padding: 12px 8px 8px; }
.pet-info-row { display: flex; gap: 8px; font-size: 13px; color: var(--c-muted); margin-bottom: 6px; flex-wrap: wrap; }
.pet-tag {
  display: inline-block; padding: 2px 10px;
  border-radius: 12px; font-size: 11px; font-weight: 700;
  background: var(--c-cyan-soft); color: var(--c-cyan-dark);
}
.pet-tag.tag-pink { background: var(--c-pink-soft); color: var(--c-pink); }
.pet-desc { font-size: 13px; color: var(--c-text); line-height: 1.45; }
.pets-actions { text-align: center; margin-top: 30px; }

/* ===== News (posts feed) ===== */
.news { padding: 50px 0; background: rgba(255,255,255,0.45); }
.news-feed {
  display: flex; flex-direction: column;
  gap: 28px;
  max-width: 760px; margin: 0 auto;
}
.news-loading {
  text-align: center; padding: 40px; color: var(--c-muted);
}
.post-card {
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border-top: 6px solid var(--c-pink);
  transition: box-shadow 0.2s;
}
.post-card.accent-cyan { border-top-color: var(--c-cyan-mid); }
.post-card:hover { box-shadow: var(--shadow-hover); }
.post-header {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 24px 12px;
}
.post-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-pink), var(--c-pink-light));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.post-card.accent-cyan .post-avatar {
  background: linear-gradient(135deg, var(--c-cyan-dark), var(--c-cyan-light));
}
.post-meta { flex: 1; min-width: 0; }
.post-author { font-weight: 800; color: var(--c-pink); font-size: 15px; }
.post-card.accent-cyan .post-author { color: var(--c-cyan-dark); }
.post-date { font-size: 12px; color: var(--c-muted); margin-top: 2px; }

.post-body {
  padding: 16px 24px 24px;
  font-size: 16px; line-height: 1.6; color: var(--c-text);
}
.post-body p { margin-bottom: 10px; white-space: pre-wrap; word-wrap: break-word; }
.post-body p:last-child { margin-bottom: 0; }

/* ===== Карусель медиа в посте ===== */
.post-carousel {
  position: relative;
  background: #000;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  max-height: 560px;
  user-select: none;
}
.post-carousel.single { cursor: pointer; }
.carousel-track {
  display: flex;
  width: 100%; height: 100%;
  transition: transform 0.4s cubic-bezier(.22,.61,.36,1);
}
.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  position: relative;
  cursor: zoom-in;
  background: #000;
  display: flex; align-items: center; justify-content: center;
}
.carousel-slide img,
.carousel-slide video {
  max-width: 100%; max-height: 100%;
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.carousel-slide.video::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
}
.media-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  background: rgba(0,0,0,0.6);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  pointer-events: none;
  border: 2px solid rgba(255,255,255,0.9);
  padding-left: 4px;
  z-index: 2;
}

.carousel-arrow {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  color: var(--c-text);
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  transition: background 0.15s, transform 0.15s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.carousel-arrow:hover { background: white; transform: translateY(-50%) scale(1.08); }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-counter {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 13px; font-weight: 600;
  padding: 4px 12px;
  border-radius: 14px;
  z-index: 3;
  pointer-events: none;
}

.carousel-dots {
  position: absolute; left: 50%; bottom: 12px;
  transform: translateX(-50%);
  display: flex; gap: 6px;
  z-index: 3;
}
.carousel-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, transform 0.15s;
}
.carousel-dot:hover { background: rgba(255,255,255,0.8); }
.carousel-dot.active {
  background: white;
  transform: scale(1.25);
}

@media (max-width: 700px) {
  .carousel-arrow { width: 36px; height: 36px; font-size: 16px; }
  .carousel-prev { left: 6px; }
  .carousel-next { right: 6px; }
}

.news-actions { text-align: center; margin-top: 30px; }
.news-empty {
  background: white; border-radius: var(--radius);
  padding: 40px 30px; text-align: center;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--c-pink);
}
.news-empty .emoji { font-size: 48px; margin-bottom: 12px; }
.news-empty h3 { color: var(--c-pink); }
.news-empty p { color: var(--c-muted); margin-top: 6px; }

/* ===== Help ===== */
.help { padding: 60px 0; }
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.help-card {
  background: white; border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow);
  text-align: center;
  border-top: 7px solid var(--c-pink);
  transition: transform 0.2s;
  display: flex; flex-direction: column;
}
.help-card:nth-child(2) { border-top-color: var(--c-cyan-mid); }
.help-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.help-icon { font-size: 48px; line-height: 1; margin-bottom: 12px; }
.help-card h3 { margin-bottom: 12px; color: var(--c-cyan-dark); }
.help-card:nth-child(odd) h3 { color: var(--c-pink); }
.help-card p { font-size: 15px; color: var(--c-muted); margin-bottom: 20px; flex: 1; }
.help-card .btn { align-self: center; }

/* ===== Donate ===== */
.donate {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--c-pink-soft) 0%, var(--c-cyan-soft) 100%);
}
.donate-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
}
.donate-text h2 { color: var(--c-pink); margin-bottom: 14px; font-size: 36px; }
.donate-lead { font-size: 17px; color: var(--c-text); margin-bottom: 22px; }
.donate-requisites {
  background: white; border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
  border-left: 6px solid var(--c-pink);
}
.donate-requisites h3 { color: var(--c-pink); margin-bottom: 10px; }
.donate-requisites p { font-size: 14px; color: var(--c-text); margin-bottom: 8px; }
.qr-card {
  background: white; border-radius: var(--radius);
  padding: 24px; text-align: center;
  box-shadow: var(--shadow);
  border-top: 7px solid var(--c-pink);
  max-width: 280px; margin: 0 auto;
}
.qr-card h3 { color: var(--c-pink); margin-bottom: 12px; }
.qr-card img { width: 100%; max-width: 200px; height: auto; }
.qr-card p { font-size: 13px; color: var(--c-muted); margin-top: 10px; }

/* ===== Contacts ===== */
.contacts { padding: 60px 0; }
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.contact-card {
  background: white; border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
  text-align: center;
  border-top: 6px solid var(--c-cyan-mid);
}
.contact-card:nth-child(2) { border-top-color: var(--c-pink); }
.contact-icon { font-size: 36px; margin-bottom: 10px; }
.contact-card h3 { color: var(--c-cyan-dark); margin-bottom: 6px; }
.contact-card:nth-child(2) h3 { color: var(--c-pink); }
.contact-card a, .contact-card p {
  font-size: 16px; color: var(--c-text); font-weight: 600;
}

/* ===== Footer ===== */
.site-footer {
  background: linear-gradient(90deg, var(--c-cyan-dark) 0%, var(--c-pink) 100%);
  color: white;
  padding: 30px 0 20px;
  margin-top: 40px;
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center;
}
.footer-socials { display: flex; gap: 14px; }
.footer-socials a {
  width: 50px; height: 50px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s, background 0.15s;
  border: 2px solid rgba(255,255,255,0.3);
}
.footer-socials a:hover { transform: translateY(-3px); background: rgba(255,255,255,0.3); }
.footer-socials img { width: 28px; height: 28px; }
.footer-info p { font-size: 14px; opacity: 0.95; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0;
  display: none;
  z-index: 1000;
}
.lightbox.active { display: flex; align-items: center; justify-content: center; }
.lightbox-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.85); }
.lightbox-inner {
  position: relative; z-index: 2;
  max-width: 92vw; max-height: 92vh;
}
.lightbox-inner img,
.lightbox-inner video {
  max-width: 92vw; max-height: 80vh;
  border-radius: var(--radius);
  display: block;
  background: #000;
}
.lightbox-caption {
  text-align: center; color: white; margin-top: 14px;
  font-size: 16px; font-weight: 600;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.15);
  color: white; border: none;
  border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 24px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.3); }
.lightbox-close { top: -50px; right: 0; font-size: 32px; }
.lightbox-prev { left: -60px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: -60px; top: 50%; transform: translateY(-50%); }

/* ===== Адаптив ===== */
@media (max-width: 1000px) {
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .help-grid { grid-template-columns: 1fr; gap: 18px; }
  .contacts-grid { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .donate-inner { grid-template-columns: 1fr; }
  .lightbox-close { top: 10px; right: 10px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

@media (max-width: 700px) {
  h2 { font-size: 26px; }
  .hero-text h2 { font-size: 32px; }
  .site-title { font-size: 24px; }
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .logo-circle { width: 80px; height: 80px; }
  .logo-circle img { width: 70px; height: 70px; }
  .header-paws { width: 200px; }
  .pets-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .pet-name-overlay .name { font-size: 16px; }
  .pet-info { padding: 8px 6px 4px; }
  .pet-desc { font-size: 12px; }
  .hero { padding: 30px 0 20px; }
  .donate-text h2 { font-size: 28px; }
}

@media (max-width: 480px) {
  .about-grid { grid-template-columns: 1fr; }
  .hero-buttons .btn { width: 100%; text-align: center; }
}

/* =========================================================
   Multi-page navigation (v6): burger menu + active state
   ========================================================= */

/* ссылки внутри header — без подчёркиваний, наследуют цвет */
.logo-circle { text-decoration: none; }
.site-title a { color: inherit; text-decoration: none; }
.site-title a:hover { color: var(--c-cyan-dark); }

/* navigation: блок ссылок и тогглер */
.nav-inner { position: relative; align-items: center; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.site-nav a.active {
  background: var(--c-cyan-soft);
  color: var(--c-pink);
}

/* бургер: скрыт на десктопе */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px 10px;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 3px;
  background: var(--c-cyan-dark);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 760px) {
  /* На мобиле панель навигации становится невидимой — остаётся только бургер.
     Фон и тень возвращаются обратно, когда меню открыто. */
  .site-nav {
    background: transparent;
    box-shadow: none;
  }
  .site-nav:has(.nav-links.open) {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }
  .nav-inner {
    padding: 4px 12px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    min-height: 0;
  }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    padding: 8px 12px 12px;
    gap: 2px;
    z-index: 50;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 14px;
    width: 100%;
  }
}

/* отступы для страниц-разделов (без hero) */
.page-pets,
.page-news,
.page-help,
.page-donate,
.page-contacts,
.home-about {
  padding-top: 40px;
}

@media (max-width: 700px) {
  .page-pets,
  .page-news,
  .page-help,
  .page-donate,
  .page-contacts,
  .home-about {
    padding-top: 24px;
  }
}

/* =========================================================
   Сборы и благодарность за донаты (v8) — стиль сайта
   ========================================================= */

.fundraisers { padding: 50px 0 20px; }

.fundraisers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 10px;
}

.fundraisers-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px;
  color: var(--c-muted);
}

/* Карточка сбора — в стиле .info-card и .help-card */
.fundraiser-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 7px solid var(--c-pink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.fundraiser-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
/* Чередование розовый ↔ бирюзовый */
.fundraisers-grid > .fundraiser-card:nth-child(even) {
  border-top-color: var(--c-cyan-mid);
}

.fundraiser-card .fr-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--c-cyan-soft) center / cover no-repeat;
}

.fundraiser-card .fr-title {
  padding: 16px 20px 6px;
  margin: 0;
  font-size: 20px;
  color: var(--c-pink);
  text-align: center;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.fundraisers-grid > .fundraiser-card:nth-child(even) .fr-title {
  color: var(--c-cyan-dark);
}

.fundraiser-card .fr-body {
  padding: 0 20px 16px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* Прижимаем кнопку ко дну, чтобы карточки одной высоты */
.fundraiser-card .fr-progress-wrap { margin-top: auto; }

.fundraiser-card .fr-progress-wrap {
  padding: 6px 20px 4px;
}
.fundraiser-card .fr-progress-bar {
  height: 12px;
  border-radius: 8px;
  background: var(--c-cyan-soft);
  border: 1px solid #e8eef0;
  position: relative;
  overflow: hidden;
}
.fundraiser-card .fr-progress-fill {
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--c-pink), var(--c-cyan));
  transition: width 0.6s ease;
}

.fundraiser-card .fr-numbers {
  display: flex;
  justify-content: space-between;
  padding: 8px 20px 14px;
  font-size: 13px;
}
.fundraiser-card .fr-collected {
  color: var(--c-pink);
  font-weight: 700;
}
.fundraiser-card .fr-target {
  color: var(--c-cyan-dark);
  font-weight: 600;
}

.fundraiser-card .fr-action {
  padding: 0 20px 20px;
}

/* Кнопка — стандарт сайта */
.fundraiser-card .fr-btn {
  display: inline-block;
  width: 100%;
  padding: 10px 16px;
  border-radius: 25px;
  background: linear-gradient(135deg, var(--c-pink), var(--c-pink-light));
  color: white;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(233, 30, 140, 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.fundraiser-card .fr-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(233, 30, 140, 0.35);
}
.fundraisers-grid > .fundraiser-card:nth-child(even) .fr-btn {
  background: linear-gradient(135deg, var(--c-cyan-dark), var(--c-cyan-light));
  box-shadow: 0 3px 8px rgba(0, 151, 167, 0.25);
}
.fundraisers-grid > .fundraiser-card:nth-child(even) .fr-btn:hover {
  box-shadow: 0 5px 12px rgba(0, 151, 167, 0.35);
}

/* ===== Блок благодарности ===== */

.donations {
  padding: 40px 0 60px;
  background: linear-gradient(135deg, var(--c-pink-soft) 0%, var(--c-cyan-soft) 100%);
}

.donations-table {
  width: 100%;
  max-width: 760px;
  margin: 20px auto 0;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.donations-loading,
.donations-empty {
  text-align: center;
  padding: 30px;
  color: var(--c-muted);
}

.donation-row {
  display: grid;
  grid-template-columns: 1.2fr auto 1.4fr;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--c-cyan-soft);
  font-size: 15px;
  align-items: center;
  transition: background 0.15s;
}
.donation-row:last-child { border-bottom: none; }
.donation-row:hover { background: rgba(248, 235, 244, 0.5); }

.donation-row .d-name {
  text-align: left;
  font-weight: 600;
  color: var(--c-text);
}
.donation-row .d-amount {
  color: var(--c-pink);
  font-weight: 700;
  white-space: nowrap;
  font-size: 16px;
}
.donation-row .d-target {
  text-align: right;
  color: var(--c-cyan-dark);
  font-size: 13px;
  font-style: italic;
}

.donations-actions {
  text-align: center;
  padding-top: 24px;
}

/* ===== Адаптив для сборов и благодарности ===== */

@media (max-width: 700px) {
  .fundraisers { padding: 30px 0 10px; }
  .donations { padding: 30px 0 40px; }
  .fundraisers-grid { gap: 18px; }
  .fundraiser-card .fr-title { font-size: 18px; padding: 14px 16px 6px; }
  .fundraiser-card .fr-body { padding: 0 16px 12px; font-size: 13px; }
  .fundraiser-card .fr-progress-wrap,
  .fundraiser-card .fr-numbers,
  .fundraiser-card .fr-action { padding-left: 16px; padding-right: 16px; }

  .donation-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 4px 12px;
    padding: 12px 16px;
  }
  .donation-row .d-name { grid-column: 1; grid-row: 1; }
  .donation-row .d-amount { grid-column: 2; grid-row: 1; }
  .donation-row .d-target {
    grid-column: 1 / -1; grid-row: 2;
    text-align: left; font-size: 12px;
  }
}

/* =========================================================
   Платёжная модалка / страницы success/fail / legal (v11)
   ========================================================= */

/* Модалка оплаты */
.payment-modal {
  position: fixed; inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}
.payment-modal.open { display: flex; }
.payment-modal .pm-overlay {
  position: absolute; inset: 0;
  background: rgba(38, 50, 56, 0.55);
}
.payment-modal .pm-card {
  position: relative;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 28px 28px 24px;
  border-top: 7px solid var(--c-pink);
}
.payment-modal .pm-close {
  position: absolute; top: 10px; right: 12px;
  width: 32px; height: 32px;
  border: 0; background: transparent;
  font-size: 28px; line-height: 1; color: var(--c-muted);
  cursor: pointer;
}
.payment-modal .pm-close:hover { color: var(--c-pink); }
.payment-modal .pm-title {
  color: var(--c-pink);
  text-align: center;
  margin: 0 0 4px;
  font-size: 22px;
}
.payment-modal .pm-target {
  text-align: center;
  color: var(--c-cyan-dark);
  margin: 0 0 14px;
  font-size: 14px;
  font-style: italic;
}
.payment-modal .pm-tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 14px;
  background: var(--c-cyan-soft);
  border-radius: 25px;
  padding: 4px;
}
.payment-modal .pm-tab {
  flex: 1;
  padding: 9px 14px;
  border-radius: 20px;
  border: 0;
  background: transparent;
  font-weight: 700;
  font-size: 14px;
  color: var(--c-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}
.payment-modal .pm-tab.active {
  background: linear-gradient(135deg, var(--c-cyan-dark), var(--c-cyan-light));
  color: white;
  box-shadow: 0 2px 6px rgba(0, 151, 167, 0.25);
}
.payment-modal .pm-thanks {
  font-size: 13px;
  color: var(--c-muted);
  margin: 0 0 16px;
  padding: 10px 12px;
  background: linear-gradient(135deg, var(--c-pink-soft), var(--c-cyan-soft));
  border-radius: 10px;
  line-height: 1.4;
}
.payment-modal .pm-field {
  margin-bottom: 14px;
}
.payment-modal .pm-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-cyan-dark);
  margin-bottom: 4px;
}
.payment-modal .pm-field input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--c-cyan-soft);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--c-text);
  background: white;
  transition: border-color 0.15s;
}
.payment-modal .pm-field input:focus {
  outline: none;
  border-color: var(--c-cyan);
}
.payment-modal .pm-field input::placeholder {
  color: #b8c5cc;
}
.payment-modal .pm-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.payment-modal .pm-q {
  flex: 1 1 calc(33.333% - 6px);
  padding: 7px 8px;
  border: 1.5px solid var(--c-pink-light);
  border-radius: 14px;
  background: white;
  color: var(--c-pink);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}
.payment-modal .pm-q:hover {
  background: var(--c-pink-soft);
}
.payment-modal .pm-q.active {
  background: var(--c-pink);
  color: white;
  border-color: var(--c-pink);
}
.payment-modal .pm-hint {
  font-size: 12px;
  color: var(--c-muted);
  margin-top: 4px;
}
.payment-modal .pm-email-required {
  color: var(--c-pink);
}
.payment-modal .pm-err {
  color: var(--c-pink);
  font-size: 13px;
  min-height: 18px;
  margin-bottom: 8px;
}
.payment-modal .pm-submit {
  width: 100%;
  padding: 12px 18px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 25px;
}
.payment-modal .pm-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.payment-modal .pm-legal {
  font-size: 11px;
  color: var(--c-muted);
  margin: 14px 0 0;
  text-align: center;
  line-height: 1.5;
}
.payment-modal .pm-legal a {
  color: var(--c-pink);
  text-decoration: underline;
}

/* Адаптив модалки */
@media (max-width: 480px) {
  .payment-modal .pm-card { padding: 22px 18px 18px; }
  .payment-modal .pm-title { font-size: 19px; }
  .payment-modal .pm-q { font-size: 12px; padding: 6px 4px; }
}

/* Страницы donate-success / donate-fail */
.donate-result {
  padding: 40px 0 60px;
}
.donate-result .result-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 7px solid var(--c-pink);
  max-width: 600px;
  margin: 0 auto;
  padding: 36px 30px;
  text-align: center;
}
.donate-result-fail .result-card {
  border-top-color: var(--c-cyan-mid);
}
.donate-result .result-icon {
  width: 80px; height: 80px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-pink), var(--c-pink-light));
  color: white;
  font-size: 40px;
  line-height: 80px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(233, 30, 140, 0.25);
}
.donate-result .result-icon-warn {
  background: linear-gradient(135deg, var(--c-cyan-dark), var(--c-cyan-light));
  box-shadow: 0 6px 18px rgba(0, 151, 167, 0.25);
}
.donate-result h2 {
  color: var(--c-pink);
  margin: 0 0 16px;
  font-size: 28px;
}
.donate-result-fail h2 {
  color: var(--c-cyan-dark);
}
.donate-result .result-name {
  color: var(--c-cyan-dark);
  font-size: 17px;
  margin: 0 0 10px;
}
.donate-result .result-amount {
  color: var(--c-text);
  font-size: 15px;
  margin: 0 0 14px;
}
.donate-result .result-amount strong {
  color: var(--c-pink);
  font-size: 18px;
}
.donate-result .result-text {
  color: var(--c-muted);
  margin: 0 0 14px;
  line-height: 1.5;
  font-size: 15px;
}
.donate-result .result-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* Юридические страницы */
.legal-page {
  padding: 40px 0 60px;
}
.legal-page .legal-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 36px;
  max-width: 900px;
  margin: 0 auto;
  color: var(--c-text);
  line-height: 1.6;
  font-size: 14.5px;
}
.legal-page .legal-card br + br {
  /* пустые строки между параграфами */
  line-height: 0.6;
}
@media (max-width: 700px) {
  .legal-page .legal-card { padding: 24px 18px; font-size: 14px; }
  .donate-result .result-card { padding: 28px 22px; }
}

/* =========================================================
   CTA-баннер «Помочь приюту» (v13)
   ========================================================= */

.help-cta {
  padding: 30px 0 10px;
}

.help-cta-card {
  background: linear-gradient(135deg, var(--c-pink-soft) 0%, var(--c-cyan-soft) 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  border: 1px solid #f1e8f1;
  position: relative;
  overflow: hidden;
}

.help-cta-card::before {
  /* Декоративный круг-фон */
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 30, 140, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.help-cta-icon {
  width: 110px; height: 110px;
  border-radius: 50%;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 14px rgba(233, 30, 140, 0.18);
  border: 3px solid white;
  flex-shrink: 0;
}
.help-cta-icon img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.help-cta-text h2 {
  color: var(--c-pink);
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.2;
}

.help-cta-text p {
  color: var(--c-text);
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.help-cta-btn {
  padding: 16px 38px !important;
  font-size: 17px !important;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 30px !important;
  box-shadow: 0 6px 18px rgba(233, 30, 140, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}

.help-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(233, 30, 140, 0.4);
}

@media (max-width: 760px) {
  .help-cta-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px 22px;
    gap: 14px;
  }
  .help-cta-icon {
    margin: 0 auto;
    width: 84px; height: 84px;
  }
  .help-cta-text h2 { font-size: 22px; }
  .help-cta-text p { font-size: 14px; }
  .help-cta-btn {
    width: 100%;
    padding: 14px 24px !important;
    font-size: 16px !important;
  }
}

/* =========================================================
   Фоновые фото для карточек «Что мы делаем» (v18)
   ========================================================= */

.info-card.info-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* фон-картинка прячется под цветную плёнку, чтобы текст оставался читаемым */
}

/* розовая плёнка над фото — для «Принимаем» и «Стерилизуем» */
.info-card.info-bg-accept {
  background-image:
    linear-gradient(rgba(252, 228, 236, 0.55), rgba(252, 228, 236, 0.68)),
    url('/assets/about-bg/accept.jpg');
}
.info-card.info-bg-sterilize {
  background-image:
    linear-gradient(rgba(252, 228, 236, 0.55), rgba(252, 228, 236, 0.68)),
    url('/assets/about-bg/sterilize.jpg');
}

/* бирюзовая плёнка над фото — для «Лечим» и «Социализируем» */
.info-card.info-bg-treat {
  background-image:
    linear-gradient(rgba(224, 247, 250, 0.55), rgba(224, 247, 250, 0.68)),
    url('/assets/about-bg/treat.jpg');
}
.info-card.info-bg-socialize {
  background-image:
    linear-gradient(rgba(224, 247, 250, 0.55), rgba(224, 247, 250, 0.68)),
    url('/assets/about-bg/socialize.jpg');
}

/* Фото показываем полностью. У каждой строки текста — своя «маркерная» подложка. */
/* Текст на фото — со светлой полупрозрачной тенью для читаемости */
.info-card.info-bg h3,
.info-card.info-bg .icon {
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9), 0 0 8px rgba(255, 255, 255, 0.6);
}
.info-card.info-bg p {
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85), 0 0 6px rgba(255, 255, 255, 0.5);
}

/* =========================================================
   Форма фильтров на странице питомцев (v28)
   ========================================================= */

.pets-filters-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  margin: 0 auto 26px;
  max-width: 1000px;
}

.pets-filters-form .ff-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 150px;
  min-width: 130px;
}

.pets-filters-form .ff-field > span {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-cyan-dark);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.pets-filters-form select {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid var(--c-cyan-soft);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--c-text);
  background: white;
  cursor: pointer;
  transition: border-color 0.15s;
}

.pets-filters-form select:focus {
  outline: none;
  border-color: var(--c-cyan);
}

.pets-filters-form .ff-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
}

.pets-filters-form .btn {
  padding: 10px 22px;
  border-radius: 22px;
  font-size: 14px;
}

.pets-filters-form .ff-reset {
  border: 0;
  background: transparent;
  color: var(--c-muted);
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  font-family: inherit;
}

.pets-filters-form .ff-reset:hover {
  color: var(--c-pink);
}

@media (max-width: 700px) {
  .pets-filters-form {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }
  .pets-filters-form .ff-field {
    flex: 1 1 100%;
    width: 100%;
  }
  .pets-filters-form .ff-actions {
    justify-content: space-between;
    margin-top: 4px;
  }
  .pets-filters-form .btn { flex: 1; }
}

/* =========================================================
   Бейдж "Не пристраивается" на карточке питомца (v29)
   ========================================================= */

.pet-photo-wrap { position: relative; }

.pet-badge-resident {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(96, 125, 139, 0.92);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 12px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  z-index: 2;
}

@media (max-width: 700px) {
  .pet-badge-resident {
    font-size: 10px;
    padding: 4px 8px;
    top: 6px;
    left: 6px;
  }
}

/* =========================================================
   Страница «Наши спонсоры» (v30)
   ========================================================= */

.sponsors { padding: 30px 0 40px; }

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.sponsor-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 7px solid var(--c-pink);
  padding: 28px 28px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: start;
  transition: transform 0.2s, box-shadow 0.2s;
}

.sponsor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.sponsors-grid > .sponsor-card:nth-child(even) {
  border-top-color: var(--c-cyan-mid);
}

.sponsor-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-cyan-soft);
  border-radius: 14px;
  padding: 12px;
  min-height: 110px;
}

.sponsor-logo img {
  max-width: 100%;
  max-height: 90px;
  object-fit: contain;
}

.sponsor-info h3 {
  color: var(--c-pink);
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.sponsors-grid > .sponsor-card:nth-child(even) .sponsor-info h3 {
  color: var(--c-cyan-dark);
}

.sponsor-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--c-pink-soft), var(--c-cyan-soft));
  color: var(--c-cyan-dark);
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 10px;
}

.sponsor-desc {
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 12px;
}

.sponsor-contacts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sponsor-contacts li {
  font-size: 13px;
  color: var(--c-text);
  padding: 3px 0;
  line-height: 1.4;
}

.sponsor-contacts li strong {
  color: var(--c-cyan-dark);
  margin-right: 4px;
}

.sponsors-footer {
  margin-top: 30px;
  text-align: center;
  background: linear-gradient(135deg, var(--c-pink-soft), var(--c-cyan-soft));
  border-radius: var(--radius);
  padding: 24px 30px;
  color: var(--c-text);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .sponsors-grid { grid-template-columns: 1fr; }
  .sponsor-card {
    grid-template-columns: 1fr;
    padding: 22px 18px;
    gap: 16px;
  }
  .sponsor-logo {
    min-height: 90px;
    max-width: 200px;
    margin: 0 auto;
  }
  .sponsor-info h3 { font-size: 16px; }
  .sponsor-contacts li { font-size: 12px; }
  .sponsors-footer { padding: 18px 16px; font-size: 14px; }
}

/* =========================================================
   Блок патронажа БФ Наследие Эдема + страницы документов (v31)
   ========================================================= */

.patronage {
  padding: 0 0 60px;
}

.patronage-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 7px solid var(--c-cyan-mid);
  padding: 32px 36px 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.patronage-header { text-align: center; margin-bottom: 18px; }
.patronage-eyebrow {
  color: var(--c-pink);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}
.patronage-header h2 {
  color: var(--c-cyan-dark);
  font-size: 26px;
  margin: 6px 0 0;
  line-height: 1.25;
}
.patronage-header h2 span {
  font-size: 18px;
  font-weight: 600;
  color: var(--c-pink);
  display: inline-block;
  margin-top: 4px;
}

.patronage-intro {
  text-align: center;
  color: var(--c-muted);
  font-size: 14px;
  margin: 0 0 24px;
  line-height: 1.5;
}

.patronage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.patronage-block {
  background: linear-gradient(135deg, var(--c-pink-soft) 0%, var(--c-cyan-soft) 100%);
  border-radius: 14px;
  padding: 18px 20px;
}

.patronage-block h3 {
  color: var(--c-cyan-dark);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 10px;
}

.patronage-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.patronage-list li {
  font-size: 13px;
  color: var(--c-text);
  padding: 4px 0;
  line-height: 1.5;
  word-break: break-word;
}
.patronage-list li strong {
  color: var(--c-pink);
  margin-right: 4px;
}
.patronage-list li a {
  color: var(--c-cyan-dark);
  text-decoration: underline;
}
.patronage-list li a:hover { color: var(--c-pink); }

.patronage-docs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--c-cyan-soft);
  margin-top: 18px;
}

.patronage-docs .btn {
  padding: 10px 22px;
  border-radius: 22px;
  font-size: 14px;
  min-width: 140px;
  text-align: center;
}

@media (max-width: 700px) {
  .patronage-card { padding: 24px 18px; }
  .patronage-header h2 { font-size: 22px; }
  .patronage-header h2 span { font-size: 15px; }
  .patronage-block { padding: 14px 16px; }
  .patronage-docs .btn { flex: 1; min-width: 0; }
}

/* Страницы документов фонда */
.fund-docs-page .legal-card h2 { color: var(--c-cyan-dark); margin: 0 0 12px; }
.fund-docs-page .legal-card h3 { color: var(--c-pink); margin: 24px 0 10px; }

.fund-docs-page .back-link {
  text-align: center;
  margin: 12px 0 18px;
  font-size: 14px;
}
.fund-docs-page .back-link a { color: var(--c-cyan-dark); }

.docs-pages {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  margin: 12px 0;
}

.docs-pages img {
  max-width: 100%;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.docs-files {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}
.docs-files li { padding: 6px 0; }
.docs-files a {
  color: var(--c-cyan-dark);
  text-decoration: underline;
  font-size: 15px;
}

.programs-intro {
  text-align: center;
  color: var(--c-muted);
  margin-bottom: 20px;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.program-card {
  background: white;
  border: 1px solid var(--c-cyan-soft);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.program-image {
  width: 100%;
  max-width: 200px;
  height: 130px;
  object-fit: contain;
  margin-bottom: 12px;
}

.program-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--c-pink);
}

.program-card p {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.5;
  flex: 1;
  margin: 0 0 14px;
}

.program-card .btn {
  padding: 8px 18px;
  border-radius: 18px;
  font-size: 13px;
}

/* =========================================================
   Виджеты соцсетей на /contacts (v32)
   ========================================================= */

.contact-hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--c-muted);
  font-style: italic;
}

.socials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}

.social-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
  min-height: 300px;
}

.social-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Баннер-заглушка: фон-картинка/градиент + контент поверх */
.sc-banner {
  position: relative;
  display: block;
  width: 100%;
  height: 300px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.sc-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.sc-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 18px;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 100%);
  color: white;
}

.sc-icon {
  position: absolute;
  top: 14px; left: 14px;
  width: 40px; height: 40px;
  object-fit: contain;
  background: white;
  border-radius: 50%;
  padding: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.sc-text h3 {
  margin: 0 0 4px;
  font-size: 18px;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.sc-text p {
  margin: 0 0 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.sc-btn {
  display: inline-block;
  align-self: flex-start;
  background: linear-gradient(135deg, var(--c-pink), var(--c-pink-light));
  color: white !important;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  width: max-content;
}

/* Когда грузится виджет — скрываем баннер, показываем виджет на том же месте */
.social-card.sc-has-widget .sc-banner { display: none; }
.social-card.sc-has-widget { min-height: 0; }

/* Контейнер виджета — фиксированная высота, одинаковая у всех */
.sc-widget {
  height: 300px;
  overflow: hidden;
  background: var(--c-cyan-soft);
}
.sc-widget iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
/* VK и OK сами вставляют div + iframe — растянем на всю ширину контейнера */
#vk-widget,
#vk-widget > div,
#vk-widget iframe,
#ok-widget,
#ok-widget > iframe,
.sc-widget iframe[id^="__okGroup"],
.sc-widget iframe[id^="vkwidget"] {
  width: 100% !important;
}
#vk-widget { height: 300px; }

#ok-widget iframe[id^="__okGroup"] { height: 300px !important; min-width: 0 !important; }

@media (max-width: 760px) {
  .socials-grid { grid-template-columns: 1fr; }
  .sc-widget { height: 400px; }
  
}
