* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Герой секция */
.hero {
  position: relative;
  height: 100vh; /* Занимает всю высоту viewport */
  max-height: 600px; /* Минимальная высота на случай маленьких экранов */
  color: white;
  padding: 0;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
  z-index: 0; 
}

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Выравнивание по вертикали по центру */
  align-items: center; /* Выравнивание по горизонтали по центру */
  padding: 40px 20px; /* Добавляем отступы сверху и снизу */
  background: rgba(0, 0, 0, 0.4);
  box-sizing: border-box; /* Чтобы padding не ломал размеры */
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  background: #ff6b35;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cta-button:hover {
  background: #e55a2b;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.cta-button.large {
  padding: 18px 40px;
  font-size: 1.2rem;
}


.subscribers-count {
  margin-top: 2rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Секции */
section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 3rem;
  color: #2c3e50;
}

/* Секция "Для чего нужна недвижимость" */
.purpose-section {
  padding: 80px 0;
  background: #f8f9fa;
}
/* .purpose-section {
  background-image: url('/img/1.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
} */
.purpose-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
  
}

.purpose-card {
  position: relative;
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e9ecef;
  margin: auto;
}
.purpose-card.one{
  background-image: url('img/111.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.purpose-card.two{
  background-image: url('img/111.webp');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.purpose-card.three{
  background-image: url('img/333.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.purpose-back{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #2c3e50;
  border-radius: 15px;
  opacity: 0.5;
  z-index: 1;
}
.purpose-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.purpose-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.purpose-card h3 {
  position: relative;
  z-index: 2;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.purpose-card p {
  position: relative;
  z-index: 2;
  color: white;
  line-height: 1.6;
}

/* Блок знаний */
.knowledge-block {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.knowledge-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
  color: #2c3e50;
}

.knowledge-list {
  list-style: none;
  margin-bottom: 2.5rem;
}

.knowledge-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  margin-bottom: 0.8rem;
  background: #f8f9fa;
  border-radius: 10px;
  border-left: 4px solid #667eea;
  transition: background-color 0.3s ease;
}

.knowledge-item:hover {
  background: #e9ecef;
}

.item-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.knowledge-item span:last-child {
  font-weight: 500;
  color: #495057;
}

.knowledge-cta {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  color: white;
}

.knowledge-cta p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.knowledge-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  backdrop-filter: blur(10px);
}

.knowledge-btn:hover {
  background: white;
  color: #667eea;
}

/* Слайдер преимуществ */
.benefits-slider {
  background: linear-gradient(135deg, #2c3e50 0%, #909193 100%);
  padding: 80px 0;
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.slider-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.slider-wrapper {
  position: relative;
  height: 500px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: translateX(100%);
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
}

.slide.prev {
  transform: translateX(-100%);
}

.slide-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  background: white;
}

.text-side {
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #2c3e50;
}

.text-side .benefit-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}
.text-side .benefit-icon img {
  width: 1em;
  opacity: .8;
}
.text-side h3 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: white;
  text-transform: uppercase;
}

.text-side p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #b3b3b3;
}

.image-side {
  position: relative;
  overflow: hidden;
}

.image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.slide.active .image-side img {
  transform: scale(1.05);
}

/* Навигация */
.slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  opacity: .8;
}

.nav-btn {
  background: #fd6a00;
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  background: #fd6a00;
  transform: scale(1.1);
}

.slider-indicators {
  display: flex;
  gap: 0.8rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #dee2e6;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #fd6a00;
  transform: scale(1.2);
}

.indicator:hover {
  background: #adb5bd;
}

/* Анимации */
@keyframes slideIn {
  from {
      opacity: 0;
      transform: translateX(100%);
  }
  to {
      opacity: 1;
      transform: translateX(0);
  }
}

@keyframes slideOut {
  from {
      opacity: 1;
      transform: translateX(0);
  }
  to {
      opacity: 0;
      transform: translateX(-100%);
  }
}



/* Блок преимуществ */
.benefits {
  background: #f8f9fa;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.benefit-card {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.benefit-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.benefit-card p {
  color: #666;
  line-height: 1.6;
}

/* Блок удобства */
.convenience {
  background: white;
}

.convenience-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.convenience-text {
  font-size: 1.2rem;
  color: #666;
  line-height: 1.8;
}

/* Целевая аудитория */
.target-audience {
  background: #f8f9fa;
}

.audience-list {
  max-width: 600px;
  margin: 0 auto;
}

.audience-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.checkmark {
  color: #27ae60;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Финальный CTA */
.final-cta {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
}

.final-cta .section-title {
  color: white;
}

.cta-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.privacy-notice {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Подвал */
.footer {
  background: #2c3e50;
  color: white;
  padding: 2rem 0;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer a {
  color: #ff6b35;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 968px) {
  .slide-content {
      grid-template-columns: 1fr;
  }
  
  .text-side {
      padding: 3rem 2rem;
      order: 2;
  }
  
  .image-side {
      /* height: 300px; */
      order: 1;
  }
  
  .slider-wrapper {
      height: auto;
      min-height: 600px;
  }
}


/* Адаптивность */
@media (max-width: 768px) {
  
  /* .hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  }
  
  .hero-video {
        display: none; 
  } */
 
  .hero-title {
      font-size: 2.2rem;
  }
  
  .hero-subtitle {
      font-size: 1.1rem;
  }
  
  .section-title {
      font-size: 2rem;
  }
  
  .benefit-card {
      padding: 2rem;
  }
  
  .benefits-slider {
    padding: 60px 0;
}

.text-side {
    padding: 2rem 1.5rem;
}

.text-side h3 {
    font-size: 1.6rem;
}

.text-side .benefit-icon {
    font-size: 3rem;
}

.slider-nav {
    gap: 1rem;
}

.nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
}
  .footer-content {
      flex-direction: column;
      text-align: center;
  }
  
  .cta-button {
      width: 100%;
      justify-content: center;
  }
  .purpose-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

  .purpose-card {
      padding: 2rem 1.5rem;
  }

  .knowledge-block {
      padding: 2rem 1.5rem;
  }

  .knowledge-item {
      padding: 0.8rem 1rem;
  }

  .knowledge-cta {
      padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
      padding: 60px 0;
  }
  
  section {
      padding: 60px 0;
  }
  
  .hero-title {
      font-size: 1.8rem;
  }
  
  .section-title {
      font-size: 1.6rem;
  }
}