/* SPIRIT public site — visual system shared with AlViS */

:root {
    --blue: #0071bc;
    --blue-dark: #045a96;
    --blue-deep: #06284a;
    --navy: #071525;
    --ink: #16324f;
    --muted: #5c738a;
    --line: #d7e4f0;
    --paper: #f4f8fc;
    --white: #ffffff;
    --cyan: #3db5ff;
    --shadow: 0 18px 50px rgba(7, 32, 64, 0.08);
    --header: 64px;
    --font: "Source Sans 3", "Segoe UI", sans-serif;
    --display: "Manrope", "Segoe UI", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(900px 420px at 100% -10%, rgba(0, 113, 188, 0.08), transparent 60%),
        var(--paper);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--blue);
    text-decoration: none;
}

button,
input {
    font-family: inherit;
}

:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: var(--blue);
    color: white;
    padding: 0.5rem 0.8rem;
    z-index: 100;
}

.skip-link:focus {
    top: 0.5rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

main [id] {
    scroll-margin-top: var(--header);
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--header);
    overflow: visible;
    background: transparent;
    border-bottom: 1px solid rgba(0, 113, 188, 0.12);
    box-shadow: 0 8px 30px rgba(7, 32, 64, 0.04);
}

/* Blur stays on the pseudo-element. backdrop-filter on the header
   would trap the mobile menu and collapse it to a thin strip. */
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    pointer-events: none;
}

.header-inner {
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.menu {
    flex: 1 1 auto;
    min-width: 0;
}

#MENU_LIST {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.05rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

#MENU_LIST > li {
    position: relative;
}

.site-header .list-item {
    display: flex;
    align-items: center;
    gap: 0.05rem;
    min-height: 42px;
    padding: 0 0.35rem 0 0.15rem;
    border-radius: 999px;
    color: var(--blue-deep);
}

.site-header .list-item > a.text {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 0.45rem;
    color: inherit;
    font-family: var(--display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.site-header .list-item:hover,
#MENU_LIST > li.active > .list-item,
#MENU_LIST > li.is-open > .list-item {
    background: rgba(0, 113, 188, 0.1);
    color: var(--blue-dark);
}

.arr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.arrow {
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

#MENU_LIST > li.is-open > .list-item .arrow {
    transform: rotate(-135deg);
}

.sublist {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    margin: 0;
    padding: 0.45rem;
    list-style: none;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(7, 32, 64, 0.14);
    z-index: 50;
}

.list-subitem a {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 600;
}

.list-subitem a:hover {
    background: #e8f4fc;
    color: var(--blue-dark);
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex: 0 0 auto;
}

.lang {
    display: inline-flex;
    padding: 3px;
    border-radius: 999px;
    background: #e7f1f9;
}

.lang-link {
    min-width: 2.3rem;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    color: var(--blue-deep);
    font-family: var(--display);
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
}

.lang-link.is-current {
    background: var(--blue);
    color: white;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    padding: 0;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--blue-deep);
    border-radius: 2px;
}

.nav-toggle .visually-hidden {
    display: none;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.55rem 1.05rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--display);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(180deg, #1b8ad4, var(--blue));
    color: white;
    box-shadow: 0 10px 24px rgba(0, 113, 188, 0.28);
}

.btn-primary:hover {
    background: var(--blue-dark);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-line {
    background: white;
    color: var(--blue-dark);
    border-color: #b9d6ea;
}

.btn-line:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.btn-zone {
    background: var(--blue-deep);
    color: white;
    min-height: 40px;
    padding: 0.4rem 0.85rem;
    font-size: 0.86rem;
}

.btn-zone:hover {
    background: var(--blue);
    color: white;
}

/* Home */

.page-home {
    width: 100%;
}

.hero {
    position: relative;
    overflow: hidden;
    color: white;
    background:
        radial-gradient(700px 380px at 85% 20%, rgba(61, 181, 255, 0.35), transparent 60%),
        radial-gradient(500px 300px at 10% 80%, rgba(0, 113, 188, 0.45), transparent 55%),
        linear-gradient(155deg, #04101f 0%, #07315d 48%, #0a6aaf 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 85%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    width: min(1180px, calc(100% - 2.5rem));
    margin: 0 auto;
    padding: 3.4rem 0 3rem;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.85fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-inner > * {
    min-width: 0;
}

.eyebrow {
    margin: 0 0 0.7rem;
    color: #9ad7ff;
    font-family: var(--display);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.section-title,
.card h2,
.prose h2,
.site-footer h2 {
    font-family: var(--display);
    letter-spacing: -0.03em;
}

.hero h1 {
    margin: 0 0 0.9rem;
    font-size: clamp(2.1rem, 4vw, 3.35rem);
    line-height: 1.08;
}

.lede {
    max-width: 40rem;
    margin: 0 0 1.3rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1.6rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.stats li {
    padding: 0.75rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
}

.stats strong {
    display: block;
    font-family: var(--display);
    font-size: 1.25rem;
    line-height: 1.1;
}

.stats span {
    display: block;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
}

.hero-photo {
    margin: 0;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.hero-photo img {
    display: block;
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: center 42%;
    transform: scale(1.12);
}

.home-body {
    width: min(1180px, calc(100% - 2.5rem));
    margin: 0 auto;
    padding: 2.6rem 0 3.5rem;
}

.section-title {
    margin: 0 0 0.35rem;
    color: var(--blue-deep);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.section-copy {
    max-width: 46rem;
    margin: 0 0 1.2rem;
    color: var(--muted);
}

.area-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin: 0 0 1.6rem;
}

.area {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.15rem 1.15rem 1.1rem;
    background: white;
    border: 1px solid rgba(0, 113, 188, 0.1);
    border-radius: 18px;
    box-shadow: var(--shadow);
    color: inherit;
}

.area:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(7, 32, 64, 0.12);
    color: inherit;
}

.domain-ico {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 0.75rem;
    border-radius: 12px;
    background: #e7f3fb;
    color: var(--blue);
}

.domain-ico svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.area h2 {
    margin: 0 0 0.45rem;
    color: var(--blue-deep);
    font-family: var(--display);
    font-size: 1.12rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.area p {
    margin: 0 0 0.9rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.area .more {
    margin-top: auto;
    color: var(--blue);
    font-family: var(--display);
    font-weight: 800;
    font-size: 0.88rem;
}

.story {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 1rem;
}

.story-copy,
.story-aside,
.card,
.toc,
.address,
.product {
    background: white;
    border: 1px solid rgba(0, 113, 188, 0.1);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.story-copy,
.story-aside {
    padding: 1.4rem 1.45rem;
}

.story-copy p {
    margin: 0.4rem 0 0;
}

.story-aside {
    background: linear-gradient(180deg, #08345f, #0a5f9e);
    color: white;
    border: 0;
}

.story-aside h2 {
    margin: 0 0 0.45rem;
    color: white;
    font-family: var(--display);
    font-size: 1.35rem;
}

.story-aside p {
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.84);
}

.trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.3rem 0 0;
    padding: 0;
    list-style: none;
}

.trust a,
.trust span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 148px;
    height: 74px;
    padding: 0.4rem 0.6rem;
    background: white;
    border: 1px solid rgba(0, 113, 188, 0.1);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.trust img {
    max-height: 54px;
    width: auto;
    object-fit: contain;
}

/* Inner pages */

.page-hero {
    color: white;
    background:
        radial-gradient(700px 280px at 90% 0%, rgba(61, 181, 255, 0.28), transparent 60%),
        linear-gradient(155deg, #04101f 0%, #07315d 55%, #0a6aaf 100%);
}

.page-hero-inner {
    width: min(1180px, calc(100% - 2.5rem));
    margin: 0 auto;
    padding: 2.5rem 0 2.1rem;
}

.page-hero .eyebrow {
    margin-bottom: 0.45rem;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.12;
}

.page-hero .lede {
    margin: 0.75rem 0 0;
}

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

.with-side {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 1.2rem;
    align-items: start;
}

.stack {
    display: grid;
    gap: 0.9rem;
}

.card {
    padding: 1.25rem 1.35rem 1.15rem;
}

.card h2,
.prose h2 {
    margin: 0 0 0.75rem;
    color: var(--blue-deep);
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    line-height: 1.2;
}

.card h2 a,
.prose h2 a,
.area h2 {
    color: inherit;
}

.card h2::after,
.prose h2::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    margin-top: 0.55rem;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.card h3,
.prose h3 {
    margin: 1.15rem 0 0.35rem;
    color: var(--blue-dark);
    font-family: var(--display);
    font-size: 1.12rem;
    line-height: 1.3;
}

.card h3:first-child,
.card > h3:first-of-type {
    margin-top: 0.2rem;
}

.card p,
.prose p {
    margin: 0.35rem 0 0.75rem;
}

.card ul,
.prose ul,
.toc ul {
    margin: 0.3rem 0 0.8rem;
    padding-left: 1.15rem;
}

.card li + li,
.prose li + li {
    margin-top: 0.25rem;
}

.toc {
    position: sticky;
    top: calc(var(--header) + 1rem);
    padding: 0.95rem 1rem 0.7rem;
}

.toc h2 {
    margin: 0 0 0.45rem;
    color: var(--blue-deep);
    font-family: var(--display);
    font-size: 0.95rem;
}

.toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc a {
    display: block;
    padding: 0.32rem 0.15rem;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.92rem;
}

.toc a:hover {
    color: var(--blue);
}

.shots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin: 0.2rem 0 0.8rem;
}

.shots a {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #f7fbfe;
}

.shots img {
    display: block;
    width: 180px;
    height: 120px;
    object-fit: cover;
}

.figure {
    margin: 0.6rem 0 1rem;
}

.figure img {
    display: block;
    width: min(100%, 760px);
    border-radius: 14px;
    border: 1px solid var(--line);
}

.figure figcaption {
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.name-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.3rem 0 0;
    padding: 0;
    list-style: none;
}

.name-cloud li {
    padding: 0.32rem 0.7rem;
    background: #eef6fc;
    border-radius: 999px;
    color: var(--blue-deep);
    font-weight: 600;
    font-size: 0.9rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.4rem 0 0;
    padding: 0;
    list-style: none;
}

.tags li {
    padding: 0.4rem 0.75rem;
    background: #e7f3fb;
    border-radius: 12px;
    color: var(--blue-deep);
    font-family: var(--display);
    font-weight: 700;
}

.download-list {
    list-style: none;
    margin: 0.2rem 0 0;
    padding: 0;
}

.download-list li {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--line);
}

.download-list a {
    font-weight: 700;
}

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

.product-list {
    display: grid;
    gap: 0.9rem;
}

.product {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.1rem;
    color: inherit;
}

.product:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(7, 32, 64, 0.12);
    color: inherit;
}

.product:not(:has(img)) {
    grid-template-columns: 1fr;
}

.product img {
    width: 104px;
    height: 78px;
    object-fit: contain;
}

.product h2 {
    margin: 0 0 0.3rem;
    color: var(--blue-deep);
    font-family: var(--display);
    font-size: 1.25rem;
}

.product p {
    margin: 0;
    color: var(--ink);
}

.product .more {
    display: inline-block;
    margin-top: 0.45rem;
    font-family: var(--display);
    font-weight: 800;
    font-size: 0.88rem;
}

.impl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
}

.impl {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    min-height: 150px;
    padding: 1rem;
    background: #f8fbfe;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--blue-deep);
    font-weight: 700;
}

.impl img {
    height: 54px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

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

table.t {
    width: 100%;
    min-width: 640px;
    border: 0;
    border-collapse: collapse;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px var(--line);
}

table.t th,
table.t td {
    padding: 0.7rem 0.85rem;
    border: 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
    font-size: 0.95rem;
    vertical-align: top;
}

table.t th {
    background: var(--blue);
    color: white;
    font-weight: 700;
}

table.t tr:nth-child(even) td {
    background: #f7fbfe;
}

.address {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) minmax(220px, 320px);
    gap: 1.2rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
}

.address img,
.address iframe {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
    border: 0;
    border-radius: 14px;
    background: #e7eef5;
}

.address h2 {
    margin: 0 0 0.35rem;
    color: var(--blue);
    font-family: var(--display);
    font-size: 1.25rem;
}

.address p {
    margin: 0.2rem 0;
}

.facts {
    display: grid;
    grid-template-columns: 9.5rem minmax(0, 1fr);
    gap: 0.25rem 0.8rem;
    margin: 0;
}

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

.facts dd {
    margin: 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}

.gallery a {
    display: block;
    overflow: hidden;
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0, 113, 188, 0.1);
    box-shadow: var(--shadow);
}

.gallery img {
    display: block;
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.gallery a:hover img {
    transform: scale(1.04);
}

.doc p {
    margin: 0.15rem 0 0.85rem;
}

/* Footer */

.site-footer {
    color: rgba(255, 255, 255, 0.86);
    background: var(--navy);
}

.footer-inner {
    width: min(1180px, calc(100% - 2.5rem));
    margin: 0 auto;
    padding: 2.2rem 0 1.2rem;
    display: grid;
    grid-template-columns: 1.3fr 1fr 0.9fr;
    gap: 1.5rem;
}

.site-footer h2 {
    margin: 0 0 0.45rem;
    color: white;
    font-size: 1.15rem;
}

.site-footer p,
.site-footer a {
    color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover {
    color: white;
}

.footer-brand > img {
    box-sizing: content-box;
    height: 86px;
    width: auto;
    margin-bottom: 0.7rem;
    padding: 0.4rem 0.65rem;
    background: white;
    border-radius: 10px;
}

.partner-row {
    display: flex;
    align-items: flex-end;
    gap: 0.7rem;
    margin-top: 0.9rem;
}

.partner-row a {
    display: flex;
    line-height: 0;
}

.partner-row img {
    display: block;
    height: 42px;
    width: auto;
    background: white;
    border-radius: 8px;
    padding: 0.25rem 0.4rem;
}

.legal {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.8rem 1rem 1rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    text-align: center;
}

.legal a {
    color: rgba(255, 255, 255, 0.7);
}

/* Lightbox */

.lightbox[hidden] {
    display: none;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 1.2rem;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 16, 32, 0.72);
}

.lightbox figure {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: min(1000px, 100%);
}

.lightbox img {
    display: block;
    max-height: calc(100vh - 6rem);
    width: auto;
    max-width: 100%;
    border-radius: 12px;
    background: white;
}

.lightbox-caption {
    margin-top: 0.45rem;
    color: white;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: white;
    color: var(--blue-deep);
    font-size: 1.3rem;
    cursor: pointer;
}

/* Menu breakpoints */

@media (min-width: 1181px) {
    #MENU_LIST > li:hover,
    #MENU_LIST > li:focus-within,
    #MENU_LIST > li.is-open {
        z-index: 6;
    }

    #MENU_LIST > li:has(> .sublist)::after {
        content: "";
        position: absolute;
        z-index: 1;
        left: 0;
        width: 100%;
        top: calc(100% - 8px);
        height: 16px;
    }

    #MENU_LIST > li:hover > .sublist,
    #MENU_LIST > li:focus-within > .sublist,
    #MENU_LIST > li.is-open > .sublist {
        display: block;
    }

    #MENU_LIST > li.is-dismissed > .sublist {
        display: none;
    }

    #MENU_LIST > li > .sublist {
        top: 100%;
        padding: 12px 0.45rem 0.45rem;
        background: transparent;
        border: 0;
        box-shadow: none;
        border-radius: 0;
    }

    #MENU_LIST > li > .sublist::before {
        content: "";
        position: absolute;
        z-index: -1;
        left: 0;
        right: 0;
        top: 12px;
        bottom: 0;
        background: white;
        border: 1px solid var(--line);
        border-radius: 16px;
        box-shadow: 0 24px 60px rgba(7, 32, 64, 0.14);
        pointer-events: none;
    }
}

@media (max-width: 1180px) {
    .nav-toggle {
        display: inline-block;
        order: 3;
    }

    .header-tools {
        order: 2;
        margin-left: auto;
    }

    .menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: calc(100dvh - var(--header));
        display: none;
        overflow: auto;
        padding: 0.6rem 0.8rem 2rem;
        background: #fff;
        z-index: 45;
    }

    body.nav-open .menu {
        display: block;
    }

    body.nav-open {
        overflow: hidden;
    }

    #MENU_LIST {
        flex-direction: column;
        align-items: stretch;
    }

    .site-header .list-item {
        border-radius: 12px;
        justify-content: space-between;
    }

    .sublist {
        position: static;
        min-width: 0;
        margin: 0.2rem 0 0.4rem 0.6rem;
        box-shadow: none;
    }

    #MENU_LIST > li.is-open > .sublist {
        display: block;
    }

    .hero-inner,
    .stats,
    .area-grid,
    .story,
    .footer-inner,
    .with-side,
    .address {
        grid-template-columns: 1fr;
    }

    .stats,
    .area-grid {
        grid-template-columns: 1fr 1fr;
    }

    .toc {
        position: static;
    }
}

@media (max-width: 720px) {
    .site-header {
        height: auto;
    }

    .header-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "tools toggle";
        align-items: center;
        gap: 0.35rem 0.6rem;
        min-height: 64px;
        padding: 0.45rem 0.75rem;
    }

    .nav-toggle { grid-area: toggle; margin-left: 0; }
    .header-tools {
        grid-area: tools;
        order: 0;
        margin-left: 0;
        justify-self: start;
    }

    .menu {
        top: 100%;
        height: calc(100dvh - 64px);
    }

    .btn-zone {
        min-height: 36px;
        padding: 0.3rem 0.7rem;
        font-size: 0.78rem;
    }

    .area-grid,
    .stats,
    .product {
        grid-template-columns: 1fr;
    }

    .hero-photo img {
        height: 220px;
    }

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
