:root {
    --bg: #f4efe7;
    --bg-strong: #e6d5b8;
    --surface: #fffdf8;
    --surface-strong: #ffffff;
    --ink: #1a1815;
    --muted: #62584c;
    --line: #d9c5a5;
    --accent: #b07a2a;
    --accent-dark: #8e5f16;
    --charcoal: #171717;
    --ok: #275c3d;
    --warn: #8a6118;
    --danger: #842b2b;
    --shadow: 0 20px 45px rgba(23, 23, 23, 0.1);
    --radius: 24px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top right, rgba(176, 122, 42, 0.12), transparent 28%),
        linear-gradient(180deg, #f8f3eb 0%, var(--bg) 42%, #f6f1e8 100%);
}

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

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

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

.container {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: var(--accent-dark);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar {
    background: #111;
    color: #f5e9d7;
    font-size: 0.95rem;
}

.topbar__inner,
.navbar__inner,
.page-hero__split,
.hero__grid,
.cta-strip,
.booking-layout,
.account-layout,
.detail-layout,
.contact-layout {
    display: flex;
    gap: 1.5rem;
}

.topbar__inner {
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0;
}

.topbar__inner p {
    margin: 0;
}

.topbar__contact {
    display: flex;
    gap: 1rem;
}

.navbar {
    backdrop-filter: blur(14px);
    background: rgba(255, 253, 248, 0.92);
    border-bottom: 1px solid rgba(176, 122, 42, 0.18);
}

.navbar__inner {
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.brand__mark {
    width: 3.4rem;
    height: 3.4rem;
    display: grid;
    place-items: center;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--accent), #d8ae6e);
    color: #fff;
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.08em;
}

.brand strong,
.site-footer h2,
.site-footer h3,
.hero h1,
.section-heading h2,
.page-hero h1,
.auth-card h1,
.history-card h2,
.equipment-card h2,
.equipment-card h3,
.sidebar-card h2,
.contact-card h2,
.form-card h2 {
    font-family: "Bebas Neue", Impact, sans-serif;
    letter-spacing: 0.03em;
}

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

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

.nav-desktop,
.nav-mobile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-desktop a,
.nav-mobile a,
.nav-desktop button,
.nav-mobile button {
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    color: var(--ink);
}

.nav-desktop a.is-active {
    background: rgba(176, 122, 42, 0.12);
    border-color: rgba(176, 122, 42, 0.18);
}

.nav-button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.95rem 1.4rem;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 700;
    transition: 180ms ease;
}

.button--primary,
.nav-button {
    background: linear-gradient(135deg, var(--accent), #c6964e);
    color: #fff;
    box-shadow: 0 14px 28px rgba(176, 122, 42, 0.18);
}

.button--ghost {
    background: transparent;
    border-color: rgba(23, 23, 23, 0.16);
}

.button:hover,
.nav-button:hover {
    transform: translateY(-1px);
}

.button--full {
    width: 100%;
}

.menu-toggle {
    display: none;
    border: 1px solid rgba(23, 23, 23, 0.16);
    background: #fff;
    border-radius: 999px;
    padding: 0.8rem 1rem;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 0 1rem 1rem;
}

.nav-mobile.is-open {
    display: flex;
}

.hero,
.page-hero,
.auth-shell {
    padding: 5rem 0 3rem;
}

.hero__grid,
.page-hero__split,
.detail-layout,
.booking-layout,
.account-layout,
.contact-layout {
    align-items: stretch;
}

.hero__grid > *,
.detail-layout > *,
.booking-layout > *,
.account-layout > *,
.contact-layout > * {
    flex: 1 1 0;
}

.hero h1,
.page-hero h1,
.auth-card h1 {
    margin: 0 0 1rem;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 0.95;
}

.hero p,
.page-hero p,
.auth-card p {
    margin: 0;
    max-width: 42rem;
    color: var(--muted);
    font-size: 1.15rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.price-box,
.hero-card,
.sidebar-card,
.form-card,
.contact-card,
.auth-card,
.category-card,
.equipment-card,
.history-card,
.empty-state,
.cta-strip {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(176, 122, 42, 0.22);
    box-shadow: var(--shadow);
}

.hero-card,
.price-box,
.sidebar-card,
.form-card,
.contact-card,
.auth-card,
.category-card,
.empty-state {
    border-radius: var(--radius);
}

.hero-card,
.price-box,
.sidebar-card,
.contact-card,
.form-card,
.auth-card {
    padding: 2rem;
}

.hero__panel {
    align-self: flex-start;
}

.hero-card ul,
.sidebar-list,
.footer-list,
.detail-list,
.booking-mini-list {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    color: var(--muted);
}

.price-box {
    align-self: center;
    min-width: 280px;
}

.price-box p,
.price-box span {
    color: var(--muted);
}

.price-box strong {
    display: block;
    font-size: 2rem;
    margin: 0.35rem 0;
}

.section {
    padding: 1.5rem 0 4rem;
}

.section--contrast {
    background: linear-gradient(180deg, rgba(216, 190, 149, 0.12), rgba(255, 255, 255, 0));
}

.section-heading {
    margin-bottom: 1.75rem;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.category-grid,
.equipment-grid {
    display: grid;
    gap: 1.5rem;
}

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

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

.category-card,
.equipment-card {
    overflow: hidden;
}

.category-card {
    padding: 1.8rem;
}

.category-card__count,
.equipment-card__category {
    margin: 0 0 0.55rem;
    color: var(--accent-dark);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.category-card h3,
.equipment-card h2,
.equipment-card h3,
.sidebar-card h2,
.contact-card h2,
.form-card h2 {
    margin: 0 0 0.6rem;
    font-size: 2rem;
}

.category-card p,
.equipment-card p,
.sidebar-card p,
.contact-card p,
.form-card p,
.history-card__note {
    color: var(--muted);
}

.category-card a,
.equipment-card__meta a {
    color: var(--accent-dark);
    font-weight: 700;
}

.equipment-card__media,
.detail-media {
    min-height: 220px;
    background:
        linear-gradient(135deg, rgba(23, 23, 23, 0.7), rgba(23, 23, 23, 0.15)),
        linear-gradient(135deg, #cab08c, #8d6a37);
    background-size: cover;
    background-position: center;
}

.detail-layout__main {
    flex: 1.15 1 0;
    min-width: 0;
}

.detail-layout__aside {
    flex: 0.85 1 0;
}

.detail-media {
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid rgba(176, 122, 42, 0.18);
    box-shadow: var(--shadow);
    background:
        linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(244, 239, 231, 0.98));
}

.detail-media__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 520px;
    padding: 1.5rem;
    overflow: hidden;
    border-radius: calc(var(--radius) - 0.35rem);
    background: #fff;
    border: 1px solid rgba(176, 122, 42, 0.14);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.55),
        0 12px 30px rgba(23, 23, 23, 0.06);
}

.detail-media__image {
    width: 100%;
    max-width: 100%;
    max-height: 480px;
    object-fit: contain;
    object-position: center;
}

.detail-media__placeholder {
    color: var(--muted);
    font-weight: 700;
}

.equipment-card__body {
    padding: 1.5rem;
}

.equipment-card__meta,
.cta-strip,
.history-card__header,
.filter-row,
.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.filter-row {
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.filter-pill {
    padding: 0.8rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(176, 122, 42, 0.18);
    background: rgba(255, 255, 255, 0.75);
}

.filter-pill.is-active {
    background: var(--charcoal);
    color: #fff;
}

.detail-text {
    margin-top: 1.5rem;
    padding: 1.75rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(176, 122, 42, 0.18);
    border-radius: var(--radius);
}

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

.spec-grid dt {
    color: var(--muted);
    font-size: 0.95rem;
}

.spec-grid dd {
    margin: 0.25rem 0 0;
    font-weight: 700;
}

.sidebar-prices,
.sidebar-list,
.detail-list,
.footer-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.sidebar-prices li,
.detail-list li,
.footer-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(176, 122, 42, 0.18);
}

.sidebar-list li,
.booking-mini-list li {
    margin-bottom: 0.75rem;
}

.selected-item {
    margin-top: 1.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(176, 122, 42, 0.18);
}

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

.form-grid label {
    display: grid;
    gap: 0.45rem;
    color: var(--ink);
    font-weight: 700;
}

.is-hidden {
    display: none !important;
}

.span-2 {
    grid-column: 1 / -1;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(23, 23, 23, 0.14);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.92);
    padding: 0.95rem 1rem;
    color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(176, 122, 42, 0.26);
    border-color: var(--accent);
}

.auth-card {
    display: grid;
    gap: 2rem;
    padding: 2rem;
}

.auth-card--wide {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.auth-link {
    margin: 0;
    color: var(--muted);
}

.flash-stack {
    padding-top: 1rem;
}

.flash {
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid;
}

.flash--success {
    background: rgba(39, 92, 61, 0.12);
    border-color: rgba(39, 92, 61, 0.28);
    color: var(--ok);
}

.flash--error {
    background: rgba(132, 43, 43, 0.1);
    border-color: rgba(132, 43, 43, 0.2);
    color: var(--danger);
}

.flash ul {
    margin: 0.75rem 0 0;
    padding-left: 1.15rem;
}

.history-card {
    padding: 1.75rem;
    border-radius: 1.4rem;
    margin-bottom: 1rem;
}

.history-card__items {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.history-card__items li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(176, 122, 42, 0.18);
}

.status-chip {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    background: rgba(176, 122, 42, 0.15);
    color: var(--warn);
    font-weight: 700;
}

.status-chip.is-ok {
    background: rgba(39, 92, 61, 0.14);
    color: var(--ok);
}

.status-chip.is-warning {
    background: rgba(176, 122, 42, 0.16);
    color: var(--warn);
}

.empty-state {
    padding: 2rem;
    text-align: center;
}

.cta-strip {
    padding: 2rem;
    border-radius: 1.6rem;
}

.site-footer {
    background: #121212;
    color: #f5e9d7;
    margin-top: 4rem;
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1.4fr 1fr 1fr;
}

.footer-grid p,
.footer-list {
    color: rgba(245, 233, 215, 0.8);
}

.footer-list a {
    color: #fff;
}

.pager {
    margin-top: 2rem;
    justify-content: center;
}

.pager__link,
.pager__state {
    padding: 0.85rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(176, 122, 42, 0.18);
    background: rgba(255, 255, 255, 0.74);
}

.pager__link.is-disabled {
    opacity: 0.5;
}

@media (max-width: 980px) {
    .hero__grid,
    .page-hero__split,
    .detail-layout,
    .booking-layout,
    .account-layout,
    .contact-layout,
    .cta-strip,
    .topbar__inner {
        flex-direction: column;
    }

    .category-grid,
    .equipment-grid,
    .footer-grid,
    .auth-card--wide {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: auto;
    }

    .nav-desktop {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .topbar__contact {
        flex-wrap: wrap;
    }
}

@media (max-width: 720px) {
    .hero,
    .page-hero,
    .auth-shell {
        padding-top: 3.5rem;
    }

    .container {
        width: min(100% - 1.2rem, 1180px);
    }

    .hero h1,
    .page-hero h1,
    .auth-card h1 {
        font-size: 2.8rem;
    }

    .spec-grid {
        grid-template-columns: 1fr;
    }

    .detail-media {
        min-height: 320px;
        padding: 0.85rem;
    }

    .detail-media__link {
        min-height: 320px;
        padding: 1rem;
    }

    .detail-media__image {
        max-height: 360px;
    }

    .equipment-card__meta,
    .history-card__header,
    .pager {
        flex-direction: column;
        align-items: flex-start;
    }
}
