/*==================================================
    RED WALLPAPERS 3.0
==================================================*/

/* ---------- Сброс ---------- */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

    background:#070707;

    color:#ffffff;

    overflow-x:hidden;

}

/* ---------- Переменные ---------- */

:root{

    --red:#d40000;
    --red2:#ff2d2d;

    --bg:#070707;

    --panel:#141414;

    --panel2:#1d1d1d;

    --text:#ffffff;

    --gray:#bfbfbf;

    --border:#420000;

}

/* ---------- Canvas ---------- */

#particles{

    position:fixed;

    inset:0;

    width:100%;

    height:100%;

    z-index:-2;

    background:#050505;

}

/* ---------- Container ---------- */

.container{

    width:min(1500px,92%);

    margin:auto;

}

/*==================================================
    LOADER
==================================================*/

#loader{

    position:fixed;

    inset:0;

    background:#050505;

    display:flex;

    justify-content:center;

    align-items:center;

    z-index:99999;

    transition:opacity .5s;

}

.loader-content{

    text-align:center;

}

.loader-content h1{

    font-size:48px;

    color:var(--red2);

    letter-spacing:4px;

    text-shadow:0 0 20px red;

}

.loader-bar{

    width:320px;

    height:8px;

    background:#222;

    border-radius:20px;

    overflow:hidden;

    margin:35px auto 15px;

}

.loader-progress{

    width:0;

    height:100%;

    background:
    linear-gradient(
        90deg,
        #600,
        red,
        #ff5555
    );

}

#loaderPercent{

    color:#ddd;

    font-size:18px;

}

/*==================================================
    HEADER
==================================================*/

header{

    position:sticky;

    top:0;

    z-index:500;

    background:rgba(10,10,10,.75);

    backdrop-filter:blur(14px);

    border-bottom:1px solid var(--border);

}

.header-content{

    min-height:82px;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

/* ---------- Logo ---------- */

.logo{

    display:flex;

    align-items:center;

    gap:15px;

    color:white;

    text-decoration:none;

}

.logo-icon{

    width:60px;

    height:60px;

    display:flex;

    justify-content:center;

    align-items:center;

    border-radius:50%;

    font-size:30px;

    background:rgba(255,0,0,.12);

    border:2px solid var(--red);

    box-shadow:0 0 18px rgba(255,0,0,.4);

}

.logo h1{

    font-size:28px;

    letter-spacing:2px;

}

.logo small{

    color:#ff9999;

}

/* ---------- Menu ---------- */

nav{

    display:flex;

    gap:35px;

}

nav a{

    color:white;

    text-decoration:none;

    transition:.3s;

    font-size:17px;

}

nav a:hover{

    color:var(--red2);

}

/*==================================================
    HERO
==================================================*/

#hero{

    position:relative;

    min-height:720px;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    overflow:hidden;

    background:

    url(images/hero.webp)

    center

    center/

    cover;

}

.hero-overlay{

    position:absolute;

    inset:0;

    background:

    linear-gradient(

    rgba(0,0,0,.25),

    rgba(0,0,0,.86)

    );

}

.hero-content{

    position:relative;

    z-index:5;

    max-width:900px;

    padding:30px;

}

.hero-content h2{

    font-size:70px;

    line-height:1.15;

    text-shadow:0 0 25px black;

}

.hero-content p{

    margin-top:25px;

    color:#ddd;

    font-size:22px;

}

.hero-button{

    display:inline-block;

    margin-top:45px;

    padding:18px 50px;

    border-radius:40px;

    text-decoration:none;

    color:white;

    font-size:20px;

    font-weight:bold;

    background:

    linear-gradient(

    90deg,

    #800,

    red

    );

    box-shadow:0 0 20px rgba(255,0,0,.5);

}

.hero-button:hover{

    transform:translateY(-4px);

    box-shadow:0 0 30px red;

}





/*==================================================
    GALLERY
==================================================*/

#gallery{

    padding:90px 0;

}

.section-header{

    text-align:center;

    margin-bottom:55px;

}

.section-header h2{

    font-size:46px;

    color:#fff;

    text-shadow:0 0 15px rgba(255,0,0,.45);

}

.section-header p{

    margin-top:12px;

    color:#999;

    font-size:18px;

}

/*==================================================
    GRID
==================================================*/

#galleryGrid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));

    gap:35px;

}

/*==================================================
    CARD
==================================================*/

.card{

    display:flex;

    flex-direction:column;

    background:rgba(20,20,20,.88);

    border:1px solid rgba(255,0,0,.18);

    border-radius:18px;

    overflow:hidden;

    backdrop-filter:blur(12px);

    transition:
        transform .35s,
        border-color .35s,
        box-shadow .35s;

    box-shadow:
        0 8px 22px rgba(0,0,0,.35);

}

.card:hover{

    transform:translateY(-10px);

    border-color:#ff2d2d;

    box-shadow:
        0 0 20px rgba(255,0,0,.35),
        0 20px 35px rgba(0,0,0,.55);

}

/*==================================================
    IMAGE
==================================================*/

.image-wrapper{

    position:relative;

    width:100%;

    aspect-ratio:16 / 10;

    overflow:hidden;

    background:#111;

}

.card-image{

    width:100%;

    height:100%;

    object-fit:cover;

    display:block;

    transition:
        transform .5s,
        filter .5s;

    cursor:pointer;

    user-select:none;

    -webkit-user-drag:none;

}

.card:hover .card-image{

    transform:scale(1.08);

    filter:brightness(.45);

}

/*==================================================
    OVERLAY
==================================================*/

.card-overlay{

    position:absolute;

    inset:auto 0 0 0;

    padding:22px;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.96),
            rgba(0,0,0,.05)
        );

    transform:translateY(100%);

    transition:.35s;

}

.card:hover .card-overlay{

    transform:translateY(0);

}

.card-title{

    font-size:24px;

    margin-bottom:14px;

    color:#ff5b5b;

}

.card-meta{

    display:flex;

    flex-direction:column;

    gap:8px;

}

.card-meta span{

    display:flex;

    align-items:center;

    gap:8px;

    color:#ddd;

    font-size:15px;

}

/*==================================================
    STATS
==================================================*/

.card-stats{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:15px 18px;

    background:#151515;

    border-top:1px solid rgba(255,255,255,.05);

    border-bottom:1px solid rgba(255,255,255,.05);

}

.card-stats span{

    display:flex;

    align-items:center;

    gap:8px;

    color:#cfcfcf;

    font-size:16px;

}

/*==================================================
    DOWNLOAD BUTTON
==================================================*/

.download-btn{

    height:60px;

    border:none;

    cursor:pointer;

    color:white;

    font-size:18px;

    font-weight:700;

    background:
        linear-gradient(
            90deg,
            #780000,
            #d00000,
            #780000
        );

    transition:
        background .3s,
        letter-spacing .3s,
        transform .2s,
        box-shadow .3s;

}

.download-btn:hover{

    background:
        linear-gradient(
            90deg,
            #a00000,
            #ff1b1b,
            #a00000
        );

    letter-spacing:1px;

    box-shadow:0 0 18px rgba(255,0,0,.55);

}

.download-btn:active{

    transform:scale(.98);

}

/*==================================================
    CARD ANIMATION
==================================================*/

.card{

    opacity:0;

    transform:translateY(45px);

    animation:cardAppear .65s forwards;

}

.card:nth-child(2){animation-delay:.08s;}
.card:nth-child(3){animation-delay:.16s;}
.card:nth-child(4){animation-delay:.24s;}
.card:nth-child(5){animation-delay:.32s;}
.card:nth-child(6){animation-delay:.40s;}
.card:nth-child(7){animation-delay:.48s;}
.card:nth-child(8){animation-delay:.56s;}
.card:nth-child(9){animation-delay:.64s;}
.card:nth-child(10){animation-delay:.72s;}
.card:nth-child(11){animation-delay:.80s;}
.card:nth-child(12){animation-delay:.88s;}

@keyframes cardAppear{

    to{

        opacity:1;

        transform:translateY(0);

    }

}






/*==================================================
    FULLSCREEN VIEWER
==================================================*/

#viewer{

    position:fixed;

    inset:0;

    display:flex;

    justify-content:center;

    align-items:center;

    background:rgba(0,0,0,.96);

    backdrop-filter:blur(10px);

    opacity:0;

    visibility:hidden;

    transition:.35s;

    z-index:9999;

}

#viewer.active{

    opacity:1;

    visibility:visible;

}

.viewer-content{

    width:min(1500px,95%);

    display:grid;

    grid-template-columns:1fr 340px;

    gap:30px;

    align-items:center;

}

#viewerImage{

    width:100%;

    max-height:85vh;

    object-fit:contain;

    border-radius:14px;

    box-shadow:
        0 0 40px rgba(255,0,0,.35);

    animation:viewerZoom .35s;

}

@keyframes viewerZoom{

    from{

        opacity:0;

        transform:scale(.9);

    }

    to{

        opacity:1;

        transform:scale(1);

    }

}

/*==================================================
    VIEWER PANEL
==================================================*/

.viewer-panel{

    background:rgba(20,20,20,.92);

    border:1px solid rgba(255,0,0,.25);

    border-radius:18px;

    padding:30px;

    backdrop-filter:blur(14px);

}

.viewer-panel h2{

    font-size:30px;

    margin-bottom:25px;

    color:#ff4d4d;

}

.viewer-info{

    display:flex;

    flex-direction:column;

    gap:18px;

    margin-bottom:35px;

}

.viewer-info div{

    display:flex;

    align-items:center;

    gap:12px;

    color:#ddd;

    font-size:17px;

}

#viewerDownload{

    width:100%;

    height:60px;

    border:none;

    border-radius:12px;

    cursor:pointer;

    color:white;

    font-size:18px;

    font-weight:bold;

    background:
        linear-gradient(
            90deg,
            #700,
            #d00000
        );

    transition:.3s;

}

#viewerDownload:hover{

    transform:translateY(-3px);

    box-shadow:0 0 20px rgba(255,0,0,.5);

}

/*==================================================
    VIEWER BUTTONS
==================================================*/

#closeViewer,
#prevImage,
#nextImage{

    position:absolute;

    width:58px;

    height:58px;

    border:none;

    border-radius:50%;

    cursor:pointer;

    color:white;

    font-size:26px;

    background:rgba(255,0,0,.18);

    backdrop-filter:blur(12px);

    transition:.3s;

}

#closeViewer{

    top:30px;

    right:30px;

}

#prevImage{

    left:25px;

    top:50%;

    transform:translateY(-50%);

}

#nextImage{

    right:25px;

    top:50%;

    transform:translateY(-50%);

}

#closeViewer:hover,
#prevImage:hover,
#nextImage:hover{

    background:#d00000;

    box-shadow:0 0 18px rgba(255,0,0,.6);

}

#prevImage:hover,
#nextImage:hover{

    transform:translateY(-50%) scale(1.08);

}

#closeViewer:hover{

    transform:scale(1.08);

}

/*==================================================
    PAGINATION
==================================================*/

#pagination{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:12px;

    flex-wrap:wrap;

    margin-top:70px;

}

.page-btn{

    width:48px;

    height:48px;

    border:none;

    border-radius:12px;

    cursor:pointer;

    color:white;

    font-size:17px;

    background:#191919;

    transition:.3s;

}

.page-btn:hover{

    background:#d00000;

    box-shadow:0 0 15px rgba(255,0,0,.45);

}

.page-btn.active{

    background:#ff2222;

    box-shadow:0 0 20px rgba(255,0,0,.65);

}

/*==================================================
    TO TOP
==================================================*/

#toTop{

    position:fixed;

    right:25px;

    bottom:25px;

    width:56px;

    height:56px;

    border:none;

    border-radius:50%;

    background:#b00000;

    color:white;

    font-size:22px;

    cursor:pointer;

    opacity:0;

    pointer-events:none;

    transition:.3s;

    z-index:500;

}

#toTop.show{

    opacity:1;

    pointer-events:auto;

}

#toTop:hover{

    transform:translateY(-5px);

    box-shadow:0 0 18px rgba(255,0,0,.6);

}

/*==================================================
    FOOTER
==================================================*/

footer{

    margin-top:100px;

    padding:70px 20px;

    text-align:center;

    background:#090909;

    border-top:1px solid rgba(255,0,0,.18);

}

.footer-logo{

    font-size:30px;

    color:#ff4d4d;

    font-weight:bold;

    letter-spacing:2px;

    text-shadow:0 0 15px rgba(255,0,0,.35);

}

.footer-content p{

    margin-top:12px;

    color:#999;

}

.footer-line{

    width:240px;

    height:2px;

    margin:30px auto;

    background:
        linear-gradient(
            to right,
            transparent,
            red,
            transparent
        );

}



/*==================================================
    RESPONSIVE
==================================================*/

/* ---------- Ноутбуки ---------- */

@media (max-width:1200px){

    .viewer-content{

        grid-template-columns:1fr 300px;

    }

    .hero-content h2{

        font-size:58px;

    }

}

/* ---------- Планшеты ---------- */

@media (max-width:992px){

    .header-content{

        flex-direction:column;

        gap:20px;

        padding:20px 0;

    }

    nav{

        gap:20px;

    }

    #galleryGrid{

        grid-template-columns:
        repeat(2,minmax(280px,1fr));

    }

    .viewer-content{

        grid-template-columns:1fr;

        max-width:92%;

    }

    .viewer-panel{

        width:100%;

    }

    #viewerImage{

        max-height:60vh;

    }

    .hero{

        min-height:600px;

    }

    .hero-content h2{

        font-size:50px;

    }

}

/* ---------- Телефоны ---------- */

@media (max-width:768px){

    .container{

        width:95%;

    }

    nav{

        display:none;

    }

    #hero{

        min-height:500px;

    }

    .hero-content{

        padding:20px;

    }

    .hero-content h2{

        font-size:38px;

    }

    .hero-content p{

        font-size:18px;

    }

    .hero-button{

        width:100%;

        max-width:320px;

    }

    #gallery{

        padding:70px 0;

    }

    .section-header h2{

        font-size:34px;

    }

    #galleryGrid{

        grid-template-columns:1fr;

        gap:25px;

    }

    .card{

        max-width:500px;

        margin:auto;

    }

    .viewer-info{

        gap:14px;

    }

    .viewer-panel{

        padding:22px;

    }

    #closeViewer{

        top:15px;

        right:15px;

    }

    #prevImage{

        left:10px;

    }

    #nextImage{

        right:10px;

    }

}

/* ---------- Маленькие телефоны ---------- */

@media (max-width:480px){

    .logo h1{

        font-size:22px;

    }

    .logo-icon{

        width:52px;

        height:52px;

        font-size:24px;

    }

    .hero-content h2{

        font-size:30px;

    }

    .hero-content p{

        font-size:16px;

    }

    .download-btn{

        height:55px;

        font-size:17px;

    }

    .page-btn{

        width:42px;

        height:42px;

        font-size:15px;

    }

    #toTop{

        width:48px;

        height:48px;

        right:15px;

        bottom:15px;

    }

    #viewerImage{

        max-height:50vh;

    }

}

/*==================================================
    SCROLLBAR
==================================================*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#111;

}

::-webkit-scrollbar-thumb{

    background:#990000;

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:#ff2222;

}

/*==================================================
    SELECTION
==================================================*/

::selection{

    background:#d40000;

    color:#fff;

}

/*==================================================
    SMOOTH EFFECTS
==================================================*/

a,
button,
img{

    transition:.3s;

}

img{

    user-select:none;

    -webkit-user-drag:none;

}

button:active{

    transform:scale(.97);

}

/*==================================================
    GLASS EFFECT
==================================================*/

.card,
.viewer-panel,
header{

    backdrop-filter:blur(14px);

}

/*==================================================
    SHADOWS
==================================================*/

.logo h1,
.section-header h2,
.footer-logo{

    text-shadow:

        0 0 10px rgba(255,0,0,.45),

        0 0 20px rgba(255,0,0,.25);

}

/*==================================================
    FADE IN
==================================================*/

.fade-in{

    animation:fadeIn .5s;

}

@keyframes fadeIn{

    from{

        opacity:0;

    }

    to{

        opacity:1;

    }

}

/*==================================================
    HERO ANIMATION
==================================================*/

@keyframes heroZoom{

    from{

        transform:scale(1);

    }

    to{

        transform:scale(1.05);

    }

}

#hero::before{

    content:"";

    position:absolute;

    inset:0;

    background:inherit;

    animation:heroZoom 20s linear infinite alternate;

    z-index:-1;

}

/*==================================================
    LOADER HIDE
==================================================*/

#loader.hide{

    opacity:0;

    visibility:hidden;

}

/*==================================================
    END
==================================================*/














