@import url('https://fonts.googleapis.com/css2?family=Marck+Script&display=swap');
@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/PlayfairDisplay-Regular.woff2') format('woff2'),
       url('fonts/PlayfairDisplay-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
    /* Цветовая палитра */
    --primary-color: #80997e;
    --primary-dark: #6a8267;
    --primary-light: rgba(128, 153, 126, 0.5);
    --text-dark: #314E28;
    --text-light: #ffffff;
    --background-light: #f3f5f2;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --acsent-color: #efec3a;
    --acsent-color2: #715a1f;
    --acsent-color-light: #b09967;
    /* Шрифты */
    --heading-font: 'Marck Script', cursive;
    --body-font: "Times New Roman", Monospaced, serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Основные стили */
.welcome-container {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.content-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-light);
    width: 100%;
}

.names-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1vw;
    margin-bottom: 20vw;
}

.name {
    font-size: 14vw;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.7);
    font-family: var(--heading-font);
    color: var(--text-dark);
    margin-bottom: -4%;
}

.countdown-container {
    margin-top: 5vw;
    font-family: var(--heading-font);
}

.countdown-message {
    color: black;
    font-size: larger;
    font-weight: 600;
    margin-bottom: 15px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 3vw;
    flex-wrap: wrap;
    font-family: var(--body-font);
}

.time-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 12vw;
    height: 12vw;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid var(--text-light);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.time-value {
    font-size: 4vw;
    font-weight: bold;
    line-height: 1;
}

.time-label {
    font-size: 1.2vw;
    margin-top: 0.5vw;
    text-transform: uppercase;
}

.text-cursive {
    font-size: 7vw;
    font-family: var(--heading-font);
    color: var(--text-light);
}

.wedding-invitation {
    background-color: var(--primary-color);
    text-align: center;
    padding: 5px;
    box-shadow: 0px 0px 8px #859880;
    position: relative;
    overflow: hidden;
}

.wedding-invitation-top {
    position: absolute;
    top: -13px;
    left: 0;
    right: 0;
    height: 21px;
    background: linear-gradient(to bottom, rgba(128, 153, 126, 0.8), transparent);
    backdrop-filter: blur(8px);
    pointer-events: none;
}

.wedding-invitation-text {
    font-size: 7vw;
    color: var(--text-light);
    font-family: var(--heading-font);
    line-height: 30px;
    margin-top: 8px;
}

.wedding-invitation-bottom {
    position: absolute;
    bottom: -12px;
    left: 0;
    right: 0;
    height: 21px;
    background: linear-gradient(to top, rgba(128, 153, 126, 0.8), transparent);
    backdrop-filter: blur(8px);
    pointer-events: none;
}

.calendar-section {
    position: relative;
}

.calendar-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.calendar-content {
    position: relative;
    z-index: 1;
}

.calendar-image-container {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.2);
}

.calendar-image {
    margin-top: 20px;
    width: 80%;
    border: 1px solid var(--acsent-color2);
}

.guest-message {
    font-size: 6vw;
    color: black;
    text-align: center;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.2);
    font-family: var(--heading-font);
}

.timing-section {
    text-align: center;
}

.timing-image {
    width: 100%;
}

.hints-section {
    text-align: center;
    margin-top: -25px;
    padding: 20px;
    color: var(--text-light);
    position: relative;
    font-family: 'Playfair Display', serif;
}

.hints-section-head {
    color: black;
    /*text-shadow: 0px 1px black;*/
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    padding: 15px;
    margin-bottom: 20px;
}

.hints-section-head h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hints-section-head h4 {
    font-size: 1.1rem;
    font-weight: normal;
}

.hints-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    color: var(--text-light);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hint {
    /*background-color: rgba(255, 255, 255, 0.4);*/
    background-color:rgba(128, 153, 126, 0.5);
    border: 2px solid var(--acsent-color2);
    border-radius: 10px;
    padding: 15px;
    color: black;
    width: calc(25% - 20px);
    box-shadow: 0 4px 8px var(--shadow-color);
    box-sizing: border-box;
    /*text-shadow: 0px 1px var(--text-light);*/
}

.place-section {
    background-color: var(--primary-light);
    border: 2px solid var(--text-dark);
    font-family: 'Playfair Display', serif;
}

.place-header {
    padding: 8px;
    text-align: center;
    font-family: 'Playfair Display', serif;
}

.place-image {
    width: 95%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border: solid 2px #485c47;
    display: block;
    margin: 10px auto;
}

iframe {
    border: solid 2px #485c47;
    margin: 0 auto;
    display: block;
    width: 90%;
}

/* Стили для фиксированной кнопки звука */
.music-toggle-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 5px 5px;
    background-color: rgba(24, 130, 68, 0.58);
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.music-toggle-button:hover {
    background-color: rgba(24, 130, 68, 0.73);
    box-shadow: 0 0 10px var(--shadow-color);
}

/* Стили для анкеты гостя */
.guest-form-container {
    position: relative;
    padding: 60px 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.guest-form-wrapper {
    width: 100%;
    max-width: 600px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px var(--shadow-color);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.guest-form-title {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-family: var(--heading-font);
    font-size: 2.5rem;
    text-shadow: 1px 1px 2px var(--shadow-color);
}

.guest-form-subtitle {
    text-align: center;
    margin-bottom: 20px;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.5;
}

.guest-form-notice {
    font-weight: bold;
    margin-bottom: 25px;
    text-align: center;
    color: #333;
    padding: 10px;
    background-color: var(--primary-light);
    border-radius: 5px;
}

.guest-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-dark);
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(128, 153, 126, 0.5);
    border-radius: 8px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(128, 153, 126, 0.3);
}

.form-divider {
    margin: 30px 0;
    border: 0;
    border-top: 1px solid rgba(128, 153, 126, 0.3);
}

.form-question {
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.radio-option {
    display: block;
    margin-bottom: 12px;
    padding: 8px 10px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.radio-option:hover {
    background-color: var(--primary-light);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.checkbox-option:hover {
    background-color: var(--primary-light);
}

.checkbox-option input[type="checkbox"] {
    margin-right: 10px;
}

.submit-button {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 14px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
}

.submit-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .guest-form-wrapper {
        padding: 25px;
        margin: 20px;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .guest-form-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .guest-form-wrapper {
        padding: 20px 15px;
    }

    .guest-form-title {
        font-size: 1.8rem;
    }

    .guest-form-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 900px) {
    .hint {
        width: calc(50% - 20px);
    }

    .guest-form-container .checkbox-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hint {
        width: 100%;
    }

    .guest-form-container .container {
        padding: 15px;
    }

    .guest-form-container h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .welcome-container {
        height: 100vh;
    }

    .name {
        font-size: 12vw;
    }

    .time-circle {
        width: 15vw;
        height: 15vw;
    }

    .time-value {
        font-size: 5vw;
    }

    .time-label {
        font-size: 2vw;
    }
}