:root {
    --color-primary: #d35400;
    --color-secondary: #e67e22;
    --color-accent: #c0392b;
    --color-bg: #fef5e7;
    --color-text: #3b2414;
    --color-muted: #6b4a32;
    --color-border: #e8c9a0;
    --color-surface: #fff9f0;
    --font-heading: "Raleway", sans-serif;
    --font-body: "Lato", sans-serif;
    --space-xs: 0.35rem;
    --space-sm: 0.75rem;
    --space-md: 1.25rem;
    --space-lg: 2rem;
    --space-xl: 3.5rem;
    --bd-header-h: 72px;
    --bd-page-w: 1120px;
    --radius: 6px;
}

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

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

[hidden] { display: none !important; }

html {
    scroll-padding-top: var(--bd-header-h);
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding-top: var(--bd-header-h);
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    max-width: 100%;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.07;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(59, 36, 20, 0.35) 2px, rgba(59, 36, 20, 0.35) 3px),
        repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(211, 84, 0, 0.2) 3px, rgba(211, 84, 0, 0.2) 4px);
}

.bd-header,
.bd-main,
.bd-footer,
.bd-overlay,
.bd-drawer,
.bd-cookie {
    position: relative;
    z-index: 1;
}

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

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--color-text);
    font-weight: 700;
}

.bd-container {
    width: min(100% - 2rem, var(--bd-page-w));
    margin-inline: auto;
}

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

.bd-u-break { overflow-wrap: anywhere; word-break: break-word; }

.bd-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: var(--bd-header-h);
    background: var(--color-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.bd-header a,
.bd-header a:visited { color: var(--color-text); }

.bd-header--row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    min-height: var(--bd-header-h);
}

.bd-header--logo {
    flex-shrink: 0;
    order: 1;
}

.bd-header--logo img {
    width: 180px;
    height: auto;
    display: block;
}

.bd-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem 0.75rem;
    flex: 1;
    min-width: 0;
    order: 2;
}

.bd-nav--link {
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.bd-nav--link.is-active,
.bd-nav--link:hover { color: var(--color-primary); }

.bd-header--cta {
    order: 3;
    flex-shrink: 0;
    margin-left: auto;
}

.bd-header a.bd-btn--primary,
.bd-header a.bd-btn--primary:visited {
    color: #fff;
}

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

.bd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.55rem 1.15rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid var(--color-primary);
    background: transparent;
    color: var(--color-primary);
    cursor: pointer;
    position: relative;
    transition: color .2s, background .2s, border-color .2s;
}

.bd-btn--primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.bd-btn--primary:visited { color: #fff; }

.bd-btn::before,
.bd-btn::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: var(--color-accent);
    border-style: solid;
    opacity: 0;
    transition: opacity .2s, transform .2s;
}

.bd-btn::before {
    top: -3px;
    left: -3px;
    border-width: 2px 0 0 2px;
}

.bd-btn::after {
    bottom: -3px;
    right: -3px;
    border-width: 0 2px 2px 0;
}

.bd-btn:hover::before,
.bd-btn:hover::after {
    opacity: 1;
}

.bd-btn:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #fff;
}

a.bd-btn:visited { color: var(--color-primary); }
a.bd-btn--primary:visited,
a.bd-btn:hover { color: #fff; }

.bd-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: var(--space-md);
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.bd-hero {
    position: relative;
    padding: var(--space-xl) 0;
    background:
        linear-gradient(135deg, rgba(211, 84, 0, 0.18), rgba(254, 245, 231, 0.2) 45%, rgba(192, 57, 43, 0.12)),
        var(--color-bg);
    overflow: hidden;
}

.bd-hero--grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: var(--space-lg);
    align-items: center;
}

.bd-hero--title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin: 0 0 var(--space-md);
}

.bd-hero--text {
    margin: 0 0 var(--space-md);
    max-width: 36rem;
    min-width: 0;
}

.bd-hero--actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.bd-hero a.bd-btn,
.bd-hero a.bd-btn:visited {
    color: var(--color-primary);
}

.bd-hero a.bd-btn--primary,
.bd-hero a.bd-btn--primary:visited {
    color: #fff;
}

.bd-hero--device {
    position: relative;
    min-width: 0;
}

.bd-hero--icon {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 64px;
    height: 64px;
    border-radius: 22%;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 6px 16px rgba(59, 36, 20, 0.2);
    z-index: 2;
}

.bd-phone {
    width: min(100%, 440px);
    margin-inline: auto;
    border: 3px solid #3b2414;
    border-radius: 22px;
    background: #1a1008;
    padding: 10px 12px 14px;
    box-shadow: 0 18px 40px rgba(59, 36, 20, 0.28);
    position: relative;
}

.bd-phone--notch {
    width: 22%;
    max-width: 72px;
    height: 8px;
    margin: 0 auto 8px;
    background: #2a1a0e;
    border: 1px solid #3b2414;
    border-radius: 999px;
}

.bd-phone--screen {
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 1290 / 726;
}

.bd-phone--screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.bd-timeline {
    --bd-rail: 1.25rem;
    position: relative;
    padding: var(--space-xl) 0 var(--space-lg);
}

.bd-timeline::before {
    content: "";
    position: absolute;
    top: var(--space-md);
    bottom: var(--space-md);
    left: max(1.35rem, calc((100% - min(100% - 2rem, var(--bd-page-w))) / 2 + var(--bd-rail)));
    width: 3px;
    background: linear-gradient(var(--color-primary), var(--color-accent));
    border-radius: 2px;
}

.bd-timeline--node {
    position: relative;
    padding: 0 0 var(--space-xl);
}

.bd-timeline--node .bd-container {
    position: relative;
    padding-left: 3.75rem;
}

.bd-timeline--mark {
    position: absolute;
    left: calc(var(--bd-rail) - 1.25rem);
    top: 1.15rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 0 0 5px var(--color-bg), 0 4px 12px rgba(211, 84, 0, 0.35);
}

.bd-timeline--panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: var(--space-lg);
    box-shadow: 0 10px 28px rgba(59, 36, 20, 0.08);
    clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}

.bd-section--title,
.bd-page--title {
    margin: 0 0 var(--space-md);
    font-size: clamp(1.35rem, 2.6vw, 1.85rem);
    max-width: 40rem;
}

.bd-verdict--strip {
    font-size: 1.08rem;
    line-height: 1.55;
    border-left: 4px solid var(--color-accent);
    margin-bottom: var(--space-md);
    background: rgba(211, 84, 0, 0.06);
}

.bd-table-wrap {
    overflow-x: auto;
    margin: var(--space-md) 0 0;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: #fff;
}

.bd-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 280px;
}

.bd-table th,
.bd-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
    min-width: 0;
}

.bd-table tr:last-child th,
.bd-table tr:last-child td {
    border-bottom: 0;
}

.bd-table th {
    background: rgba(211, 84, 0, 0.08);
    font-family: var(--font-heading);
    width: 28%;
    color: var(--color-text);
    font-weight: 700;
}

.bd-table thead th {
    width: auto;
    background: linear-gradient(180deg, rgba(211, 84, 0, 0.16), rgba(211, 84, 0, 0.08));
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.bd-table tbody tr:nth-child(even) td {
    background: rgba(254, 245, 231, 0.55);
}

.bd-table--blog th { width: auto; }

.bd-checked {
    font-size: 0.88rem;
    color: var(--color-muted);
    margin: var(--space-sm) 0 0;
}

.bd-stills {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: var(--space-md) 0 0;
}

.bd-stills img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1290 / 726;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    background: #1a1008;
}

.bd-app--icon {
    width: 96px;
    height: 96px;
    border-radius: 22%;
    object-fit: contain;
    flex-shrink: 0;
    background: #fff;
}

.bd-dev--panel { margin-top: var(--space-sm); }

.bd-dev--head {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    margin-bottom: var(--space-md);
}

.bd-dev--meta { min-width: 0; }

.bd-dev--name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.bd-dev--facts {
    margin: 0;
    padding-left: 1.2rem;
}

.bd-dev--facts li { margin-bottom: 0.45rem; }

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

.bd-articles--card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    overflow: hidden;
    padding: 0;
}

.bd-articles--band {
    height: 72px;
    background: linear-gradient(120deg, var(--color-primary), var(--color-secondary));
}

.bd-articles--band__alt {
    background: linear-gradient(120deg, var(--color-secondary), var(--color-accent));
}

.bd-articles--band__deep {
    background: linear-gradient(120deg, var(--color-accent), var(--color-primary));
}

.bd-articles--title,
.bd-articles--card p,
.bd-articles--meta {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

.bd-articles--title { margin: var(--space-sm) 0; font-size: 1.15rem; }
.bd-articles--card p { margin: 0 0 var(--space-sm); flex: 1; }
.bd-articles--meta {
    display: block;
    padding-bottom: var(--space-md);
    font-size: 0.85rem;
    color: var(--color-muted);
}

.bd-cta {
    padding: var(--space-xl) 0;
    background: linear-gradient(180deg, rgba(211, 84, 0, 0.12), rgba(192, 57, 43, 0.18));
    text-align: center;
}

.bd-cta a.bd-btn--primary,
.bd-cta a.bd-btn--primary:visited { color: #fff; }

.bd-section { padding: var(--space-xl) 0; }

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

.bd-prose.bd-container,
.bd-article .bd-container {
    max-width: min(100% - 2rem, 760px);
}

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

.bd-steps {
    list-style: none;
    margin: var(--space-lg) 0;
    padding: 0;
    counter-reset: bd-step;
}

.bd-steps > li {
    position: relative;
    margin-bottom: var(--space-lg);
    padding-left: 3rem;
    counter-increment: bd-step;
}

.bd-steps > li::before {
    content: counter(bd-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bd-steps h2 { margin-top: 0; font-size: 1.25rem; }

.bd-form {
    display: grid;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.bd-form--row {
    display: grid;
    gap: 0.35rem;
}

.bd-form label { font-weight: 700; font-family: var(--font-heading); }

.bd-form input,
.bd-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--color-border);
    background: #fff;
    font: inherit;
    color: var(--color-text);
}

.bd-form textarea { min-height: 160px; resize: vertical; }

.bd-form--note {
    padding: 0.75rem 1rem;
    background: rgba(211, 84, 0, 0.12);
    border-left: 3px solid var(--color-primary);
}

.bd-contact--details {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.bd-crumbs { margin-bottom: var(--space-md); font-size: 0.9rem; }

.bd-crumbs--list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bd-crumbs--item:not(:last-child)::after {
    content: "/";
    margin-left: 0.5rem;
    color: var(--color-muted);
}

.bd-article--meta {
    color: var(--color-muted);
    font-size: 0.92rem;
}

.bd-sitemap { padding-left: 1.2rem; }
.bd-sitemap ul { margin-top: 0.35rem; }

.bd-footer {
    padding: var(--space-xl) 0 var(--space-lg);
    background: #f7e6cf;
    border-top: 2px solid var(--color-border);
}

.bd-footer--card {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
}

.bd-footer--lead {
    font-family: var(--font-heading);
    font-weight: 800;
    margin: 0 0 0.35rem;
    color: var(--color-primary);
}

.bd-footer--links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
    justify-items: start;
}

.bd-footer--links a,
.bd-footer--cookie {
    color: var(--color-text);
    font-weight: 700;
    text-decoration: underline;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.bd-footer--legal,
.bd-footer--copy {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.bd-cookie { display: none; }

.bd-cookie:not([hidden]) {
    display: flex;
    position: fixed;
    z-index: 110;
    gap: 12px;
    align-items: center;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 32px);
    border-radius: 999px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 10px 14px;
}

.bd-cookie p {
    margin: 0;
    font-size: 0.9rem;
    white-space: nowrap;
}

.bd-cookie--actions { display: flex; gap: 8px; }

.bd-cookie .bd-btn {
    border-radius: 999px;
    min-height: 40px;
    padding: 0.4rem 1rem;
    box-shadow: none;
}

.bd-cookie .bd-btn::before,
.bd-cookie .bd-btn::after { display: none; }

body.bd-cookie-open { padding-bottom: 72px; }

.is-in > * {
    animation: bd-k-up .4s ease both;
    animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes bd-k-up {
    from { opacity: 0; transform: translateY(12px); }
}

@media (prefers-reduced-motion: reduce) {
    .is-in > *,
    .bd-btn { animation: none !important; transition: none !important; }
}

@media (max-width: 1100px) {
    .bd-nav { display: none; }

    .bd-header--row { justify-content: space-between; }
    .bd-header--cta { display: none; }

    .bd-burger {
        display: block;
        width: 44px;
        height: 44px;
        margin-left: auto;
        order: 4;
        border: 0;
        background: transparent;
        cursor: pointer;
        padding: 10px;
    }

    .bd-burger span {
        display: block;
        height: 2px;
        margin: 5px 0;
        background: var(--color-text);
    }

    .bd-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;
    }

    .bd-drawer {
        display: block;
        position: fixed;
        z-index: 210;
        background: var(--color-bg);
        overflow-y: auto;
        visibility: hidden;
        transition: transform .3s ease, opacity .3s ease, visibility .3s;
    }

    .bd-drawer a {
        display: block;
        padding: 14px 20px;
        color: var(--color-text);
        text-decoration: none;
        font-weight: 700;
    }

    .bd-drawer a.bd-btn {
        margin: 12px 20px 24px;
        text-align: center;
        color: #fff;
    }

    .bd-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-text);
    }

    .bd-drawer--top {
        top: var(--bd-header-h);
        left: 0;
        right: 0;
        max-height: calc(100dvh - var(--bd-header-h));
        padding: 56px 0 16px;
        transform: translateY(-16px);
        opacity: 0;
        border-bottom: 2px solid var(--color-border);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    }

    body.nav-open { overflow: hidden; }
    body.nav-open .bd-overlay { opacity: 1; visibility: visible; }
    body.nav-open .bd-drawer { visibility: visible; }
    body.nav-open .bd-drawer--top { transform: translateY(0); opacity: 1; }
}

@media (max-width: 900px) {
    .bd-timeline {
        --bd-rail: 1.15rem;
    }

    .bd-timeline::before {
        left: 1.35rem;
    }

    .bd-timeline--node .bd-container {
        padding-left: 3.35rem;
        width: min(100% - 1.25rem, var(--bd-page-w));
        margin-left: 0.25rem;
        margin-right: auto;
    }

    .bd-timeline--mark {
        left: calc(1.35rem - 1.1rem - 0.25rem);
        top: 1rem;
        width: 2.2rem;
        height: 2.2rem;
        font-size: 0.78rem;
    }

    .bd-timeline--panel {
        padding: var(--space-md);
        clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
    }

    .bd-stills {
        grid-template-columns: 1fr 1fr;
    }

    .bd-stills img:last-child {
        grid-column: 1 / -1;
    }

    .bd-hero--grid { grid-template-columns: 1fr; }

    .bd-footer--card { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .bd-header--logo img { width: 120px; }

    .bd-hero--icon {
        width: 52px;
        height: 52px;
        top: -4px;
        left: 0;
    }

    .bd-phone {
        width: min(100%, 100%);
        border-radius: 16px;
        padding: 8px 8px 10px;
    }

    .bd-hero--actions { flex-direction: column; }
    .bd-hero--actions .bd-btn { width: 100%; }

    .bd-dev--head {
        flex-direction: column;
        align-items: flex-start;
    }

    .bd-articles--grid { grid-template-columns: 1fr; }

    .bd-cookie:not([hidden]) {
        left: 12px;
        right: 12px;
        transform: none;
        width: auto;
        max-width: none;
        flex-wrap: wrap;
        border-radius: 18px;
    }

    .bd-cookie p { white-space: normal; }

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

@media (max-width: 520px) {
    .bd-app--icon { width: 72px; height: 72px; }
}
