@font-face {
    font-family: 'MyWeddingFont1';
    src: url('fonts/PrettyFont1.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MyWeddingFont2';
    src: url('fonts/PrettyFont2.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MyWeddingFont3';
    src: url('fonts/KZPFMonumentaPro-Reg.woff') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MyWeddingFont4';
    src: url('fonts/TildaSans-VF.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /*outline: 1px solid red !important;*/
}

html, body {
    width: 100%;
    overflow-x: hidden; /* 🔒 Блокирует горизонтальный скролл */
}


/* Hero Section */
.hero {
    background: url('./images/bozhyra.jpg') center center/cover no-repeat;
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Text Styling */
.text-container {
    color: white;
    position: absolute;
    top: 15%;
}

.title {
    font-family: 'MyWeddingFont1', cursive;
    font-size: 5em;
    letter-spacing: 2px;
    margin-top: -44px;
    text-shadow: 8px 8px 16px rgba(0, 0, 0, 0.9);
}

.subtitle {
    font-family: 'MyWeddingFont1', cursive;
    font-size: 4em;
    margin-top: 338px;
    text-shadow: 4px 4px 12px rgba(0, 0, 0, 0.9);
}

.invitation-container {
    max-width: 800px;
}

.invitation-heading h2 {
    font-family: 'MyWeddingFont3', serif;
    font-size: 36px;
    margin-bottom: 30px;
    color: #4e5e4f; /* нежный оттенок */
    margin-top: 4px;
}

.invitation-body p {
    font-family: 'MyWeddingFont4', sans-serif;
    font-size: 24px;
    color: black;
    margin-top: 85px;
}

.invitation-text {
    position: relative; /* Важно для абсолютного позиционирования */
    background: url('./images/fon2.png') center center/cover no-repeat;
    min-height: 100vh;
    padding: 24px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: black;
    overflow: hidden; /* ❗ ВАЖНО: прячет всё, что выходит за рамки */
}

.petals-image {
    position: absolute;
    left: -62px;
    top: 0%;
    width: 535px;
    opacity: 0.8;
    pointer-events: none;
    z-index: 1;
}

.wedding-calendar {
    margin-top: 60px;
    text-align: center;
    color: black;
    font-family: 'MyWeddingFont4', sans-serif;
    transform: scale(0.9); /* 📏 Уменьшает календарь на 90% */
    transform-origin: top center;
    margin-top: 80px;
}

.calendar-heading {
    margin-bottom: 15px;
}

.ceremony-title {
    font-size: 47px;
    font-family: 'MyWeddingFont3', serif;
    color: #4e5e4f;
    margin-bottom: 31px;
}

.ceremony-date {
    font-size: 20px;
    font-weight: bold;
    color: #4e5e4f;
    margin-top: 4px;
    font-family: 'MyWeddingFont3', sans-serif;
    margin-bottom: -22px;
}

.calendar {
    width: 100%;
    max-width: 420px; /* 📐 Ограничивает ширину */
    margin: 0 auto;
    border-collapse: collapse;
    font-size: 16px;
    font-family: 'MyWeddingFont4', sans-serif;
    font-weight: bold;
}

.calendar th, .calendar td {
    padding: 8px;
    width: 14.28%;
    height: 44px;
}

.day-number {
    font-size: 16px;
}

.heart-wrap {
    position: relative;
    width: 32px;
    height: 32px;
    margin: 0 auto;
    animation: pulse 1.5s infinite;
}

.heart-ring {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    stroke: #4e5e4f;
    stroke-width: 1.5;
    fill: none;
}

.day-number {
    font-size: 16px;
    color: black;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'MyWeddingFont4', sans-serif;
    font-weight: bold;
}

/* Пульсация */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.dear-guests-image {
    position: absolute;
    top: -123px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px; /* настрой под нужный размер */
    z-index: 2; /* больше, чем у обычного текста */
    opacity: 0.95; /* если хочешь немного прозрачности */
    pointer-events: none; /* чтобы изображение не мешало кликам */
}

.august-image {
    position: absolute;
    top: -86px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 260px; /* адаптируй под размер */
    z-index: 3;
    pointer-events: none;
    opacity: 0.95;
    background: transparent;
}

.time-info {
    margin-top: 40px;
    text-align: center;
    font-family: 'MyWeddingFont4', sans-serif;
    color: #333;
}

.time-label {
    font-size: 42px;
    font-weight: normal;
    margin-bottom: 8px;
    font-family: 'MyWeddingFont3', serif;
    color: #4e5e4f;
}

.time-value {
    font-size: 26px;
    margin-bottom: 8px;
    color: #4e5e4f;
    font-family: 'MyWeddingFont4', sans-serif;
    font-weight: bold;
    margin-top: 67px;
}

#countdown-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'MyWeddingFont4', sans-serif;
    font-size: 18px;
    color: #000;
    margin-bottom: -40px;
}

.timer-title {
    font-size: 34px;
    margin-bottom: -15px;
    font-weight: 600;
    color: #4e5e4f;
}

.timer-blocks {
    display: flex;
    gap: 6px;
}

.time-block {
    background-color: transparent;
    padding: 10px 16px;
    text-align: center;
}

.num {
    font-size: 24px;
    font-weight: bold;
    display: block;
    margin-top: 30px;
}

.label {
    font-size: 16px;
    color: #555;

}

.colon {
    font-size: 24px;
    font-weight: bold;
    align-self: center;
}

.timing-image {
    width: 209px; /* или подстрой под твой дизайн */
    margin: -100px auto;
    display: block;
    opacity: 0.95;
    margin-top: -115px;
}

.location-section {
    background: url('./images/otyrys.jpg') center center/cover no-repeat;
    min-height: 100vh;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
}

.location-container {
    max-width: 800px;
    padding: 40px;
    white-space: nowrap; /* ❗ Запрещает перенос строк */
    overflow-wrap: normal;
    word-break: normal;
}

.location-title {
    font-family: 'MyWeddingFont3', serif;
    font-size: 29px;
    margin-bottom: 30px;
    color: #fff;
    margin-top: -154px;
    transform: translateY(120px);
    text-shadow: 8px 8px 16px rgba(0, 0, 0, 0.9);
}

.location-heading-image {
    width: 324px; /* ✏️ настрой под нужный размер */
    display: block;
    margin: 0 auto;
    opacity: 0.95;
    margin-bottom: 67px; /* расстояние до надписи */
    margin-top: -10px;
    text-shadow: 8px 8px 16px rgba(0, 0, 0, 0.9);
}

.venue-name {
    font-family: 'MyWeddingFont1', cursive;
    font-size: 76px;
    color: white;
    text-shadow: 8px 8px 16px rgba(0, 0, 0, 0.9);
}

.venue-address {
    font-family: 'MyWeddingFont3', serif;
    font-size: 22px;
    color: white;
    text-shadow: 8px 8px 16px rgba(0, 0, 0, 0.9);
    font-weight: bold;
}

.venue-info {
    margin-top: 40px; /* Отдельный отступ от заголовка */
    transform: translateY(75px); /* сдвигает блок вниз на 30px */
    margin-bottom: 54px;
}

.venue-map-link {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    position: relative;
}

.map-icon {
    width: 64px; /* или подстрой под свой дизайн */
    height: auto;
    opacity: 0.95;
    transition: transform 0.3s ease;
    border-radius: 16px;
    margin-left: 6px;
    margin-bottom: -80px;
}

.map-icon:hover {
    transform: scale(1.1); /* Немного увеличивается при наведении */
    cursor: pointer;
}

.arrow-gif {
    position: absolute;
    left: 66%;         /* ⬅️ отодвинет вправо от 2gis */
    top: 32px;          /* ⬇️ поднимай/опускай */
    width: 99px;        /* ⚙️ меняй размер свободно */
    height: auto;
    animation: pulse-arrow 1.5s infinite;
    opacity: 0.95;
    pointer-events: none; /* 🔒 чтобы не мешала клику по 2GIS */
}

/* Пульсирующая анимация */
@keyframes pulse-arrow {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); opacity: 0.9; }
}

.rsvp-section {
    position: relative;
    background: url('./images/fon2.png') center center/cover no-repeat;
    min-height: 100vh;
    padding: 60px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.rsvp-container {
    max-width: 800px;
    width: 100%;
    color: black;
}

.rsvp-title {
    font-family: 'MyWeddingFont3', serif;
    font-size: 36px;
    margin-bottom: 20px;
}

.rsvp-subtitle {
    font-family: 'MyWeddingFont4', sans-serif;
    font-size: 20px;
    margin-bottom: 40px;
    color: #444;
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.rsvp-label {
    font-family: 'MyWeddingFont4', sans-serif;
    font-size: 18px;
    text-align: left;
    color: black;
    margin-bottom: -16px;
}

.rsvp-hint {
    font-size: 14px;
    color: #777;
    font-style: italic;
}

.rsvp-form input[type="text"] {
    padding: 0px;
    font-size: 18px;
    border: 1px solid #4e5e4f;
    border-radius: 12px;
    font-family: 'MyWeddingFont4', sans-serif;
}

.rsvp-options label {
    font-size: 18px;
    font-family: 'MyWeddingFont4', sans-serif;
    color: #333;
    display: block;
    text-align: left;
    margin-bottom: 10px;
}

.rsvp-button {
    background-color: #4e5e4f;
    color: white;
    border: none;
    padding: 4px 24px;
    font-size: 16px;
    border-radius: 34px;
    cursor: pointer;
    font-family: 'MyWeddingFont4', sans-serif;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.rsvp-button:hover {
    background-color: #4e5e4f;
}

.rsvp-note, .rsvp-end {
    font-family: 'MyWeddingFont4', sans-serif;
    font-size: 16px;
    color: #444;
    margin-top: 20px;
}

.rsvp-intro {
    font-family: 'MyWeddingFont3', serif;
    font-size: 24px;
    margin-bottom: 41px;
    color: #4e5e4f;
    font-weight: bold;
    margin-top: 10px;
}

.rsvp-options input[type="radio"] {
    appearance: none; /* удаляет стандартный стиль */
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border: 2px solid #4e5e4f;
    border-radius: 50%; /* делает круглыми */
    outline: none;
    margin-right: 10px;
    background-color: transparent; /* прозрачный фон */
    cursor: pointer;
    position: relative;
}

.rsvp-options input[type="radio"]:checked::before {
    content: '';
    width: 10px;
    height: 10px;
    background-color: #4e5e4f; /* цвет внутренней точки при выборе */
    border-radius: 50%;
    position: absolute;
    top: 1px;
    left: 1px;
}

.confirm-image-wrapper {
    position: relative;
    z-index: 2;
    margin-top: -30px; /* сблизить с текстом */
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.confirm-image {
    max-width: 220px;
    transition: transform 0.3s ease, z-index 0.3s ease;
    z-index: 1;
    margin-bottom: -94px;
    margin-top: -116px;
}


.rsvp-petals-image {
    position: absolute;
    left: -92px;
    top: -11%;
    width: 623px;
    opacity: 0.8;
    pointer-events: none;
    z-index: 1;
}

.rsvp-hosts-block {
    margin-top: 30px;
    text-align: center;
    line-height: 1.6;
}

.rsvp-owners-title {
    font-family: 'MyWeddingFont3', serif;
    font-size: 30px;
    color: #4e5e4f;
    font-weight: bold;
    margin-bottom: 41px;
}

.rsvp-owners-names {
    font-family: 'MyWeddingFont1', sans-serif;
    font-size: 42px;
    color: #4e5e4f;
}

.owners-title-wrap {
    position: relative;
    display: inline-block;
}

.with-love-image {
    position: absolute;
    top: -63px; /* выше надписи */
    left: 50%;
    transform: translateX(-50%);
    width: 220px; /* подстрой по желанию */
    opacity: 0.9;
    pointer-events: none; /* чтобы не мешало кликам */
    z-index: 3;
}

.music-button img {
    width: 188%;
    height: 191%;
    object-fit: contain;
}

.music-button {
    position: absolute;
    bottom: 295px;
    right: -17px;
    width: 80px;
    height: 80px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

/* Вращающийся текст — занимает весь контейнер */
.rotating-text {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
}

.rotating-text.rotate {
    animation: spin 5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Иконка — отдельная, центрируется внутри */
.play-icon {
    position: relative;
    width: 40px;
    height: 40px;
    z-index: 2;
    pointer-events: none;
}

.confirm-image,
.with-love-image,
.rotating-text{
    pointer-events: none;
}