/* ========================================== */
/* НАСТРОЙКИ ШАБЛОНА И ПЕРЕМЕННЫЕ             */
/* ========================================== */
:root {
  /* Достаточно поменять эти цвета, и весь сайт перекрасится! */
  --primary-color: #007bff;     /* Главный цвет (кнопки, акценты) - сейчас синий */
  --primary-hover: #0056b3;     /* Цвет кнопок при наведении */
  --text-dark: #333333;         /* Цвет основного текста */
  --bg-light: #f8f9fa;          /* Светлый фон для блоков */
  --white: #ffffff;
}

/* Базовые сбросы стилей, чтобы сайт везде выглядел одинаково */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================== */
/* СТИЛИ ДЛЯ MODULE 1: HEADER (ШАПКА)         */
/* ========================================== */
.site-header {
  background-color: var(--white);
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo strong {
  display: block;
  font-size: 20px;
  color: var(--primary-color);
}

.logo span {
  font-size: 12px;
  color: #777;
}

.contacts {
  text-align: right;
}

.contacts .phone {
  display: block;
  font-size: 18px;
  font-weight: bold;
  color: var(--text-dark);
  text-decoration: none;
}

.contacts .work-time {
  font-size: 12px;
  color: #777;
}

/* ========================================== */
/* СТИЛИ ДЛЯ MODULE 2: HERO SECTION          */
/* ========================================== */
.hero-section {
  /* Подключение фоновой картинки с легким затемнением для читаемости текста */
  background-image: linear-gradient(rgba(248, 249, 250, 0.85), rgba(248, 249, 250, 0.85)), url('img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  padding: 80px 0;
}

.hero-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.hero-content {
  max-width: 600px;
}

.hero-content h1 {
  font-size: 36px;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 18px;
  color: #555;
  margin-bottom: 30px;
}

.advantages-list {
  list-style: none;
  margin-bottom: 40px;
}

.advantages-list li {
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: 500;
  color: var(--text-dark);
}

/* Стиль блока быстрой связи */
.lead-form {
  background-color: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  max-width: 400px;
  width: 100%;
}

.lead-form h3 {
  margin-bottom: 20px;
  font-size: 18px;
  text-align: center;
}

.btn-submit {
  width: 100%;
  padding: 15px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-submit:hover {
  background-color: var(--primary-hover);
}

/* --- СТИЛИ ДЛЯ НОВЫХ КНОПОК СВЯЗИ В HERO --- */
.btn-call-now {
  display: block;
  text-align: center;
  text-decoration: none;
  background-color: var(--primary-color);
  color: var(--white);
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.btn-call-now:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-whatsapp {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 15px 20px;
  background-color: #25D366; /* Фирменный зеленый цвет WhatsApp */
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
}

/* ========================================== */
/* СТИЛИ ДЛЯ MODULE 3: PRESTATIONS (УСЛУГИ)   */
/* ========================================== */
.services-section {
  padding: 80px 0;
  background-color: var(--white);
}

.section-title {
  text-align: center;
  font-size: 32px;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  color: #777;
  margin-bottom: 50px;
  font-size: 16px;
}

/* Адаптивная CSS-сетка для карточек */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.service-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-info {
  padding: 25px;
}

.service-info h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.service-info p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 20px;
  height: 60px; /* Фиксирует высоту текста для выравнивания кнопок */
}

.service-info .price {
  display: block;
  font-size: 18px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.btn-secondary {
  display: inline-block;
  text-align: center;
  width: 100%;
  padding: 10px;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* ========================================== */
/* STYLES POUR MODULE 4: COMMENT ÇA MARCHE     */
/* ========================================== */
.steps-section {
  padding: 80px 0;
  background-color: var(--bg-light); /* Делаем чередование фонов, чтобы сайт не сливался */
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  text-align: center;
}

.step-item {
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: var(--white);
  font-size: 24px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

.step-item h3 {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.step-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* ========================================== */
/* STYLES POUR MODULE 5: AVIS CLIENTS         */
/* ========================================== */
.reviews-section {
  padding: 80px 0;
  background-color: var(--white);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.review-card {
  background-color: var(--bg-light);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-stars {
  color: #ffc107; /* Красивый золотой цвет для звезд */
  font-size: 20px;
  margin-bottom: 15px;
}

.review-text {
  font-style: italic;
  color: #555;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.review-author strong {
  display: block;
  font-size: 15px;
  color: var(--text-dark);
}

.review-author span {
  font-size: 12px;
  color: #888;
}

/* ========================================== */
/* STYLES POUR MODULE 6: FOOTER               */
/* ========================================== */
.site-footer {
  background-color: var(--text-dark); /* Темный стильный подвал */
  color: #a0a0a0;
  padding: 40px 0;
  font-size: 14px;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-info strong {
  color: var(--white);
  font-size: 18px;
  display: block;
  margin-bottom: 5px;
}

.footer-links a {
  color: #a0a0a0;
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white); /* Подсветка при наведении */
}

/* Стили для ссылки автора в подвале */
.developer-credits {
  font-size: 12px;
  margin-top: 8px;
  color: #777;
}

.developer-credits a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.developer-credits a:hover {
  text-decoration: underline;
}

/* ========================================== */
/* STYLES POUR COOKIE BANNER                  */
/* ========================================== */
.cookie-banner {
  position: fixed;
  bottom: -200px; /* По умолчанию спрятан внизу экрана */
  left: 0;
  width: 100%;
  background-color: rgba(43, 43, 43, 0.95);
  color: var(--white);
  padding: 20px 0;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: bottom 0.5s ease-in-out; /* Плавное выплывание */
}

/* Класс, который делает баннер видимым (добавляется через JavaScript) */
.cookie-banner.active {
  bottom: 0;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.cookie-content p {
  font-size: 14px;
  max-width: 800px;
  line-height: 1.4;
}

.cookie-content a {
  color: var(--primary-color);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.btn-cookie-accept, .btn-cookie-refuse {
  padding: 8px 20px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.btn-cookie-accept {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-cookie-accept:hover {
  background-color: var(--primary-hover);
}

.btn-cookie-refuse {
  background-color: #555;
  color: #ddd;
}

.btn-cookie-refuse:hover {
  background-color: #666;
}

/* ========================================== */
/* СТИЛИ ДЛЯ КНОПКИ НАВЕРХ                    */
/* ========================================== */
.btn-scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50%; /* Делает кнопку круглой */
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 99; /* Чтобы кнопка была поверх других блоков сайта */
  
  /* Начальное состояние: кнопка невидима и смещена вниз */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease-in-out;
}

/* Класс, который добавляется через JavaScript при прокрутке */
.btn-scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn-scroll-top:hover {
  background-color: var(--primary-hover);
  transform: scale(1.1); /* Легкое увеличение при наведении */
}

/* ========================================== */
/* АДАПТИВНОСТЬ (МОБИЛЬНАЯ ВЕРСИЯ)            */
/* ========================================== */
@media (max-width: 768px) {
  .header-wrap, .hero-wrap {
    flex-direction: column;
    text-align: center;
  }
  
  .logo {
    margin-bottom: 15px;
  }
  
  .hero-content h1 {
    font-size: 28px;
  }
  
  .lead-form {
    margin: 30px auto 0 auto;
  }

  .service-info p {
    height: auto; /* На мобильных телефонах отключаем фиксированную высоту текста */
  }

  /* Для подвала и куки на мобильных устройствах */
  .footer-wrap, .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links a {
    display: block;
    margin: 10px 0 0 0;
  }
}