@media (max-width: 1655px) {
    .big-heart {
        left: 48.5%;
    }
}

@media (max-width: 1300px) {
    .big-heart {
        left: 48.2%;
    }
}

@media (max-width: 1250px) {
    .vertical-text {
        display: none;
    }
}

@media (max-width: 1200px) {
    .program-grid {
        gap: 25px;
        padding: 0 20px;
    }
    
    .program-time {
        font-size: 2.5rem;
    }
    
    .program-card-title {
        font-size: 1.7rem;
        min-height: 4rem;
    }
}

@media (max-width: 1100px) {
    .big-heart {
        left: 48%;
    }
}

@media (max-width: 1039px) {
    .main-title_mobile {
        display: block;
    }

    .home-content {
        flex-direction: column;
    }

    .main-title {
        display: none;
    }
}

@media (max-width: 1008px) {
    .program-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
    
    .program-time {
        font-size: 2.4rem;
        margin-bottom: 18px;
    }
    
    .program-card-title {
        font-size: 1.6rem;
        min-height: 3.8rem;
        margin-bottom: 18px;
    }
}

@media (max-width: 1000px) {
    .big-heart {
        left: 47.7%;
    }
}

@media (max-width: 992px) {
    .section-title {
        font-size: 3rem;
    }

    .dear-content p {
        padding: 0 20px;
    }
    
    .location-info h3 {
        font-size: 1.5rem;
    }

    .location-info h4 {
        font-size: 1.3rem;
    }

    .map-btn {
        padding: 10px 25px;
    }

    .story-text p {
        padding: 0 20px;
    }

    .dresscode-content > p {
        font-size: 20px;
    }

    .wish-block {
        margin-bottom: 40px;
    }

    .confirmation-btn {
        padding: 12px 25px;
    }

    .vertical-text {
        font-size: 6rem;
    }
    
    .main-title h1 {
        font-size: 3rem;
    }
    
    .month-display {
        font-size: 3rem;
    }
    
    .countdown-number {
        font-size: 3.5rem;
    }
    
    .forever-text {
        font-size: 4rem;
    }

    .wish-block p {
        padding: 0 20px;
    }

    .wish-block h3 {
        padding: 0 20px;
    }

    .dresscode-items {
        padding: 0 20px;
    }

    .chat-content p {
        padding: 0 20px;
    }
}

@media (max-width: 825px) {
    .big-heart {
        left: 47%;
    }
}

@media (max-width: 768px) {
    .program-section {
        padding: 60px 0;
    }
    
    .program-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;

    }
    
    .program-time {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .program-card-title {
        font-size: 1.5rem;
        min-height: 3.5rem;
        margin-bottom: 15px;
    }
    
    .program-card:hover {
        transform: translateY(-10px);
    }

    .program-card {
        max-width: 480px;
        justify-self: center;
    }

    .accordion-btn {
        max-width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .accordion-content.active {
        max-height: 500px;
    }
    
    .map-frame {
        height: 300px;
    }
    
    .map-container {
        padding: 20px;
    }
    
    .map-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .action-link {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    .slider-container {
        width: 100%;
        max-width: 500px;
    }

    .nav-btn-r-ou, .nav-btn-l-ou {
        display: none;
    }

    .nav-btn-r-in {
        display: block;
        position: absolute;
        left: 10px;
    }
    
    .nav-btn-l-in {
        display: block;
        position: absolute;
        right: 10px;
    }

    .nav-btn {
        background: #d4b8a4;
    }

    .nav-btn:hover {
        box-shadow: none;
    }

    .nav-btn svg {
        stroke: #5D4B33;
    }

    .nav-toggle {
        display: block;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .vertical-text {
        display: none;
    }
    
    .main-title h1 {
        font-size: 2.5rem;
    }
    
    .quote {
        font-size: 1.5rem;
    }
    
    .program-timeline::before {
        left: 70px;
    }

    .dresscode-item {
        flex: 0 0 100%;
    }
    
    .countdown-separator {
        display: none;
    }
    
    .footer-left, .footer-right {
        flex: 0 0 100%;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .footer-copyright, .footer-privacy {
        text-align: center;
    }
    
    .confirmation-btn {
        min-width: 30%;
    }

    .dresscode-content-colors {
        grid-template-columns: repeat(3, 110px);
    }

    .dresscode-content > p {
        padding: 0 50px;
    }
}

@media (max-width: 650px) {
    .big-heart {
        left: 46.5%;
    }
}

@media (max-width: 640px) {
    .calendar-wrapper {
        max-width: 500px;
    }

    .calendar-wrapper {
        padding: 15px;
    }

    .day {
        padding: 10px 0;
        font-size: 1.3rem;
    }
    
    .wedding-day img {
        left: 2px;
        top: 4px;
    }

    .wedding-day img {
        width: 55px;
    }
}

@media (max-width: 600px) {
    .dear-content p {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .story-text p {
        font-size: 1.2rem;
    }
    
    .wish-block h3 {
        font-size: 2rem;
    }
    
    .wish-block p {
        font-size: 1.2rem;
    }
    
    .chat-content p {
        font-size: 1.2rem;
    }
    
    .confirmation-content > p {
        font-size: 1.3rem;
    }
    
    .countdown-subtitle {
        font-size: 1.5rem;
    }
}


@media (max-width: 576px) {
    .program-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        gap: 15px;
    }
    
    .program-time {
        font-size: 2.5rem;
    }
    
    .program-card-title {
        font-size: 1.6rem;
        min-height: auto;
    }
    
    .program-card {
        opacity: 1;
        transform: none;
        animation: none;
        justify-self: normal;
    }

    .slider-content h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .home-section {
        min-height: 80vh;
    }
    
    .main-title h1 {
        font-size: 2rem;
    }
    
    .date-large .day {
        font-size: 4rem;
    }
    
    .month-display {
        font-size: 2.5rem;
    }
    
    .swiper-slide {
        height: 300px;
    }
    
    .program-timeline::before {
        display: none;
    }
    
    .program-item {
        flex-direction: column;
    }
    
    .program-time {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .program-time::after {
        display: none;
    }
    
    .program-content {
        padding-left: 0;
    }
    
    .countdown-number {
        font-size: 3rem;
    }

    .confirmation-buttons {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .story-text p {
        padding: 0 10px;
    }

    .dear-content p { 
        padding: 0 10px;
    }

    .dresscode-content > p {
        padding: 0 10px;
    }

    .dresscode-items {
        padding: 0 10px;
    }

    .wish-block h3 {
        padding: 0 10px;
    }

    .wish-block p {
        padding: 0 10px;
    }

    .chat-content p {
        padding: 0 10px;
    }
}

@media (max-width: 550px) {
    .big-heart {
        top: 48%;
        left: 46%;
    }
}

@media (max-width: 540px) {
    .calendar-wrapper {
        max-width: 400px;
    }

    .calendar-wrapper {
        padding: 10px;
    }

    .wedding-day img {
        width: 45px;
        left: 0;
        top: 5px;
    }

    .weekday, .day {
        font-weight: 400;
    }
    
    .day {
        font-size: 1.1rem;
    }

    .story-text p {
        font-size: 0.9rem;
    }

    .dresscode-content > p {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .map-frame {
        height: 250px;
    }
    
    .accordion-content.active {
        max-height: 450px;
    }
    
    .map-container {
        padding: 15px;
    }
    
    .program-card-content img {
        height: 250px;
    }

    .program-section {
        padding: 50px 0;
    }
    
    .program-grid {
        gap: 12px;
    }
    
    .program-time {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .program-card-title {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    
    .program-card-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .chat-content p {
        font-size: 16px;
    }

    .chat-btn {
        font-size: 0.9rem;
    }

    .big-heart {
        top: 46%;
        left: 45%;
    }
}

@media (max-width: 450px) {
    .slider-track {
        max-width: 250px;
    }

    .big-heart {
        top: 46%;
        left: 39%;
    }
    
    .slider-track>img {
        margin: 35px 0px 35px 0;
    }
}

@media (max-width: 450px) {
    .main-title_mobile h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .slider-content {
        padding: 0 20px;
    }
}

@media (max-width: 440px) {
    .calendar-wrapper {
        max-width: 300px;
    }

    .calendar-wrapper {
        padding: 10px;
    }

    .day {
        padding: 0;
        font-size: 1rem;
    }

    .wedding-day img {
        width: 35px;
        top: -1px;
        left: -2px;
    }

}

@media (max-width: 425px) {
    .program-card-content img {
        height: 200px;
    }

    .slider-container {
        width: 80%;
        padding: 0;
    }

    .slides-wrapper {
        padding: 0 0 0 0;
        height: 500px;
    }

    .nav-btn {
        width: 30px;
        height: 30px;
    }

    .nav-btn svg {
        width: 20px;
        height: 20px;
        stroke: white;
    }

    .dresscode-content-colors {
        grid-template-columns: repeat(2, 80px);
    }

    .dresscode-content-color {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 400px) {
    .slider-track {
        max-width: 200px;
    }

    .big-heart {
        top: 46%;
        left: 32%;
    }
    
    .slider-track>img {
        margin: 40px -30px 40px 0;
        width: 50px;
    }
}

@media (max-width: 375px) {
    .program-card-content img {
        height: 150px;
    }

    .big-heart {
        top: 50%;
        left: 31%;
    }
}

@media (max-width: 360px) {
    
    .program-time {
        font-size: 1.8rem;
    }
    
    .program-card-title {
        font-size: 1.3rem;
    }
    
    .program-card-text {
        font-size: 0.9rem;
    }

    .slider-container button {
        width: 30px;
        height: 30px;
        font-size: 18px;
        background: rgba(255, 255, 255, 0.7);
        color: rgba(0, 0, 0, 0.7);
    }
}

@media (max-width: 340px) {
    .calendar-wrapper {
        max-width: 280px;
    }

    .weekday {
        font-size: 1rem;
    }

    .calendar-wrapper {
        padding: 10px;
    }

    .day {
        font-size: 0.8rem;
    }

    .wedding-day img {
        width: 25px;
        left: 1px;
        top: 0;
    }

    .big-heart {
        top: 51.8%;
        left: 41%;
    }

    .big-heart.show {
        font-size: 350px;
    }

}

@media (max-width: 340px) {
    .big-heart {
        top: 50%;
        left: 40.5%;
    }
}