/* Подключение шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Playfair+Display:wght@700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Inter', sans-serif;
  background: #f7f7f7;
  color: #000;
  line-height: 1.5;
}

/* Шапка */
header {
  position: relative;
  height: 50vh;
  background: url('../img/header-bg.jpg') center center / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  overflow: visible; /* ✅ Меняем на visible */
  z-index: 0;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

header * {
  position: relative;
  z-index: 2;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

header p {
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

/* Кнопки */
.btn {
  background: #007bff;
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #0056b3;
}

.btn.primary {
  display: inline-block;
  background-color: #007bff;
  color: #fff;
  font-weight: 600;
  font-size: 1.25rem;
  padding: 1rem 2.8rem;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 123, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn.primary:hover {
  background-color: #0056b3;
  box-shadow: 0 8px 20px rgba(0, 86, 179, 0.4);
  transform: translateY(-2px);
}

/* Дропдаун */
.btn-dropdown {
  position: relative;
  display: inline-block;
  margin-top: 1rem;
}

.btn-dropdown .dropdown-content {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background-color: #fff;
  min-width: 200px;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  z-index: 10;
  overflow: hidden;
}

.btn-dropdown .dropdown-content a {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: #333;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}

.btn-dropdown .dropdown-content a:hover {
  background-color: #f7f7f7;
}

/* Контент */
section {
  background: #ffffff;
  padding: 1rem 1rem;
  max-width: 960px;
  margin: 0 auto;
}

section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}

section p,
section ul {
  font-size: 1rem;
}

ul {
  list-style: disc inside;
}

/* Таблица */
.table-wrapper {
  overflow-x: auto;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden;
}

.pricing-table thead {
  background-color: #f0f0f0;
}

.pricing-table th,
.pricing-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.pricing-table th {
  font-weight: 600;
  color: #333;
}

.pricing-table td {
  color: #444;
}

/* Футер */
footer {
  background: #f8f8f8;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #666;
}

/* Адаптив */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 1rem;
  }

  .btn.primary {
    font-size: 1rem;
    padding: 0.9rem 2rem;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 0.75rem;
  }
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background-color: #fff;
  min-width: 200px;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  z-index: 100;
  overflow: hidden;
}

.dropdown-content.show {
  display: block;
}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  margin-bottom: 2rem;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
