/* E50040 */

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  background: #FFFFFF;
  color: #000000;
}

.header {
  background-color: #E50040;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 10;
  gap: 30px;
  height: 70px;
}

.logo {
  display: flex;
  justify-content: center;
  height: 100%;
  min-height: auto;
  /* max-width: 150px; */
}

.logo svg {
  width: 50%;
  align-items: center;
  justify-content: center;
  height: auto;
  display: block;
}

.logo-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    /*gap: 40px;*/
    margin: 10px 0;
    /*flex-wrap: nowrap;*/
}

.logo-gallery img {
    display: block;
    max-height: 50px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    flex-shrink: 1;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  font-size: 1rem;
}

.icon-link .icon {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.page-nav {
  margin-bottom: 1.5rem;
}

.event-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}

.buy-button {
  width: 280px;
  height: 80px;
  /*padding: 10px;*/
}

@media (max-width: 768px) {
  .event-block {
    /*width: 300px;*/
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  /*.event-info {*/
  /*  max-width: 100%;*/
  /*}*/

  /*.event-actions {*/
  /*  align-items: stretch;*/
  /*}*/
}

/* contact-form */
/* окно */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  /* overflow-x: hidden; */
  cursor: pointer;
  z-index: 1000;
}

.modal-main{
  position: relative;
  width:100%;
  max-width: 300px;
  background-color: #fff;
  margin: auto;
  color: #000;
  border-radius: 16px;
  padding: 30px;
  cursor: default;
  overflow-y: auto;
}

.modal.show .modal-main {
  transform: scale(1);
  opacity: 1;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* заголовок */
.modal-title {
  margin-bottom: 16px;
  margin-bottom: 20px;
  text-align: center;  
}

.modal-container {
  font-size: 24px;
  margin-bottom: 30px;
}

/* КНОПКИ */
.modal-btn {
  display: block;
  margin: 0 auto;
  padding: 10px;
  font-size: 16px;
  text-align: center;
  color: #fff;
  background-color: #E50040;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.modal-close {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  font-size: 22px;
  background-color: transparent;
  border: none;
  border-radius: 3px;
  padding: 0;
  cursor: pointer;
  outline: 1px solid transparent;
  outline-offset: 3px;
   transition: outline-color 0.15s ease-in-out; 
}

.modal-close:focus-visible {
  outline-color: #E50040;
}

.submit-button {
  margin-top: 8px;
}

.contact-button {
  display: inline-block;  /* или block */
  margin: 0 auto;
  padding: 10px 20px;
  /* font-size: 18px; */
  cursor: pointer;
}

.modal h1, 
.modal h2, 
.modal h3,
.modal h4, 
.modal h5,{
  margin-top: 0;
  margin-bottom: 1px;
}

/* форма */
.contact-form {
  display: flex;
  flex-direction: column;
  /* top: 50px; */
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.form-field input,
.form-field textarea {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--dim-gray);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.3;
}

.contact-list {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.contact-list li {
  position: relative;
  padding-left: 1.5em;
}

.contact-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
  color: #E50040;
  line-height: 1;
}

.responsive-img {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.nav-desktop {
  display: flex;
  gap: 20px;
}

.nav-desktop a {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: bold;
}

.burger-checkbox {
  position: absolute;
  visibility: hidden;
}

.burger {
  cursor: pointer;
  display: none;
  position: relative;
  border: none;
  background: transparent;
  width: 40px;
  height: 26px;
  margin: 30px auto;
}

.burger::before,
.burger::after {
  content: '';
  left: 0;
  position: absolute;
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 10px;
  background: #FFFFFF;
}

.burger::before {
  top: 0;
  box-shadow: 0 11px 0 #FFFFFF;
  transition: box-shadow .3s .15s, top .3s .15s, transform .3s;
}

.burger::after {
  bottom: 0;
  transition: bottom .3s .15s, transform .3s;
}

.burger-checkbox:checked + .burger::before {
  top: 11px;
  transform: rotate(45deg);
  box-shadow: 0 6px 0 rgba(0,0,0,0);
  transition: box-shadow .15s, top .3s, transform .3s .15s;
}

.burger-checkbox:checked + .burger::after {
  bottom: 11px;
  transform: rotate(-45deg);
  transition: bottom .3s, transform .3s .15s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background-color: #E50040;
  padding: 10px;
}

.nav-mobile a {
  color: #FFFFFF;
  text-decoration: none;
  margin: 10px 0;
}

.section {
  padding: 40px 20px;
  flex: 1;
}

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

.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  margin-top: 30px;
}

.featured-participants {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 40px;
}

.participant-large {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  max-width: 900px;
  margin: 0 auto;
}

.participant-large img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
}

.participant-text h3 {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 22px;
}

.participant-text p {
  margin: 0;
  line-height: 1.5;
  font-size: 16px;
  text-align: left;
  color: #333;
  max-width: 650px;
}

.video-wrapper {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  /*padding-top: 100%;*/
  overflow: hidden;
  background: #000;
  border-radius: 10px;
}

/*.video-wrapper iframe,*/
/*.video-wrapper video {*/
/*  position: absolute;*/
/*  top: 50%;*/
/*  left: 50%;*/
/*  width: 100%;      */
/*  height: 100%;*/
/*  transform: translate(-50%, -50%);*/
/*  border: 0;*/
/*}*/



/* —— СЕТКА ДЛЯ ОСТАЛЬНЫХ —— */

.team-list {
  max-width: 800px;
  margin: 40px auto;
}

.team-list h3 {
  margin-bottom: 15px;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
}

.team-list p {
  margin: 8px 0;
  font-size: 16px;
  line-height: 1.1;
  text-align: center;
}

/* —— АДАПТИВ ДЛЯ МОБИЛЬНЫХ —— */

@media (max-width:800px) {
  .participant-large {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .participant-large img {
    width: 160px;
    height: 160px;
  }

  .participant-text p {
    text-align: center;
  }

  .modal {
    position: absolute; /* вместо fixed */
    top: 0;
    left: 0;
    height: 100%;
  }
}

/*БЛОК С КНОПКОЙ*/


.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  justify-items: center;
  margin-top: 20px;
}

.project-gallery img,
.project-gallery video {
  width: 100%;
  max-width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  aspect-ratio: 1 / 1;
}

.project-thumb{
  display: flex;
  /*flex-wrap: wrap;*/
  gap: 20px;
  justify-content: center;
  max-width: 300px;
  height: auto;
  text-align: center;
}

.project-title {
  padding: 12px 5px;
  font-size: 18px;
  /*font-weight: 600;*/
  text-align: center;
}

.project-item {
  text-decoration: none;
  color: inherit;
}

.project-item:visited,
.project-item:active,
.project-item:focus {
  text-decoration: none;
  color: inherit;
  outline: none;
}

.projects-toggle {
  margin: 20px 0;
  padding: 15px 20px;
  background: #f0f0f0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  transition: background .25s ease;
}

.projects-toggle:hover {
  background: #e0e0e0;
}

.hidden {
  display: none;
}

.footer {
  background: #F5F5F5;
  padding: 20px;
  text-align: center;
  color: #666666;
}

@media (max-width: 800px) {
  .nav-desktop {
    display: none;
  }
  .burger {
    display: flex;
  }
  .nav-mobile.active {
    display: flex;
  }
}




