/* Базові стилі та ресет для всіх елементів */
:root {
    --primary-color: #ba00b7; /* Основний фіолетовий */
    --secondary-color: #ff00c8; /* Яскравіший рожевий */
    --accent-color: #4A90E2; /* Акцентний синій (якщо потрібен) */
    --text-color: #333333; /* Темний текст */
    --light-text-color: #F8F8F8; /* Світлий текст */
    --background-light: #f9c0ee; /* Дуже світлий фон */
    --background-mid: #fcbcf7; /* Середній фон */
    --background-dark: #3c0043; /* Темний фон (для хедера/футера) */
    --border-color: #D1D5DB; /* Колір бордюрів */
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--background-light);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Стилі для шапки сайту (Header) */
header {
    background: #7b00a8;
    background: radial-gradient(circle,rgba(123, 0, 168, 1) 0%, rgba(255, 0, 225, 1) 100%);
    color: var(--light-text-color);
    padding: 1rem 0; /* Базовий padding */
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 2px 10px var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-and-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.logo-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
    background-color: var(--light-text-color);
}

header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

/* Стиль для виділених літер у H1 */
header h1 .highlight-letter {
    color: #feff06; /* Встановлюємо новий колір #feff06 */
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    flex-grow: 1;
}

header nav a {
    color: var(--light-text-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

header nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

header nav a:hover::after {
    width: 100%;
}

header nav a:hover {
    color: var(--secondary-color);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.language-switcher .lang-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--light-text-color);
    border: 1px solid var(--light-text-color);
    padding: 0.5rem 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    font-size: 0.9rem;
}

.language-switcher .lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
    border-color: var(--secondary-color);
}

.language-switcher .lang-btn.active {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #ffffff;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('img/leo1.jpeg') no-repeat center center / cover;
    color: var(--light-text-color);
    text-align: center;
    padding: 8rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

.hero-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section p {
    font-size: 1.35rem;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    margin: 0 0.75rem;
    box-shadow: 0 4px 8px var(--shadow-light);
    letter-spacing: 0.5px;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border: 3px solid #ffffff;
}

.primary-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 12px var(--shadow-medium);
}

.secondary-btn {
    background-color: transparent;
    color: var(--light-text-color);
    border: 2px solid var(--light-text-color);
}

.secondary-btn:hover {
    background-color: var(--light-text-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 12px var(--shadow-medium);
}

/* Section Headings */
.features-section h3, .about-section h3, .contact-form-section h3, .call-to-action-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    margin-bottom: 3.5rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 0.5rem;
    text-align: center;
}

.features-section h3::after, .about-section h3::after, .contact-form-section h3::after, .call-to-action-section h3::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Features Section */
.features-section {
    background-color: var(--background-light);
    padding: 5rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.feature-item {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 6px 20px var(--shadow-light);
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-item:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 12px 30px var(--shadow-medium);
}

.feature-item img {
    width: 90px;
    height: 90px;
    margin-bottom: 1.8rem;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--secondary-color);
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feature-item h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.feature-item p {
    font-size: 1.05rem;
    color: #525252;
}

/* About Section */
.about-section {
    background-color: #ffffff;
    padding: 5rem 0;
    text-align: center;
}

.about-section p {
    font-size: 1.15rem;
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
    color: #525252;
}


/* Call to Action Section */
.call-to-action-section {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text-color);
    padding: 6rem 0;
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.2);
}

.call-to-action-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.call-to-action-section h3 {
    color: var(--light-text-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.call-to-action-section p {
    font-size: 1.35rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Стилі для іконок месенджерів у Call to Action секції */
.cta-social-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 1.5rem;
}

.cta-social-links a {
    color: var(--light-text-color);
    font-size: 3.5rem;
    transition: color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

.cta-social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-5px) scale(1.1);
}

/* Стилі для наведення на іконки месенджерів */
.cta-social-links a:nth-child(1):hover { /* Telegram */
    color: #06bdff;
}

.cta-social-links a:nth-child(2):hover { /* WhatsApp */
    color: #06ff4f;
}

.cta-social-links a:nth-child(3):hover { /* Viber */
    color: #d102e6;
}


/* Contact Form Section */
.contact-form-section {
    background-color: var(--background-mid);
    padding: 5rem 0;
    text-align: center;
}

.contact-form-section p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    color: var(--text-color);
}

.contact-form {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 6px 20px var(--shadow-light);
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    border: 3px solid var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 1.05rem;
}

/* Виправлено селектори: прибрано зайвий пробіл між input та [type="..."] */
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"] {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Виправлено селектори: прибрано зайвий пробіл між input та [type="..."] */
.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(186, 0, 183, 0.2);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.85rem;
}

.form-submit-btn {
    width: auto;
    margin-top: 1.5rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background-color: var(--background-dark);
    color: var(--light-text-color);
    text-align: center;
    padding: 2.5rem 0;
    font-size: 0.95rem;
    border-top: 3px solid var(--primary-color);
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icons a {
    color: var(--light-text-color);
    font-size: 1.8rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-icons a:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* Scroll to Top Button */
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    line-height: 50px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 10px var(--shadow-medium);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#scrollToTopBtn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-section h2 {
        font-size: 3rem;
    }
    .features-section h3, .contact-form-section h3, .about-section h3, .call-to-action-section h3 {
        font-size: 2.4rem;
    }
    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }
    header nav {
        order: 1;
        flex-basis: 100%;
        margin-top: 1rem;
    }
    header nav ul {
        flex-direction: row;
        justify-content: center;
    }
    .language-switcher {
        order: 2;
        margin-left: 0;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.5rem 0; /* Зменшений padding для мобільних */
    }
    header .container {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem; /* Зменшуємо загальний відступ між елементами в хедері */
    }
    .logo-and-title {
        margin-bottom: 0.25rem; /* Ще більше зменшений відступ */
    }
    .logo-img {
        width: 70px; /* Трохи зменшимо логотип */
        height: 70px;
    }
    header h1 {
        font-size: 1rem; /* Ще трохи зменшимо заголовок */
    }
    header nav ul {
        flex-direction: row; /* Залишаємо в ряд, якщо це можливо, або переносимо на наступний рядок */
        flex-wrap: wrap; /* Дозволяємо перенос */
        justify-content: center;
        gap: 0.4rem; /* Зменшений відступ між пунктами меню */
        margin-top: 0.25rem; /* Зменшений відступ */
    }
    header nav li {
        margin: 0 0.2rem; /* Додатковий контроль відступів для пунктів меню */
    }
    header nav a {
        padding: 0.3rem 0.5rem; /* Зменшений padding для посилань меню */
        font-size: 0.9rem; /* Зменшений розмір шрифту меню */
    }
    .language-switcher {
        margin-top: 0.5rem;
        justify-content: center;
    }
    .hero-section {
        padding: 6rem 0;
        min-height: 60vh;
    }
    .hero-section h2 {
        font-size: 2.5rem;
    }
    .hero-section p {
        font-size: 1.15rem;
    }
    .btn {
        display: block;
        margin: 1rem auto;
        width: 80%;
        max-width: 300px;
    }
    .features-section h3, .contact-form-section h3, .about-section h3, .call-to-action-section h3 {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
    .feature-item {
        padding: 2rem;
    }
    .feature-item img {
        width: 70px;
        height: 70px;
    }
    .feature-item h4 {
        font-size: 1.4rem;
    }
    .contact-form {
        padding: 1.5rem;
    }
    .cta-social-links {
        gap: 1.5rem;
    }
    .cta-social-links a {
        font-size: 2.8rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.3rem 0; /* Ще менший padding для дуже маленьких екранів */
    }
    .logo-img {
        width: 55px;
        height: 55px;
    }
    header h1 {
        font-size: 0.9rem;
    }
    header nav ul {
        gap: 0.3rem;
    }
    header nav a {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
    }
    .hero-section {
        padding: 4rem 0;
        min-height: 50vh;
    }
    .hero-section h2 {
        font-size: 2rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    .features-section h3, .contact-form-section h3, .about-section h3, .call-to-action-section h3 {
        font-size: 1.8rem;
    }
    .feature-item h4 {
        font-size: 1.2rem;
    }
    .feature-item p {
        font-size: 0.95rem;
    }
    .btn {
        font-size: 1rem;
        padding: 0.8rem 1.8rem;
    }
    .contact-form .form-group label {
        font-size: 0.95rem;
    }
    .contact-form .form-group input {
        font-size: 0.9rem;
        padding: 0.7rem 0.8rem;
    }
    .cta-social-links {
        gap: 1rem;
    }
    .cta-social-links a {
        font-size: 2.2rem;
    }
}
