/* style.css — оптимизированный после внедрения critical CSS и lazy loading */

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: white;
  overflow-x: hidden;
}

.section {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  padding: 20px;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.text-content {
  background: rgba(0, 0, 0, 0.7);
  padding: 30px 40px;
  border-radius: 8px;
  display: inline-block;
  border: 2px dashed rgba(255, 255, 255, 0.6);
  max-width: 80%;
  transition: all 0.3s ease;
  color: white;
}

.section h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin-bottom: 15px;
}

.section p {
  font-size: clamp(1rem, 3vw, 1.2rem);
  line-height: 1.6;
  color: white;
}

.cta {
  padding: 12px 25px;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: white;
  background: #007bff;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 25px;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

#screen8 .scroll-indicator {
  display: none;
}

iframe.map {
  width: 100%;
  height: 300px;
  border: 0;
  margin-top: 30px;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .section {
    background-attachment: scroll;
    flex-direction: column;
    padding: 40px 20px;
  }

  .text-content {
    max-width: 90%;
    padding: 20px 25px;
  }

  .scroll-indicator {
    bottom: 20px;
  }

  iframe.map {
    height: 250px;
  }
}
