:root {
    --primary-color: #ffb703; /* Теплий бурштин/жовтий */
    --dark-bg: #1a1a1a;       /* Майже чорний */
    --dark-card: #252525;     /* Темно-сірий для карток */
    --light-text: #f0f0f0;
    --grey-text: #b0b0b0;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

body {
    margin: 0;
    background-color: var(--white);
    color: #333;
    font-family: 'Montserrat', sans-serif; /* Більш сучасний шрифт */
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-top: 0;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; }

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

/* --- NAVIGATION --- */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 70px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-bg);
}

.logo .accent { color: var(--primary-color); }

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-bg);
    transition: var(--transition);
    cursor: pointer;
    text-transform: uppercase;
}

.nav-links a:hover { color: var(--primary-color); }

.nav-btn {
    background: var(--dark-bg);
    color: var(--primary-color) !important;
    padding: 10px 20px;
    border-radius: 5px;
}

.nav-btn:hover { background: var(--primary-color); color: var(--dark-bg) !important; }

/* --- HERO SECTION --- */
.hero {
    height: 100svh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Паралакс ефект */
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
}

.parallax-bg {
    position: absolute;
    inset: -20%;
    background-image: url("../images/SANTANA-WHITE.jpg");
    background-size: cover;
    background-position: center;
    will-change: transform;
    transform: translateY(0);
    pointer-events: none;
    z-index: -1;
}

.content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.4));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero .subtitle {
    font-size: 1.2rem;
    color: #ddd;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}
/* --- HERO ENHANCEMENTS --- */
.hero {
    overflow: hidden; /* Щоб лазери не виходили за межі */
}

/* Лазерні лінії на фоні */
.laser-line {
    position: absolute;
    background: rgba(255, 0, 0, 0.3); /* Світло-червоний лазер */
    z-index: 1;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}
.laser-h {
    top: 30%; left: 0; width: 100%; height: 1px;
    animation: scanH 8s infinite linear;
}
.laser-v {
    left: 20%; top: 0; width: 1px; height: 100%;
    animation: scanV 12s infinite linear;
}

@keyframes scanH {
    0%, 100% { top: 30%; opacity: 0; } 50% { top: 70%; opacity: 1; }
}
@keyframes scanV {
    0%, 100% { left: 20%; opacity: 0; } 50% { left: 80%; opacity: 1; }
}

/* Бейдж */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: #4CAF50; /* Зелений колір статусу */
    border-radius: 50%;
    box-shadow: 0 0 10px #4CAF50;
    animation: statusPulse 1.5s infinite;
}

@keyframes statusPulse { 0% { opacity: 0.4; } 50% { opacity: 1; } 100% { opacity: 0.4; } }

/* Заголовок */
.hero h1 span {
    color: var(--primary-color);
    position: relative;
}

/* Кнопка з іконкою та стрілкою */
.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.primary-btn svg {
    transition: transform 0.3s ease;
}

.primary-btn:hover svg {
    transform: translateX(5px);
}

/* --- SCROLL INDICATOR LOGIC --- */

/* Загальний контейнер */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
}

/* Приховуємо руку на комп'ютерах */
.swipe-wrapper {
    display: none;
}

/* Анімація мишки (вже ваша існуюча) */
.mouse {
    width: 22px;
    height: 36px;
    border: 2px solid white;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
    margin: 0 auto;
}

.wheel {
    width: 3px;
    height: 6px;
    background: white;
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

/* --- МОБІЛЬНА ВЕРСІЯ (менше 768px) --- */
@media (max-width: 768px) {
    /* Ховаємо мишку */
    .mouse-wrapper {
        display: none;
    }

    /* Показуємо руку */
    .swipe-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .swipe-text {
        color: white;
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 2px;
        opacity: 0.8;
    }

    /* Анімація свайпу рукою/стрілкою вгору-вниз */
    .hand-icon {
        animation: swipeAnim 2s infinite ease-in-out;
        opacity: 0.7;
    }

    @keyframes swipeAnim {
        0% { transform: translateY(10px); opacity: 0; }
        50% { opacity: 1; }
        100% { transform: translateY(-15px); opacity: 0; }
    }
}

/* Ваша анімація колеса */
@keyframes scrollWheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(12px); }
}

/* Класи появи (якщо ще немає в CSS) */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.primary-btn, .secondary-btn {
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.primary-btn {
    background: var(--primary-color);
    color: var(--dark-bg);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 183, 3, 0.4);
}

.secondary-btn {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.secondary-btn:hover {
    background: var(--white);
    color: var(--dark-bg);
}

/* --- SECTIONS GENERAL --- */
.section { padding: 100px 0; }
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--dark-bg);
    position: relative;
    display: inline-block;
    width: 100%;
}
.section-desc {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
}

/* --- ADVANTAGES (CARDS) --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: var(--transition);
    border: 1px solid #eee;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.card h3 { margin-bottom: 15px; }

/* --- GALLERY (PORTFOLIO) --- */
.gallery-section { background: #f9f9f9; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .overlay { opacity: 1; }

.gallery-item .text {
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item:hover .text { transform: translateY(0); }

/* --- SERVICES SECTION REDESIGNED --- */
.services {
    background-color: #f4f4f4; /* Світлий фон секції для контрасту з картками */
    position: relative;
    z-index: 1;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    perspective: 1000px; /* Для 3D ефектів */
}

.service-item {
    background: #1a1a1a; /* Темний фон картки */
    padding: 40px 30px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Пружна анімація */
    border: 1px solid #333;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Ефект градієнтної підсвітки знизу */
.service-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color); /* Золотий колір */
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

/* Анімація при наведенні */
.service-item:hover {
    transform: translateY(-10px); /* Підстрибування вгору */
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: #444;
}

.service-item:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Іконки */
.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 183, 3, 0.1); /* Напівпрозорий золотий */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.service-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--primary-color);
    transition: all 0.3s ease;
}

/* Анімація іконки при наведенні на картку */
.service-item:hover .service-icon {
    background: var(--primary-color);
    transform: rotate(-10deg) scale(1.1);
}

.service-item:hover .service-icon svg {
    stroke: #000; /* Іконка стає чорною на золотому фоні */
}

/* Тексти */
.service-item h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-item p {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Адаптивність */
@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
    .service-item {
        align-items: center;
        text-align: center;
    }
}

/* --- REVIEWS --- */
.reviews-section {
    background: var(--primary-color);
    padding: 80px 0;
}

.grid{
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.white-text { color: var(--dark-bg) !important; }

.review-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.star-rating { color: #ffb703; font-size: 1.2rem; margin-bottom: 15px; }
.review-text { font-style: italic; color: #555; }
.review-name { display: block; margin-top: 15px; font-weight: 700; text-align: right; }

/* --- CONTACT --- */
.contact-section { padding: 100px 0; background: var(--white); }
.contact-wrapper {
    display: flex;
    gap: 50px;
    align-items: center;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px; /* Відступ між рядками */
    gap: 12px; /* Відстань від іконки до тексту */
}

.icon-box {
    width: 42px;  /* Фіксована ширина */
    height: 42px; /* Фіксована висота */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px; /* Розмір самої іконки */
    flex-shrink: 0;  /* Щоб іконка не стискалася на мобільних */

    /* Додатково: можна додати легкий фон, щоб вони виглядали як кнопки */
    background: rgba(255, 183, 3, 0.1);
    border-radius: 8px;
}

.info-item a, .info-item span {
    font-size: 1.1rem;
    color: inherit;
    text-decoration: none;
}

.contact-info { flex: 1; }
.contact-info h2 { font-size: 3rem; margin-bottom: 30px; line-height: 1.1; }

.info-item .icon { font-size: 1.5rem; background: #eee; padding: 10px; border-radius: 50%; }

.contact-form-box {
    flex: 1;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.contact-form-box input,
.contact-form-box textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    background: #fcfcfc;
    box-sizing: border-box; /* Важливо! */
}

.contact-form-box textarea { height: 120px; resize: vertical; }

.send-btn {
    width: 100%;
    padding: 15px;
    background: var(--dark-bg);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.send-btn:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
}

/* --- FOOTER --- */
.footer {
    background: var(--dark-bg);
    color: #666;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #333;
}

/* --- ANIMATIONS --- */
.fade-in-up {
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.7s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .contact-wrapper { flex-direction: column; }
    .hero h1 { font-size: 2.5rem; }
    .service-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .nav-links { display: none; } /* Тут можна додати JS для бургер-меню */
    .hero-buttons { flex-direction: column; }
    .hero { text-align: center; }
}

/* --- ADVANTAGES (About) SECTION --- */
.advantages {
    background-color: #fff;
}

/* Сітка для переваг (можна використати існуючу card-grid, але краще уточнити) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.adv-card {
    background: var(--dark-bg);
    padding: 40px 30px;
    border-radius: 20px;
    position: relative;
    overflow: hidden; /* Щоб цифра не вилазила */
    border: 1px solid #eee;
    transition: all 0.4s ease;
    z-index: 1;
}

/* Велика цифра на фоні */
.card-number {
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    font-family: 'Montserrat', sans-serif;
    z-index: -1;
    transition: all 0.4s ease;
    line-height: 1;
}

/* Іконка */
.adv-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.adv-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}

/* Тексти */
.adv-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--white);
}

.adv-card p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- HOVER EFFECTS (Магія) --- */
.adv-card:hover {
     /* Картка стає чорною */
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.adv-card:hover .card-number {
     /* Цифра стає ледь білою */
    transform: scale(1.1) rotate(-5deg); /* Трохи повертається */
}

/* --- CTA MID SECTION --- */
.cta-mid-section {
    padding: 60px 0;
    background: #f4f4f4;
}

.cta-card {
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Декоративний елемент на фоні */
.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    filter: blur(100px);
    opacity: 0.15;
}

.cta-content h2 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.cta-content p {
    color: #ccc;
    font-size: 1.1rem;
    max-width: 500px;
}

/* ПЛАВАЮЧА КНОПКА */
.fixed-contact-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(255, 183, 3, 0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulse-gold 2s infinite;
}

.fixed-contact-btn svg {
    width: 28px;
    height: 28px;
}

.fixed-contact-btn:hover {
    transform: scale(1.1) rotate(5deg);
    background: var(--white);
}

@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(255, 183, 3, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 183, 3, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 183, 3, 0); }
}

/* Адаптивність для мобільних */
@media (max-width: 768px) {
    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    .cta-content h2 { font-size: 1.8rem; }
    .cta-action { margin-top: 30px; }
    .fixed-contact-btn { bottom: 20px; right: 20px; width: 50px; height: 50px; }
}

/* Стилі повідомлень під формою */
.message-status {
    margin-top: 15px;
    font-size: 0.9rem;
    text-align: center;
    min-height: 20px;
    transition: all 0.3s ease;
    display: none; /* Спочатку ховаємо */
}

.message-status.success {
    display: block;
    color: #2ecc71; /* Зелений */
}

.message-status.error {
    display: block;
    color: #e74c3c; /* Червоний */
}

/* Лоадер (Спінер) */
#send-loader {
    display: none; /* Ховаємо за замовчуванням */
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

#send-loader.loader {
    display: inline-block; /* Показуємо, коли додається клас .loader */
}

/* Анімація крутіння */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Зміна кнопки при активному лоадері */
.send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}