/* Универсальный CSS-сброс */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, li {
  list-style: none;
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
}

/* Убираем лишние выделения на мобильных устройствах */
a, button {
  -webkit-tap-highlight-color: transparent;
}
/* начало кода+++++++++++++++++++++++++++++++++++++++++++++++++++ */
@font-face {
font-family: "AncientKyivRus";
src: url("./fonts/PizzaHutCYR.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}
html {
  scroll-behavior: smooth;
  background: url('./images/Adobe.jpg') no-repeat 50% 0%;
  background-size: cover;
  background-attachment: fixed;
}
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: url('./images/shapka.jpg') no-repeat 50% 0%;background-size: 100%; /* старый код */
  /*background: linear-gradient(rgb(0 191 255 / 37%), rgb(0 191 255 / 24%)), url(/images/banners/main_banner_sbor3.jpg) no-repeat 50% 0;
  background-size: 100% 172px, 100%;
  background-position: center 17%, 50% 0;
  background-repeat: no-repeat, no-repeat;*/
}

header {
text-align: center;
padding: 20px;
height: 39vw;
width: 60%;
margin: 0 auto;
/* Меняем flex на block, чтобы не нарушать обычное размещение */
display: block;
position: relative;
/* Добавляем, чтобы контейнер header был точкой отсчета для абсолютно позиционированных элементов */
isolation: isolate;
}

header h1 {
margin: 2vw 15vw 0 8vw;
font-size: 2.5em;
/*font-family: "Monomakh", serif;*/
font-family: "AncientKyivRus", sans-serif;
font-weight: 300;
font-style: normal;
color: #ff6d32;
text-align: left;
position: relative;
display: block;
text-transform: uppercase;
line-height: 1.2;
text-shadow: #0f0078 1px 1px 1px;
z-index: 2;
}

p {
text-indent: 26px;
font-family: "Sofia Sans Condensed", sans-serif;
font-size: 1.1rem;
line-height: 1.35;
font-weight: 380;
text-align: justify;
}

header h2 {
margin: 0 0 0 14%;
font-size: 1.1em;
color:#a52a2a;
font-family: "Monomakh", serif;
font-weight: 300;
font-style: normal;
padding: 0px;
text-align: left;
line-height: 1.3;
/* Задаем ширину, чтобы текст не залезал под логотип */
width: 54%;
/* Добавляем, чтобы h2 не влиял на позиционирование .logo */
z-index: 1;
position: relative;
padding-right: 12px;
background-color: #ffffffa3;
}
h2 {
margin: 0;
font-size: 1.5em;
color: #897626;
font-family: "Monomakh", serif;
font-weight: 300;
font-style: normal;
padding: 0 12px;text-align: center;
}
menu {
position: relative;
background: #6699ff8f;
color: #fff;
top: -78px;
height: 2vw;
width: 75%;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: space-evenly;
align-items: center;
left: 0;
border-top: solid 2px #fff;
border-bottom: solid 2px #fff;
}
menu a {
text-transform: uppercase;
font-family: "Sofia Sans Condensed", sans-serif;
white-space: nowrap;    /* не переносить текст */
overflow: hidden;       /* скрывать переполнение */
text-overflow: ellipsis; /* добавлять многоточие вместо скрытого текста */
text-shadow: 1px 1px 8px black;
}
menu a:hover {scale: 1.2;transition: all 650ms; font-weight: bold;}
h3#donats {line-height: 1.3;text-align: center; font-size: 1.3rem;}

header h3 {z-index: 100;
position: relative;width:auto;}

.content-item h3 {font-size: 3rem; color: rgb(255, 255, 255);}
h3 {line-height: 1.5;font-family: Oswald, serif; color: brown;}

.todo-progress-list {
  list-style: none;
  margin: 0 0 0 20px;
  padding: 0 0 0 0;
}
.todo-progress-list li {
  position: relative;
  padding-left: 32px;
}
.todo-progress-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 14px;
  height: 14px;
  border: 2px solid #9b9b9b;
  border-radius: 50%;
  background: transparent;
  box-sizing: border-box;
}
.todo-progress-list li:first-child::before {
  border-top-color: #1f9d44;
  border-right-color: #72c98d;
  border-bottom-color: #72c98d;
  border-left-color: #72c98d;
  animation: todo-spinner 0.85s linear infinite;
}
@keyframes todo-spinner {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.logo {
width: 300px;
height: 32vw;
background-color: transparent;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
position: absolute;
right: -20px;
top: -39vw;
display: block;
z-index: 10;
text-align: center;
transform: translateZ(0);
isolation: isolate;
opacity: 1;
transition: opacity 0.25s ease;
}
.logo:hover {
opacity: 0;
}
.logo::before,
.logo::after {
content: "";
position: absolute;
inset: 0;
clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
pointer-events: none;
}
.logo::before {
background: #3aa6a08a;
z-index: 0;
}
.logo::after {
inset: 0 20px 20px 20px;
background: #ffffffdb;
z-index: 1;
}
.logo > * {
position: relative;
z-index: 2;
}
#ik_bat {
display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    position: absolute;
}

/*удалить
#horug {
  background: url(/images/banners/horug.png) no-repeat 50% 0%;
  background-size: 100%;
  width: 11vw;
  height: 19vw;
  position: absolute;
  top: -96px;
}*/
.logo img {
  width: 8vw;
  margin: 0 auto;
  position: relative;
  top: 2vw;
  left: 0vw;
  filter: drop-shadow(0px 0px 5px #3c3c3c);
}
.content {
display: flex;
    padding: 40px 20px 20px 0;
    flex-wrap: wrap;
    background-color: rgb(255, 255, 255);
    width: 60%;
    margin: 0 auto;
    justify-content: flex-start;
}

.text-block {
width: 71%;
margin: -50px 0px 20px 20px;
padding-left: 20px;
background: #f1f1f1;
border-radius: 8px;
padding-right: 20px;  
box-shadow: 0 0 10px #a4a4a4;                           
}
div>div>h3 {font-size: 1.5rem;}

.column {
  position: relative;
  top: -118px;
  width: 300px;
  padding: 10px;
  align-self: flex-start;
  box-sizing: border-box;
  background-color: #ffffffdb;
  border-top: none;
  margin-top: 0;
  z-index: 5;
  border-left: 20px solid #3aa6a08a;
  border-right: 20px solid #3aa6a08a;
  border-bottom: 20px solid #3aa6a08a;
  left: 20px;
  border-top: 20px solid #3aa6a08a;
}


footer {
  text-align: center;
  padding: 10px;
  background-color: #f5f5f5;
}
img {margin: 20px 0;}
#foto_1 {width: 40%;
float: left;
margin-right: 20px;
cursor: pointer;
transition: transform 0.3s ease;
border-radius: 8px;
border: double 5px #b49238;
}
#foto_1:hover {
  transform: scale(1.03);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
#foto_2 {    
  margin: 7px 0px 5px 20px;
  width: 35%;
  float: right;
  cursor: pointer;
  transition: transform 0.3s ease;
  border-radius: 8px;
  border: double 5px #b49238;
}

#foto_2:hover {
  transform: scale(1.03);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}                                              

.kont { padding: 20px 15px; text-align: center; width: 38%; flex: 0 0 38%;}
#karta_rekvezit {display: flex; margin: 0 auto; width: 60%; position: relative; z-index: 10; margin-top: 30px; align-items: flex-start; gap: 16px;}
#summa {margin-top: 210px;}
.amount-btn {background: url(/images/banners/fondeneg.png) repeat-x 50% 50%, #f7931e; box-shadow: inset 0 0 25px #1e435d !important; text-shadow: 1.5px 1.5px 1px #122b42; font-weight: bold; font-family: 'Sofia Sans Condensed'; font-size: 1.2rem;}

/* Стили для неактивной кнопки "Загрузить ещё" */
.amount-btn:disabled {
  background: #999 !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
  box-shadow: none !important;
}

video {border: double 5px #b49238; margin-top: 12px;}
tr {
  height: 45px;
  outline: 2px solid #fff;
  background: #adf0ff40;
  border-radius: 5px;
  text-shadow: 1px 1px 1px #000000;
  box-shadow: inset 0 0 7px #0d0d00b0;
  font-weight: 500;
  font-size: 1.25rem;
  font-family: 'Monomakh';
}
tr:hover {background: #ffffff5e;}

table {
  width: 100%;
  border-spacing: 8px;
  border-collapse: separate;
  background: radial-gradient(circle at center, rgb(0 0 0 / 58%) 0%, rgb(33 60 69 / 31%) 70%), url(/images/banners/fon_kto_donatil.jpg) 50% no-repeat;
  background-size: cover;
  color: #fff16d;
}

.timeline-container {
  width: 100%;
  min-height: 350px;
  padding: 35px;
  box-sizing: border-box;
  position: relative;
  background: 
linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
 url(/sbor/images/008.jpg) 50% 0 no-repeat;
  background-size: 100%, cover;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 30px;
  margin: 15px 0 50px 0;
border-radius: 8px; 
}

/* Таймлайн навигация с flex-расположением */
.timeline-nav {
  position: relative;
  height: 100%;
  width: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 0;
  padding-left: 0;
  flex-shrink: 0;
}
.line-bg span {
  position: absolute;
  color: #fff;
  top: -25px;
  left: 36px;
  text-align: center;
  font-size: 12px;
  display:none;
  animation: breathe 3s infinite ease-in-out; /* Добавляем анимацию дыхания */
}

/* Стили для линии таймлайна */
.line-bg {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateX(-50%);
}

.line-active {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  background-color: #34a57e;
  transform: translateX(-50%);
  transition: height 0.4s ease;
}

/* Стили для кружочков */
.circle-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 0;
}

.circle {
  position: relative;
width: 10px;
height: 10px;
border-radius: 50%;
background-color: #fff;
cursor: pointer;
transition: all 0.3sease;
z-index: 2;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
margin-bottom: 54px;
margin-left: 0px;
}

.circle::before {
  content: attr(data-year);
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 1.2em;
  white-space: nowrap;
  text-shadow: 2px 1px 3px #20ae70; font-weight: bold;
}

.circle.active {
  background-color: #34a57e;
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(52, 165, 126, 0.5);animation: god 3s infinite ease-in-out; /* Добавляем анимацию дыхания */
}
/* Добавляем ключевые кадры для анимации дыхания */
@keyframes god {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

.circle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
}


.circle {
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
}

.circle.active {
  background-blend-mode: overlay;
}

/* Контейнер для контента */
.timeline-content {
  position: relative;
  width: calc(100% - 90px);
  overflow: hidden;
  z-index: 4;
  transition: height 0.4s ease; left: 70px;
}

/* Каждый блок контента (абсолютное позиционирование) */
.content-item {
  position: absolute;
  top: 0;
  left: 0px;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 0.4s ease, opacity 0.4s ease;
  z-index: 4;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  /*background: rgba(255, 255, 255, 0.9);*/
}

.content-item.active {
  pointer-events: auto;
  opacity: 1;
  transform: translateX(0);
}
.content-item img {width: 40%;float: right; margin-left: 20px; border: solid 2px #f1f1f1;}
.content-item p {color: antiquewhite;margin-top: 43px;}
.content-item::after {
  content: "";
  display: table;
  clear: both;
}

.fade-out-left {
  animation: fadeOutLeft 0.4s forwards;
}
@keyframes fadeOutLeft {
  0% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-100%);
    filter: blur(5px);
  }
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(100%);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

/* Новые анимации для обратного направления */
@keyframes fadeOutRight {
  0% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translateX(100%);
    filter: blur(5px);
  }
}

@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-100%);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

/* Классы для применения анимаций */
.fade-out-left {
  animation: fadeOutLeft 0.4s forwards;
}
.fade-in-right {
  animation: fadeInRight 0.4s forwards;
}

.fade-out-right {
  animation: fadeOutRight 0.4s forwards;
}
.fade-in-left {
  animation: fadeInLeft 0.4s forwards;
}

.content-item h3 {
  margin-top: 0;
}
#target {position: absolute; top: 15vw; left: 50%; transform: translateX(-50%); font-size: 1.1vw; text-align: center; white-space: nowrap;line-height: 1.1;}

.grid-container {
  display: grid;
  /* 4 колонки одинаковой ширины - все фото одинакового размера */
  grid-template-columns: repeat(4, 1fr);
  /* автоматическое количество строк */
  grid-template-rows: auto auto auto auto;
  /*
    Все фото одинакового размера:
     1-й ряд: фото1, фото2, фото3, фото4
     2-й ряд: фото5, фото6, фото7, фото8
     3-й ряд: фото9, фото10, фото11, фото12
     4-й ряд: фото13, фото14, фото15
  */
  grid-template-areas:
    "p1 p2 p3 p4"
    "p5 p6 p7 p8"
    "p9 p10 p11 p12"
    "p13 p14 p15 .";
  gap: 10px;          /* отступы между элементами */
  max-width: 1200px;  /* пример ограничения ширины */
  margin: 0 auto;     /* центрируем сетку по горизонтали */
  padding: 10px;
  box-sizing: border-box;
  background-color: #f0f0f0; /* фоновый цвет (по желанию) */
}

/* Привязываем каждый блок к соответствующей области */
.p1 { grid-area: p1; }
.p2 { grid-area: p2; }
.p3 { grid-area: p3;}
.p4 { grid-area: p4;}
.p5 { grid-area: p5;}
.p6 { grid-area: p6;}
.p7 { grid-area: p7;}
.p8 { grid-area: p8;}
.p9 { grid-area: p9;}
.p10 { grid-area: p10;}
.p11 { grid-area: p11;}
.p12 { grid-area: p12;}
.p13 { grid-area: p13;}
.p14 { grid-area: p14;}
.p15 { grid-area: p15;}

/* Для наглядности оформим каждый блок одинаково */
.grid-item {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  min-height: 80px;
  aspect-ratio: 4 / 3; /* Фиксируем соотношение сторон для всех фото */
  cursor: pointer;
  transition: transform 0.3s ease;
  overflow: hidden;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-radius: 8px;
  border: double 5px #b49238;
}

.grid-item:hover img {
  transform: scale(1.05);
}

.grid-item:active img {
  transform: scale(0.95);
}

/* Пример адаптивности на узких экранах */
@media (max-width: 768px) {
  .grid-container {
    /* переходим в одну колонку: все фото идут друг за другом */
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "p1"
      "p2"
      "p3"
      "p4"
      "p5"
      "p6"
      "p7"
      "p8"
      "p9"
      "p10"
      "p11"
      "p12"
      "p13"
      "p14"
      "p15";
    /* Убираем пустоту от gap когда галерея свернута */
    margin-bottom: -140px;
    transition: margin-bottom 0.3s ease;
  }
  
  /* Когда галерея развернута, убираем отрицательный отступ */
  .gallery-expanded {
    margin-bottom: 0;
  }
  
  /* Скрываем фото после 5-го по умолчанию на мобильных */
  .gallery-hidden-item {
    display: none;
  }
  
  /* Когда галерея развернута, показываем все фото */
  .gallery-expanded .gallery-hidden-item {
    display: flex;
    animation: fadeInItem 0.4s ease forwards;
  }
  
  @keyframes fadeInItem {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Контейнер для кнопки "Показать все" */
  .gallery-expand-btn-container {
    grid-column: 1;
    display: flex;
    justify-content: center;
    padding: 20px 0;
    opacity: 1;
    max-height: 100px;
    transition: opacity 0.3s ease, max-height 0.3s ease;
  }
  
  /* Контейнер для кнопки "Свернуть галерею" */
  .gallery-collapse-btn-container {
    grid-column: 1;
    display: flex;
    justify-content: center;
    padding: 20px 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
  }
  
  /* Когда галерея развернута, показываем кнопку "Свернуть" */
  .gallery-expanded .gallery-collapse-btn-container {
    opacity: 1;
    max-height: 100px;
  }
  
  /* Когда галерея развернута, скрываем кнопку "Показать все" */
  .gallery-expanded .gallery-expand-btn-container {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
  }
  
  /* Стили для кнопок управления галереей */
  .gallery-toggle-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  }
  
  .gallery-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  }
  
  .gallery-toggle-btn:active {
    transform: translateY(0);
  }
}

/* На десктопе скрываем кнопки управления галереей */
@media (min-width: 769px) {
  #krest { display: none !important; }
  .gallery-expand-btn-container,
  .gallery-collapse-btn-container {
    display: none !important;
  }
  
  /* Скрываем кнопки управления видео галереей на десктопе */
  .video-expand-btn-container,
  .video-collapse-btn-container {
    display: none !important;
  }
}

/* Управление видео галереей в мобильной версии */
@media (max-width: 768px) {
  /* Скрываем видео после 3-го по умолчанию на мобильных */
  .video-hidden-item {
    display: none;
  }
  
  /* Когда видео галерея развернута, показываем все видео */
  .video-gallery-expanded .video-hidden-item {
    display: inline-block;
    animation: fadeInVideo 0.5s ease forwards;
  }
  
  @keyframes fadeInVideo {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Контейнер для кнопки "Показать все видео" */
  .video-expand-btn-container {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    width: 100%;
    clear: both;
    opacity: 1;
    max-height: 100px;
    transition: opacity 0.3s ease, max-height 0.3s ease;
  }
  
  /* Контейнер для кнопки "Свернуть видео" */
  .video-collapse-btn-container {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    width: 100%;
    clear: both;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;        margin-bottom: -42px;
  }
  
  /* Когда видео галерея развернута, показываем кнопку "Свернуть" */
  .video-gallery-expanded .video-collapse-btn-container {
    opacity: 1;
    max-height: 100px;
  }
  
  /* Когда видео галерея развернута, скрываем кнопку "Показать все видео" */
  .video-gallery-expanded .video-expand-btn-container {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
  }
  
  /* Стили для кнопок управления видео галереей */
  .video-toggle-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  }
  
  .video-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  }
  
  .video-toggle-btn:active {
    transform: translateY(0);
  }
}

.timeline-content img {
width: 40%;
float: right;
margin-left: 20px;
border: solid 2px #f1f1f1;
transition: all 0.3s ease;
object-fit: cover;
cursor: pointer;
}

.timeline-content img:hover {
transform: scale(1.05);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.timeline-content img:active {
transform: scale(0.95);
}
/* окно благодарности */
#close-thank-you {
background: rgb(52, 165, 126);
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
}

#close-thank-you:hover {
background: rgb(42, 145, 106);
}


    /* Стили для всплывающего окна */
    .popup {
      display: none;
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: rgba(0, 0, 0, 0.8);
      padding: 20px;
      border-radius: 10px;
      text-align: center;
      color: white;
      z-index: 2500; /* Увеличиваем z-index, чтобы окно было поверх других элементов */
      width: auto;
      max-width: 90%;
  }
  .popup-content {
      background: white;
      padding: 15px;
      border-radius: 5px;
      color: black;
  }
  #close-popup, #close-payment, #close-payment-error {
      margin-top: 10px;
      padding: 5px 15px;
      border: none;
      background: #007BFF;
      color: white;
      cursor: pointer;
      border-radius: 5px;
  }
  #close-popup:hover, #close-payment:hover, #close-payment-error:hover {
      background: #0056b3;
  }



/* Галерея */
.gallery {
  width: 350px;
  margin-left: 20px;
  position: relative !important;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  float: right;
}

.slider {
  display: flex;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}
.slider img {margin: 0;}
.slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Перемещаем точки пагинации под изображение */
.pagination {
  position: absolute !important;
  bottom: -25px !important;
  left: 0 !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center;
  padding: 5px 0;
  background-color: transparent !important;
  z-index: 10 !important;
}

.dot {
  width: 10px;
  height: 10px;
  margin: 0 5px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
}

.dot.active {
  background-color: #34a57e;
  transform: scale(1.2);
  box-shadow: 0 0 5px #34a57e;
}

.dot:hover {
  background-color: #34a57e;
  transform: scale(1.1);
}


.progress-circle-container {
  position: absolute;
  width: 12vw;
  height: 12vw;
  display: none; /*flex;*/
  justify-content: center;
  align-items: center;
  top: 26%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
}

.progress-ring {
    position: absolute;
    transform: rotate(-90deg); /* Начало отсчёта с 12 часов */
    width: 100%;
    height: 100%;
}


.progress-ring-bg,
.progress-ring-fill {
    fill: none;
    stroke-width: 1vw;
    stroke-linecap: butt;
    cx: 6vw;
    cy: 6vw;
    r: 5vw;
}

.progress-ring-bg {
    stroke: rgb(112 189 197);      filter: drop-shadow(0px 0px 1.5px #000);
}

.progress-ring-fill {
    stroke: gold; /* Золотой цвет */
    stroke-dasharray: 31.5vw; /* Полный круг (2π * радиус) */
    stroke-dashoffset: 31.5vw; /* Начинаем с пустого */
    transition: stroke-dashoffset 1.5s ease-in-out;
    position: relative;
    /* Добавляем свойство для эффекта света */
    animation: light-sweep 3s infinite linear;
}

/* Добавляем анимацию световой полосы */
@keyframes light-sweep {
    0% {
        stroke: gold;
    }
    45% {
        stroke: gold;
    }
    50% {
        stroke: rgba(255, 255, 255, 0.9);
    }
    55% {
        stroke: gold;
    }
    100% {
        stroke: gold;
    }
}

/* Добавим второй круг для дополнительного светового эффекта */
.progress-ring-light {
    fill: none;
    stroke-width: 1vw;
    stroke-linecap: butt;
    cx: 6vw;
    cy: 6vw;
    r: 5vw;
    stroke: transparent;
    stroke-dasharray: 31.5vw;
    position: absolute;
    pointer-events: none;
    animation: light-beam 3s infinite linear;
}

@keyframes light-beam {
    0% {
        stroke-dashoffset: 31.5vw;
        stroke: rgba(255, 255, 255, 0);
    }
    40% {
        stroke-dashoffset: 15.75vw; /* половина окружности */
        stroke: rgba(255, 255, 255, 0.1);
    }
    50% {
        stroke-dashoffset: 7.875vw; /* четверть окружности */
        stroke: rgba(255, 255, 255, 0.9);
    }
    60% {
        stroke-dashoffset: 0vw;
        stroke: rgba(255, 255, 255, 0.1);
    }
    100% {
        stroke-dashoffset: -31.5vw;
        stroke: rgba(255, 255, 255, 0);
    }
}

.progress-text {
    position: absolute;
    font-size: 1.2rem;
    font-weight: bold;
    color: #39A5C1;
    background: white;
    width: 4vw;
    height: 4vw;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    border: #73BEC7 solid 5px;
    box-shadow: inset 0 0 10px #382c1d, 0 0 3px #555;
    text-shadow: 0 0 6px #fff;
}



.gallery {
  position: relative; /* Чтобы стрелки позиционировались относительно галереи */
}

.gallery .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5em;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.3);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.gallery .arrow:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.gallery .arrow.arrow-left {
  left: 15px;
}

.gallery .arrow.arrow-right {
  right: 15px;
}

/* Стиль для лупы - гарантируем видимость */
.gallery .magnifier {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5em;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.6);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  opacity: 0.7; /* Увеличиваем начальную прозрачность, чтобы лупа была видна всегда */
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5); /* Добавляем свечение для лучшей видимости */
  text-shadow: 0 0 5px #fff; /* Добавляем свечение для символа */
  pointer-events: auto; /* Гарантируем, что элемент будет получать события мыши */
  animation: pulse-magnifier 2s infinite; /* Добавляем анимацию пульсации */
}

/* Добавляем подсказку при наведении */
.gallery .magnifier::before {
  content: "Нажмите для увеличения";
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery .magnifier:hover::before {
  opacity: 1;
}

/* Анимация пульсации для лупы */
@keyframes pulse-magnifier {
  0% {
      box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
      transform: translate(-50%, -50%) scale(1);
  }
  50% {
      box-shadow: 0 0 25px rgba(255, 255, 255, 0.8);
      transform: translate(-50%, -50%) scale(1.1);
  }
  100% {
      box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
      transform: translate(-50%, -50%) scale(1);
  }
}

.gallery:hover .magnifier {
  opacity: 1;
  animation: none; /* Отключаем анимацию при наведении на галерею */
  transform: translate(-50%, -50%) scale(1.1); /* Увеличиваем при наведении для лучшей видимости */
  background-color: rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
}

.gallery .magnifier:hover {
  background-color: rgba(0, 58, 117, 0.8); /* Изменяем цвет при наведении на саму лупу */
  transform: translate(-50%, -50%) scale(1.2); /* Дополнительное увеличение при наведении на лупу */
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.9);
}

/* Полноэкранный режим просмотра */
.fullscreen-gallery {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 9999;
}

/* Добавляем стили для предотвращения прыжка контента */
html.no-scroll {
  overflow: hidden !important;
  margin-right: calc(100vw - 100%); /* Компенсируем ширину скроллбара */
}

body.no-scroll {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
  height: 100%;
}

.fullscreen-gallery.active {
  opacity: 1;
}

.fullscreen-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 90vh;
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  text-align: center; /* Центрируем содержимое по горизонтали */
  width: 90%; /* Задаем ширину для контейнера */
}

.fullscreen-slide.active {
  opacity: 1;
  display: block;
  width: auto;
}

.fullscreen-slide img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  margin: 0 auto; /* Центрируем изображение */
  display: inline-block; /* Чтобы margin работал правильно */
}

/* Специальный стиль для вертикальных изображений */
.fullscreen-slide img.vertical {
  max-height: 85vh; /* Уменьшаем максимальную высоту */
  width: auto; /* Автоматическая ширина для сохранения пропорций */
  max-width: 80vw; /* Ограничиваем ширину для сохранения пропорций */
}

/* Адаптивное масштабирование для мобильных устройств */
@media (max-width: 768px) {
  .fullscreen-slide img.vertical {
    max-height: 80vh; /* Еще меньше высота на мобильных */
    max-width: 90vw;
  }
}

.fullscreen-slider {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center; /* Для дополнительного центрирования */
}

.fullscreen-slider img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s ease;
  cursor: zoom-in;
  margin: 0 auto; /* Центрирование изображения */
  display: block; /* Для правильной работы margin: auto */
}

.fullscreen-slide.fade-in {
  animation: fadeInEffect 0.4s ease forwards;
}

.fullscreen-slide.fade-out {
  animation: fadeOutEffect 0.4s ease forwards;
}

@keyframes fadeInEffect {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}

@keyframes fadeOutEffect {
  from {
      opacity: 1;
  }
  to {
      opacity: 0;
  }
}

.fullscreen-slider img:hover {
  transform: scale(1.02);
}

/* Пагинация для полноэкранного режима */
.fullscreen-pagination {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 1002;
}

.fullscreen-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.fullscreen-dot.active {
  background-color: #fff;
  transform: scale(1.3);
}

.fullscreen-dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.fullscreen-gallery .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2em;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.fullscreen-gallery .arrow:hover {
  background-color: rgba(0, 58, 117, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.fullscreen-gallery .arrow.arrow-left {
  left: 5%;
}

.fullscreen-gallery .arrow.arrow-right {
  right: 5%;
}

.fullscreen-gallery .close-button {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5em;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s ease;
}

.fullscreen-gallery .close-button:hover {
  background-color: rgba(255, 0, 0, 0.7);
  transform: scale(1.1) rotate(90deg);
}

/* Стили для ленты миниатюр */
.gallery .thumbnails {
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.gallery .thumbnails img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  border: 2px solid #ffffff;
  transition: all 0.3s ease;
  border-radius: 5px;
  opacity: 0.7;
}

.gallery .thumbnails img.active {
  border-color: #62da83;
  opacity: 1;
  transform: scale(1.1);
}

.gallery .thumbnails img:hover {
  opacity: 1;
}

/* кнопка пожертвовать */
#bat {
  /*background: radial-gradient(circle, #0db2ac, #a9ffcd); 
  color: white;
  border: 10px double #fff;
  padding: 5px;
  font-size: 42px;*/
  height: 90px;
  width: 90px;
  box-shadow: 0 2px 4px darkslategray;
  cursor: pointer;
  transition: all 0.2s ease;
  position: fixed;
  z-index: 9999;
  left: 90%;
  top: 88%;
  border-radius: 50%;
  animation: pulse-border 2s infinite;
  display: flex;
      align-items: center;
      justify-content: center;
}

@keyframes pulse-border {
  0% {
      box-shadow: 0 0 20px rgba(255, 182, 193, 0.6);
  }
  50% {
      box-shadow: 0 0 30px rgba(255, 182, 193, 0.8), 0 0 30px rgba(255, 182, 193, 0.4);
  }
  100% {
      box-shadow: 0 0 20px rgba(255, 182, 193, 0.6);
  }
}

#bat:hover {
 background-color: #65b9e6;
}

#bat:active {
  box-shadow: 0 0 2px darkslategray;
  transform: translateY(2px);
}


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

button  {
  font-size: 1.1em;
  padding: 1rem 1rem;
  color: #f4f4f4;
  text-transform: uppercase;
}
.batton_orange {
  background-color: #f7931e;
  color: #ffffff;
  padding: 10px 15px;
  font-size: 13px;
  border-radius: 30px;
  cursor: pointer;
  border: 4px solid #fff;
  box-shadow: 0 0 10px #454545;
  transition: all 0.3s;
  position: relative;
  display: inline-block;
  overflow: hidden;
  z-index: 1;
}

/* Изменение фона при наведении */
.batton_orange:hover {
  background-color: #fa9b2a;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Изменение фона при нажатии */
.batton_orange:active {
  background-color: #f47b01;
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* Добавляем псевдоэлемент для эффекта расширения */
.batton_orange::after {
  content: "";
  display: inline-block;
  height: 100%;
  width: 100%;
  border-radius: 30px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  background-color: #f7931e;
  transition: all 0.4s;
}

/* Эффект расширения и исчезновения при наведении */
.batton_orange:hover::after {
  transform: scaleX(1.4) scaleY(1.6);
  opacity: 0;
}

/* Класс для анимации появления (можно добавить при необходимости) */
.batton_orange-animated {
  animation: moveInBottom 0.5s ease-out;
  animation-fill-mode: backwards;
}

@keyframes moveInBottom {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}

.btn {
  text-decoration: none;
  border: 4px solid rgb(146, 148, 248);
  position: relative;
  overflow: hidden;
  background: #0198ff;
  cursor: pointer;
  width: 95%;
  border-radius: 40px;
  font-size: 1.1rem;
  box-shadow: inset 0 0 20px #d6ffe6, inset 0px 0 2px 2px #ffffff, 0 0 5px #000;
  text-shadow: 0px 0px 12px #0c1721;
  margin-bottom: 15px;
  font-family: 'Oswald';
  animation: breathe 3s infinite ease-in-out; /* Добавляем анимацию дыхания */
}

/* Добавляем ключевые кадры для анимации дыхания */
@keyframes breathe {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}
.btn:hover {
  box-shadow: 1px 1px 25px 10px rgba(146, 148, 248, 0.4), inset 0 0 0 2px #ffffff; /* Сохраняем внутреннюю рамку при наведении */
  animation-play-state: paused; /* Останавливаем анимацию при наведении */
}

.btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgb(248 146 206), transparent);
  transition: all 650ms;
}

.btn:hover:before {
  left: 100%;
}

/* Стили для анимации превращения в монеты */
.coin {
  position: absolute;
  width: 30px;
  height: 30px;
  background: radial-gradient(circle at 15px 15px, #ffd700, #f0c800);
  border-radius: 50%;
  z-index: 1000;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  opacity: 0;
  transform: scale(0);
}

.coin::before {
  content: "₽";
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  font-weight: bold;
  color: rgba(0, 0, 0, 0.7);
  font-size: 16px;
}

.coin.animate {
  opacity: 1;
  transform: scale(1);
  animation: coinFly 2s ease-out forwards;
}

@keyframes coinFly {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(0) rotate(0deg);
  }
  10% {
    opacity: 1;
    transform: scale(1) translateY(0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.5) translateY(calc(var(--rand-y) * 400px - 200px)) translateX(calc(var(--rand-x) * 800px - 400px)) rotate(calc(var(--rand-r) * 1080deg));
  }
}

/* Стили для анимации исчезновения кнопки */
.btn.clicked {
  animation: buttonVanish 0.5s forwards;
}

@keyframes buttonVanish {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.7);
    opacity: 0;
  }
}

.btn.reappear {
  animation: buttonReappear 0.5s forwards;
}

@keyframes buttonReappear {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}


#nic {
  width: 7.5vw; /*200px;*/
  margin-top: 2vw;
  box-shadow: rgb(136, 190, 255) 0px 0px 10px;
  border: none;
  
  /* Добавляем анимацию пульсации */
  animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: rgb(136, 190, 255) 0px 0px 10px;
  }
  50% {
    box-shadow: rgb(136, 190, 255) 0px 0px 20px;
  }
}

table {
   width: 100%;
}
/*цитата*/
@import url(https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css);
@import url(https://fonts.googleapis.com/css?family=Raleway:400,800);
figure#snip1139 {
  font-family: 'Raleway', Arial, sans-serif;
  position: relative;
  overflow: hidden;
  min-width: 220px;
  max-width: 100%;
  width: 100%;
  color: #333;
  text-align: left;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
}
figure#snip1139 * {
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-transition: all 0.35s cubic-bezier(0.25, 0.5, 0.5, 0.9);
transition: all 0.35s cubic-bezier(0.25, 0.5, 0.5, 0.9);
}
figure#snip1139 img {
  max-width: 34%;
  vertical-align: middle;
  height: auto;
  margin-top: initial;
  background: url(/images/banners/donate_about_quote.png) #fff no-repeat 50% 1%;
  padding-top: 50px;
  background-size: 97%;    float: right;    margin-left: 20px;    margin-bottom: 0;
}
figure#snip1139 blockquote {
position: relative;
background-color: #ffffff;
padding: 25px 30px;
font-size: 1.15rem;
font-weight: 500;
text-align: left;
margin: 0;
line-height: 1.3em;
font-style: italic;
font-family: "Sofia Sans Condensed", sans-serif; text-align: justify;
}
figure#snip1139 blockquote:before,
figure#snip1139 blockquote:after {
font-family: 'FontAwesome';
content: "\201C";
position: absolute;
font-size: 50px;
opacity: 0.3;
font-style: normal;
}
figure#snip1139 blockquote:before {
top: 25px;
left: 20px;
}
figure#snip1139 blockquote:after {
content: "\201D";
right: 20px;
bottom: 0;
}
figure#snip1139 .arrow {
  top: 50%;
  width: 0;
  height: 0;
  border-left: 0 solid transparent;
  border-right: 25px solid transparent;
  border-top: 25px solid #ffffff;
  margin: 0;
  position: absolute;
  right: -24px;
}
figure#snip1139 .author {
  position: absolute;
  bottom: 120px;
  width: 35%;
  padding: 5px 25px;
  color: #000000;
  background-color: #ffffff;
  margin: 0;
  text-transform: uppercase;
  right: 3px;
}
figure#snip1139 .author h5 {
opacity: 0.8;
margin: 0;
font-weight: 800;
}
figure#snip1139 .author h5 span {
font-weight: 400;
text-transform: none;
padding-left: 5px;
}
blockquote>div {text-indent: 20px;}

#fotofooter{
  background: url(/sbor/images/footer.jpg) center/cover no-repeat;
-webkit-mask-image: linear-gradient(to bottom, transparent, black);
        mask-image: linear-gradient(to bottom, transparent, black);
  height: 100%; margin-top: -25%;}

@media (max-width: 1920px) {
  #nic {width: 7.5vw;}
  header { width: 72%;height: 39.5vw;}
  .content {width: 70%;}
  header h1  {margin: 2vw 0 0 10vw;width: 65%;}
  header h2 {line-height: inherit;  margin-left: 9.5vw;}
  p {text-indent: 26px; }
  iframe {max-width: 79vw;}
  #karta_rekvezit {width: 80%;} 
  menu {top: -78px; height: 2.5vw;}
  #summa {margin-top: 170px;}
  .logo,.column {width: 17vw;}
  
}


@media (min-width: 1600px) and (max-width: 1919px) {
  #summa {margin-top:180px;}
  .logo,.column {width: 17.5vw;}
}




@media (max-width: 1600px) {
  header {width: 80%;}
  header h1 {margin:2vw 20vw 0 10vw; width: 60%;font-size: 2em;}
  .content {width: 80%;}
  header h2 {font-size: 0.75em;margin-left: 10.1vw;}
  #summa {margin-top:136px;}
  #nic {width: 7.5vw;}
  .logo,.column {width: 20.2vw;}
  .batton_orange {font-size: 0.9vw;}
  p {font-size: 1.2vw;}
  #target {
     font-size: 1vw;}
}





@media (max-width: 1366px) {
  header {
      height:39vw; }
  header h1 {width: 53%; font-size: 2rem; margin: 1.5vw 14vw 0 11vw;}
  header h2 {margin-left: 11.1vw;}
  .column {max-width: 27%;font-size: 12px;}
  div>div>h3 {  font-size: 1.3rem;}
  .batton_orange {font-size: 0.9vw;}
  button {font-size: 0.8rem;}
  h3#donats { font-size: 1rem;}
  p {font-size: 1.5vw;}
  .gallery {width: 25vw; }
}





@media (max-width: 1280px) {
  header {height: 39vw;}
 
  #nic {top: -45%;}
  .progress-circle-container {}
  menu a {font-size: 0.85rem;}
  .progress-text {font-size: 0.8rem;}
  #summa {margin-top: 10vw;}
}


@media (min-width: 1025px) and (max-width: 1279px) {
  header h1 {width: 65%; font-size: 2rem; margin: 1.5vw 10vw 0 11vw;}
  header h2 {margin-left: 17.1vw;font-size: 0.7rem;}
  button {font-size: 0.7rem;}
  .amount-btn { padding: 7px!important;}
  menu {top: -68px; width: 76%;}
  .column { border-left: 12px; border-right: 12px solid #3aa6a08a;  border-bottom: 12px solid #3aa6a08a;border-left: 12px solid #3aa6a08a;}
  .logo {border-top: 12px solid #3aa6a08a;border-left: 12px solid #3aa6a08a;border-right: 12px solid #3aa6a08a;right: -12px;}
}





@media (max-width: 1024px) {
  header {width: 100%;}
  .logo img {
      width: 120px;
      margin-top: -30px;
      z-index: 100;
      position: relative;    }
  .gallery {width: 42vw;}
  .content {width: 100%;}
  .column {width: 100%; font-size: 1rem; max-width: 100%!important; border: none; }
  header h1 {margin-left: 30vw; font-size: 2.4em;}
  header h2 { margin-left: 28.5vw; font-size: 0.8rem; width: 65%;}
  p {font-size: 1.9vw;}
  #nic { width: 140px;}
  #ik_bat {left: 13vw;}
  h3#donats {font-size: 1.5rem;}
  header h3 { position: absolute;
              z-index: 99;
              color: #fff;
              width: 33%;
              left: 5vw;
              top: 3%;
              line-height: 1.7;
              font-size: 16px;}

  menu {min-width: 102%; top: -69px;height: 3.3vw;}
  .text-block {width: 100%;}           
  /* кнопка пожертвовать */
  #bat { left: 39%;}
  .logo {display: none;}
  #horug {
      background: none;
      background-size: 0%;
      width: 9vw;
      height: 0px;
      position: relative;
      top: -6.5vw;
  }
button {font-size: 1.5rem;}
.btn {width:50%}
iframe {max-width: 34vw;}
#krest {width: 10%!important;}
}






@media (max-width: 768px) {
  .logo::before,
  .logo::after {display: none;}
  .logo:hover {opacity: 1;}
  #ik_bat {display: block;left: 0vw;}
  #nic {
    width: 70px;
    position: relative;
    display: block;
    left: 3vw;
}
.batton_orange {display: none;}

  iframe {max-width: 100%;}
  .flex-container {
      display: flex;
      flex-direction: column;
      flex-wrap: nowrap;
      gap: 10px;
  }
  #target {
    top: -3vw;
    left: 50%;
    font-size: 3vw;
    text-align: left!important;
  }
  p {font-size: 1.2rem;} 
  .content {width: 100%; margin: 0 auto; font-size: 15px; line-height: 1.3; background-color: #fff; padding:4px;}
  .text-block img {float: none;}
  .text-block {margin:0}
  header {width: 100%; padding: 0; height: auto;; background: url(/images/banners/nic.jpg) no-repeat 4% 4%; background-size: 15%;}
  menu {display: none;}
  .logo {display: block; height: auto; border: none; height: 69vw; width: 100%; margin: 0; position: relative; 
    top: 0;  right: 0;  background: url(images/smobile4.png) center/cover no-repeat;
    z-index: 1200; clip-path: none; overflow: visible; background-size: 83%; background-position: 60% -7%;}
  
  .logo img {width: 10%;
    margin: 0 auto;
    top: -195px;
    transform: scale(-1, 1) /*new*/;
    position: relative;
    left: -39vw;
    z-index: 1201;
    display: block; 
    filter: drop-shadow(0px 0px 2px #15719b);}
                                      #horug {display: none;
                                          background: none;
                                          background-size: 0%;
                                          width: initial;
                                          height: max-content;
                                          position: relative;
                                          top: 16px;z-index: 50;margin-bottom: 202px;
                                      }

  .column { max-width: 100%; background-color: #f0f0f0; padding: 10px; border: 1px solid #ddd; top:15px; left: 0; order: -1;}                                  
#foto_1 {width: 100%; margin: -20px 0 0 0;}
#foto_2 {width: 100%;;}
#krest {width: 11%!important;}

  header h1 {
      margin: 0;
      padding:20px 8px 0 20vw;
      line-height: 1;
      float: none;
      width: 100%;
      font-size: 2.5em;
      text-align: left;
      
      font-size: 1.5rem;text-shadow: none; 
  }
  
  h2#donats {line-height: 1.3;}
  header h2 { line-height: 1.2;width: 100%;float: none;font-size: 1rem;color: #493030; margin: 0;
  text-align: left; padding: 10px 10px 10px 20vw; background-color:transparent}
  header h3 { width: 74%;  left: 18%; top: 4%;}
  .kont {
        width: 100%;
   
}


 iframe {width: 95%; margin:20px; padding-right: 20px;height: 65%;}
#summa {margin-top: 0vw;z-index: 100;width: 100%;left: 0px;padding-right: 6vw;text-align: center;background: floralwhite;padding-top: 34px;text-shadow: none;}
  


  body {background: url('/images/banners/fonmobile4.jpg') no-repeat 50% 0%;background-size:101%;}
  #karta_rekvezit { width: 100%;display: block;}
  #map-container {width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; height: 95vh !important; min-height: 95vh !important;}
  #map-container iframe {width: 100% !important; height: 50vh !important;}
  .gallery {width: 100%; margin: 0;}
  figure#snip1139 img {max-width: 100%!important;padding-top: 0px!important;}
  figure#snip1139 .author {bottom: 50px; width: 100%; left: 20%;}
  figure#snip1139 {margin-top: 20px;}
  .btn {width: 90%;}
  #fotofooter {width: 99.4%;}
  .popup {width: 99%;}
  .magnifier {display: none!important;}
  .amount-btn {font-size: 1.5rem;}
  video {width: 100%; height: auto; margin-left: 0!important; margin-bottom: 5px!important;}
  tr {font-weight: normal; font-size: 1rem; font-family: 'Sofia Sans Condensed';}
  thead>tr {font-size: 1.2rem;}
  thead {background: #d67232;}
  
  /* Автоперенос для колонки с именами в таблице донатов */
  table td:first-child {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 150px;
    white-space: normal;
  }

  /*журнал строительства*/

  .line-bg {width: 12px; left: 8px;}
  .circle {width: 20px;height: 20px;}
  .timeline-nav {left: -45px;}
  .line-active {left: 11px;width: 12px;}
  .timeline-content {width: calc(100% - 40px);left: 20px; min-height: 300px;}
  .content-item h3 {font-size: 1.8rem;}
  .content-item p {margin-top: 5px;line-height: 1.3; text-align: left;}
  .content-item.active {
    opacity: 1 !important;
    z-index: 10;
    display: block !important;
  }
  .timeline-container {max-height: max-content;padding-right: 20px;}
  .timeline-content img {width: 100%!important; margin-left: 0; max-width: 100%!important;}
  .line-bg span {display: block;}


} 

@media (max-width: 690px) {
  header {
          height: auto;
   }
  
}

@media (max-width: 550px) {
 header {
        height:auto;
  }
}

@media (max-width: 420px) {
  body { background-size: 130%;}
  header h2 {font-size: 0.8rem;}
  #nic {
    width: 55px;
    top: 3vw;
}
  /*.logo img {width: 300px;}*/
}

@media (max-width: 285px) {
  body { background-size: 150%;}
  #nic {
    width: 35px;
  }
 }


@media (min-width: 768px) {
      #bat {display: none;}
}



label {
  display: block;
  text-align: center;
}
input {
  text-align: center;
  width: 84%;
  border: solid 4px #34a57e;
  display: block;
  margin: 0 auto;
  height: 60px;
  background: #fa962524;
  border-radius: 8px;
}


#close-thank-you {
      background: rgb(52, 165, 126);
      color: white;
      padding: 10px 20px;
      border: none;
      border-radius: 5px;
      cursor: pointer;
  }
#close-thank-you:hover {
      background: rgb(42, 145, 106);
  }





 
/*платежная форма оплаты*/
 
div#payment-form {
  margin-left: -20px;
}

 
  /* Новые стили для формы оплаты */
  #payment-overlay {
      display: none;
      position: fixed;
      top: 16px;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.7);
      z-index: 3000; /* Увеличиваем z-index, чтобы быть поверх всего */
  }
  
  #payment-container {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: white;
      padding: 20px;
      border-radius: 10px;
      width: 90%;
      max-width: 600px;
      max-height: 90vh;
      overflow-y: auto;
  }
  
  #payment-close {
      position: absolute;
      top: 10px;
      right: 10px;
      font-size: 24px;
      cursor: pointer;
      color: #666;
      z-index: 2002;
  }
  
  #payment-close:hover {
      color: #000;
  }
  
  #payment-error-container {
      display: none;
      padding: 20px;
      text-align: center;
  }
  
  #payment-error-container h3 {
      margin-bottom: 15px;
      color: #333;
  }
  
  #retry-payment {
      background: #f7931e;
      color: white;
      padding: 10px 20px;
      border-radius: 5px;
      cursor: pointer;
      border: none;
      margin-top: 15px;
  }
  
  #retry-payment:hover {
      background: #f71e68;
  }

  iframe {
    margin-top: 30px;
    border: double 10px #94cfcc;
}

.content-item iframe  {margin-top: 19px; border: none; float: right;}




/* По умолчанию показываем круговой индикатор, скрываем линейный */


.progress-line-container {
  display: none;
}

/* При ширине экрана 768px и меньше – показываем линейный, скрываем круговой */
@media (max-width: 768px) {
  .progress-circle-container {
    display: none;
  }
  .progress-line-container {
    display: block;
    position: relative;
    width: 100%;
    height: 8vw;
    background: #ddd;
    border-radius: 0;
    border-top: ridge 6px #b3b3b3;
    border-bottom: ridge 6px #b3b3b3; /*solid 2px #fff;*/
    box-shadow: inset -1px 1px 10px #a60f50;
    z-index: 101;
    top: 68vw;
  }
  
  .progress-line-fill {
    height: 100%;
    width: 0%; /* Стартовое значение до загрузки данных */
    background: #37cb43;
    border-radius: 0px;
    transition: width 1.5s ease-in-out;
    position: relative;
    overflow: hidden;
  }
  
  .progress-line-fill::after {
    content: '';
    position: absolute;
    top: 0px;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 100%);
    animation: shine-effect 3s infinite;
  }
  
  @keyframes shine-effect {
    0% {
      left: -150%;
    }
    100% {
      left: 150%;
    }
  }
  
  
  .progress-line-container .progress-text {
    position: absolute;
        top: 3vw;
        right: 0;
        font-size: 0.9rem;
        font-weight: bold;
        color: #522a44;
        background: white;
        padding: 2px 5px;
        border-radius: 15px;
        border: 3px solid #ffffff;
        z-index: 999;
        width: 13vw;
        height: 10vw;
        box-shadow: inset 0 0 15px #673047, 0 0 3px #555;
}
}

@media (max-width: 1023px) {
  .column {
    position: static !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}
@media (min-width: 1024px) and (max-height: 710px) {
  h3#donats {
    line-height: 1.25;
    font-size: 0.8rem;
    margin-bottom: -1vw;
}
}

/* Стили для мобильного меню */
.mobile-menu {
  display: none; /* По умолчанию скрыто */
  flex-direction: column;
  margin: 0;
  padding: 0;
  width:auto;
  z-index: 1000;
}

.menu-item {
  position: relative;
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 0 20px 20px 0px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  overflow: visible;
  background: radial-gradient(circle at center, rgb(87 43 43 / 84%) 0%, rgb(145 40 40 / 74%) 70%);
}

.menu-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-label {
  position: absolute;
  left: 100%;
  width: 0;
  height: 100%;
  background-color: #b67f6dde;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  padding: 0;
  color: white;
  font-family: "Monomakh", serif;
  font-size: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border-top-right-radius: 24px;
  border-bottom-right-radius: 24px;
  z-index: -1; /* Изменено со значения 999 на -1, чтобы элемент находился под menu-item */
}

.menu-item.active .menu-label {
  width: 200px;
  padding: 0 15px;
  margin-left: -16px;
  z-index: -1; /* Изменено со значения 10 на -1, чтобы сохранить позицию под menu-item */
}

/* Добавляем анимацию для закрытия меню при переключении между пунктами */
.menu-item.closing .menu-label {
  width: 0;
  padding: 0;
  transition: width 0.3s ease, padding 0.3s ease;
}

/* Иконки */
.camera-icon, .diary-icon, .megaphone-icon, .award-icon, .home-icon, .trophy-icon {
  width: 30px;
  height: 30px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.camera-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 15.2C9.2 15.2 7 13 7 10.2S9.2 5.2 12 5.2 17 7.4 17 10.2 14.8 15.2 12 15.2zM9 2L7.2 4H4C2.9 4 2 4.9 2 6V18C2 19.1 2.9 20 4 20H20C21.1 20 22 19.1 22 18V6C22 4.9 21.1 4 20 4H16.8L15 2H9z'/%3E%3C/svg%3E");
}

.diary-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8C6.9 2 6 2.9 6 4v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9h-4v4h-2v-4H9V9h4V5h2v4h4v2z'/%3E%3C/svg%3E");
}

.megaphone-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.8-1-3.3-2.5-4v8c1.5-.7 2.5-2.2 2.5-4zM14 3.2v2.1c2.9.9 5 3.5 5 6.7s-2.1 5.8-5 6.7v2.1c4-.9 7-4.5 7-8.8s-3-7.9-7-8.8z'/%3E%3C/svg%3E");
}

.award-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19 5h-2V3H7v2H5c-1.1 0-2 .9-2 2v1c0 2.55 1.92 4.63 4.39 4.94.63 1.5 1.98 2.63 3.61 2.96V19H7v2h10v-2h-4v-3.1c1.63-.33 2.98-1.46 3.61-2.96C19.08 12.63 21 10.55 21 8V7c0-1.1-.9-2-2-2zM7 10.82C5.84 10.4 5 9.3 5 8V7h2v3.82zM19 8c0 1.3-.84 2.4-2 2.82V7h2v1z'/%3E%3C/svg%3E");
}

.home-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E");
}

.trophy-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z'/%3E%3C/svg%3E");
}

/* Скрываем изображения с классом mobile-only-image на десктопе */
.mobile-only-image {
  display: none;
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
  /* Показываем изображения с классом mobile-only-image на мобильных */
  .mobile-only-image {
      display: block;
  }
  
  .mobile-menu {
      display: flex;
      align-items: center;
      position: relative;
      z-index: 9999;
      margin-bottom: 20px;
  }

  /* Скрываем обычное меню на мобильных */
  menu {
      display: none;
  }
  
  /* Адаптивные размеры иконок меню */
  .menu-item {
      width: 13.5vw;
      height: 13.5vw;
      max-width: 75px;
      max-height: 75px;
      min-width: 50px;
      min-height: 50px;
      margin-bottom: 2vw;
  }
  
  .camera-icon, .diary-icon, .megaphone-icon, .award-icon, .home-icon, .trophy-icon {
      width: 8.25vw;
      height: 8.25vw;
      max-width: 45px;
      max-height: 45px;
      min-width: 30px;
      min-height: 30px;
  }
  
  /* Размер шрифта в выезжающих подписях */
  .menu-label {
      font-size: 1rem;
  }
  
  .menu-item.active .menu-label {
      width: 200px;
      padding: 0 15px;
  }
  
  /* Анимация для меток */
  @keyframes labelAppear {
      from {
          width: 0;
          opacity: 0;
      }
      to {
          width: 200px;
          opacity: 1;
      }
  }
  
  .menu-item.active .menu-label {
      animation: labelAppear 0.3s forwards;
      z-index: -1;
  }
  
  /* Позиционирование мобильного меню */
  .mobile-menu {
      position: absolute;
      top: 28vw;
      left: auto;
      transform: none;
  }
  
  /* Корректировка хедера для мобильных */
  header {
      overflow: visible !important;
  }
}

/* Коррекция для средних мобильных устройств (планшеты и большие телефоны) */
@media (min-width: 481px) and (max-width: 768px) {
  .menu-item {
      width: 9vw;
      height: 9vw;
      max-width: 60px;
      max-height: 60px;
      min-width: 45px;
      min-height: 45px;
      margin-bottom: 1.5vw;
  }
  
  .camera-icon, .diary-icon, .megaphone-icon, .award-icon, .home-icon, .trophy-icon {
      width: 5.5vw;
      height: 5.5vw;
      max-width: 36px;
      max-height: 36px;
      min-width: 27px;
      min-height: 27px;
  }
  
  .menu-label {
      font-size: 0.95rem;
  }
  
  .menu-item.active .menu-label {
      width: 190px;
      padding: 0 13px;
  }
  
  /* Позиционирование меню для этого диапазона */
  .mobile-menu {
      top: 25vw;
  }
}

/* Специальная корректировка для диапазона 351-410px (накладка на прогресс бар) */
@media (min-width: 351px) and (max-width: 410px) {
  .menu-item {
      width: 10vw;
      height: 10vw;
      max-width: 52px;
      max-height: 52px;
      min-width: 40px;
      min-height: 40px;
      margin-bottom: 1.5vw;
  }
  
  .camera-icon, .diary-icon, .megaphone-icon, .award-icon, .home-icon, .trophy-icon {
      width: 6vw;
      height: 6vw;
      max-width: 32px;
      max-height: 32px;
      min-width: 24px;
      min-height: 24px;
  }
  
  .menu-label {
      font-size: 0.85rem;
  }
  
  .menu-item.active .menu-label {
      width: 170px;
      padding: 0 11px;
  }
  
  /* Сдвигаем меню чуть ниже, чтобы не накладывалось на прогресс бар */
  .mobile-menu {
      top: 30vw;
  }
}

/* Дополнительные адаптации для диапазона 411-480px */
@media (min-width: 411px) and (max-width: 480px) {
  .menu-item {
      width: 12vw;
      height: 12vw;
      max-width: 63px;
      max-height: 63px;
      min-width: 48px;
      min-height: 48px;
      margin-bottom: 1.8vw;
  }
  
  .camera-icon, .diary-icon, .megaphone-icon, .award-icon, .home-icon, .trophy-icon {
      width: 7.5vw;
      height: 7.5vw;
      max-width: 39px;
      max-height: 39px;
      min-width: 27px;
      min-height: 27px;
  }
  
  .menu-label {
      font-size: 0.9rem;
  }
  
  .menu-item.active .menu-label {
      width: 180px;
      padding: 0 12px;
  }
  
  /* Позиционирование меню для этого диапазона */
  .mobile-menu {
      top: 26vw;
  }
}

/* Для совсем маленьких экранов (до 350px) */
@media (max-width: 350px) {
  .menu-item {
      width: 11vw;
      height: 11vw;
      max-width: 50px;
      max-height: 50px;
      margin-bottom: 1.5vw;
  }
  
  .camera-icon, .diary-icon, .megaphone-icon, .award-icon, .home-icon, .trophy-icon {
      width: 7vw;
      height: 7vw;
      max-width: 32px;
      max-height: 32px;
  }
  
  .mobile-menu {
      top: 28vw;
  }
}
#otchet {display: none;}




