/* =========================================
   Базові налаштування та Змінні
   ========================================= */
:root {
    --primary-bg: #ffffff;
    --secondary-bg: #fdf8ff;
    --brand-main: #bd87d3; /* Лаванда */
    --brand-accent: #ffd749; /* Жовтий */
    --text-dark: #2d3436;
    --text-light: #636e72;
    --font-family: 'Nunito', sans-serif;
    --shadow-md: 0 4px 15px rgba(0,0,0,0.06);
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--primary-bg);
    overflow-x: hidden; /* Запобігає горизонтальному скролу на мобільних */
}

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

h1, h2, h3 { font-weight: 900; line-height: 1.2; color: var(--text-dark); }
img { max-width: 100%; height: auto; display: block; }

/* =========================================
   Кнопки (Виправлено шрифт)
   ========================================= */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    /* Гарантуємо, що шрифт застосується */
    font-family: var(--font-family) !important;
}

.btn-primary { background-color: var(--brand-accent); color: #2d3436; }
.btn-primary:hover {
    background-color: #f7ca2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(247, 202, 43, 0.4);
}

.btn-secondary { background-color: #f1f2f6; color: var(--text-dark); }
.btn-secondary:hover { background-color: #dfe4ea; }

.btn-large { padding: 16px 36px; font-size: 1.1rem; }
.btn-full { width: 100%; display: block; }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; }
.section-header p { font-size: 1.2rem; color: var(--text-light); }

/* =========================================
   Шапка (Закруглене Лого)
   ========================================= */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

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

.logo-link { text-decoration: none; display: flex; align-items: center; }

.logo-img {
    height: 60px;
    width: 60px;
    object-fit: cover;
    /* МАГІЯ ЗАКРУГЛЕННЯ */
    border-radius: 50%;
    border: 3px solid var(--brand-main);
    margin-right: 15px;
}

.logo-text { font-size: 1.8rem; font-weight: 900; color: var(--brand-main); }

/* =========================================
   Hero Секція
   ========================================= */
.hero { background-color: var(--secondary-bg); padding: 80px 0; }
.grid-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.badget {
    display: inline-block;
    background-color: rgba(189, 135, 211, 0.15);
    color: var(--brand-main);
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.hero h1 { font-size: 3.5rem; margin-bottom: 25px; }
.hero p { font-size: 1.3rem; color: var(--text-light); margin-bottom: 40px; max-width: 550px; }
.hero-btns { display: flex; gap: 20px; }
.hero-img { border-radius: 30px; box-shadow: 0 10px 30px rgba(189, 135, 211, 0.2); width: 100%; }

/* =========================================
   Напрямки (Benefits)
   ========================================= */
.benefits { padding: 100px 0; }
.grid-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.benefit-card {
    background-color: var(--primary-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
    text-align: center;
}
.benefit-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--brand-main); }
.icon-wrapper { font-size: 3rem; margin-bottom: 25px; display: block; text-align: center; }
.benefit-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.benefit-card p { color: var(--text-light); font-size: 1rem; }

/* =========================================
   Секція Фахівців (НОВА)
   ========================================= */
.team { padding: 100px 0; background-color: var(--secondary-bg); }
.grid-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.team-card { text-align: center; background: white; padding: 30px; border-radius: 20px; box-shadow: var(--shadow-md); }
.team-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.team-card h3 { font-size: 1.3rem; margin-bottom: 5px; }
.team-card .position { color: var(--brand-main); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; display: block; }
.team-card p { font-size: 0.95rem; color: var(--text-light); }

/* =========================================
   Формат
   ========================================= */
.format-section { padding: 100px 0; }
.grid-format { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.rounded-img { border-radius: 20px; box-shadow: var(--shadow-md); width: 100%; }
.format-content h2 { font-size: 2.8rem; margin-bottom: 30px; }
.format-list { list-style: none; }
.format-list li { font-size: 1.1rem; margin-bottom: 18px; position: relative; padding-left: 35px; }
.format-list li::before { content: '☀️'; position: absolute; left: 0; top: 2px; }

/* =========================================
   Коректна Кнопка в Формі (Виправлено)
   ========================================= */
.contact-section { padding: 100px 0; background: linear-gradient(135deg, var(--brand-main) 0%, #a86cc1 100%); }
.contact-box { max-width: 600px; margin: 0 auto; background-color: var(--primary-bg); padding: 60px; border-radius: 30px; box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.contact-form { margin-top: 40px; display: flex; flex-direction: column; gap: 20px; }
.form-group input {
    width: 100%;
    padding: 18px 25px;
    border-radius: 50px;
    border: 2px solid #eee;
    font-family: var(--font-family); /* Явно задаємо шрифт */
    font-size: 1rem;
    transition: var(--transition);
}
.form-group input:focus { outline: none; border-color: var(--brand-main); box-shadow: 0 0 10px rgba(189, 135, 211, 0.1); }

/* Підсилюємо стилі кнопки, щоб шрифт точно застосувався */
.contact-form .btn-submit {
    font-family: var(--font-family) !important;
    font-weight: 700 !important;
}

/* =========================================
   Карта (НОВА)
   ========================================= */
.map-section { padding: 100px 0; text-align: center; }
.map-wrapper { max-width: 1000px; margin: 40px auto 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); border: 5px solid white; line-height: 0; }
/* Прибираємо простір під iframe */
.map-wrapper iframe { display: block; border: none; }

/* =========================================
   Підвал
   ========================================= */
.footer { background-color: #2d3436; color: #b2bec3; padding: 40px 0; text-align: center; font-size: 0.9rem; }
.credits { margin-top: 10px; font-size: 0.8rem; }

/* =========================================
   АДАПТИВНІСТЬ (Responsive Design)
   ========================================= */

/* Планшети (до 992px) */
@media (max-width: 992px) {
    html { font-size: 15px; } /* Трохи зменшуємо базовий шрифт */
    
    .section-header h2 { font-size: 2.2rem; }
    .hero { padding: 60px 0; }
    .grid-hero, .grid-format { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    
    .hero-content p, .section-header p { margin-left: auto; margin-right: auto; }
    .hero-btns { justify-content: center; }
    
    /* Зображення йдуть ПЕРЕД текстом */
    .hero-image-wrapper, .format-image { order: -1; max-width: 500px; margin: 0 auto; }
    
    .format-content h2 { font-size: 2.4rem; }
    .format-list li { text-align: left; max-width: 500px; margin-left: auto; margin-right: auto; }
}

/* Мобільні телефони (до 768px) */
@media (max-width: 768px) {
    .header { padding: 5px 0; }
    .logo-img { height: 50px; width: 50px; }
    .logo-text { font-size: 1.5rem; }
    
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    
    .grid-benefits, .grid-team { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
    
    .contact-box { padding: 40px 20px; }
    .contact-box h2 { font-size: 1.8rem; }
    
    .map-wrapper { border-width: 2px; }
}

/* Маленькі екрани (до 480px) */
@media (max-width: 480px) {
    .hero-btns { flex-direction: column; gap: 10px; }
    .btn-large { width: 100%; }
    .header .btn-primary { display: none; } /* Ховаємо кнопку в шапці на дуже малих екранах */
}