:root {
    --ink: #101820;
    --ink-2: #27323f;
    --paper: #f6f3ec;
    --surface: #ffffff;
    --line: #cbd4ca;
    --teal: #0b615d;
    --green: #4f7f16;
    --accent-on-dark: #b9ea69;
    --gold: #e0a32e;
    --coral: #a9442f;
    --muted: #4d5965;
    --shadow: 0 18px 45px rgba(16, 24, 32, .12);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 82px;
    padding: 14px clamp(18px, 4vw, 56px);
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.brand img {
    width: 170px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    padding: 10px 13px;
    border-radius: 8px;
    color: var(--ink-2);
    font-weight: 700;
    font-size: 14px;
}

.main-nav a:hover,
.main-nav .nav-admin {
    background: #edf4ee;
    color: var(--teal);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
}

main {
    min-height: calc(100vh - 180px);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: end;
    padding: clamp(42px, 7vw, 88px) clamp(18px, 4vw, 56px) 34px;
    background:
        linear-gradient(90deg, rgba(16, 24, 32, .92), rgba(16, 24, 32, .78)),
        url("../../uploads/provided/TotalStasisLogo.png") right 6% center / min(42vw, 520px) no-repeat,
        var(--ink);
    color: #ffffff;
}

.hero-copy {
    max-width: 820px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--green);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 900;
}

.hero .eyebrow,
.offer-hero .eyebrow,
.page-hero .eyebrow {
    color: var(--accent-on-dark);
}

.hero h1,
.offer-hero h1,
.page-hero h1 {
    margin: 0;
    max-width: 780px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.02;
}

.hero p,
.offer-hero p {
    max-width: 690px;
    color: rgba(255, 255, 255, .9);
    font-size: 18px;
}

.hero-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    max-width: 680px;
    margin-top: 26px;
}

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

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 13px;
    background: #ffffff;
    color: var(--ink);
}

textarea {
    resize: vertical;
}

.hero-search input {
    min-height: 56px;
    border: 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    padding: 11px 18px;
    background: var(--green);
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(131, 183, 53, .24);
}

.button:hover {
    filter: brightness(.97);
}

.button-light {
    background: #eef3ec;
    color: var(--ink);
    box-shadow: none;
}

.button-small {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 13px;
}

.button-full {
    width: 100%;
}

.hero-panel {
    display: grid;
    gap: 12px;
}

.metric {
    min-height: 86px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(8px);
}

.metric strong {
    display: block;
    font-size: 28px;
    line-height: 1.1;
}

.metric span {
    color: rgba(255, 255, 255, .88);
    font-size: 13px;
}

.catalogue {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 26px;
    padding: 30px clamp(18px, 4vw, 56px) 62px;
}

.filters {
    align-self: start;
    position: sticky;
    top: 104px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 8px 22px rgba(16, 24, 32, .06);
}

.filters h2,
.facts h2,
.offer-form-panel h2,
.section-heading h2,
.content-page h2 {
    margin: 0 0 14px;
    line-height: 1.15;
}

.field {
    display: grid;
    gap: 7px;
    margin-bottom: 14px;
    color: var(--ink-2);
    font-weight: 800;
    font-size: 14px;
}

.field b {
    color: var(--coral);
}

.filter-group {
    display: grid;
    gap: 8px;
    margin: 20px 0;
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--ink-2);
    font-weight: 650;
    font-size: 14px;
}

.check input {
    width: 18px;
    height: 18px;
    min-height: 18px;
    margin-top: 2px;
}

.check em {
    color: var(--muted);
    font-style: normal;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-heading > span {
    color: var(--muted);
    font-weight: 800;
}

.domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 18px;
}

.domain-card {
    display: grid;
    grid-template-rows: 132px 1fr auto;
    min-height: 368px;
    border: 1px solid #c3cec0;
    border-top: 4px solid var(--teal);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 14px 34px rgba(16, 24, 32, .1);
}

.domain-card:nth-child(4n+2) {
    border-top-color: #8b6416;
}

.domain-card:nth-child(4n+3) {
    border-top-color: #9b4b35;
}

.domain-card:nth-child(4n+4) {
    border-top-color: #315e8a;
}

.domain-logo {
    display: grid;
    place-items: center;
    height: 132px;
    padding: 16px;
    background: #e4ece0;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.domain-card:nth-child(4n+2) .domain-logo {
    background: #f1eadb;
}

.domain-card:nth-child(4n+3) .domain-logo {
    background: #f3e7e3;
}

.domain-card:nth-child(4n+4) .domain-logo {
    background: #e5edf4;
}

.domain-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 100%;
}

.domain-logo-text {
    font-size: 56px;
    font-weight: 950;
    color: var(--teal);
    text-transform: uppercase;
}

.domain-card-body {
    padding: 18px;
}

.domain-card h3 {
    margin: 0 0 10px;
    overflow-wrap: anywhere;
    font-size: 22px;
}

.domain-card p {
    min-height: 72px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.domain-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.domain-tags span {
    border: 1px solid #cbd7c8;
    border-radius: 999px;
    padding: 4px 9px;
    color: var(--ink-2);
    background: #f7faf4;
    font-size: 12px;
    font-weight: 800;
}

.domain-card > .button {
    margin: 0 18px 18px;
}

.offer-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 360px);
    gap: 26px;
    align-items: center;
    min-height: 420px;
    padding: clamp(46px, 7vw, 86px) clamp(18px, 4vw, 56px);
    background:
        linear-gradient(90deg, rgba(16, 24, 32, .94), rgba(17, 122, 117, .7)),
        var(--ink);
    background-size: cover;
    background-position: center;
    color: #ffffff;
}

.offer-logo {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    padding: 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
}

.offer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.offer-layout {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 680px);
    gap: 26px;
    align-items: start;
    padding: 34px clamp(18px, 4vw, 56px) 68px;
}

.facts,
.offer-form-panel,
.content-page .prose {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.facts {
    padding: 20px;
}

.facts dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.facts dl > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf0ec;
}

.facts dt {
    color: var(--muted);
    font-weight: 800;
}

.facts dd {
    margin: 0;
    text-align: right;
    font-weight: 850;
}

.small-note {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.offer-form-panel {
    padding: clamp(22px, 4vw, 34px);
}

.offer-form-panel > p {
    color: var(--muted);
}

.stack-form {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.hidden-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.terms-check a {
    color: var(--teal);
    text-decoration: underline;
}

.page-hero {
    padding: clamp(46px, 7vw, 84px) clamp(18px, 4vw, 56px);
    background: var(--ink);
    color: #ffffff;
}

.page-hero.compact {
    min-height: 240px;
}

.content-page {
    padding: 34px clamp(18px, 4vw, 56px) 68px;
}

.content-page .prose {
    max-width: 920px;
    padding: clamp(22px, 4vw, 42px);
}

.prose p {
    color: var(--ink-2);
    font-size: 17px;
}

.contact-form {
    max-width: 680px;
    margin-top: 28px;
}

.flash-stack {
    position: fixed;
    top: 98px;
    right: 18px;
    z-index: 40;
    display: grid;
    gap: 10px;
    width: min(420px, calc(100vw - 36px));
}

.flash {
    border-radius: 8px;
    padding: 13px 15px;
    box-shadow: var(--shadow);
    font-weight: 800;
}

.flash-success {
    background: #e9f6df;
    color: #24430f;
    border: 1px solid #b9d99c;
}

.flash-error {
    background: #fff0eb;
    color: #7a2d19;
    border: 1px solid #e4b2a3;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px clamp(18px, 4vw, 56px);
    background: #ffffff;
    border-top: 1px solid var(--line);
}

.site-footer span {
    display: block;
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--ink-2);
    font-weight: 800;
}

.cookie-banner {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 50;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    width: min(680px, calc(100vw - 36px));
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

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

.cookie-banner p {
    margin: 0;
    color: var(--ink-2);
    font-size: 14px;
}

@media (max-width: 980px) {
    .hero,
    .offer-hero,
    .catalogue,
    .offer-layout {
        grid-template-columns: 1fr;
    }

    .filters {
        position: static;
    }
}

@media (max-width: 760px) {
    .site-header {
        min-height: 72px;
    }

    .brand img {
        width: 142px;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 18px 18px;
        background: #ffffff;
        border-bottom: 1px solid var(--line);
    }

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

    .hero {
        padding-top: 38px;
        background-position: center 38px;
        background-size: 360px auto;
    }

    .hero-search,
    .cookie-banner {
        grid-template-columns: 1fr;
    }

    .domain-card {
        min-height: 0;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
