:root {
    --ink: #07090b;
    --wash: rgba(7, 10, 13, 0.42);
    --glass: rgba(12, 16, 20, 0.58);
    --glass-strong: rgba(10, 14, 18, 0.78);
    --stroke: rgba(243, 239, 230, 0.16);
    --stroke-strong: rgba(243, 239, 230, 0.28);
    --accent: #d9a441;
    --accent-2: #e8c56a;
    --text: #f3efe6;
    --muted: #b4ad9f;
    --ok: #8fbf7a;
    --danger: #e07a5f;
    --font-display: "Syne", system-ui, sans-serif;
    --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
    --radius: 22px;
    --wrap: 1120px;
    --header: 84px;
}

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

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.55;
    color: var(--text);
    background: var(--ink);
    overflow-wrap: break-word;
}

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

a {
    color: var(--text);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--accent-2);
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.22;
    margin: 0 0 0.6em;
    overflow: visible;
    overflow-wrap: break-word;
}

h1 {
    font-size: clamp(2.15rem, 4.6vw, 4.15rem);
}

h2 {
    font-size: clamp(1.7rem, 3vw, 2.55rem);
}

h3 {
    font-size: 1.35rem;
    margin-bottom: 0.4em;
}

p {
    margin: 0 0 1em;
}

p:last-child {
    margin-bottom: 0;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    z-index: 80;
    padding: 8px 12px;
    background: var(--accent);
    color: var(--ink);
}

.skip-link:focus {
    left: 8px;
}

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

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

/* Background video */
.site-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--ink);
}

.site-bg__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px) saturate(0.75) brightness(0.72);
    transform: scale(1.06);
}

.site-bg__wash {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7, 9, 11, 0.28) 0%, rgba(7, 9, 11, 0.55) 100%),
        radial-gradient(ellipse at 80% 20%, rgba(217, 164, 65, 0.12), transparent 46%);
}

.site-bg__grid {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(243, 239, 230, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(243, 239, 230, 0.09) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 80%);
}

/* Glass panels */
.panel {
    background: var(--glass);
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.panel--header {
    border-radius: 18px;
}

.panel--hero,
.panel--intro,
.panel--card,
.panel--steps,
.panel--form,
.panel--footer,
.panel--aside {
    padding: clamp(22px, 3.4vw, 42px);
}

.panel--hero {
    background: rgba(10, 14, 18, 0.64);
}

.panel--aside {
    background: rgba(10, 14, 18, 0.42);
    padding: 22px 24px;
}

.panel--card {
    min-height: 100%;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 12px 0 0;
}

.site-header__bar {
    width: min(calc(100% - 32px), var(--wrap));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px 10px 18px;
    background: rgba(10, 14, 18, 0.72);
    position: relative;
}

.logo img {
    width: 176px;
    height: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 22px;
}

.site-nav a {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    flex-shrink: 0;
    line-height: 1.3;
    overflow: visible;
}

.site-nav a:hover {
    color: var(--accent-2);
}

.nav-cta {
    border: 1px solid var(--stroke-strong);
    border-radius: 999px;
    padding: 8px 16px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: visible;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 6px 0;
    background: var(--text);
    border-radius: 2px;
}

/* Hero */
.hero {
    min-height: calc(100svh - var(--header));
    display: flex;
    align-items: center;
    padding: 28px 0 48px;
    scroll-margin-top: 96px;
}

.hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.7fr);
    gap: 22px;
    align-items: end;
}

.drawing-no {
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}

.kicker {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.lead {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 40rem;
}

.lead--narrow {
    max-width: 36rem;
}

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

.aside-label {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

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

.panel--aside li {
    padding: 10px 0;
    border-top: 1px solid var(--stroke);
    color: var(--muted);
}

.panel--aside li:first-child {
    border-top: 0;
    padding-top: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    height: auto;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    overflow: visible;
}

.btn--solid {
    background: var(--accent);
    color: #1a1408;
}

.btn--solid:hover {
    background: var(--accent-2);
    color: #1a1408;
}

.btn--ghost {
    background: transparent;
    border-color: var(--stroke-strong);
    color: var(--text);
}

.btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent-2);
}

/* Sections */
.section {
    padding: 18px 0 36px;
    scroll-margin-top: 96px;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 18px;
}

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

.software-group {
    margin-top: 28px;
}

.software-group:first-of-type {
    margin-top: 18px;
}

.software-group .kicker {
    margin-bottom: 12px;
    color: #f7f4ee;
}

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

.software-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.software-item > div {
    flex: 1 1 16rem;
    min-width: 0;
}

.software-item h3 {
    margin: 0;
}

.software-item__version {
    margin: 6px 0 10px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--accent-2);
    letter-spacing: 0.02em;
}

.software-item__price {
    margin: -4px 0 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.software-item__prices {
    list-style: none;
    margin: -4px 0 12px;
    padding: 0;
    display: grid;
    gap: 8px;
}

.software-item__prices li {
    margin: 0;
}

.software-item__prices span {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
}

.software-item__save {
    margin-top: 2px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: var(--ok);
}

.software-item .muted {
    margin: 0;
    max-width: 40rem;
}

.software-item__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    align-items: stretch;
}

.software-item .btn {
    width: auto;
    min-width: 180px;
    white-space: normal;
    flex-shrink: 0;
    text-align: center;
}

.card-index {
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 10px;
}

.ticks {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.ticks li {
    position: relative;
    padding: 8px 0 8px 22px;
    color: var(--muted);
    border-top: 1px solid var(--stroke);
}

.ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05em;
    width: 8px;
    height: 1px;
    background: var(--accent);
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.steps li {
    padding: 8px 22px 0 0;
    border-right: 1px solid var(--stroke);
}

.steps li:last-child {
    border-right: 0;
    padding-right: 0;
}

.steps span {
    display: block;
    font-family: var(--font-display);
    color: var(--accent);
    letter-spacing: 0.12em;
    margin-bottom: 10px;
}

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

/* Contact */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 18px;
    align-items: start;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-grid label span,
.check {
    display: block;
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 6px;
}

.form-grid input,
.form-grid textarea {
    width: 100%;
    border: 1px solid var(--stroke);
    background: rgba(7, 9, 11, 0.45);
    color: var(--text);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
}

.form-grid textarea {
    resize: vertical;
    min-height: 140px;
}

.form-grid input:focus,
.form-grid textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

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

.check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--muted);
    font-size: 0.92rem;
}

.check input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex: none;
}

.hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

#contact {
    position: relative;
}

.hcaptcha-wrap {
    min-height: 78px;
    overflow-x: auto;
}

#contact .btn {
    margin-top: 18px;
}

.text-link {
    display: inline;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text);
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.text-link:hover {
    color: var(--accent-2);
}

.auth-sheet,
.legal__sheet.auth-sheet {
    width: min(440px, calc(100vw - 36px)) !important;
    max-width: 440px;
    color: var(--text);
    overflow-x: visible;
    overflow-y: auto;
}

.auth-sheet h2 {
    margin-bottom: 18px;
    line-height: 1.25;
}

.auth-error {
    color: var(--danger);
    margin-bottom: 14px;
}

.auth-ok {
    color: var(--ok);
    margin-bottom: 14px;
}

.auth-form {
    display: none;
}

.auth-form.is-active {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
}

.auth-form[hidden] {
    display: none !important;
}

.auth-switch {
    margin: 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
}

.auth-form label {
    display: block;
    width: 100%;
}

.auth-form label span {
    display: block;
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 6px;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--stroke);
    background: rgba(7, 9, 11, 0.45);
    color: var(--text);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
}

.auth-form input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.auth-form .btn {
    display: inline-flex;
    margin-top: 4px;
    width: 100%;
    min-height: 48px;
    height: auto;
    padding: 12px 22px;
    white-space: normal;
    overflow: visible;
    flex-shrink: 0;
    box-sizing: border-box;
}

.account-form {
    margin-top: 18px;
}

.account-form .kicker {
    margin: 22px 0 12px;
}

.account-form .kicker:first-of-type {
    margin-top: 0;
}

.account-ok {
    color: var(--ok);
    margin-bottom: 14px;
}

.account-hint {
    margin: 0 0 12px;
}

.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.account-form label {
    display: block;
    width: 100%;
    min-width: 0;
}

.account-form label span {
    display: block;
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 6px;
}

.account-form input,
.account-form select {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--stroke);
    background: rgba(7, 9, 11, 0.45);
    color: var(--text);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    line-height: 1.3;
    overflow: visible;
}

.account-form select {
    min-height: 48px;
}

.account-form input:focus,
.account-form select:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

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

.account-actions .btn {
    width: auto;
    min-width: 160px;
}

.history-panel {
    margin-top: 18px;
}

.history-panel h2 {
    margin-bottom: 16px;
}

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

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.history-table th,
.history-table td {
    text-align: left;
    padding: 12px 14px 12px 0;
    vertical-align: top;
    overflow-wrap: break-word;
}

.history-table th {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--stroke-strong);
}

.history-table td {
    border-bottom: 1px solid var(--stroke);
    color: var(--text);
}

.history-table tr:last-child td {
    border-bottom: 0;
}

.cart-panel {
    margin-top: 18px;
}

.cart-totals {
    margin-top: 18px;
    display: grid;
    gap: 6px;
}

.cart-totals p {
    margin: 0;
}

.cart-table td:last-child {
    text-align: right;
    white-space: nowrap;
}

.cart-interval {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cart-interval select {
    appearance: none;
    -webkit-appearance: none;
    width: auto;
    min-width: 13.5rem;
    max-width: 100%;
    min-height: 44px;
    padding: 10px 42px 10px 14px;
    border: 1px solid var(--stroke-strong);
    border-radius: 12px;
    background-color: #151b22;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23d9a441' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    color-scheme: dark;
    cursor: pointer;
}

.cart-interval select:hover,
.cart-interval select:focus {
    border-color: var(--accent);
    outline: none;
}

.cart-interval option {
    background: #151b22;
    color: var(--text);
}

.cart-interval__save {
    color: var(--ok);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    max-width: 22rem;
}

.checkout-lines {
    margin: 0 0 12px;
    padding-left: 1.1em;
}

.pay-options {
    display: grid;
    gap: 10px;
}

.pay-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--stroke);
    border-radius: 16px;
    cursor: pointer;
}

.pay-option:hover,
.pay-option:has(input:checked) {
    border-color: var(--accent);
}

.pay-option input {
    display: inline-block;
    flex: 0 0 auto;
    width: 18px;
    min-width: 18px;
    height: 18px;
    margin: 3px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    appearance: auto;
    -webkit-appearance: radio;
}

.account-form .pay-option span {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: inherit;
    color: inherit;
}

.pay-option strong {
    display: block;
}

.nav-user,
.site-nav a.nav-user {
    font-size: 0.92rem;
    color: var(--accent);
    line-height: 1.3;
    overflow: visible;
    text-decoration: none;
    font-weight: 600;
}

.site-nav a.nav-user:hover,
a.nav-user:hover {
    color: var(--accent-2);
}

.nav-cart {
    text-decoration: none;
    font-weight: 600;
}

.nav-cart__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4em;
    height: 1.4em;
    margin-left: 4px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--accent);
    color: #1a1408;
    font-size: 0.75rem;
    line-height: 1;
}

.nav-logout {
    margin: 0;
}

.nav-cta--button {
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

/* Footer */
.site-footer {
    padding: 12px 0 36px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 24px;
}

.footer-grid--no-contact {
    grid-template-columns: 1.4fr 1fr;
}

.footer-mark,
.footer-label {
    font-family: var(--font-display);
    margin-bottom: 8px;
}

.footer-label {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.footer-mark {
    font-size: 1.2rem;
}

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

.footer-copy {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--stroke);
    color: var(--muted);
    font-size: 0.9rem;
}

/* Legal overlays */
.legal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(7, 9, 11, 0.55);
}

.legal[hidden] {
    display: none;
}

.legal__sheet {
    width: min(920px, 100%);
    max-height: min(86vh, 860px);
    overflow: auto;
    overflow-wrap: break-word;
    padding: 22px 22px 32px;
    background: var(--glass-strong);
    color: var(--text);
}

.legal__close {
    display: block;
    margin-left: auto;
    margin-bottom: 12px;
    border: 0;
    background: none;
    color: var(--text);
    font: inherit;
    cursor: pointer;
}

.legal__body {
    color: #1c1a16;
    background: #f4efe6;
    border-radius: 14px;
    padding: 22px;
}

/* Toast */
.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 70;
    min-width: min(420px, calc(100% - 32px));
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--glass-strong);
    border: 1px solid var(--stroke-strong);
    backdrop-filter: blur(16px);
    text-align: center;
}

.toast.is-ok {
    box-shadow: inset 3px 0 0 var(--ok);
}

    .toast.is-err {
    box-shadow: inset 3px 0 0 var(--danger);
}

.dash-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.dash-stat {
    padding: 22px 24px;
}

.dash-stat .kicker {
    margin-bottom: 8px;
}

.dash-stat__value {
    margin: 0;
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.1;
}

.dash-dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 28px;
    margin: 0 0 22px;
}

.dash-dl div {
    min-width: 0;
}

.dash-dl dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.dash-dl dd {
    margin: 0;
}

.wrap--dash {
    width: min(calc(100% - 32px), 1280px);
}

.dash-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.dash-side {
    position: sticky;
    top: calc(var(--header) + 16px);
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 14px;
}

.dash-side .kicker {
    margin: 0 10px 10px;
}

.dash-side a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.dash-side a span {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.dash-side a:hover {
    background: rgba(243, 239, 230, 0.06);
}

.dash-side a.is-active {
    background: rgba(217, 164, 65, 0.16);
    color: var(--accent-2);
}

.dash-side a.is-active span {
    color: var(--accent-2);
}

.dash-main .dash-stats,
.dash-main .cart-panel {
    margin-top: 18px;
}

.dash-main .panel--intro {
    margin-bottom: 0;
}

/* Mobile */
@media (max-width: 860px) {
    .hero__layout,
    .split,
    .split--three,
    .steps,
    .contact-layout,
    .footer-grid,
    .form-grid,
    .account-grid,
    .dash-stats,
    .dash-dl,
    .dash-layout {
        grid-template-columns: 1fr;
    }

    .dash-side {
        position: static;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        padding: 12px;
    }

    .dash-side .kicker {
        display: none;
    }

    .dash-side a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .hero__aside {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 18px 0 28px;
    }

    .steps li {
        border-right: 0;
        border-top: 1px solid var(--stroke);
        padding: 18px 0 0;
        margin-top: 16px;
    }

    .steps li:first-child {
        border-top: 0;
        margin-top: 8px;
        padding-top: 0;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        background: #10151b;
        border: 1px solid var(--stroke-strong);
        border-radius: 18px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    }

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

    .site-nav a {
        padding: 12px 8px;
        border-bottom: 1px solid var(--stroke);
    }

    .site-nav a:last-child {
        border-bottom: 0;
    }

    .nav-cta {
        text-align: center;
        margin-top: 6px;
    }

    .nav-user {
        display: block;
        padding: 12px 8px;
        border-bottom: 1px solid var(--stroke);
    }

    .nav-cart {
        display: block;
        padding: 12px 8px;
        border-bottom: 1px solid var(--stroke);
    }

    .nav-logout {
        padding: 8px 0 0;
    }

    .nav-cta--button {
        width: 100%;
    }

    .site-header {
        position: sticky;
    }

    .logo img {
        width: 150px;
    }
}

@media (max-width: 520px) {
    .wrap,
    .site-header__bar {
        width: min(calc(100% - 20px), var(--wrap));
    }

    .panel--hero,
    .panel--intro,
    .panel--card,
    .panel--steps,
    .panel--form,
    .panel--footer {
        padding: 20px 18px;
    }

    body {
        font-size: 16px;
    }
}

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

    .site-bg__video {
        display: none;
    }

    .site-bg {
        background:
            radial-gradient(ellipse at 70% 10%, rgba(217, 164, 65, 0.18), transparent 40%),
            #0b0e11;
    }
}

@media (hover: none) {
    .site-bg__video {
        filter: blur(2px) saturate(0.8) brightness(0.68);
    }
}
