:root {
    --color-primary: #0a4a7d;
    --color-secondary: #1e90ff;
    --color-accent: #00d4ff;
    --color-bg: #e8f4f8;
    --color-bg-alt: #d3eaf3;
    --color-surface: #f4fafc;
    --color-text: #14324a;
    --color-text-light: #4a6a7e;
    --color-border: #b7d4e3;
    --color-nav: #0a4a7d;
    --bmt-header-h: 72px;
    --bmt-page-w: 1120px;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.75rem;
    --space-xl: 3rem;
    --radius: 20px;
    --font-head: "Space Grotesk", system-ui, sans-serif;
    --font-body: "DM Sans", system-ui, sans-serif;
    --shadow-neu: 8px 8px 16px rgba(10, 74, 125, 0.12), -6px -6px 14px rgba(255, 255, 255, 0.7);
}

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

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

html { scroll-padding-top: var(--bmt-header-h); }

body {
    margin: 0;
    padding-top: var(--bmt-header-h);
    font-family: var(--font-body);
    color: var(--color-text);
    background:
        radial-gradient(ellipse at 10% 0%, rgba(0, 212, 255, 0.18), transparent 45%),
        radial-gradient(ellipse at 90% 20%, rgba(30, 144, 255, 0.12), transparent 40%),
        linear-gradient(180deg, #cfe8f2 0%, var(--color-bg) 38%, #f0f8fb 100%);
    line-height: 1.55;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 30h60M30 0v60' stroke='%230a4a7d' stroke-width='1' fill='none'/%3E%3C/svg%3E");
}

[hidden] { display: none !important; }

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

a { color: var(--color-secondary); }
a:hover { color: var(--color-primary); }

.bmt-wrap {
    max-width: var(--bmt-page-w);
    margin: 0 auto;
    padding: 0 20px;
}

.bmt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.bmt-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: var(--bmt-header-h);
    background: #e8f4f8;
    box-shadow: 0 2px 8px rgba(10, 74, 125, 0.1);
}

.bmt-header a,
.bmt-header a:visited { color: var(--color-nav); text-decoration: none; }

.bmt-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--bmt-header-h);
    position: relative;
}

.bmt-logo img {
    width: 180px;
    height: auto;
}

.bmt-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    flex-wrap: nowrap;
}

.bmt-nav a {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.bmt-nav a.is-active {
    color: var(--color-secondary);
    box-shadow: inset 0 -2px 0 var(--color-accent);
}

.bmt-burger,
.bmt-overlay,
.bmt-drawer { display: none; }

.bmt-burger {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
    margin-left: auto;
    padding: 10px;
}

.bmt-burger span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--color-primary);
    border-radius: 1px;
}

.bmt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    border: 2px solid transparent;
    font-family: var(--font-body);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    background:
        linear-gradient(135deg, var(--color-secondary) 0 50%, var(--color-primary) 50% 100%);
    color: #fff;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.bmt-btn:hover { filter: brightness(1.05); transform: translateY(-1px); color: #fff; }

.bmt-btn-primary {
    background: linear-gradient(135deg, #1e90ff 0 48%, #0a4a7d 48% 100%);
    color: #fff;
}

.bmt-btn-ghost {
    background: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.bmt-btn-ghost:hover { background: rgba(30, 144, 255, 0.12); color: var(--color-primary); }

.bmt-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1rem; }

.bmt-h1, .bmt-h2, .bmt-h3 {
    font-family: var(--font-head);
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

.bmt-h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.bmt-h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.bmt-h3 { font-size: 1.15rem; }

.bmt-kicker {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0 0 0.75rem;
}

.bmt-lead { font-size: 1.1rem; max-width: 40rem; }
.bmt-lead-sm { color: var(--color-text-light); max-width: 40rem; }
.bmt-muted { color: var(--color-text-light); }

.bmt-hero {
    padding: var(--space-xl) 0 var(--space-lg);
    animation: bmt-up 0.45s ease both;
}

.bmt-bleed {
    background: linear-gradient(120deg, rgba(10, 74, 125, 0.12), rgba(0, 212, 255, 0.08));
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.bmt-bleed-alt {
    background: var(--color-bg-alt);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.bmt-facts-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.bmt-facts-strip li {
    background: var(--color-surface);
    box-shadow: var(--shadow-neu);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.bmt-block { padding: var(--space-xl) 0; }

.bmt-card,
.bmt-rank-item,
.bmt-pick,
.bmt-note-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-neu);
    padding: 1.25rem;
}

.bmt-pick {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.25rem;
    align-items: start;
}

.bmt-rank-stack { display: grid; gap: 1.25rem; }

.bmt-rank-item {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    gap: 1rem 1.25rem;
    align-items: start;
    animation: bmt-up 0.5s ease both;
}

.bmt-rank-pos {
    grid-column: 1 / -1;
    margin: 0;
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--color-secondary);
    letter-spacing: 0.04em;
}

.bmt-rank-item .bmt-app-icon { grid-column: 2; }
.bmt-rank-main { grid-column: 3; }
.bmt-rank-item .bmt-app-preview { grid-column: 4; }

.bmt-app-icon {
    width: 96px;
    height: 96px;
    border-radius: 22%;
    object-fit: contain;
    flex-shrink: 0;
    box-shadow: var(--shadow-neu);
}

.bmt-app-preview {
    width: auto;
    height: auto;
    max-width: 200px;
    max-height: 240px;
    object-fit: contain;
    border-radius: 12px;
}

.bmt-review .bmt-app-preview,
.bmt-prose .bmt-app-preview {
    max-width: 280px;
    max-height: 280px;
}

.bmt-facts {
    font-size: 0.92rem;
    color: var(--color-text-light);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.bmt-note {
    font-size: 0.9rem;
    border-left: 3px solid var(--color-accent);
    padding-left: 0.75rem;
    color: var(--color-text-light);
}

.bmt-note-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    padding: 0;
    transition: transform 0.2s ease;
}

.bmt-note-card:hover { transform: translateY(-3px); color: inherit; }

.bmt-note-band { display: block; height: 72px; }
.bmt-note-band-a { background: linear-gradient(135deg, #0a4a7d, #1e90ff); }
.bmt-note-band-b { background: linear-gradient(135deg, #1e90ff, #00d4ff); }
.bmt-note-band-c { background: linear-gradient(135deg, #065a5e, #0a4a7d); }
.bmt-note-band-d { background: linear-gradient(135deg, #00d4ff, #0a4a7d); }

.bmt-note-body { display: grid; gap: 0.35rem; padding: 1rem 1.15rem 1.25rem; }

.bmt-cta { padding: var(--space-xl) 0; text-align: center; }
.bmt-cta-inner { max-width: 40rem; margin: 0 auto; }

.bmt-page { padding: var(--space-xl) 0; animation: bmt-up 0.4s ease both; }

.bmt-prose {
    max-width: 760px;
}

.bmt-prose .bmt-review-head,
.bmt-prose .bmt-app-icon,
.bmt-prose .bmt-app-preview,
.bmt-prose .bmt-row {
    max-width: none;
}

.bmt-review-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: start;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-neu);
    max-width: var(--bmt-page-w);
}

.bmt-crumbs { font-size: 0.9rem; margin-bottom: 1rem; color: var(--color-text-light); }
.bmt-crumbs a { text-decoration: none; }

.bmt-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.bmt-contact-list { padding-left: 1.1rem; }

.bmt-form { display: grid; gap: 0.5rem; }
.bmt-label { font-weight: 600; }
.bmt-input {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    font: inherit;
    background: #fff;
    box-shadow: inset 2px 2px 6px rgba(10, 74, 125, 0.06);
}

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

.bmt-form-status {
    padding: 0.75rem;
    border-radius: 10px;
    background: rgba(0, 212, 255, 0.15);
}

.bmt-faq-item {
    background: var(--color-surface);
    border-radius: 14px;
    box-shadow: var(--shadow-neu);
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
}

.bmt-faq-item summary {
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font-head);
}

.bmt-foot {
    background: #0a4a7d;
    color: #e8f4f8;
    padding: 2.5rem 0 1.5rem;
    margin-top: 2rem;
}

.bmt-foot a { color: #00d4ff; text-decoration: none; }
.bmt-foot a:hover { color: #fff; }
.bmt-foot .bmt-muted { color: #b7d4e3; }

.bmt-foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 1.5rem;
}

.bmt-foot-brand {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.bmt-foot-h {
    font-family: var(--font-head);
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.bmt-foot-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.4rem;
}

.bmt-foot-btn {
    background: none;
    border: 0;
    padding: 0;
    color: #00d4ff;
    font: inherit;
    cursor: pointer;
}

.bmt-foot-btn:hover { color: #fff; }

.bmt-foot-legal {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.88rem;
    color: #b7d4e3;
}

.bmt-cookie { display: none; }

.bmt-cookie:not([hidden]) {
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 110;
    bottom: 16px;
    right: 16px;
    max-width: 360px;
    gap: 12px;
    align-items: flex-start;
    background: #f4fafc;
    color: var(--color-text);
    padding: 1rem 1.1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-neu);
}

.bmt-cookie p { margin: 0; font-size: 0.92rem; }
.bmt-cookie-actions { display: flex; gap: 8px; }

@keyframes bmt-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
    .bmt-nav { gap: 0.75rem; }
    .bmt-nav a { font-size: 0.88rem; }
}

@media (max-width: 1024px) {
    .bmt-nav { display: none; }
    .bmt-burger { display: block; }

    .bmt-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 200;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s, visibility .25s;
    }

    .bmt-drawer {
        display: block;
        position: fixed;
        z-index: 210;
        background: #e8f4f8;
        overflow-y: auto;
        visibility: hidden;
        transition: transform .3s ease, visibility .3s;
    }

    .bmt-drawer-narrow {
        top: 0;
        right: 0;
        height: 100vh;
        height: 100dvh;
        width: min(75vw, 320px);
        padding: 64px 0 20px;
        transform: translateX(100%);
    }

    .bmt-drawer a {
        display: block;
        padding: 10px 20px;
        font-size: 0.95rem;
        color: var(--color-primary);
        text-decoration: none;
        font-weight: 600;
    }

    .bmt-drawer-close {
        position: absolute;
        top: 12px;
        right: 16px;
        width: 44px;
        height: 44px;
        border: 0;
        background: transparent;
        font-size: 1.75rem;
        cursor: pointer;
        color: var(--color-primary);
    }

    body.nav-open { overflow: hidden; }
    body.nav-open .bmt-overlay { opacity: 1; visibility: visible; }
    body.nav-open .bmt-drawer-narrow { transform: translateX(0); visibility: visible; }

    .bmt-pick,
    .bmt-rank-item,
    .bmt-review-head,
    .bmt-contact,
    .bmt-foot-grid {
        grid-template-columns: 1fr;
    }

    .bmt-rank-item .bmt-app-icon,
    .bmt-rank-main,
    .bmt-rank-item .bmt-app-preview { grid-column: 1; }

    .bmt-rank-item .bmt-app-preview {
        display: block;
        margin: 16px auto 0;
    }
}

@media (max-width: 768px) {
    :root { --bmt-header-h: 64px; }

    .bmt-logo img { width: 120px; }

    .bmt-grid { grid-template-columns: repeat(2, 1fr); }

    .bmt-cookie:not([hidden]) {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }

    .bmt-cookie .bmt-btn { min-height: 44px; }
}

@media (max-width: 480px) {
    .bmt-grid { grid-template-columns: 1fr; }
    .bmt-app-icon { width: 72px; height: 72px; }
}
