/* = = = БАННЕР = = = */
.banner {
  background-image: url('/img/banner.png');
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  position: relative;
}
.banner::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}
.banner-content {
  position: relative;
  z-index: 2;
}

/* = = = 1 BLOK = = = */
.home {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 12% 0;
  background-color: rgba(255, 255, 255, 1);
}
.home .home-content .item_text {
  text-align: center;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 1px;
  color: #A09100;
  margin-top: 0;
}
.text_com {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 1px;
  color: #918300;
  padding-bottom: 20px;
  margin: 0;
}
.line {
  width: 100%;
  height: 2px;
  background-color: #95760A;
  margin: 0 auto;
}
/* = = = POZHERTVA  = = = */
.hom_poz {
  background-color: transparent;
  padding: 0 10% 0;
  max-width: 700px;
  margin: 40px auto;
}

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

.item_poz {
  text-align: center;
  font-size: 2.8rem;
  font-weight: bold;
  margin: 10px 0;
  color: #333;
}

.text_poz {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  letter-spacing: 1px;
  margin: 1px 0 5px;
  color: #222;
}
.hom_content .quri {
  display: block;
  justify-content: center;
  align-items: center;
  width: 250px;
  height: 220px;
  margin: 0 auto;
}
/* Анимированная линия */
.line_poz {
  height: 3px;
  width: 0;
  background: linear-gradient(to right, #6a11cb, #2575fc);
  border-radius: 3px;
  animation: growLine 10s ease infinite;
}

@keyframes growLine {
  to {
    width: 100%;
  }
}

/* Адаптация для планшетов (до 768px) */
@media (max-width: 768px) {
  .hom_poz {
    padding: 0 12% 0;
  }

  .item_poz {
    font-size: 2.8rem;
    margin: 10px 0;
  }

  .text_poz {
    font-size: 2.1rem;
  }
}

/* Адаптация для телефонов (до 480px) */
@media (max-width: 480px) {
  .hom_poz {
    padding: 0 6% 0;
  }

  .item_poz {
    font-size: 2.5rem;
    margin: 3px 0;
  }

  .text_poz {
    font-size: 1.6rem;
    padding-left: 1px;
  }

  .line_poz {
    height: 3px;
  }
}

/* = = = Текст БЛОК = = = */
.block {
  max-width: 600px;
  margin: 0 auto;
  padding: 10px;
}
.text-block {
  margin: 30px 0;/* расстояние для прокрутки */
  padding: 10px;
  border-radius: 10px;
  opacity: 0;
  transform: translateX(-100%);/*Уезжает влево*/
  transition: transform 0.8s ease, opacity 0.8s ease;
  text-align: center;
  /*border: 1px solid #ddd;
  box-shadow: -3px -3px 15px rgba(255, 255, 255, 0.2), 
               5px 5px 20px rgba(0, 0, 0, 0.75);*/
}

.text-block.show {
  opacity: 1;
  background: transparent;
  transform: translateX(0);
}

.block-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 10px;
}

.block-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  box-shadow: 3px 5px 15px rgba(0, 0, 0, 0.80);
}
.block-mis {
  width: 300px;
  height: auto;
  border-radius: 10px;
  box-shadow: -3px -3px 15px rgba(255, 255, 255, 0.2), 
               5px 5px 20px rgba(0, 0, 0, 0.75);
}
.text-block .block-bk {
  width: 450px;
  height: auto;
  right: 20px;
  border-radius: 10px;
  box-shadow: -3px -3px 15px rgba(255, 255, 255, 0.2), 
               5px 5px 20px rgba(0, 0, 0, 0.75);
}

.block-text {
  flex: 1;
}

.text-block .title {
  text-align: center;
  padding: 8px 0 0;
  font-size: 26px;
  color: #111;
  margin: 0;
}
.text-block .item {
  text-align: center;
  padding: 3px 0 0;
  font-size: 18px;
  color: #333;
  margin: 0;
}

.text-block .text_title {
  text-align: center;
  font-size: 28px;
  color: #555;
  margin: 10px 0 10px;
}
.text-block .text_item {
  font-size: 16px;
  font-weight: 500;
  color: #666;
  padding: 0 20px;
  margin: 0 0 20px;
}
.text-block .title_td {
  text-align: center ;
  font-size: 32px;
  color: #C39800;
  margin: 0;
  padding-bottom: 5px;
  border-bottom: 2px solid #95760A;
}

.text-block .text_ts {
  white-space: pre-line;
  text-align: left;
  font-size: 20px;
  font-weight: 600;
  color: #9A7800;
  margin: 0;
  padding-top: 8px;
  padding-left: 30px; 
  padding-bottom: 8px;
  /*border-bottom: 3px solid #319EFC;*/
}
/* = = = = = => C A R D S  <= = = = = = */
.cards-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 50px;
  background: transparent;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: -3px -3px 15px rgba(255, 255, 255, 0.2), 
               5px 5px 20px rgba(0, 0, 0, 0.75);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  background: rgba(255, 205, 0, 0.85);
}

.card img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
}

.card h3 {
  margin: 16px 0 10px;
  font-size: 20px;
  color: #333;
}

.card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 18px;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #27B237;
}

/* = = = Волонтеры  = = = */
.image-section {
  display: flex;
  justify-content: center;
  align-items: center;
  /*height: 100vh; секция на весь экран */
  background-color: transparent;
  padding: 10px 30px;
  box-sizing: border-box;
}

.image-section img {
  width: 100%;
  max-width: 1080px;
  height: auto;
  aspect-ratio: 1080 / 810;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 3px 5px 15px rgba(109, 109, 109, 1); 
}

/* Адаптация под планшет и телефон */
@media (max-width: 768px) {
  .image-section {
    padding: 10px 30px;
  }

  .image-section img {
    max-width: 100%;
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .image-section {
    padding: 10px;
  }

  .image-section img {
    border-radius: 8px;
  }
}

/* Адаптивность */
@media (max-width: 768px) {
  .cards-section {
    grid-template-columns: 1fr;
  }
}

/* = = =  АКОРДИОН  = = = */
.faq-section {
  max-width: 700px;
  padding: 0 20px;
  background: transparent;
  margin: auto;
}

.faq-item {
  background: rgba(255, 218, 78, 0.64);
  color: #333;
  font-size: 18px;
  border: 1px solid #ddd;
  margin-bottom: 20px;
  border-radius: 16px;
  overflow: hidden;
}

.faq-question {
  padding: 14px;
  font-weight: 500;
  position: relative;
  border: 1px solid #888888;
  border-radius: 16px;
}

.faq-question::after {
  content: '✖️';
  position: absolute;
  right: 20px;
  font-size: 20px;
  transition: transform 0.3s;
}

.faq-question.active::after {
  content: '➖';
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background: #D8FFC3;
  transition: max-height 0.3s ease;
  padding: 0 20px;
}

.faq-answer p {
  font-size: 18px;
  font-weight: 400;
  color: #333;
  margin: 0;
}

.faq-answer.open {
  padding: 20px;
  max-height: 200px;
}

/* = = = ВИДЕО YouTube = = = */
#video-section {
  background-color: rgba(255, 255, 255, 1);
  padding: 30px 20px;
  text-align: center;
}

#video-section .text_video {
  margin-bottom: 20px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #A09100;
}

.video-container {
  display: flex;
  justify-content: center;
}

.video-container iframe {
  width: 600px;
  height: 300px;
  border-radius: 10px;
  border: 0;
  box-shadow: -3px -3px 15px rgba(255, 255, 255, 0.2), 
               5px 5px 20px rgba(0, 0, 0, 0.75);
  
}

/* = = = Карта секция внизу = = = */
#map-section {
  background-color: rgba(255, 255, 255, 1);
  padding: 30px 20px;
  text-align: center;
}

#map-section .text_geo {
  margin-bottom: 20px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #A09100;
}

.map-container {
  display: flex;
  justify-content: center;
}

.map-container iframe {
  width: 100%;
  max-width: 600px;
  height: 300px;
  border-radius: 10px;
  box-shadow: -3px -3px 15px rgba(255, 255, 255, 0.2), 
               5px 5px 20px rgba(0, 0, 0, 0.75); 
}


/* Медиазапрос для плоншета */
@media (max-width: 768px) {
  .banner {
    height: 47vh;
    padding: 10px;
    position: relative;
  }
  .block {
    max-width: 400px;
    padding: 10px;
  }
  
  .home {
    flex-direction: column;
  }
  .home-content .item_text {
    font-size: 4rem;
  }
  .text_com {
    font-size: 18px;
    padding-bottom: 20px;
  }
  
  .text-block .block-bk {
    width: 350px;
    height: auto; 
  }
}

/* Медиазапрос для телефонов */
@media (max-width: 480px) {
  .banner {
    height: 43vh;
    padding: 20px;
    position: relative;
  }
  .banner-content .banner_text {
    padding: 20px 10px;
  }
  .banner-content h1 {
  font-size: 26px;
  }
  .banner-content .ban_tx {
    font-size: 20px;
  } 
  
  .block {
    max-width: 300px;
    padding: 0;
  }
  .text-block .text_ts {
    white-space: pre-line;
    line-height: 1.1;
    text-align: left;
    padding-left: 18px;
    font-size: 14px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  
  .block-mis {
    width: 260px;
    height: auto; 
  }
  .text-block .block-bk {
  width: 280px;
  height: auto; 
  }
  
  .home {
    padding: 1em 8% 1em;
  }
  .home .home-content .item_text {
  font-size: 2.3em;
  line-height: 1.6em;
  }
  .text_com {
    font-size: 18px;
    line-height: 1.2;
    padding-bottom: 20px;
  }
  .line {
    width: 90%;
  }
  
  .faq-section {
    max-width: 400px;
    padding: 0 14px;
  }
  .faq-item {
    font-size: 11px;
  }
  .faq-question {
    padding: 16px;
  }
  .faq-question::after {
    right: 10px;
    font-size: 14px;
  }
  .faq-answer p {
   font-size: 16px;
   font-weight: 400;
  }
}