:root {
  --color-title-green: #516936;
  --color-title-red:#BC2B18;
  
}

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
	
	



    body {
      font-family: Arial, serif;
      overflow-x: hidden;
	  
	  
    }

    .hero {
      background-image: url('img/ChitMir-Fon1.png');
      background-size: cover;
      background-position: center top;
      background-repeat: no-repeat;
      height: 100vh;
      color: white;
      position: relative;
      text-align: center;
    }

    .header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      padding: 10px 20px;
      position: absolute;
      width: 100%;
      top: 0;
      left: 0;
      z-index: 100;
    }

    .logo-img-80 {
      height: 150px;
    }
	.logo-img-130 {
      height: 80px;
    }

    .nav {
      position: absolute;
      top: 20px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 25px;
      z-index: 101;
	   font-family: Arial, serif;
    }

    .nav a {
      color: white;
      font-weight: bold;
      text-decoration: none;
      font-size: 25px;
      text-shadow: 1px 1px 2px black;
    }

    .social-icons {
      display: flex;
      gap: 15px;
      align-items: flex-start;
      margin-top: 20px;
    }

    .social-icons img {
      width: 30px;
      height: 30px;
      cursor: pointer;
    }

    .burger {
      display: none;
      flex-direction: column;
      cursor: pointer;
      gap: 5px;
      margin-top: 20px;
    }

    .burger div {
      width: 25px;
      height: 3px;
      background-color: white;
    }

    .mobile-nav {
      display: none;
      flex-direction: column;
      background-color: rgba(89, 104, 59, 0.9);
      position: absolute;
      top: 70px;
      right: 0;
      width: 200px;
      padding: 20px;
      z-index: 99;
	   font-family: Arial, serif;
    }

    .mobile-nav a {
      color: white;
      text-decoration: none;
      padding: 10px 0;
      border-bottom: 1px solid white;
    }

    .content {
      position: relative;
      top: 40%;
      transform: translateY(-30%);
      padding: 0 20px;
	  font-family: Arial, serif;
    }

    .subtitle {
      font-size: 40px;
      color: var(--color-title-green);
      font-weight:600;
      margin-bottom: 10px;
	  //transform: scaleX(1.3); 
	  
    }

    .title {
      font-size: 90px;
      font-weight: bold;
	  //transform: scaleX(1.3); 
      color: var(--color-title-red);
      margin: 10px 0;
    }

    .support {
      margin-top: 20px;
      font-size: 14px;
      color: white;
      text-shadow: 1px 1px 2px black;
    }

    .support-fond-img {
      width: 50px;
      margin-bottom: 5px;
    }
	.title-data{
	  width: 200px;
      margin-bottom: 5px;
	}
.ticker-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: red;
  color: white;
  font-weight: bold;
  font-size: 40px;
  white-space: nowrap;
  overflow: hidden;
  z-index: 10;
  box-sizing: border-box;
  font-family: "CartoonFunCyrillic";
}

.ticker {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}



@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    /* смещаем ровно на половину ширины ticker (длина одного набора текста) */
    transform: translateX(-50%);
  }
}
 .event-block {
      background-size: cover;
      background-position: center;
      position: relative;
      color: #fff;
      padding: 2rem;
      
      overflow: hidden;
	  font-family: Arial, serif;
    }
    /*.event-block::before {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(0,0,0,0.5);
      z-index: 0;
    }*/
    .event-content, .event-meta {
      position: relative;
      z-index: 1;
    }
	.event-content h1 {
      font-size:3.5rem;
	  color:var(--color-title-green);
	  
    }
	.event-content p {
      font-size:1.3rem;
	  color: #000;
    }
    .meta-item {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      /*background: rgba(255,255,255,0.9);*/
      color:var(--color-title-red);
      padding: 0.75rem 1rem;
      border-radius: 0.5rem;
	  font-size: 1.3rem;
	  
    }
    .meta-icon {
      font-size: 3rem;
      color:var(--color-title-red);
    }
	.event-content a{
		text-decoration: underline;	
		color:var(--color-title-green);
		font-size: 1.3rem;
	}
	.event-content a:hover {
  color: red; /* цвет при наведении */
  
}

.book-promo-bg {
  width: 100%; /* блок на всю ширину */
  background: 
    linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
    url('img/books.jpg') center/cover no-repeat;
  padding: 60px 20px;
  box-sizing: border-box;
  
}

.book-content {
  text-align: center;
  max-width: 900px; /* содержимое ограничиваем, чтобы текст не растягивался слишком */
  margin: 0 auto; /* по центру */
}


.book-title {
  font-size: 2.4rem;
  font-weight: bold;
  color: var(--color-title-red);
  margin-bottom: 10px;
  font-family: Arial, serif;
}

.book-subtitle {
  font-size: 1.3rem;
  color: #c86b2b;
  margin-bottom: 25px;
  font-family: Arial, serif;
  font-weight:800;
}

.book-button {
  background: var(--color-title-green);
  color: white;
  border: none;
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(201,124,93,0.4);
  text-decoration:none;
}

.book-button:hover {
  background: #c86b2b;
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(201,124,93,0.5);
}
.promo-banner {
  width: 100%;
  background: url('img/withoutFlowers.png') center/cover no-repeat;
  min-height: 250px;
  position: relative; /* для overlay */
  color: var(--color-title-red);
  font-family: Arial, serif;
  font-weight:600;
  display: flex;
  align-items: center; /* центрирует вертикально содержимое */
  justify-content: center; /* если нужно горизонтально по центру */
}

.banner-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  z-index: 0; /* чтобы фон был позади текста */
}

.banner-content {
  position: relative; /* чтобы быть над overlay */
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center; /* вертикальное центрирование внутри banner-content */
  width: 100%;
  padding: 0 5%; /* отступы по бокам */
  flex-wrap: wrap;
}

.banner-column {
  flex: 1 1 30%;
  min-width: 200px;
  padding: 10px;
  text-align: center;
  color: var(--color-title-red);
}
.banner-left p {
  font-size: 1.5rem;
  line-height: 1.4;
  font-weight:600;
}

.banner-center h1 {
  font-size: 2.5rem;
  text-align: center;
  margin: 0;
  font-weight:600;
  
}

.banner-right h2 {
  font-size: 1.5rem;
  margin-bottom: 5px;
  font-weight:600;
  
}

.banner-right ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1.5rem;
  font-weight:600;
}

.banner-right li {
  margin: 3px 0;
}


   .gallery-mobile-only .swiper-slide img { width: 100%; height: 300px; object-fit: cover; }

.gallery-title {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  color: #337AB7;
  margin: 40px 0 20px 0;
  font-family: Verdana, sans-serif;
}
 

/* Десктопная линия */
.gallery-desktop {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}
.gallery-desktop-only { display: flex; }
.gallery-mobile-only { display: none !important; }

.creative-item {
  flex: 0 0 auto;
  width: 250px;
  border-radius: 15px;
  position: relative;
  perspective: 1000px;
  cursor: pointer;
  overflow: hidden;
 
}
.creative-item.visible { opacity: 1; transform: translateY(0); }

.creative-item img {
  width: 100%; display: block;
  filter: brightness(0.85);
  transition: transform 0.5s, filter 0.5s;
}
.creative-item:hover img { filter: brightness(1); }

.year-label {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%);
  background: var(--color-title-red); padding: 5px 10px;
  font-weight: bold; border-radius: 5px;
  color: #fff; pointer-events: none;
}
.creative-item:hover .year-label { background: #ff6347; }
.creative-gallery-title {
	font-family: Arial, serif;
  font-size: 36px; 
  color: var(--color-title-green);
  font-weight: bold; 
  padding: 60px 0;
  display: block;           /* блоковый элемент для центрирования */
  text-align: center;       /* центрирование текста */
  position: relative;
  
}

.creative-gallery-title::after {
  content: '';
  display: block;
  width: 150px;              /* ширина линии под заголовком */
  height: 4px;
  background-color: var(--color-title-green);
  margin: 10px auto 0;      /* авто-отступ слева и справа центрирует линию */
  border-radius: 2px;
}
 
 
 .festival-program {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

.festival-program h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 10px;
}

.festival-program .subtitle {
  text-align: center;
  margin-bottom: 30px;
  color: #666;
}


.event-link {
  display: inline-block;
  margin-top: 8px;
  margin-right:10px;
  padding: 6px 12px;
  background: #aa5924;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: background 0.3s;
}
.event-link:hover {
  background: #723c19;
}



.event-video-link{
background: var(--color-title-red);
}
.event-video-link:hover{
background: #762216;
}







/* Вкладки программы */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
	justify-content: center;
	
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
   color:var(--color-title-green);
    border-radius: 10px 10px 0 0;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    transition: background 0.3s, color 0.3s;    
    border: 2px solid #c4bd3e; 
}

.tab.active {
    /*background: linear-gradient(135deg, #6a11cb, #2575fc);*/
    color: white;
	background: linear-gradient(135deg, #59903f, #c4bd3e);
	border:none;
	
}
.events {
    position: relative; /* чтобы градиент позиционировался относительно блока мероприятий */
	margin-bottom: 20px; /* чтобы кнопка была ниже градиента */
}
/* Контейнер программ */
.program-container {
    background: #fff;
    
	 max-width: 1000px; /* фиксированная ширина */
    margin: 0 auto;   /* центрирование по горизонтали */
}

/* Вкладки дней */
.day-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
	justify-content: center;
}

.day-tab {
    padding: 8px 16px;
    cursor: pointer;
    border: 2px solid #59903f; 
    border-radius: 8px;
    transition: background 0.3s;
	color:var(--color-title-green);
}

.day-tab.active {
    background: #59903f;
    color: white;
	border:none;
}

/* Карточки мероприятий */
.event-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background: #ffffff; /* чистый белый для контраста */
    border-left: 5px solid var(--color-title-red); /* акцентный красный из афиши */
    padding: 18px 20px;
    margin-bottom: 18px;
    border-radius: 12px;
    overflow: hidden;
    max-height: 1000px;
    transition: max-height 0.5s ease, opacity 0.5s ease, transform 0.3s ease;
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.event-card.hidden {
    max-height: 0;
    padding: 0 15px;
    margin-bottom: 0;
    opacity: 0;
}

/* Стили карточки */


.event-title {
    font-size: 1.2em;
    margin-bottom: 6px;
    color: #aa5924; /* глубокий тёмный для читаемости */
    font-weight: 600;
}
.event-info {
    flex: 1; /* остальная информация занимает оставшееся место */
}
.event-place {
    font-style: italic;
    margin-bottom: 10px;
    
}
.event-time {
    width: 120px;
    font-weight: bold;
    color:#aa5924; 
    margin-right: 20px;
    flex-shrink: 0;
    font-size: 1.1em;
}
/* Кнопка "Показать все" */
.show-more-container {
    position: relative;
    margin-top: 10px;
    text-align: center;
	display: flex;
    flex-direction: column;
    align-items: center;
}

/* Градиент-засветление */
.show-more-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(rgba(52,158,236,0), rgba(47,125,36,1));
    pointer-events: none;
    z-index: 1; /* под кнопкой */
}


.show-more-btn {
	background: #59903f;
    color: white;	
    padding: 10px 20px;
    border: none;    
    color: white;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    z-index: 1;
    position: relative;
}
.program-fest{
background-color: #faead2;
width:100%;
height:100%;
padding-bottom:30px;
}


.photo-block {
    display: flex;
    flex-wrap: wrap;
    border-left: 2px solid #fff; /* рамка слева для каждого изображения */
    border-top: 2px solid #fff;  /* рамка сверху для каждого изображения */
  }

  .photo-block a {
    display: block;
    flex: 1 1 auto;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* плавный переход */
}

.photo-block a:hover {
    transform: scale(1.5); /* лёгкое увеличение при наведении */
    box-shadow: 0 30px 40px rgba(0,0,0,0.9); /* тень вокруг фото */
	border-left: 2px solid #fff; /* рамка слева для каждого изображения */
    border-top: 2px solid #fff;  /* рамка сверху для каждого изображения */
	z-index:10;
}

.photo-block img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease; /* плавная анимация самого изображения */
}

.partners {
  max-width: 1600px;
  margin: 1px auto;
  padding: 20px;
  text-align: center;
}

.partners h2 {
  font-size: 32px;
  
  font-weight: 700;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  align-items: center;
  justify-items: center;
}

.partners-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.partners-grid a:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.partners-grid img {
  max-width: 140px;
  max-height: 70px;
  object-fit: contain;
  
}
footer {
  background: var(--color-title-green);        /* тёмный фон */
  color: #eee;             /* светлый текст */
  padding: 20px;
  margin-top: auto;        /* чтобы футер был снизу */
}

.footer-info {
  display: flex;
  flex-wrap: wrap;         /* перенос на мобильных */
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1500px;
  margin: 0 auto;
}

.footer-info img {
  max-width: 120px;
  height: auto;
}

.footer-info div {
  flex: 1 1 250px;         /* ширина колонок на больших экранах */
  min-width: 200px;
  line-height: 1.5;
}

.footer-info strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1rem;
  color: #fff;
}

.footer-info a {
  color: #9ecfff;          /* аккуратный голубой */
  text-decoration: none;
}

.footer-info a:hover {
  text-decoration: underline;
}
.program{
background-color: #faead2;
}
.program-municipal img{
	max-width: 80%;
  height: auto;
  border-radius: 12px;
  display: inline-block; /* обязательно */
  filter:brightness(0.6);
}
.program-municipal img:hover{
	filter:none;
}
.program-municipal:hover .view-button{
	color: #009a9a;
	background-color:white;
}
.program-municipal{
	width: 100%;
  text-align: center; /* центрируем все inline/inline-block элементы */
  position:relative;
}
.view-button{
	position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  padding: 8px 16px;
  border: 2px solid white;
  border-radius: 6px;
  text-transform: uppercase;
  pointer-events: none;
  font-size: 16px;
  background-color:transparent;
}
/*-------------------------------------------------------------------------*/

    /* Адаптивность */
	@media (max-width: 1280px) {
	.partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
	.subtitle{
	font-size:30px;}
		 .banner-center h1 {
    margin: 15px 0;
	font-size:1.7rem;
  }
  .banner-left p {
    font-size: 1.3rem;    
}
.banner-right h2, .banner-right ul {
    font-size: 1.3rem;    
}
	
	}
	
	@media (max-width: 992px) {
      .nav {
        display: none;
      }

      .burger {
        display: flex;
      }

      .mobile-nav {
        display: flex;
      }
	  .mobile-nav.hidden {
        display: none;
      }
	  .logo-img{height:180px;}
	.title{
	font-size:80px;}
	 
      .subtitle {
        font-size: 30px;
      }


	 .banner-center h1 {
    margin: 15px 0;
	font-size:1.3rem;
  }
  .banner-left p {
    font-size: 1rem;    
}
.banner-right h2, .banner-right ul {
    font-size: 1rem;    
}

	  }
    @media (max-width: 767px) {
	.footer-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-info img {
    margin-bottom: 15px;
  }

  .footer-info div {
    min-width: auto;
  }
	.photo-block img {
      height: 150px;
    }
	.tabs { gap: 10px; }
.tab-btn { flex: 1; font-size: 14px; padding: 10px; text-align: center; }
.day-card { padding: 16px; border-radius: 16px; }
.event-item { padding: 12px 16px; border-radius: 12px; }
.event-title { font-size: 15px; }
.event-place, .event-desc, .event-date { font-size: 13px; }
.toggle-btn, .download-btn { width: 100%; font-size: 14px; padding: 12px; text-align: center; }
	.event {
    flex-direction: column;
    border-left: none;
    border-top: 2px solid #337AB7;
  }
  .event time {
    width: auto;
    margin-bottom: 5px;
  }
  .creative-gallery-title { font-size: 28px; margin-bottom: 20px;}
	.gallery-desktop-only { display: none; }
      .gallery-mobile-only { display: block !important; }
	  
	  .gallery-title {
    font-size: 28px;
    margin: 20px 0 15px 0;
  }
	  
      .title {
        font-size: 70px;
      }

      .subtitle {
        font-size: 30px;
      }

      .logo-img {
        height: 80px;
      }


      
	  .banner-overlay {
    flex-direction: column;
    text-align: center;
  }
  .banner-column {
    flex: 1 1 100%;
  }
  .banner-center h1 {
    margin: 15px 0;
	font-size:1.7rem;
  }
  
  #carousel {
        margin-bottom: 10vh;
    }
    }
	@media (max-width: 600px) {
  .partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}
	@media (max-width: 480px) {
    .photo-block img {
      height: 100px;
    }
	 .banner-center h1 {
    margin: 15px 0;
	font-size:1.3rem;
  }
  .banner-left p {
    font-size: 1rem;    
}
.banner-right h2, .banner-right ul {
    font-size: 1rem;    
}
 .title {
        font-size: 50px;
      }

      .subtitle {
        font-size: 20px;
      }

      .logo-img {
        height: 80px;
      }
	  .title-data{width:80px;}
	  .support{font-size:11px;}

  }