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

:root {
  --page-background: #fff9fb;
  --pattern-tile-size: 390px;
}

body {
  font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: var(--page-background);
  background-image:
    url("/images/patterns/site-cycle.svg"),
    linear-gradient(rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.76));
  background-position: 0 0, 0 0;
  background-repeat: repeat, repeat;
  background-size:
    var(--pattern-tile-size) var(--pattern-tile-size),
    auto;
}

body.pattern-hearts {
  --page-background: #fff8fa;
}

body.pattern-paws {
  --page-background: #fff9fb;
}

body.pattern-bones {
  --page-background: #fff8fb;
}

body.pattern-care {
  --page-background: #fff8fb;
}

body.pattern-shelter {
  --page-background: #fff9fb;
}

/* Шапка сайта */
.header {
  background-color: #ffffff;
  border-bottom: 2px solid #e60000;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #e60000;
}

.logo-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin-right: 8px;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.desktop-nav a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  margin-left: 20px;
  transition: color 0.3s;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: #e60000;
}

/* Бургер меню */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.burger-btn span {
  width: 100%;
  height: 3px;
  background-color: #e60000;
  transition: all 0.3s ease;
}

.burger-btn.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.burger-btn.open span:nth-child(2) {
  opacity: 0;
}

.burger-btn.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-bottom: 2px solid #e60000;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 999;
  padding: 20px;
}

.mobile-menu.open {
  display: block;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-nav a {
  color: #333;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  padding-bottom: 5px;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-nav a:hover {
  color: #e60000;
}

/* Основной контент */
.main-content {
  min-height: calc(100vh - 160px);
}

/* Главный баннер (Hero) */
.hero-section {
  background: linear-gradient(135deg, #e60000 0%, #a30000 100%);
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: 124px;
  height: 124px;
  object-fit: contain;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 48px;
  margin-bottom: 24px;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 22px;
  margin-bottom: 12px;
  font-weight: 300;
}

/* Кнопки каталогов */
.catalog-buttons {
  display: flex;
  max-width: 900px;
  margin: 40px auto;
  gap: 30px;
  padding: 0 20px;
}

.catalog-card {
  flex: 1;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.catalog-card-img {
  height: 250px;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s;
}

.catalog-card:hover .catalog-card-img {
  transform: scale(1.05);
}

.catalog-link-btn {
  display: block;
  text-align: center;
  background-color: #e60000;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  padding: 15px;
  font-size: 18px;
  transition: background-color 0.3s;
}

.catalog-link-btn:hover {
  background-color: #b30000;
}

/* Секция Нужды/Сборы */
.home-help {
  text-align: center;
  padding: 40px 20px;
  background-color: #fcfcfc;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.home-help h2 {
  margin-bottom: 20px;
  font-size: 28px;
  color: #333;
}

.home-help-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.action-btn {
  display: inline-block;
  background-color: #ffffff;
  color: #e60000;
  border: 2px solid #e60000;
  padding: 12px 30px;
  font-size: 18px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}

.action-btn:hover {
  background-color: #e60000;
  color: #ffffff;
}

/* Форма волонтера */
.volunteer-section {
  padding: 60px 20px;
  background-color: #fff;
}

.volunteer-container {
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.volunteer-container h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #e60000;
}

.volunteer-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-weight: 500;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #e60000;
  outline: none;
}

.logo-variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-group .logo-variant-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
}

.form-group .logo-variant-option input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  padding: 0;
}

.submit-btn {
  background-color: #e60000;
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 10px;
}

.submit-btn:hover {
  background-color: #b30000;
}

.form-status {
  text-align: center;
  font-weight: 500;
  margin-top: 10px;
}

.form-status.success {
  color: green;
}

.form-status.error {
  color: red;
}

/* Слайдер картинок */
.slider-container {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.slider-slides {
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out;
}

.slide.active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 3px;
  transition: background-color 0.3s;
}

.slider-btn:hover {
  background-color: rgba(230, 0, 0, 0.8);
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

/* Каталог животных */
.catalog-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.catalog-header {
  text-align: center;
  margin-bottom: 40px;
}

.catalog-header h1 {
  font-size: 32px;
  color: #e60000;
  margin-bottom: 10px;
}

.pets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.pet-card {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  background: #fff;
  display: flex;
  flex-direction: column;
}

.pet-gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.adopted-gallery {
  position: relative;
}

.adopted-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 4px;
  background: #e60000;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pet-image-placeholder {
  width: 100%;
  height: 250px;
  background-color: #eaeaea;
  object-fit: cover;
}

.pet-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pet-info h3 {
  font-size: 22px;
  color: #333;
  margin-bottom: 5px;
}

.pet-desc {
  font-size: 14px;
  color: #666;
  margin-top: 10px;
  line-height: 1.4;
}

.pet-story {
  margin-top: 10px;
  padding: 10px 12px;
  background: #fff8f5;
  border-left: 3px solid #ff7a59;
  border-radius: 4px;
  font-size: 13px;
  color: #444;
  line-height: 1.45;
}

.pet-story strong {
  display: block;
  color: #cc4422;
  margin-bottom: 4px;
  font-size: 13px;
}

.pet-story p {
  margin: 0;
  white-space: pre-line;
}

/* Раздел Потеряшки */
.lost-empty {
  text-align: center;
  color: #66585a;
  font-size: 18px;
}

.lost-pet-card .pet-info p {
  margin: 0;
  font-size: 15px;
  color: #444;
  overflow-wrap: anywhere;
}

.lost-pet-card .pet-info strong {
  color: var(--accent, #e60000);
}

.lost-pet-photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  cursor: zoom-in;
}

/* Раздел О сообществе */
.about-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
}

.about-section h1 {
  color: #e60000;
  text-align: center;
  margin-bottom: 30px;
}

.accent-text {
  font-size: 20px;
  font-weight: bold;
  color: #e60000;
  margin-bottom: 20px;
  text-align: center;
}

.about-intro p {
  margin-bottom: 15px;
  font-size: 16px;
}

.warning-box {
  background-color: #fff0f0;
  border-left: 4px solid #e60000;
  padding: 15px;
  margin: 25px 0;
  font-weight: 500;
}

/* Команда */
.team-section {
  margin-top: 50px;
}

.team-section h2 {
  color: #333;
  text-align: center;
  margin-bottom: 20px;
}

.team-intro {
  text-align: center;
  margin-bottom: 30px;
  color: #666;
}

.team-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.team-member {
  background-color: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  width: 130px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.member-avatar {
  font-size: 32px;
  margin-bottom: 10px;
}

.team-member h3 {
  font-size: 16px;
  color: #333;
}

/* Страница Как помочь и Сборы */
.help-page-section {
  padding: clamp(2.5rem, 5vw, 4.5rem) 1.25rem;
}

.help-container,
.contacts-container {
  max-width: 76rem;
  margin-inline: auto;
}

.inner-page-header {
  max-width: 48rem;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.inner-page-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inner-page-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.12;
  text-wrap: balance;
}

.inner-page-header p {
  max-width: 42rem;
  margin: 1rem auto 0;
  color: #66585a;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.help-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}

.help-card {
  min-inline-size: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  background: var(--surface);
  box-shadow: 0 1rem 2.5rem rgba(94, 40, 46, 0.1);
  text-align: center;
}

.requisites-box {
  background: linear-gradient(145deg, #fffdfc 0%, #fff1f3 100%);
}

.help-card-icon,
.contact-icon {
  inline-size: 5.5rem;
  block-size: 5.5rem;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.help-card-icon svg,
.contact-icon svg {
  inline-size: 5rem;
  block-size: 5rem;
}

.help-card h2 {
  margin-bottom: 0.75rem;
  color: var(--ink);
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  line-height: 1.2;
}

.help-card > p {
  color: #66585a;
}

.help-needs-list {
  inline-size: min(100%, 27rem);
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
  text-align: start;
}

.help-needs-list li {
  position: relative;
  padding-inline-start: 2rem;
}

.help-needs-list li::before {
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.15rem;
  inline-size: 1.25rem;
  block-size: 1.25rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  content: "✓";
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.help-card-action {
  min-block-size: 3.25rem;
  inline-size: min(100%, 27rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0.75rem 1.25rem;
  border-radius: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.help-card-action-secondary {
  border: 1px solid var(--accent);
  color: var(--accent);
}

.help-card-action-secondary:hover {
  background: var(--accent);
  color: #fff;
}

.payment-card {
  inline-size: 100%;
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-inline-start: 0.25rem solid var(--accent);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 0.65rem 1.5rem rgba(94, 40, 46, 0.09);
  text-align: start;
}

.payment-row {
  min-inline-size: 0;
}

.payment-row dt {
  margin-bottom: 0.2rem;
  color: #756769;
  font-size: 0.875rem;
}

.payment-row dd {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
}

.highlight {
  color: var(--accent) !important;
  font-size: clamp(1.05rem, 2vw, 1.3rem) !important;
}

.urgent-section {
  margin-top: 50px;
}

.urgent-section h2 {
  text-align: center;
  color: #e60000;
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
}

.urgent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.urgent-card {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  background: #fff;
  display: flex;
  flex-direction: column;
}

.urgent-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.urgent-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-btn {
  background-color: #e60000;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.history-btn:hover {
  background-color: #b30000;
}

/* Модальные окна */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
}

.modal.open {
  display: flex;
}

.modal-content {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  max-height: 90vh;
  overflow-y: auto;
}

.close-btn {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  transition: color 0.3s;
}

.close-btn:hover {
  color: #e60000;
}

.modal-img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 20px;
}

.modal-body-content p {
  margin-bottom: 10px;
}

/* Контакты */
.contacts-section {
  padding: clamp(2.5rem, 5vw, 4.5rem) 1.25rem;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}

.contacts-announcement {
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid #f2c4cd;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #fff1f3, #fffdfc);
  box-shadow: 0 0.75rem 2rem rgba(112, 17, 35, 0.08);
  color: var(--accent-dark);
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.contact-card {
  min-inline-size: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  background: var(--surface);
  box-shadow: 0 1rem 2.5rem rgba(94, 40, 46, 0.1);
  text-align: center;
}

.contact-card-social {
  background: linear-gradient(145deg, #fffdfc 0%, #fff1f3 100%);
}

.contact-card h2 {
  margin-bottom: 0.75rem;
  color: var(--ink);
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  line-height: 1.2;
}

.contact-card > p {
  max-width: 26rem;
  color: #66585a;
}

.contact-card-phone {
  padding-inline: clamp(1rem, 2.5vw, 1.75rem);
}

.contact-groups {
  inline-size: 100%;
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.contact-group {
  display: grid;
  gap: 0.35rem;
}

.contact-group-title {
  color: var(--ink);
  font-weight: 700;
}

.contact-group-line {
  color: #66585a;
  overflow-wrap: anywhere;
}

.contact-phone {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

.social-links {
  inline-size: min(100%, 27rem);
  display: grid;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.social-link {
  min-block-size: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--accent);
  border-radius: 0.875rem;
  text-decoration: none;
  font-weight: 700;
}

.vk-btn {
  background: #fff;
  color: var(--accent);
}

.tg-btn {
  background: var(--accent);
  color: #fff;
}

.vk-btn:hover {
  background: var(--surface-soft);
}

.tg-btn:hover {
  background: var(--accent-dark);
}

.instagram-btn {
  background: #fff;
  color: #9b3b70;
}

.ok-btn {
  background: #f58220;
  border-color: #f58220;
  color: #fff;
}

.instagram-btn:hover {
  background: #fff1f7;
}

.ok-btn:hover {
  background: #dc6c0f;
}

.contacts-help {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--ink);
  text-align: center;
}

.contacts-help > span {
  color: var(--accent);
  font-size: 2.25rem;
  line-height: 1;
}

.contacts-help a {
  min-block-size: 2.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.contacts-help a:hover {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 700px) {
  .help-page-section,
  .contacts-section {
    padding: 2.25rem 1rem;
  }

  .help-options,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .help-card,
  .contact-card {
    padding: 1.75rem 1.25rem;
    border-radius: 1.5rem;
  }

  .contacts-help {
    flex-direction: column;
  }

  .contacts-help p {
    margin-top: -0.5rem;
  }

  .contacts-help a {
    inline-size: 100%;
  }
}

/* Футер */
.footer {
  background-color: #333;
  color: #ccc;
  padding: 40px 20px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

/* Страница Входа в Админку */
.login-section {
  padding: 80px 20px;
  background-color: #f9f9f9;
}

.login-container {
  max-width: 400px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.login-container h2 {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
}

.error-message {
  background-color: #fff0f0;
  border: 1px solid #e60000;
  color: #e60000;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
  text-align: center;
}

.login-btn {
  width: 100%;
  background-color: #e60000;
  color: white;
  border: none;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.login-btn:hover {
  background-color: #b30000;
}

/* Панель управления */
.admin-dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #e60000;
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.logout-btn {
  background-color: #333;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
}

.logout-btn:hover {
  background-color: #e60000;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.tab-btn {
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.3s;
}

.tab-btn.active, .tab-btn:hover {
  background-color: #e60000;
  color: white;
  border-color: #e60000;
}

.tab-content {
  display: none;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.02);
}

.tab-content.active {
  display: block;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 800px;
}

.form-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.form-row .form-group {
  flex: 1;
  min-width: 200px;
}

.social-settings-row .form-group {
  flex: 0 1 calc(50% - 8px);
  min-width: min(100%, 280px);
}

.admin-submit-btn {
  background-color: #e60000;
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  align-self: flex-start;
  transition: background-color 0.3s;
}

.admin-submit-btn:hover {
  background-color: #b30000;
}

.material-needs-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.material-need-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.material-need-input {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
}

.urgent-need-input {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
}

.remove-need-btn {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  color: #e60000;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s;
}

.remove-need-btn:hover {
  background-color: #ffecec;
}

.add-need-btn {
  border: 1px dashed #e60000;
  border-radius: 4px;
  background-color: #fff;
  color: #e60000;
  padding: 8px 16px;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.add-need-btn:hover {
  background-color: #ffecec;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.admin-table th, .admin-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.admin-table th {
  background-color: #f4f4f4;
  font-weight: bold;
}

.table-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.thumb-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.thumb-lbl {
  font-size: 12px;
  color: #666;
}

.pets-filter-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 15px 0 5px;
}

.pet-search-input {
  flex: 1;
  min-width: 220px;
  max-width: 400px;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
}

.pet-search-input:focus {
  outline: none;
  border-color: #31708f;
}

.pets-filter-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #444;
  cursor: pointer;
  user-select: none;
}

.pets-filter-toggle input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
}

.status-waiting {
  background-color: #fff3cd;
  color: #856404;
}

.status-adopted {
  background-color: #d4edda;
  color: #155724;
}

.delete-btn {
  background-color: #d9534f;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.delete-btn:hover {
  background-color: #c9302c;
}

.table-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.edit-btn {
  background-color: #31708f;
  color: #fff;
  text-decoration: none;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  display: inline-block;
  line-height: normal;
}

.edit-btn:hover {
  background-color: #245269;
  color: #fff;
}

.admin-edit-page {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.back-link {
  display: inline-block;
  margin-bottom: 10px;
  color: #666;
  text-decoration: none;
  font-size: 14px;
}

.back-link:hover {
  color: #333;
  text-decoration: underline;
}

.current-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
  margin-top: 10px;
}

.photo-item {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: grab;
  touch-action: none;
}

.photo-item:active {
  cursor: grabbing;
}

.photo-order-actions {
  display: flex;
  gap: 8px;
}

.photo-order-actions button {
  min-width: 36px;
  min-height: 36px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.photo-main-label {
  color: #256b3a;
  font-size: 12px;
  font-weight: 700;
}

.photo-main-label[hidden] {
  display: none;
}

.edit-photo-thumb {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 4px;
}

.photo-checkbox-label {
  font-size: 12px;
  color: #444;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.form-hint {
  font-size: 13px;
  color: #777;
  margin-top: 4px;
  display: block;
}

.edit-actions-row {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 25px;
}

.cancel-link-btn {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #555;
  text-decoration: none;
  font-size: 15px;
}

.cancel-link-btn:hover {
  background: #f0f0f0;
  color: #333;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .burger-btn {
    display: flex;
  }

  .hero-logo {
    width: 96px;
    height: 96px;
    margin-bottom: 20px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .catalog-buttons {
    flex-direction: column;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

/* Домашний стиль главной страницы и навигации */
:root {
  --accent: #c8102e;
  --accent-dark: #a30c25;
  --surface: #fffdfc;
  --surface-soft: #fff5f5;
  --ink: #342b2b;
  --line: #efd7d9;
}

.header {
  background: #fffdfc;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(80, 30, 35, 0.08);
  backdrop-filter: blur(12px);
}

.header-container {
  min-height: 5rem;
  max-width: 76rem;
  padding: 0.75rem 1.25rem;
}

.logo-link {
  color: var(--accent);
  gap: 0.625rem;
}

.logo-icon {
  width: calc(2.75rem * var(--logo-scale, 1));
  height: calc(2.75rem * var(--logo-scale, 1));
  margin: 0;
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(112, 17, 35, 0.2);
}

.logo-scale-control input[type="range"] {
  width: 100%;
}

.logo-text {
  font-size: 1.125rem;
  letter-spacing: 0;
  text-transform: none;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.desktop-nav a {
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 0.625rem;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--accent);
  background: var(--surface-soft);
}

.burger-btn {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.625rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
}

.burger-btn span {
  height: 0.1875rem;
  border-radius: 1rem;
  background-color: var(--accent);
}

.mobile-menu {
  top: 5rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-inline: 0;
  box-shadow: 0 12px 26px rgba(75, 28, 33, 0.14);
}

.mobile-nav {
  gap: 0.5rem;
}

.mobile-nav a {
  min-block-size: 3.25rem;
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.875rem;
  background: var(--surface-soft);
  color: var(--ink);
}

.mobile-nav a:hover {
  background: #fbe9eb;
  color: var(--accent);
}

.hero-section {
  max-width: 76rem;
  margin: clamp(1.5rem, 4vw, 3.5rem) auto 0;
  padding: 0 1.25rem;
  background: transparent;
  color: var(--ink);
  text-align: start;
}

.hero-content {
  min-height: 27rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.9fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1.75rem, 5vw, 4rem);
  border: 1px solid rgba(239, 215, 217, 0.85);
  border-radius: 2rem;
  background: linear-gradient(135deg, #fffdfc 0%, #fff4f4 100%);
  box-shadow: 0 1.25rem 3rem rgba(91, 35, 42, 0.1);
}

.hero-copy {
  max-width: 38rem;
}

.hero-kicker {
  margin-bottom: 0.875rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 1.06;
  text-shadow: none;
  text-wrap: balance;
}

.hero-title span {
  color: var(--accent);
}

.hero-subtitle {
  max-width: 34rem;
  margin: 1.25rem 0 1.75rem;
  color: #5f5153;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 400;
  line-height: 1.55;
  text-wrap: pretty;
}

.hero-cta,
.home-action-link {
  min-block-size: 2.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.hero-cta {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0.75rem 1.5rem rgba(200, 16, 46, 0.2);
}

.hero-cta:hover {
  background: var(--accent-dark);
}

.hero-logo {
  width: min(100%, 21rem);
  height: auto;
  aspect-ratio: 1;
  justify-self: center;
  margin: 0;
  border: 0.5rem solid #fff;
  border-radius: 50%;
  box-shadow: 0 1.25rem 2.5rem rgba(109, 23, 37, 0.2);
}

.home-actions {
  max-width: 76rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: clamp(1.5rem, 4vw, 3rem) auto 0;
  padding: 0 1.25rem;
}

.home-action-card {
  min-block-size: 19rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--surface);
  box-shadow: 0 0.75rem 1.75rem rgba(94, 40, 46, 0.08);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-action-card:hover {
  border-color: rgba(200, 16, 46, 0.4);
  box-shadow: 0 1rem 2.25rem rgba(94, 40, 46, 0.14);
  transform: translateY(-0.25rem);
}

.home-action-icon {
  min-inline-size: 3.5rem;
  min-block-size: 3.5rem;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  border: 1px solid #f1b9c2;
  border-radius: 1.125rem;
  background: #fff4f5;
  color: var(--accent);
}

.home-action-icon svg {
  width: 2rem;
  height: 2rem;
}

.home-action-card h2 {
  margin-bottom: 0.625rem;
  font-size: 1.25rem;
  line-height: 1.2;
}

.home-action-card p {
  margin-bottom: 1.25rem;
  color: #66585a;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.home-action-link {
  width: 100%;
  margin-top: auto;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.home-action-card:hover .home-action-link {
  background: var(--accent);
  color: #fff;
}

.volunteer-section {
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  padding: clamp(2.5rem, 5vw, 4.5rem) 1.25rem;
  background: transparent;
}

.volunteer-container {
  border-color: var(--line);
  border-radius: 1.5rem;
  background: var(--surface);
  box-shadow: 0 1rem 2.5rem rgba(94, 40, 46, 0.1);
}

.volunteer-container h2 {
  color: var(--accent);
}

.submit-btn,
.history-btn,
.login-btn,
.admin-submit-btn {
  background-color: var(--accent);
}

.submit-btn:hover,
.history-btn:hover,
.login-btn:hover,
.admin-submit-btn:hover {
  background-color: var(--accent-dark);
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 0.1875rem solid #8d1530;
  outline-offset: 0.1875rem;
}

@media (max-width: 1100px) {
  .desktop-nav {
    display: none;
  }

  .burger-btn {
    display: flex;
  }
}

@media (max-width: 900px) {
  .home-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .header-container {
    min-height: 4.5rem;
    padding: 0.625rem 1rem;
  }

  .logo-icon {
    width: calc(2.25rem * var(--logo-scale, 1));
    height: calc(2.25rem * var(--logo-scale, 1));
  }

  .logo-text {
    font-size: 1rem;
  }

  .mobile-menu {
    top: 4.5rem;
  }

  .hero-section {
    margin-top: 1.25rem;
    padding: 0 1rem;
  }

  .hero-content {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 1.75rem;
    border-radius: 1.5rem;
  }

  .hero-logo {
    width: min(14rem, 70vw);
    grid-row: 1;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-subtitle {
    margin-inline: auto;
  }

  .home-actions {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .home-action-card {
    min-block-size: auto;
  }

}

@media (prefers-reduced-motion: reduce) {
  .home-action-card,
  .burger-btn span {
    transition: none;
  }
}

/* Главная страница: соответствие утверждённому макету */
body.page-home {
  --page-background: #fffdfc;
}

.header {
  top: 0.125rem;
  margin: 0.125rem;
  border: 0;
  border-radius: 1.5rem;
}

.header-container {
  max-width: none;
  min-height: 8.5rem;
  padding-inline: clamp(1.25rem, 3vw, 2.75rem);
}

.logo-icon {
  width: calc(4rem * var(--logo-scale, 1));
  height: calc(4rem * var(--logo-scale, 1));
  box-shadow: none;
}

.logo-text {
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  line-height: 1.1;
}

.desktop-nav {
  gap: clamp(0.3rem, 1vw, 1.25rem);
}

.desktop-nav a {
  padding: 0.75rem 0.3rem;
  color: #252124;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
}

.desktop-nav a:hover,
.desktop-nav a.active {
  background: transparent;
  box-shadow: inset 0 -0.16rem 0 var(--accent);
}

.support-btn,
.mobile-support-btn {
  min-block-size: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  background: var(--accent);
  box-shadow: 0 0.75rem 1.5rem rgba(200, 16, 46, 0.18);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.support-btn::before,
.mobile-support-btn::before {
  content: "♡";
  margin-right: 0.625rem;
  font-size: 1.5rem;
  line-height: 0;
}

.support-btn:hover,
.mobile-support-btn:hover {
  background: var(--accent-dark);
}

.mobile-support-btn {
  margin-top: 0.5rem;
}

body.page-home .hero-section {
  max-width: none;
  margin: 2rem 0 0;
  padding: 0;
}

body.page-home .hero-content {
  position: relative;
  min-height: 33rem;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  padding: 4rem clamp(3rem, 7.7vw, 7.5rem);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #fffdfc;
  box-shadow: none;
}

body.page-home .hero-content::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, #fffdfc 0%, rgba(255, 253, 252, 0.98) 34%, rgba(255, 253, 252, 0.72) 40%, rgba(255, 253, 252, 0.18) 49%, rgba(255, 253, 252, 0) 60%);
  content: "";
}

.hero-picture {
  position: absolute;
  inset: 0;
}

.hero-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 58% center;
}

body.page-home .hero-copy {
  position: relative;
  z-index: 2;
  max-width: 37rem;
  margin: 0;
  text-align: left;
}

body.page-home .hero-title {
  max-width: 37rem;
  font-size: clamp(2.25rem, 3.5vw, 3.5rem);
  line-height: 1.14;
  text-wrap: balance;
}

body.page-home .hero-subtitle {
  max-width: 34rem;
  margin-block: 1.25rem 1.75rem;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
}

body.page-home .hero-cta::before {
  content: "♡";
  margin-right: 0.625rem;
  font-size: 1.6rem;
  line-height: 0;
}

body.page-home .home-actions {
  max-width: 95rem;
  gap: 1rem;
  margin-top: 0;
  padding: 0 2.5rem;
}

body.page-home .home-action-card {
  min-block-size: 20.5rem;
  align-items: center;
  padding: 2rem 1.5rem 1.75rem;
  border-color: #f1eeee;
  border-radius: 1.25rem;
  box-shadow: 0 0.5rem 1.5rem rgba(55, 32, 36, 0.1);
  text-align: center;
}

body.page-home .home-action-icon {
  min-inline-size: 5.25rem;
  min-block-size: 5.25rem;
  margin-bottom: 1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.page-home .home-action-icon svg {
  width: 4.5rem;
  height: 4.5rem;
  stroke-width: 1.75;
}

body.page-home .home-action-card h2 {
  margin-bottom: 0.625rem;
  font-size: 1.4rem;
}

body.page-home .home-action-card p {
  max-width: 15rem;
  margin-bottom: 1.5rem;
  font-size: 0.94rem;
}

body.page-home .home-action-link {
  min-block-size: 3rem;
  width: min(100%, 16rem);
  border-radius: 0.75rem;
}

body.page-home .home-poem {
  position: relative;
  width: calc(100% - 2rem);
  max-width: 52rem;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 5vw, 4rem);
  overflow: hidden;
  border: 1px solid #f1b9c2;
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 0 0, rgba(200, 16, 46, 0.1), transparent 32%),
    linear-gradient(135deg, #fffaf7, #fff1f3);
  box-shadow: 0 1rem 2.5rem rgba(94, 40, 46, 0.1);
  text-align: center;
}

body.page-home .home-poem-heart {
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  border: 1px solid #f1b9c2;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent);
  font-size: 2.25rem;
  line-height: 1;
}

body.page-home .home-poem p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
  font-weight: 500;
  line-height: 1.75;
  text-wrap: balance;
}

@media (min-width: 701px) {
  body.page-home .hero-section {
    margin: 0;
  }
}

@media (max-width: 1100px) {
  .header {
    top: 0;
    margin: 0;
    border-radius: 0;
  }

  .header-container {
    min-height: 5rem;
  }

  .logo-icon {
    width: calc(2.75rem * var(--logo-scale, 1));
    height: calc(2.75rem * var(--logo-scale, 1));
  }

  .support-btn {
    display: none;
  }
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(20, 10, 14, 0.88);
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.photo-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.photo-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transform-origin: center center;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.photo-lightbox .lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.photo-lightbox .lightbox-nav:hover,
.photo-lightbox .lightbox-nav:focus-visible {
  background: rgba(255, 255, 255, 0.35);
}

.photo-lightbox .lightbox-prev {
  left: 1rem;
}

.photo-lightbox .lightbox-next {
  right: 1rem;
}

.photo-lightbox img.is-switching {
  animation: lightbox-fade-in 0.3s ease;
}

@keyframes lightbox-fade-in {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

body.lightbox-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .photo-lightbox,
  .photo-lightbox img,
  .photo-lightbox img.is-switching {
    transition: none;
    animation: none;
  }
}

.urgent-needs-strip {
  background: #fdecef;
  border-bottom: 1px solid #f2c4cd;
  color: #9b2335;
  padding: 0.35rem 1rem;
  text-align: center;
}

.site-sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fffdfc;
}

.site-sticky-header .header {
  margin-bottom: -1px;
}

.urgent-needs-text {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  body.page-home .hero-section {
    margin-top: 0;
  }

  body.page-home .hero-content {
    min-height: 40rem;
    align-items: flex-end;
    padding: 2rem 1.5rem 3rem;
  }

  body.page-home .hero-content::before {
    background: linear-gradient(180deg, rgba(255, 253, 252, 0.2) 0%, rgba(255, 253, 252, 0.86) 48%, #fffdfc 100%);
  }

  body.page-home .hero-copy {
    max-width: none;
    text-align: center;
  }

  body.page-home .hero-title {
    max-width: none;
    font-size: clamp(2rem, 9vw, 3rem);
  }

  body.page-home .hero-subtitle {
    font-size: 1rem;
  }

  body.page-home .home-actions {
    padding: 1rem;
  }

  body.page-home .home-action-card {
    min-block-size: auto;
  }
}
