@media (max-width: 768px) {
    
    header {
        flex-direction: column;
        padding: 2vh;
    }
    
    .logo {
        margin-right: 0;
        margin-bottom: 2vh;
    }
    
    .logo h1 {
        font-size: 3vh;
    }
    
    nav ul {
        gap: 3vh;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li a {
        font-size: 1.8vh;
    }

    .vector img {
        width: 90%;
    }
    
    #aboutpage {
        min-height: 40vh;
        min-width: 40vh;
        margin-left: -1vh;
    }
    
    .page {
        padding: 3vh;
        text-align: center;
        min-height: 40vh;
    }
    
    .page h2 {
        font-size: 4vh;
        margin-bottom: 2vh;
        margin-top: 2vh;
    }
    
    .page p {
        font-size: 2vh;
        margin-bottom: 3vh;
    }
    
    .page button {
        padding: 1.5vh 6vh;
        font-size: 1.8vh;
        align-self: center;
        margin-bottom: 3vh;
    }
    
    .background {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        display: flex;
        justify-content: center;
        margin-top: -4vh;
    }

        .review {
        margin-bottom: 2vh;
    }

        .error-tooltip {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        margin-top: 5px;
        max-width: 100% !important;
    }
    
    .background img {
        width: 90%;
        height: auto;
        max-width: 40vh;
    }
    
    #aboutus {
        margin: 13vh auto;
        padding: 0 3vh;
    }
    
    .section-header {
        margin-bottom: 3vh;
    }
    
    .section-header h1,
    .section-header h2 {
        font-size: 3vh;
    }
    
    .features-grid {
        display: flex;
        flex-direction: column;
        gap: 2vh;
        margin-top: 3vh;
    }
    
    .feature-card {
        width: 100% !important;
        margin: 0 !important;
        padding: 2vh;
    }
    
    .feature-image {
        order: 3;
        margin: 0 !important;
        padding: 0;
        display: flex;
        justify-content: center;
    }
    
    .feature-image img {
        max-width: 20vh;
        height: 20vh;
    }
   
    #catalog {
        padding: 0 3vh;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2vh;
        margin: -5vh 0;
    }
    
    .product img {
        width: 15vh;
        height: 18vh;
    }
    
    .product h3 {
        font-size: 2vh;
    }
    
    .product p {
        font-size: 1.8vh;
    }
    
    .order-button {
        padding: 1vh 4vh;
        font-size: 1.4vh;
    }
    
    .catalog-button {
        padding: 1.2vh 6vh;
        font-size: 1.8vh;
        margin-bottom: 8vh;
    }

    #comment {
        margin: 5vh auto 0;
        padding: 0 3vh;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 2vh;
        margin-top: 3vh;
        margin-bottom: 5vh;
    }
    
    .review {
        padding: 2vh;
    }
    
    .review p {
        font-size: 1.6vh;
    }
    
    .feedback-form {
        margin: 5vh auto 0;
        padding: 0 3vh;
    }
    
    .form-container {
        width: 100%;
        max-width: 35vh;
        margin-bottom: 8vh;
    }

    #contacts {
        margin: 5vh auto 0;
        padding: 0 3vh;
    }
    
    .contact-form {
        width: 100%;
        max-width: 35vh;
        text-align: center;
        margin-top: -5vh;
        margin-left: 1vh;
    }
    
    .contact-image {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 3vh;
    }
    
    .contact-image img {
        width: 25vh;
        height: 25vh;
    }
 
    .contact-info-section {
        margin: 8vh auto 0;
        padding: 0 3vh;
    }
    
    .contact-map {
        flex-direction: column;
        gap: 3vh;
    }
    
    .map-container {
        width: 100%;
        height: 30vh;
    }
    
    .contact-details {
        width: 100%;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }

    .footer-vector img {
        width: 90%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 3vh;
        text-align: center;
    }
    
    .footer-right {
        align-items: center;
    }
    
    .footer-links {
        align-items: center;
    }

    #florist,
    #supplies,
    #guarantee,
    #servise {
        width: 100% !important;
        margin: 0 !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
   
    header {
        padding: 1.5vh;
    }
    
    .logo h1 {
        font-size: 3vh;
    }
    
    nav ul {
        gap: 4vh;
    }

    .page {
        padding: 4vh 0 4vh 8vh;
    }
    
    .page h2 {
        font-size: 5vh;
    }
    
    .background {
        right: 10vh;
    }
    
    .background img {
        width: 50vh;
        height: 30vh;
    }

    #aboutus {
        max-width: 90vh;
        margin: 10vh auto;
    }

    #catalog {
        max-width: 90vh;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #comment {
        max-width: 90vh;
    }
    
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }    

    .feedback-form {
        max-width: 90vh;
    }
 
    #contacts {
        max-width: 90vh;
    }

    .contact-info-section {
        max-width: 90vh;
    }
 
    .footer-content {
        max-width: 90vh;
    }
}

@media (max-width: 480px) {

    .logo h1 {
        font-size: 2.5vh;
    }
    
    nav ul {
        gap: 2vh;
    }
    
    nav ul li a {
        font-size: 1.6vh;
    }
   
    .page h2 {
        font-size: 3.5vh;
    }
    
    .page p {
        font-size: 1.8vh;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product img {
        width: 18vh;
        height: 20vh;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 1.5vh;
    }
    
    .contact-image img {
        width: 20vh;
        height: 20vh;
    }
    
    .contact-details {
        padding: 3vh;
    }
    
    .contact-details h3 {
        font-size: 2vh;
    }
    
    .contact-details p {
        font-size: 1.8vh;
    }
}


@media (min-height: 800px) {
    
    #aboutpage {
        min-height: 60vh;
    }
    
    .page {
        min-height: 60vh;
    }
    
    #aboutus,
    #catalog,
    #comment {
        margin: 20vh auto;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
   
    header {
        flex-direction: row;
        padding: 1vh;
    }
    
    .logo {
        margin-bottom: 0;
        margin-right: 2vh;
    }

    #aboutpage {
        min-height: 60vh;
    }
    
    .page {
        min-height: 60vh;
        padding: 2vh;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .page h2 {
        font-size: 3vh;
    }
    
    .background {
        margin-top: 0;
    }
    
    .background img {
        max-width: 30vh;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }    

    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


