/* ===== Мобильная шапка ===== */

@media (max-width: 768px) {
  #header-mobile img {
    max-height: 28px !important;
    width: auto !important;
  }

  #header-mobile .header-title a {
    font-size: 18px !important;
    font-weight: 600 !important;
  }

  #header-mobile {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }

  #header-mobile .menu-toggle {
    font-size: 26px !important;
  }
}

#header-mobile {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ===== Кнопки на первом экране ===== */

@media (max-width: 768px) {
  .home-buttons a {
    font-size: 18px;
    padding: 14px 20px;
  }
}

/* ===== Блок брендов ===== */

.brands-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
  gap: 20px !important;
  margin-top: 20px !important;
}

.brand-card {
  background: #fff !important;
  border: 1px solid #ddd !important;
  border-radius: 12px !important;
  height: 120px !important;
  padding: 14px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;

  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.brand-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.brand-card img,
img.brand-logo,
.brand-logo {
  max-width: 90% !important;
  max-height: 80% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
}

.brand-name {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  color: #333;
}

@media (max-width: 768px) {
  .brands-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

  .brand-card {
    height: 100px !important;
    padding: 10px !important;
  }

  .brand-name {
    font-size: 14px;
  }
}

details {
  margin-top: 30px;
}

details summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  details summary {
    font-size: 22px;
    line-height: 1.3;
  }
}

/* ===== Пастельные фоны секций ===== */

.section-services {
  background: #f5f9ff;
  padding: 40px 20px;
  border-radius: 16px;
}

.section-steps {
  background: #f5fff7;
  padding: 40px 20px;
  border-radius: 16px;
}

.section-advantages {
  background: #f8f8f8;
  padding: 40px 20px;
  border-radius: 16px;
}

.section-reviews {
  background: #fffdf5;
  padding: 40px 20px;
  border-radius: 16px;
}

.section-brands {
  background: #d1bed1;
  padding: 40px 20px;
  border-radius: 16px;
}

.section-works {
  background: #f7fbff;
  padding: 40px 20px;
  border-radius: 16px;
}

.section-contacts {
  background: #f9f9ff;
  padding: 40px 20px;
  border-radius: 16px;
}

.section-faq {
  background:  #f5f9ff;
  padding: 40px 20px;
  border-radius: 16px;
}
 


.service-card {
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 10px;
  box-sizing: border-box;
} 


/*   можно чуть улучшить кнопку внутри карточки.   */
.service-card a {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  font-weight: 600;
}

.service-card a:hover {
  text-decoration: underline;
}


.services-grid,
.steps-grid,
.advantages-grid,
.reviews-grid,
.works-grid,
.contacts-grid,
.faq-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

.service-card,
.step-card,
.advantage-card,
.work-card,
.review-card,
.faq-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  background: #fff;
  box-sizing: border-box;
}

.step-title {
  margin-top: 0;
  margin-bottom: 8px;
  line-height: 1.3;
}

.step-number-inline {
  font-weight: 700;
  margin-right: 6px;
}


.advantage-card {
  text-align: center;
}

.advantage-icon {
  font-size: 36px;
  margin-bottom: 19px;
}

.work-card {
  overflow: hidden;
  padding: 0;
}

.work-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.work-content {
  padding: 16px;
}

.faq-card {
  padding: 15px;
}

.faq-card p,
.work-content p,
.step-card p,
.advantage-card p,
.review-card p {
  margin-bottom: 0;
}

.step-card h3,
.advantage-card h3,
.work-content h3,
.review-card h3 {
  margin-top: 0;
}

@media (max-width: 640px) {
  .advantages-grid,
  .reviews-grid, 
  .steps-grid,
  .faq-grid{
    grid-template-columns: 1fr;
    }
  .services-grid,
  .works-grid{
    grid-template-columns:repeat(2, 1fr);
    }
}


@media (max-width: 768px) {
  .steps-grid,
  .advantages-grid,
  .reviews-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-top: 10px !important;
  }

  .step-card,
  .advantage-card,
  .review-card {
    padding: 8px !important;
    border-radius: 10px !important;
  }

  .step-number {
    font-size: 22px !important;
    margin-bottom: 6px !important;
  }

  .advantage-icon {
    font-size: 28px !important;
    margin-bottom: 6px !important;
  }

  .review-rating {
    font-size: 18px !important;
    margin-bottom: 6px !important;
  }

  .step-card h3,
  .advantage-card h3,
  .review-card h3 {
    margin-top: 0 !important;
    margin-bottom: 6px !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
  }

  .step-card p,
  .advantage-card p,
  .review-text,
  .review-name {
    margin-bottom: 0 !important;
    line-height: 1.35 !important;
  }
}

/* уменьшил на телефоне внутренние отступы секций, чтобы карточки выглядели компактнее  */

@media (max-width: 768px) {
  .section-services,
  .section-steps,
  .section-advantages,
  .section-reviews,
  .section-brands,
  .section-works,
  .section-contacts,
  .section-faq {
    padding: 24px 12px;
  }
}

.section-more {
  margin-top: 22px;
  text-align: center;
}

.more-button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #ccc;
  background: #fff;
  color: #222;
  transition: all 0.2s ease;
}

.more-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

/*    Улучшаем Усі послуги!      */

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.service-card p {
  margin-bottom: 0;
  line-height: 1.45;
}

.service-link {
  display: inline-block;
  margin-top: 14px;
  align-self: flex-start;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #ccc;
  background: #fff;
  color: #222;
  transition: all 0.2s ease;
}

.service-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.services-cta {
  margin-top: 32px;
  padding: 24px 20px;
  border: 1px solid #ddd;
  border-radius: 14px;
  background: #fff;
  text-align: center;
}

.services-cta h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.services-cta p {
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .services-cta {
    margin-top: 24px;
    padding: 18px 14px;
  }

  .service-link {
    padding: 9px 14px;
  }
}

/* Цвет фона карточек в ПОСЛУГИ */

.all-services-page .service-card {
  background: #eef9ee !important;
  border: 1px solid #d8ead8 !important;
}

.all-services-page .services-grid {
  margin-top: 20px;
}

.all-services-page .services-cta {
  background: #f6fbf6;
  border: 1px solid #d8ead8;
}

/*    Стили Вакансий       */

.vacancies-page {
  margin-top: 10px;
}

.vacancies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.vacancy-card {
  background: #f8fbff;
  border: 1px solid #d9e4ee;
  border-radius: 14px;
  padding: 20px;
  box-sizing: border-box;
}

.vacancy-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.vacancy-card p {
  margin: 0 0 10px 0;
  line-height: 1.45;
}

.vacancy-card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .vacancies-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .vacancy-card {
    padding: 14px;
  }
}
.vacancies-empty {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 14px;
  background: #fffdf5;
  text-align: center;
}

.vacancies-empty p {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.vacancies-cta {
  margin-top: 28px;
  padding: 24px 20px;
  border: 1px solid #ddd;
  border-radius: 14px;
  background: #f8fbff;
  text-align: center;
}

.vacancies-cta h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.vacancies-cta p {
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .vacancies-empty,
  .vacancies-cta {
    padding: 16px 14px;
  }

  .vacancies-empty p {
    font-size: 16px;
  }
}

/*   _______________________________*/
