/* ========= Base Reset ========= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fafaff;
  color: #1e1b2e;
  line-height: 1.6;
  scroll-behavior: smooth;
}

a {
  color: #a896c8;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #d2c0f2;
}

/* ========= Navigation ========= */
nav {
  position: fixed;
  top: 1rem;
  right: 2rem;
  z-index: 1000;
}

nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  background: rgba(40, 37, 35, 0.95);
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
}

nav li a {
  color: #f2ece6;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

nav li a:hover {
  background-color: #5e5473;
  color: #ffffff;
}

/* ========= Burger Button ========= */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 1100;
}

.burger div {
  width: 100%;
  height: 3px;
  background-color: #d2c0f2;
  border-radius: 3px;
}

/* ========= Hero Section ========= */
.hero-section {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.hero-container {
  display: flex;
  height: 100%;
  flex-direction: row;
}

/* Левая часть — фото */
.hero-image {
  flex: 1;
  background-image: url('images/logo.jpg'); /* замени на путь к своей фотке */
  background-size: cover;
  background-position: center;
}

/* Правая часть — текст */
.hero-text {
  flex: 1;
  padding: 4rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #2e2b28 0%, #1f1d1b 100%);
  color: #f8f8f8;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.3);
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

.hero-text p {
  font-size: 1.25rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  color: #dddddd;
}

/* Кнопка */
.cta-button {
  align-self: flex-start;
  background-color: #ffb6b9;
  color: #1f1d1b;
  padding: 1rem 2.5rem;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 182, 185, 0.4);
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #f67280;
  box-shadow: 0 6px 20px rgba(246, 114, 128, 0.4);
  transform: translateY(-2px);
}

/* ========= General Sections ========= */
section {
  padding: 5rem 2rem;
  text-align: center;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title,
h2 {
  font-size: 2.4rem;
  color: #1e1b2e;
  margin-bottom: 2rem;
  text-align: center;
}

/* ========= About ========= */
.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
}

.about-text {
  flex: 1 1 55%;
  background: #1e1b2e; /* тёмно-фиолетовый фон */
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3); /* чуть более выразительная тень */
  text-align: left;
  color: #ffffff; /* светлый текст */
}

.about-text h3 {
  color: #ffffff; /* светлый текст */
  margin-top: 1.2rem;
}

.about-text ul {
  margin-top: 0.8rem;
  padding-left: 1.2rem;
}

.about-image {
  flex: 1 1 35%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.about-image img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #eeddee;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ========= Services ========= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.service {
  background: #1e1b2e; /* тёмно-фиолетовый фон */
  padding: 2rem;
  border-radius: 12px;
  transition: transform 0.3s ease;
  text-align: center;
  max-width: 300px;
  color: #e4defc; /* светлый текст */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3); /* мягкая тень */
}

.service:hover {
  transform: translateY(-5px);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
    /* чтобы иконка лучше смотрелась на тёмном фоне (можно заменить при необходимости) */
}

/* ========= Reviews / Carousel ========= */
.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  width: 100%;
}

.review-card {
  flex: 0 0 100%;
  background: #1e1b2e; /* тёмно-фиолетовый фон */
  border-radius: 12px;
  padding: 2rem 1rem;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); /* более заметная тень */
  text-align: center;
  color: #e4defc; /* светлый текст */
}

.review-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 2px solid #7e70ff; /* обводка для выделения */
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #7e70ff; /* насыщенный фиолетовый */
  color: #fff; /* белая иконка */
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
}

.carousel-btn:hover {
  background: #a394ff; /* немного светлее при наведении */
}

.carousel-btn.prev {
  left: 1rem;
}

.carousel-btn.next {
  right: 1rem;
}

/* ========= Results ========= */
.results-row {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
}

.result-card {
  background: #1e1b2e; /* тёмно-фиолетовый фон */
  border-radius: 12px;
  flex: 0 0 300px;
  scroll-snap-align: start;
  padding: 1rem;
  text-align: center;
  color: #e4defc; /* светлый текст */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3); /* выразительная тень */
  transition: transform 0.3s ease;
}

.result-card:hover {
  transform: translateY(-4px); /* лёгкое поднятие при наведении */
}

.result-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 2px solid #7e70ff; /* фиолетовая обводка для изображения */
}

/* ========= Contact ========= */
#contact {
  background-color: #1e1b2e; /* тёмный фон */
  border-radius: 12px;
  padding: 3rem 2rem;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3); /* усиленная тень */
  color: #e4defc; /* светлый текст */
}

#contact p {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  color: #ffffff; /* немного мягче */
}

#contact a {
  color: #a28eff; /* яркий фиолетовый */
  font-weight: bold;
  display: block;
  margin-top: 0.5rem;
  text-decoration: underline;
  transition: color 0.3s ease;
}

#contact a:hover {
  color: #d1c2ff; /* светлее при наведении */
}

/* ========= Final Message ========= */
.final-message {
  font-size: 1.3rem;
  font-weight: bold;
  color: #ffffff;
  margin-top: 2rem;
  text-align: center;
}

/* ========= FAQ ========= */
#faq {
  background-color: #F8F8FF; /* тёмный фон */
  color: #e4defc; /* светлый текст */
  padding: 6rem 1rem;
}

#faq h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #1e1b2e; /* яркий заголовок */
}

.faq-grid {
  display: grid;
  gap: 2rem;
  max-width: 768px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.6;
}

.faq-item {
  background-color: #1e1b2e; /* тёмный блок */
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}


/* ========= Responsive ========= */
@media screen and (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .cta-button {
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
  }

  .burger {
    display: flex;
  }

  nav {
    top: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    background-color: rgba(29, 26, 24, 0.95);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  nav.active {
    transform: translateX(0);
  }

  nav ul {
    flex-direction: column;
    gap: 1.5rem;
    background: none;
    padding: 0;
  }

  nav li a {
    font-size: 1.4rem;
    padding: 0.8rem 1.5rem;
    background-color: #4e4559;
    color: #f2ece6;
    border-radius: 8px;
  }

  nav li a:hover {
    background-color: #7d6da6;
    color: #ffffff;
  }

  .about-content {
    flex-direction: column;
    align-items: center;
  }

  .about-text, .about-image {
    flex: 1 1 100%;
    text-align: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service {
    max-width: 90%;
  }

  .carousel-btn {
    font-size: 1.5rem;
    padding: 0.4rem 0.8rem;
  }

  .results-row {
    flex-direction: column;
    overflow-x: hidden;
    align-items: center;
  }

  .result-card {
    max-width: 90%;
    margin-bottom: 1rem;
  }

  .section-title, h2 {
    font-size: 1.8rem;
  }

  #faq h2 {
    font-size: 2rem;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    font-size: 1rem;
  }
  .hero-container {
    flex-direction: column;
  }

  .hero-image,
  .hero-text {
    flex: none;
    width: 100%;
    height: auto;
  }

  .hero-image {
    height: 45vh;
    background-size: cover;
    background-position: center;
  }

  .hero-text {
    padding: 1.5rem;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .cta-button {
    align-self: center;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
  }
}

/* ========= Responsive Video ========= */
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.responsive-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  display: block;
}
