

/* --- 1. БАЗОВІ НАЛАШТУВАННЯ ТА ЗМІННІ --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #c00000;
    --dark: #111;
    --light: #fff;
    --gray: #f4f4f4;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth; /* Плавний скрол по всьому сайту */
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: #fff;
    display: block; 
}

.container {
    width: 92%;
    max-width: 1300px;
    margin: 0 auto;
}

/* --- 2. HEADER ТА НАВІГАЦІЯ --- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #eee;
    z-index: 1000;
}

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

.logo img { height: 70px; }

.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { 
    text-decoration: none; 
    color: var(--dark); 
    font-weight: 500; 
    transition: var(--transition);
}
.nav a:hover { color: var(--primary); }

.header-actions { display: flex; gap: 15px; margin-left: 30px; }

/* --- 3. КНОПКИ (УНІВЕРСАЛЬНІ) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #900000; transform: translateY(-2px); }

.btn-outline-light { border: 2px solid #fff; color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: #000; }

.btn-full { width: 100%; height: 55px; font-size: 16px; }

/* --- 4. HERO SLIDER --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: #000;
    overflow: hidden;
}

.hero-slider .slider-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slider .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slider .slide.active { opacity: 1; z-index: 2; }

.hero-slider .slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: #fff;
    max-width: 800px;
}

.hero-content h1 { font-size: 56px; font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.hero-content p { font-size: 19px; margin-bottom: 35px; opacity: 0.9; }
.hero-buttons { display: flex; gap: 20px; }

/* --- 5. СЕКЦІЇ ТА КОНТЕНТ (TRUST, SERVICES, PROCESS) --- */
.trust { background: var(--gray); padding: 80px 0; position: relative; z-index: 5; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.trust h3 { font-size: 42px; color: var(--primary); margin-bottom: 5px; }

.section { padding: 100px 0; position: relative; background: #fff; }
.section-head { text-align: center; margin-bottom: 60px; }
.section-head h2 { font-size: 36px; }

/* КАРТКИ ПОСЛУГ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card {
    position: relative;
    background: #fff;
    padding: 50px 35px 35px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
}
.service-card::before {
    content: "0" counter(services);
    counter-increment: services;
    position: absolute;
    top: -15px; right: -10px;
    font-size: 110px; font-weight: 800;
    color: rgba(0, 0, 0, 0.03);
    z-index: 0; transition: 0.4s;
}
.service-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 0; height: 4px;
    background: var(--primary); transition: 0.4s ease;
}
.service-card:hover { transform: translateY(-12px); border-color: rgba(192, 0, 0, 0.2); box-shadow: 0 15px 45px rgba(192, 0, 0, 0.08); }
.service-card:hover::after { width: 100%; }
.service-card:hover::before { color: rgba(192, 0, 0, 0.05); }

.service-icon { font-size: 42px; display: block; margin-bottom: 20px; position: relative; z-index: 2; }
.service-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 15px; position: relative; z-index: 2; color: var(--dark); }
.service-card p { font-size: 15px; line-height: 1.7; color: #555; position: relative; z-index: 2; }

/* ПРОЦЕС */
.process { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-top: 50px; }
.step { position: relative; flex: 1; text-align: center; padding: 20px; }
.step:not(:last-child)::after {
    content: "→";
    position: absolute; top: 40px; right: -15px;
    font-size: 30px; color: var(--primary); opacity: 0.5; font-weight: 300;
}
.step span { font-size: 48px; font-weight: 800; color: var(--primary); display: block; margin-bottom: 15px; transition: 0.3s; }
.step h3 { font-size: 20px; font-weight: 700; color: var(--dark); }
.step:hover span { transform: scale(1.1); opacity: 1; }

/* --- 6. КОМАНДА --- */
.team-grid { display: grid; grid-template-columns: repeat(2, 300px); gap: 60px; justify-content: center; }
.team-img { width: 100%; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; margin-bottom: 20px; background: #eee; }
.team-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-card h3 { font-size: 22px; margin-bottom: 5px; }
.team-card p { color: var(--primary); font-weight: 600; text-transform: uppercase; font-size: 14px; }

/* --- CTA SECTION (ЧЕРВОНИЙ БЛОК) --- */
.cta { 
    background: var(--primary); 
    color: #fff; 
    text-align: center; 
    padding: 80px 0; 
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px; /* Додаємо відступ під текстом */
}

.cta .btn {
    margin-top: 10px; /* Додатковий страховий відступ саме для кнопки */
}

/* --- 8. КОНТАКТНА СЕКЦІЯ ТА ФОРМА --- */
.contact-section { background: #f9f9f9; }
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 6px;
    font-family: inherit; font-size: 15px; transition: 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary); outline: none; box-shadow: 0 0 10px rgba(192, 0, 0, 0.1);
}

.info-card {
    background: #fff; padding: 40px; border-radius: 12px; text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}
.info-icon { font-size: 40px; display: block; margin-bottom: 20px; }
.btn-call { background: var(--dark); color: #fff; margin-top: 20px; width: 100%; text-decoration: none; }
.btn-call:hover { background: var(--primary); transform: scale(1.02); }

/* --- 9. REVEAL ANIMATION --- */
.reveal { opacity: 0; transform: translateY(30px); transition: 1s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- 10. WHATSAPP КНОПКА (MODERN) --- */
.btn-whatsapp-modern {
    display: inline-flex; align-items: center; gap: 10px; background: #25D366;
    color: #fff; padding: 12px 20px; border-radius: 50px; text-decoration: none;
    font-weight: 600; font-size: 14px; transition: 0.3s;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); margin-top: 15px; width: fit-content;
}
.btn-whatsapp-modern:hover { background: #128C7E; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5); }

/* --- 11. FOOTER --- */
.footer { background: #000; color: #fff; padding: 80px 0 40px; position: relative; z-index: 10; }
.footer-container { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-column { flex: 1; min-width: 250px; display: flex; flex-direction: column; gap: 15px; }
.footer-column a { color: #fff; text-decoration: none; transition: 0.3s; opacity: 0.8; }
.footer-column a:hover { color: var(--primary); opacity: 1; }
.footer-logo { height: 65px; object-fit: contain; margin-bottom: 10px; }
.footer-bottom {
    text-align: center; padding-top: 40px; margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1); font-size: 14px; opacity: 0.5;
}

/* --- 12. АДАПТИВНІСТЬ (У САМОМУ КІНЦІ) --- */
@media (max-width: 992px) {
    .grid-3, .process, .trust-grid, .contact-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { gap: 40px; }
    .hero-content h1 { font-size: 38px; }
    .team-grid { grid-template-columns: 1fr; }
    .step:not(:last-child)::after { display: none; }
}

@media (max-width: 600px) {
    .grid-3, .process, .trust-grid, .contact-grid { grid-template-columns: 1fr; }
    .nav { display: none; }
    .hero-content h1 { font-size: 32px; }
}


/* =========================================================
   RESPONSIVE IMPROVEMENTS
   ADDITIVE ONLY — DESKTOP SAFE
========================================================= */

/* Prevent accidental horizontal scroll */
html,
body {
    overflow-x: hidden;
}

/* Better responsive media behavior */
img {
    max-width: 100%;
    height: auto;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1023px) {

    .container {
        width: 94%;
    }

    .header-container {
        gap: 20px;
    }

    .nav {
        gap: 20px;
    }

    .header-actions {
        margin-left: 10px;
        gap: 10px;
    }

    .hero-content {
        max-width: 650px;
    }

    .hero-content h1 {
        font-size: 46px;
        line-height: 1.15;
    }

    .hero-content p {
        font-size: 17px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .process {
        flex-wrap: wrap;
        justify-content: center;
    }

    .step {
        min-width: 220px;
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .team-grid {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
        gap: 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .header {
        padding: 0;
    }

    .header-container {
        flex-wrap: wrap;
        justify-content: center;
        padding: 14px 0;
        gap: 14px;
    }

    .logo img {
        height: 52px;
    }

    .nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 14px;
        margin-left: 0;
    }

    .nav a {
        font-size: 14px;
    }

    .header-actions {
        width: 100%;
        margin-left: 0;
        justify-content: center;
        flex-wrap: wrap;
    }

    .header-actions .btn {
        flex: 1;
        min-width: 140px;
    }

    /* HERO */

    .hero-slider {
        min-height: 100svh;
        height: auto;
        padding: 140px 0 80px;
    }

    .hero-slider .slider-overlay {
        background:
            linear-gradient(
                to bottom,
                rgba(0,0,0,0.8),
                rgba(0,0,0,0.45)
            );
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-content h1 {
        font-size: clamp(34px, 8vw, 48px);
        line-height: 1.15;
        margin-bottom: 18px;
    }

    .hero-content p {
        font-size: 16px;
        line-height: 1.7;
        margin-bottom: 28px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* SECTIONS */

    .section {
        padding: 80px 0;
    }

    .section-head {
        margin-bottom: 40px;
    }

    .section-head h2 {
        font-size: 30px;
    }

    /* TRUST */

    .trust {
        padding: 60px 0;
    }

    .trust-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .trust h3 {
        font-size: 34px;
    }

    /* SERVICES */

    .grid-3 {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-card {
        padding: 40px 25px 28px;
    }

    .service-card::before {
        font-size: 80px;
    }

    /* PROCESS */

    .process {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .step {
        padding: 10px;
    }

    .step span {
        font-size: 40px;
    }

    /* TEAM */

    .team-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* CTA */

    .cta {
        padding: 70px 0;
    }

    .cta h2 {
        font-size: 30px;
    }

    .cta p {
        font-size: 16px;
    }

    /* CONTACT */

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .info-card {
        padding: 30px 24px;
    }

    /* FOOTER */

    .footer {
        padding: 60px 0 30px;
    }

    .footer-container {
        flex-direction: column;
        gap: 40px;
    }

    .footer-column {
        min-width: unset;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .container {
        width: 92%;
    }

    .hero-slider {
        padding-top: 160px;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .btn {
        padding: 12px 18px;
        font-size: 14px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 70px 0;
    }

    .section-head h2 {
        font-size: 26px;
    }

    .service-card {
        padding: 35px 20px 24px;
    }

    .service-card h3 {
        font-size: 20px;
    }

    .cta h2 {
        font-size: 26px;
    }

    .info-card {
        padding: 24px 18px;
    }
}

/* =========================================================
   LEGAL PAGES
========================================================= */

.legal-page {
    max-width: 900px;
}

.legal-content {
    background: #fff;
    padding: 50px;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    line-height: 1.9;
    color: #444;
}

.legal-content p:not(:last-child) {
    margin-bottom: 24px;
}

.legal-footer {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #eee;
    font-weight: 600;
    color: #111;
}

@media (max-width: 767px) {

    .legal-content {
        padding: 30px 22px;
    }

}
