@media (max-width: 1024px) {
    .container {
        max-width: 950px;

    }

    .invite-name {
        font-size: 80px;
    }

    .main .container {
        max-width: 750px;
    }

    .side {
        width: 200px;
        height: 200px;
        object-fit: cover;
    }

    .center-card img {
        width: 300px;
        height: 320px;
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 600px;
    }


.invite-name {
    font-size: 50px;
}
.invite-text {
    font-size: 130px;
}
    .attention img {
        width: 250px;
    }
    .attention-title {
        font-size: 46px;
    }
    .attention-we {
        font-size: 150px;
        top: -85px;
        left: -35px;
    }
    .attention-text {
        font-size: 15px;
    }
    .attention .container {
        justify-content: space-between;
    }
    .attention-info {
        max-width: 300px;
    }
.main .container {
    max-width: 620px;
}
    .main-your {
        right: -155px;
    }
    .program-day {
        right: 60px;
    }
.side {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

.center-card img {
    width: 300px;
    height: 320px;
    object-fit: cover;
}

}

@media (max-width: 625px) {
    .container {
        max-width: 500px;
    }
    .invite .container {
        max-width: 620px;
    }
    .invite-text {
        font-size: 118px;
        margin-top: 28px;
    }
    .attention .container {
        padding: 130px 0;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
        gap: 50px;
    }
    .attention-info {
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        text-align: left;
        max-width: 400px;

    }
    .attention .container img {
        order: 2;
        align-self: flex-start;
    }
    .attention-title {
        font-size: 62px;
    }
    .attention-we {
        top: -65px;
        left: -81px;
    }
    .attention-text {
        font-size: 23px;
    }
    .attention img {
        width: 300px;
    }
    .date-container {
        position: absolute;
        display: flex;
        justify-content: center;
        font-size: 60px;
        background-color: white;
        padding: 0;
        gap: 10px;
        left: 50%;
        transform: translate(-50%, 315px); // Смещаем вверх, чтобы цифры были на линии
    }
    .calendar {
        margin-bottom: 0;
        padding-bottom: 50px;

    }
    .main-your {
        right: -110px;
        top: 18px;
        z-index: -1;
    }

    .main .container::before {
        content: "";
        position: absolute;
        left: 0;
        margin: 0 auto;
        right: 0;
        height: 2px;  /* Толщина линии */
        width: 80%;
        top: 665px;
        background-color: #333;
    }
    .main .container::after {
        display: none;
    }

    .location .container {
        text-align: center;
    }
    .gallery {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        justify-items: center;
        gap: 20px;
    }

    .center-card {
        grid-column: 1 / 3;
        margin-bottom: 20px;
        grid-row: 1;
    }

    .left {
        grid-row: 2;
        grid-column: 1; /* Первая картинка в строке 2 */
    }
    .right {
        grid-row: 2;
        grid-column: 2; /* Вторая картинка в строке 2 */
    }
    .presence-day {
        right: 60px;
    }

    .timout-title {
        font-size: 46px;
    }
}

@media (max-width: 525px) {

    .invite-name {
        font-size: 46px;
    }
    .invite-text {
        font-size: 100px;
    }
    .invite-date {
        font-size: 30px;
        margin-bottom: -50px;
    }
    .main-your {
        right: -71px;
        top: 30px;
    }
    .wishes-day {
        top: 41px;
        right: 33px;
    }


}
@media (max-width: 507px) {
    .container {
        max-width: 430px;
    }
    .location {
        padding: 0 0 50px 0;
    }
    .attention-we {
        top: -40px;
        left: -30px;
    }
    .main {
        padding: 50px 0 100px;
    }
    .main-title {
        margin-bottom: 115px;
    }
    .program {
        padding: 50px 0;
    }
    .wishes {
        padding: 50px 0;
    }
    .organizer-day {
        right: -20px;
    }

    .organizer {
        padding: 50px 0;
    }
    .presence {
        padding: 50px 0;
    }
    .timout {
        padding: 30px 0 30px 0;
    }
    .timout-title {
        font-size: 36px;
        margin-bottom: 0;
    }
    .timeline::before {
        left: 30%;
    }
}
@media (max-width: 479px) {
    .container {
        max-width: 380px;
    }
    .invite-name {
        font-size: 40px;
    }
    .invite-text {
        font-size: 85px;
    }
    .invite-date {
        margin-bottom: -50px;
    }
    .attention-title {
        font-size: 55px;
    }
    .attention-we {
        left: -38px;
    }
    .timeline::before {
        left: 35%;
    }
    .location-title {
        font-size: 140px;
    }
    .dresscode-title {
        font-size: 70px;
    }
    .dresscode-info-text {
        font-size: 26px;
    }
    .program-day {
        font-size: 140px;
    }
    .main-your {
        font-size: 140px;
    }
    .wishes-day {
        font-size: 140px;
    }
    .wishes-text {
        font-size: 26px;
    }
    .organizer-day {
        font-size: 140px;
    }
    .organizer-text {
        font-size: 26px;
    }
    .organizer-name, .organizer-phone {
        font-size: 26px;
    }
    .organizer a {
        font-size: 26px;
    }
    .presence-day {
        font-family: "Caravan", sans-serif;
        font-size: 140px;
    }
    .presence-text {
        text-align: center;
        font-size: 26px;
        margin-bottom: 20px;
    }
    .wedding-form {
        font-size: 26px;
    }
    .calendar {
        width: 350px;
        padding-bottom: 25px;
        padding-top: 30px;
    }
    .days {
        font-size: 25px;
    }
    .day {
        padding: 5px;
    }
    .heart {
        right: -6px;
    }
    .main-your {
        right: -50px;
    }

    .main .container::before {
        top: 583px;
    }
    .date-container {
        transform: translate(-50%, 285px);
    }


}
@media (max-width: 435px) {
    .date-container {
        transform: translate(-50%, 279px);
    }
    .side {
        width: 180px;
        height: 180px;
        object-fit: cover;
    }
}
@media (max-width: 423px) {
    .container {
        max-width: 300px;
    }
    .attention-title {
        font-size: 46px;
    }
    .attention-we {
        font-size: 140px;
    }
    .attention-text {
        font-size: 13px;
    }
    .attention .container {
        padding-bottom: 50px;
    }

    .main-title {
        font-size: 65px;
    }
    .calendar {
        width: 300px;
        padding-bottom: 10px;
    }
    .main .container::before {
        top: 567px;
    }
    .date-container {
        transform: translate(-50%, 273px);
    }
    .center-card {
        padding: 10px;
    }
    .gallery {
        gap: 3px;
    }
    .program-title {
        font-size: 65px;
    }
    .timeline::before {
        left: 43%;
    }
    .dresscode-title {
        font-size: 54px;
    }
    .dresscode-info-text {
        font-size: 22px;
    }
    .wishes-title {
        font-size: 65px;
    }
    .wishes-text {
        font-size: 22px;
    }
    .organizer-title, .presence-title {
        font-size: 65px;
    }
    .organizer-day, .presence-day {
        font-size: 120px;
    }
    .wishes-day {
        font-size: 120px;
    }
    .program-day {
        font-size: 120px;
    }
    .organizer-text {
        font-size: 22px;
    }
    .organizer-name, .organizer-phone {
        font-size: 22px;
    }
    .organizer a {
        font-size: 22px;
    }
    .presence-text {
        text-align: center;
        font-size: 22px;
    }
    .presence .container {
        max-width: 370px;
    }
    .wedding-form {
        button {
            width: 102%;
        }
    }
    .timout-title {
        font-size: 28px;
    }
    .time-box span {
        font-size: 28px;
    }
}

@media (max-width: 407px) {

    .invite-name {
        font-size: 35px;
    }
    .invite-text {
        font-size: 75px;
    }
    .side {
        width: 170px;
        height: 170px;
    }

}
@media (max-width: 375px) {
    .container {
        max-width: 300px;

    }
    .attention-title {
        font-size: 40px;
    }
    .attention-we {
        font-size: 130px;
    }


}

@media (max-width: 363px) {
    .container {
        max-width: 280px;
    }
    .invite-name {
        font-size: 30px;
    }
    .invite-text {
        font-size: 60px;
    }
    .invite-date {
        margin-bottom: -45px;
    }
    .invite-date {
        font-size: 25px;
    }
    .dresscode-title {
        font-size: 50px;
    }
    .wishes-title, .organizer-title, .presence-title, .program-title {
        font-size: 58px;
    }
    .wishes-day, .organizer-day, .presence-day, .program-day {
        font-size: 110px;
    }
    .wishes-text, .organizer-text, .presence-text {
        font-size: 20px;
    }
    .organizer-name, .organizer-phone {
        font-size: 20px;
    }
    .side {
        width: 150px;
        height: 150px;
    }
    .center-card img {
        width: 285px;
        height: 310px;
    }
    .calendar {
        width: 270px;
        padding: 10px;
    }
    .days {
        font-size: 20px;
    }
    .day {
        padding: 0px;
    }
    .calendar .month {
        font-size: 85px;
    }
    .heart {
        right: -12px;
        font-size: 21px;
    }
    .main .container::before {
        top: 494px;
    }
    .date-container {
        transform: translate(-50%, 238px);
    }

}

@media (max-width: 363px) {
    .main-your {
        right: -25px;
    }
}