/* Energy-like UI (unique structure) */
:root {
    --bg: #07080c;
    --panel: rgba(255, 255, 255, 0.06);
    --panel-2: rgba(255, 255, 255, 0.09);
    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.68);
    --line: rgba(255, 255, 255, 0.12);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    --radius: 18px;
    --radius-sm: 12px;
    --accent: #ffd54a;
    --accent-2: #ffec95;
    --danger: #ff3d3d;
    --focus: rgba(255, 213, 74, 0.35);
    --cta-green: #2bf25a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    /* Prevent whole-page horizontal panning on mobile */
    overflow-x: hidden;
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans",
        "Liberation Sans", sans-serif;
    line-height: 1.55;
    color: var(--text);
    background: radial-gradient(1200px 600px at 20% -10%, rgba(84, 45, 255, 0.30), transparent 60%),
        radial-gradient(900px 500px at 80% 0%, rgba(0, 163, 255, 0.18), transparent 55%),
        radial-gradient(900px 600px at 60% 80%, rgba(255, 213, 74, 0.10), transparent 55%),
        var(--bg);
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

/* Layout */
.site-main {
    padding-top: 64px; /* compact header */
    /* Extra space so dock never covers content (incl. long text/tables) */
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); /* bottom nav */
    max-width: 100%;
}

.page-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 18px 16px;
    max-width: 100%;
}

.stack {
    display: grid;
    gap: 16px;
}

/* IMPORTANT: allow grid children to shrink (otherwise wide content forces "desktop-like" layout) */
.stack > * {
    min-width: 0;
}

/* Header */
.site-hdr {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.70), rgba(0, 0, 0, 0.25));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.hdr-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 10px 16px;
    display: grid;
    /* Prevent header from widening the whole page on narrow screens */
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 0;
}

.brand-logo {
    width: 120px;
    height: auto;
    display: block;
}

/* Mobile navigation row under header (optional) */
.hdr-nav-row {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 6px 16px 10px;
    display: none; /* keep off by default for clean mobile UX */
}

.hdr-nav-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.hdr-nav-scroll::-webkit-scrollbar {
    display: none;
}

.hdr-chip {
    white-space: nowrap;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.2px;
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.78);
}

.hdr-chip.is-active {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.92);
}

.hdr-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    flex-wrap: nowrap;
}

.hdr-actions .btn {
    min-width: 0;
    white-space: nowrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.10);
}

.btn:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

.btn.is-primary {
    background: linear-gradient(180deg, var(--accent), #ffbf00);
    border-color: rgba(0, 0, 0, 0.25);
    color: rgba(0, 0, 0, 0.88);
}

.btn.is-quiet {
    background: rgba(255, 255, 255, 0.05);
}

.btn.is-ghost {
    background: transparent;
}

/* No side drawer on mobile (removed) */

/* Hero */
.hero {
    width: 100%;
    margin: 0 auto;
    padding: 10px 0 8px;
}

.hero-card {
    width: min(1180px, 100%);
    margin: 0 auto;
    border-radius: 18px;
    /* `overflow: clip` isn't supported everywhere on mobile; use hidden for safety */
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.42);
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.hero-copy {
    position: relative;
    padding: 14px;
    display: grid;
    gap: 10px;
    align-content: end;
    min-height: 170px;
}

.hero-title {
    font-size: 18px;
    line-height: 1.15;
    letter-spacing: -0.2px;
}

.hero-sub {
    color: var(--muted);
    font-size: 12px;
    max-width: 70ch;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.72));
    z-index: 0;
}

.hero-copy {
    z-index: 1;
}

/* Slot strips */
.strip {
    padding-top: 8px;
}

.strip-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.strip-title {
    font-size: 18px;
    letter-spacing: 0.3px;
    font-weight: 900;
}

.strip-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    text-decoration: none;
    font-weight: 800;
    font-size: 12px;
}

.arrow {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    color: var(--text);
}

.strip-rail {
    /* Mobile-friendly horizontal carousel (reliable on iOS/Android) */
    --tile-w: 148px;
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 2px;
    scroll-padding-right: max(16px, env(safe-area-inset-right, 0px));
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding-left: 2px;
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-bottom: 10px;
    scrollbar-width: none;
}

.strip-rail::-webkit-scrollbar {
    display: none;
}

.tile {
    scroll-snap-align: start;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.30);
    flex: 0 0 var(--tile-w);
}

.tile-media {
    position: relative;
    /* Slot previews are portrait (e.g. 275x385 ≈ 5:7) */
    aspect-ratio: 5 / 7;
    overflow: hidden;
}

.tile-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.05) contrast(1.05);
}

.tile-body {
    padding: 10px 10px 12px;
    display: grid;
    gap: 8px;
}

.tile-name {
    font-weight: 900;
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: 0.2px;
}

.tile-cta {
    display: inline-flex;
    width: 100%;
}

.tile-cta .btn {
    width: 100%;
    padding: 9px 12px;
    font-size: 13px;
}

/* Text content (rendered from JSON) */
.text-content {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.32);
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.text-content h1 {
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.1;
    margin-bottom: 14px;
}

.text-content h2 {
    font-size: 20px;
    margin: 22px 0 10px;
}

.text-content h3 {
    font-size: 17px;
    margin: 18px 0 8px;
    color: rgba(255, 255, 255, 0.88);
}

.text-content p {
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.80);
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.text-content a {
    color: var(--accent-2);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

/* Kontakt page polish (JS adds these classes, no extra text) */
.is-kontakt .text-content .contact-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 213, 74, 0.92);
}

.is-kontakt .text-content .contact-ico svg {
    display: block;
    fill: currentColor;
    opacity: 0.95;
}

.is-kontakt .text-content .contact-card {
    margin: 12px 0;
    padding: 14px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
    display: grid;
    gap: 10px;
}

.is-kontakt .text-content h2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.is-kontakt .text-content .contact-h2-text {
    display: inline-block;
}

.is-kontakt .text-content .contact-card h3 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.is-kontakt .text-content .contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.20);
    text-decoration: none;
}

.is-kontakt .text-content .contact-link:hover {
    background: rgba(255, 255, 255, 0.06);
}

.is-kontakt .text-content .contact-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.2px;
}

.is-kontakt .text-content .contact-row-text {
    color: rgba(255, 255, 255, 0.92);
}

.is-kontakt .text-content .contact-links {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.is-kontakt .text-content .contact-links li {
    margin: 0;
}

.is-kontakt .text-content .contact-links a.pill {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.82);
}

.is-kontakt .text-content .contact-pill .contact-ico {
    color: rgba(255, 255, 255, 0.78);
}

.text-content img {
    margin: 14px 0;
    border-radius: 14px;
    border: 1px solid var(--line);
}

.text-content blockquote {
    margin: 14px 0;
    padding: 14px 14px;
    border-left: 3px solid rgba(255, 213, 74, 0.55);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.82);
}

.text-content ul,
.text-content ol {
    margin: 12px 0 12px 18px;
    color: rgba(255, 255, 255, 0.80);
}

.text-content li {
    margin: 6px 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

/* HowTo (rendered from JSON) */
.howto-wrapper {
    margin: 16px 0;
}

.howto-steps-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
    counter-reset: howto-step;
}

.howto-step-item {
    counter-increment: howto-step;
    position: relative;
    padding: 14px 14px 14px 46px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

.howto-step-item::before {
    content: counter(howto-step);
    position: absolute;
    left: 12px;
    top: 12px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.88);
    background: rgba(255, 213, 74, 0.92);
    box-shadow: 0 0 0 3px rgba(255, 213, 74, 0.20);
}

.howto-step-item strong {
    display: block;
    font-weight: 900;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.92);
}

.howto-step-item p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.78);
}

/* FAQ (rendered from JSON) */
.faq-section {
    margin: 16px 0 6px;
    scroll-margin-top: 120px; /* fixed header offset for #faq */
}

.faq-wrapper {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.faq-item {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.faq-item[open] {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
}

.faq-q {
    list-style: none;
    cursor: pointer;
    user-select: none;
    padding: 14px 44px 14px 14px;
    font-weight: 900;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.92);
    position: relative;
}

.faq-q::-webkit-details-marker {
    display: none;
}

.faq-q::after {
    content: "+";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.88);
    background: rgba(255, 213, 74, 0.92);
    box-shadow: 0 0 0 3px rgba(255, 213, 74, 0.20);
}

.faq-item[open] .faq-q::after {
    content: "–";
}

.faq-q:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
    border-radius: 12px;
}

.faq-a {
    padding: 0 14px 14px;
    color: rgba(255, 255, 255, 0.78);
}

.faq-a p {
    margin: 0;
}

/* Tables: make them scroll on mobile (JSON tables) */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    max-width: 100%;
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.18);
    margin: 14px 0;
}

.text-content table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px; /* enables horizontal scroll on small screens */
}

.text-content table caption {
    caption-side: top;
    text-align: left;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.text-content table caption::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 10px;
    border-radius: 999px;
    background: rgba(255, 213, 74, 0.75);
    box-shadow: 0 0 0 3px rgba(255, 213, 74, 0.18);
    vertical-align: middle;
}

.text-content th,
.text-content td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    text-align: left;
    vertical-align: top;
    color: rgba(255, 255, 255, 0.84);
}

.text-content th {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 900;
}

/* Breadcrumbs */
.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
    padding: 8px 2px 4px;
}

.crumbs a {
    text-decoration: none;
    color: var(--muted);
}

.crumbs a:hover {
    color: var(--text);
}

/* Payments */
.pay-panel {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    padding: 16px;
}

.pay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.pay-card {
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    display: grid;
    gap: 8px;
    place-items: center;
    text-align: center;
}

.pay-card img {
    width: 64px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.25));
}

.pay-name {
    font-size: 12px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.82);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.42);
    /* Leave space for fixed bottom dock on mobile */
    padding: 22px 0 calc(16px + 96px + env(safe-area-inset-bottom, 0px));
}

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

.ftr-title {
    font-weight: 900;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 10px;
    letter-spacing: 0.2px;
}

.ftr-links {
    list-style: none;
    display: grid;
    gap: 8px;
}

.ftr-links a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}

.ftr-links a:hover {
    color: rgba(255, 255, 255, 0.92);
}

.ftr-bottom {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 12px;
    text-align: center;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
}

.safe-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.safe-row img {
    max-height: 28px;
    width: auto;
}

/* Mobile dock */
.dock {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 999;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(0, 0, 0, 0.74);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
}

.dock-row {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    /* Prevent the dock from widening the whole page on mobile */
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    align-items: end;
}

.dock a {
    display: grid;
    gap: 6px;
    place-items: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.72);
    padding: 9px 6px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    font-size: 11px;
    font-weight: 800;
    min-width: 0;
}

.dock-ico {
    width: 20px;
    height: 20px;
    display: block;
    fill: currentColor;
    opacity: 0.92;
}

.dock a span {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 9px;
    letter-spacing: 0.1px;
    line-height: 1.05;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dock a.is-center {
    transform: translateY(-10px);
    background: linear-gradient(180deg, var(--cta-green), #13c94a);
    border-color: rgba(0, 0, 0, 0.18);
    color: rgba(0, 0, 0, 0.90);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.dock a.is-center .dock-ico {
    opacity: 1;
}

.dock a.is-center span {
    font-weight: 900;
}

/* Responsive */
@media (max-width: 920px) {
    .arrow {
        display: none;
    }
}

/* Hero: full-width banner for all "mobile-like" widths (incl. tablets) */
@media (max-width: 1100px) {
    .hero {
        padding: 0 0 8px;
    }

    .hero-card {
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    /* Crop banner artwork to avoid visual empty area */
    .hero-media {
        inset: -1px; /* cover borders/pixel gaps */
    }

    .hero-media img {
        object-position: 0% 50%;
        transform: scale(1.18);
        will-change: transform;
    }
}

/* Hero: force full-width on real touch devices (regardless of width) */
@media (hover: none) and (pointer: coarse) {
    .hero {
        padding: 0 0 8px;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .hero-card {
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .hero-media {
        inset: -1px;
    }

    .hero-media img {
        object-position: 0% 50%;
        transform: scale(1.22);
    }
}

@media (max-width: 680px) {
    .hdr-inner {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .brand-logo {
        width: 102px;
    }

    .btn {
        padding: 8px 10px;
        font-size: 12px;
    }

    .strip-rail {
        --tile-w: clamp(156px, 44vw, 196px);
    }

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

    .site-main {
        padding-top: 62px;
    }

    /* Hero: ensure true edge-to-edge on small screens */
    .hero {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .hero-copy {
        min-height: 150px;
        padding: 12px 14px;
    }

    .hero-title {
        font-size: 16px;
    }

    .hero-sub {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media (max-width: 520px) {
    /* Two-row mobile header: logo first row, 2 buttons second row */
    .hdr-inner {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px 14px;
    }

    .hdr-actions {
        width: 100%;
        justify-content: stretch;
        gap: 10px;
    }

    .hdr-actions .btn {
        flex: 1 1 0;
        min-height: 40px;
        padding: 10px 10px;
        font-size: 12px;
        white-space: normal; /* allow 2 lines instead of overflow */
        line-height: 1.1;
        text-align: center;
    }

    /* Header is taller now */
    .site-main {
        padding-top: 112px;
    }
}

@media (min-width: 1101px) {
    /* Hero: desktop like previous version (text + image) */
    .hero-grid {
        grid-template-columns: 1.05fr 0.95fr;
        min-height: 260px;
    }

    .hero-media {
        position: relative;
        inset: auto;
        z-index: 1;
        display: grid;
        padding: 14px 14px 14px 0;
    }

    .hero-media img {
        border-radius: 18px;
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    }

    .hero-card::before {
        background:
            radial-gradient(900px 420px at 20% 20%, rgba(84, 45, 255, 0.35), transparent 55%),
            radial-gradient(780px 420px at 80% 45%, rgba(0, 163, 255, 0.22), transparent 55%),
            linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35));
    }

    .hero-copy {
        align-content: center;
        min-height: auto;
        padding: 20px 18px 18px;
    }

    .hero-title {
        font-size: clamp(22px, 2.6vw, 34px);
    }

    .hero-sub {
        font-size: 13px;
        max-width: 54ch;
    }
}
