/* ==================================================
   YK DETAILING
   Premium Website
================================================== */

:root{

    --black:#090909;
    --black-light:#141414;
    --gold:#C8A96A;
    --white:#F5F5F5;
    --gray:#A6A6A6;

    --transition:.35s ease;

}

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Montserrat',sans-serif;
    background:var(--black);
    color:var(--white);
    overflow-x:hidden;

}

img{

    max-width:100%;
    display:block;

}

a{

    text-decoration:none;

}

.container{

    width:90%;
    max-width:1250px;
    margin:auto;

}

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

.header{

    position:fixed;
    top:0;
    left:0;

    width:100%;

    z-index:999;

    background:rgba(10,10,10,.35);

    backdrop-filter:blur(18px);

    border-bottom:1px solid rgba(255,255,255,.08);

    transform:translateY(0);
    transition:transform .25s ease, background .25s ease;

}

.header .container{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:22px 0;

    transition:padding .25s ease;

}

.logo{

    color:#fff;

    font-size:38px;

    font-weight:800;

    letter-spacing:3px;

    text-transform:uppercase;

    transition:font-size .25s ease;

}

.logo span{

    color:var(--gold);

}

nav{

    display:flex;

    gap:35px;

    transition:gap .25s ease;

}

nav a{

    color:white;

    font-weight:500;

    font-size:15px;

    letter-spacing:1px;

    transition:.3s;

    position:relative;

}

.header .btn{

    transition:padding .25s ease;

}

.header.is-compact .container{

    padding:8px 0;

}

.header.is-compact .logo{

    font-size:26px;

}

.header.is-compact nav{

    gap:22px;

}

.header.is-compact nav a{

    font-size:13px;

}

.header.is-compact .btn{

    padding:9px 20px;

}

#about,
#services,
#galerie,
#contact{

    scroll-margin-top:var(--header-height, 110px);

}
nav a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-8px;

    width:0;

    height:2px;

    background:var(--gold);

    transition:.35s;

}

nav a:hover::after{

    width:100%;

}

nav a:hover{

    color:var(--gold);

}

/* ===========================
        BUTTONS
=========================== */

.btn{

    background:var(--gold);

    color:black;

    padding:16px 34px;

    border-radius:50px;

    font-weight:700;

    transition:var(--transition);

    display:inline-block;

}

.btn:hover{

    transform:translateY(-4px);

    box-shadow:0 0 35px rgba(200,169,106,.45);

}

.btn-outline{

    background:transparent;

    color:white;

    border:2px solid var(--gold);

    margin-left:15px;

}

.btn-outline:hover{

    background:var(--gold);

    color:black;

}

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

.hero{

    min-height:100vh;

    display:flex;

    align-items:center;

    justify-content:center;

    background:
        linear-gradient(rgba(0,0,0,.30), rgba(0,0,0,.60)),
        url("../images/hero.jpg");

    background-size:cover;

    background-position:center center;

    background-repeat:no-repeat;

}

.hero-content{

    max-width:700px;

    text-align:left;

}

.hero h1{

    font-size:88px;

    font-weight:800;

    line-height:1.05;

    margin-bottom:25px;

    text-shadow:0 8px 25px rgba(0,0,0,.5);

}

.hero p{

    font-size:24px;

    color:#ddd;

    max-width:600px;

    margin-bottom:0;

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

section{

    padding:120px 0;

}

.section-title{

    text-align:center;

    margin-bottom:70px;

}

.section-title span{

    color:var(--gold);

    letter-spacing:3px;

    font-size:14px;

    font-weight:700;

}

.section-title h2{

    font-size:48px;

    margin-top:15px;

    margin-bottom:20px;

}

.section-title p{

    color:var(--gray);

    max-width:700px;

    margin:auto;

    line-height:1.8;

}

/* ===========================
        ABOUT
=========================== */

.about{

    background:var(--black-light);

}

.about-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

}

.about-card{

    background:#1b1b1b;

    padding:40px;

    border-radius:20px;

    border:1px solid rgba(255,255,255,.06);

    transition:.4s;

}

.about-card:hover{

    transform:translateY(-10px);

    border-color:var(--gold);

    box-shadow:0 20px 45px rgba(0,0,0,.35);

}

.about-card h3{

    color:var(--gold);

    margin-bottom:15px;

    font-size:24px;

}

.about-card p{

    color:var(--gray);

    line-height:1.8;

}

/* ===========================
        SERVICES
=========================== */

.services-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
}

.service-card{
    background:#121212;
    border-radius:20px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.06);
    transition:.35s;

    display:flex;
    flex-direction:column;
    height:100%;
}

.service-card:hover{

    transform:translateY(-12px);

    border-color:var(--gold);

    box-shadow:0 20px 45px rgba(0,0,0,.35);

}

.service-card h3{

    color:var(--gold);

    margin-bottom:18px;

    font-size:24px;

}

.service-card p{
    color:#bdbdbd;
    padding:0 22px 25px;
    line-height:1.7;
    flex-grow:1;
}
/* =====================================
   BEFORE / AFTER
===================================== */

.before-after{

    background:#111;

}

.comparison-container{

    position:relative;

    max-width:1100px;

    margin:60px auto 0;

    overflow:hidden;

    border-radius:24px;

    border:1px solid rgba(255,255,255,.08);

    box-shadow:0 20px 60px rgba(0,0,0,.45);

}

.comparison-image{

    display:block;

    width:100%;

    height:650px;

    object-fit:cover;

}

.comparison-overlay{

    position:absolute;

    left:0;

    top:0;

    width:50%;

    height:100%;

    overflow:hidden;

}

.comparison-overlay img{

    width:1100px;

    max-width:none;

}

.comparison-slider{

    position:absolute;

    left:0;

    bottom:30px;

    width:100%;

    cursor:pointer;

}

/* =====================================
   GALLERY
===================================== */

.gallery{

    background:var(--black-light);

}

.gallery-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:20px;

}

.gallery-grid img{

    width:100%;

    height:320px;

    object-fit:cover;

    border-radius:20px;

    transition:.4s;

    cursor:pointer;

}

.gallery-grid img:hover{

    transform:scale(1.05);

    box-shadow:0 20px 50px rgba(0,0,0,.5);

}

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

.contact{

    background:#111;

}

form{

    max-width:750px;

    margin:50px auto 0;

    display:flex;

    flex-direction:column;

    gap:20px;

}

input,
textarea{

    background:#181818;

    border:1px solid rgba(255,255,255,.08);

    border-radius:16px;

    padding:18px;

    color:white;

    font-size:16px;

    transition:.3s;

}

input:focus,
textarea:focus{

    outline:none;

    border-color:var(--gold);

}

textarea{

    resize:none;

    min-height:180px;

}

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

footer{

    background:#080808;

    padding:40px 0;

    text-align:center;

    border-top:1px solid rgba(255,255,255,.05);

}

footer p{

    color:var(--gray);

    margin:10px 0;

}

footer a{

    color:var(--gold);

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

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(40px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}
/* =========================
   ABOUT
========================= */

.about{
    padding:120px 0;
    background:#0b0b0b;
}

.about-grid{
    position:relative;
    isolation:isolate;
    min-height:620px;
    padding:64px;
    overflow:hidden;
    border-radius:20px;
    background:
        linear-gradient(90deg, rgba(11,11,11,.92) 0%, rgba(11,11,11,.75) 55%, rgba(11,11,11,.42) 100%),
        url("../images/about.jpg") center/cover no-repeat;
}

.about-image{
    display:none;
}

.about-text{
    position:relative;
    z-index:1;
    display:flex;
    flex-direction:column;
    gap:24px;
    max-width:620px;
}

.about-text::before{
    content:"";
    display:block;
    width:54px;
    height:2px;
    background:var(--gold);
}

.section-subtitle{
    color:var(--gold);
    font-size:14px;
    font-weight:700;
    letter-spacing:3px;
    text-transform:uppercase;
}

.about-text h2{
    font-size:48px;
    margin:0;
    color:#fff;
}

.about-text p{
    color:#bdbdbd;
    font-size:18px;
    line-height:1.8;
    margin:0;
}

.about-features{
    display:grid;
    gap:20px;
}

.feature-card{
    background:rgba(20,20,20,.82);
    border:1px solid rgba(255,255,255,.06);
    border-radius:16px;
    padding:24px;
    backdrop-filter:blur(8px);
    transition:.35s;
}

.feature-card:hover{
    transform:translateY(-6px);
    border-color:var(--gold);
    box-shadow:0 15px 40px rgba(0,0,0,.35);
}

.feature-card h3{
    color:#fff;
    margin-bottom:10px;
}

.feature-card p{
    margin:0;
    color:#bdbdbd;
}
/* =========================
   SERVICES
========================= */

.services{
    padding:120px 0;
    background:#080808;
}

.services h2{
    text-align:center;
    font-size:48px;
    margin:20px 0 60px;
}

.services .section-subtitle{
    display:block;
    text-align:center;
}

.services-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
}

.service-card{
    background:#121212;
    border-radius:20px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.06);
    transition:.35s;
}

.service-card:hover{
    transform:translateY(-10px);
    border-color:var(--gold);
    box-shadow:0 25px 60px rgba(0,0,0,.45);
}

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

.service-card:hover img{
    transform:scale(1.05);
}

.service-card h3{
    color:#fff;
    font-size:20px;
    line-height:1.3;
    padding:22px 22px 10px;
    min-height:78px;
}

.service-card p{
    color:#bdbdbd;
    padding:0 22px 25px;
    line-height:1.7;
    flex-grow:1;
}
/* =========================
   BEFORE / AFTER
========================= */

.before-after{
padding:100px 0;
background:#080808;
text-align:center;
}


.before-after h2{
color:white;
font-size:48px;
margin-bottom:50px;
}


.comparison-slider{
position:relative;
width:900px;
height:500px;
margin:auto;
overflow:hidden;
border-radius:20px;
}


.comparison-slider img{
width:100%;
height:100%;
object-fit:cover;
}


.after-container{
    position:absolute;
    top:0;
    left:0;
    width:50%;
    height:100%;
    overflow:hidden;
}


.after-container img{
    width:900px;
    max-width:none;
    height:500px;
    object-fit:cover;
}


.slider-button{
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
background:#c9a45c;
color:#000;
width:55px;
height:55px;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
font-size:25px;
font-weight:bold;
}
.label{
    position:absolute;
    top:20px;
    background:#c9a45c;
    color:#000;
    padding:8px 18px;
    border-radius:20px;
    font-weight:bold;
    z-index:10;
}


.before-label{
    left:20px;
}


.after-label{
    right:20px;
}
.works-grid{
    display:grid;
    grid-template-columns:repeat(4, 300px);
    gap:25px;
    justify-content:center;
}


/* вставить вот это */
.works{
    padding-top:50px;
    padding-bottom:100px;
    text-align:center;
}

.mini-slider,
.mini-slider img{
    user-select:none;
    -webkit-user-select:none;
    -webkit-user-drag:none;
}
/* до сюда */


.work-card{
    width:300px;
    background:#111;
    border:1px solid #222;
    border-radius:20px;
    overflow:hidden;
    transition:.35s;
}


.work-card:hover{
    transform:translateY(-10px);
    border-color:var(--gold);
    box-shadow:0 25px 60px rgba(0,0,0,.45);
}

.mini-slider{
    position:relative;
    width:300px;
    height:200px;
    overflow:hidden;
}

.mini-slider img{
    position:absolute;
    width:300px;
    height:200px;
    object-fit:cover;
    top:0;
    left:0;
    pointer-events:none;
}

.mini-after{
    position:absolute;
    top:0;
    left:0;
    width:50%;
    height:100%;
    overflow:hidden;
}


.mini-after img{
    position:absolute;
    top:0;
    left:0;
    width:300px;
    min-width:300px;
    max-width:none;
    height:200px;
    object-fit:cover;
}
.mini-button{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
    width:30px;
    height:30px;
    border-radius:50%;
    background:#c9a45c;
    color:transparent;
    font-size:0;
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:10;
}
.mini-slider,
.mini-slider * {
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.mini-slider img {
    pointer-events: none;
}
.before-after {
    text-align: center;
}

.before-after .section-subtitle {
    display: block;
    text-align: center;
}

.before-after h2 {
    text-align: center;
    margin: 15px auto 50px;
}
.section-subtitle{
    display:block;
    color:#c9a34e;
    font-size:13px;
    letter-spacing:4px;
    font-weight:bold;
    margin-bottom:15px;
    text-align:center;
}

.works h2{
    font-size:48px;
    text-align:center;
    margin-bottom:50px;
}
.work-card h3{
    padding:20px;
    margin:0;
    font-size:20px;
    color:white;
}


.work-card p{
    padding:0 20px 20px;
    margin:0;
    color:#aaa;
}
html {
    scroll-behavior: smooth;
}

/* =========================
   GALLERY PAGE
========================= */

.gallery-page .works{
    padding:190px 0 110px;
}

.gallery-page .works h1{
    margin-bottom:50px;
    font-size:48px;
    text-align:center;
}

.portfolio{
    padding:110px 0 120px;
    background:var(--black-light);
}

.portfolio-heading{
    max-width:700px;
    margin:0 auto 60px;
    text-align:center;
}

.portfolio-heading .section-subtitle{
    margin-bottom:18px;
}

.portfolio-heading h2{
    margin-bottom:20px;
    font-size:48px;
}

.portfolio-heading p{
    color:#bdbdbd;
    line-height:1.8;
}

.portfolio-filters{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:10px;
    margin:0 auto 36px;
}

.portfolio-filter{
    min-height:42px;
    padding:0 18px;
    cursor:pointer;
    border:1px solid #353535;
    border-radius:4px;
    background:transparent;
    color:#bdbdbd;
    font:500 12px 'Montserrat', sans-serif;
    letter-spacing:0;
    transition:color var(--transition), background var(--transition), border-color var(--transition);
}

.portfolio-filter:hover,
.portfolio-filter:focus-visible{
    border-color:var(--gold);
    color:var(--white);
}

.portfolio-filter.is-active{
    border-color:var(--gold);
    background:var(--gold);
    color:var(--black);
}

.portfolio-grid{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:24px;
}

.portfolio-card{
    display:block;
    width:100%;
    aspect-ratio:4 / 3;
    padding:0;
    overflow:hidden;
    cursor:pointer;
    border:1px solid #222;
    border-radius:20px;
    background:#111;
    transition:.35s;
}

.portfolio-card img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .35s ease;
}

.portfolio-card:hover{
    transform:translateY(-10px);
    border-color:var(--gold);
    box-shadow:0 25px 60px rgba(0,0,0,.45);
}

.portfolio-card:hover img{
    transform:scale(1.05);
}

.portfolio-card.is-filtered,
.portfolio-card.is-filtered:hover{
    opacity:0;
    transform:scale(.96);
    pointer-events:none;
}

.portfolio-lightbox{
    position:fixed;
    inset:0;
    z-index:1200;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:36px;
    visibility:hidden;
    opacity:0;
    background:rgba(0,0,0,.92);
    transition:opacity .25s ease, visibility .25s ease;
}

.portfolio-lightbox.is-open{
    visibility:visible;
    opacity:1;
}

.portfolio-lightbox img{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
}

.portfolio-lightbox-close{
    position:absolute;
    top:20px;
    right:24px;
    width:42px;
    height:42px;
    padding:0;
    cursor:pointer;
    border:1px solid var(--gold);
    border-radius:50%;
    background:#111;
    color:var(--gold);
    font-size:32px;
    line-height:1;
}

body.portfolio-lightbox-open{
    overflow:hidden;
}