/* ================= GLOBAL ================= */

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Inter', sans-serif;
    color:#1e293b;
    background:#ffffff;
    line-height:1.6;
}

img{
    max-width:100%;
    display:block;
    border-radius:12px;
}

/* ================= FONTS ================= */

h1, h2, h3, h4, h5, h6,
.logo {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.btn, .btn-outline, .nav-btn {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
}

.nav-links a {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

/* ================= HEADER ================= */

header{
    position:fixed;
    top:0;
    width:100%;
    z-index:1000;
    background:rgba(255,255,255,0.85);
    backdrop-filter:blur(12px);
    box-shadow:0 4px 20px rgba(0,0,0,.06);
}

.navbar{
    max-width:1300px;
    margin:auto;
    padding:18px 40px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.logo{
    font-size:30px;
    font-weight:800;
    color:#0f172a;
    letter-spacing:-0.5px;
}

.nav-links{
    display:flex;
    gap:40px;
    list-style:none;
}

.nav-links a{
    text-decoration:none;
    color:#334155;
    font-weight:500;
    font-size:17px;
    transition:.25s;
}

.nav-links a:hover{
    color:#f97316;
    transform:translateY(-2px);
}

.nav-btn{
    background:#f97316;
    color:white;
    padding:12px 28px;
    border-radius:30px;
    text-decoration:none;
    font-weight:600;
    font-size:16px;
    transition:.3s;
}

.nav-btn:hover{
    background:#ea580c;
    transform:translateY(-3px);
}

/* ================= BURGER MENU ================= */

.burger{
    width:35px;
    height:25px;
    display:none;
    flex-direction:column;
    justify-content:space-between;
    cursor:pointer;
}

.burger span{
    height:4px;
    background:#0f172a;
    border-radius:5px;
    transition:.3s;
}

.burger.active span:nth-child(1){
    transform:translateY(10px) rotate(45deg);
}

.burger.active span:nth-child(2){
    opacity:0;
}

.burger.active span:nth-child(3){
    transform:translateY(-10px) rotate(-45deg);
}

.mobile-menu{
    position:fixed;
    top:0;
    right:-100%;
    width:75%;
    height:100%;
    background:white;
    padding:100px 40px;
    display:flex;
    flex-direction:column;
    gap:30px;
    box-shadow:-5px 0 25px rgba(0,0,0,.15);
    transition:.4s;
}

.mobile-menu.open{
    right:0;
}

.mobile-menu a{
    text-decoration:none;
    font-size:24px;
    color:#0f172a;
    font-weight:600;
}

/* ================= HERO ================= */

.hero{
    height:100vh;
    display:flex;
    align-items:center;
    padding:0 10%;
    background:
        linear-gradient(rgba(15,23,42,.70), rgba(15,23,42,.70)),
        url("images/hero.jpg");
    background-size:cover;
    background-position:center;
    color:white;
}

.hero-content{
    max-width:750px;
    animation:fadeIn 1.2s ease;
}

.hero-tag{
    font-size:20px;
    color:#fb923c;
    font-weight:700;
    letter-spacing:0.5px;
}

.hero h1{
    font-size:64px;
    line-height:1.1;
    margin:20px 0;
    font-weight:800;
}

.hero p{
    font-size:20px;
    line-height:1.7;
    color:#e2e8f0;
}

.buttons{
    display:flex;
    gap:20px;
    margin-top:40px;
}

.btn{
    background:#f97316;
    color:white;
    padding:16px 35px;
    border-radius:30px;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

.btn:hover{
    transform:translateY(-5px);
}

.btn-outline{
    border:2px solid white;
    color:white;
    padding:14px 35px;
    border-radius:30px;
    text-decoration:none;
    transition:.3s;
}

.btn-outline:hover{
    background:white;
    color:#0f172a;
}

/* ================= SECTIONS ================= */

section{
    padding:110px 10%;
}

h2{
    font-size:44px;
    color:#0f172a;
    margin-bottom:45px;
    font-weight:800;
    letter-spacing:-0.5px;
}

.container{
    display:grid;
    grid-template-columns:1fr 350px;
    gap:60px;
    align-items:center;
}

.container p{
    font-size:18px;
    line-height:1.8;
}

.info-box{
    background:#f8fafc;
    padding:40px;
    border-radius:20px;
    box-shadow:0 15px 40px rgba(0,0,0,.06);
}

/* ================= STATISTICS ================= */

.statistics{
    background:#0f172a;
    color:white;
    padding:120px 10%;
}

.stats-container{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:40px;
    text-align:center;
    justify-items:center;
    align-items:center;
}

.stat-item{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:40px 20px;
    min-height:180px;
    max-width:280px;
    background:rgba(255,255,255,0.05);
    border-radius:18px;
    transition:.3s;
}

.stat-item:hover{
    transform:translateY(-8px);
}

.stat-item h3{
    font-size:52px;
    color:#f97316;
    font-weight:800;
    margin-bottom:10px;
}

.stat-item p{
    font-size:18px;
    opacity:.9;
    max-width:180px;
}

@media(max-width:1024px){
    .stats-container{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:600px){
    .stats-container{
        grid-template-columns:1fr;
    }
}

/* ================= SERVICES (UPDATED) ================= */

#services {
    background: #ffffff;
    padding: 120px 10%;
}

#services h2 {
    text-align: center;
    margin-bottom: 60px;
}

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

.card {
    background: #ffffff;
    padding: 50px 35px;
    border-radius: 22px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.07);
    transition: .35s;
    border: 1px solid #f1f5f9;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,.12);
}

.card i {
    font-size: 50px;
    color: #f97316;
    margin-bottom: 25px;
}

.card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #0f172a;
    font-weight: 700;
}

.card p {
    font-size: 18px;
    color: #475569;
    line-height: 1.7;
}

/* ===== BEFORE / AFTER (UPDATED) ===== */

.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.ba-column h3 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
}

.ba-slider {
    position: relative;
    width: 100%;
    max-width: 600px; /* ширше */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.ba-track {
    position: relative;
    width: 100%;
    height: 420px; /* ВИЩЕ фото */
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.ba-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* красиве заповнення */
    opacity: 0;
    transform: scale(1.05);
    transition: opacity .35s ease, transform .35s ease;
}

.ba-image.active {
    opacity: 1;
    transform: scale(1);
}

.ba-arrow {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: white;
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .25s;
    color: #0f172a;
    font-size: 18px;
}

.ba-arrow:hover {
    background: #f97316;
    color: white;
    transform: translateY(-2px);
}

/* Адаптивність */
@media(max-width: 900px) {
    .before-after {
        grid-template-columns: 1fr;
    }

    .ba-track {
        height: 320px; /* менше на телефоні */
    }
}

@media(max-width: 600px) {
    .ba-track {
        height: 260px; /* ще менше */
    }
}



/* ================= CONTACT ================= */

#contact {
    background: #ffffff;
    padding: 120px 10%;
}

.contact-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-left h2 {
    font-size: 46px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
}

.contact-subtitle {
    font-size: 20px;
    color: #475569;
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 19px;
    color: #1e293b;
}

.info-item i {
    font-size: 24px;
    color: #f97316;
}

.contact-right img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,.12);
    object-fit: cover;
}

/* ================= FOOTER ================= */

footer{
    background:#020617;
    color:white;
    text-align:center;
    padding:35px;
    font-size:16px;
}

/* ================= ANIMATION ================= */

.hidden{
    opacity:0;
    transform:translateY(40px);
    transition:.8s;
}

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

@keyframes fadeIn{
    from{opacity:0; transform:translateY(40px);}
    to{opacity:1; transform:translateY(0);}
}

/* ================= RESPONSIVE ================= */

@media(max-width:1600px){
    section{padding:100px 8%;}
    .hero{padding:0 8%;}
}

@media(max-width:1300px){
    .container{grid-template-columns:1fr 300px;}
}

@media(max-width:1024px){
    .cards{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));}
    .contact-container{grid-template-columns:1fr;}
}

@media(max-width:900px){
    .nav-links,.nav-btn{display:none;}
    .burger{display:flex;}
    .hero{text-align:center;}
    .container{grid-template-columns:1fr;}
}

@media(max-width:600px){
    .hero h1{font-size:34px;}
    h2{font-size:32px;}
}

@media(max-width:400px){
    .hero h1{font-size:28px;}
    .btn{padding:12px 22px;}
}
