/* Брендбук Кольорова Палітра OVO GROUP */
:root {
    --primary-color: #1ab3b7;     /* Фірмовий бірюзовий (#1ab3b7) */
    --dark-color: #2b2b2b;        /* Темно-графітовий (#2b2b2b) */
    --white-color: #ffffff;       /* Чистий білий (#ffffff) */
    --navy-color: #15192d;        /* Додатковий синій (рідко #15192d) */
    --bg-light: #f4f7f7;
    --text-muted: #666666;
}

/* Скидання базових стилів */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Roboto Condensed', sans-serif;
    color: var(--dark-color);
    background-color: var(--white-color);
    line-height: 1.6;
    font-size: 16px;
}

/* Заголовки за брендбуком (Шрифт OSWALD) */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 100px 0; }

.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--dark-color); color: var(--white-color); }

.section-tag {
    display: inline-block;
    color: var(--primary-color);
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    position: relative;
}

.section-title.text-left { text-align: left; }

.text-center-block {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.text-center-block .section-title { text-align: center; }

.bg-dark .section-title { color: var(--white-color); }
.section-subtitle { font-size: 1.25rem; color: var(--text-muted); }

/* Кнопки */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary { background-color: var(--primary-color); color: var(--white-color); }
.btn-primary:hover { background-color: #148f92; box-shadow: 0 6px 20px rgba(26, 179, 183, 0.4); transform: translateY(-2px); }

.btn-outline { background-color: transparent; color: var(--white-color); border-color: var(--white-color); }
.btn-outline:hover { background-color: var(--white-color); color: var(--dark-color); transform: translateY(-2px); }

.btn-full { width: 100%; }

/* Навігаційна панель */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    background-color: var(--white-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    z-index: 1000; height: 90px;
}

.nav-container { display: flex; justify-content: space-between; align-items: center; height: 100%; }

.nav-links { list-style: none; display: flex; gap: 35px; }

.nav-links a {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem; font-weight: 500;
    text-transform: uppercase; color: var(--dark-color);
    position: relative; padding: 5px 0;
}

.nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px; background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--primary-color); }
.nav-links a:hover::after { width: 100%; }

.burger-menu { display: none; flex-direction: column; gap: 6px; cursor: pointer; }
.burger-menu span { width: 28px; height: 3px; background-color: var(--dark-color); transition: all 0.3s ease; }

/* Головний екран Hero */
.hero {
    height: calc(100vh - 90px);
    background: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat;
    position: relative; display: flex; align-items: center; color: var(--white-color); margin-top: 90px;
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(43, 43, 43, 0.95) 0%, rgba(21, 25, 45, 0.85) 100%);
}

.hero-content { position: relative; z-index: 1; max-width: 850px; }
.hero h1 { font-size: 5rem; color: var(--primary-color); margin-bottom: 15px; line-height: 1.1; }
.hero h2 { font-size: 2.2rem; margin-bottom: 25px; color: var(--white-color); line-height: 1.3; }
.hero p { font-size: 1.6rem; margin-bottom: 45px; font-weight: 300; max-width: 700px; text-transform: uppercase; letter-spacing: 1px; color: var(--primary-color); }
.hero-actions { display: flex; gap: 20px; }

/* Про нас */
.about-wrapper { display: flex; align-items: center; gap: 60px; }
.about-text { flex: 1.2; }
.about-text p { font-size: 1.15rem; margin-bottom: 20px; color: #444; text-align: justify; }
.about-image { flex: 0.8; }
.about-image img { width: 100%; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); border-left: 6px solid var(--primary-color); }

/* Сітка та Картки Послуг */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 35px; }

.card {
    background: var(--white-color); border-radius: 8px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex; flex-direction: column;
}

.card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }

/* СТИЛІ ДЛЯ СЛАЙДЕРУ (КАРУСЕЛІ) */
.card-img-wrapper { 
    width: 100%; 
    height: 260px; 
    overflow: hidden; 
    position: relative; /* Додано для слайдів */
}

.card-img-wrapper img.slide { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    opacity: 0; /* Приховані за замовчуванням */
    transition: opacity 0.8s ease-in-out, transform 0.5s ease; 
}

.card-img-wrapper img.slide.active {
    opacity: 1; /* Показуємо тільки активний слайд */
}

/* Зум при наведенні тільки для активного слайду */
.card:hover .card-img-wrapper img.slide.active { 
    transform: scale(1.08); 
}
/* КІНЕЦЬ СТИЛІВ ДЛЯ СЛАЙДЕРУ */

.card-content { padding: 30px; flex-grow: 1; border-bottom: 5px solid var(--primary-color); }
.card-content h3 { font-size: 1.6rem; color: var(--dark-color); margin-bottom: 15px; }
.card-content p { color: #555; font-size: 1.05rem; }

/* Переваги */
.advantages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.advantage-item {
    background: var(--bg-light); padding: 40px 30px; border-radius: 6px; text-align: center;
    transition: all 0.3s ease; border: 1px solid #eef2f2;
}
.advantage-item:hover { background: var(--white-color); box-shadow: 0 15px 35px rgba(26, 179, 183, 0.1); border-color: var(--primary-color); }
.advantage-icon { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 20px; }
.advantage-item h3 { font-size: 1.35rem; margin-bottom: 15px; color: var(--dark-color); }
.advantage-item p { color: #555; font-size: 1rem; }

/* Контакти та Форма */
.contact-wrapper { display: flex; flex-wrap: wrap; gap: 60px; }
.contact-info { flex: 1; min-width: 320px; }
.contact-info h2 { font-size: 3rem; margin-bottom: 25px; color: var(--primary-color); }
.contact-info p { font-size: 1.2rem; margin-bottom: 40px; color: #ddd; }

.phones { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.phones a { font-family: 'Oswald', sans-serif; font-size: 2.2rem; color: var(--white-color); border-left: 5px solid var(--primary-color); padding-left: 20px; font-weight: 500; }
.phones a i { font-size: 1.6rem; margin-right: 10px; color: var(--primary-color); }
.phones a:hover { color: var(--primary-color); padding-left: 28px; }

.website { font-size: 1.3rem; color: #aaa; margin-bottom: 40px; }

.social-links-block h3 { font-size: 1.3rem; margin-bottom: 15px; color: var(--white-color); }
.social-icons { display: flex; gap: 15px; }
.social-icon { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; background: #3a3a3a; color: var(--white-color); font-size: 1.4rem; transition: all 0.3s ease; }
.social-icon:hover { transform: scale(1.1); color: var(--white-color); }
.social-icon.fb:hover { background-color: #1877f2; }
.social-icon.ig:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }

.contact-form-container {
    flex: 1; min-width: 320px; background: var(--white-color); padding: 50px 40px;
    border-radius: 8px; color: var(--dark-color); box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}
.contact-form-container h3 { font-size: 2.2rem; margin-bottom: 10px; text-align: center; color: var(--dark-color); }
.input-group { margin-bottom: 25px; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 16px; border: 1px solid #ddd; border-radius: 4px;
    font-family: 'Roboto Condensed', sans-serif; font-size: 1.05rem; transition: all 0.3s ease; background-color: #fafafa;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--primary-color); background-color: var(--white-color); box-shadow: 0 0 10px rgba(26, 179, 183, 0.1);
}
.form-status { margin-top: 20px; text-align: center; font-weight: bold; font-size: 1.1rem; }

/* Футер */
footer { background-color: #161616; color: #999; padding: 30px 0; border-top: 1px solid #222; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-socials { display: flex; gap: 20px; font-size: 1.5rem; }
.footer-socials a:hover { color: var(--primary-color); }

/* Анімації появи елементів (Scroll Reveal) */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.215, 0.610, 0.355, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Медіа-запити для адаптивності */
@media (max-width: 992px) {
    .about-wrapper { flex-direction: column; gap: 40px; }
    .hero h1 { font-size: 3.8rem; }
    .hero h2 { font-size: 1.8rem; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; flex-direction: column; position: absolute; top: 90px; left: 0;
        width: 100%; background-color: var(--white-color); box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        padding: 30px 0; text-align: center; gap: 20px;
    }
    .nav-links.active { display: flex; }
    .burger-menu { display: flex; }
    
    .burger-menu.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
    .burger-menu.open span:nth-child(2) { opacity: 0; }
    .burger-menu.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

    .hero { text-align: center; justify-content: center; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero-actions { flex-direction: column; width: 100%; max-width: 300px; }

    .hero h1 { font-size: 3.2rem; }
    .hero h2 { font-size: 1.5rem; line-height: 1.3; margin-bottom: 15px; }
    .section-title { font-size: 2.2rem; }
    .phones a { font-size: 1.8rem; }
    .contact-form-container { padding: 30px 20px; }
    .footer-content { flex-direction: column; text-align: center; }
}
