:root {
  --primary-color: #f0ad4e;
  --dark-bg: #1a1a1a;
  --light-bg: #2b2b2b;
  --text-color: #f5f5f5;
  --text-secondary: #a0a0a0;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-color);
  line-height: 1.6;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
h1,
h2,
h3,
h4 {
  color: var(--primary-color);
}
h2 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 40px;
}
section {
  padding: 60px 0;
}
img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.header {
  background-color: rgba(26, 26, 26, 0.85);
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary-color);
}
.header-contact {
  display: flex;
  align-items: center;
}
.phone-number {
  margin-right: 20px;
  font-size: 1.1em;
  font-weight: bold;
}
.button {
  background-color: var(--primary-color);
  color: var(--dark-bg);
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
}
.button:hover {
  background-color: #fff;
}
.hero {
  background-image: url("img/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  padding: 180px 0;
  text-align: center;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: 3em;
  margin-bottom: 10px;
}
.subtitle {
  font-size: 1.2em;
  color: var(--text-secondary);
  margin-bottom: 30px;
}
.button-large {
  background-color: var(--primary-color);
  color: var(--dark-bg);
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s;
}
.button-large:hover {
  background-color: #fff;
  transform: scale(1.05);
}
.services,
.contacts {
  background-color: var(--light-bg);
}
.services-grid,
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-item,
.advantage-item {
  background-color: var(--dark-bg);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}
.service-item img {
  margin-bottom: 15px;
  height: 200px;
  width: 100%;
  object-fit: cover;
}
.contacts-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: center;
}
.contact-info p {
  font-size: 1.1em;
  margin-bottom: 15px;
}
.contact-info a {
  color: var(--primary-color);
  text-decoration: none;
}
.footer {
  padding: 20px 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9em;
}
/* Галерея работ */
.gallery {
  padding: 60px 0;
  background-color: var(--dark-bg);
}
.gallery h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.gallery-item {
  background-color: var(--light-bg);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}
.gallery-item:hover {
  transform: translateY(-5px);
}
.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.gallery-item p {
  padding: 15px;
  font-size: 1.1em;
  color: var(--text-color);
}
/* Отзывы */
.testimonials {
  padding: 60px 0;
  background-color: var(--light-bg);
}
.testimonials h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.testimonial-item {
  background-color: var(--dark-bg);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  padding: 25px;
  text-align: center;
}
.testimonial-item .quote {
  font-style: italic;
  margin-bottom: 15px;
  color: var(--text-color);
  line-height: 1.6;
}
.testimonial-item .author {
  font-weight: bold;
  color: var(--primary-color);
}
/* Контактная форма */
.contacts-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}
.contact-info,
.map-container {
  flex: 1;
  min-width: 300px;
}
.contact-info p {
  font-size: 1.1em;
  margin-bottom: 15px;
}
.contact-info a {
  color: var(--primary-color);
  text-decoration: none;
}
/* Корректировка для карты */
.map-container {
  height: 400px;
}
.map-container iframe {
  height: 100% !important;
  border-radius: 8px;
}
/* Медиа-запросы для мобильных устройств */
@media (max-width: 768px) {
  h1 {
    font-size: 2.2em;
  }
  h2 {
    font-size: 2em;
  }
  .services-grid,
  .advantages-grid,
  .contacts-content {
    grid-template-columns: 1fr;
  }
  .header-content {
    flex-direction: column;
  }
  .header-contact {
    margin-top: 10px;
  }
}

/* Плавающие CTA кнопки */
.floating-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background-color: var(--primary-color);
  color: var(--dark-bg);
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  min-width: 120px;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.cta-btn svg {
  flex-shrink: 0;
}

.cta-phone {
  background-color: #25d366;
}

.cta-whatsapp {
  background-color: #25d366;
}

.cta-telegram {
  background-color: #0088cc;
}

.cta-navigator {
  background-color: #ff6b35;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .floating-cta {
    bottom: 15px;
    right: 15px;
  }
  
  .cta-btn {
    padding: 10px 12px;
    font-size: 12px;
    min-width: 100px;
  }
  
  .cta-btn span {
    display: none;
  }
  
  .cta-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    justify-content: center;
    min-width: auto;
  }
}

/* FAQ секция */
.faq {
  padding: 60px 0;
  background-color: var(--dark-bg);
}

.faq h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  background-color: var(--light-bg);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.1em;
  font-weight: bold;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: rgba(240, 173, 78, 0.1);
}

.faq-question:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: -2px;
}

.faq-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 20px 20px;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Адаптивность FAQ */
@media (max-width: 768px) {
  .faq-question {
    padding: 15px;
    font-size: 1em;
  }
  
  .faq-answer p {
    padding: 0 15px 15px;
  }
}

/* Секция внешних отзывов */
.external-reviews {
  padding: 60px 0;
  background-color: var(--light-bg);
}

.external-reviews h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

/* Ссылки на платформы отзывов */
.reviews-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.review-platform {
  background-color: var(--dark-bg);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.review-platform:hover {
  transform: translateY(-5px);
}

.review-platform h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.3em;
}

.review-platform p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.review-platform-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--primary-color);
  color: var(--dark-bg);
  padding: 12px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.review-platform-link:hover {
  background-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.review-platform-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.review-platform-link svg {
  flex-shrink: 0;
}

/* Адаптивность для внешних отзывов */
@media (max-width: 768px) {
  .reviews-links {
    grid-template-columns: 1fr;
  }
  
  .review-platform {
    padding: 20px;
  }
  
  .review-platform-link {
    padding: 10px 16px;
    font-size: 0.9em;
  }
}
/* Секция с внешними отзывами */
.external-reviews {
  padding: 60px 0;
  background-color: var(--light-bg); /* Интегрируем в тёмную тему */
}
/* Контейнер карусели */
.reviews-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 0;
  scrollbar-width: none; /* Скрываем скроллбар в Firefox */
  margin-bottom: 20px;
}

/* Скрываем скроллбар в Chrome */
.reviews-carousel::-webkit-scrollbar {
  display: none;
}

/* Карточка отзыва */
.review-card {
  flex: 0 0 auto;
  width: 300px;
  background: var(--dark-bg); /* Тёмный фон карточки */
  color: var(--text-color);   /* Светлый текст */
  border: 1px solid rgba(255, 255, 255, 0.1); /* Лёгкая обводка */
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Бейдж платформы */
.review-platform-badge {
  background: rgba(0, 102, 255, 0.2); /* Полупрозрачный синий */
  color: #4d94ff; /* Более светлый синий */
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 500;
}

/* Текст отзыва */
.review-text {
  font-style: italic;
  margin: 0 0 15px 0;
  line-height: 1.5;
  color: #333;
}

/* Автор и рейтинг */
.review-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-author-name {
  font-weight: 600;
  color: #555;
}

.review-rating {
  color: #ffc107;
  font-size: 16px;
}

/* Кнопки навигации */
.reviews-carousel-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.carousel-prev,
.carousel-next {
  background: var(--primary-color);
  color: var(--dark-bg);
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: #0052cc;
}

/* Ссылки на платформы */
.reviews-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.platform-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
  transition: transform 0.3s;
  gap: 8px;
}

.platform-link:hover {
  transform: translateY(-5px);
}

.platform-link span {
  font-size: 14px;
  color: var(--text-secondary);
}
/* Заголовок секции с рейтингом */
.reviews-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  text-align: center;
}

/* Банер рейтинга Яндекса */
.yandex-rating-banner {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--dark-bg);
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.yandex-rating-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  color: #333;
}

.yandex-rating-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.yandex-rating-value {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  line-height: 1;
}

.yandex-rating-stars {
  color: #ffdb4d; /* Жёлтый цвет звёзд, как у Яндекса */
  font-size: 14px;
  letter-spacing: -1px;
}

.yandex-rating-count {
  font-size: 14px;
  color: #666;
  white-space: nowrap;
}

.yandex-rating-source {
  padding-left: 10px;
  border-left: 1px solid #eee;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .yandex-rating-banner {
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    border-radius: 16px;
    text-align: center;
  }
  
  .yandex-rating-source {
    border-left: none;
    border-top: 1px solid #eee;
    padding-left: 0;
    padding-top: 8px;
    width: 100%;
  }
}
/* Секция с внешними отзывами */
.external-reviews {
  padding: 60px 0;
  background-color: var(--light-bg);
}

/* Контейнер карусели */
.reviews-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 0;
  scrollbar-width: none;
  margin-bottom: 20px;
}

.reviews-carousel::-webkit-scrollbar {
  display: none;
}

/* Карточка отзыва */
.review-card {
  flex: 0 0 auto;
  width: 300px;
  background: var(--dark-bg);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  color: var(--text-color);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Бейдж платформы */
.review-platform-badge {
  background: rgba(0, 102, 255, 0.2);
  color: #4d94ff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 500;
}

/* Текст отзыва */
.review-text {
  font-style: italic;
  margin: 0 0 15px 0;
  line-height: 1.5;
  color: var(--text-color);
}

/* Автор и рейтинг */
.review-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-author-name {
  font-weight: 600;
  color: var(--text-secondary);
}

.review-rating {
  color: #ffc107;
  font-size: 16px;
}

/* Кнопки навигации */
.reviews-carousel-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.carousel-prev,
.carousel-next {
  background: var(--primary-color);
  color: var(--dark-bg);
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: #e09a48;
}

/* Ссылки на платформы */
.reviews-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.platform-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
  transition: transform 0.3s;
  gap: 8px;
}

.platform-link:hover {
  transform: translateY(-5px);
}

.platform-link span {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Заголовок секции с рейтингом */
.reviews-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  text-align: center;
}

/* Банер рейтинга Яндекса */
.yandex-rating-banner {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--dark-bg);
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.yandex-rating-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  color: var(--text-color);
}

.yandex-rating-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.yandex-rating-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1;
}

.yandex-rating-stars {
  color: #ffdb4d;
  font-size: 14px;
  letter-spacing: -1px;
}

.yandex-rating-count {
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.yandex-rating-source {
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .yandex-rating-banner {
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    border-radius: 16px;
    text-align: center;
  }
  
  .yandex-rating-source {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 0;
    padding-top: 8px;
    width: 100%;
  }
}
/* Карусель отзывов */
.reviews-carousel-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.reviews-carousel {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  overflow-x: hidden; /* Скрываем стандартный скролл */
  scroll-behavior: smooth;
}

.review-card {
  flex: 0 0 auto;
  width: 300px;
  background: var(--dark-bg);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  color: var(--text-color);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
}

/* Кнопки навигации */
.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.carousel-prev,
.carousel-next {
  background: var(--primary-color);
  color: var(--dark-bg);
  border: none;
  padding: 12px 20px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: #e09a48;
  transform: scale(1.1);
}

.carousel-prev:disabled,
.carousel-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Адаптивность */
@media (max-width: 768px) {
  .review-card {
    width: 280px;
  }
  
  .carousel-prev,
  .carousel-next {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .review-card {
    width: 260px;
  }
  
  .reviews-carousel {
    gap: 15px;
  }
}
