:root {
    --primary: #0f6b5f;
    --secondary: #17324d;
    --accent: #c79a3b;
    --ink: #17211f;
    --muted: #66716f;
    --line: #dfe7e3;
    --paper: #f7f6f2;
    --white: #fff;
    --danger: #a63d40;
    --success: #177245;
    --shadow: 0 18px 55px rgba(19, 34, 42, .12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 72%, white);
    outline-offset: 3px;
}

.container {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, .93);
    border-bottom: 1px solid rgba(223, 231, 227, .85);
    backdrop-filter: blur(18px);
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: 0;
    min-width: 0;
}

.brand-copy {
    min-width: 0;
}

.brand-logo {
    width: 48px;
    height: 48px;
    padding: 4px;
    object-fit: contain;
    flex: 0 0 48px;
    border: 1px solid rgba(223, 231, 227, .92);
    border-radius: 8px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 10px 24px rgba(15, 107, 95, .12);
}

.site-header .brand-logo {
    width: 72px;
    flex-basis: 72px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 10px 25px rgba(15, 107, 95, .25);
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #263836;
    font-weight: 600;
    font-size: .92rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: var(--white);
    width: 42px;
    height: 42px;
    border-radius: 8px;
}

.mobile-menu-button {
    display: none;
    border: 1px solid #b9c8c3;
    background: #f3f7f5;
    width: 42px;
    height: 42px;
    border-radius: 8px;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    content: "";
}

.menu-bars::before {
    transform: translateY(-6px);
}

.menu-bars::after {
    transform: translateY(4px);
}

.btn,
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover,
.icon-btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: var(--white);
    background: var(--primary);
    box-shadow: 0 12px 28px rgba(15, 107, 95, .24);
}

.btn-secondary {
    color: var(--white);
    background: var(--secondary);
}

.btn-ghost {
    color: var(--ink);
    background: rgba(255, 255, 255, .7);
    border-color: var(--line);
}

.btn-danger {
    color: var(--white);
    background: var(--danger);
}

.floating-join {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;
    color: var(--white);
    background: var(--accent);
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 500;
    font-size: .88rem;
    box-shadow: 0 16px 36px rgba(114, 77, 13, .26);
}

.floating-join:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero {
    min-height: calc(100vh - 74px);
    display: grid;
    align-items: end;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(9, 26, 34, .82), rgba(9, 26, 34, .52), rgba(9, 26, 34, .15)),
        var(--hero-image) center / cover no-repeat;
}

.hero-inner {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 84px 0 74px;
}

.eyebrow {
    color: var(--accent);
    font-weight: 900;
    text-transform: uppercase;
    font-size: .78rem;
    letter-spacing: .08em;
}

.hero h1,
.page-hero h1 {
    margin: 16px 0;
    max-width: 820px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.1rem, 5.2vw, 4.1rem);
    line-height: 1;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.hero p,
.page-hero p {
    max-width: 650px;
    color: rgba(255, 255, 255, .86);
    font-size: clamp(1rem, 2.2vw, 1.24rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-top: 54px;
    background: rgba(255, 255, 255, .22);
    border: 1px solid rgba(255, 255, 255, .22);
}

.hero-strip div {
    padding: 18px;
    background: rgba(10, 31, 41, .52);
}

.hero-strip strong {
    display: block;
    font-size: 1.6rem;
}

.slider-section {
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(115deg, #101b22, #18242a 58%, #11171b);
}

.slider-section .section-head {
    color: var(--white);
}

.slider-section .section-head h2 {
    max-width: 650px;
}

.showcase-slider {
    position: relative;
    min-height: 450px;
    perspective: 1400px;
}

.slider-stage {
    position: relative;
    height: 420px;
}

.slider-panel {
    position: absolute;
    inset: 0;
    width: min(720px, 82%);
    margin: auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: #11191f;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
    opacity: 0;
    pointer-events: none;
    transform: translateX(52%) scale(.76) rotateY(-18deg);
    transition: opacity .36s ease, transform .42s ease, filter .36s ease;
}

.slider-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-panel::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(0deg, rgba(9, 16, 20, .86), rgba(9, 16, 20, .08) 58%),
        linear-gradient(90deg, rgba(9, 16, 20, .55), transparent 50%);
}

.slider-panel.is-active {
    z-index: 4;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0) scale(1) rotateY(0);
}

.slider-panel.is-prev,
.slider-panel.is-next {
    z-index: 2;
    opacity: .58;
    filter: saturate(.78) brightness(.76);
}

.slider-panel.is-prev {
    transform: translateX(-42%) scale(.78) rotateY(18deg);
}

.slider-panel.is-next {
    transform: translateX(42%) scale(.78) rotateY(-18deg);
}

.slider-panel-copy {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 24px;
    z-index: 1;
    display: grid;
    gap: 10px;
    max-width: 540px;
}

.slider-panel-copy span {
    width: max-content;
    padding: 4px 8px;
    border-radius: 999px;
    color: #182421;
    background: var(--accent);
    font-size: .76rem;
}

.slider-panel-copy h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 2.6vw, 2.35rem);
    line-height: 1.06;
}

.slider-panel-copy p {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, .86);
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 24px;
}

.slider-arrow {
    width: 38px;
    padding: 0;
    color: var(--white);
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .2);
}

.slider-dots {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.slider-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .36);
    cursor: pointer;
}

.slider-dot.is-active {
    width: 28px;
    background: var(--accent);
}

.section {
    padding: 86px 0;
}

.section.alt {
    background: var(--white);
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.section-head h2,
.page-title {
    margin: 6px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.65rem, 2.8vw, 2.75rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.lead {
    max-width: 680px;
    color: var(--muted);
    font-size: 1.05rem;
}

.grid {
    display: grid;
    gap: 20px;
}

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

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(25, 42, 48, .05);
}

.card-body {
    padding: 22px;
}

.media-card img,
.facility-card img,
.trainer-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.facility-card img {
    height: 310px;
}

.home-classes-section {
    position: relative;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(10, 20, 25, .88), rgba(10, 20, 25, .66)),
        url("../images/pexels-gym-athlete.jpeg") center / cover fixed;
}

.home-classes-section .section-head {
    color: var(--ink);
    padding: 18px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .16);
}

.home-classes-section .section-head h2 {
    max-width: 640px;
    color: var(--ink);
}

.home-classes-section .section-head .eyebrow {
    color: var(--primary);
}

.home-classes-section .btn-ghost {
    color: var(--ink);
    background: var(--white);
    border-color: var(--line);
}

.home-classes-section .media-card {
    background: rgba(255, 255, 255, .94);
    border-color: rgba(255, 255, 255, .26);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}

.home-classes-section .media-card .muted {
    color: #5f6d69;
}

.home-classes-section .media-card h3,
.home-classes-section .media-card strong {
    color: var(--ink);
}

.card h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
    line-height: 1.2;
}

.muted {
    color: var(--muted);
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--secondary);
    background: #e9f2ef;
    font-weight: 800;
    font-size: .76rem;
}

.badge.warn {
    color: #684700;
    background: #fff2d2;
}

.badge.danger {
    color: var(--danger);
    background: #f8e3e3;
}

.badge.ok {
    color: var(--success);
    background: #e4f4eb;
}

.split {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    gap: 46px;
    align-items: center;
}

.split img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 8px;
}

.page-hero {
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(9, 26, 34, .82), rgba(9, 26, 34, .45)),
        var(--hero-image) center / cover no-repeat;
}

.page-hero .container {
    padding: 96px 0 76px;
}

.membership-hero {
    padding: 54px 0;
    background: #f2f5f0;
    border-bottom: 1px solid var(--line);
}

.membership-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: 42px;
    align-items: center;
}

.membership-hero h1 {
    max-width: 620px;
    margin: 12px 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.45rem);
    line-height: 1.04;
}

.membership-hero p {
    max-width: 640px;
    color: var(--muted);
    font-size: 1.02rem;
}

.membership-hero-media {
    position: relative;
    min-height: 310px;
}

.membership-hero-media img {
    width: 100%;
    aspect-ratio: 5 / 4;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.membership-hero-note {
    position: absolute;
    left: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--white);
    background: rgba(16, 27, 34, .86);
    border-radius: 8px;
}

.membership-hero-note strong {
    font-size: 1.45rem;
    line-height: 1;
}

.membership-hero-note span {
    color: rgba(255, 255, 255, .78);
    font-size: .82rem;
}

.compact-head {
    align-items: center;
    margin-bottom: 24px;
}

.compact-head .lead {
    max-width: 320px;
    margin: 0;
    font-size: .96rem;
}

.membership-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.membership-plan-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(25, 42, 48, .05);
}

.membership-plan-card.is-featured {
    border-color: color-mix(in srgb, var(--accent) 46%, var(--line));
}

.plan-card-top,
.plan-meta,
.plan-fees {
    display: grid;
    gap: 10px;
}

.plan-card-top {
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-bottom: 18px;
}

.plan-type {
    color: var(--primary);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.membership-plan-card h3 {
    margin: 0 0 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    line-height: 1.12;
}

.plan-price {
    margin: 18px 0;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.plan-price span {
    display: block;
    color: var(--secondary);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.1;
}

.plan-price small {
    color: var(--muted);
}

.plan-fees {
    margin: 0 0 16px;
}

.plan-fees div,
.plan-meta div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
}

.plan-fees dt,
.plan-meta span {
    color: var(--muted);
    font-size: .85rem;
}

.plan-fees dd,
.plan-meta strong {
    margin: 0;
    color: var(--ink);
    text-align: right;
    font-size: .92rem;
}

.plan-benefits {
    display: grid;
    gap: 8px;
    margin: 18px 0 22px;
    padding: 0;
    list-style: none;
}

.plan-benefits li {
    color: var(--muted);
    font-size: .92rem;
}

.plan-benefits li::before {
    color: var(--primary);
    content: "• ";
}

.plan-apply {
    width: 100%;
    margin-top: auto;
}

.membership-table th,
.membership-table td {
    white-space: nowrap;
}

.process-list {
    display: grid;
    gap: 12px;
}

.process-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.process-item span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--white);
    background: var(--primary);
    border-radius: 8px;
    font-size: .86rem;
}

.process-item strong {
    font-size: 1rem;
}

.faq-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.faq-item {
    padding: 20px 0;
    border-top: 1px solid var(--line);
}

.faq-item span {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.faq-item h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    line-height: 1.25;
}

.home-plans-section {
    background:
        linear-gradient(90deg, rgba(247, 246, 242, .94), rgba(247, 246, 242, .98)),
        #f7f6f2;
}

.home-plans-layout {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
}

.home-plans-intro {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 420px;
    padding: 26px;
    color: var(--white);
    background:
        linear-gradient(180deg, rgba(16, 27, 34, .88), rgba(16, 27, 34, .96)),
        url("../images/pexels-rustic-gym.jpeg") center / cover;
    border-radius: 8px;
}

.home-plans-intro h2 {
    margin: 10px 0 12px;
    max-width: 310px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.7rem, 3vw, 2.55rem);
    line-height: 1.05;
}

.home-plans-intro p {
    max-width: 320px;
    color: rgba(255, 255, 255, .78);
}

.home-plan-list {
    display: grid;
    gap: 14px;
}

.home-plan-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 240px);
    gap: 22px;
    align-items: stretch;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(25, 42, 48, .05);
}

.home-plan-card.is-featured {
    border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
}

.home-plan-card h3 {
    margin: 8px 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
}

.home-plan-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.home-plan-benefits li {
    padding: 5px 9px;
    color: var(--secondary);
    background: #eef4f1;
    border-radius: 999px;
    font-size: .78rem;
}

.home-plan-price {
    display: grid;
    align-content: center;
    gap: 7px;
    padding-left: 20px;
    border-left: 1px solid var(--line);
}

.home-plan-price strong {
    color: var(--secondary);
    font-size: 1.25rem;
    line-height: 1.1;
}

.home-plan-price span,
.home-plan-price small {
    color: var(--muted);
    font-size: .86rem;
}

.home-plan-price .btn {
    margin-top: 8px;
}

.form-shell,
.portal-card,
.table-shell {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-shell {
    padding: 28px;
}

.form-shell h1,
.form-shell h2,
.form-shell h3,
.portal-card h2,
.portal-card h3 {
    line-height: 1.16;
}

.form-shell h1 {
    font-size: 1.55rem;
}

.form-shell h2 {
    font-size: 1.35rem;
}

.form-shell h3,
.portal-card h3 {
    font-size: 1.05rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.field {
    display: grid;
    gap: 7px;
}

.field.full {
    grid-column: 1 / -1;
}

label {
    font-weight: 500;
    color: var(--muted);
    font-size: .92rem;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid #cfd9d5;
    border-radius: 8px;
    padding: 10px 12px;
    background: var(--white);
    color: var(--ink);
}

input[type="radio"],
input[type="checkbox"] {
    width: auto;
    min-height: auto;
    padding: 0;
}

input[type="radio"] {
    width: 20px;
    height: 20px;
}

textarea {
    min-height: 116px;
    resize: vertical;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-row span {
    color: var(--muted);
    font-weight: 500;
}

.checkbox-row input {
    width: 18px;
    min-height: 18px;
    margin-top: 4px;
}

.stepper {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 24px;
}

.step-button {
    white-space: nowrap;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    background: var(--white);
    font-weight: 500;
    color: var(--muted);
}

.step-button.active {
    color: var(--white);
    background: var(--primary);
    border-color: var(--primary);
}

.package-card,
.selected-plan {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.package-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--primary) 42%, var(--line));
    box-shadow: 0 16px 34px rgba(25, 42, 48, .09);
}

.selected-plan {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7fbf8;
}

.selected-plan div {
    display: grid;
    flex: 1 1 auto;
    min-width: 0;
}

.selected-plan span:not(.badge) {
    color: var(--muted);
    font-size: .92rem;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.choice-box {
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.mini-fieldset {
    margin: 18px 0 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.mini-fieldset legend {
    padding: 0 8px;
    color: var(--secondary);
    font-weight: 600;
}

.form-step[hidden],
.conditional[hidden] {
    display: none;
}

.alert {
    margin: 16px 0;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--white);
}

.alert.success {
    border-color: #b9e1ca;
    background: #edf8f1;
}

.alert.error {
    border-color: #e8bbbb;
    background: #fff0f0;
}

.site-footer {
    color: rgba(255, 255, 255, .78);
    background: #101b22;
    padding: 54px 0;
}

.site-footer .grid {
    align-items: start;
}

.site-footer .brand-logo {
    width: 92px;
    height: 70px;
    flex-basis: 92px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.site-footer .brand-mark {
    width: 70px;
    height: 70px;
}

.portal-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    background: #eef3f0;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    color: #d7e1de;
    background: #10232c;
    padding: 22px;
}

.sidebar .brand {
    color: var(--white);
    margin-bottom: 26px;
}

.sidebar .brand-logo,
.site-footer .brand-logo {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .18);
    box-shadow: none;
}

.site-footer .brand-logo {
    border: 0;
    background: transparent;
}

.side-section {
    margin: 20px 0 8px;
    color: #91aaa5;
    font-size: .74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.side-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    color: #e5efec;
    font-weight: 700;
}

.side-link:hover {
    background: rgba(255, 255, 255, .08);
}

.portal-main {
    min-width: 0;
}

.portal-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    padding: 0 28px;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.portal-content {
    padding: 28px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.stat {
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.stat strong {
    display: block;
    font-size: 1.5rem;
}

.table-shell {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: #4a5b58;
    background: #f3f7f5;
    font-size: .78rem;
    text-transform: uppercase;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.table-media {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
}

.table-media img {
    width: 82px;
    height: 58px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.form-image-preview {
    width: min(420px, 100%);
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.digital-card {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(15, 107, 95, .96), rgba(23, 50, 77, .96)),
        url("../images/pexels-health-club.jpeg") center / cover;
    border-radius: 8px;
    padding: 24px;
}

.qr {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    background:
        linear-gradient(90deg, #111 10px, transparent 10px) 0 0 / 22px 22px,
        linear-gradient(#111 10px, transparent 10px) 0 0 / 22px 22px,
        #fff;
    border: 8px solid #fff;
    border-radius: 6px;
}

.auth-body {
    color: #202927;
    background: #f4f1ea;
    font-family: "Segoe UI", Arial, sans-serif;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
    background:
        linear-gradient(90deg, rgba(244, 241, 234, .95), rgba(244, 241, 234, .72)),
        #f4f1ea;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(280px, .92fr) minmax(360px, 440px);
    width: min(980px, 100%);
    min-height: 610px;
    overflow: hidden;
    border: 1px solid #ddd5c7;
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 18px 44px rgba(32, 41, 39, .10);
}

.auth-visual {
    position: relative;
    min-height: 100%;
    background: #16221f;
}

.auth-visual img {
    width: 100%;
    height: 100%;
    min-height: 610px;
    object-fit: cover;
    filter: saturate(.86) contrast(.96);
}

.auth-visual::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, rgba(13, 22, 20, .72), rgba(13, 22, 20, .08) 54%);
}

.auth-visual-copy {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 26px;
    z-index: 1;
    color: rgba(255, 255, 255, .86);
}

.auth-visual-copy span {
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: .76rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-visual-copy strong {
    display: block;
    color: var(--white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
    line-height: 1.05;
}

.auth-visual-copy p {
    max-width: 360px;
    margin: 10px 0 0;
}

.auth-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: 44px;
    background: #fffdf9;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    margin-bottom: 34px;
    color: #5e6a66;
    font-size: .82rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.auth-logo,
.auth-logo-mark {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
}

.auth-logo {
    object-fit: contain;
}

.auth-logo-mark {
    font-size: .94rem;
}

.auth-box h1 {
    margin: 0 0 8px;
    color: #17211f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    line-height: 1.08;
}

.auth-box .muted {
    max-width: 330px;
    margin: 0 0 24px;
    color: #68736f;
}

.auth-box form {
    display: grid;
    gap: 16px;
}

.auth-box input {
    min-height: 42px;
    border-color: #d8d0c4;
    background: #fff;
}

.auth-box .checkbox-row {
    align-items: center;
}

.auth-actions {
    margin: 6px 0 0;
}

.auth-link {
    color: #5e6a66;
    font-size: .9rem;
}

.auth-link:hover {
    color: var(--primary);
}

.pagination {
    margin-top: 18px;
}

@media (max-width: 1040px) {
    .nav-links {
        display: none;
        position: absolute;
        left: 16px;
        right: 16px;
        top: 74px;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .grid-4,
    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .membership-hero-grid,
    .membership-plan-grid,
    .faq-list,
    .home-plans-layout {
        grid-template-columns: 1fr;
    }

    .home-plans-intro {
        min-height: 300px;
    }

    .membership-hero-media {
        max-width: 560px;
    }

    .portal-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-visual {
        min-height: 220px;
    }

    .auth-visual img {
        min-height: 220px;
    }
}

@media (max-width: 760px) {
    .nav-row {
        gap: 10px;
    }

    .brand {
        flex: 1 1 auto;
    }

    .brand-logo {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .site-header .brand-logo {
        width: 58px;
        flex-basis: 58px;
    }

    .site-footer .brand-logo {
        width: 84px;
        height: 62px;
        flex-basis: 84px;
    }

    .nav-actions {
        flex: 0 0 auto;
        margin-left: auto;
    }

    .menu-toggle {
        display: none !important;
    }

    .mobile-menu-button {
        display: inline-grid !important;
        place-items: center;
        flex: 0 0 42px;
        position: absolute;
        top: 16px;
        right: max(16px, calc(100vw - 374px));
        background: #f3f7f5;
        border-color: #b9c8c3;
    }

    .hero {
        min-height: 700px;
    }

    .hero-strip,
    .choice-grid,
    .grid-2,
    .grid-3,
    .grid-4,
    .split,
    .form-grid,
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .membership-hero {
        padding: 38px 0;
    }

    .membership-hero-grid {
        gap: 24px;
    }

    .membership-hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.45rem);
    }

    .membership-hero-media {
        min-height: 0;
    }

    .compact-head .lead {
        margin-top: 10px;
        max-width: none;
    }

    .plan-fees div,
    .plan-meta div {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .plan-fees dd,
    .plan-meta strong {
        text-align: left;
    }

    .membership-table th,
    .membership-table td {
        white-space: normal;
    }

    .home-classes-section {
        background-attachment: scroll;
    }

    .home-plan-card {
        grid-template-columns: 1fr;
    }

    .home-plan-price {
        padding: 16px 0 0;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .section,
    .page-hero .container {
        padding: 58px 0;
    }

    .section-head {
        display: block;
    }

    .selected-plan {
        align-items: flex-start;
        flex-direction: column;
    }

    .showcase-slider {
        min-height: 410px;
    }

    .slider-stage {
        height: 360px;
    }

    .slider-panel {
        width: 100%;
        transform: translateX(30%) scale(.86);
    }

    .slider-panel.is-prev,
    .slider-panel.is-next {
        opacity: 0;
    }

    .slider-panel.is-active {
        transform: translateX(0) scale(1);
    }

    .slider-panel-copy {
        left: 18px;
        right: 18px;
        bottom: 18px;
    }

    .slider-panel-copy h3 {
        font-size: clamp(1.45rem, 8vw, 2rem);
    }

    .nav-actions .btn-ghost {
        display: none;
    }

    .nav-actions .btn-primary {
        display: none;
    }

    .hero h1,
    .page-hero h1 {
        font-size: clamp(1.75rem, 7vw, 2.3rem);
        line-height: 1.04;
        max-width: calc(100vw - 32px);
        overflow-wrap: anywhere;
    }

    .hero h1 {
        font-size: clamp(1.85rem, 8vw, 2.45rem);
    }

    .page-hero p {
        max-width: calc(100vw - 32px);
    }

    .section-head h2,
    .page-title {
        font-size: clamp(1.45rem, 6.6vw, 2rem);
    }

    .brand small {
        display: none;
    }

    .floating-join {
        left: 18px;
        right: 18px;
        bottom: 18px;
        justify-content: center;
    }

    .portal-content {
        padding: 18px;
    }

    .auth-page {
        padding: 16px;
    }

    .auth-box {
        padding: 26px;
    }

    .auth-brand {
        margin-bottom: 24px;
    }

    .auth-logo,
    .auth-logo-mark {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
    }

    .auth-box h1 {
        font-size: 1.7rem;
    }
}
