/* Основные стили */
html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat-400', sans-serif;
  box-sizing: border-box;
}

header {
  position: relative;
}

@media (max-width: 850px) {
  header {
    position: unset;
  }
}

/* Шапка */
.header-bg-img-container {
  height: 100%;
  position: absolute;
  left: 0;
}

.header-bg-img-container img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo {
  width: clamp(120px, (264 / 1271) * 100vw, 264px);
  height: clamp(82px, (181 / 1271) * 100vw, 181px);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

#header {
  padding: 90px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 8vw;
  text-align: center;
}

@media (max-width: 750px) {
  #header {
    padding: 40px 0;
  }
}

.header-title {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header-title-first {
  position: relative;
}

.header-title-first #header-title-bg {
  position: absolute;
  bottom: -14vw;
  z-index: 1;

  font-family: 'Montserrat-900', sans-serif;
  font-size: clamp(90px, (240 / 1271) * 100vw, 240px);
  letter-spacing: -8px;

  color: white;
  text-shadow: -1px -1px 0 #C7C7C7, 1px -1px 0 #C7C7C7, -1px 1px 0 #C7C7C7, 1px 1px 0 #C7C7C7
}

@media (min-width: 1600px) {
  .header-title-first #header-title-bg {
    bottom: -10vw;
  }
}

@media (min-width: 1400px) {
  .header-title-first #header-title-bg {
    bottom: -190px;
  }
}

@media (max-width: 750px) {
  .header-title-first #header-title-bg {
    bottom: -110px;
  }
}

@media (max-width: 670px) {
  .header-title-first #header-title-bg {
    bottom: -100px;
  }
}

@media (max-width: 650px) {
  .header-title-first #header-title-bg {
    bottom: -95px;
  }
}

@media (max-width: 640px) {
  .header-title-first #header-title-bg {
    bottom: -55px;
  }
}

@media (max-width: 600px) {
  .header-title-first #header-title-bg {
    bottom: -25px;
  }
}

@media (max-width: 500px) {
  .header-title-first #header-title-bg {
    bottom: -25px;
  }
}

@media (max-width: 450px) {
  .header-title-first #header-title-bg {
    bottom: -20px;
  }
}

.header-title #header-title-main {
  position: relative;
  z-index: 2;
  display: flex;
  font-family: 'Montserrat-900', sans-serif;
  font-size: clamp(65px, (126 / 1271) * 100vw, 126px);
  line-height: clamp(55px, (100 / 1271) * 100vw, 100px);
}

@media(min-width: 641px) {
  .header-title #header-title-main {
    white-space: nowrap;
  }
}

#header-title-date {
  position: absolute;
  right: 12vw;
  top: 8vw;
  z-index: 2;
  display: flex;
  font-family: 'Montserrat-900', sans-serif;
  font-size: clamp(65px, (126 / 1271) * 100vw, 126px);
  color: #1570EF;
}

@media (max-width: 750px) {
  #header-title-date {
    right: 115px;
    top: 45px;
  }
}

@media (max-width: 700px) {
  #header-title-date {
    right: 110px;
    top: 50px;
  }
}

@media (max-width: 650px) {
  #header-title-date {
    right: 100px;
    top: 50px;
  }
}

@media (max-width: 640px) {
  #header-title-date {
    right: 120px;
    top: 100px;
  }
}

@media (max-width: 450px) {
  #header-title-date {
    right: 30px;
    top: 95px;
  }
}

#header-description {
  padding: 0 15vw;
  position: relative;
  font-family: 'Montserrat-500', sans-serif;
  font-size: clamp(20px, (40 / 1271) * 100vw, 40px);
}

@media (max-width: 750px) {
  #header-description {
    padding: 0 20px;
  }
}

#event-description-container {
  padding: 3vw 6vw;
  width: 50%;
  background-color: rgba(102, 218, 255, 0.1);
  border-radius: 20px;
}

@media(max-width: 750px) {
  #event-description-container {
    padding: 6vw 12vw;
    width: auto;
    border-radius: 0;
  }
}

#event-description {
  font-family: 'Montserrat-400', sans-serif;
  color: #30343B;
  font-size: clamp(12px, (20 / 1271) * 100vw, 20px);
  line-height: clamp(14px, (24 / 1271) * 100vw, 24px);
  text-align: start;
}

/* Carousel Section*/
#carousel-section {
  padding: 0 0 5vw;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#carousel-section h2 {
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  display: flex;
  font-family: 'Montserrat-700', sans-serif;
  font-size: clamp(20px, (40 / 1271) * 100vw, 40px);
  text-align: center;
}

.carousel-container {
  padding: 0 5vw;
  display: flex;
  gap: 20px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

@media (min-width: 851px) and (max-width: 912px) {
  .carousel-container {
    flex-wrap: nowrap;
  }
}

@media (max-width: 850px) {
  .carousel-container {
    width: 95%;
    flex-direction: column;
    align-items: center;
  }
}

/* Carousel Item*/
.carousel-item-container {
  padding: 5px;
  width: clamp(180px, (208 / 1271) * 100vw, 208px);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  gap: 5px;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  border-radius: 20px;
}

@media (max-width: 850px) {
  .carousel-item-container {
    padding-top: 15px;
    width: 312px;
    height: 410px;
  }
}

.carousel-item-img-container {
  flex: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 850px) {
  .carousel-item-img-container {
    width: 288px;
    height: 300px;
  }
}

.carousel-item-img-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

@media (max-width: 850px) {
  .carousel-item-img-container img {
    border-radius: 20px;
  }
}

.carousel-item-text-content {
  flex: 1;
  padding: 0 5px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.carousel-item-container .title {
  width: 100%;
  font-family: 'Montserrat-700', sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-style: normal;
  color: #1570EF;
}

.carousel-item-container .description {
  width: 100%;
  font-family: 'Montserrat-400', sans-serif;
  font-size: 11px;
  line-height: 13px;
  font-style: normal;
  color: #30343B;
}

.carousel-item-container .description p {
  margin: 0;
  padding: 0;
}

/* Carousel Item End*/


/* Carousel End*/

/* Livestream section */
#livestream-section {
  height: 25vw;
  display: flex;
  justify-content: center;
  padding: 40px 0;
  background-color: #EFF8FF;
}

@media(max-width: 1120px) {
  #livestream-section {
    height: 400px;
  }
}

@media(max-width: 450px) {
  #livestream-section {
    height: 215px;
  }
}

@media(min-width: 451px) and (max-width: 849px) {
  #livestream-section {
    height: 350px;
  }
}

.livestream {
  border: none;
  width: 50%;
  height: 100%;
}

@media(min-width: 851px) and (max-width: 1119px){
  .livestream {
    width: 75%;
  }
}

@media(max-width: 850px) {
  .livestream {
    padding: 0 20px;
    width: 100%;
  }
}
/* Livestream section end */

/* Основное содержание */

#contact {
  padding: 40px 0;
  background-color: #EFF8FF;
}

/* FORM CSS */
.form-section {
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.form-container {
  padding: 5vw 15vw;
  background-color: #ffffff;
  border: 2px solid #1570EF;
  border-radius: 20px;
}

.form-container h2 {
  margin-bottom: clamp(30px, (50 / 1271) * 100vw, 50px);
  text-align: center;
  color: #1570EF;
}

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

.form-section input,
.form-section textarea {
  padding: 12px 20px;
  width: 100%;

  box-sizing: border-box;

  font-family: 'Montserrat-400', sans-serif;
  font-size: clamp(11px, (14 / 1271) * 100vw, 14px);
  font-style: normal;
  line-height: 1.25;

  border: 1px solid #1570EF;
  border-radius: 20px;
  box-shadow: none;
  color: #000000;
  background: #ffffff;
  transition: all 0.2s linear 0s;
}

.form-section input:focus,
.form-section textarea:focus {
  border-color: #1570EF;
  outline: none;
}

.form-checkbox-container {
  margin: 10px;
  display: flex;
  align-items: center;
  font-size: clamp(11px, (16 / 1271) * 100vw, 14px);
  line-height: clamp(20px, (24 / 1271) * 100vw, 22px);
  color: #1570EF;
  cursor: pointer;
  user-select: none;
}

.form-checkbox-container input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.form-checkbox-container .checkmark {
  position: relative;
  width: clamp(15px, (24 / 1271) * 100vw, 24px);
  height: clamp(15px, (24 / 1271) * 100vw, 24px);
  background-color: white;
  border: 1px solid #1570EF;
  border-radius: 4px;
  margin-right: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-checkbox-container input[type="checkbox"]:checked + .checkmark {
  background-color: white;
}

.form-checkbox-container .checkmark::after {
  content: "";
  position: absolute;
  display: none;
}

.form-checkbox-container input[type="checkbox"]:checked + .checkmark::after {
  margin-bottom: 5px;
  width: clamp(5px, (8 / 1271) * 100vw, 8px);
  height: clamp(11px, (14 / 1271) * 100vw, 14px);
  display: block;
  content: "";
  border: solid #1570EF;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.button-container {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}

.form-section button[type="submit"] {
  padding: 12px 20px;
  width: 60%;

  font-family: 'Montserrat-500', sans-serif;
  font-size: clamp(11px, (16 / 1271) * 100vw, 16px);
  font-style: normal;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;

  border: 1px solid rgba(69, 72, 74, 0);
  border-radius: 20px;
  outline: none;

  color: #ffffff;
  background: #1570EF;
  box-shadow: none;
  cursor: pointer;
}

@media (max-width: 450px) {
  .form-section button[type="submit"] {
    width: 100%;
  }
}

.error-message {
  display: none;
  color: #dc3545;
  font-size: clamp(11px, (14 / 1271) * 100vw, 14px);
  font-style: normal;
  line-height: 1.25;
  margin-top: 5px;
}

.show-error {
  display: block;
}

/* FORM CSS END*/

/* Локация */
#location {
  padding: 5vw 15vw;
}

@media (max-width: 750px) {
  #location {
    padding: 20px;
  }
}

#location > * {
  margin: 10px;
}

#location-title {
  font-family: 'Montserrat-700', sans-serif;
  font-size: clamp(20px, (40 / 1271) * 100vw, 40px);
  font-style: normal;
  line-height: 1.25;
}

#location-description {
  font-size: clamp(12px, (20 / 1271) * 100vw, 20px);
  font-style: normal;
  line-height: 1.25;
}

#location iframe {
  width: clamp(313px, (878 / 1271) * 100vw, 878px);
  height: clamp(207px, (578 / 1271) * 100vw, 578px);
  border: 0;
  border-radius: 10px;
}

@media (min-width: 1271px) {
  #location iframe {
    width: 100%;
  }
}

@media (max-width: 750px) {
  #location iframe {
    width: 95%;
  }
}

/* Нижний колонтитул */
footer {
  background-color: #EFF8FF;
}

.footer {
  padding: 3vw 15vw;
  display: flex;
  justify-content: space-between;
}

@media (max-width: 750px) {
  .footer {
    padding: 20px;
    flex-direction: column;
    gap: 20px;
  }
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 750px) {
  .footer-left {
    gap: 10px;
  }
}

.contact-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.contact-info span {
  font-family: 'Montserrat-400', sans-serif;
  font-size: clamp(12px, (20 / 1271) * 100vw, 20px);
  font-style: normal;
}

.icon-container {
  width: clamp(20px, (40 / 1271) * 100vw, 40px);
  height: clamp(20px, (40 / 1271) * 100vw, 40px);
}

.icon-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 750px) {
  .footer-right {
    text-align: center;
    gap: 10px;
  }
}

.footer-right span {
  font-family: 'Montserrat-400', sans-serif;
  font-size: clamp(12px, (20 / 1271) * 100vw, 20px);
  font-style: normal;
}

.social-media-container {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

@media (max-width: 750px) {
  .social-media-container {
    justify-content: center;
  }
}

.social-media-item {
  width: clamp(20px, (40 / 1271) * 100vw, 40px);
  height: clamp(20px, (40 / 1271) * 100vw, 40px);
}

.social-media-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

/* Text After Sending */
#textInsteadForm {
  padding: 20px;
  display: none;
  color: #1570EF;
  font-family: 'Montserrat-700', sans-serif;
  border: 2px solid #1570EF;
  border-radius: 5px;
}

/* LOADING CSS*/
#loadingIndicator {
  padding: 20px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

#loadingIndicator .spinner {
  width: 40px;
  height: 40px;
  display: block;
  border: 4px solid #3f51b5;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

#dimmer {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  display: none;
  background: #fff;
  opacity: 0.5;
  z-index: 9990;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
