/* Подключение шрифта CzizhBody */

@font-face {
    font-family: 'CZBody';
    src: url(../fonts/CzizhBody.ttf);
}


@font-face {
    font-family: 'CZFeather';
    src: url(../fonts/CzizhFeather.ttf);
}


@font-face {
    font-family: 'CZWing';
    src: url(../fonts/CzizhWing.ttf);
}
/* Подключение шрифта Finlek */

@font-face {
    font-family: 'Finlek Regular';
    src: url(../fonts/Finlek-Regular.ttf);
}

@font-face {
    font-family: 'Finlek';
    src: url(../fonts/Finlek-Regular.ttf);
}


/* Подключение шрифта Kiyosuna */

@font-face {
    font-family: 'KiyB';
    src: url(../fonts/KiyosunaSans-B-1.0.1.woff2);
}

@font-face {
    font-family: 'KiyL';
    src: url(../fonts/KiyosunaSans-L-1.0.1.woff2);
}




/* Основные стили */

body{
    background-color: #FDFFF5;
}
.container{
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
}

.czB{
    font-family: 'CZBody';
}

.finR{
    font-family: 'Finlek Regular';
}
.kL{
    font-family: 'KiyL';
}

/* Главный экран */



.wrapper_main{
    display: flex;
    flex-direction: column;
    align-items: center;

    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.title_invite{
    letter-spacing: 7px;
    font-size: 38px;
    max-width: 850px;
    text-align: center;
    color: #445844;
    position: relative;
}

.title_invite .star-block{
    position: absolute;
    right: 0%;
    top: -65%;
}

.subtitle_invite{
    font-size: 14px;
    width: 95%;
    letter-spacing: 2px;
    line-height: 180%;
    display: flex;
    justify-content: end;
    color: #445844;
   
}
.subtitle_invite h2{
    max-width: 450px;
    text-align: end;
}
.name{
    font-size: 96px;
    width: 100%;
}

.names{    
    display: flex;
    flex-direction: column;
    width: 825px;
    align-items: center;
    position: relative;
    gap: 55px;
}

.main-window{
    max-width: 1440px;
    margin: 0 auto;
    min-height: 810px;
    padding-top: 130px;
}
.left_name{
    width: 120%;
    color: #445844;
}
.right_name{
    display: flex;
    justify-content: end;
    width: 80%;
    color: #445844;
}

.heart_svg{
    position: absolute;
    top: 20%;
}

.red-text{
    color: #E26565;
}

.text-info{
    width: 100%;
    line-height: 150%;
    color: #445844;
    font-size: 22px;
    
}

.text-info p{
    max-width: 455px;
    display: block;
}

.main-pic img{
    max-width: 360px;
    
}

.st-pic{
    position: absolute;
    top: -20%;
    left: 0;
}

.le-pic img{
    max-width: 360px;
}

.le-pic{
    position: absolute;
    right: 0;
    bottom: -5%;
}


/* Календарь */
        .calendar {
            width: 420px;
            max-width: 420px;
            overflow: hidden;
        }
        
        .calendar-header {
            text-align: center;
            margin-bottom: 20px;
            
        }
        .block-calendar{
            position: relative;
        }
        
        .star-block.star_st-block{
            position: absolute;
            top: -15%;
        }

        .star-block.star_le-block{
            position: absolute;
            bottom: -12%;
            right: -10%;
        }

        .star-block.star_rd-block{
            position: absolute;
            right: 0;
        }

        .calendar-header span {
            color: #fff;
            font-size: 24px;
            letter-spacing: 2px;
            font-weight: 500;
        }
        
        .weekdays {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            font-family: 'KiyL'
        }
        
        .weekday {
            text-align: center;
            padding: 15px 5px;
            color: #FDFFF5;
            font-weight: 400;
            font-size: 20px;
            letter-spacing: 1px;
            font-family: 'KiyL'
        }
        
        .calendar-days {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 2px;
            padding: 5px;
        }
        
        .day {
            aspect-ratio: 1/1;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #f0f5f0;
            font-size: 20px;
            font-weight: 400;
            border-radius: 50%;
            transition: all 0.3s ease;
            font-family: 'KiyL'
        }
        .day.today {
            background: #F5F5F5;
            color: #4a5f4a;
            font-weight: 700;
        }
        
        .day.empty {
            visibility: hidden;
        }
        
        .calendar-footer {
            text-align: center;
            padding: 15px;
            color: #d4e0d4;
            font-size: 14px;
            font-weight: 300;
            border-top: 2px solid #8a9d8a;
        }


.calendar-block{
    background: url(../img/svg/bckBlck.svg) repeat-x;
}

.caledar-block_wrapper{
    display: flex;
    justify-content: center;
    gap: 80px;
    
}
.block-date{
    color: #F5F5F5;
}
.block-date .title{
    color: #F5F5F5;
}
.title{
    font-size: 72px;
    color: #445844;
    position: relative;
}

.subtitle_date {
    font-size: 28px;
}

.text-digit{
    font-size: 96px;
    letter-spacing: 6px;
}
.caledar-block_wrapper{
    padding: 137px 0px;
}

.block-date{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.subtitle_date{
    max-width: 420px;
    line-height: 35px;
}

.place-adress_text{
    font-size: 22px;
    color: #445844;
    line-height: 150%;
}
.place-adress_title{
    font-size: 28px;
}

.place-adress .star-block{
    position: absolute;
    top: -120%;
    right: -15%;
}

.place-adress_subtitle{
    display: flex;
    flex-direction: column;

    margin-top: 5px;
}
.button-green{
    background-color: #445844;
    color: #F5F5F5;
    padding: 16px 52px 6px 52px;
    border-radius: 8px;
    font-size: 24px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;

    margin-top: 20px;
}

.place-adress_swiper_wrapper{
    display: flex;
    gap: 40px;
}

.place-adress{
    padding-top: 40px;
}

.place-event{
    margin-top: 80px;
}

.time-event .title{
    text-align: center;
}

.time-event .star-block{
    position: absolute;
    top: -120%;
    right: 10%;
}

.time-info_title{
    font-size: 62px;
    color: #445844;
}

.time-info_subtitle{
    font-size: 36px;
     color: #445844;
}


.all-time_block{
    display: flex;
    justify-content: center;
    margin-top: 80px;
}

.time-half-width{
    max-width: 225px;
    text-align: end;
}

.time-width-450{
    max-width: 450px;
}

.time-width-310{
    max-width: 310px;
}


.time-left_block{
    display: flex;
    flex-direction: column;
    gap: 125px;
    
}

.time-right_block{
    margin-top: 125px;
    display: flex;
    flex-direction: column;
    gap: 110px;
}

.time-right_block .time-info{
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    padding-left: 30px;
}

.time-left_block .time-info{
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    padding-right: 30px;
}

.time-event{
    margin-top: 150px;
    position: relative;
}

.time-event_photo img{
    max-width: 420px;
}

.time-event_photo{
    position: absolute;
    bottom: -22%;
    left: 5%;
}

.dress-code{
    margin-top: 250px;
}

.dress-code .star-block{
    position: absolute;
    right: 25%;
    top: -120%;
}
.dress-code_text{
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.dress-code_text .subtitle{
    max-width: 570px;
    display: flex;
    flex-direction: column;
    font-size: 20px;
    line-height: 30px;
    color: #445844;

}

.dress-code_wrapper{
    display: flex;
    align-items: center;
    gap: 80px;
}

.dress-code_color{
    max-width: 560px;
    width: 100%;
}
.dress-code_color-block{
    display: flex;
    position: relative;
    
}

.block-color:nth-child(2){
    position: absolute;
    left: 20%;
}

.block-color:nth-child(3){
     position: absolute;
     left: 40%;
 
}

.block-color:nth-child(4){
    position: absolute;
    left: 60%;
    
}

.block-color:nth-child(5){
     position: absolute;
     left: 80%;

}


.timer-block{
    background: url(../img/svg/backT.svg) repeat-x;
    margin-top: 80px;
    position: relative;
}

.timer-block .star-block{
   position: absolute;
    left: -15%;
    top: 0%;
}
.timer-block_wrapper{
    max-width: max-content;
    margin: 0 auto;
}
.timer-block_wrapper .title{
    padding-top: 140px;
    max-width: 827px;
    color: #FDFFF5;
    text-align: center;
}

.timer-digit-text{
    color: #F5F5F5;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timer-digit-text .timer-digit{
    font-size: 96px;
    line-height: 60px;
    width: 147px;
    text-align: center;
}


.timer-digit-text .timer-text{
    font-size: 32px;
    text-align: center;
}

.timer-count{
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    padding-bottom: 215px;
}
.timer-block_img{
    position: absolute;
    bottom: 3%;
    right: 0%;
}

.timer-block_img img{
    max-width: 440px;
    
}

.us-wishes{
    margin-top: 80px;
}

.us-wishes .title{
    text-align: end;
}
.us-wishes_block{
    display: flex;
    gap: 20px;
    margin-top: 40px;
    max-width: max-content;
}
.us-wishes_wrapper{
    position: relative;
}
.us-wishes_block:nth-child(3){
    position: relative;
    left: 32%;
    margin-top: 80px;
}

.us-wishes_block:nth-child(4){
    position: relative;
    left: 35%;
    margin-top: 80px;
    margin-bottom: 80px;
}


.us-wishes_block:nth-child(5){
    position: relative;
    left: 20%;
}

.us-wihes_number{
    font-size: 137px;
    color: #445844;
    line-height: 110px;
}

.us-wishes_text{
    color: #445844;
    font-size: 24px;
    max-width: 735px;
    line-height: 145%;
}

.more-width .us-wishes_text{
    max-width: 790px;
}
.us-wishes_img{
    position: absolute;
    top: 30%;
}
.us-wishes_img img{
    max-width: 420px;
}


.guest-profile{
    margin-top: 80px;
}
.guest-profile_wrapper{
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.guest-profile .star-block.star_st-block{
    position: absolute;
    left: 20%;
    top: 0%;
}

.guest-profile .star-block.star_le-block{
    position: absolute;
    right: 0;
    top: 30%;
}

.guest-profile_text{
    font-size: 24px;
    color: #445844;
    text-align: center;
     max-width: 840px;
  
}

.guest-profile_text .czB{
    font-size: 28px;
}


.guest-profile_wrapper .title{
    text-align: center;
}

.button-green.czB{
    padding: 16px 52px 16px 52px;
    font-size: 32px;
}
.guest-profile_img{
    position: absolute;
    bottom: -50%;
    right: -5%;
}
.guest-profile_img img{
    max-width: 450px;
}

.contact{
    margin-top: 200px;
    background: url(../img/svg/backT.svg);
     color: #FDFFF5;
}

.contact_wrapper .title{
    color: #FDFFF5;
}
.contact-info{
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: center;
    font-size: 20px;
    max-width: 900px;
    line-height: 30px;
}
.contact_wrapper{
    display: flex;
    flex-direction: column;
    align-items: center;

    padding-top: 60px;
    padding-bottom: 60px;
}

.number.czB{
    font-size: 72px;
    color: #F5F5F5;
    
}



.contact_name{
    margin-top: 40px;
}







.modal-block_title{
    text-align: center;
    margin-bottom: 40px;
}
.modal-block_title{
    font-size: 54px;
    color: #3A4F4B;
}

.modal-block .button-green{
    font-size: 20px;
}
.input-block_title{
    font-size: 20px;
    margin-bottom: 5px;
    color: #3A4F4B;
}
.input-block input{
    padding: 8px 15px;
    background: none;
    border: 1px solid #3A4F4B;
    border-radius: 8px;
    width: 96.5%;
    font-size: 20px;
}



/* Контейнер для выравнивания */
  .radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: sans-serif;
  }

  /* 1. Скрываем стандартный input */
  .custom-radio-input {
    display: none;
  }

  /* 2. Стилизуем Label (внешний вид кнопки) */
  .custom-radio-label {
    position: relative;
    cursor: pointer;
    padding-left: 35px; /* Место под кружок слева */
    line-height: 24px;
    user-select: none;
    color: #333;
  }

  /* 3. Создаем пустой круг (::before) */
  .custom-radio-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background: none;
    transition: all 0.3s ease;
  }

  

  /* 4. Создаем точку внутри (::after) - скрыта по умолчанию */
  .custom-radio-label::after {
    content: '';
    position: absolute;
    left: 5px; /* Центрируем внутри круга */
    top: 50%;
    transform: translateY(-50%) scale(0); /* scale(0) скрывает точку */
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #3A4F4B; /* Цвет выбранной точки */
    transition: all 0.3s ease;
  }

  /* 5. Состояние HOVER (наведение) */
  .custom-radio-label:hover::before {
    border-color: #3A4F4B;
  }

  /* 6. Состояние CHECKED (выбрано) */
  /* Меняем цвет рамки внешнего круга */
  .custom-radio-input:checked + .custom-radio-label::before {
    border-color: #3A4F4B;
  }

  /* Показываем внутреннюю точку (scale(1)) */
  .custom-radio-input:checked + .custom-radio-label::after {
    transform: translateY(-50%) scale(1);
  }

  .custom-radio-label{
    font-size: 20px;
    color: #3A4F4B;
  }

  .radio-group_title{
    font-size: 20px;
    color: #3A4F4B;
  }

  .radio-group_subtitle{
    font-size: 16px;
    color: #3A4F4B;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }






  .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  /* 1. Скрываем стандартный чекбокс */
  .custom-checkbox-input {
    display: none;
  }

  /* 2. Стилизуем Label */
  .custom-checkbox-label {
    position: relative;
    cursor: pointer;
    padding-left: 35px;
    line-height: 24px;
    user-select: none;
    color: #333;
    font-size: 20px;
  }

  /* 3. Рисуем квадрат (::before) */
  .custom-checkbox-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px; /* Скругленные углы */
    background: none;
    transition: all 0.2s ease;
  }

  /* 4. Рисуем галочку (::after) */
  .custom-checkbox-label::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 40%;
    transform: translateY(-50%) rotate(45deg) scale(0);
    width: 7px;
    height: 14px;
    border: solid #3A4F4B; /* Цвет галочки */
    border-width: 0 2px 2px 0; /* Рисуем только правый и нижний бордер */
    transition: all 0.2s ease;
  }

  /* 5. Ховер эффект */
  .custom-checkbox-label:hover::before {
    border-color: #3A4F4B;
  }

  /* 6. Состояние CHECKED (выбрано) */
  .custom-checkbox-input:checked + .custom-checkbox-label::before {
    background: none; /* Синий фон квадрата */
    border-color: #3A4F4B;
  }

  /* Показываем галочку */
  .custom-checkbox-input:checked + .custom-checkbox-label::after {
    transform: translateY(-50%) rotate(45deg) scale(1);
  }

  .checkbox-group_title{
    font-size: 20px;
    color: #3A4F4B;
  }

  .group-checkbox{
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .group-checkbox_wrapper{
    display: flex;
    gap: 20px;
  }


  .contact-form{
    display: flex;
    flex-direction: column;
    gap: 20px;
  }





  /* Скрываем модалку по умолчанию */
.modal-block {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 18px;
    background: #FDFFF5;
    padding: 40px;
}

/* Показываем модалку когда есть класс show */
.modal-block.show {
    display: block;
    animation: modalAppear 0.3s ease;
}

/* Фон */
.bckground-modal-block {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.bckground-modal-block.show {
    opacity: 1;
    visibility: visible;
}

/* Анимация */
@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Крестик */
.block-closed {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 10;
}



/* Контейнер для контента с прокруткой */
.modal-content-scroll {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
    margin-top: 20px;
    
    /* Стилизация скролла (по желанию) */
    scrollbar-width: thin;
    scrollbar-color: #3A4F4B #FDFFF5;
}

.modal-content-scroll::-webkit-scrollbar {
    width: 6px;
}

.modal-content-scroll::-webkit-scrollbar-track {
    background: #FDFFF5;
}

.modal-content-scroll::-webkit-scrollbar-thumb {
    background-color: #3A4F4B;
    border-radius: 20px;
}


.modal-block_map iframe {
    width: 100%;
    height: 460px;
    max-width: 100%;
    border-radius: 12px;
    
   box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.2);
}

.modal-block .place-adress_text{
    margin-top: 20px;
}

.mobile-block{
    display: none;
}

.bck-envelope{
    min-height: 100vh;
    min-width: 100vw;
    background-size: 100% 100%;
    background: url(../img/pic/bck_env.webp) no-repeat center center/cover;
   

    position: fixed;
    top: 0;
    z-index: 10000;
}

.envelope-block_svg{
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -40%);
}

.envelope-block_svg svg{
    width: 670px;
    height: 670px;
    
}

.envelope-bloc_text{
    font-size: 42px;
    text-align: center;
    max-width: 470px;
    transform: rotate(-24deg);

    position: absolute;
    top: 74%;
    left: 55%;
    transform: translate(-38%, -64%) rotate(-24deg);
    color: #445844;
}

.bck-envelope_info_text {
    color: #FDFFF5;
    font-size: 32px;
    letter-spacing: 20.71px;
    
    /* Центрирование */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 120px; /* отступ от нижнего края, подбери под свой дизайн */

    line-height: 48px;
    
    /* Для текста */
    text-align: center;
}

.confirmed-modal_anketa .modal-block_title{
    margin-bottom: 0;
}