/* =======================================================
   1. ОБЩИЕ СТИЛИ И СБРОС (RESET) — ЦВЕТА ИЗ МАКЕТА
   ======================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: #111111; /* Глубокий темный цвет вместо чисто черного */
  background-color: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* Сброс подчеркивания для ссылок-кнопок */
.btn-header-link {
  text-decoration: none;
}

/* =======================================================
   2. ШАПКА САЙТА (HEADER)
   ======================================================= */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px; /* Отступы по макету */
  background: #ffffff;
  width: 100%;
  position: relative;
  z-index: 100;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: #111111;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu a {
  text-decoration: none;
  color: #111111;
  font-size: 1rem;
  font-weight: 500;
}

.btn-header, .btn-main, .btn-submit {
  background: #111111; /* Точный темный оттенок кнопок */
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.2s ease;
}

.btn-header:hover, .btn-main:hover, .btn-submit:hover {
  background: #333333;
}

/* Бургер-меню (по умолчанию скрыто) */
.burger-btn, .menu-close {
  display: none;
}

/* =======================================================
   3. ГЛАВНЫЙ ЭКРАН (HERO SECTION)
   ======================================================= */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 0;
  width: 100%;
}

.hero-content {
  width: 100%;
  max-width: 800px;
  margin-bottom: 48px;
  padding: 0 24px;
}

.hero-content h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem); 
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: #111111;
}

.hero-content p {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: #666666; /* Дизайнерский серый цвет текста */
  margin-bottom: 24px;
}

.hero-image-container {
  width: 100%;
  max-width: 1280px; 
  padding: 0 24px;
}

.hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1; 
  object-fit: cover;   
  border-radius: 8px;  
}

/* =======================================================
   4. СЕКЦИЯ ОТЗЫВОВ (REVIEWS)
   ======================================================= */
.reviews-section {
  padding: 100px 24px;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.reviews-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #111111;
}

.section-subtitle {
  color: #666666;
  margin-bottom: 48px;
  font-size: 1.1rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.review-card {
  background: #ffffff;
  padding: 24px;
  border-radius: 8px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #e2e8f0; /* Легкая серая граница картки */
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.02); /* Мягкая тень */
}

.review-text {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 24px;
  color: #111111;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #f3f4f6; /* Плейсхолдер, если фото грузится */
}

.review-author strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111111;
}

.review-author span {
  font-size: 0.75rem;
  color: #666666;
}

/* =======================================================
   5. БЛОК КОНТАКТОВ (CONTACT SECTION)
   ======================================================= */
.contact-section {
  padding: 60px 24px 100px;
  max-width: 1280px;
  margin: 0 auto;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.contact-form-block h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #111111;
}

.contact-form-block p {
  color: #666666;
  margin-bottom: 32px;
  font-size: 1.1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #111111;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #cccccc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  color: #111111;
  outline: none;
  background-color: #ffffff;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #111111;
}

.btn-submit {
  width: 100%;
  margin-top: 10px;
}

.contact-man-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* =======================================================
   6. ПОДВАЛ САЙТА (FOOTER) — ЦВЕТА ИКОНОК ИЗ СЕТКИ FIGMA
   ======================================================= */
.footer {
  border-top: 1px solid #e2e8f0;
  padding: 60px 40px;
  background: #ffffff;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 48px;
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.social-icons {
  display: flex;
  gap: 16px;
}

/* Стилизация для встроенных SVG иконок */
.social-link {
  color: #111111; /* Черный цвет иконок из макета */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.social-link:hover {
  color: #666666; /* Плавное изменение цвета при наведении */
}

.footer-links-grid {
  display: flex;
  gap: 80px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  color: #111111;
}

.footer-col a {
  text-decoration: none;
  color: #666666;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #111111;
}

/* =======================================================
   7. АДАПТИВНОСТЬ ПОД МОБИЛЬНЫЕ УСТРОЙСТВА
   ======================================================= */
@media (max-width: 992px) {
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-image-block {
    order: -1; 
  }

  .footer-container {
    flex-direction: column;
    gap: 40px;
  }

  .footer-links-grid {
    gap: 40px;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 16px 24px;
  }

  .burger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
  }
  
  .burger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #111111;
    border-radius: 2px;
  }

  /* Оновлене меню на весь екран з вирівнюванням по центру */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%; 
    width: 100%;  /* Тепер на всю ширину як на макеті */
    height: 100vh; 
    background: #ffffff;
    flex-direction: column;
    align-items: center; /* Центруємо посилання по горизонталі */
    justify-content: flex-start;
    padding: 120px 24px 40px; 
    transition: right 0.3s ease; 
    z-index: 999;
  }

  .nav-menu.active {
    right: 0;
  }

  /* Посилання з лініями розділення за макетом */
  .nav-menu a {
    width: 100%;
    max-width: 400px; 
    text-align: center;
    padding: 16px 0;
    font-size: 1.25rem;
    font-weight: 500;
    border-bottom: 1px solid #e2e8f0; 
    color: #111111;
  }

  /* Прибираємо лінію у останнього посилання перед кнопкою */
  .nav-menu a:nth-last-of-type(1) {
    border-bottom: none;
    margin-bottom: 24px; 
  }

  .btn-header-link {
    width: auto;
    display: inline-block;
  }

  /* Великий хрестик у верхньому кутку */
  .menu-close {
    display: block;
    position: absolute;
    top: 24px;
    right: 40px;
    font-size: 2.5rem;
    color: #111111;
    line-height: 1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
/* Плавна поява тіні при наведенні на порожні посилання */
a[href="#"] {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

a[href="#"]:hover {
  /* Додає акуратну м'яку тінь навколо посилання */
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1); 
  /* Необов'язково: робить легке підведення вгору, щоб тінь виглядала ефектніше */
  transform: translateY(-1px); 
  border-radius: 4px; /* Згладжує кути тіні, якщо посилання текстове */
}







