body {
  margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 300;
  color: #000000;
}

html {
  scroll-behavior: smooth;
}

/* ---------- HEADERS ---------- */
h1,
h2,
h3 {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 300;
  color: #000000;
}

h2 {
  font-size: 32px;
  margin-bottom: 40px;
}

/* ---------- BASE ---------- */
.section {
  padding: 40px 20px;
}

.center {
  text-align: center;
}

/* ---------- HERO & CONTACT ---------- */
.hero-section {
  background: #1f1f1f;
  color: #fff;
}

.hero-section h1,
.hero-section p {
  color: #ffffff;
}

.contact-section {
  background: #1f1f1f;
  color: #fff;
}

.contact-section h2,
.contact-section p {
  color: #ffffff;
}

/* ---------- STORY ---------- */
.story-text-collapsible {
  position: relative;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.story-read-more {
  display: none;
  /* на десктопах скрыта */
  margin: 15px auto 0;
  padding: 10px 24px;
  background: #1f1f1f;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.story-read-more:hover {
  background: #333;
}

@media (max-width: 768px) {
  .story-text-collapsible {
    max-height: 600px;
    overflow: hidden;
  }

  .story-text-collapsible::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .story-text-collapsible.expanded {
    max-height: none;
    overflow: visible;
  }

  .story-text-collapsible.expanded::after {
    opacity: 0;
  }

  .story-read-more {
    display: block;
  }
}

.story-container {
  max-width: 800px;
  margin: 0 auto;
}

.story-photo,
.story-photo-left {
  width: 320px;
  max-width: 45%;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
  will-change: transform;
}

.story-photo {
  float: right;
  margin: 0 0 20px 20px;
}

.story-photo-left {
  float: left;
  margin: 0 20px 20px 0;
}

.story-photo:hover,
.story-photo-left:hover {
  transform: scale(1.02);
}

@media (max-width: 768px) {

  .story-photo,
  .story-photo-left {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 20px 0;
  }
}

/* ---------- DONATE BUTTON ---------- */
.donate-btn {
  display: inline-block;
  margin-top: 35px;
  padding: 16px 34px;
  background: #ffffff;
  color: #1f2a44;
  text-decoration: none;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  font-size: 18px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.donate-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
  background: #f5f5f5;
}

/* ---------- PHOTO ---------- */
.photo-gallery {
  padding-top: 10px;
  padding-bottom: 80px;
}

/* ---------- SWIPER ---------- */
.swiper-slide img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
}

.swiper-button-prev,
.swiper-button-next {
  --swiper-navigation-color: #ffffff;
  /* ← перебиваем синюю переменную */
  color: #ffffff;
  /* ← обычный цвет */
  width: 56px;
  height: 56px;
  background: none;
  transition: opacity 0.2s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  transform: scale(1.15);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 26px;
  font-weight: bold;
  color: inherit;
  /* берёт цвет родителя */
}

/* ---------- DOCS ---------- */
.docs-section {
  background: #f7f7f7;
}

.docs-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px;
}

.doc-card {
  text-decoration: none;
  color: #000;
}

.doc-preview {
  position: relative;
  width: 220px;
  height: 280px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.doc-preview iframe,
.doc-preview img {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

.doc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transition: 0.2s;
  pointer-events: none;
}

.doc-preview:hover .doc-overlay {
  opacity: 1;
}

/* ---------- DONATION ---------- */
.donation-title {
  margin-bottom: 10px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .donation-title {
    font-size: 24px;
  }
}

.donation-subtitle {
  color: #777;
  font-size: 14px;
  margin-top: 0;
}

.donation-container {
  max-width: 900px;
  margin: 50px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
}

.donation-details {
  flex: 1 1 320px;
  text-align: left;
  background: #f7f7f7;
  padding: 30px;
  border-radius: 16px;
}

.donation-heading {
  margin-top: 0;
}

.donation-qr {
  flex: 0 0 260px;
  text-align: center;
}

.qr-image {
  width: 260px;
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.qr-caption {
  font-size: 14px;
  color: #666;
  margin-top: 15px;
}

/* ---------- IMPACT ---------- */
.impact-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("../img/background.jpg") center/cover no-repeat;
}

.impact-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.impact-content {
  position: relative;
  color: #fff;
  text-align: center;
  max-width: 900px;
  padding: 20px;
}

.impact-content p {
  font-size: 28px;
  line-height: 1.4;
  margin: 18px 0;
  font-weight: 500;
}

@media (max-width: 768px) {
  .impact-content p {
    font-size: 20px;
  }
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}

.lightbox.active {
  display: flex;
}

.lightbox-arrow {
  position: fixed;
  /* чтобы не зависели от контейнера */
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 36px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  /* скрыты по умолчанию */
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 10001;
}

.lightbox.active .lightbox-arrow {
  display: flex;
  /* показываются только когда лайтбокс активен */
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* ---------- TELEGRAM ---------- */
.telegram-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 400;
  transition: opacity 0.2s ease;
}

.telegram-link:hover {
  opacity: 0.8;
}

.telegram-icon {
  width: 24px;
  height: 24px;
  color: #ffffff;
}