/* Підключення шрифтів */
@import url('https://fonts.googleapis.com/css2?family=Sofia+Sans:ital,wght@0,1..1000;1,1..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@200..900&display=swap');

/* Базові стилі */
:root {
    --accent-color: #006652;
    --bg-color: #fff;
    --text-color: #666565;
    --heading-color: #006652;
    --dark-bg: #2c2c2c;
    --light-gray: #f8f9fa;
    --border-radius: 24px;
    --border-radius-sm: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inconsolata', monospace;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    font-size: 16px;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Sofia Sans', serif;
    color: var(--heading-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

/* Відступи між блоками */
.section-spacing {
    padding: 80px 0;
}

.section-spacing-sm {
    padding: 60px 0;
}

/* Кастомні кольори для темних блоків */
.dark-section {
    background-color: var(--dark-bg);
    color: #fff;
}

.dark-section h1,
.dark-section h2,
.dark-section h3 {
    color: #fff;
}

/* Карточки */
.custom-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.custom-card-dark {
    background-color: var(--dark-bg);
    border: 1px solid #444;
    color: #fff;
}

.custom-card-dark h3,
.custom-card-dark h4 {
    color: #fff;
}

/* Зображення */
.custom-img {
    border-radius: var(--border-radius);
    object-fit: cover;
}

.custom-img-sm {
    border-radius: var(--border-radius-sm);
    object-fit: cover;
}

/* Хедер */
.navbar {
    background-color: var(--accent-color) !important;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: 'Sofia Sans', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff !important;
}

.navbar-nav .nav-link {
    font-family: 'Inconsolata', monospace;
    color: #fff !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #e0e0e0 !important;
}

/* Футер */
.footer {
    background-color: var(--accent-color);
    color: #fff;
    padding: 60px 0 30px;
}

.footer h5 {
    color: #fff;
    margin-bottom: 20px;
}

.footer a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #fff;
}

/* Героїчний блок */
.hero-section {
    background: linear-gradient(rgba(0, 102, 82, 0.78), rgba(0, 102, 82, 0.8)), url('./img/hero-banner.webp') center/cover;
    min-height: 90vh;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: center;
}

.hero-section h1 {
    color: #fff;
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* Героїчний блок для другорядних сторінок */
.page-hero {
    background-color: var(--dark-bg);
    padding: 160px 0;
    text-align: center;
    color: #fff;
}

.page-hero h1 {
    color: #fff;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* FAQ */
.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    background-color: var(--light-gray);
    padding: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #e9ecef;
}

.faq-answer {
    padding: 20px;
    display: none;
}

/* Відгуки */
.testimonial {
    /* background-color: var(--light-gray); */
    border-radius: var(--border-radius-sm);
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Форми */
.form-control {
    border-radius: var(--border-radius-sm);
    border: 2px solid #e0e0e0;
    padding: 12px 16px;
    font-family: 'Inconsolata', monospace;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 82, 0.1);
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    border-radius: var(--border-radius-sm);
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #005544;
    border-color: #005544;
    transform: translateY(-2px);
}

/* Cookie popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: var(--dark-bg);
    color: #fff;
    padding: 20px;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none;
}

.cookie-popup.show {
    display: block;
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: #005544;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    .section-spacing {
        padding: 50px 0;
    }
    
    .cookie-popup {
        left: 10px;
        right: 10px;
    }
}
