/* Общие стили */
@font-face {
    font-family: CormorantInfant-Light;
    src: url(./CormorantInfant-Light.woff);
}
@font-face {
    font-family: 'Cooltura';
    src: url("Cooltura.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
    font-display: auto
}

@font-face {
    font-family: 'Bardo';
    src: url("./Bardo.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
    font-display: auto
}

@font-face {
    font-family: 'WonderGardene';
    src: url("WonderGardene.woff") format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: auto
}

@font-face {
    font-family: 'Storytella';
    src: url("Storytella.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
    font-display: auto
}

.together-forever {
    font-family: CormorantInfant-Light;
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 300;
    z-index: 1;
    position: relative;
    top: -100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff9f9;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

section {
    padding: 80px 0;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Первый блок */
.hero-section {
    background: linear-gradient(rgba(255, 245, 245, 0.8), rgba(255, 245, 245, 0.8)), url('');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 150px 0;
    color: #5a3e36;
}

.bearimg{
    z-index: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -270px;
}
.bearimg>img{
    width: 1100px;
    filter: blur(1px) opacity(1);
}
.flowersimg{
    z-index: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.flowersimg>img{
    width: 760px;
    filter: blur(1px) opacity(1);
}


.couple-names {
    font-family: Bardo !important;
    font-size: 3.5rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
    z-index: 1;
    position: relative;
    top: -75px;
}

.flex-column{
    display: flex;
    flex-direction: column;
}



.countdown {
    /*font-size: 1.8rem;*/
    font-family: CormorantInfant-Light;
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 1;
    position: relative;
    top: -41px;
}

.countdown div {
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
}

/* Второй блок */
.invitation-section {
    background-color: #f9f0f0;
    z-index: 1;
    background: linear-gradient(rgba(255, 245, 245, 0.8), rgba(249, 240, 240, 0.8));
}

.invitation-section .container{
    margin-top: 82px;
}

.invitation-content {
    display: flex;
    align-items: center;
    gap: 102px;
    background-color: rgba(36, 27, 22, 0.92);
    flex-direction: column;
    flex-wrap: nowrap;
    width: 700px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding: 80px 100px;
}

.invitation-text {
    flex: 1;
    color: #fff;
    text-align: center;
}

.invitation-text h2 {
    font-family: Storytella;
    font-size: 3rem;
    margin-bottom: 100px;
    color: #fff;
    width: 50%;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 500;
}
.invitation-text h3 {
    font-family: Storytella;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #fff;
    font-weight: 500;
}

.invitation-text p {
    font-family: CormorantInfant-Light;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.couple-photos {
    flex: 1;
}

.couple-photos img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Третий блок */
.menu-section {
    background-color: #f9f0f0;
}

.menu-section h2 {
    font-family: Storytella;
    font-weight: 500;
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 30px;
    color: #5a3e36;
}

.menu-section p {
    font-family: CormorantInfant-Light;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    font-family: Cooltura;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: Cooltura;
    font-weight: bolder;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    flex-direction: column;

}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

textarea.alcohol {
    width: 340px;
    height: 200px;
    max-width: 340px;
    max-height: 200px;
    min-width: 340px;
    min-height: 200px;
    resize: none;
    font-family: Cooltura;
    font-size: 1.2rem;
    padding: 10px;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #d4a59a;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #c08b7e;
}

/* Четвертый блок */
.location-section {
    background-color: #fff;
}

.location-section h2 {
    font-weight: 500;
    font-family: Storytella;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 30px;
    color: #5a3e36;
}

.address {
    font-family: CormorantInfant-Light;
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Обновленные медиа-запросы для адаптивности */
@media (max-width: 768px) {
    .couple-names {
        font-size: 2.5rem;
        top: -50px;
        width: 50%;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }
    .countdown div {
        display: flex;
        flex-direction: column-reverse;
        padding: unset;
        background-color: unset;
        border-radius: unset ;

    }
    .countdown {
        font-size: 1rem;
        top: -111px;
    }
    .hero-section {
        padding: 120px 0 80px;
    }

    .bearimg {
        top: -88px;
    }

    .bearimg>img, .flowersimg>img {
        width: 97vw;
    }

    .couple-names {
        font-size: calc(90vw / 8);
        top: -114px;
        width: fit-content;
    }

    .together-forever {
        font-size: 1.3rem;
        top: -90px;
        margin-bottom: 20px;
    }

    .countdown {
        top: calc(-100vw + 99vw);
        font-size: 1.1rem;
        flex-wrap: wrap;
        gap: 10px;
    }

    .invitation-section .container {
        margin-top: 40px;
    }

    .invitation-content {
        width: 90%;
        padding: 40px 20px;
        gap: 40px;
    }

    .invitation-text h2 {
        font-size: 2rem;
        margin-bottom: 40px;
        width: 100%;
    }

    .invitation-text h3 {
        font-size: 1.5rem;
    }

    .invitation-text p {
        font-size: 1.1rem;
    }

    .menu-section h2 {
        font-size: 2.5rem;
    }

    .location-section h2 {
        font-size: 2.5rem;
    }

    textarea.alcohol {
        width: 100%;
        min-width: unset;
        max-width: 100%;
    }
}

@media (max-width: 630px) and (min-width:548px) {
    .bearimg {
        top: -19px;
    }

    .bearimg>img, .flowersimg>img {
        width: 97vw;
    }

    .together-forever {
        font-size: 1.3rem;
        top: -77px;
        margin-bottom: 20px;
    }
}

@media (max-width: 547px) and (min-width:481px) {
    .bearimg {
        top: 44px;
    }

    .bearimg>img, .flowersimg>img {
        width: 97vw;
    }
}

@media (max-width: 480px) and (min-width:440px) {
    .couple-names {
        font-size: 2rem;
        top: -40px;
    }

    .together-forever {
        font-size: 1.1rem;
        top: -80px;
    }

    .countdown {
        top: calc(-100vw + 116vw);
        font-size: 1rem;
    }

    .invitation-content {
        width: 95%;
        padding: 30px 15px;
    }

    .invitation-text h2 {
        font-size: 1.8rem;
    }

    .bearimg {
        top: -36px;
    }

    .bearimg>img, .flowersimg>img {
        width: 97vw;
    }

    .menu-section h2,
    .location-section h2 {
        font-size: 2rem;
    }

    .form-group label,
    .menu-section p,
    .address {
        font-size: 1rem;
    }

    .radio-group label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px){
    .bearimg {
        top:162px;
    }

    .bearimg>img, .flowersimg>img {
        width: 97vw;
    }
}

.alert-success{
    display: flex;
    position: absolute;
    width: 100vw;
    /* transform: translate(-50%, -50%); */
    z-index: 10000;
    height: 100vh;
    background: #fff6f6;
}

.alert-success>.text{
    position: relative;
    display: flex;
    text-align: center;
    left: 50%;
    transform: translateX(-51%);
    top: 41%;
    font-family: 'Cooltura';
}
.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease; /* Плавное изменение opacity за 0.5 секунд */
}