/* --- ОСНОВНЫЕ ПЕРЕМЕННЫЕ --- */
:root {
    --color-dark: #1F2125;
    --color-dark-lighter: #2C2C2C;
    --color-accent: #EBB606; /* Более дорогой золотой */
    --color-accent-hover: #D4A300;
    --color-white: #ffffff;
    --color-gray: #777;
    --color-light-bg: #F8F9FA;
    --font-main: 'Montserrat', sans-serif;
    --shadow-card: 0 10px 30px rgba(0,0,0,0.08);
}

/* Base Reset & Typography */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 80px; }
body { font-family: var(--font-main); line-height: 1.6; color: var(--color-dark); background: var(--color-white); }

/* --- HEADER --- */
.header { background: var(--color-dark); padding: 15px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.navbar { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 800; color: var(--color-white); text-transform: uppercase; letter-spacing: 1px; }
.logo span { color: var(--color-accent); }
.nav-menu { display: flex; gap: 30px; align-items: center; list-style: none; }
.nav-link { color: var(--color-white); font-weight: 500; text-decoration: none; transition: 0.3s; font-size: 0.95rem; }
.nav-link:hover { color: var(--color-accent); }

/* --- HAMBURGER MENU --- */
.hamburger { display: none; flex-direction: column; cursor: pointer; position: relative; z-index: 1001; }
.bar { width: 28px; height: 3px; background: var(--color-white); margin: 6px 0; transition: all 0.35s ease; transform-origin: center; }
.hamburger.active .bar:nth-child(1) { transform: rotate(45deg) translate(10px, 10px); }
.hamburger.active .bar:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.hamburger.active .bar:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* --- BUTTONS --- */
.btn { display: inline-block; padding: 12px 30px; border-radius: 50px; font-weight: 700; text-decoration: none; transition: all 0.3s; border: 2px solid transparent; cursor: pointer; }
.btn--primary { background: var(--color-accent); color: var(--color-dark); }
.btn--primary:hover { background: var(--color-accent-hover); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(235, 182, 6, 0.4); }
.btn--secondary { background: transparent; border-color: var(--color-dark); color: var(--color-dark); }
.btn--secondary:hover { background: var(--color-dark); color: var(--color-white); }
.btn--transparent { border-color: var(--color-white); color: var(--color-white); }
.btn--transparent:hover { background: var(--color-white); color: var(--color-dark); }
.btn--full { width: 100%; text-align: center; border: none; font-size: 1.1rem; padding: 15px; }
.btn--large { padding: 15px 40px; font-size: 1.1rem; }

/* --- HERO SECTION --- */
.hero { 
    position: relative; 
    height: 100vh; 
    min-height: 600px;
    background: url('/img/home-bg.png') center/cover no-repeat; 
    display: flex; 
    align-items: center;
    justify-content: center;
    color: var(--color-white); 
}
.hero-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
       background: linear-gradient(135deg, rgb(0 0 0 / 49%) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}
.hero-container { 
    position: relative; 
    z-index: 2; 
    width: 100%;
    padding-top: 40px;
    padding-bottom: 40px;
}
.hero-content { 
    max-width: 700px;
    margin: 0 auto;
}
.hero-badge { 
    display: inline-block; 
    background: rgba(235, 182, 6, 0.15);
    padding: 10px 18px; 
    border-radius: 25px; 
    font-size: 0.95rem; 
    margin-bottom: 25px; 
    border: 1.5px solid var(--color-accent);
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #fff;
}
.hero-heading { 
    font-size: 3.8rem; 
    line-height: 1.15; 
    font-weight: 800; 
    margin-bottom: 25px;
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    word-spacing: 0.1em;
}
.hero-text { 
    font-size: 1.25rem; 
    margin-bottom: 35px; 
    color: #e0e0e0;
    line-height: 1.7;
    letter-spacing: 0.3px;
    font-weight: 400;
}
.hero-text strong { 
    color: var(--color-accent);
    font-weight: 700;
}
.hero-pains {
    list-style: none;
    margin-bottom: 30px;
    color: #e0e0e0;
}
.hero-pains li { margin-bottom: 8px; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.hero-pains i {
    color: var(--color-accent);
    font-weight: 700;
}
.hero-pains {
    list-style: none;
    margin-bottom: 30px;
    color: #e0e0e0;
}
.hero-pains li { margin-bottom: 8px; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.hero-pains i {
    color: var(--color-accent);
}
.highlight { 
    color: var(--color-accent); 
    border-bottom: 2.5px solid var(--color-accent);
    font-weight: 600;
}
.hero-buttons { 
    display: flex; 
    gap: 20px; 
    margin-bottom: 45px;
    flex-wrap: wrap;
}
.hero-trust { 
    display: flex; 
    gap: 25px; 
    flex-wrap: wrap; 
    font-size: 0.95rem; 
    color: #d0d0d0;
}
.trust-item { 
    display: flex;
    align-items: center;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.trust-item i { 
    color: var(--color-accent); 
    margin-right: 10px;
    font-size: 1.1rem;
}

/* --- HOW IT WORKS SECTION --- */
.how-it-works {
    background-color: var(--color-white);
}

.works-timeline-container {
    position: relative;
    padding: 40px 0;
    margin-top: 40px;
}

.road-line {
    position: absolute;
    top: 50px; /* Central vertical alignment point */
    left: 5%;
    right: 5%;
    height: 24px;
    background: #3d3d3d;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
    border-radius: 12px;
    z-index: 1;
    transform: translateY(-50%); /* Centers the line on the 50px mark */
}

.road-line::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 15px;
    right: 15px;
    height: 3px;
    transform: translateY(-50%);
    background-image: linear-gradient( to right, rgba(255, 255, 255, 0.7) 60%, transparent 60% );
    background-size: 40px 3px;
    background-repeat: repeat-x;
}

#road-car {
    position: absolute;
    top: 50px; /* Match the road line */
    left: 5%;
    font-size: 2.5rem;
    color: var(--color-accent);
    z-index: 2;
    transform: translateY(-50%);
    transition: left 4s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.5s ease;
}

#finish-person {
    position: absolute;
    top: 50px; /* Match the road line */
    right: 5%;
    font-size: 2.5rem;
    color: var(--color-dark);
    z-index: 2;
    transform: translateY(-50%) scale(0);
    transform-origin: bottom center;
    opacity: 0;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

#finish-person.visible {
    transform: translateY(-50%) scale(1);
    opacity: 1;
}

#finish-person.jumping {
    animation: jump 0.7s ease-in-out infinite;
}

@keyframes jump {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-90%) scale(1.05); }
}

.works-steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    position: relative;
    z-index: 3;
}

.work-step {
    text-align: center;
    padding-top: 100px; /* More space for the icon */
    position: relative;
    opacity: 0.6;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.step-icon-wrapper {
    position: absolute;
    top: 50px; /* Match the road line */
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
}

.step-icon {
    width: 80px; /* Made smaller */
    height: 80px; /* Made smaller */
    background: var(--color-white);
    border: 4px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem; /* Made smaller */
    color: var(--color-gray);
    transition: all 0.4s ease, box-shadow 0.3s ease;
}

.work-step h4 { font-size: 1.2rem; margin-bottom: 10px; font-weight: 700; }
.work-step p { font-size: 0.95rem; color: var(--color-gray); line-height: 1.5; }

.work-step.active {
    opacity: 1;
    transform: translateY(0);
}
/* Active state for steps */
.work-step.active .step-icon { border-color: var(--color-accent); background-color: var(--color-accent); color: var(--color-dark); transform: scale(1.1); box-shadow: 0 0 20px rgba(235, 182, 6, 0.5); }
.work-step.active h4 { color: var(--color-accent); }

/* --- GUARANTEES SECTION --- */
.guarantees {
    background: var(--color-light-bg);
}
.guarantees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.guarantee-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-card);
}
.guarantee-icon {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 15px;
}
.guarantee-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.guarantee-card p {
    font-size: 0.95rem;
    color: var(--color-gray);
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background: var(--color-dark-lighter);
    padding: 30px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--color-accent);
}
.testimonial-author h5 {
    font-size: 1.1rem;
    color: var(--color-white);
    margin: 0;
}
.testimonial-author span {
    font-size: 0.9rem;
    color: #aaa;
}
.testimonial-text {
    color: #ccc;
    font-style: italic;
    line-height: 1.7;
}
.testimonial-text::before {
    content: '“';
    font-size: 3rem;
    color: var(--color-accent);
    float: left;
    line-height: 1;
    margin-right: 10px;
}
.testimonial-card .screenshot {
    width: 100%;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid #444;
    display: block;
}

/* --- REPORT EXAMPLE SECTION --- */
.report-example {
    background: var(--color-white);
}
.report-mockup {
    max-width: 900px;
    margin: 0 auto;
    background: var(--color-white);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
}
.report-header {
    padding: 15px 25px;
    background: var(--color-dark);
    color: var(--color-white);
    font-weight: 600;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.report-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 30px;
}
.report-item {
    text-align: center;
}
.report-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #eee;
}
.report-item h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.report-item p {
    font-size: 0.9rem;
    color: var(--color-gray);
}
.report-footer {
    padding: 20px 30px;
    background: var(--color-light-bg);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    text-align: center;
    font-size: 1rem;
    color: var(--color-gray);
}

/* --- COMPARISON SECTION --- */
.comparison-table {
    max-width: 800px;
    margin: 0 auto 40px;
    border: 1px solid #444;
    border-radius: 12px;
    overflow: hidden;
}
.comparison-header, .comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    align-items: center;
    text-align: center;
}
.comparison-header {
    background: var(--color-accent);
    color: var(--color-dark);
    font-weight: 700;
}
.comparison-header div { padding: 15px; }
.comparison-row { border-top: 1px solid #444; }
.comparison-row div { padding: 20px 15px; }
.comparison-row div:first-child { text-align: left; font-weight: 600; }
.comparison-row div:nth-child(3) { color: var(--color-accent); font-weight: 600; }
.comparison-row i { margin-right: 5px; }
.comparison-note {
    text-align: center;
    margin-top: 30px;
    color: #aaa;
}
.comparison-cta {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-top: 40px;
}

/* --- LOCATIONS MAP SECTION --- */
.locations {
    background: var(--color-light-bg);
}

#google-map-container {
    width: 100%;
    max-width: 800px;
    height: 500px;
    margin: 40px auto 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    background: #e9ecef; /* Placeholder bg */
}

/* Custom Google Maps InfoWindow */
.gm-style .gm-style-iw-c {
    padding: 15px !important;
    border-radius: 8px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15) !important;
    background-color: var(--color-dark) !important;
}
.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    color: var(--color-white);
}
.gm-style .gm-style-iw-t::after {
    display: none; /* Hide the default tail */
}
.gm-style button[title="Close"] {
    background-color: var(--color-accent) !important;
    border-radius: 50% !important;
    right: 10px !important;
    top: 10px !important;
}

.custom-infowindow {
    text-align: center;
}
.custom-infowindow h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-white);
}
.custom-infowindow .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.locations-cta {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.locations-cta p {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.stats-cta {
    text-align: center;
    margin-top: 40px;
}

/* --- STATS SECTION --- */
.stats {
    background: var(--color-accent);
    color: var(--color-dark);
}
.stats .section-title { color: var(--color-dark); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}
.stat-card span {
    font-size: 3rem;
    font-weight: 800;
    display: block;
    line-height: 1.2;
}
.stat-card p {
    font-size: 1rem;
    font-weight: 600;
}
.stats-cta .btn {
    background: var(--color-dark);
    color: var(--color-white);
}

/* --- WHY ME SECTION --- */
.why-me-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}
.why-me-photo img {
    width: 100%;
    border-radius: 12px;
}

/* --- PORTFOLIO SLIDER SECTION --- */
.portfolio {
    background-color: var(--color-light-bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.portfolio-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}
.portfolio-card.hidden {
    display: none;
}


.portfolio-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.portfolio-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.portfolio-content .car-desc {
    color: var(--color-gray);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.price-deal {
    background: rgba(235, 182, 6, 0.1);
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.price-deal .label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-dark-lighter);
}

.price-deal .amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-accent);
}

.want-this-car-btn {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.text-center { text-align: center; }


/* --- BENEFITS SECTION --- */
.benefits {
    background-color: var(--color-light-bg);
    position: relative;
    overflow: hidden;
}

/* Сітка карток */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Стиль картки */
.benefit-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    z-index: 1;
}

/* Ефект при наведенні */
.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-bottom-color: var(--color-accent);
}

/* Іконка */
.benefit-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 20px;
    background: rgba(235, 182, 6, 0.1); /* Напівпрозорий жовтий */
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.benefit-card:hover .benefit-icon {
    background: var(--color-accent);
    color: var(--color-dark);
}

/* Тексти в картці */
.benefit-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-dark);
}

.benefit-card p {
    color: var(--color-gray);
    font-size: 1rem;
    line-height: 1.6;
}
.benefit-card strong {
    color: var(--color-dark-lighter);
}

/* Нижній текст заклику */
.benefits-cta {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid var(--color-accent);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.benefits-cta p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-dark);
    margin: 0;
}

/* Мобільна адаптація */
@media (max-width: 768px) {
    .benefit-card {
        padding: 30px 20px;
        text-align: center;
    }
    .benefit-icon {
        margin: 0 auto 20px auto;
    }
}

/* --- SECTIONS COMMON --- */
.section { padding: 100px 0; }
.section-title { text-align: center; font-size: 2.5rem; font-weight: 700; margin-bottom: 15px; }
.section-title-left { font-size: 2.2rem; font-weight: 700; margin-bottom: 20px; line-height: 1.3; }
.section-subtitle { text-align: center; color: var(--color-gray); margin-bottom: 60px; font-size: 1.1rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.dark-bg { background: var(--color-dark); color: var(--color-white); }
.dark-bg .section-subtitle { color: #aaa; }

/* --- ABOUT EXPERT --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image-wrapper { position: relative; }
.expert-photo { width: 100%; border-radius: 10px; box-shadow: 20px 20px 0px var(--color-accent); }
.exp-badge { position: absolute; bottom: -20px; left: -20px; background: var(--color-dark); color: var(--color-white); padding: 20px; border-radius: 10px; display: flex; gap: 10px; align-items: center; border: 2px solid var(--color-accent); }
.exp-badge .num { font-size: 3rem; font-weight: 800; color: var(--color-accent); line-height: 1; }
.exp-badge .txt { font-size: 0.9rem; line-height: 1.2; }
.check-list { list-style: none; margin-top: 30px; }
.check-list li { margin-bottom: 15px; display: flex; align-items: center; font-weight: 500; font-size: 1.1rem; }
.check-list li::before { content: '✓'; color: var(--color-dark); background: var(--color-accent); width: 25px; height: 25px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 15px; font-size: 0.8rem; font-weight: bold; }

/* --- CASES --- */
.cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.case-card { background: var(--color-dark-lighter); border-radius: 12px; overflow: hidden; transition: transform 0.3s; }
.case-card:hover { transform: translateY(-5px); }
.case-img { position: relative; height: 220px; }
.case-img img { width: 100%; height: 100%; object-fit: cover; }
.case-tag { position: absolute; top: 15px; right: 15px; background: var(--color-accent); color: var(--color-dark); padding: 5px 12px; font-weight: 700; border-radius: 4px; font-size: 0.9rem; }
.case-content { padding: 25px; }
.case-content h3 { margin-bottom: 15px; color: var(--color-white); }
.case-details { list-style: none; color: #ccc; font-size: 0.95rem; }
.case-details li { margin-bottom: 8px; }
.old-price { text-decoration: line-through; color: #888; }
.new-price { color: var(--color-accent); font-weight: 700; font-size: 1.1rem; }
.danger-text { color: #ff5252; font-weight: 700; }

/* --- SERVICES --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; align-items: start; }
.service-card { background: var(--color-white); padding: 40px 30px; border-radius: 12px; box-shadow: var(--shadow-card); position: relative; border: 1px solid #eee; transition: 0.3s; display: flex; flex-direction: column; height: 100%;}
.service-card:hover { border-color: var(--color-accent); }
.service-card.popular { border: 2px solid var(--color-accent); transform: scale(1.05); z-index: 2; box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.pop-badge { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); background: var(--color-accent); color: var(--color-dark); padding: 5px 20px; font-weight: 700; border-radius: 20px; font-size: 0.85rem; text-transform: uppercase; }
.service-header { text-align: center; margin-bottom: 25px; border-bottom: 1px solid #eee; padding-bottom: 20px; }
.service-header h3 { font-size: 1.4rem; margin-bottom: 10px; }
.price { font-size: 2rem; font-weight: 800; color: var(--color-dark); }
.service-desc { text-align: center; color: var(--color-gray); margin-bottom: 20px; min-height: 50px; }
.service-list { list-style: none; margin-bottom: 30px; flex-grow: 1; }
.service-list li { margin-bottom: 12px; color: var(--color-dark-lighter); display: flex; align-items: start; gap: 10px; }
.service-list li i { color: var(--color-accent); margin-top: 4px; }
.service-card .btn { width: 100%; text-align: center; }

/* --- CONTACTS --- */
.contact-wrapper { display: flex; gap: 50px; align-items: center; justify-content: center; flex-wrap: wrap; }
.contact-info { flex: 1; min-width: 300px; }
.contact-link { display: block; font-size: 1.5rem; color: var(--color-white); margin-bottom: 20px; text-decoration: none; font-weight: 600; transition: 0.3s; }
.contact-link:hover { color: var(--color-accent); }
.contact-form { flex: 1; min-width: 300px; background: var(--color-white); padding: 40px; border-radius: 12px; color: var(--color-dark); box-shadow: 0 20px 50px rgba(0,0,0,0.2); }
.contact-form h3 { margin-bottom: 20px; font-size: 1.5rem; text-align: center; }
.busyness-indicator {
    text-align: center;
    padding: 15px;
    background-color: rgba(220, 38, 38, 0.05);
    border: 1px solid rgba(220, 38, 38, 0.1);
    border-radius: 8px;
    margin: 10px 0 20px;
}
.busyness-indicator p {
    margin: 0;
    color: #B91C1C;
    font-size: 0.95rem;
    line-height: 1.4;
}
.form-trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    color: var(--color-gray);
}
.trust-badge { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }
.form-group input { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; background: #f9f9f9; transition: 0.3s; }
.form-group input:focus { border-color: var(--color-accent); outline: none; background: #fff; }
.form-note { font-size: 0.8rem; color: #888; text-align: center; margin-top: 15px; }

/* --- QUICK CONTACT FORM --- */
.quick-contact-form {
    background: var(--color-light-bg);
}
.quick-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
}
.quick-form input {
    flex-grow: 1;
    padding: 15px; border: 1px solid #ddd; border-radius: 50px; font-size: 1rem;
}

/* --- FOOTER --- */
.footer { background: #111; color: #888; padding: 40px 0; border-top: 1px solid #222; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-legal {
    font-size: 0.8rem;
    color: #666;
    max-width: 300px;
}
.social-links { display: flex; gap: 20px; }
.social-links a { color: #888; font-size: 1.5rem; transition: 0.3s; }
.social-links a:hover { color: var(--color-accent); }

/* --- FAQ SECTION --- */
.faq {
    background: var(--color-light-bg);
}
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: var(--color-white);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    border: 1px solid #eee;
}
.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
}
.faq-question i {
    transition: transform 0.3s ease;
    color: var(--color-accent);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}
.faq-answer p {
    padding: 0 20px 20px;
    color: var(--color-gray);
    line-height: 1.7;
}
.faq-item.active .faq-answer {
    max-height: 200px; /* Adjust if answers are longer */
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* --- VIDEO MODAL --- */
.video-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}
.video-modal.visible { display: flex; }
.video-modal-content { position: relative; width: 90%; max-width: 900px; }
.video-modal-content iframe { width: 100%; aspect-ratio: 16 / 9; border: 3px solid var(--color-accent); }
.close-modal-btn { position: absolute; top: -40px; right: 0; color: white; font-size: 3rem; font-weight: bold; cursor: pointer; }

/* --- MOBILE ADAPTIVE --- */

/* --- SCROLL TO FORM BUTTON --- */
.scroll-to-form-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background: var(--color-accent);
    color: var(--color-dark);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.4s ease, transform 0.4s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.scroll-to-form-btn.visible { opacity: 1; transform: translateY(0); }

.scroll-to-form-btn:hover { background: var(--color-accent-hover); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(235, 182, 6, 0.4); }

.scroll-to-form-btn i { font-size: 0.9rem; }

@media (max-width: 992px) {
    .hero-heading { font-size: 2.5rem; }
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .check-list li { justify-content: center; }
    .expert-photo { max-width: 400px; margin: 0 auto 40px; }
    .section-title-left { text-align: center; }
    .why-me-content { grid-template-columns: 1fr; }
    .why-me-photo { grid-row: 1; margin-bottom: 30px; }
    .comparison-header, .comparison-row {
        grid-template-columns: 1.5fr 1fr 1fr;
        font-size: 0.9rem;
    }
    .comparison-note {
        font-size: 0.9rem;
    }
    .services-grid .popular { transform: scale(1); }
    .hero-buttons { flex-direction: column; }
.btn { width: 100%; text-align: center; }
    .btn { width: 100%; text-align: center; }    
    
    /* How It Works - Vertical Timeline */
    .works-timeline-container {
        padding: 0;
        margin-top: 40px;
        position: relative; /* Ensure car is positioned relative to this */
    }
    .road-line, #finish-person {
        display: none; /* Hide horizontal road and person */
    }
    #road-car {
        display: block; /* Show car on mobile */
        position: absolute;
        top: 0;
        left: 30px; /* Align with vertical road */
        font-size: 2rem;
        transform: translateX(-50%) rotate(90deg); /* Center and rotate */
        transform-origin: center;
        z-index: 5; /* Above steps */
    }
    .works-steps-grid {
        grid-template-columns: 1fr;
        gap: 0;
        position: relative;
    }
    /* The vertical road */
    .works-steps-grid::before {
        content: '';
        position: absolute;
        left: 30px;
        top: 0;
        bottom: 0;
        width: 3px;
        background-color: #e0e0e0;
        z-index: 1;
    }
    .work-step {
        padding: 0 0 40px 80px;
        text-align: left;
        position: relative;
        z-index: 2;
    }
    .work-step:last-child { padding-bottom: 0; }
    .step-icon-wrapper {
        position: absolute;
        top: -5px; /* Adjust vertical alignment */
        left: 0;
        transform: none;
        z-index: 3;
    }
    .step-icon { width: 60px; height: 60px; font-size: 1.5rem; border: 3px solid var(--color-accent); color: var(--color-accent); background: var(--color-white); /* To cover the line */ }
    .work-step h4 { margin-top: 0; color: var(--color-dark); }
    .work-step.active .step-icon { transform: none; background-color: var(--color-accent); color: var(--color-dark); }

}
@media (max-width: 768px) {
    /* Hamburger Menu */
    .hamburger { display: flex; }
    
    /* Navigation Menu Mobile */
    .nav-menu { 
        position: fixed; 
        left: -100%; 
        top: 65px; 
        flex-direction: column; 
        background: var(--color-dark); 
        width: 100%; 
        text-align: center; 
        transition: left 0.3s ease;
        padding: 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        max-height: calc(100vh - 65px);
        overflow-y: auto;
    }
    
    .nav-menu.active { left: 0; }
    
    .nav-item { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
    .nav-item:last-child { border-bottom: none; }
    
    .nav-link { 
        display: block; 
        padding: 18px 20px; 
        font-size: 1rem;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover { 
        background: rgba(235, 182, 6, 0.1);
        color: var(--color-accent);
    }
    
    .nav-link.btn { 
        margin: 15px 20px; 
        padding: 15px 30px; 
        border-radius: 50px;
        display: inline-block;
        width: auto;
    }
    
    /* Hero Section Mobile */
    .hero { 
        height: auto; /* Дозволяємо контенту визначати висоту */
        min-height: 0; /* Скидаємо мінімальну висоту */
    }
    .hero-container { padding-top: 80px; padding-bottom: 60px; } /* Додаємо вертикальні відступи */
    .hero-content { max-width: 100%; padding: 0; }
    .hero-badge { font-size: 0.9rem; padding: 9px 15px; margin-bottom: 20px; }
    .hero-heading { font-size: 2.2rem; margin-bottom: 18px; line-height: 1.2; letter-spacing: -0.3px; }
    .hero-text { font-size: 1.05rem; margin-bottom: 25px; line-height: 1.6; }
    .hero-buttons { gap: 12px; flex-direction: column; margin-bottom: 35px; }
    .hero-buttons .btn { width: 100%; }
    .hero-trust { justify-content: flex-start; gap: 18px; font-size: 0.9rem; flex-direction: column; }
    .trust-item { margin-bottom: 5px; }
    .hero-pains { font-size: 0.95rem; }

    .comparison-table { font-size: 0.8rem; }
    .comparison-note { font-size: 0.8rem; }
    .comparison-row div { padding: 15px 10px; }
    .stat-card span { font-size: 2.2rem; }

    .quick-form { flex-direction: column; }
    
    /* General Mobile */
    .section { padding: 60px 0; }
    .section-title { font-size: 1.8rem; }
    .section-subtitle { font-size: 1rem; margin-bottom: 40px; }
    
    /* Services Grid */
    .services-grid { grid-template-columns: 1fr; }
    .service-card { padding: 30px 20px; }
    
    /* Contact Section */
    .contact-wrapper { gap: 30px; }
    .contact-form { padding: 25px; }
    .contact-link { font-size: 1.2rem; }

    #google-map-container { height: 400px; }
    .locations-cta { margin-top: 0; }

    .scroll-to-form-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        bottom: 20px;
        right: 20px;
    }
    
    /* Footer */
    .footer-content { justify-content: center; flex-direction: column; }
}

/* --- EXTRA SMALL DEVICES (Phones) --- */ 
@media (max-width: 480px) {
    .logo { font-size: 1.3rem; }
    
    .hero { 
        /* Властивості height: auto та min-height: 0 успадковуються з попереднього breakpoint. */
        /* Це виправляє проблему з фіксованою висотою на малих екранах. */
     }
    .hero-container { padding-top: 60px; padding-bottom: 40px; } /* Коригуємо відступи для найменших екранів */
    .hero-content { padding: 0; } /* Горизонтальні відступи контролюються батьківським .container */
    .hero-badge { 
        font-size: 0.85rem; 
        padding: 8px 14px; 
        margin-bottom: 18px; 
        letter-spacing: 0.2px; /* Keep existing styles */
        white-space: nowrap; /* Keep existing styles */
        overflow: hidden; /* Keep existing styles */
        text-overflow: ellipsis; /* Keep existing styles */
        max-width: 100%; /* Ensure it respects parent width */
    }
    .hero-heading { 
        font-size: 1.8rem; 
        line-height: 1.25; 
        margin-bottom: 16px; 
        letter-spacing: -0.2px;
        overflow-wrap: break-word; /* Use modern overflow-wrap */
    }
    .hero-text { 
        font-size: 0.95rem; 
        margin-bottom: 22px; 
        line-height: 1.65;
        overflow-wrap: break-word; /* Use modern overflow-wrap */
    }
    .hero-trust { gap: 16px; font-size: 0.85rem; }
    .trust-item { margin-bottom: 3px; }
    .hero-pains li,
    .trust-item {
        overflow-wrap: break-word; /* Ensure text breaks within list items and trust items */
    }
    
    .section-title { font-size: 1.5rem; }
    .section-subtitle { font-size: 0.95rem; margin-bottom: 30px; }
    
    .benefit-card h3 { font-size: 1.2rem; }
    .benefit-card p { font-size: 0.9rem; }
    
    .service-card { padding: 20px 15px; }
    .service-header h3 { font-size: 1.2rem; }
    .price { font-size: 1.7rem; }
    
    .contact-form { padding: 20px; }
    .form-group input { padding: 12px; font-size: 16px; }
    
    .btn { padding: 12px 20px; font-size: 0.95rem; }
    .btn--large { padding: 12px 20px; font-size: 1rem; }
    
    .nav-link { padding: 15px 15px; }

    .scroll-to-form-btn span {
        display: none; /* Скрываем текст на маленьких экранах */
    }
    .scroll-to-form-btn {
        width: 50px;
        height: 50px;
        justify-content: center;
        padding: 0;
    }

    .close-modal-btn { top: -30px; font-size: 2.5rem; }
}