.container {
  width: 80%; /* Відносна ширина для більшості екранів */
  max-width: 1200px; /* Максимальна ширина для великих екранів */
  margin: 0 auto; /* Центрування */
  box-sizing: border-box; /* Врахування padding у ширину */
}
/* Основний стиль хедера */
.header {
  background: #2d3748; /* Темний фон */
  padding: 1rem 0;
  color: #ffffff;
}

/* Контейнер в хедері */
.header .container {
  display: flex; /* Включаємо flex тільки для цього контейнера */
  justify-content: space-between; /* Вирівнюємо логотип і меню по краях */
  align-items: center; /* Вирівнюємо по вертикалі */
  width: 80%; /* Ширина контейнера */
  max-width: 1200px; /* Максимальна ширина */
  margin: 0 auto; /* Центруємо контейнер */
}

/* Логотип */
.header .logo img {
  max-height: 70px; /* Обмежуємо висоту логотипу */
  width: auto; /* Зберігаємо пропорції */
}

/* Навігація */
.header .nav {
  display: flex; /* Вирівнюємо елементи меню горизонтально */
  list-style: none;
  margin: 0;
  padding: 0;
}

.header .nav li {
  margin-left: 1.5rem; /* Відступ між пунктами меню */
}

.header .nav a {
  text-decoration: none;
  color: #ffffff;
  font-size: 1rem;
  transition: color 0.3s;
}

.header .nav a:hover {
  color: #3182ce; /* Колір при наведенні */
}

/* Основні стилі для банера */
.banner {
  background: linear-gradient(to right, #2d3748, #4a5568);
  color: white;
  padding: 3rem 0;
}

.banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* Для адаптивності */
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap; /* Адаптивність для мобільних */
}

.banner-text {
  flex: 1;
  max-width: 500px;
}

.banner-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.banner-text p {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  line-height: 1.6;
}

.banner-image {
  flex: 1;
  text-align: center;
}

.banner-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px; /* Додає округлення зображення */
}

/* Кнопка */
.button-primary {
  color: white;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.button-primary:hover {
  background: #c53030;
}

/* Основний стиль секції */
.why-lawyer {
  padding: 3rem 0;
  background: #f7fafc; /* Світлий фон для кращої читабельності */
  color: #2d3748;
}

.why-lawyer h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
  color: #2d3748;
}

/* Контентний блок */
.why-lawyer .content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap; /* Для адаптивності */
}

.why-lawyer .text {
  flex: 1;
  max-width: 600px;
}

.why-lawyer .text p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.why-lawyer .text ul {
  list-style: none;
  padding: 0;
}

.why-lawyer .text ul li {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.why-lawyer .text ul li::before {
  content: "✔";
  color: #3182ce;
  font-size: 1.2rem;
  position: absolute;
  left: 0;
  top: 0.2rem;
}

/* Зображення */
.why-lawyer .image {
  flex: 1;
  text-align: center;
}

.why-lawyer .image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px; /* Додає округлення зображення */
}

/* Стиль секції тарифів */
#pricing-plans {
  padding: 3rem 1rem;
  background: #f7fafc;
}

#pricing-plans h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
  color: #2d3748;
}

/* Контейнер для таблиць */
.pricing-table {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

/* Карточка тарифу */
.pricing-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  text-align: center;
  width: 300px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.pricing-card h3 {
  font-size: 1.5rem;
  color: #2d3748;
  margin-bottom: 1rem;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.pricing-card ul li {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: #4a5568;
}

.pricing-card .price {
  font-size: 1.8rem;
  font-weight: 700;
  color: #3182ce;
  margin-bottom: 1rem;
}

.pricing-card .button-primary {
  background: #3182ce;
  color: white;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.pricing-card .button-primary:hover {
  background: #22558e;
}
/* Загальні стилі для модального вікна */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Прозорий чорний фон */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0; /* Невидиме за замовчуванням */
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.visible {
  opacity: 1; /* Відображення при активному стані */
  pointer-events: auto;
}

.modal-content {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.modal-content .form-group {
  margin-bottom: 15px;
  text-align: left;
}

.modal-content .form-group label {
  display: block;
  font-size: 1rem;
  margin-bottom: 5px;
}

.modal-content .form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.button-primary {
  background: #3182ce; /* Синій колір кнопки */
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.button-primary:hover {
  background: #22558e; /* Темніший синій колір при наведенні */
}

.button-secondary {
  background: #ddd;
  color: #333;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.button-secondary:hover {
  background: #bbb;
}
/* Повідомлення про успішне замовлення */
.success-message {
  margin-top: 20px;
  padding: 15px;
  background-color: #d4edda; /* Зелений фон */
  color: #155724; /* Темний зелений текст */
  border: 1px solid #c3e6cb;
  border-radius: 5px;
  font-size: 1rem;
  text-align: center;
}

.hidden {
  display: none;
}

/* Стиль секції */
#leave-request {
  padding: 3rem 1rem;
  background: #f7fafc;
  text-align: center;
}

#leave-request h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
  color: #2d3748;
}

#leave-request p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #4a5568;
}

/* Стиль форми */
#request-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 1rem;
  color: #2d3748;
  margin-bottom: 0.75rem;
}

input, textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  color: #2d3748;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
  height: 120px;
}

input:focus, textarea:focus {
  border-color: #3182ce;
  outline: none;
  box-shadow: 0 0 5px rgba(49, 130, 206, 0.5);
}

/* Сховане повідомлення за замовчуванням */
.hidden {
  display: none;
}

/* Стиль повідомлення про успішне відправлення */
#success-message {
  background-color: #d4edda; /* Зелений фон */
  color: #155724; /* Темно-зелений текст */
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #c3e6cb;
  border-radius: 5px;
  font-size: 1rem;
  text-align: center;
}

/* Кнопка */
.button-primary {
  display: inline-block;
  background: #3182ce;
  color: white;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.button-primary:hover {
  background: #22558e;
}

/* Стилі секції "Як це працює?" */
.how-it-works {
  padding: 3rem 1rem;
  background: #f7fafc; /* Світлий фон */
  text-align: center;
  color: #2d3748; /* Темний текст */
}

.how-it-works h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #2d3748;
}

.how-it-works .subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #4a5568;
}

.how-it-works .steps {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap; /* Для адаптивності */
}

.how-it-works .step {
  background: #ffffff; /* Білий фон */
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  text-align: left;
  flex: 1; /* Рівний розподіл ширини */
  max-width: 320px; /* Максимальна ширина для кожного кроку */
  margin: 0 auto; /* Центрування */
}

.how-it-works .step-number {
  width: 50px;
  height: 50px;
  background: #3182ce; /* Основний колір */
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.how-it-works .step-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.how-it-works .step-content p {
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.5;
}

/* Стиль секції */
.contacts {
  padding: 3rem 1rem;
  background: #f7fafc;
  text-align: center;
}

.contacts h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
  color: #2d3748;
}

/* Контейнер із контактами */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

/* Картка контакту */
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
}

.contact-item .icon img {
  width: 40px;
  height: 40px;
}

.contact-item h3 {
  font-size: 1.2rem;
  color: #2d3748;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.contact-item p {
  font-size: 1rem;
  color: #4a5568;
}

.contact-item a {
  color: #3182ce;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}
/* Загальні стилі для модального вікна */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Прозорий чорний фон */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0; /* Невидиме за замовчуванням */
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.visible {
    opacity: 1; /* Відображення при активному стані */
    pointer-events: auto;
}

.modal-content {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    max-width: 900px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.modal-content iframe {
    width: 100%; 
    height: 600px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
}

.button-primary {
    background: #3182ce; /* Синій колір кнопки */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.button-primary:hover {
    background: #22558e; /* Темніший синій колір при наведенні */
}
/* Футер */
.footer {
  background: #2d3748; /* Темний фон */
  color: #f7fafc; /* Світлий текст */
  padding: 2rem 1rem;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Верхній блок футера */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-logo img {
  max-width: 150px;
  height: auto;
}

/* Меню швидких посилань */
.footer-menu ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.footer-menu ul li {
  display: inline-block;
}

.footer-menu ul li a {
  color: #f7fafc;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s;
}

.footer-menu ul li a:hover {
  color: #3182ce;
}

/* Нижній блок футера */
.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  color: #a0aec0;
  border-top: 1px solid #4a5568;
  padding-top: 1rem;
}


/* Адаптація для великих екранів */
@media (min-width: 1200px) {
  .container {
    width: 70%; /* Зменшення ширини для великих екранів */
  }
}
  
/* Адаптація для планшетів */
@media (max-width: 768px) {
  .container {
    width: 90%; /* Розширення ширини для менших екранів */
  }
  .banner-content {
    flex-direction: column;
    text-align: center;
  }

  .banner-text h1 {
    font-size: 2rem;
  }

  .banner-text p {
    font-size: 1rem;
  }

  .why-lawyer .content {
    flex-direction: column;
  }

  .why-lawyer h2 {
    font-size: 2rem;
  }

  .why-lawyer .text p {
    font-size: 1rem;
  }

  .pricing-card {
    width: 100%;
  }

  form {
    padding: 1.5rem;
  }

  #leave-request h2 {
    font-size: 2rem;
  }

  #leave-request p {
    font-size: 1rem;
  }

  .how-it-works .steps {
    flex-direction: column; /* Вертикальна структура для мобільних */
    gap: 1.5rem;
  }

  .how-it-works .step {
    max-width: 100%; /* Розтягнути по ширині контейнера */
  }

  .contacts h2 {
    font-size: 2rem;
  }

  .contact-item h3 {
    font-size: 1rem;
  }

  .contact-item p {
    font-size: 0.9rem;
  }
  .footer-top {
    flex-direction: column;
    text-align: center;
  }

  .footer-menu ul {
    justify-content: center;
  }
}

/* Адаптація для мобільних телефонів */
@media (max-width: 480px) {
  .container {
    width: 100%; /* Ширина на всю ширину екрану */
    padding: 0 10px; /* Зменшення відступів */
  }
}