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

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  color: #222b3a;
  background: #fff;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s;
  width: 100%;
  overflow-x: hidden;
}

/* Универсальные стили для секций - предотвращение наложений */
section {
  position: relative;
  width: 100%;
  display: block;
  clear: both;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

/* Предотвращение наложений между секциями */
section + section {
  margin-top: 0;
}

/* Убеждаемся, что контейнеры не выходят за границы */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
}

/* Предотвращение наложений элементов */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Убеждаемся, что flex-контейнеры работают правильно */
.flex, .d-flex {
  display: flex;
}

/* Сброс для предотвращения проблем с float */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* Верхняя голубая полоса */
.header-topbar {
  background: #0288D1;
  color: #fff;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 15px;
  padding: 0 32px;
  height: 38px;
}
.header-topbar-left {
  display: flex;
  align-items: center;
  gap: 32px;
}
.header-topbar-left a {
  color: #fff;
  text-decoration: underline;
  margin: 0 4px;
}
.header-topbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 230px;
}
.social-icon {
  color: #fff;
  font-size: 20px;
  margin-left: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.icon-location::before { content: '\1F4CD'; margin-right: 4px; }
.icon-mail::before { content: '\2709'; margin: 0 4px 0 8px; }
.icon-id::before { content: '#'; margin: 0 4px 0 8px; }
.icon-fb::before { content: '\f09a'; font-family: 'FontAwesome'; }
.icon-ig::before { content: '\f16d'; font-family: 'FontAwesome'; }
.topbar-social {
  color: #ffc400 !important;
  font-size: 22px;
  margin-right: 10px;
  margin-left: 0;
}

/* Основная жёлтая полоса */
.main-header {
  background: #FFC412; 
  color: #222b3a;
  font-family: 'Montserrat', Arial, sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 68px;
}

.header-logo img {
  height: 100px;
  width: auto;
  display: block;
  position: static;
}


  
.header-nav {
  display: flex;
  gap: 32px;
}
.nav-link {
  color: #222b3a;
  text-decoration: none;
  font-size: 22px;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}
.nav-link.active, .nav-link:hover {
  border-bottom: 2px solid #008080;
  color: #008080;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.lang-dropdown {
  position: relative;
}
.lang-btn {
  background: transparent;
  border: none;
  color: #222b3a;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  padding: 6px 16px 6px 10px;
  border-radius: 4px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-btn .arrow {
  font-size: 13px;
}
.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 110%;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  min-width: 80px;
  z-index: 10;
}
.lang-menu.show {
  display: block;
}
.lang-option {
  background: none;
  border: none;
  color: #222b3a;
  font-size: 16px;
  padding: 8px 16px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}
.lang-option:hover {
  background: #ffc400;
}
.donate-btn {
  background: transparent;
  border: 2px solid #222b3a;
  color: #222b3a;
  font-size: 18px;
  font-weight: 600;
  padding: 8px 32px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.donate-btn:hover {
  background: #222b3a;
  color: #ffc400;
} 
.instagram-svg svg,
.facebook-svg svg,
.whatsapp-svg svg {
  margin-left: 0;
  margin-right: 4px;
} 

/* Новые стили для обновлённой шапки */
.header-top {
  background: #0288D1;
  color: #bfc9d1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  height: 40px;
  font-size: 16px;
}

.header-top-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  gap: 0;
}

.header-top-left span {
  margin: 0 140px 0 0;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.header-top-left span:first-child {
  margin-left: 0;
}

.header-top-left span:last-child {
  margin-right: 0;
}

.header-top-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 0;
}

.social-icon {
  display: flex;
  align-items: center;
  color: #ffc400;
  text-decoration: none;
  font-size: 22px;
  transition: color 0.2s;
}

.social-icon:hover svg path,
.social-icon:hover svg circle {
  fill: #fff200;
}

.header-top-right a {
  color: #ffc107;
  margin-left: 16px;
  font-size: 22px;
  text-decoration: none;
}

.header-bottom {
  background: #FFC412;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 64px;
  height: 110px;
}

.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  max-width: 60%;
  min-width: 0;
}

.header-logo img {
  width: 160px;
  height: 160px;
  margin-right: 8px;
  flex-shrink: 0;
}

.header-title {
  font-size: 28px;
  color: #223356;
  font-weight: 700;
  line-height: 1.1;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}

.header-menu {
  display: flex;
  gap: 32px;
  margin-left: 40px;
}

.header-menu a {
  color: #223356;
  text-decoration: none;
  font-size: 22px;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  position: relative;
  transition: color 0.2s;
}

.header-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #223356;
  transition: width 0.3s cubic-bezier(0.4,0,0.2,1);
}

.header-menu a.active,
.header-menu a:hover {
  color: #223356;
}

.header-menu a.active::after,
.header-menu a:hover::after {
  width: 100%;
}

.header-lang-btn {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-shrink: 0;
  min-width: fit-content;
}

.lang-switch {
  color: #223356;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-weight: 500;
}

.lang-switch .arrow {
  margin-left: 4px;
  font-size: 16px;
}

.header-btn {
  background: transparent;
  border: 2px solid #223356;
  color: #223356;
  font-size: 22px;
  font-weight: 500;
  padding: 12px 40px;
  border-radius: 3px;
  cursor: pointer;
  letter-spacing: 4px;
  transition: background 0.2s, color 0.2s;
}

.header-btn:hover {
  background: #223356;
  color: #fff;
}

/* Бургер-меню */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.burger-menu span {
  width: 100%;
  height: 3px;
  background: #223356;
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
} 

.header-top, .header-bottom, .header-top *, .header-bottom * {
  font-family: 'Montserrat', Arial, sans-serif;
}

/* Адаптивные стили для Header и Hero */
@media (max-width: 1024px) {
  .header-bottom {
    padding: 0 32px;
    height: 90px;
  }
  
  .header-logo img {
    width: 120px;
    height: 120px;
  }
  
  .header-title {
    font-size: 24px;
  }
  
  .header-menu {
    gap: 24px;
    margin-left: 30px;
  }
  
  .header-menu a {
    font-size: 20px;
  }
  
  .header-lang-btn {
    gap: 24px;
  }
  
  .header-btn {
    font-size: 18px;
    padding: 10px 30px;
  }
  
  .hero h1 {
    font-size: 48px;
  }
  
  .hero h2 {
    font-size: 28px;
  }
  
  .hero p {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  /* Header Top - компактная версия для мобильных */
  .header-top {
    display: flex;
    padding: 0 10px;
    height: 36px;
    min-height: 36px;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
  }
  
  .header-top-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    flex-wrap: nowrap;
    overflow: hidden;
  }
  
  .header-top-left > * {
    margin: 0;
    font-size: 8px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    line-height: 1.2;
    flex-shrink: 0;
    vertical-align: middle;
  }
  
  .header-top-left span {
    margin: 0;
    font-size: 8px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    line-height: 1.2;
    flex-shrink: 0;
    vertical-align: middle;
  }
  
  .header-top-left .address-svg,
  .header-top-left .mail-svg {
    margin-right: 0;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
  }
  
  .header-top-left .address-svg svg,
  .header-top-left .mail-svg svg {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    vertical-align: middle;
  }
  
  /* Все элементы на одном уровне - включая регистрационный номер */
  .header-top-left span:nth-child(2),
  .header-top-left span:nth-child(4),
  .header-top-left span:nth-child(5) {
    font-size: 8px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin: 0;
  }
  
  .header-top-right {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 12px;
    flex-shrink: 0;
    justify-content: flex-end;
  }
  
  .header-top-right .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
  }
  
  .header-top-right .social-icon svg {
    width: 14px;
    height: 14px;
  }
  
  /* Header Bottom - адаптивный */
  .header-bottom {
    padding: 0 20px;
    height: 110px !important;
    position: relative;
    gap: 10px;
  }
  
  .header-bottom {
    padding: 0 10px !important;
  }
  
  .header-logo {
    flex-shrink: 1;
    max-width: 35%;
    min-width: 0;
    margin-right: 4px;
    padding-left: 0;
    margin-left: 0;
  }
  
  .header-logo img {
    width: 70px !important;
    height: 70px !important;
    margin-right: 3px !important;
    flex-shrink: 0;
  }
  
  .header-title {
    font-size: 12px !important;
    line-height: 1.2;
    flex-shrink: 1;
    min-width: 0;
    overflow: visible;
    white-space: normal;
  }
  
  .header-title div:first-child {
    font-size: 12px !important;
  }
  
  .header-title div:last-child {
    font-size: 10px !important;
  }
  
  .header-lang-btn {
    flex-shrink: 0;
    min-width: fit-content;
    gap: 8px !important;
    margin-left: auto;
  }
  
  /* Скрываем обычное меню на мобильных */
  .header-menu {
    position: fixed;
    top: 128px;
    left: 0;
    width: 100%;
    background: #FFC412;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 0;
    margin-left: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-height: calc(100vh - 128px);
    overflow-y: auto;
  }
  
  .header-menu.active {
    transform: translateX(0);
  }
  
  .header-menu a {
    width: 100%;
    padding: 15px 0;
    font-size: 20px;
    border-bottom: 1px solid rgba(34, 51, 86, 0.1);
  }
  
  .header-menu a:last-child {
    border-bottom: none;
  }
  
  /* Показываем бургер-меню */
  .burger-menu {
    display: flex;
  }
  
  /* Адаптируем языковой селектор и кнопку */
  .header-lang-btn {
    gap: 12px;
  }
  
  .lang-btn {
    font-size: 16px;
    padding: 8px 12px;
  }
  
  .header-btn {
    font-size: 14px;
    padding: 8px 20px;
    letter-spacing: 2px;
  }
  
  /* Hero секция - адаптивная */
  .hero {
    min-height: 60vh;
    padding: 40px 20px;
  }
  
  .hero-content {
    padding: 0 15px;
  }
  
  .hero h1 {
    font-size: 32px;
    margin-bottom: 16px;
  }
  
  .hero h2 {
    font-size: 20px;
    margin-bottom: 16px;
  }
  
  .hero p {
    font-size: 16px;
    margin-bottom: 24px;
    line-height: 1.5;
  }
  
  .hero-btn {
    font-size: 16px;
    padding: 12px 30px;
  }
}

@media (max-width: 480px) {
  .header-top {
    padding: 0 8px;
    height: 34px;
    min-height: 34px;
    gap: 4px;
  }
  
  .header-top-left {
    gap: 4px;
    flex-wrap: nowrap;
  }
  
  .header-top-left > * {
    margin: 0;
    font-size: 7px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
  }
  
  .header-top-left span {
    font-size: 7px;
    margin-bottom: 0;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
  }
  
  .header-top-left .address-svg svg,
  .header-top-left .mail-svg svg {
    width: 9px;
    height: 9px;
  }
  
  /* Уменьшаем размер текста для адреса, почты и регистрационного номера */
  .header-top-left span:nth-child(2),
  .header-top-left span:nth-child(4),
  .header-top-left span:nth-child(5) {
    font-size: 7px;
    white-space: nowrap;
    margin: 0;
  }
  
  .header-top-right {
    margin-top: 0;
    width: auto;
    justify-content: flex-end;
    gap: 2px;
    margin-left: 10px;
  }
  
  .header-top-right .social-icon {
    width: 18px;
    height: 18px;
  }
  
  .header-top-right .social-icon svg {
    width: 12px;
    height: 12px;
  }
  
  .header-bottom {
    padding: 0 8px !important;
    height: 105px !important;
    gap: 8px;
  }
  
  .header-logo {
    flex-shrink: 1;
    max-width: 30%;
    min-width: 0;
    margin-right: 3px;
    padding-left: 0;
    margin-left: 0;
  }
  
  .header-logo img {
    width: 60px !important;
    height: 60px !important;
    margin-right: 2px !important;
    flex-shrink: 0;
  }
  
  .header-title {
    font-size: 10px !important;
    line-height: 1.2;
    flex-shrink: 1;
    min-width: 0;
    overflow: visible;
    white-space: normal;
  }
  
  .header-title div:first-child {
    font-size: 10px !important;
  }
  
  .header-title div:last-child {
    font-size: 8px !important;
  }
  
  .header-lang-btn {
    flex-shrink: 0;
    min-width: fit-content;
    gap: 6px !important;
    margin-left: auto;
  }
  
  .lang-btn {
    font-size: 13px !important;
    padding: 6px 10px !important;
  }
  
  .header-btn {
    font-size: 11px !important;
    padding: 6px 12px !important;
  }
  
  .header-menu {
    top: 126px;
    max-height: calc(100vh - 126px);
  }
  
  .header-top-right {
    gap: 8px;
  }
  
  .header-top-right .social-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .header-menu a {
    font-size: 18px;
    padding: 12px 0;
  }
  
  .burger-menu {
    width: 25px;
    height: 25px;
  }
  
  .lang-btn {
    font-size: 14px;
    padding: 6px 10px;
  }
  
  .header-btn {
    font-size: 12px;
    padding: 6px 15px;
    letter-spacing: 1px;
  }
  
  .hero {
    min-height: 50vh;
    padding: 30px 15px;
  }
  
  .hero h1 {
    font-size: 28px;
    margin-bottom: 12px;
  }
  
  .hero h2 {
    font-size: 18px;
    margin-bottom: 12px;
  }
  
  .hero p {
    font-size: 14px;
    margin-bottom: 20px;
  }
  
  .hero-btn {
    font-size: 14px;
    padding: 10px 25px;
  }
} 

.address-svg {
  margin-right: 1px;
}

.address-svg svg,
.mail-svg svg {
  margin-right: 0;
} 

.header-top-left .address-svg {
  margin-right: 0;
}
.header-top-left .address-svg svg {
  margin-right: 0;
}
.header-top-left .address-svg,
.header-top-left .mail-svg {
  margin-right: 6px;
}

.header-top-left .address-svg + span,
.header-top-left .mail-svg + span {
  margin-left: 0;
} 

/* HERO SECTION */
.hero {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
  padding: 0;
  z-index: 1;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  background: url('../images/hero.jpg') center/cover no-repeat;
  filter: brightness(0.6);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(0,0,0,0.3);
  color: #fff;
  border-radius: 18px;
  padding: 6px 22px;
  font-size: 18px;
  margin-bottom: 32px;
  letter-spacing: 1px;
  border: 1.5px solid #FFC412;
  position: relative;
}
.hero-badge:before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #FFC412;
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
}
.hero h1 {
  font-size: 64px;
  font-weight: 700;
  margin: 0 0 24px 0;
  line-height: 1.1;
}
.hero h2 {
  font-size: 32px;
  font-weight: 400;
  margin: 0 0 24px 0;
  line-height: 1.2;
}
.hero p {
  font-size: 20px;
  margin: 0 0 32px 0;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.hero-btn {
  background: #1976d2;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  padding: 16px 40px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.hero-btn:hover {
  background: #0d47a1;
} 

/* Social Section */
.social-section {
  padding: 120px 0 220px 0;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(45deg, #7794b6 0%, #dffaff 100%);
}

/* Модальное окно */
svg {
	height: 23rem;
	margin-right: 4rem;
}

#envelope {
  animation: float 2s ease-in-out infinite;
}

#star1, #star2, #star3, #star4, #star5, #star6 {
  animation: blink 1s ease-in-out infinite;
}
#star2 { animation-delay: 100ms; }
#star3 { animation-delay: 500ms; }
#star4 { animation-delay: 700ms; }
#star5 { animation-delay: 300ms; }
#star6 { animation-delay: 200ms }

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes blink {
  0% {
    opacity: 0;
  }
  50% {
    opacity: .5;
  }
  100% {
    opacity: 1;
  }
}

/* Специфичный контейнер для форм */
.container.full-height {
	height: 100vh;
}

form {
	min-width: 25rem;
	
	.title {
		font-family: 'Pacifico', cursive;
		color: #212529;
		font-size: 2.5rem;
	}
	
  .form-control {
    background-color: #f2f6f8;
		border-radius: 2rem;
    border: none;
    box-shadow: 0px 7px 5px rgba(0, 0, 0, 0.11);
		
    &.thick {
      height: 3.3rem;
      padding: .5rem 3.5rem;
    }
		
		&:focus {
			background-color: #f2f6f8;
			border: none;
			box-shadow: 0px 7px 5px rgba(0, 0, 0, 0.11);
		}
  }
	
	.message .form-control {
			padding: .5rem 1.8rem;
	}
	
  ::placeholder {
    font-family: 'Quicksand', sans-serif;
		font-weight: 600;
    font-size: 1.1rem;
    color: #838788;
    position: relative;
    left: 0;
  }
	
  input,
  textarea {
		font-family: 'Quicksand', sans-serif;
    color: #212529;
    font-size: 1.1rem;
  }
	
  .icon {
    color: #57565c;
    height: 1.3rem;
    position: absolute;
    left: 1.5rem;
    top: 1.1rem;
  }
}

form, form .form-group.message textarea {
  box-sizing: border-box;
}

form .form-group.message textarea {
  min-height: 160px;
  height: 180px;
  width: 100%;
  max-width: 100%;
  resize: vertical;
  display: block;
}

.btn.btn-primary {
  font-family: 'Quicksand', sans-serif;
	font-weight: bold;
  height: 2.5rem;
  line-height: 2.5rem;
  padding: 0 3rem;
  border: 0;
  border-radius: 3rem;
  background-image:linear-gradient(131deg, #ffd340, #ff923c, #ff923c, #ff923c);
  background-size: 300% 100%;
  transition: all 0.3s ease-in-out;
}

.btn.btn-primary:hover:enabled {
  box-shadow: 0 0.5em 0.5em -0.4em #ff923cba;
  background-size: 100% 100%;
  transform: translateY(-0.15em);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}
.modal[style*='block'], .modal[style*='flex'] {
  display: flex !important;
}
.modal-content {
  background: #fff;
  margin: 40px auto;
  padding: 32px 24px;
  border-radius: 16px;
  max-width: 1000px;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 35px;
  font-weight: bold;
  color: #6c757d;
  cursor: pointer;
  line-height: 1;
  z-index: 1001;
  transition: color 0.2s ease;
  background: none;
  border: none;
  padding: 0;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #222b3a;
}

.container.d-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  width: 100%;
  height: auto;
}

.modal-content svg {
  height: 22rem;
  width: auto;
  flex-shrink: 0;
}

form {
  min-width: 350px;
  max-width: 400px;
  width: 100%;
  background: none;
  box-shadow: none;
  padding: 0 16px 0 32px;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

form .title {
  font-family: 'Pacifico', cursive;
  color: #212529;
  font-size: 2.5rem;
  text-align: left;
  margin-bottom: 24px;
  margin-left: 0;
  padding-left: 0;
}

form .form-group,
form .form-group.message,
form .btn.btn-primary {
  margin-left: 0;
}

form .form-group {
  margin-bottom: 20px;
}

form .form-group.message {
  margin-bottom: 24px;
}

form .form-group.message textarea {
  min-height: 160px;
  height: 180px;
  width: 100%;
  resize: vertical;
}

form .text-center {
  text-align: right;
  padding-right: 32px;
}

form .btn.btn-primary {
  margin-top: 16px;
}

/* Планшеты - SVG слева, форма справа */
@media (max-width: 1024px) and (min-width: 769px) {
  .modal-content {
    width: 95%;
    max-width: 95%;
    padding: 30px 20px;
    margin: 20px auto;
  }
  
  .container.d-flex {
    gap: 40px;
  }
  
  .modal-content svg {
    height: 18rem;
    width: auto;
    flex-shrink: 0;
  }
  
  form {
    min-width: 300px;
    max-width: 400px;
    padding: 0 16px 0 24px;
  }
  
  form .title {
    font-size: 2rem;
  }
}

/* Мобильные устройства - SVG сверху, форма снизу */
@media (max-width: 768px) {
  .modal {
    padding: 10px;
    align-items: flex-start;
    padding-top: 20px;
  }
  
  .modal-content {
    width: 95%;
    max-width: 95%;
    padding: 20px 15px;
    margin: 0 auto;
    max-height: 90vh;
    overflow-y: auto;
    align-items: center;
  }
  
  .container.d-flex {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    width: 100%;
    padding: 0;
  }
  
  .modal-content svg {
    height: 14rem;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    flex-shrink: 0;
    display: block;
  }
  
  form {
    min-width: 100%;
    max-width: 100%;
    padding: 0;
    width: 100%;
  }
  
  form .title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 20px;
  }
  
  form .form-group {
    margin-bottom: 16px;
  }
  
  form .form-group.message {
    margin-bottom: 20px;
  }
  
  form .form-group.message textarea {
    min-height: 120px;
    height: 140px;
  }
  
  form .text-center {
    text-align: center;
    padding-right: 0;
  }
  
  .modal-close {
    font-size: 28px;
    top: 10px;
    right: 15px;
    width: 30px;
    height: 30px;
  }
}

/* Маленькие мобильные устройства */
@media (max-width: 480px) {
  .modal {
    padding: 5px;
    padding-top: 15px;
  }
  
  .modal-content {
    width: 98%;
    max-width: 98%;
    padding: 15px 10px;
    margin: 0 auto;
    max-height: 95vh;
  }
  
  .container.d-flex {
    gap: 15px;
  }
  
  .modal-content svg {
    height: 10rem;
    max-width: 250px;
  }
  
  form .title {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }
  
  form .form-group {
    margin-bottom: 14px;
  }
  
  form .form-group.message textarea {
    min-height: 100px;
    height: 120px;
  }
  
  .modal-close {
    font-size: 24px;
    top: 8px;
    right: 10px;
    width: 28px;
    height: 28px;
  }
}

/* Секция "Наша мета" */
.goals-section {
  background: linear-gradient(45deg, #7794b6 0%, #dffaff 100%);
  padding: 80px 0;
  margin: 0;
  overflow: hidden;
}
.goals-header {
  max-width: 1200px;
  margin: 0 auto 40px auto;
  padding: 0 20px;
}
.goals-badge-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.yellow-outline {
  border: 4px solid #ffc400;
  border-radius: 20px;
  padding: 2px 16px;
  background: #fff;
  display: inline-block;
}
.goals-badge {
  font-size: 1.4rem;
  font-weight: 400;
  color: #222;
  letter-spacing: 0.5px;
  background: none;
  border: none;
  padding: 0;
}
.goals-title {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 10px;
  color: #111;
}
.goals-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.goal-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.07);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.3s cubic-bezier(.4,2,.6,1);
}
.goal-card:hover {
  box-shadow: 0 16px 48px 0 rgba(0,0,0,0.28);
}
.goal-icon {
  background: #00b6ff;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 18px;
}

/* Специальный стиль для красного сердца в карточке психологической поддержки */
.goal-card:nth-child(5) .goal-icon,
.heart-icon {
  color: #ff0000 !important;
}
.goal-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #111;
}
.goal-desc {
  font-size: 1.08rem;
  line-height: 1.5;
  color: #222;
}

/* Стили для кнопки в секции "Наша мета" */
.goals-btn {
  background: linear-gradient(45deg, #ffc400 0%, #ffb347 100%);
  border: none;
  color: #222b3a;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 16px 40px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 196, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.goals-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 196, 0, 0.4);
  background: linear-gradient(45deg, #ffb347 0%, #ffc400 100%);
}

.goals-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(255, 196, 0, 0.3);
}
@media (max-width: 1024px) {
  .goals-cards {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 700px) {
  .goals-header {
    padding: 0 10px;
  }
  .goals-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }
  .goals-title {
    font-size: 1.5rem;
  }
  .goal-card {
    padding: 24px 14px;
  }
  .goals-btn {
    font-size: 1rem;
    padding: 14px 32px;
  }
}

.our-goal-section {
  margin-top: 60px;
  padding-bottom: 60px;
}
.our-goal-section #flip_book_meta {
  width: 298px;
  height: 420px;
  position: relative;
  transition-duration: 1s;
  perspective: 2000px;
}
.our-goal-section #flip_book_meta .front_cover,
.our-goal-section #flip_book_meta .back_cover {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 2.5px 5px 5px 2.5px;
  background-image: url(./assets/images/flip_book_edge_shading.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgb(220, 20, 60);
  box-shadow: 0 0 5px 0 rgb(25, 25, 25, 0.25);
}
.our-goal-section #flip_book_meta .front_cover {
  position: absolute;
  cursor: pointer;
  transform-origin: center left;
  transition: transform 0.5s;
  z-index: 99;
}
.our-goal-section #flip_book_meta .front_cover label {
  width: 100%;
  height: 100%;
  position: absolute;
  cursor: pointer;
}
.our-goal-section #flip_book_meta .page {
  width: 288px;
  height: 400px;
  position: absolute;
  top: 10px;
  left: 1px;
  border-radius: 0 5px 5px 0;
  background-color: white;
  transform-origin: left;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  transition-duration: 0.5s;
}
.our-goal-section #flip_book_meta .front_page {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
}
.our-goal-section #flip_book_meta .front_page label {
  width: 100%;
  height: 100%;
  position: absolute;
  cursor: pointer;
  z-index: 100;
}
.our-goal-section #flip_book_meta .back_page {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
  transform: rotateY(180deg);
  z-index: 100;
}
.our-goal-section #flip_book_meta .back_page label {
  width: 100%;
  height: 100%;
  position: absolute;
  cursor: pointer;
  z-index: 100;
}
.our-goal-section #flip_book_meta .edge_shading {
  width: 288px;
  height: 400px;
  position: absolute;
  z-index: 98;
}
.our-goal-section #flip_book_meta .front_content {
  width: 287px;
  height: 398px;
  position: absolute;
  top: 1px;
  border-radius: 0 5px 5px 0;
  z-index: 97;
}
.our-goal-section #flip_book_meta .back_content {
  width: 287px;
  height: 398px;
  position: absolute;
  top: 1px;
  left: 1px;
  border-radius: 5px 0 0 5px;
  z-index: 97;
}
.our-goal-section #flip_book_meta .back_cover {
  position: relative;
  z-index: -1;
}
.our-goal-section #flip_book_meta #page1 { z-index: 8; }
.our-goal-section #flip_book_meta #page2 { z-index: 5; }
.our-goal-section #flip_book_meta #page3 { z-index: 4; }
.our-goal-section #flip_book_meta #page4 { z-index: 3; }
.our-goal-section #flip_book_meta #page5 { z-index: 2; }
.our-goal-section #cover_checkbox_meta:checked ~ #flip_book_meta {
  transform: translateX(144px);
}
.our-goal-section #cover_checkbox_meta:checked ~ #flip_book_meta .front_cover {
  transform: rotateY(-180deg);
  transition: transform 1.5s, z-index 0.5s 0.5s;
  z-index: 1;
}
.our-goal-section #cover_checkbox_meta:checked ~ #flip_book_meta #cover {
  width: 80%;
  height: 80%;
  position: absolute;
}
.our-goal-section #page1_checkbox_meta:checked ~ #flip_book_meta #page1 {
  transform: rotateY(-180deg);
  z-index: 3;
}
.our-goal-section #page2_checkbox_meta:checked ~ #flip_book_meta #page2 {
  transform: rotateY(-180deg);
  z-index: 4;
}
.our-goal-section #page3_checkbox_meta:checked ~ #flip_book_meta #page3 {
  transform: rotateY(-180deg);
  z-index: 5;
}
.our-goal-section #page4_checkbox_meta:checked ~ #flip_book_meta #page4 {
  transform: rotateY(-180deg);
  z-index: 6;
}
.our-goal-section #page5_checkbox_meta:checked ~ #flip_book_meta #page5 {
  transform: rotateY(-180deg);
  z-index: 9;
}

.our-goal-section #flip_book_meta input[type="checkbox"] {
  display: none;
}

.our-goal-section #flip_book_meta #cover_checkbox_meta:checked ~ .front_cover {
  transform: rotateY(-180deg);
  transition: transform 1.5s, z-index 0.5s 0.5s;
  z-index: 1;
}
.our-goal-section #flip_book_meta #page1_checkbox_meta:checked ~ #page1 {
  transform: rotateY(-180deg);
  z-index: 3;
}
.our-goal-section #flip_book_meta #page2_checkbox_meta:checked ~ #page2 {
  transform: rotateY(-180deg);
  z-index: 4;
}
.our-goal-section #flip_book_meta #page3_checkbox_meta:checked ~ #page3 {
  transform: rotateY(-180deg);
  z-index: 5;
}
.our-goal-section #flip_book_meta #page4_checkbox_meta:checked ~ #page4 {
  transform: rotateY(-180deg);
  z-index: 6;
}
.our-goal-section #flip_book_meta #page5_checkbox_meta:checked ~ #page5 {
  transform: rotateY(-180deg);
  z-index: 9;
}

/* Новая фотогалерея */
.gallery-section {
  margin: 0;
  padding: 80px 0 450px 0;
  background: linear-gradient(45deg, #ffd700 0%, #ffb347 100%);
  overflow: hidden;
}

.gallery-header {
  text-align: center;
  margin-bottom: 50px;
}

.gallery-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

/* Мобильная версия для карточек Заходи */
@media (max-width: 768px) {
  .gallery-categories-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin-top: 30px !important;
    margin-bottom: 40px !important;
    padding: 0 15px !important;
  }
  
  .gallery-category {
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    display: block !important;
  }
  
  .category-image {
    height: 180px !important;
    width: 100% !important;
  }
  
  .category-content {
    padding: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .category-content h3 {
    font-size: 1.2rem !important;
    margin-bottom: 12px !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  
  .category-content p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
}

.gallery-category {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-category:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.category-image {
  height: 200px;
  background: linear-gradient(135deg, #ffc400 0%, #ff8c00 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.category-icon {
  font-size: 3rem;
  color: white;
}

.category-content {
  padding: 20px;
}

.category-content h3 {
  font-size: 1.3rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

.category-content p {
  color: #6c757d;
  line-height: 1.6;
  margin: 0;
  font-size: 0.9rem;
}

/* Модальное окно галереи */
#gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
}

.gallery-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 35px;
  cursor: pointer;
  z-index: 2001;
}

.gallery-content {
  width: 95%;
  max-width: 1400px;
  height: 90%;
  position: relative;
}

.gallery-header {
  text-align: center;
  margin-bottom: 30px;
}

.gallery-header h3 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.gallery-header p {
  color: #ccc;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

/* Фильтр по годам */
.year-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.year-btn {
  background: rgba(255,255,255,0.2);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.year-btn:hover {
  background: rgba(255,255,255,0.3);
}

.year-btn.active {
  background: #ffc400;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  max-height: 70%;
  overflow-y: auto;
  padding: 0 20px;
}

.gallery-item {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 20px;
}

.gallery-prev,
.gallery-next {
  background: rgba(255,255,255,0.2);
  color: white;
  border: none;
  padding: 15px 20px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  transition: all 0.3s ease;
}

.gallery-prev:hover,
.gallery-next:hover {
  background: rgba(255,255,255,0.3);
}

/* Адаптивность */
@media (max-width: 1024px) {
  .gallery-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-categories-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-header h3 {
    font-size: 2rem;
  }
  
  .gallery-header p {
    font-size: 1rem;
  }
  
  .year-filter {
    gap: 10px;
  }
  
  .year-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .gallery-section {
    padding: 40px 0 100px 0;
  }
  
  .gallery-header h3 {
    font-size: 1.5rem;
  }
  
  .gallery-categories-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    padding: 0 15px !important;
    margin-bottom: 40px !important;
  }
  
  .gallery-category {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
  }
  
  .category-image {
    height: 160px !important;
    width: 100% !important;
  }
  
  .category-content {
    padding: 18px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .category-content h3 {
    font-size: 1.1rem !important;
    margin-bottom: 10px !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  
  .category-content p {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  
  .gallery-content {
    width: 100%;
    height: 100%;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  /* Календарь для маленьких экранов */
  .calendar-section {
    padding: 30px 0 150px 0 !important;
  }
  
  .calendar-container {
    padding: 20px 12px !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .calendar-header-controls {
    gap: 6px;
  }
  
  .calendar-nav-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  
  #currentMonth {
    font-size: 1.3rem !important;
    margin: 0 6px !important;
    min-width: 120px;
  }
  
  .weekday {
    padding: 8px 2px;
    font-size: 0.75rem;
  }
  
  .calendar-day {
    padding: 6px 2px;
    font-size: 0.75rem;
    min-height: 35px;
  }
}

/* Секция "Заходи" */
.events-section {
  margin-top: 60px;
  padding: 60px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.events-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.events-header {
  text-align: center;
  margin-bottom: 50px;
}

.events-header h2 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 15px;
}

.events-header p {
  font-size: 1.2rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
}

.events-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.event-category {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.event-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.category-image {
  height: 250px;
  background: linear-gradient(135deg, #ffc400 0%, #ff8c00 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

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

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-overlay h3 {
  color: white;
  font-size: 2rem;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.category-content {
  padding: 20px;
}

.category-year {
  background: linear-gradient(135deg, #ffc400 0%, #ff8c00 100%);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
  font-weight: bold;
  font-size: 0.9rem;
}

.category-content p {
  color: #6c757d;
  line-height: 1.6;
  margin: 0;
}

.events-footer {
  text-align: center;
  margin-top: 50px;
}

.events-footer p {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 20px;
}

.contact-events-btn {
  background: linear-gradient(135deg, #ffc400 0%, #ff8c00 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-weight: 500;
}

.contact-events-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 196, 0, 0.3);
}

/* Галерея */
#gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
}

.gallery-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 35px;
  cursor: pointer;
  z-index: 2001;
}

.gallery-content {
  width: 90%;
  max-width: 1200px;
  height: 80%;
  position: relative;
}

.gallery-header {
  text-align: center;
  margin-bottom: 20px;
}

.gallery-header h3 {
  color: white;
  font-size: 2rem;
  margin-bottom: 10px;
}

.gallery-header p {
  color: #ccc;
  font-size: 1.1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-height: 70%;
  overflow-y: auto;
}

.gallery-item {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
  cursor: pointer;
}

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

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

.gallery-item-caption {
  padding: 15px;
  text-align: center;
}

.gallery-item-caption h4 {
  color: #2c3e50;
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.gallery-item-caption p {
  color: #6c757d;
  font-size: 0.9rem;
  margin: 0;
}

.gallery-navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 20px;
}

.gallery-prev,
.gallery-next {
  background: rgba(255,255,255,0.2);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  transition: background 0.3s ease;
}

.gallery-prev:hover,
.gallery-next:hover {
  background: rgba(255,255,255,0.3);
}

/* Адаптивность для секции заходов */
@media (max-width: 768px) {
  .events-categories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .events-header h2 {
    font-size: 2rem;
  }
  
  .events-header p {
    font-size: 1rem;
  }
  
  .category-image {
    height: 200px;
  }
  
  .category-overlay h3 {
    font-size: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .events-section {
    padding: 40px 0;
  }
  
  .events-header h2 {
    font-size: 1.8rem;
  }
  
  .category-image {
    height: 180px;
  }
  
  .category-overlay h3 {
    font-size: 1.3rem;
  }
  
  .gallery-content {
    width: 95%;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Стили для календаря событий */
.calendar-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 80px 0;
  margin: 0;
  overflow: hidden;
}

.calendar-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  padding: 40px;
  max-width: 600px;
  margin: 0 auto;
}

.calendar-header-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.calendar-nav-btn {
  background: #ffc400;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.calendar-nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 196, 0, 0.4);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 10px;
}

.weekday {
  text-align: center;
  padding: 12px 8px;
  font-weight: 600;
  color: #6c757d;
  font-size: 0.85rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.calendar-day {
  aspect-ratio: 1;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background: white;
  color: #2c3e50;
  font-size: 0.9rem;
}

.calendar-day:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-color: #ffc400;
}

.calendar-day.today {
  background: #ffc400;
  color: white;
  font-weight: bold;
}

.calendar-day.other-month {
  background: #f8f9fa;
  color: #6c757d;
}

.calendar-day.has-events {
  background: linear-gradient(135deg, #ffc400 0%, #ff8c00 100%);
  color: white;
}

.calendar-day.has-events::after {
  content: '📅';
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 0.8rem;
}

/* Модальное окно событий */
#eventModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 3000;
  align-items: center;
  justify-content: center;
}

#eventModal[style*='block'],
#eventModal[style*='flex'] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#eventModal .modal-content {
  background: white !important;
  border-radius: 20px !important;
  padding: 40px !important;
  max-width: 700px !important;
  width: 90% !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3) !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  margin: 0 !important;
}

#eventModalClose {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  cursor: pointer;
  color: #6c757d;
  transition: color 0.3s ease;
}

#eventModalClose:hover {
  color: #dc3545;
}

#eventModalTitle {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 30px;
  text-align: center;
  padding: 0 40px;
}

#eventForm .form-group {
  margin-bottom: 20px;
}

#eventForm label {
  display: block;
  margin-bottom: 8px;
  color: #2c3e50;
  font-weight: 600;
}

#eventForm input,
#eventForm textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

#eventForm input:focus,
#eventForm textarea:focus {
  outline: none;
  border-color: #ffc400;
}

#eventForm textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.btn-primary {
  background: #ffc400;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-danger {
  background: #dc3545;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

/* Адаптивность для календаря */
@media (max-width: 768px) {
  .calendar-section {
    padding: 40px 0 200px 0 !important;
  }
  
  .calendar-container {
    padding: 25px 15px !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  
  .calendar-header {
    margin-bottom: 30px;
  }
  
  .calendar-header h2 {
    font-size: 2rem !important;
  }
  
  .calendar-header p {
    font-size: 1rem !important;
  }
  
  .calendar-header-controls {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    width: 100%;
  }
  
  .calendar-nav-btn {
    padding: 8px 12px !important;
    font-size: 0.75rem !important;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: auto;
  }
  
  #currentMonth {
    font-size: 1.3rem !important;
    flex: 1;
    text-align: center;
    margin: 0 4px !important;
    min-width: 0;
    white-space: nowrap;
  }
  
  .calendar-weekdays {
    gap: 6px !important;
    margin-bottom: 12px !important;
    grid-template-columns: repeat(7, 1fr) !important;
    width: 100%;
    box-sizing: border-box;
  }
  
  .weekday {
    padding: 12px 4px !important;
    font-size: 0.85rem !important;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .calendar-grid {
    gap: 6px !important;
  }
  
  .calendar-day {
    padding: 12px 6px !important;
    font-size: 1rem !important;
    min-height: 50px !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  #eventModal {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  #eventModal {
    padding: 10px !important;
    align-items: center !important;
    justify-content: center !important;
    overflow-y: auto !important;
  }
  
  #eventModal .modal-content {
    max-width: 90vw !important;
    width: 90vw !important;
    max-height: 90vh !important;
    min-height: 90vw !important;
    aspect-ratio: 1 !important;
    padding: 20px 18px !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    position: relative !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  #eventModalTitle {
    font-size: 1.2rem !important;
    margin-bottom: 15px !important;
    padding: 0 10px !important;
    text-align: center !important;
    line-height: 1.3 !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
  }
  
  #eventModal .modal-content > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    flex: 1 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
  }
  
  #eventModal .modal-content > div > div {
    font-size: 0.9rem !important;
    padding: 15px !important;
    flex-shrink: 0 !important;
  }
  
  /* Компактний блок з усією інформацією - дата, час, місце */
  #eventModal .modal-content > div > div > div:not(:has(p)):not(:last-child) {
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
  }
  
  /* Опис */
  #eventModal .modal-content > div > div > div:has(p) {
    margin-bottom: 12px !important;
  }
  
  /* Блок "Додати до календаря" - останній */
  #eventModal .modal-content > div > div > div:last-child {
    margin-bottom: 0 !important;
  }
  
  #eventModal .modal-content strong {
    font-size: 0.85rem !important;
    display: inline-block;
    min-width: 50px;
    margin-right: 5px;
  }
  
  #eventModal .modal-content p {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    margin-top: 6px !important;
    margin-bottom: 0 !important;
    word-wrap: break-word !important;
  }
  
  #eventDate,
  #eventTime,
  #eventLocation {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    display: inline-block;
    word-wrap: break-word !important;
  }
  
  #eventDescription {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    margin-top: 6px !important;
    margin-bottom: 0 !important;
  }
  
  /* Блок "Додати до календаря" */
  #eventModal .modal-content > div > div > div:last-child {
    margin-top: 12px !important;
    padding: 12px !important;
    flex-shrink: 0 !important;
  }
  
  #eventModal .modal-content > div > div > div:last-child h4 {
    font-size: 0.9rem !important;
    margin-bottom: 8px !important;
  }
  
  #eventModal .modal-content > div > div > div:last-child p {
    font-size: 0.75rem !important;
    margin-bottom: 10px !important;
    line-height: 1.4 !important;
  }
  
  #eventModal .modal-content > div > div > div:last-child button {
    font-size: 0.85rem !important;
    padding: 10px 15px !important;
  }
  
  #eventModalClose {
    top: 8px !important;
    right: 12px !important;
    font-size: 24px !important;
    z-index: 10;
    padding: 3px !important;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn-primary,
  .btn-danger {
    width: 100%;
  }
}

/* Стили для формы напоминаний в модальном окне */
#reminderForm {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 15px;
}

#reminderPhone {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

#reminderPhone:focus {
  border-color: #0088cc;
  box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.1);
}

#reminderForm button[type="submit"] {
  background: #0088cc;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

#reminderForm button[type="submit"]:hover {
  background: #006699;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 136, 204, 0.3);
}

#reminderForm button[type="submit"]:active {
  transform: translateY(0);
}

/* Стили для встроенной секции напоминаний */
#eventModal .modal-content > div > div > div:last-child {
  margin-top: 20px;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 15px;
}

/* Адаптивность для формы напоминаний */
@media (max-width: 768px) {
  #reminderForm {
    flex-direction: column;
    gap: 15px;
  }
  
  #reminderEmail {
    width: 100%;
  }
  
  #reminderForm button[type="submit"] {
    width: 100%;
  }
}

/* Hero Section Styles */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 900px;
  padding: 0 20px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.hero-btn {
  background: #0288D1;
  color: white;
  border: 2px solid #0288D1;
  padding: 15px 30px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-btn:hover {
  background: white;
  color: #0288D1;
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 136, 209, 0.3);
}

/* Responsive Hero */
@media (max-width: 768px) {
  .hero {
    height: 70vh;
    min-height: 500px;
  }
  
  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 25px;
  }
  
  .hero-btn {
    padding: 12px 25px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
    margin-bottom: 20px;
  }
  
  .hero-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Footer Styles */
.footer {
  background: #0288D1;
  color: white;
  padding: 30px 0 20px 0;
  margin: 0;
  margin-top: 0;
  text-align: center;
  position: relative;
  clear: both;
  overflow: hidden;
}

.footer-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Social Media Icons */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-social .social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social .social-icon:hover {
  transform: translateY(-2px);
}

.footer-social .social-icon svg {
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
}

.footer-social .social-icon:hover svg {
  filter: brightness(0) sepia(1) saturate(5) hue-rotate(200deg);
}

/* Navigation Links */
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-nav .nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-nav .nav-link:hover {
  color: #fbbf24;
}

.footer-nav .nav-link.active {
  color: #fbbf24;
}

/* Privacy Policy Link */
.footer-privacy {
  margin-bottom: 20px;
}

.privacy-link {
  color: #000000;
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.3s ease;
}

.privacy-link:hover {
  color: #fbbf24;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #374151;
}

.copyright {
  color: white;
  font-size: 0.8rem;
  text-align: center;
}

/* Scroll to Top Button in Footer */
.scroll-top-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid #f59e0b;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.scroll-top-btn:hover {
  background: #f59e0b;
}

.scroll-top-icon {
  width: 22px;
  height: 22px;
  filter: brightness(0) sepia(1) saturate(5) hue-rotate(45deg);
  transition: filter 0.3s ease;
}

.scroll-top-btn:hover .scroll-top-icon {
  filter: brightness(0) invert(1);
}

/* Floating Scroll to Top Button */
.floating-scroll-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #8B0000;
  border: 3px solid #8B0000;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
}

.floating-scroll-btn:hover {
  background: white;
  border-color: #8B0000;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(139, 0, 0, 0.4);
}

.floating-scroll-icon {
  width: 35px;
  height: 35px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.floating-scroll-btn:hover .floating-scroll-icon {
  filter: brightness(0) sepia(1) saturate(5) hue-rotate(0deg);
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer {
    padding: 25px 0 15px 0;
  }
  
  .footer-nav {
    gap: 15px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .footer-social .social-icon {
    width: 35px;
    height: 35px;
  }
  
  .footer-social .social-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .floating-scroll-btn {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }
  
  .floating-scroll-icon {
    width: 30px;
    height: 30px;
  }
}

/* Timeline Section Styles */
.timeline-section {
  padding: 140px 0 120px 0;
  margin: 0;
  margin-bottom: 0;
  background: linear-gradient(45deg, #7794b6 0%, #dffaff 100%);
}

.timeline-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.timeline-badge {
  display: inline-block;
  border: 2px solid #ffc400;
  border-radius: 9999px;
  padding: 6px 14px;
  color: #2c3e50;
  font-weight: 600;
  background: #fff;
  margin-bottom: 20px;
}

.timeline-header h2 {
  font-size: 2.4rem;
  color: #2c3e50;
  margin: 16px 0 10px;
}

/* Timeline Styles */
.timeline {
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 15px 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background: #000000;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 15px 30px;
  position: relative;
  background: inherit;
  width: 50%;
  box-sizing: border-box;
  overflow: visible;
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: calc(50% - 8px);
  right: -8px;
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 16px;
  z-index: 1;
}

.timeline-item.right::after {
  left: -8px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  width: 50px;
  height: 2px;
  top: calc(50% - 1px);
  right: 8px;
  background: #000000;
  z-index: 1;
}

.timeline-item.right::before {
  left: 8px;
}

.timeline-item .date {
  position: absolute;
  display: inline-block;
  top: calc(50% - 8px);
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 1;
  white-space: nowrap;
  min-width: 80px;
}

.timeline-item.left .date {
  right: -140px;
}

.timeline-item.right .date {
  left: -140px;
}

/* Квітень 2022 (1-я карточка, left) - дальше от точки */
.timeline-item.left:nth-child(1) .date {
  right: -170px;
}

/* 2022. gada aprīlis - немного правее */
.timeline-item.left:nth-child(1) .date[data-i18n="timeline_date_april_2022"] {
  right: -185px;
}

/* Літо 2022 (2-я карточка, right) - стандартное положение */
/* 2022. gada vasara - левее */
.timeline-item.right:nth-child(2) .date[data-i18n="timeline_date_summer_2022"] {
  left: -180px;
}

/* Осінь 2022 (3-я карточка, left) - стандартное положение */
/* 2022. gada rudens - правее */
.timeline-item.left:nth-child(3) .date[data-i18n="timeline_date_autumn_2022"] {
  right: -200px;
}

/* 2023 (4-я карточка, right) - ближе к точке */
.timeline-item.right:nth-child(4) .date {
  left: -110px;
}

/* 2024 (5-я карточка, left) - ближе к точке */
.timeline-item.left:nth-child(5) .date {
  right: -110px;
}

/* Липень 2025 (6-я карточка, right) - дальше от точки */
.timeline-item.right:nth-child(6) .date {
  left: -170px;
}

.timeline-item .icon {
  position: absolute;
  display: inline-block;
  width: 40px;
  height: 40px;
  padding: 9px 0;
  top: calc(50% - 20px);
  background: #F6D155;
  border: 2px solid #000000;
  border-radius: 40px;
  text-align: center;
  font-size: 18px;
  color: #000000;
  z-index: 1;
}

.timeline-item.left .icon {
  right: 56px;
}

.timeline-item.right .icon {
  left: 56px;
}

.timeline-item .content {
  padding: 60px 80px 60px 60px;
  background: linear-gradient(45deg, #ffd700 0%, #ffb347 100%);
  position: relative;
  border-radius: 0 500px 500px 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
  min-height: auto;
}

.timeline-item.right .content {
  padding: 60px 60px 60px 80px;
  border-radius: 500px 0 0 500px;
}

/* Увеличенная карточка для "Розвиток і розширення діяльності" (4-я карточка) */
.timeline-item.right:nth-child(4) .content {
  padding: 70px 40px 70px 180px;
}

.timeline-item .content h2 {
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: normal;
  color: #000000;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.timeline-item .content p {
  margin: 0 0 12px 0;
  font-size: 14px;
  line-height: 20px;
  color: #000000;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.timeline-item .content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767.98px) {
  .timeline::after {
    left: 30px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 80px;
    padding-right: 15px;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .timeline-item.right {
    left: 0%;
  }

  .timeline-item.left::after, 
  .timeline-item.right::after {
    left: 22px;
    width: 16px;
    height: 16px;
    background: #ffc400;
    border: 3px solid #000000;
    z-index: 2;
  }

  .timeline-item.left::before,
  .timeline-item.right::before {
    left: 38px;
    width: 0;
    height: 0;
    border: none;
  }

  .timeline-item.left .date,
  .timeline-item.right .date {
    position: static;
    display: block;
    width: 100%;
    margin-bottom: 12px;
    font-size: 16px !important;
    font-weight: 700;
    color: #2c3e50;
    background: #ffc400;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    white-space: normal;
    line-height: 1.4;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  .timeline-item.left .icon,
  .timeline-item.right .icon {
    position: absolute;
    left: 10px;
    top: 20px;
    width: 40px;
    height: 40px;
    background: #ffc400;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #2c3e50;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }

  .timeline-item.left .content,
  .timeline-item.right .content {
    padding: 20px 15px;
    border-radius: 12px;
    margin-left: 0;
    background: linear-gradient(45deg, #ffd700 0%, #ffb347 100%);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

  .timeline-item .content h2 {
    font-size: 18px !important;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2c3e50;
  }

  .timeline-item .content p {
    font-size: 14px !important;
    line-height: 1.6;
    color: #2c3e50;
    margin-bottom: 12px;
  }
}

/* ============================================
   COMPREHENSIVE RESPONSIVE DESIGN
   ============================================ */

/* Tablet styles (768px - 1024px) */
@media (max-width: 1024px) {
  /* Header Top */
  .header-top {
    padding: 0 20px;
    font-size: 13px;
  }
  
  .header-top-left {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .header-top-left span {
    margin: 0 8px 0 0;
    font-size: 12px;
  }
  
  .header-top-right {
    gap: 8px;
  }
  
  /* Header Bottom */
  .header-bottom {
    padding: 0 20px;
  }
  
  .header-logo img {
    width: 100px !important;
    height: 100px !important;
  }
  
  .header-menu {
    gap: 20px;
    margin-left: 20px;
  }
  
  .header-menu a {
    font-size: 18px;
  }
  
  .header-btn {
    font-size: 14px;
    padding: 8px 20px;
  }
  
  /* Hero Section */
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content h2 {
    font-size: 1.5rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  /* Social Section */
  .social-content {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  
  .social-content-text h2 {
    font-size: 2rem !important;
  }
  
  /* Team Section */
  .team-section .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  /* Footer */
  .footer-container {
    padding: 0 20px;
  }
  
  .footer-nav {
    flex-wrap: wrap;
    gap: 15px;
  }
}

/* Mobile styles (480px - 768px) */
@media (max-width: 768px) {
  /* Header Top - Mobile - скрыт в новом дизайне */
  /* Стили перенесены в новый медиа-запрос выше */
  
  /* Header Bottom - Mobile */
  .header-bottom {
    padding: 10px 15px;
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .header-logo {
    flex: 1;
    min-width: 0;
  }
  
  .header-logo img {
    width: 90px !important;
    height: 90px !important;
  }
  
  .header-title {
    font-size: 18px !important;
    line-height: 1.2;
  }
  
  .header-title div:first-child {
    font-size: 18px !important;
  }
  
  .header-title div:last-child {
    font-size: 16px !important;
  }
  
  .header-menu {
    order: 3;
    width: 100%;
    justify-content: center;
    margin: 0;
    gap: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.1);
  }
  
  .header-menu a {
    font-size: 16px;
  }
  
  .header-lang-btn {
    gap: 10px;
  }
  
  .lang-btn {
    font-size: 14px;
    padding: 4px 12px 4px 8px;
  }
  
  .header-btn {
    font-size: 12px;
    padding: 6px 16px;
    white-space: nowrap;
  }
  
  /* Hero Section - Mobile */
  .hero {
    height: 60vh;
    min-height: 400px;
  }
  
  .hero-content {
    padding: 0 20px;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
  
  .hero-content h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }
  
  .hero-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
  }
  
  .hero-btn {
    font-size: 14px;
    padding: 12px 30px;
  }
  
  /* Goals Section - Mobile */
  .goals-header {
    padding: 0 15px;
  }
  
  .goals-title {
    font-size: 1.3rem;
    line-height: 1.4;
  }
  
  .goals-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
  
  .goal-card {
    padding: 20px 15px;
  }
  
  .goal-title {
    font-size: 1.1rem;
  }
  
  .goal-desc {
    font-size: 0.9rem;
  }
  
  /* Social Section - Mobile */
  .social-section {
    padding: 60px 0 40px 0 !important;
  }
  
  .social-content {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    padding: 0 15px !important;
  }
  
  .social-content-text h2 {
    font-size: 1.8rem !important;
    line-height: 1.3;
  }
  
  .social-content-text p {
    font-size: 1rem !important;
  }
  
  .social-buttons {
    flex-wrap: wrap;
    gap: 15px !important;
  }
  
  .social-buttons a {
    width: 50px !important;
    height: 50px !important;
  }
  
  .social-buttons a img {
    width: 28px !important;
    height: 28px !important;
  }
  
  /* Team Section - Mobile */
  .team-section {
    padding: 40px 15px;
  }
  
  .team-section .team-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .team-card {
    flex-direction: column;
    text-align: center;
  }
  
  .team-photo {
    margin: 0 auto 15px;
  }
  
  .team-info h3 {
    font-size: 1.2rem;
  }
  
  /* Volunteers Section - Mobile */
  #volunteers {
    padding: 40px 15px 80px 15px !important;
    margin-bottom: 0 !important;
  }
  
  #volunteers .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  /* Timeline Section - Mobile */
  .timeline-section {
    padding: 60px 15px 240px 15px !important;
    margin-top: 0 !important;
  }
  
  .timeline-header {
    margin-bottom: 30px;
  }
  
  .timeline-header h2 {
    font-size: 1.6rem;
    line-height: 1.3;
  }
  
  .timeline-badge {
    font-size: 14px;
    padding: 6px 12px;
  }
  
  .timeline {
    padding: 20px 0;
  }
  
  .timeline-item {
    margin-bottom: 30px;
  }
  
  .timeline-item .content {
    padding: 20px 15px !important;
    font-size: 14px;
  }
  
  .timeline-item .content h2 {
    font-size: 18px !important;
    font-weight: 600;
  }
  
  .timeline-item .date {
    font-size: 16px !important;
    font-weight: 700;
    padding: 10px 15px !important;
    margin-bottom: 15px !important;
  }
  
  /* Calendar - Mobile */
  .calendar-container {
    padding: 15px;
  }
  
  .calendar-header {
    flex-direction: column;
    gap: 15px;
  }
  
  #currentMonth {
    font-size: 1.3rem;
  }
  
  .calendar-header-controls {
    gap: 6px;
  }
  
  .calendar-nav-btn {
    padding: 8px 12px;
    font-size: 0.7rem;
  }
  
  #currentMonth {
    font-size: 1.1rem !important;
    margin: 0 6px !important;
  }
  
  /* Footer - Mobile */
  .footer {
    padding: 30px 15px 15px 15px;
  }
  
  .footer-container {
    padding: 0;
  }
  
  .footer-social {
    gap: 15px;
    margin-bottom: 20px;
  }
  
  .footer-social .social-icon svg {
    width: 36px !important;
    height: 36px !important;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }
  
  .footer-nav .nav-link {
    font-size: 16px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .copyright {
    font-size: 0.85rem;
  }
}

/* Специальные стили для iPhone 13-17 и популярных Android устройств */
@media only screen 
  and (min-device-width: 390px) 
  and (max-device-width: 428px) 
  and (-webkit-min-device-pixel-ratio: 2) {
  /* iPhone 13, 14, 15, 16, 17 */
  .header-top {
    padding: 10px 15px;
  }
  
  .header-top-left {
    gap: 6px;
  }
  
  .header-top-left span {
    font-size: 11px;
  }
  
  .header-bottom {
    padding: 0 20px;
    height: 95px;
  }
  
  .header-logo img {
    width: 100px !important;
    height: 100px !important;
  }
  
  .header-title {
    font-size: 20px !important;
    line-height: 1.2;
  }
  
  .header-title div:first-child {
    font-size: 20px !important;
  }
  
  .header-title div:last-child {
    font-size: 18px !important;
  }
  
  .calendar-container {
    padding: 25px 18px !important;
  }
  
  .gallery-category {
    width: 100%;
  }
}

/* Samsung Galaxy S21, S22, S23, S24 и похожие */
@media only screen 
  and (min-device-width: 360px) 
  and (max-device-width: 412px) 
  and (-webkit-min-device-pixel-ratio: 3) {
  .header-top {
    padding: 10px 12px;
  }
  
  .header-top-left span {
    font-size: 10px;
  }
  
  .header-logo img {
    width: 90px !important;
    height: 90px !important;
  }
  
  .header-title {
    font-size: 14px;
  }
  
  .calendar-container {
    padding: 22px 15px !important;
  }
}

/* Xiaomi и другие популярные Android устройства */
@media only screen 
  and (min-device-width: 360px) 
  and (max-device-width: 480px) 
  and (-webkit-min-device-pixel-ratio: 2.5) {
  .header-top-left span {
    font-size: 10px;
    line-height: 1.5;
  }
  
  .header-logo img {
    width: 90px !important;
    height: 90px !important;
  }
  
  .header-title {
    font-size: 18px !important;
    line-height: 1.2;
  }
  
  .header-title div:first-child {
    font-size: 18px !important;
  }
  
  .header-title div:last-child {
    font-size: 16px !important;
  }
  
  .gallery-category {
    width: 100%;
    max-width: 100%;
  }
  
  .calendar-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px 15px !important;
  }
}

/* Small Mobile styles (up to 480px) */
@media (max-width: 480px) {
  /* Header */
  .header-logo img {
    width: 85px !important;
    height: 85px !important;
  }
  
  .header-title {
    font-size: 16px !important;
    line-height: 1.2;
  }
  
  .header-title div:first-child {
    font-size: 16px !important;
  }
  
  .header-title div:last-child {
    font-size: 14px !important;
  }
  
  .header-menu a {
    font-size: 14px;
  }
  
  /* Hero */
  .hero {
    height: 50vh;
    min-height: 350px;
  }
  
  /* Timeline Section - Small Mobile */
  .timeline-section {
    padding: 50px 10px 200px 10px !important;
    margin-top: 0 !important;
  }
  
  #volunteers {
    padding: 30px 10px 60px 10px !important;
    margin-bottom: 0 !important;
  }
  
  .timeline-header h2 {
    font-size: 1.4rem;
    line-height: 1.3;
  }
  
  .timeline-badge {
    font-size: 12px;
    padding: 5px 10px;
  }
  
  .timeline::after {
    left: 25px;
  }
  
  .timeline-item {
    padding-left: 70px;
    padding-right: 10px;
    padding-top: 15px;
    padding-bottom: 15px;
    margin-bottom: 25px;
  }
  
  .timeline-item.left::after, 
  .timeline-item.right::after {
    left: 17px;
    width: 14px;
    height: 14px;
  }
  
  .timeline-item.left .icon,
  .timeline-item.right .icon {
    left: 8px;
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  .timeline-item .date {
    font-size: 15px !important;
    font-weight: 700;
    padding: 8px 10px !important;
    margin-bottom: 12px !important;
    line-height: 1.3;
  }
  
  .timeline-item .content {
    padding: 18px 12px !important;
    border-radius: 10px;
  }
  
  .timeline-item .content h2 {
    font-size: 16px !important;
    margin-bottom: 10px;
  }
  
  .timeline-item .content p {
    font-size: 13px !important;
    line-height: 1.5;
    margin-bottom: 10px;
  }
  
  .hero-content h1 {
    font-size: 1.5rem;
  }
  
  .hero-content h2 {
    font-size: 1rem;
  }
  
  .hero-content p {
    font-size: 0.85rem;
  }
  
  /* Goals */
  .goals-title {
    font-size: 1.1rem;
  }
  
  /* Social */
  .social-content-text h2 {
    font-size: 1.5rem !important;
  }
  
  /* Volunteers */
  #volunteers .team-grid {
    grid-template-columns: 1fr;
  }
  
  /* Timeline - уже обновлено выше в секции @media (max-width: 480px) */
  
  /* Calendar Grid */
  .calendar-grid {
    gap: 5px;
  }
  
  .calendar-day {
    padding: 5px;
    font-size: 0.85rem;
  }
  
  /* Modal */
  .modal-content {
    width: 95%;
    max-width: 95%;
    padding: 20px 15px;
    margin: 10px;
  }
  
  .modal-content h3 {
    font-size: 1.2rem;
  }
  
  /* Event Modal - Small Mobile */
  #eventModal {
    padding: 8px !important;
    align-items: center !important;
    justify-content: center !important;
    overflow-y: auto !important;
  }
  
  #eventModal .modal-content {
    max-width: 92vw !important;
    width: 92vw !important;
    max-height: 92vh !important;
    min-height: 92vw !important;
    aspect-ratio: 1 !important;
    padding: 18px 15px !important;
    overflow-y: auto !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  #eventModalTitle {
    font-size: 1.1rem !important;
    margin-bottom: 12px !important;
    padding: 0 8px !important;
    text-align: center !important;
    line-height: 1.3 !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
  }
  
  #eventModal .modal-content > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    flex: 1 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
  }
  
  #eventModal .modal-content > div > div {
    padding: 12px !important;
    flex-shrink: 0 !important;
  }
  
  #eventModal .modal-content > div > div > div:not(:has(p)):not(:last-child) {
    margin-bottom: 6px !important;
    line-height: 1.4 !important;
  }
  
  #eventModal .modal-content > div > div > div:has(p) {
    margin-bottom: 10px !important;
  }
  
  #eventModal .modal-content > div > div > div:last-child {
    margin-bottom: 0 !important;
  }
  
  #eventModal .modal-content strong {
    font-size: 0.8rem !important;
    min-width: 45px;
    margin-right: 4px;
  }
  
  #eventModal .modal-content p {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    margin-top: 5px !important;
    margin-bottom: 0 !important;
  }
  
  #eventDate,
  #eventTime,
  #eventLocation {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
  }
  
  #eventDescription {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    margin-top: 5px !important;
    margin-bottom: 0 !important;
  }
  
  #eventModal .modal-content > div > div > div:last-child {
    margin-top: 10px !important;
    padding: 10px !important;
    flex-shrink: 0 !important;
  }
  
  #eventModal .modal-content > div > div > div:last-child h4 {
    font-size: 0.85rem !important;
    margin-bottom: 6px !important;
  }
  
  #eventModal .modal-content > div > div > div:last-child p {
    font-size: 0.7rem !important;
    margin-bottom: 8px !important;
    line-height: 1.3 !important;
  }
  
  #eventModal .modal-content > div > div > div:last-child button {
    font-size: 0.8rem !important;
    padding: 8px 12px !important;
  }
  
  #eventModalClose {
    top: 6px !important;
    right: 10px !important;
    font-size: 22px !important;
    padding: 2px !important;
  }
  
  /* Forms */
  form input[type="text"],
  form input[type="email"],
  form input[type="tel"],
  form textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 12px;
  }
  
  form button[type="submit"],
  .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 16px;
  }
  
  /* Event Modal */
  #eventModal {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  #eventModal .modal-content {
    padding: 20px 15px;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .calendar-header-controls {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
    width: 100%;
  }
  
  .calendar-nav-btn {
    padding: 6px 10px !important;
    font-size: 0.7rem !important;
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  #currentMonth {
    font-size: 1.1rem !important;
    margin: 0 4px !important;
    flex: 1;
    text-align: center;
    min-width: 0;
  }
  
  .calendar-weekdays {
    gap: 4px !important;
    margin-bottom: 10px !important;
  }
  
  .weekday {
    padding: 10px 2px !important;
    font-size: 0.8rem !important;
  }
  
  .calendar-grid {
    gap: 4px !important;
  }
  
  .calendar-day {
    padding: 10px 4px !important;
    font-size: 0.9rem !important;
    min-height: 45px !important;
  }
  
  #eventModal {
    padding: 15px 5px !important;
    align-items: flex-start !important;
  }
  
  #eventModalTitle {
    font-size: 1.4rem !important;
    margin-bottom: 0 !important;
    padding-right: 30px;
    line-height: 1.3 !important;
  }
  
  #eventModal .modal-content {
    padding: 25px 20px !important;
    max-width: 98% !important;
    width: 98% !important;
    max-height: 90vh !important;
    margin: 15px auto !important;
  }
  
  #eventModal .modal-content > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }
  
  #eventModalTitle {
    font-size: 1.3rem !important;
    margin-bottom: 20px !important;
    padding: 0 20px !important;
    text-align: center !important;
    line-height: 1.3 !important;
    order: -1 !important;
  }
  
  #eventModal .modal-content > div > div {
    font-size: 1rem !important;
  }
  
  #eventModal .modal-content > div > div:last-child > div > div {
    margin-bottom: 16px !important;
  }
  
  #eventModal .modal-content strong {
    font-size: 1rem !important;
    display: inline-block;
    min-width: 70px;
  }
  
  #eventModal .modal-content p {
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    margin-top: 8px !important;
    word-wrap: break-word !important;
  }
  
  #eventDate,
  #eventTime,
  #eventLocation {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    display: inline-block;
    word-wrap: break-word !important;
  }
  
  #eventDescription {
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    margin-top: 10px !important;
  }
  
  #eventModalClose {
    top: 12px !important;
    right: 18px !important;
    font-size: 32px !important;
    z-index: 10;
  }
  
  /* Calendar buttons */
  .calendar-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .calendar-buttons button {
    width: 100%;
  }
}

/* Landscape orientation for tablets */
@media (max-width: 1024px) and (orientation: landscape) {
  .hero {
    height: 80vh;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
}