@font-face {
    font-family: 'MyWeddingFont1';
    src: url('fonts/font2.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MyElegantFont2';
    src: url('fonts/font1.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MyElegantFont3';
    src: url('fonts/font4.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

.background-overlay {
    background-color: white; /* тот же цвет, что и у body */
}

body {
    background: white;
    font-family: 'Roboto', serif;
    color: #fff;
    text-align: center;
    padding: 40px;
    background-size: cover;
    backdrop-filter: brightness(0.95);
}

h1 {
    font-size: 55px;
    color: #b35c5c;
    margin-bottom: 10px;
    font-family: 'MyWeddingFont1', cursive;
}

p {
    font-size: 20px;
    margin: 10px 0;
}

section {
    margin-top: 40px;
    padding: 0 20px;
    background-color: transparent;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

input {
    padding: 10px;
    width: 100%;
    max-width: 300px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #b35c5c;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #a34b4b;
    transform: scale(1.05);
}

#timer {
    margin-top: 30px;
    font-size: 22px;
    font-weight: bold;
    color: #6c3e3e;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    background-image: url('https://dl.dropboxusercontent.com/scl/fi/h2qezuaezlf14xl4a6yji/toi.jpg?rlkey=mn153j5ccdqvafpcejaufeolz&st=l7ga19tc&dl=1');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh; /* теперь занимает весь экран */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    border-radius: 0;
    margin: 0;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* легкое затемнение */
    z-index: 1;
}

.hero h1,
.hero p {
    position: relative;
    z-index: 2;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.hero h1 {
    animation-delay: 0.2s;
}

.hero p:nth-of-type(1) { animation-delay: 0.4s; }
.hero p:nth-of-type(2) { animation-delay: 0.6s; }
.hero p:nth-of-type(3) { animation-delay: 0.8s; }
.hero p:nth-of-type(4) { animation-delay: 1s; }

.calendar-btn {
    display: inline-block;
    margin-top: 15px;
    background-color: #fff;
    color: #b35c5c;
    border: 2px solid #b35c5c;
    border-radius: 8px;
    padding: 10px 16px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
}
.calendar-btn:hover {
    background-color: #b35c5c;
    color: white;
}

.photo-slider {
    margin-top: 40px;
    color: white;
}

.photo-slider h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.swiper {
    width: 90%;
    max-width: 600px;
    height: auto;
    margin: auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.invitation-text {
    background-color: transparent;
    color: #2d2d2d;
    padding: 60px 20px;
    text-align: center;
    font-family: 'MyWeddingFont2', serif;
    line-height: 1.8;
}

.invitation-text p {
    font-size: 20px;
    margin: 16px 0;
    font-weight: 500;
}

/* Только имена остаются в вашем кастомном шрифте */
.invitation-text .name {
    font-family: 'MyWeddingFont1', cursive;
    font-size: 36px;
    margin: 10px 0;
    color: #b35c5c;
}



html {
    scroll-behavior: smooth; /* Плавная прокрутка */
}

.scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 32px;
    color: white;
    animation: bounce 2s infinite;
    text-decoration: none;
    z-index: 3;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.wedding-calendar {
    margin-top: 40px;
    font-family: 'MyElegantFont3', cursive;
    color: #2d2d2d;
}

.wedding-calendar h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.calendar {
    margin: 0 auto;
    border-collapse: collapse;
    width: 100%; /* ⬅️ исправлено */
    max-width: 400px;
    font-size: 18px; /* ⬇ немного уменьшено */
    background-color: transparent;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
    box-sizing: border-box; /* ⬅️ добавлено */
}

.calendar th,
.calendar td {
    border: none;
    padding: 10px 4px; /* ⬅️ уменьшены паддинги */
    text-align: center;
    width: calc(100% / 7); /* ⬅️ распределение по 7 столбцам */
    font-weight: normal;
    box-sizing: border-box; /* ⬅️ гарантирует предсказуемое поведение */
}



.calendar .wedding-day {
    background-color: transparent;
    padding: 0;
    border: none;
}

.calendar .wedding-day:hover {
    transform: scale(1.1);
    background-color: #fbe3e8;
}

.calendar-heading {
    margin-bottom: 20px;
}

.ceremony-title,
.ceremony-date {
    font-family: 'MyElegantFont2', cursive;
    font-size: 35px;
    color: #2d2d2d;
    line-height: 1.4;
}

.wedding-location {
    margin-top: 40px;
    color: #2d2d2d;
    background-color: transparent;
    padding: 30px 20px;
    font-family: 'MyElegantFont3', serif;
}

.ceremony-time {
    font-family: 'MyElegantFont2', cursive;
    font-size: 42px;
    margin-bottom: 20px;
}

.ceremony-address-label {
    font-family: 'MyElegantFont2', cursive;
    font-size: 36px;
    margin-bottom: 10px;
}

.ceremony-city,
.ceremony-type {
    font-size: 27px;
    margin: 6px 0;
    font-weight: 500;
    font-family: 'MyElegantFont3', serif;
}

.ceremony-place {
    font-size: 26px;
    font-weight: bold;
    margin: 8px 0;
    font-family: 'MyElegantFont3', serif;
}

.map-link {
    display: inline-block;
    margin-top: 15px;
}

.map-icon {
    width: 50px;
    height: auto;
    border-radius: 12px; /* ← скругление углов */
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* мягкая тень */
    border: 2px solid #fff8f0; /* опциональная рамка */
}


.map-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ornament {
    width: 100vw;
    height: auto;
    display: block;
    margin: 0 auto;
    opacity: 0.9;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}


.ornament-top {
    margin-bottom: 20px;
    margin-top: 10px;
}

.ornament-bottom {
    margin-top: 30px;
}

.timer-overlay-section {
    margin-top: 0;
    padding: 0;
    position: relative;
    text-align: center;
}

.timer-container {
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.timer-background {
    width: 100%;
    height: auto;
    border-radius: 0;
    display: block;
}

.timer-overlay-text {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'MyElegantFont3', cursive;
    color: black;
    font-weight: bold;
    text-align: center;
    background: none;
    padding: 0;
    border-radius: 0;
    max-width: 95%;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-title {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: normal;
}

.timer-blocks {
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.time-block .num {
    font-size: 28px;
    font-weight: bold;
    line-height: 1.2;
}

.time-block .label {
    font-size: 14px;
    line-height: 1;
    margin-top: 4px;
    opacity: 0.85;
}

.colon {
    font-size: 26px;
    font-weight: bold;
    padding: 0 4px;
}

.wedding-hosts {
    font-family: 'MyElegantFont2', cursive;
    font-size: 40px;
    color: #2d2d2d;
    text-align: center;
    margin-top: 10px;
    padding: 10px 20px;
    line-height: 1.6;
}

.wedding-hosts p {
    font-size: 30px !important;
}

.rsvp-section {
    background-color: white;
    color: #000;
    text-align: center;
    padding: 40px 20px;
    border: 1px solid #00000020;
    max-width: 500px;
    margin: 40px auto;
    border-radius: 12px;
    font-family: 'MyElegantFont3', sans-serif;
}

.rsvp-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.rsvp-subtitle {
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 500;
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.rsvp-label {
    font-size: 14px;
    text-align: left;
    font-weight: bold;
}

.rsvp-hint {
    font-size: 12px;
    font-weight: normal;
    display: block;
    margin-top: 4px;
    color: #444;
}

.rsvp-form input[type="text"] {
    width: 91%;
    font-size: 16px;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 4px;
    font-family: 'MyElegantFont3', sans-serif;
}

.rsvp-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 16px;
}

.rsvp-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.rsvp-options input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: black;
}

.rsvp-button {
    font-family: 'MyElegantFont3', sans-serif;
    background-color: black;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 18px;
    border-radius: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: center;
}

.rsvp-button:hover {
    background-color: #333;
}

.music-toggle {
    position: absolute;
    top: 73px;
    left: 264px;
    width: 48px;
    height: 48px;
    cursor: pointer;
    z-index: 100;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 16px rgba(17,34,85, 0.99);
    border-radius: 50%;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-toggle img {
    width: 91px;
    height: 170px;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.music-toggle.playing img {
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.name-left,
.name-right,
.ampersand {
    display: inline-block;
    opacity: 0;
    animation-fill-mode: forwards;
}

.name-left {
    animation: slideLeft 1s ease-out 0.2s forwards;
}

.name-right {
    animation: slideRight 1s ease-out 0.2s forwards;
}

.ampersand {
    animation: dropDown 0.8s ease-out 0.4s forwards;
}

@keyframes slideLeft {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideRight {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes dropDown {
    0% {
        transform: translateY(-80px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.name-right-animated,
.date-left-animated {
    display: inline-block;
    opacity: 0;
    animation-fill-mode: forwards;
}

.name-right-animated {
    animation: slideRight 1s ease-out 0.3s forwards;
}

.date-left-animated {
    animation: slideLeft 1s ease-out 0.3s forwards;
}

.time-right-animated,
.place-left-animated {
    display: inline-block;
    opacity: 0;
    animation-fill-mode: forwards;
}

.time-right-animated {
    animation: slideRight 1s ease-out 0.3s forwards;
}

.place-left-animated {
    animation: slideLeft 1s ease-out 0.4s forwards;
}

.hosts-right-animated {
    display: inline-block;
    opacity: 0;
    animation: slideRight 1s ease-out 0.3s forwards;
}

.animated {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}

.animate-slideLeft {
    animation: slideLeft 1s ease-out forwards;
}

.animate-slideRight {
    animation: slideRight 1s ease-out forwards;
}

.animate-dropDown {
    animation: dropDown 0.8s ease-out forwards;
}

@keyframes slideLeft {
    0% { transform: translateX(-100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideRight {
    0% { transform: translateX(100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes dropDown {
    0% { transform: translateY(-80px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.heart-wrap {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.heart-ring {
    position: absolute;
    width: 40px;
    height: 40px;
    animation: pulseHeart 1.5s infinite;
    transform-origin: center;
    stroke: black;
    opacity: 0.7;
}

.day-number {
    position: relative;
    z-index: 1;
    font-size: 20px;
    font-weight: bold;
    color: #b35c5c;
    font-family: 'MyElegantFont3', sans-serif;
}

@keyframes pulseHeart {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.25);
        opacity: 0.4;
    }
}


/* 📱 Адаптивность под маленькие экраны */
@media (max-width: 600px) {
    body {
        padding: 20px 10px;
        background-size: cover;
    }

    h1 {
        font-size: 36px;
    }

    button {
        width: 100%;
        font-size: 18px;
    }

    input {
        width: 100%;
        font-size: 16px;
    }

    section {
        margin-top: 20px;
    }

    .calendar {
        font-size: 16px;
        max-width: 100%;
    }

    .calendar th,
    .calendar td {
        padding: 6px 2px;
    }
}