/* Анимация появления секций при прокрутке */
section.sa-init {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
  will-change: opacity, transform;
}
section.sa-visible {
  opacity: 1;
  transform: translateY(0);
}
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');
@font-face {
    font-family: 'Conthrax'; /* Имя, которым будешь вызывать шрифт */
    src: url('/fonts/conthraxsemibold.otf') format('truetype');
    font-weight: normal; /* можно указать bold, если это жирная версия */
    font-style: normal;  /* можно указать italic, если курсив */
}

* {
  padding: 0;
  margin: 0;
  font-family: "Roboto Condensed", sans-serif;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: url('/img/bg.jpg') no-repeat #0e142d;
  background-position: center center;
  background-attachment: fixed;
  background-size: 100vw;
  /* Кроссбраузерные префиксы */
  -webkit-background-size: 100vw;
  -moz-background-size: 100vw;
  -o-background-size: 100vw;
  background-size: 100vw;
  -webkit-background-attachment: fixed;
  -moz-background-attachment: fixed;
  -o-background-attachment: fixed;
  background-attachment: fixed;
  -webkit-background-position: center center;
  -moz-background-position: center center;
  -o-background-position: center center;
  background-position: center center;
  color: #000;
}

/* iOS Safari fix: use fixed pseudo-element for background */
@supports (-webkit-touch-callout: none) {
  body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    background: #0e142d url('/img/bg.jpg') no-repeat center center;
    background-size: cover;
    pointer-events: none;
  }
}

a {
  color: #fff;
  transition: 0.5s;
  text-decoration: none;
}

a:hover {
  color: #000;
}

h1 {
  color: #1e7350;
  font-size: 180pt;
}

h2 {
  color: #1e7350;
  font-size: 80pt;
  font-family: 'Conthrax', sans-serif;
}

h3 {
  color: #fff;
  font-size: 20pt;
  text-align: center;
}

h4 {
  color: #1e7350;
  font-size: 30pt;
  text-align: center;
}

h5 {
  color: #1e7350;
  font-size: 25pt;
  text-align: center;
  margin: 15px;
}

p {
  color: #000;
  font-size: 13pt;
  margin-bottom: 20px;
}

.precolor {
  color: #fff;
}

.none {
  height: 240px;
}

.date {
  font-size: 14pt;
}

.presentation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 20px;
  margin-top: 60px;
}

.presentation-text {
  display: flex;
  text-align: center;
}

.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding-top: 50px;
}

.about-container {
  max-width: 1200px;
  width: 100%;
}

.about-img {
  width: 100%;
  height: 300px;
  background: url('/img/about.jpg') no-repeat center center;
  background-size: cover;
  margin-bottom: 20px;
}

.about-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.about-list {
  font-size: 13pt;
  margin-left: 25px;
}

.presholder {
  background: url('/img/presholder.jpg') no-repeat center center;
  height: 400px;
}

.presholder2 {
  background: url('/img/presholder2.jpg') no-repeat center center;
  height: 400px;
}

.presholder3 {
  background: url('/img/presholder3.jpg') no-repeat center center;
  height: 400px;
}

.user-registration {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.user-info {
  width: 100%;
  background: #e1e1e1;
  color: #000000;
  font-size: 12pt;
  padding: 20px;
}

.registration {
  max-width: 1150px;   
  margin: 0 auto; 
  display: flex; 
  flex-direction: column;
  align-items: center; 
  justify-content: space-between; 
  gap: 20px;
}

.regbutton {
  background: #217251;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.3s;
}

.regbutton:hover {
  background: #14523a;
}

.service {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.tesla-img {
  width: 100%;
  height: 240px;
  background: url('/img/tesla.png') no-repeat center center;
  margin-bottom: 20px;
}

#user-registration, #smm, #ticket {
  scroll-margin-top: 70px;
}

footer {
  background: #1e7350;
  color: #fff;
  padding: 20px;
  text-align: center;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}
.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 30px 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  color: #000;
  position: relative;
  box-shadow: 0 4px 32px rgba(0,0,0,0.8);
}
.close {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
}
.close:hover {
  color: #217251;
}
.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 8px;
  margin: 8px 0 8px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

/* Стили для радио-кнопок в модальных формах */
.radio-group {
  display: flex;
  width: 150px;
  margin: 10px 0 20px 0;
  flex-wrap: wrap;
}
.radio-group label {
  display: flex;
  align-items: center;
  font-size: 13pt;
  font-weight: 400;
  gap: 8px;
}

.modal-content button[type="submit"] {
  background: #217251;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s;
}
.modal-content button[type="submit"]:hover {
  background: #14523a;
}

.lang-btn {
  background: #217251;
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
}

.lang-btn:hover {
  background: #14523a;
}

/* Menu */
.menu {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: #ffffff;
  box-shadow: 0px 0px 20px #1e7350;
  z-index: 20;
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 20px;
}

.nav-close,
.nav-open {
  display: flex;
  align-items: center;
  font-size: 35px;
  color: #1e7350;
  cursor: pointer;
  display: none;
}

.nav-menu {
  display: flex;
  gap: 20px;
  list-style: none;
  align-items: center;
}

.nav-menu .nav-link {
  color: #000000;
  font-size: 18px;
  position: relative;
  font-weight: 700;
}

.nav-menu .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: #1e7350;
  transition: 0.5s;
}

.nav-menu .nav-link:hover::after {
  width: 100%;
}

@media screen and (max-width: 1280px) {
  h1 {
    font-size: 120pt;
  }
}


@media screen and (max-width: 1160px) {
  h1 {
    font-size: 120pt;
  }
}

@media screen and (max-width: 1050px) {
  .nav-menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0px 0px 20px #1e7350;
    padding: 80px 0px 30px 0px;
    text-align: center;
    display: flex;
    flex-direction: column;
  }

  .nav-close {
    position: absolute;
    top: 28px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .nav-close:hover {
    transform: rotate(90deg);
  }

  .nav-open {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  h1 {
    font-size: 70pt;
  }

  h2 {
    font-size: 40pt;
    text-align: center;
  }

  h4 {
    font-size: 25pt;
  }

  body {
    background-size: 140vw;
  }
}

.show-menu {
  top: 0;
}

@media screen and (max-width: 780px) {
  .tesla-img {
    background-size: cover;
  } 
}
/* End Menu */