/* ==================================================
   RESET
================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: #f7f0e6;
    color: #4b3628;

    font-family: Georgia, "Times New Roman", serif;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* ==================================================
   INTRO VIDEO
================================================== */

#intro {
    position: fixed;
    inset: 0;

    z-index: 1000;

    width: 100%;
    height: 100vh;

    background: #000;

    overflow: hidden;

    opacity: 1;
    visibility: visible;

    transition:
        opacity 0.7s ease,
        visibility 0.7s ease;
}

#intro.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#intro video {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* ==================================================
   SKIP BUTTON
================================================== */

#skip {
    position: absolute;

    right: 20px;
    bottom: 25px;

    z-index: 5;

    padding: 11px 18px;

    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 30px;

    background: rgba(30, 20, 15, 0.35);

    color: #fff;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;

    letter-spacing: 1px;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

#skip:hover {
    background: rgba(30, 20, 15, 0.7);
}

#skip:active {
    transform: scale(0.97);
}


/* ==================================================
   LANGUAGE CHOICE
================================================== */

.language-choice {
    position: fixed;
    inset: 0;

    z-index: 900;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 25px;

    background: #f7f0e6;

    text-align: center;
}

.language-choice.show {
    display: flex;
}

.language-box {
    width: 100%;
    max-width: 360px;
}

.language-heading {
    margin: 0 0 28px;

    color: #633c2b;

    font-size: 23px;
    font-weight: normal;

    letter-spacing: 1px;
}

.language-buttons {
    display: flex;

    justify-content: center;

    gap: 14px;
}

.language-buttons button {
    min-width: 145px;

    padding: 13px 20px;

    border: 1px solid #b89a5a;
    border-radius: 30px;

    background: transparent;

    color: #633c2b;

    font-size: 12px;

    letter-spacing: 1.5px;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.language-buttons button:hover {
    background: #b89a5a;
    color: #fff;
}


/* ==================================================
   MUSIC BUTTON
================================================== */

.music-button {
    position: fixed;

    right: 18px;
    bottom: 18px;

    z-index: 500;

    display: none;

    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    padding: 0;

    border: 1px solid rgba(184, 154, 90, 0.75);
    border-radius: 50%;

    background: rgba(247, 240, 230, 0.95);

    color: #633c2b;

    font-size: 22px;

    cursor: pointer;

    box-shadow:
        0 3px 14px rgba(50, 30, 15, 0.12);
}

.music-button.show {
    display: flex;
}


/* ==================================================
   MAIN SITE
================================================== */

#site {
    display: none;

    width: 100%;
    margin: 0;
    padding: 0;
}

#site.show {
    display: block;
}


/* ==================================================
   LANGUAGE PAGES
================================================== */

.language-page {
    display: none;

    width: 100%;
}

.language-page.active {
    display: block;
}


/* ==================================================
   PHOTOS
================================================== */

.photo-section {
    position: relative;

    width: 100%;

    margin: 0;
    padding: 0;

    overflow: hidden;

    line-height: 0;
}

.photo-section img {
    display: block;

    width: 100%;
    height: auto;

    max-width: 100%;

    object-fit: contain;
}


/* ==================================================
   MAP BUTTON
   КНОПКА ТЕПЕРЬ СПРАВА
================================================== */

.map-page {
    position: relative;
}

.map-button {
    position: absolute;

    right: 20px;
    bottom: 20px;

    z-index: 10;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    max-width: calc(100% - 40px);

    padding: 12px 19px;

    border: 1px solid rgba(184, 154, 90, 0.85);
    border-radius: 30px;

    background: rgba(250, 246, 239, 0.94);

    color: #4b3628;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 12px;

    letter-spacing: 1px;

    line-height: 1.3;

    text-decoration: none;

    white-space: nowrap;

    box-shadow:
        0 3px 12px rgba(40, 25, 15, 0.12);

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.map-button:hover {
    background: #fff;

    transform: translateY(-2px);
}

.map-button:active {
    transform: translateY(0);
}

.map-icon {
    font-size: 17px;
    line-height: 1;
}


/* ==================================================
   RSVP
================================================== */

.rsvp-section {
    width: 100%;

    margin: 0;
    padding: 0;
}

.rsvp-photo {
    position: relative;

    width: 100%;

    margin: 0;
    padding: 0;

    line-height: 0;
}

.rsvp-photo > img {
    display: block;

    width: 100%;
    height: auto;

    max-width: 100%;

    object-fit: contain;
}


/* ==================================================
   RSVP OVERLAY
================================================== */

.rsvp-overlay {
    position: absolute;

    inset: 0;

    z-index: 2;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px 20px;

    line-height: normal;
}

.rsvp-content {
    width: 100%;
    max-width: 500px;

    margin: 0 auto;

    color: #4b3628;

    text-align: center;
}


/* ==================================================
   RSVP TITLE
================================================== */

.rsvp-title {
    margin: 0 0 14px;

    font-size: clamp(42px, 8vw, 64px);

    font-weight: normal;

    letter-spacing: 6px;
}

.rsvp-subtitle {
    margin: 0 0 28px;

    font-size: clamp(17px, 3vw, 22px);

    line-height: 1.5;
}


/* ==================================================
   RSVP FORM
================================================== */

.rsvp-form {
    display: flex;

    flex-direction: column;

    gap: 9px;

    width: 100%;

    text-align: left;
}

.rsvp-form label {
    margin-top: 6px;

    font-size: 16px;

    line-height: 1.5;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    display: block;

    width: 100%;

    min-height: 50px;

    padding: 12px 14px;

    border: 1px solid rgba(99, 60, 43, 0.35);

    border-radius: 5px;

    outline: none;

    background: rgba(255, 252, 247, 0.92);

    color: #4b3628;

    font-size: 16px;
}

.rsvp-form textarea {
    min-height: 90px;

    resize: vertical;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
    border-color: #b89a5a;

    box-shadow:
        0 0 0 2px rgba(184, 154, 90, 0.12);
}

.rsvp-form input::placeholder,
.rsvp-form textarea::placeholder {
    color: #9a887a;
}


/* ==================================================
   RSVP SUBMIT
================================================== */

.rsvp-submit {
    width: 100%;

    margin-top: 12px;

    padding: 14px 16px;

    border: 1px solid #a9894d;

    border-radius: 30px;

    background: #a9894d;

    color: #fff;

    font-size: 12px;

    letter-spacing: 1.3px;

    line-height: 1.5;

    cursor: pointer;

    transition:
        background 0.25s ease,
        opacity 0.25s ease;
}

.rsvp-submit:hover {
    background: #8f713b;
}

.rsvp-submit:disabled {
    opacity: 0.6;

    cursor: wait;
}


/* ==================================================
   RSVP MESSAGES
================================================== */

.form-note,
.form-success {
    margin: 6px 0 0;

    font-size: 14px;

    line-height: 1.5;

    text-align: center;
}

.form-note {
    color: #8a5142;
}

.form-success {
    color: #526b43;
}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 600px) {

    #skip {
        right: 14px;
        bottom: 18px;

        padding: 10px 15px;

        font-size: 12px;
    }


    /* LANGUAGE */

    .language-heading {
        font-size: 21px;
    }

    .language-buttons {
        flex-direction: column;

        width: 100%;
        max-width: 240px;

        margin: 0 auto;
    }

    .language-buttons button {
        width: 100%;
    }


    /* MUSIC */

    .music-button {
        right: 12px;
        bottom: 12px;

        width: 42px;
        height: 42px;

        font-size: 20px;
    }


    /* MAP */

    .map-button {
        right: 12px;
        left: auto;

        bottom: 12px;

        padding: 9px 13px;

        font-size: 10px;

        letter-spacing: 0.7px;
    }

    .map-icon {
        font-size: 15px;
    }


    /* RSVP */

    .rsvp-overlay {
        padding: 18px 14px;
    }

    .rsvp-content {
        max-width: 390px;
    }

    .rsvp-title {
        margin-bottom: 7px;

        font-size: 34px;

        letter-spacing: 4px;
    }

    .rsvp-subtitle {
        margin-bottom: 15px;

        font-size: 14px;
    }

    .rsvp-form {
        gap: 6px;
    }

    .rsvp-form label {
        margin-top: 3px;

        font-size: 12px;
    }

    .rsvp-form input,
    .rsvp-form select {
        min-height: 40px;

        padding: 8px 10px;

        font-size: 13px;
    }

    .rsvp-form textarea {
        min-height: 55px;

        padding: 8px 10px;

        font-size: 13px;
    }

    .rsvp-submit {
        margin-top: 7px;

        padding: 10px 12px;

        font-size: 10px;
    }

    .form-note,
    .form-success {
        font-size: 11px;
    }
}


/* ==================================================
   VERY SMALL PHONES
================================================== */

@media (max-width: 600px) and (max-height: 750px) {

    .rsvp-overlay {
        padding: 10px 11px;
    }

    .rsvp-title {
        font-size: 28px;

        letter-spacing: 3px;
    }

    .rsvp-subtitle {
        margin-bottom: 7px;

        font-size: 11px;
    }

    .rsvp-form {
        gap: 3px;
    }

    .rsvp-form label {
        font-size: 10px;
    }

    .rsvp-form input,
    .rsvp-form select {
        min-height: 31px;

        padding: 5px 7px;

        font-size: 11px;
    }

    .rsvp-form textarea {
        min-height: 38px;

        padding: 5px 7px;

        font-size: 11px;
    }

    .rsvp-submit {
        padding: 7px 9px;

        font-size: 8px;
    }

    .form-note,
    .form-success {
        font-size: 9px;
    }
}