:root {
    --ink: #1d343a;
    --body: #374f54;
    --link: #145671;
    --paper: #fff;
    --bg: #f7f4e9;
    --head: #f9f1cc;
    --soft: #e9f1f0;
    --border: #ccd9d8;
    --banner: #14292d;
    --footer: #1b363c;
    --gold: #ffe29a;
    --radius: .55rem;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
    margin: 0;
    color: var(--body);
    background: var(--bg);
    font: 400 1rem/1.62 "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
h1, h2, h3, p, ul, address { margin: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.85rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.47rem); }
img { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .13em; }
a:focus-visible, button:focus-visible {
    outline: 3px solid #0082ad;
    outline-offset: .2rem;
}
button { font: inherit; }
.wrap { width: min(72rem, calc(100% - clamp(2rem, 8vw, 7rem))); margin-inline: auto; }
.skip-link {
    position: fixed;
    z-index: 4;
    top: .5rem;
    left: .6rem;
    padding: .65rem .9rem;
    transform: translateY(-200%);
    border-radius: .3rem;
    background: var(--paper);
}
.skip-link:focus { transform: none; }

.site-header {
    background: var(--head);
    border-bottom: 1px solid #d8cb9c;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4.9rem;
    gap: .5rem 1rem;
}
.logo {
    display: flex;
    width: min(220px, 46vw);
    min-height: 44px;
    align-items: center;
}
.logo img { width: 100%; height: auto; }
#nav { display: flex; flex-wrap: wrap; gap: .45rem .75rem; }
#nav a, .button {
    display: inline-flex;
    align-items: center;
    gap: .52rem;
    min-height: 44px;
    justify-content: center;
    padding: .42rem .85rem;
    border-radius: .35rem;
    font-weight: 730;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
}
#nav a { color: var(--ink); white-space: nowrap; }
#nav a:hover { background: #ebe2bd; text-decoration: underline; }
#nav a:last-child { border: 1px solid #a79765; }

.gallery { background: var(--banner); }
.slides {
    display: grid;
    max-width: 96rem;
    margin-inline: auto;
}
.slide {
    position: relative;
    display: grid;
    align-items: center;
    justify-items: center;
    grid-area: 1 / 1;
    isolation: isolate;
    min-width: 0;
    min-height: clamp(25rem, 41vw, 35rem);
    padding: clamp(1.25rem, 5vw, 4rem);
    visibility: hidden;
}
.slide[data-active] { visibility: visible; }
.slide-photo, .classic .slide::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    width: 100%;
    height: 100%;
}
.slide-photo { object-fit: cover; object-position: center; }
.classic .slide::after {
    content: "";
    background: linear-gradient(90deg, rgb(9 23 25 / 34%), rgb(9 23 25 / 77%) 27%, rgb(9 23 25 / 77%) 73%, rgb(9 23 25 / 34%));
}
.slide-caption {
    width: min(100%, 42rem);
    padding: .85rem 0;
    color: #fff;
    text-align: center;
}
.slide-caption h1, .slide-caption h2 {
    color: var(--gold);
    font-size: clamp(1.9rem, 4.3vw, 3.95rem);
    font-weight: 770;
    letter-spacing: -.028em;
    text-wrap: balance;
}
.slide-caption h1 { font-size: clamp(2rem, 4.5vw, 4.15rem); }
.slide-caption p {
    max-width: 53ch;
    margin: .75rem auto 0;
    font-size: clamp(1.02rem, 1.75vw, 1.27rem);
    line-height: 1.5;
}
.slide-prices .slide-caption {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.slide-prices h2 { font-size: clamp(1.15rem, 2.3vw, 1.85rem); }
.slide-note { display: inline-block; margin-top: .22rem; font-size: .92em; }

.gallery-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .35rem .65rem;
    padding: .64rem 1rem;
    color: #eff7f4;
    background: var(--banner);
}
.gallery-button {
    min-width: 44px;
    min-height: 44px;
    padding: .3rem .62rem;
    border: 1px solid #839795;
    border-radius: .32rem;
    background: transparent;
    color: inherit;
    cursor: pointer;
}
.gallery-button:hover { background: #3b5355; }
.gallery-button:focus-visible { outline-color: var(--gold); }
.gallery-button > span { display: block; font-size: 1.65rem; line-height: .9; }
.slide-count { min-width: 3.8ch; text-align: center; font-size: .93rem; font-variant-numeric: tabular-nums; }
.rotation { margin-left: .32rem; font-size: .91rem; }

.features-section { padding-block: clamp(1.9rem, 4.2vw, 3.3rem); background: var(--soft); }
.features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(.8rem, 3vw, 2rem);
    padding: 0;
    list-style: none;
}
.features li { padding: clamp(.55rem, 2vw, 1.2rem); text-align: center; }
.features h2 { margin-top: .58rem; font-size: clamp(1.18rem, 2.35vw, 1.55rem); }
.features p { max-width: 34ch; margin: .52rem auto 0; }
.feature-icon.fa {
    display: inline-grid;
    min-width: 2.7rem;
    min-height: 2.7rem;
    place-items: center;
    border: 1px solid #a8c2c3;
    border-radius: 50%;
    background: #f8fcfa;
    color: #1e5663;
    font-size: 1.13rem;
}

.spa-life { padding-block: clamp(2.1rem, 5.5vw, 4.7rem); }
.section-heading { max-width: 48rem; margin: 0 auto clamp(1.45rem, 3.4vw, 2.6rem); text-align: center; }
.section-heading p { margin-top: .55rem; }
.posts-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: clamp(.9rem, 2.2vw, 1.65rem);
}
.spa-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--paper);
}
.spa-card > img { width: 100%; height: auto; }
.card-body { padding: clamp(1rem, 2.15vw, 1.55rem); }
.card-body p { margin-top: .55rem; }
.card-body p + h3 { margin-top: 1.45rem; }
.day-prices { color: var(--ink); }
.membership-table {
    width: 100%;
    margin-top: .9rem;
    border: 1px solid var(--border);
    border-collapse: collapse;
    color: var(--ink);
    font-size: .94rem;
    font-variant-numeric: tabular-nums;
}
.membership-table th, .membership-table td {
    padding: .54rem .47rem;
    border-top: 1px solid var(--border);
    text-align: right;
}
.membership-table th:first-child { text-align: left; }
.membership-table thead { background: var(--soft); }
.membership-table tbody th { font-weight: 520; }
.membership-table td:last-child { font-weight: 740; }
.button { margin-top: .85rem; background: #1e5566; color: #fff; }
.button:hover { background: #164352; }

.site-footer {
    padding-top: clamp(2rem, 4.65vw, 3.75rem);
    background: var(--footer);
    color: #edf2ed;
}
.site-footer h3 { color: #fff5d9; font-size: 1.17rem; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.6rem clamp(1rem, 3vw, 2.5rem);
}
.footer-grid p, .footer-grid address, .footer-links { margin-top: .62rem; }
.footer-grid address { font-style: normal; }
.footer-links { padding: 0; list-style: none; }
.footer-links li + li { margin-top: .4rem; }
.site-footer a { color: #fff1c8; }
.site-footer .button { border: 1px solid #748c8d; color: #fff; background: #254951; }
.site-footer .button:hover { background: #345b63; }
.site-footer a:focus-visible { outline-color: var(--gold); }
.copyright {
    margin-top: 1.65rem;
    padding-block: 1.05rem;
    border-top: 1px solid #5f7779;
    font-size: .9rem;
}

.refined {
    --bg: #f5f3ed;
    --head: #f9f3de;
    --soft: #e7eeea;
    --banner: #16292a;
    --footer: #172e30;
    --radius: .75rem;
}
.refined .gallery { padding-top: clamp(.7rem, 2.6vw, 1.35rem); }
.refined .slides {
    width: min(87rem, calc(100% - clamp(1rem, 4vw, 4rem)));
    overflow: hidden;
    border: 1px solid #756748;
    border-radius: var(--radius);
}
.refined .slide { align-items: end; justify-items: start; }
.refined .slide-caption {
    max-width: 36rem;
    padding: clamp(1rem, 3vw, 1.8rem);
    border: 1px solid #af9460;
    border-radius: .55rem;
    background: rgb(12 30 31 / 85%);
    text-align: left;
}
.refined h1, .refined .slide-caption h2, .refined #spa-title {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 600;
}
.refined .slide-caption h1, .refined .slide-caption h2 { text-wrap: pretty; }
.refined .slide-caption h1 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
.refined .slide-caption h2 { font-size: clamp(1.8rem, 3.9vw, 3.1rem); }
.refined .slide-prices h2 { font-size: clamp(1.15rem, 2.3vw, 1.65rem); }
.refined .slide-caption p { margin-left: 0; }
.refined .feature-icon.fa {
    min-width: 5.4rem;
    min-height: 5.4rem;
    font-size: 2.26rem;
}
.refined .features li { border-bottom: 1px solid #afc2b7; }
.refined .section-heading { margin-left: 0; text-align: left; }
.refined .posts-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    grid-template-areas: "admission masks" "admission location";
    align-items: stretch;
}
.refined .admission { grid-area: admission; align-self: start; }
.refined .masks { grid-area: masks; }
.refined .location { grid-area: location; }

@media (max-width: 950px) {
    .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .classic .admission { grid-row: span 2; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
    .slide { min-height: 21rem; padding: 1rem; }
    .classic .slide::after {
        background: linear-gradient(rgb(9 23 25 / 68%), rgb(9 23 25 / 84%));
    }
    .refined .gallery { padding-top: 0; }
    .refined .slides { width: 100%; border: 0; border-radius: 0; }
    .refined .slide {
        grid-template-rows: auto 1fr;
        align-items: start;
        align-content: start;
        min-height: 0;
        padding: 0;
    }
    .refined .slide-photo {
        position: static;
        width: 100%;
        height: auto;
        aspect-ratio: 2170 / 960;
        object-fit: contain;
    }
    .refined .slide-caption {
        width: 100%;
        max-width: none;
        padding: 1rem 1.1rem;
        border: 0;
        border-radius: 0;
        background: transparent;
    }
    .refined .gallery-controls { border-top: 1px solid #506762; }
    .features { gap: .55rem; }
    .features li { padding: .4rem .15rem; }
    .features p { font-size: .94rem; }
}
@media (max-width: 535px) {
    .header-inner { flex-direction: column; justify-content: center; padding-block: .57rem .64rem; gap: .34rem; }
    .logo { width: min(200px, 72vw); }
    #nav { justify-content: center; }
    .features { grid-template-columns: 1fr; }
    .features li { padding: .62rem .5rem .88rem; }
    .features li + li { border-top: 1px solid #afc2b7; }
    .refined .features li { border-bottom: none; }
    .posts-grid, .refined .posts-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; }
    .classic .admission { grid-row: auto; }
    .refined .posts-grid > article { grid-area: auto; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 360px) {
    .slide-prices .slide-caption { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
    .slide-prices .slide-caption p { margin-top: .3rem; }
    .membership-table { font-size: .875rem; }
    .membership-table th, .membership-table td { padding-inline: .3rem; }
}
@media (forced-colors: active) {
    .button { border: 1px solid ButtonText; }
}
