body {
  margin: 0;
  font-family: "Segoe UI", "Poppins", sans-serif;
  background-color: #f9f9f9;
  color: white;
}


.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(10, 10, 10, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 50px;
  font-weight: 600;
  font-size: 1.1rem;
  gap: 40px;
  z-index: 1000;
    background-color: transparent; /* по умолчанию прозрачный */

}

.logo {
  font-size: 1.8rem;
  letter-spacing: 2px;
  cursor: default;
  margin-right: 60px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 50px;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-button button {
  background-color: #ff3333;
  border: none;
  color: white;
  padding: 12px 22px;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-left: 60px;
}

.social-icons.active a {
  color: #ff3333;
    font-size: 2.4rem;
  transition: all 0.3s ease;
  transform-origin: center;
  text-decoration: none;
}

/* Баннер */
.banner {
  height: 100vh;
  padding-top: 100px;
  background-image: url("car.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.banner-content {
  text-align: center;
  color: white;
  max-width: 800px;
  z-index: 2;
  position: relative;
  margin-top: 60px;
}

.banner-content h1 {
  font-size: 3rem;
  max-width: 100%;
  margin-bottom: 30px;
  line-height: 1.3;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

/* Блок преимуществ */
.advantages {
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.advantages h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color:#000000;
}

.advantages-list {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: nowrap;
  overflow-x: auto;
}


.advantage-item {
  position: relative;
  border-radius: 12px;
  padding: 30px 25px;
  max-width: 320px;
  flex-grow: 1;
  background-color: rgba(255, 255, 255, 0.05);
  transition: transform 0.3s;
  overflow: hidden;
}


.advantage-item i {
  font-size: 3rem;
  color: #ff3333;
  margin-bottom: 20px;
}

.advantage-item h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: #000000;
}

.advantage-item p {
  font-size: 1rem;
  line-height: 1.5;
  color: #2f2e2e;
}

@media (max-width: 1024px) {
  .nav-links {
    gap: 30px;
    font-size: 1rem;
  }

  .contact-button button {
    padding: 10px 18px;
    font-size: 0.95rem;
  }

  .banner-content h1 {
    font-size: 3rem;
  }

  .advantage-item {
    max-width: 280px;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
    gap: 10px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.95rem;
  }

  .contact-button {
    align-self: flex-end;
  }

  .social-icons a {
    font-size: 2.2rem;
  }

  .banner-content h1 {
    font-size: 2.2rem;
    padding: 0 10px;
  }

  .advantages-list {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.5rem;
  }

  .contact-button button {
    font-size: 0.9rem;
    padding: 8px 16px;
  }

  .banner-content h1 {
    font-size: 1.8rem;
  }

  .advantage-item h3 {
    font-size: 1.4rem;
  }

  .advantage-item p {
    font-size: 0.95rem;
  }
}

.logo img {
  height: 70px;       /* фиксированная высота */
  width: auto;
  object-fit: contain;
  display: block;
}

/* Соц.иконки вертикально + под навигацией */
.social-icons {
  position: fixed;
  top: 200px; /* изначально под навбаром */
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  z-index: 999;
  transition: top 0.3s ease;
}

.social-icons.scrolled {
  top: 50px; /* сдвигается на 50px вниз */
}

/* Кнопка бургер */
.burger {
  display: none;
  position: relative;
  width: 30px;
  height: 22px;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  margin-left: 20px;
  z-index: 1100;
}

.burger span {
  position: absolute;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 2px;
  left: 0;
  transition: 0.3s;
}

.burger span:nth-child(1) {
  top: 0;
}

.burger span:nth-child(2) {
  top: 9px;
}

.burger span:nth-child(3) {
  top: 18px;
}

/* Анимация открытия бургера */
.burger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* Скрываем меню и соц.сети на мобиле по умолчанию */
@media (max-width: 768px) {
  .nav-links,
  .social-icons,
  .contact-button {
    display: none;
  }

  .burger {
    display: block;
  }

  /* Показываем меню и соц.сети при активном бургерe */
  .burger.active ~ .nav-links,
  .burger.active ~ .contact-button,
  .burger.active ~ .social-icons {
    display: flex;
  }

  /* Стиль для вертикального меню на мобиле */
  .nav-links {
    flex-direction: column;
    background-color: rgba(10, 10, 10, 0.95);
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    padding: 20px 0;
    gap: 15px;
    z-index: 1050;
  }

  .nav-links li {
    text-align: center;
  }

  .contact-button {
    justify-content: center;
    margin: 10px 0 20px 0;
  }
}

.map-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
  color:#000000;
}

.map-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.site-footer {
  background-color: #121212;
  color: #ccc;
  padding: 30px 15px 15px;
  font-size: 0.9rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-block {
  flex: 1 1 250px;
  min-width: 220px;
}

.footer-block h3 {
  color: #ff3333;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.footer-block p,
.footer-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-block ul li {
  margin-bottom: 8px;
}

.footer-block ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-block ul li a:hover {
  color: #ff3333;
}

.footer-block a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-block a:hover {
  color: #ff3333;
}

.footer-bottom {
  max-width: 1200px;
  margin: 20px auto 0;
  padding-top: 10px;
  border-top: 1px solid #333;
  text-align: center;
  font-size: 0.85rem;
  color: #777;
}

@media (max-width: 768px) {
  .footer-container {
    gap: 2px; /* меньше отступ между блоками */
  }

  .footer-block {
    min-width: auto;
  }
}

.services-masonry {
  padding: 80px 20px;
  max-width: 1300px;
  margin: auto;
  color: white;
  text-align: center;
}

.services-masonry h2 {
  font-size: 2.8rem;
  margin-bottom: 50px;
  color: #000000;
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.service-card {
  position: relative;
  background: transparent;
  border-radius: 12px;
  padding: 25px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 180px;
  cursor: default;
  border: 1px solid #e0dddd; /* темная рамка */
  transition: transform 0.3s ease;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px; /* толщина рамки */
  background: linear-gradient(270deg, #ff3c3c, #ff9d2f, #3cffd3, #ff3c3c);
  background-size: 600% 600%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: gradientAnim 8s ease infinite;
  pointer-events: none;
  z-index: 0;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: scale(1.03);
  border-color: transparent; /* чтобы рамка заменялась анимированной */
}

@keyframes gradientAnim {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}



.service-card i {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #ff3333;
  flex-shrink: 0;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  flex-shrink: 0;
  color: #000000;
}

/* Описание текста — всегда видно */
.service-description {
  color: #434343;
  font-size: 0.95rem;
  margin-top: 0;
  max-height: none;
  opacity: 1;
  overflow: visible;
}

/* Разные размеры */
.service-card.large {
  grid-row: span 2;
}

.service-card.wide {
  grid-column: span 2;
}

/* Адаптив */
@media (max-width: 768px) {
  .services-masonry h2 {
    font-size: 2.2rem;
  }

  .masonry-grid {
    grid-template-columns: 1fr;
  }

  .service-card.large,
  .service-card.wide {
    grid-column: span 1;
    grid-row: span 1;
  }
}

.banner-btn {
  margin-top: 30px;
  background-color: #ff3333;
  border: none;
  color: white;
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.banner-btn:hover {
  background-color: #e52a2a;
  transform: scale(1.05);
}

.banner-overlay {
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(10,10,10,0.7) 30%, rgba(10,10,10,0.3) 80%, rgba(10,10,10,0) 100%);
  display: flex;
  align-items: center;
}

.banner-left {
  max-width: 600px;
  padding: 0 80px;
  text-align: left;
}

.banner-left h1 {
  font-size: 3.4rem;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

.banner-left .banner-btn {
  margin-top: 30px;
  padding: 14px 32px;
}


/* Основные изменения адаптивности */

@media (max-width: 1024px) {
  .nav-links {
    gap: 25px;
    font-size: 1rem;
  }

  .contact-button button {
    padding: 10px 18px;
    font-size: 0.95rem;
  }

  .banner-content h1 {
    font-size: 2.8rem;
  }

  .advantage-item {
    max-width: 280px;
  }

  /* Убираем overflow-x в advantages-list на меньших экранах */
  .advantages-list {
    overflow-x: visible;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
    gap: 10px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.95rem;
    background-color: rgba(10, 10, 10, 0.95);
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    padding: 20px 0;
    flex-direction: column;
    display: none; /* по умолчанию скрыто */
    z-index: 1050;
  }

  .burger.active ~ .nav-links {
    display: flex; /* показываем при активном бургере */
  }

  .nav-links li {
    text-align: center;
  }

  .contact-button {
    align-self: center;
    margin: 10px 0 20px 0;
    display: none;
  }

  .burger.active ~ .contact-button {
    display: flex;
    justify-content: center;
  }

  .social-icons {
    top: 150px;
    left: 10px;
    gap: 20px;
    font-size: 2rem;
    display: none;
    position: fixed;
    flex-direction: row;
    width: calc(100% - 20px);
    justify-content: center;
    z-index: 1050;
  }

  .burger.active ~ .social-icons {
    display: flex;
  }

  /* Баннер */
  .banner-left {
    max-width: 100%;
    padding: 0 20px;
    text-align: center;
  }

  .banner-left h1 {
    font-size: 2.2rem;
    line-height: 1.3;
  }

  .banner-btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  /* Преимущества */
  .advantages-list {
    flex-direction: column;
    gap: 25px;
  }

  .advantage-item {
    max-width: 100%;
  }

  /* Сервисы */
  .services-list {
    flex-direction: column;
    gap: 25px;
  }

  .service-item {
    flex-basis: 100%;
  }

  /* Отзывы */
  .review-list {
    flex-direction: column;
    gap: 25px;
  }

  .review-card {
    max-width: 100%;
  }

  /* YouTube */
  .youtube-list {
    flex-direction: column;
    gap: 25px;
  }

  .youtube-item {
    max-width: 100%;
  }
}


.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.5rem;
  }

  .contact-button button {
    font-size: 0.9rem;
    padding: 8px 16px;
  }

  .banner-left h1 {
    font-size: 1.8rem;
  }

  .banner-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .advantage-item h3 {
    font-size: 1.3rem;
  }

  .advantage-item p {
    font-size: 0.9rem;
  }

  .service-item h3 {
    font-size: 1.4rem;
  }

  .service-item p {
    font-size: 0.9rem;
  }

  .review-content h3 {
    font-size: 1.1rem;
  }

  .review-content p {
    font-size: 0.9rem;
  }
}
/* Скрываем навигацию и соцсети при ширине <1200px */
@media (max-width: 1199px) {
  .nav-links,
  .social-icons,
  .contact-button {
    display: none;
  }

  .burger {
    display: flex;
  }

  /* Меню и соцсети внутри активного меню бургер */
  .burger.active ~ .nav-links,
  .burger.active ~ .social-icons,
  .burger.active ~ .contact-button {
    display: flex;
    flex-direction: column;
    background-color: rgba(10,10,10,0.95);
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    padding: 20px 0;
    gap: 20px;
    z-index: 1050;
  }

  .burger.active ~ .nav-links {
    flex-direction: column;
    align-items: center;
  }

  .burger.active ~ .social-icons {
    flex-direction: row;
    justify-content: center;
    font-size: 2rem;
  }

  .burger.active ~ .contact-button {
    justify-content: center;
    padding-bottom: 10px;
  }

  /* В обычном состоянии бургер скрыт */
  .burger {
    cursor: pointer;
  }
}

/* Оверлей - затемненный фон */
.burger-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.4);
  z-index: 999; /* ниже, чем меню, чтобы меню было сверху */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

/* Активный оверлей */
.burger-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Меню с высоким z-index */
.burger-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 30px;
  height: 100vh;
  background-color: #000000cc;
  box-shadow: -3px 0 10px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 0px 20px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  z-index: 1000; /* больше, чем у оверлея */
  overflow-y: auto;
}

.burger-menu.active {
  transform: translateX(0);
}


/* Навигация в бургер меню */
.burger-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0;
  margin: 0;
}

.burger-nav-links li a {
  font-size: 18px;
  color: #333;
  text-decoration: none;
}

/* Кнопка заявки в бургер меню */
.burger-contact-button button {
  width: 100%;
  font-size: 16px;
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 0;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}

/* Соцсети в бургер меню */
.burger-social-icons {
  display: flex;
  flex-direction: column;
  justify-content: space-around; /* равномерно распределить по высоте */
  height: 100%; /* занять всю высоту родителя */
  padding: 10px 0;
}

.burger-social-icons a {
  font-size: 40px;
  color: #ffffffeb;
  text-decoration: none;
  transition: color 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1; /* иконки могут растягиваться */
}

.burger-social-icons a:hover {
  color: #e61b21;
}
.work-results {
  padding: 40px 20px;
  --background: linear-gradient(135deg, #1f1f1f, #2b2b2b);
  color: #fff;
  text-align: center;
}
.work-results .container {
  max-width: 1200px;
  margin: 0 auto;
}
.work-results h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
  color: #000000;
}
.work-results .subtitle {
  font-size: 1.2rem;
  color: #ababab;
  margin-bottom: 50px;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.result-item {
  background: #2e2e2e;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}
.result-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.image-wrapper {
  overflow: hidden;
  height: 220px;
  position: relative;
}
.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.result-item:hover img {
  transform: scale(1.05);
}
.result-item p {
  padding: 20px;
  font-size: 1.05rem;
  color: #eee;
}

.question-help {
  padding: 70px 20px;
  background: #121212;
  color: #fff;
  text-align: center;
}
.question-help .container {
  max-width: 800px;
  margin: 0 auto;
}
.question-help h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #f3c623;
}
.question-help .subtitle {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 30px;
}
.btn-help {
  display: inline-block;
  background-color: #f3c623;
  color: #141414;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s;
  text-decoration: none;
}
.btn-help:hover {
  background-color: #ffdb4d;
}

@media (max-width: 600px) {
  .image-wrapper {
    height: 180px;
  }
  .work-results h2,
  .question-help h2 {
    font-size: 1.8rem;
  }
  .work-results .subtitle,
  .question-help .subtitle {
    font-size: 1rem;
  }
  .btn-help {
    width: 80%;
    padding: 14px;
  }
}

/* ✅ Адаптация под планшеты и телефоны */
@media (max-width: 768px) {
  .question-help h2 {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .btn-help {
    font-size: 15px;
    padding: 12px 24px;
  }
}

@media (max-width: 480px) {
  .question-help {
    padding: 40px 20px;
  }

  .question-help h2 {
    font-size: 20px;
  }

  .btn-help {
    width: 80%;
    font-size: 16px;
    padding: 14px;
  }
}

.results-work {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.result-item {
  flex: 1 1 300px; /* адаптивный размер */
  max-width: 320px;
  aspect-ratio: 16 / 9; /* видеоформат */
  position: relative;
}

.result-item iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.btn-channel-block {
  display: inline-block;
  padding: 10px 24px;
  background-color: transparent;
  color: #e53935;
  font-weight: 600;
  font-size: 16px;
  border: 2px solid #e53935;
  border-radius: 24px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
   margin-top: 40px;
}

.btn-channel-block:hover,
.btn-channel-block:focus {
  background-color: #e53935;
  color: #fff;
  outline: none;
}

.about-service {
  padding: 60px 20px;
  background-color: #f9f9f9;
  max-width: 1200px;
  margin: 0 auto;
}

.about-main {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.about-text {
  flex: 1 1 400px;
}

.about-text h2 {
  font-size: 2.8rem;
  color: #222;
  margin-bottom: 16px;
}

.about-text p {
  font-size: 19px;
  line-height: 1.6;
  color: #555;
}

.about-main-photo {
  flex: 1 1 400px;
  text-align: center;
}



.about-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}


.about-gallery img:hover {
  transform: scale(1.02);
}


.about-main-photo img,
.about-gallery img {
  width: 100%;
  height: 260px; /* Фиксированная высота */
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.about-gallery img:hover {
  transform: scale(1.02);
}

.about-description {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 20px;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-list li {
  font-size: 19px;
  color: #333;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.about-list li i {
  color: #ff3333;
  margin-right: 10px;
  font-size: 20px;
}


@media (max-width: 1450px) and (min-width: 1200px) {
  .advantages {
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
  margin-left: 50px;
  margin-right: 50px;
}
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-left: 50px;
  margin-right: 50px;
}
.about-main {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
    margin-left: 50px;
    margin-right: 50px;
}
.about-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
    margin-left: 50px;
    margin-right: 50px;
}
}

