body, html{
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%; 
    
    padding-bottom: 100px;
}

.title{
font-family: MingLiU_HKSCS-ExtB;
font-weight: 400;
line-height: 100%;
font-size: 256px;
letter-spacing: 0%;
text-transform: uppercase;
color: #FFFFFFB2;
  width: fit-content;



}


.item__time{
    font-family: MingLiU_HKSCS-ExtB;
font-weight: 400;
}

.main-section{
    width: 100%;
    height: 100vh;
    position: relative;
    background-image: url('img/main.jpg');
    background-size: 100% auto;
    background-position: 100% 16%;
    background-repeat: no-repeat;
    

}

.bg__mask{
    position: absolute;
    width: 100%;
    height: 100%;
   background: linear-gradient(180deg, rgba(0, 0, 0, 0) 65.8%, #211509 95.65%);

}


.main__subtitles{
    position: absolute;
    bottom: 120px;
    right: 67px;
    transform: translateY(-50%);
    text-align: center;
    font-family: MingLiU_HKSCS-ExtB;
    font-weight: 400;
    color: #FFFFFF;
}

.data{
    font-size: 32px;
}

.names{
    font-size: 64px;
    text-transform: uppercase;
}


.timeline__content{
    font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-style: normal;
  color: #FFFFFF;
 
  margin-top: 116px;


}

.timeline__title{
    font-size: 96px;
    font-weight: 400;
}

.timeline__subtitle{
    font-size: 40px;
    max-width: 595px;
    text-align: center;
}

.dear{
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 614px;
}

.adress__title{
    font-size: 64px;
}

.adress__content{
    margin-top: 55px;
    font-size: 48px;
}

.timeline__adress{
    margin-top: 250px;
    text-align: left;
}

.timeline{
    display: flex;
    margin-left: 235px;
    font-family: "Great Vibes", cursive;
    color: #000;
    margin-top: 155px;
}

.timeline-section{
    display: flex;
    position: relative;   /* обязательно */
    background-color:#211509;
    background-image: url('img/ringslast.JPG');
    justify-content: center;
    padding-bottom: 278px;
    background-size: 245%;
    background-position-x: 38%;
    background-position-y: 55%;


}

.timeline__darkmask{

    position: absolute;
    inset: 0;              /* вместо width/height */
    background: linear-gradient(180deg, #211509 18%, #b1896600 24.53%), linear-gradient(1deg, #211509 15%, #b1896600 30.53%);
    
    z-index: 1;   /* ниже контента */

}

.timeline__content,
.timeline{
    position: relative;
    z-index: 2;
}

.line{
    height: 614px;
    background-color: #fff;
    width: 1px;
}

.timline__info{
    width: 556px;   
    
}

.item__info{
    font-size: 64px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.item__line{
    width: 50px;
    height: 1px;
    background-color: #fff;
}

.time__item{
    display: flex;
 
    align-items: center;
    justify-content: space-between;
}

.undertime__next{
    margin-top: 111px;

}

.dresscode-section{
    background-color: #ccc;
    display: flex;
    width: 100%;
    padding-bottom: 100px;
    padding-top: 10px;
    position: relative;
    flex-direction: column;
}

.form-section{
  background-color: #211509;
  display: flex;
  width: 100%;
  justify-content: center;
  padding-top: 100px;
   font-family:  'Great Vibes', cursive;

}

.form__container fieldset{
    display: flex;
    flex-direction: column;
    border: none;
}

.form__container{
    display: flex;
    justify-content: space-between;
   
    width: 1400px;
    
}

.qr__section{
    background-color:#211509;
    width: 100%;
    padding: 50px 0px;
}

.qr__img{
    max-width: 500px;
    
    margin-top: 80px;
    display: flex;
    margin-left: auto;
    margin-right: auto;
    border-radius: 20px;
}

@media (max-width: 530px) {
    .qr__img{
        max-width: 80%;
    }
}

.dresscode-section__bg{
     position: absolute;
     top: 0;

    width: 100%;
    height: 101%;
   background: linear-gradient(180deg, rgba(0, 0, 0, 0) 82.8%, #211509 99.65%), linear-gradient(0deg, rgba(0, 0, 0, 0) 82.8%, #211509 99.65%);


}

.dresscode__title{
     font-family: MingLiU_HKSCS-ExtB;
     font-weight: 400;
     font-size: 128px;
     text-align: center;
     margin-top: 100px;
     text-transform: uppercase;
     
}

.dresscode__parts{
    display: flex;
    justify-content: space-between;
    width: 1400px;
    margin: 0 auto;
    margin-top: 50px;

}

.dresscode__subtitle{
    text-align: center;
    max-width: 547px;
    font-size: 40px;
   
    font-family: "Great Vibes", cursive;
    color: #1B1A1A;
}

.count__items{
    font-family: "Great Vibes", cursive;
}

.calendar__subtitle{
     text-align: center;
    max-width: 547px;
    font-size: 40px;
    margin-top: 50px;
    font-family: "Great Vibes", cursive;
    color: #1B1A1A;
}

.dresscode__dresscode{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dresscode__calendar{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dresscode__img img{
    max-width: 546px;
    max-height: 546px;
    
}
.dresscode__img {
    margin-top: 50px;
}

.dresscode__colors img{
    width: 100%;
    height: 100%;

}

.dresscode__colors{
    margin-top: 45px;
    width: 100%;
    height: 100%;

    max-width: 400px;
    max-height: 250px;
}

.form__title{
    font-family: MingLiU_HKSCS-ExtB;
    font-weight: 400;
    font-size: 128px;
    text-align: center;
    color: #ffffff;
    text-transform: uppercase;
}

.qr__title{
    font-family: "Great Vibes", cursive;
    font-weight: 400;
    font-size: 50px;
    text-align: center;
    color: #ffffff;
   
}

.rsvp__section{
    color: #fff;
}

.rsvp__input {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #8C8A8A;
    background: transparent;
    cursor: pointer;
    position: relative;
}

/* КРУГ для radio */
.rsvp__input--radio {
    border-radius: 50%;
}

/* КВАДРАТ для checkbox */
.rsvp__input--checkbox {

}

/* Когда выбран */
.rsvp__input:checked::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Для radio делаем кружок внутри */
.rsvp__input--radio:checked::after {
    border-radius: 50%;
}


.form__main{
     font-family: "Great Vibes", cursive;
     color: #fff;
    
}

.form__subtitle{
    
    font-size: 48px;
    font-weight: 400;
    margin-top: 50px;
    text-align: center;
    width: fit-content;
}

.form__subtitle__two{
    margin-top: 40px;
    font-size: 40px;
    font-weight: 400;
}

.form__underline{
    height: 1px;
    width: 400px;
    background-color: #8C8A8A;
    margin-top: 60px;
}

.name__text{
    background-color: transparent;
    width: 400px;
    border: none;
    margin-top: 40px;
    border-bottom: 1px solid #8C8A8A;
    color: #fff;
}

.rsvp__form{
     margin-top: 40px;
}

.rsvp__title{
    font-size: 40px;
    font-weight: 400;
    margin-bottom: 24px;
}

.rsvp__label-text{
    font-size: 32px;
    margin-left: 15px;

}

.rsvp__title__first{
    margin-top: 40px;
}

.rsvp__text{
    text-align: center;
    display: flex;
    margin: 50px auto;
    width: fit-content;
    font-size: 40px;
}

.rsvp__title__scnd{
    margin-top: 30px;
}

.rsvp__button{
    display: flex;
    margin: 50px auto;
    width: 350px;
    height: 100px;
    background-color: #fff;
    color: #000;
    text-align: center;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    font-family: "Great Vibes", cursive;
}

.form__counter{
    width: 659px;
    height: 1269px;
    display: flex;
    background: url('./img/hugs.jpg');
    background-size: cover;
    margin-top: 200px;
    position: relative;
    background-size: 259%;
    background-position: center;
    background-position-x: 56%;
    background-position-y: 42%;
}

.form__counter__mask {
    position: absolute;
    width: 100%;
    height: 100%;
   background: linear-gradient(180deg, rgba(0, 0, 0, 0) 61.14%,#211509 74.74%), linear-gradient(360deg, rgba(0, 0, 0, 0) 78.38%, #211509 96.49%);
}

.counter__info__container{
    width: 100%;
    height: 93%;
    display: flex;
    position: relative;
    justify-content: center;
}


.counter__title{
    font-size: 80px;
    font-family: "Great Vibes", cursive;
    color: rgba(255, 255, 255, 1);
}

.counter__info{
    display: flex;
    flex-direction: column;
   
    position: absolute;
    bottom: 0%;
    color: rgba(255, 255, 255, 1);
    justify-content: center;
    text-align: center;

   
}

.count__items{
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-top: 29px;
    
}

.count__item{
    display: flex;
    flex-direction: column;
    justify-content: center;
     
}

.item__title{
    
    
    font-style: normal;
    font-size: 48px;
}

.item__subtitle{
    margin-top: 23px;
    font-size: 32px;
    color: rgba(205, 196, 196, 0.8);
}

.count__line{
    background-color: rgba(255, 255, 255, 0.5);
    height: 150px;
    width: 1px;
}

.arrow{
    display: none;
    margin: 0 auto;
}

.timeline__titlemob{
    display: none;
}

.dresscode__titlemob{
    display: none;
}

@media (max-width: 1450px) {
    .dresscode__parts{
        width: 90%;
    }
}



@media (max-width: 1240px) {
.line {
    height: 492.5px;
}

    .title{
        font-size: 94px;
        margin: 0px auto;
        padding-top: 10px;
    }

    .main__subtitles{
        right: 0;
        left: 0;
        bottom: 0px;
    }

    .data{
        font-size: 30px;
    }

    .names{
        font-size: 48px;
    }

    .arrow{
    display: flex;
    margin: 0 auto;
}

.bg__mask{
    background:linear-gradient(180deg, rgba(0, 0, 0, 0) 65.8%, #211509 95.65%);
}

.timeline-section{
    flex-direction: column;
    padding-bottom: 10px;
}

.timeline{
margin: 25px auto;
}

.dear {
    margin: 0 auto;
}

.timeline__title{
    font-size: 40px;
}

.timeline__subtitle{
    font-size: 36px;
    margin-top: 3px;
}

.timeline__adress{
    margin: 250px auto 67px auto;
    text-align: center;
}

.adress__title{
    font-size: 40px;
}

.adress__content{
    font-size: 43px;
    margin-top: 22px;
}

.timeline__darkmask{
    background: linear-gradient(180deg, #211509 18%, #b1896600 24.53%), linear-gradient(1deg, #211509 58%, #b1896600 66.53%);
}

.timeline-section {
  display: flex;
        position: relative;
        background-color: #211509;
         background-image: url('img/ringslast.JPG');
        justify-content: center;
        padding-bottom: 0px;
        background-size: 1540px;
        background-position-x: -527px;
        background-position-y: -90px;
        background-repeat: no-repeat;
}

.timline__info{ 
    width: unset;

}

.item__time{
    font-size: 48px;

}

.undertime{
    font-size: 40px;
}

.rings{
    display: flex;
}

.timeline__titlemob{
    display: flex;
    margin: 0 auto;
    z-index: 1;

    font-family: MingLiU_HKSCS-ExtB;
font-weight: 400;

font-size: 64px;
color: #fff;
text-transform: uppercase;

}

.dresscode__parts{
    flex-direction: column;
    width: unset;
}

.dresscode__calendar{
    order: 1;
}

.dresscode__dresscode{
    order: 2;
}
.calendar__subtitle{
    order: 1;
    max-width: 397px;
    font-size: 39px;
}

.dresscode__colors{
    width: 198px;
    order: 1;
}
.dresscode__img{
    width: 244px;
    order: 2;
}

.dresscode__img img{
    width: 100%;
}

.calendar__img{
    order: 2;
    margin-top: 10px;
    max-width: 278px;
}

.calendar__img img{
    max-width: 100%;
}

.dresscode__title{
    display: none;
}

.dresscode-section{
    background-color: #fff;
}

.dresscode-section__bg {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 92.8%, #211509 99.65%), linear-gradient(0deg, rgba(0, 0, 0, 0) 96.8%, #211509 98.65%);
}

.dresscode__titlemob{
    display: flex;
    margin: 0 auto;
    font-family: MingLiU_HKSCS-ExtB;
font-weight: 400;

font-size: 64px;
margin-top: 81px;
text-transform: uppercase;

}

.dresscode__subtitle{
    font-size: 39px;
    margin-top: 19px;
   
}

.form__container{
    flex-direction: column;
}

.form__title{
    font-size: 64px;
}

.form__subtitle{
    font-size: 36px;
    margin: 14px auto;
}

.form__subtitle__two{
    font-size: 36px;
}

.name__text{
    width: 179px;
    margin-left: 16px;
}

.rsvp__title{
    font-size: 36px;
}

.rsvp__title__first{
    font-size: 36px;
}

.rsvp__label-text{
    font-size: 38px;
}

.rsvp__text{
    font-size: 36px;
}

.rsvp__button{
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 1);
    font-size: 48px;
    color: #fff;
    width: 235px;
    height: 68px;
}

.counter__title{
    font-size: 45px;

}

.item__title{
    font-size: 24px;
}

.item__subtitle{
    font-size: 16px;
}

.form__counter {
    width: 100%;
    margin-top: 0;
}

.main-section{
    max-height: 542px;
}
}

.rings{
    display: none;
    
}

.rsvp__section{
    margin-top: 40px;
}


@media (max-width: 400px) {
    .title{
        font-size: 60px;
        
    }
    
        .main-section {
        max-height: 452px;
    }
        .bg__mask {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 41.8%, #211509 75.65%);
    }
        .main__subtitles {
        right: 0;
        left: 0;
        bottom: -52px;
    }
}

@media (max-width: 280px) {
    .title{
        font-size: 50px;
    }
    
     
        .bg__mask {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 41.8%, #211509 75.65%);
    }
        .main__subtitles {
        right: 0;
        left: 0;
        bottom: -52px;
    }
}




