@media (max-width: 1024px) {
    html,
    body {
        max-width: 100%;
        overflow-x: clip;
    }

    .container,
    .services-preview__container,
    .block-inner,
    .base-services h2,
    .trips,
    .visitbabay,
    .block-f {
        width: 100%;
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-block {
        gap: 28px;
    }

    .hero-text {
        max-width: 48%;
    }

    .hero-text h1 {
        max-width: 100%;
        font-size: 52px;
    }

    .hero-text a {
        width: 100%;
        max-width: 420px;
        height: auto;
        min-height: 62px;
        margin-top: 70px;
        padding: 14px 22px;
        font-size: 26px;
    }

    .hero-image {
        width: 48%;
        height: auto;
        aspect-ratio: 10 / 11;
    }

    .reactengle {
        height: 0%;
    }

    .trips {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
        padding-top: 36px;
    }

    .card {
        width: calc(50% - 12px);
        max-width: 400px;
        height: auto;
        min-height: 520px;
    }

    .visitbabay {
        height: auto;
        min-height: 0;
        gap: 28px;
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .left-block {
        width: 52%;
        margin: 0;
    }

    .left-block h1,
    .left-block button h1 {
        width: 100%;
    }

    .left-block button {
        width: 100%;
        max-width: 475px;
        height: auto;
        min-height: 57px;
        align-items: center;
        justify-content: center;
        padding: 8px 18px;
    }

    .left-block button h1 {
        padding-top: 0;
        font-size: 23px;
    }

    .right-block {
        flex: 1 1 0;
        width: auto;
        height: auto;
        min-height: 360px;
        margin-top: 0;
    }

    .services-nav {
        height: auto;
        padding: 16px 20px;
    }

    .nav-all {
        width: 100%;
        max-width: 950px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px 24px;
    }

    .nav-all a {
        font-size: 20px;
    }

    .block-f {
        flex-wrap: wrap;
        gap: 28px;
    }

    .footer {
        height: auto;
        min-height: 260px;
        padding-bottom: 30px;
    }

    .gallery-row,
    .menu-page .menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .container,
    .services-preview__container,
    .block-inner,
    .base-services h2,
    .trips,
    .visitbabay,
    .block-f {
        padding-left: 16px;
        padding-right: 16px;
    }

    section {
        min-height: auto;
    }

    .hero-block {
        flex-direction: column;
        align-items: stretch;
        padding-top: 34px;
        padding-bottom: 38px;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 40px;
        line-height: 1.08;
    }

    .hero-text h2 {
        font-size: 20px;
    }

    .hero-text p,
    .left-block p,
    .card-text p {
        font-size: 16px;
    }

    .hero-text a,
    .main-text a,
    .block-btn,
    .rest-btn,
    .btn a,
    .btn.big a,
    .submit-btn,
    .menu-page .menu-cta,
    .booking-submit {
        width: 100%;
        max-width: 100%;
        min-height: 48px;
        padding: 12px 18px;
    }

    .hero-text a {
        margin-top: 28px;
        font-size: 21px;
    }

    .hero-image {
        width: 100%;
        aspect-ratio: 4 / 3;
        height: auto;
    }

    .reactengle {
        width: 70px;
    }

    .section-bottem {
        min-height: 130px;
        padding: 24px 16px;
    }

    .main-text h2,
    .block-title,
    .rest-title,
    .base-services h2 {
        font-size: 26px;
    }

    .main-text p,
    .block-desc,
    .rest-text {
        font-size: 17px;
    }

    .main-text a,
    .block-btn,
    .rest-btn {
        margin-top: 28px;
        margin-bottom: 36px;
        font-size: 20px;
    }

    .block-right {
        height: auto;
        justify-content: center;
    }

    .block-right img,
    .main-img img,
    .rest-right img,
    .card-img,
    .right-block img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .trips {
        flex-direction: column;
        align-items: stretch;
        gap: 22px;
        padding-top: 28px;
    }

    .card {
        width: 100%;
        max-width: 100%;
        min-height: 0;
    }

    .card-img {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .card-info {
        padding: 18px;
    }

    .card-text h2 {
        margin-top: 0 !important;
        font-size: 22px;
    }

    .card-bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-top: 20px;
    }

    .card-more {
        display: flex;
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .visitbabay {
        flex-direction: column;
        border-radius: 20px;
        margin: 20px auto;
    }

    .left-block,
    .right-block {
        width: 100%;
    }

    .left-block h1 {
        font-size: 27px;
    }

    .star-block {
        width: 100%;
        max-width: 270px;
    }

    .service-lun {
        align-items: flex-start;
        padding-bottom: 16px;
    }

    .right-block {
        min-height: 240px;
    }

    .nav-all {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .nav-all a {
        width: 100%;
        text-align: center;
        font-size: 18px;
    }

    .footer-content,
    .block-f {
        gap: 24px;
    }

    .footer-right {
        margin-top: 0;
    }

    .block-f {
        flex-direction: column;
    }

    .block-f-3 {
        width: 100%;
    }

    .contact-form input,
    .contact-box,
    .menu-page .menu-lunch-card,
    .menu-page .menu-category,
    .menu-page .menu-note,
    .booking-card,
    .booking-summary-card {
        max-width: 100%;
    }

    .gallery-row,
    .menu-page .menu-grid {
        grid-template-columns: 1fr;
    }

    .menu-page .menu-lunch-card__head,
    .price-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-pape .person-control,
    .form-pape .nav,
    .booking-stage-actions,
    .booking-select-shell,
    .booking-datetime,
    .booking-menu-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
