@font-face {
    font-family: 'Bebas';
    src: url(/fonts/BebasNeueCyrillic.woff2);
    font-display: swap;
}

@font-face {
    font-family: 'Vasek';
    src: url(/fonts/Vasek-Italic.woff2);
    font-display: swap;
}
*{
    margin: 0;
    padding: 0;
    border: 0;
    outline: none;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

:root{
    --color-red: #BF171B;
    --color-white: #FDFDFD;
    --font-bebas: 'Bebas';
    --font-vasek: 'Vasek';
    --color-girl-one: #000;
    --color-girl-two: #3D2623;
    --color-girl-three: #622923;
    --color-girl-four: #CC9F7E;
    --color-girl-five: #A4A77F;
    --color-girl-six: #B3C0B6;
    --color-girl-seven: #F7C8D2;
    --color-man-one: #000;
    --color-man-two: #3d2623;
    --color-man-three: #838282;
    --color-man-four: #4E5647;
    --color-man-five: #1E3D66;
}

a{
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6{
    color: var(--color-red);
    font-size: 60px;
    font-family: var(--font-bebas);
    text-align: center;
    letter-spacing: 0.1rem;
}

p{
    color: var(--color-red);
    font-size: 60px;
    font-family: var(--font-vasek);
    text-align: center;
}

img{
    max-width: 100%;
    vertical-align: top;
}

body{
    color: var(--color-red);
}

section{
    /* margin-top: 50px; */
    padding: 100px 0;
}

span{
    display: block;
    color: var(--color-red);
    font-family: var(--font-bebas);
}

@media (min-width: 1024px) {

    body{
        overflow: hidden;
    }
    body > *{ 
        visibility: hidden;
    }

    .pc{
        background: url(/img/bgc/bgc.jpg);
        height: 100vh;
        visibility: visible;
        padding: 200px 0;
    }

    .pc h3{
        font-size: 200px;
    }

    .pc p{
        margin-top: 100px;
        font-size: 200px;
    }
}

@media (min-width: 451px) {

    body > *{ 
        display: none;
    }

    body > .pc{ 
        display: block;
    }

    .pc{
        background: url(/img/bgc/bgc.jpg);
        height: 100vh;
        visibility: visible;
        padding: 1% 0;
    }

    .pc h3{
        font-size: 80px;
    }

    .pc p{
        margin-top: 100px;
        font-size: 80px;
    }
}

@media (max-width: 450px) {
    .container{
    max-width: 320px;
    margin: 0 auto;
    }

    .pc{
        display: none;
    }

    .bgc{
        background: url(/img/bgc/bgc.jpg) center center repeat;
        width: 100%;
        height: 100%;
        background-size: contain;
    }

    .header-bgc{
        background: url(/img/bgc/sky.webp) center center no-repeat ;
        width: 100%;
        height: 100%;
        padding: 50px 0;
        position: relative;
    }

    .header-title{
        text-align: left;
    }

    .header-subtitle{
        font-size: 30px;
        text-align: left;
        margin: 30px 0 60px 0;
    }

    .header-sima{
        position: absolute;
        right: 0;
        top: 50px;
        overflow: visible;
    }

    .header-sima--img{
        width: 100%;
        height: 100%;
    }

    .invite{
        margin: 0 auto;
        background-size: contain;
        margin-top: 200px;
        padding: 50px 0;
    }

    .when-bgc{
        background: url(/img/bgc/when.webp) center center no-repeat;
        padding: 150px 0;
        width: 100%;
        height: 100%;
        background-size: contain;
        position: relative;
    }

    .when-bgc::after{
        content: url(/img/icon/Mailn1.svg);
        top: -50px;
        left: 0;
        position: absolute;
    }

    .when-bgc::before{
        content: url(/img/icon/Malin2.svg);
        right: 0;
        bottom: -30px;
        position: absolute;
    }

    .countdown {
        font-size: 40px;
        text-align: center;
        margin-top: 10px;
    }

    .where-bgc{
        background: url(/img/bgc/where.webp) center center no-repeat;
        padding: 90px 0;
        background-size: contain;
        position: relative;
    }

    .where-bgc::after{
        content: url(/img/icon/hr4.svg);
        bottom: -60px;
        right: 0px;
        position: absolute;
    }

    .where-container{
        position: relative;
    }

    .where-title{
        text-align: right;
        position: absolute;
        top: -50px;
        right: 30px;
    }

    .where-place--img{
        width: 100%;
        height: 100%;
    }
    

    .button-link{
        position: absolute;
        bottom: -40px;
        left: 0;
        background-color: var(--color-red);
        padding: 7px 12px;
        display: inline-flex;
        gap: 15px;
        justify-content: center;
        border-radius: 8px;
        font-size: 24px;
    }

    .button-name{
        margin-top: 5px;    
        display: block;
        color: var(--color-white);
    }

    .button-icon{
        display: block;
    }
    
    .timeline{
        margin: 0;
    }
    
    .schedule{
        margin-top: 50px;
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .schedule > div {
        will-change: transform, opacity;
    }

    .schedule-time{
        font-size: 40px;
    }

    .schedule-top{
        display: flex;
        gap: 15px;
        align-items: end;
    }

    .schedule-top--left {
        justify-content: flex-start; 
    }
    
    .schedule-top--right {
        justify-content: flex-end;
    }

    .schedule-text--left{
        text-align: left;
    }

    .schedule-text--right{
        text-align: right;
    }

    .schedule-line-1,
    .schedule-line-2,
    .schedule-line-3{
        position: absolute;
    }

    .schedule-line-1{
        top: 70px;
        right: 80px;
        transform: rotate(20deg);
    }

    .schedule-line-2{
        top: 210px;
        left: 100px;
        transform: rotate(-20deg);
    }

    .schedule-line-3{
        bottom: 130px;
        right: 70px;
        transform: rotate(30deg);
    }

    .transfer-title{
        margin-top: 100px;
        font-size: 45px;
        position: relative;
    }

    .transfer-title::after{
        position: absolute;
        content: '';
        height: 2px;
        width: 40%;
        top: -50px;
        left: 50%;
        transform: translateX(-50%);
        background-color: var(--color-red);
    }

    .dres{
        margin: 0;
    }

    .dres-title{
        text-align: left;
    }

    .dres-subtitle{
        text-align: left;
        margin-bottom: 50px;
    }

    .dres-text{
        font-size: 40px;
        margin: 40px 0;
    }

    .dres-text > span{
        display: inline-block;
        color: var(--color-white);
        font-family: var(--font-vasek);
    }

    .dres-gender {
        text-align: center;
    }

    .dres-tone{
        margin-top: 50px;
        font-size: 42px;
    }

    .gender-colors{
        display: flex;
        align-items: center;
        gap: 10px;
        justify-content: center;
    }

    .girl-colors{
        margin-bottom: 50px;
    }

    .color{
        width: 40px;
        height: 40px;
        border-radius: 100%;
    }

    .girl-color--one{
        background-color: var(--color-girl-one);
    }

    .girl-color--two{
        background-color: var(--color-girl-two);
    }

    .girl-color--three{
        background-color: var(--color-girl-three);
    }

    .girl-color--four{
        background-color: var(--color-girl-four);
    }

    .girl-color--five{
        background-color: var(--color-girl-five);
    }

    .girl-color--six{
        background-color: var(--color-girl-six);
    }

    .girl-color--seven{
        background-color: var(--color-girl-seven);
    }

    .man-color--one{
        background-color: var(--color-man-one);
    }

    .man-color--two{
        background-color: var(--color-man-two);
    }

    .man-color--three{
        background-color: var(--color-man-three);
    }

    .man-color--four{
        background-color: var(--color-man-four);
    }

    .man-color--five{
        background-color: var(--color-man-five);
    }
    
    .wishe-wrap{
        position: relative;
    }

    .wishe-wrap::after{
        content: url(/img/icon/hr1.svg);
        top: -180px; 
        right: 0px;
        position: absolute;
    }

    .wishe-wrap::before{
        content: url(/img/icon/hr2.svg);
        bottom: -140px;
        left: 0;
        position: absolute;
    }

    .wishe-gift{
        font-size: 45px;
        margin: 70px 0 0 0;
        position: relative;
    }

    .group {
        position: relative;
        overflow-x: hidden;
    }

    .group-title {
        margin-bottom: 50px;
    }

    .group-invite,
    .group-share {
        position: relative;
        padding: 30px 0;
        width: 100vw;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }

    .group-invite {
        background: url(/img/bgc/curve-block-1.svg) left center no-repeat;
        background-size: cover;
    }

    .group-share {
        margin-top: 30px;
        background: url(/img/bgc/curve-block-2.svg) right center no-repeat;
        background-size: cover;
    }

    .group-invite .group-invite--text {
        font-size: 35px;
        color: var(--color-white);
        text-align: left;
        margin-left: 0; 
        margin-bottom: 15px;
    }

    .group-share .group-share--text {
        font-size: 35px;
        color: var(--color-white);
        text-align: right;
        margin-right: 0; 
        margin-left: auto; 
    }

    .group-button {
        margin-top: 30px;
        text-align: center;
    }

    .button-invite {
        background-color: var(--color-red);
        padding: 7px 20px;
        display: inline-flex;
        gap: 50px;
        justify-content: center;
        border-radius: 8px;
        font-size: 24px;
        text-decoration: none;
        color: var(--color-white);
    }

    .button-icon {
        width: 23px;
    }
    
    .group-img{
        width: 70%;
        height: 70%;
        display: block;
        margin: 30px auto 0 auto;
    }

    .meeting {
        padding-top: 0;
        margin: 0;
        padding-bottom: 160px;
        position: relative;
    }

    .meeting::after {
        position: absolute;
        content: url(/img/photos/Us.svg);
        right: 0;
        bottom: 0; 
        z-index: 0;
        line-height: 0;
        display: block;
    }

    .meeting-wrap{
        width: 40%;
    }

    .meeting-wrap--text{
        margin: 50px 0 0 0px;
    }

    .meeting-wrap--text h3{
        font-size: 30px;
        text-align: right;
    }

    .meeting-wrap--name{
        margin-bottom: 30px;
        display: block;
        position: relative;
        z-index: 2
        
    }

    .meeting-wrap--date{
        position: relative;
        z-index: 2;
    }
}

/* PRELOADER */
.no-scroll {
    overflow: hidden;
    height: 100vh;
    touch-action: none;
}

#preloader {
    position: fixed;
    inset: 0;
    background: #daccbd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
}

/* Спиннер */
.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0,0,0,0.1);
    border-top: 4px solid var(--color-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.preloader-text {
    font-family: var(--font-vasek);
    font-size: 50px;
    color: var(--color-red);
    text-align: center;
    margin-top: 30px;
    max-width: 320px;
    line-height: 1.3;
    opacity: 0.9;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}