/* --- ОСНОВНІ НАЛАШТУВАННЯ --- */
* { box-sizing: border-box; }

body {
    font-family: 'Lucida Grande', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #e7d792; /* Основний пісочний фон */
    color: #2c1a1a; /* Темно-коричневий текст */
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; transition: 0.3s; }
img { max-width: 100%; display: block; }

/* --- ШАПКА (HEADER) --- */
header {
    background-color: #462828; /* Темний шоколад */
    padding: 20px 0;
    color: #e7d792;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    flex-direction: column; /* Центрування: лого зверху, меню знизу */
    align-items: center;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 28px;
    font-weight: 700;
    color: #e7d792;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.logo img {
    height: 60px;
    margin-right: 15px;
    border-radius: 50%;
    border: 3px solid #e7d792;
    background: #fff;
}

/* --- НАВІГАЦІЯ --- */
nav { width: 100%; display: flex; justify-content: center; }

nav ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

nav ul li { margin: 0 15px; position: relative; }

nav ul li a {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover, nav ul li a.active {
    color: #e7d792;
    border-bottom: 2px solid #e7d792;
}

/* Випадаюче меню */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #5e3b3b;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    z-index: 100;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
    padding: 5px 0;
}

.dropdown:hover .dropdown-content { display: block; }

.dropdown-content li { margin: 0; width: 100%; }
.dropdown-content a {
    display: block;
    padding: 10px 15px;
    text-align: center;
    border-bottom: none;
}
.dropdown-content a:hover { background-color: #462828; }

/* --- ГОЛОВНИЙ КОНТЕНТ --- */
main { flex: 1; padding-top: 20px; }

/* Картки та блоки (Білий фон для читабельності) */
.content-box, .card {
    background: #fff8e1; /* Дуже світлий крем */
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(70, 40, 40, 0.1);
    border: 1px solid rgba(70, 40, 40, 0.1);
}

.section-title {
    text-align: center;
    color: #462828;
    font-size: 2rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    width: 100%;
}

/* --- СЛАЙДЕР --- */
.slider-container {
    position: relative;
    max-width: 100%;
    height: 450px;
    overflow: hidden;
    margin-bottom: 40px;
    border-bottom: 5px solid #462828;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.slider { display: flex; transition: transform 0.5s ease-in-out; height: 100%; }
.slide { min-width: 100%; position: relative; }
.slide img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6); }

.slide-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: #e7d792;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    text-align: center;
    background: rgba(70, 40, 40, 0.6);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #e7d792;
}

.prev, .next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(70, 40, 40, 0.8); color: #e7d792;
    border: 2px solid #e7d792;
    padding: 15px; cursor: pointer; font-size: 20px; border-radius: 50%;
    width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
}
.next { right: 20px; } .prev { left: 20px; }
.prev:hover, .next:hover { background: #e7d792; color: #462828; border-color: #462828; }

/* --- ВІДЕО --- */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border: 4px solid #462828;
}
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* --- КНОПКИ --- */
.btn {
    display: inline-block;
    background: #462828;
    color: #e7d792;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    border: 2px solid #462828;
    cursor: pointer;
}

.btn:hover {
    background: transparent;
    color: #462828;
}

.center-btn { text-align: center; margin-top: 20px; }

/* Контейнер форми */
.form-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 25px;
  border-radius: 16px;
    border: 2px solid #462828;
  background: #e7d792;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  font-family: Lucida Grande;
}

/* Заголовок */
.form-container h2 {
  margin-bottom: 20px;
  text-align: center;
}

/* Поля */
.form-container input,
.form-container textarea {
  width: 100%;
  padding: 12px;
  margin-top: 5px;
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
  transition: 0.2s;
}

/* Фокус */
.form-container input:focus,
.form-container textarea:focus {
  border-color: #007aff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,122,255,0.15);
}

/* Кнопка */
.form-container button {
  display: inline-block;
    background: #462828;
    color: #e7d792;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    border: 2px solid #462828;
    cursor: pointer;
}

/* Hover */
.form-container button:hover {
  background: transparent;
    color: #462828;
}

/* Адаптив */
@media (max-width: 600px) {
  .form-container {
    margin: 20px;
    padding: 20px;
  }
}

/* --- GRID (Сітка для навичок/карток) --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #ddd;
    transition: 0.3s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.feature-card i { font-size: 3rem; color: #462828; margin-bottom: 15px; }

/* --- FAQ та Файли --- */
details {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid #ccc;
}
summary {
    padding: 15px;
    background: #5e3b3b;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}
details[open] summary { background: #462828; color: #e7d792; }
details p { padding: 15px; margin: 0; background: #fff8e1; }

/* --- ФУТЕР --- */
footer {
    background-color: #462828;
    color: #e7d792;
    text-align: center;
    padding: 30px 0;
    margin-top: auto;
    border-top: 5px solid #5e3b3b;
}
