@media screen and (max-width: 1700px) {
 
}

@media screen and (max-width: 1300px) {
 
}

@media screen and (max-width: 800px) {

}
@font-face {
  font-family: 'Madelyn';
  src:  url(../../fonts/MADELYN.OTF.html);
       font-style: normal;
       font-weight: normal;
}
#promise {
    /*--primary-color: #333;
    --secondary-color: #eee;*/
    --background-color: #EFECE0;
    --header-color: #921A21;
    --text-color: #615D5A;
    --main-font: 'EB Garamond', sans-serif; /* Основной шрифт */
    --beauty-font: 'Madelyn', sans-serif; /* Шрифт для заголовков */
    --secondary-font: 'Hagin', sans-serif; /* Второй шрифт */
}


#promise{
    font-family: var(--main-font);
    font-size: 24px;
    line-height: 120%;
    color: var(--text-color);
        background: var(--background-color);
            overflow: hidden;
}
#promise p{
        margin: 0;
}
 #promise .title_text{
    font-family: var(--beauty-font);
    font-size: 64px;
    line-height: 120%;
    color: var(--header-color);
}
 #promise .text-dark{
    color: var(--header-color);
}
 #promise .descr_text{
    font-family: var(--main-font);
    font-size: 24px;
    line-height: 120%;
    color: var(--text-color);
}
 #promise .text_light{
     color: var(--background-color);
}
#promise .text_dark{
    color: var(--header-color);
}
#promise .header-block-img{
        width: 15%;
    max-width: 60px;
    margin: 0 auto;
}
#promise .header-blocks{
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 5%;
    gap: 70px;
}
#promise  #playButton{
    cursor: pointer;
    width: 12%;
    margin: auto;
    max-width: 70px;
}

#promise .header-block.text_dark{
    font-size: 62px;
   font-family: var(--beauty-font);
}
#promise .header-big{
    font-size: 20px;
    text-transform: uppercase;
    padding-top: 20px;
}
#promise .scallop{
    height: 50px;
    background: radial-gradient(circle at 25px 50px, transparent 24px, var(--background-color) 25px);
    background-size: 50px 50px;
    background-repeat: repeat-x;
    background-position: center top;
    background-color: var(--header-color);
       margin-top: -4px;
     margin-bottom: -2px; 
}
#promise .scallop-bottom{
    height: 50px;
    background: radial-gradient(circle at 25px 50px, transparent 24px, var(--background-color) 25px);
    background-size: 50px 50px;
    background-repeat: repeat-x;
    background-position: center top;
    background-color: var(--header-color);
    margin-top: 0px;
        transform: rotate(180deg);
          margin-top: -2px; 
}
#promise .section-dark{
    background: var(--header-color);
    color: var(--background-color);
        margin-top: -2px;
    position: relative;
    z-index: 2;
}
#promise .section-dark .descr_text{
    color: var(--background-color);
}
#promise .section-dark-inside{
    width: 90%;
    max-width: 800px;
    margin: auto;
    padding: 70px 0;
}
#promise .info-invitation{
    display: flex;
    gap: 30px;
    flex-direction: column;
}
#promise .welcome_title_text{
    font-family: var(--beauty-font);
    font-size: 64px;
    line-height: 100%;
}
#promise #welcome-text{
    width: 80%;
    margin: auto;
}
#promise #welcome-date{
        font-family: var(--beauty-font);
    font-size: 72px;
    line-height: 100%;
    padding-top: 20px;
}
#promise  .img-bottom{
          width: 35%;
    margin: auto;
    max-width: 150px;
    padding-top: 50px;
}
#promise  .dresscode_man, #promise .dresscode_woman{
    padding-top: 50px;
}
#promise  .dresscode__colors {
        padding-top: 50px;
}
#promise  .img-top{
            width: 50%;
    margin: auto;
    max-width: 200px;
    padding-bottom: 30px;
}
 #promise .info-date,  #promise #plan{
   margin: 30px 0;
}
#promise #registration-title, #promise #banquet-title{
        font-family: var(--beauty-font);
    color: var(--header-color);
    font-size: 42px;
        line-height: 80%;
    padding-bottom: 15px;
}
#promise #place-two{
    padding-top: 50px;
}
#promise #registration-time, #promise #banquet-time{
    color: var(--header-color);
    font-size: 120%;
    padding-top: 15px;
}
#promise .info-date__place, #promise  #dresscode, #promise  .question, #promise  .counter{
        width: 100%;
    margin: auto;
    max-width: 800px;
    padding: 30px 5%;
}
#promise .rsvp__button{
    background: none;
    text-transform: uppercase;
    font-size: 18px;
    padding: 15px 20px 10px;
    min-width: 200px;
    margin: 10px 0;
    /* width: 100%; */
    border: 1px dashed var(--header-color);
    color: var(--header-color);
    border-radius: 20px;
    line-height: 100%;
}
#promise .info-date__place .rsvp__button{
        margin-top: 20px;
}
 #promise .section-dark .title_text{
            color: var(--background-color);
    }
    #promise .frame-red{
        border-radius: 30px;
    background: var(--header-color);
    padding: 20px;
    margin: 50px auto 30px;
    }
     #promise .frame-red img{
        border-radius: 20px;
     }
    #promise  .details-block .separator-image{
            margin: auto;
    width: 10%;
    max-width: 30px;
    padding: 20px 0;
    }
    #promise #linkblock_btn_text{
            border: 1px dashed var(--background-color);
    color: var(--background-color);
    display: inline-block;
    }
    #promise  .timer__number{
        height: 90px;
    width: 90px;
    background: var(--header-color);
    border-radius: 100%;
    border: 20px solid #b7585d;
    }
    #promise  .timer__number span{
        line-height: 50px;
    color: var(--background-color);
    font-size: 20px;
    font-family: var(--main-font);
    }
    #promise  .timer-title {
            font-family: var(--main-font);
    font-size: 28px;
    text-transform: uppercase;
    padding-bottom: 20px;
    }
     #promise  #clockdiv{
        display: flex;
    width: 90%;
    margin: auto;
    align-items: center;
    justify-content: center;
        gap: 5px;
    }
     #promise .names-footer-block{
       max-width: 400px;
    width: 80%;

    flex-wrap: wrap;
    display: flex;
    flex-direction: column;
    margin: auto;
    }
    



     #promise #question{
      display: flex
;
    text-align: left;
    flex-direction: column;
    width: 90%;
    margin: auto;
}
 #promise .question__label {
    display: flex
;
    align-items: center;
    gap: 5px;
}
 #promise .question__string{
    margin-bottom: 10px;
}
 #promise .question__label{
        margin-bottom: 0px;
}
 #promise  .question__unvisible {
    display: none;
}
 #promise .question__visible-radio {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
   
    vertical-align: middle;
    box-sizing: border-box;
    border: 1px solid var(--text-color);
    border-radius: 50%;
}
 #promise .question__unvisible:checked + .question__visible-radio::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-color: var(--header-color);
    border-radius: 50%;
}
 #promise .question__visible-checkbox {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
   
    vertical-align: middle;
    box-sizing: border-box;
    border: 1px solid var(--text-color);
}
 #promise .question__unvisible:checked + .question__visible-checkbox::before {
    content: "✔";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: var(--header-color);
}
 #promise .question__string input[type="text"]{
    border: 0;
 background-color: var(--background-color);
    border-bottom: 1px solid var(--text-color);
    border-radius: 0;
    font-size: 14px;
    text-transform: uppercase;
    padding: 5px 0 !important;
}
#promise  #questions{
        padding: 30px 0;
}
#promise .question__text-mini{
        font-size: 80%;
    padding: 10px 0 20px;
}
#promise  #questions .button-container{
        margin: auto;
    display: flex;
    flex-direction: column;
}
#promise .timetable__block-stroke{
        display: flex;
    flex-direction: row;
    align-items: flex-end;
}
#promise .timetable__block {
        display: flex;
    gap: 30px;
    flex-direction: column;
}
#promise .timetable__text{
    width: 60%;
    text-align: left;
    display: flex;
    gap: 10px;
    flex-direction: column;
}
#promise .timetable__block-time{
    font-size: 180%;
}
#promise .timetable__block-name{
    text-transform: uppercase;
}
#promise .timetable__block-img{
           width: 100px;
    transform: scaleX(-1);
}
#promise .timetable__block-empty{
            width: calc(40% - 102px);
}
#promise .timetable__block-stroke--right{
flex-direction: row-reverse;
}
#promise .timetable__block-descr{
    font-size: 80%;
    line-height: 100%;
    padding-bottom: 30px;
}
#promise .timetable__block-stroke--right .timetable__text{

    text-align: right;

}
#promise .timetable__block-stroke--right .timetable__block-img{
        transform: scaleX(1);
}
@media screen and (max-width: 1700px) {
 
}

@media screen and (max-width: 1300px) {
 
}

@media screen and (max-width: 800px) {
#promise{
    font-size: 20px;
    line-height: 120%;
}
#promise .title_text{
    font-size: 64px;
    line-height: 130%;
}
#promise .descr_text{
    font-size: 20px;
}
 #promise .text_light{
     color: var(--background-color);
}
#promise .text_dark{
    color: var(--header-color);
}
#promise .header-big{
    font-size: 20px;
    padding-top: 20px;
}
#promise .section-dark .descr_text {
    color: var(--background-color);
}
    #promise .section-dark .title_text{
            color: var(--background-color);
    }
    #promise  .timer-title {
    font-size: 28px;
    }
}


/* Стили для галереи Dress Code */
#promise .gallery-container {
    position: relative;
    width: 100%;
    max-width: 900px; /* Ограничение ширины */
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

#promise .gallery-track {
    display: flex;
    gap: 15px; /* Расстояние между фото */
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    width: 90%;
    
    /* Скрытие скроллбара для красоты */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

#promise .gallery-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

#promise .gallery-item {
    flex: 0 0 auto;
    /* Высота картинок. На мобильных можно меньше, на ПК больше */
    height: 400px; 
    width: auto;
    border-radius: 4px; /* Легкое скругление, если нужно */
    transition: transform 0.3s ease;
}
#promise .gallery-item:hover {
    transform: scale(1.02);
}

#promise .gallery-btn {
    background: transparent;
    border: none;
    color: var(--header-color); /* Ваш красный цвет */
    font-size: 40px;
    cursor: pointer;
    padding: 0 10px;
    z-index: 10;
    transition: opacity 0.3s, transform 0.2s;
    font-family: var(--main-font); /* Основной шрифт */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

#promise .gallery-btn:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

#promise .gallery-btn:active {
    transform: scale(0.9);
}

/* Адаптивность */
@media screen and (max-width: 800px) {
   #promise .gallery-item {
        height: 300px; /* Уменьшаем высоту на планшетах */
    }
    #promise .gallery-btn {
        font-size: 30px;
        padding: 0 5px;
    }
}

@media screen and (max-width: 500px) {
   #promise .gallery-container {
        width: 100%;
    }
    #soul .gallery-track {
        width: 100%;
        padding: 0 15px; /* Отступы по краям */
    }
   #promise .gallery-item {
        height: 250px; /* Уменьшаем высоту на телефонах */
    }
    /* На мобильных часто удобнее свайпать пальцем, стрелки можно скрыть или оставить маленькими */
    #promise .gallery-btn {
       display: none; 
    }
}

 #promise  .details{
        position: relative;
    z-index: 0;
    margin-top: -4px;
}
 #promise  .question_descr_text {
        width: 98%;
    margin: auto;
    max-width: 600px;
}
 #promise .dresscode{
    position: relative;
    z-index: 2;
    background: var(--background-color);
}
 #promise  .question{
        background: var(--background-color);
    position: relative;
    z-index: 2;
    margin-top: -2px;
}
#promise .footer {
        position: relative;
    z-index: 0;
    margin-top: -4px;
}
#promise  .counter{
    background: var(--background-color);
    position: relative;
    z-index: 2;
}
#promise  #place{
    position: relative;
    z-index: 2;
    background: var(--background-color);
    margin-top: -4px;
    padding-top: 60px;
}
#promise .info-date{
    position: relative;
    z-index: 0;
        padding-bottom: 0px;
        margin-bottom: 0px;
}