body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #222;
    color: #eaeaea;
    /*background: #181818;*/
    /*color: #f2f2f2;*/
    /*background: url('/assets/images/half.jpg') no-repeat center center fixed;
    background-size: cover;*/
  }
  header {
    background: #222;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .logo a {
    color: #fff;
    font-size: 2em;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 0 8px #00ffea;
  }
  nav a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.2s;
  }
  nav a:hover {
    color: #00ffea;
  }
  .hero {
    text-align: center;
    padding: 60px 20px 40px 20px;
    background: linear-gradient(135deg, #222 60%, #00ffea22 100%);
    background: url('/assets/images/Screenshot_3.png') no-repeat center center;
    background-size: cover;
  }
  .hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #00ffea;
  }
  .hero p {
    font-size: 1.3em;
    margin-bottom: 30px;
  }
  .btn {
    background: #00ffea;
    color: #222;
    padding: 12px 32px;
    border: none;
    border-radius: 30px;
    font-size: 1.1em;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    box-shadow: 0 2px 8px #00ffea44;
  }
  .btn:hover {
    background: #00bfae;
  }
  .cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
  }
  .card {
    background: #232323;
    border-radius: 18px;
    box-shadow: 0 2px 12px #00ffea22;
    padding: 30px 25px;
    min-width: 220px;
    max-width: 300px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 6px 24px #00ffea55;
  }
  section {
    margin: 40px auto;
    max-width: 900px;
    padding: 0 20px;
  }
  footer {
    background: #222;
    text-align: center;
    padding: 18px 0;
    margin-top: 40px;
    color: #aaa;
    font-size: 0.95em;
  }
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 30px auto 0 auto;
  }
  .contact-form input, .contact-form textarea {
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 1em;
    background: #292929;
    color: #fff;
    resize: none;
  }
  .contact-form button {
    align-self: flex-end;
    margin-left: auto;
    margin-right: auto;
    display: bloc
  }
  @media (max-width: 700px) {
    .cards {
      flex-direction: column;
      gap: 18px;
    }
    .card {
      max-width: 100%;
    }
    header, footer {
      padding: 12px 0;
    }
  }

/* Центрируем заголовок "Наши услуги" */
.services-preview h2 {
  text-align: center;
}

/* Центрируем кнопку "Подробнее" */
.services-preview .btn {
  display: block;
  margin: 0 auto;
}

.services-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-preview h2 {
  text-align: center;
  width: 100%;
}

.services-preview .cards {
  justify-content: center;
}

.services-preview .btn {
  margin: 20px auto 0 auto;
  display: block;
}

.contact-info {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 500px; /* или другое подходящее значение */
}

.services-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 600px; /* Можно изменить по желанию */
}
.services-center ul {
  text-align: left; /* Если хотите, чтобы списки были выровнены влево внутри центра */
  display: inline-block;
  margin: 0 auto 1em auto;
}

/* Главная */
.hero {
  position: relative;
  z-index: 1;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  background: url('/assets/images/Screenshot_3.png') no-repeat center center;
  background-size: cover;
  opacity: 0.5; /* степень прозрачности */
  pointer-events: none;
}

/* О нас */
.about {
  position: relative;
  z-index: 1;
}
.about::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  background: url('/assets/images/obout-us.jpg') no-repeat center center;
  background-size: cover;
  opacity: 0.5;
  pointer-events: none;
}

/* Услуги */
.services {
  position: relative;
  z-index: 1;
}
.services::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  background: url('/assets/images/services2.png') no-repeat center center;
  background-size: cover;
  opacity: 0.5;
  pointer-events: none;
}

/* Контакты */
.contact {
  position: relative;
  z-index: 1;
}
.contact::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  background: url('/assets/images/contacts.png') no-repeat center center;
  background-size: cover;
  opacity: 0.5;
  pointer-events: none;
}

.social-links {
  margin: 20px 0;
  text-align: center;
}
.social-links a {
  display: inline-block;
  margin: 0 10px;
  transition: transform 0.2s;
}
.social-links a:hover {
  transform: scale(1.15);
}
.social-links img {
  width: 32px;
  height: 32px;
  vertical-align: middle;
  filter: drop-shadow(0 0 4px #00ffea88);
}

/* Контрастный цвет для телефонной ссылки */
.phone-link {
  color: #00ffe0;         /* Яркий неоновый голубой */
  font-weight: bold;
  text-shadow: 0 0 6px #000, 0 0 12px #00ffe0;
  transition: color 0.2s;
}
.phone-link:hover {
  color: #fff;
  text-shadow: 0 0 8px #00ffe0, 0 0 16px #fff;
}

/* Общие стили для мобильных */
body, section {
  padding: 0 5vw;
}

header, footer {
  padding: 12px 0;
}

.cards {
  flex-direction: column;
  gap: 18px;
}

.card {
  max-width: 100%;
  min-width: unset;
  margin: 0 auto;
}

.contact-form {
  max-width: 100%;
  padding: 0 0 20px 0;
}

.services-center, .contact-info {
  max-width: 100%;
  padding: 0 0 20px 0;
}

/* Медиазапрос для экранов до 700px */
@media (max-width: 700px) {
  .logo a {
    font-size: 1.3em;
  }
  nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .social-links {
    margin: 10px 0;
  }
  .hero h1 {
    font-size: 2em;
  }
  .hero p {
    font-size: 1em;
  }
  .btn {
    width: 100%;
    padding: 12px 0;
    font-size: 1em;
  }
  .services-center, .contact-info {
    font-size: 1em;
    padding: 0 0 20px 0;
  }
  .contact-form input, .contact-form textarea {
    font-size: 1em;
  }
}

.lang-switcher {
  display: inline-block;
  margin-left: 20px;
}
.lang-switcher a {
  color: #00ffe0;
  text-decoration: none;
  margin: 0 4px;
  font-weight: bold;
  opacity: 0.7;
}
.lang-switcher a.active {
  opacity: 1;
  text-decoration: underline;
}

.youtube-block {
  background: rgba(30, 30, 30, 0.85);
  border-radius: 16px;
  padding: 20px;
  max-width: 370px;
  margin: 0 0 0 auto;
  box-shadow: 0 2px 16px #0006;
}
.youtube-block h3 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 1.2em;
  text-align: left;
}
.youtube-videos {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.youtube-video iframe {
  border-radius: 12px;
  box-shadow: 0 2px 8px #00ffe055;
}
@media (max-width: 900px) {
  .youtube-block {
    max-width: 100%;
    margin: 20px auto 0 auto;
  }
}

.main-flex {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px; /* расстояние между колонками */
  justify-content: center;
  margin: 40px auto;
  max-width: 1200px;
  width: 100%;
}

.youtube-block {
  flex: 1 1 320px;
  max-width: 370px;
  min-width: 250px;
  background: rgba(30, 30, 30, 0.85);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 16px #0006;
}

.main-content {
  flex: 2 1 600px;
  min-width: 300px;
}

@media (max-width: 900px) {
  .main-flex {
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
  }
  .youtube-block, .main-content {
    max-width: 100%;
    min-width: unset;
  }
}

.services-flex {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  justify-content: center;
  margin: 40px auto;
  max-width: 1200px;
  width: 100%;
}

.services-preview {
  flex: 2 1 600px;
  min-width: 300px;
}

.youtube-block {
  flex: 1 1 320px;
  max-width: 370px;
  min-width: 250px;
  background: rgba(30, 30, 30, 0.85);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 16px #0006;
  margin: 0;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid #00ffe0;
  box-shadow: 0 0 16px #00ffe055;

}

@media (max-width: 900px) {
  .services-flex {
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
    
  }
  .youtube-block, .services-preview {
    max-width: 100%;
    min-width: unset;
    
  }
}

.reviews-slider {
  position: relative;
  max-width: 400px;
  margin: 40px auto 0 auto;
  overflow: hidden;
  min-height: 180px;
}
.review {
  opacity: 0;
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  transition: opacity 0.5s;
  z-index: 1;
  width: 100%;
}
.review.active {
  opacity: 1;
  position: relative;
  z-index: 2;
}
.reviews-controls {
  text-align: center;
  margin-top: 10px;
}
.reviews-controls button {
  background: #00ffea;
  color: #222;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.3em;
  margin: 0 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.reviews-controls button:hover {
  background: #00bfae;
}

.hero h1 {
  color: #fff;
  text-shadow: 0 2px 8px #000, 0 0 2px #222;
}

.hero p {
  color: #fffbe6;
  text-shadow: 0 2px 8px #000, 0 0 2px #222;
}

.btn {
  background: #00ffe0;
  color: #222;
  font-weight: bold;
  text-shadow: 0 1px 4px #fff, 0 0 2px #00bfae;
  box-shadow: 0 2px 8px #00ffea44, 0 0 8px #000;
}

.card {
  background: rgba(255,255,255,0.08);
  border: 1.5px solid #00ffe0;
  box-shadow: 0 0 16px #00ffe055;
}


.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}
