:root {
    --content-width: min(
        1600px,
        calc(100% - clamp(32px, 8vw, 154px))
    );
    --text-xs: clamp(13px, 0.25vw + 10px, 15px);
    --text-sm: clamp(14px, 0.35vw + 10px, 17px);
    --text-base: clamp(16px, 0.4vw + 11px, 19px);
    --text-lead: clamp(18px, 0.45vw + 13px, 22px);
}

body {
    font-size: var(--text-base);
}

.container,
.site-header {
    width: var(--content-width);
}

.site-header {
    min-height: clamp(82px, 4.8vw, 100px);
    padding: clamp(9px, 0.7vw, 14px) clamp(16px, 1.3vw, 26px);
    gap: clamp(20px, 1.6vw, 32px);
}

.site-brand {
    width: clamp(148px, 9vw, 180px);
}

.navigation {
    gap: clamp(17px, 1.25vw, 26px);
    font-size: var(--text-sm);
}

.navigation a {
    padding-block: clamp(9px, 0.65vw, 13px);
}

.site-header__booking,
.button {
    min-height: clamp(52px, 3vw, 58px);
    padding-inline: clamp(23px, 1.6vw, 32px);
    font-size: var(--text-sm);
}

.eyebrow {
    font-size: var(--text-xs);
}

:is(
    .home-main .hero p,
    .home-about__copy,
    .houses-intro > .container > p,
    .house-showcase__description,
    .booking-hero p,
    .gallery-hero p,
    .routes-hero__intro p,
    .routes-location__content > p,
    .route-card__content > p,
    .reviews-hero p,
    .review-card__content,
    .review-form-section__grid > div > p,
    .blog-hero p,
    .blog-single__head > p,
    .entry-content,
    .contacts-hero p,
    .contact-form-section__grid > div > p
) {
    font-size: var(--text-lead);
}

:is(
    .booking-steps p,
    .booking-prices,
    .booking-calculator label,
    .booking-calculator__hint,
    .booking-summary > p,
    .article-card__meta,
    .article-card__link,
    .review-card footer,
    .reviews-sort,
    .contact-card > span,
    .contacts-location span,
    .contact-form > label,
    .review-form label,
    .review-form legend,
    .house-showcase__features,
    .route-card__meta
) {
    font-size: var(--text-sm);
}

.site-footer {
    font-size: var(--text-base);
}

@media (min-width: 1200px) {
    :is(
        .houses-intro h1,
        .booking-hero h1,
        .gallery-hero h1,
        .routes-hero h1,
        .reviews-hero h1,
        .blog-hero h1,
        .blog-single h1,
        .contacts-hero h1
    ) {
        font-size: clamp(76px, 6vw, 116px);
    }

    :is(
        .home-about h2,
        .home-section-heading h2,
        .home-explore h2,
        .house-showcase h2,
        .houses-summary h2,
        .booking-help h2,
        .gallery-cta h2,
        .routes-location h2,
        .route-card h2,
        .routes-safety h2,
        .reviews-list h2,
        .review-form-section h2,
        .blog-index h2,
        .contacts-details h2,
        .contact-form-section h2
    ) {
        font-size: clamp(52px, 4vw, 78px);
    }

    .home-main .hero-content {
        padding-top: 130px;
    }

    .home-main .hero h1 {
        font-size: clamp(88px, 7.2vw, 138px);
    }

    .route-card__image,
    .routes-location__map {
        height: clamp(520px, 31vw, 610px);
    }
}

@media (max-width: 1050px) {
    :root {
        --content-width: min(100% - 32px, 960px);
    }

    .site-header {
        min-height: 72px;
    }

    .site-brand {
        width: 128px;
    }

    .navigation {
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    :root {
        --content-width: min(100% - 24px, 560px);
        --text-base: 16px;
        --text-lead: 17px;
    }

    .site-header {
        width: var(--content-width);
        min-height: 68px;
        padding-inline: 16px;
    }

    .site-brand {
        width: 118px;
    }

    .button {
        min-height: 52px;
        font-size: 15px;
    }
}
