:root {
    --bw-frame: 1080px;
    --bw-rail: 196px;
    --soil: #3a2a1a;
    --leaf: #5a8a28;
    --leaf-deep: #3f6b1c;
    --sky: #6eb8d4;
    --sky-soft: #d8eef6;
    --hay: #e8c45a;
    --cream: #f7f1e6;
    --paper: #fffdf8;
    --ink: #2a241c;
    --muted: #6a5f52;
    --line: rgba(58, 42, 26, 0.12);
    --danger: #b42318;
    --ok: #2f6b2f;
    --shop: #d97706;
    --shop-deep: #b45309;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    font-family: "Karla", system-ui, sans-serif;
    background:
        radial-gradient(ellipse at 12% 0%, rgba(110, 184, 212, 0.28), transparent 48%),
        radial-gradient(ellipse at 88% 18%, rgba(90, 138, 40, 0.16), transparent 42%),
        linear-gradient(180deg, #eef6f8 0%, var(--cream) 42%, #ebe3d4 100%);
    min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--leaf-deep); text-decoration: none; }
a:hover { color: var(--shop-deep); }
h1, h2, h3, .bw-display {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.45em;
}

.bw-shell { min-height: 100vh; }
.bw-frame {
    width: min(100% - 28px, var(--bw-frame));
    margin: 0 auto;
}
.bw-stage {
    display: grid;
    grid-template-columns: 1fr var(--bw-rail);
    gap: 22px;
    align-items: start;
    padding: 22px 0 40px;
}
.bw-canvas {
    min-width: 0;
    background: rgba(255, 253, 248, 0.78);
    border: 1px solid var(--line);
    border-radius: 4px 28px 4px 28px;
    padding: 28px 26px 34px;
    box-shadow: 0 18px 40px rgba(58, 42, 26, 0.08);
}
.bw-spine {
    position: sticky;
    top: 18px;
    background: linear-gradient(165deg, #1f3d24 0%, #2d4f2a 48%, #1a3340 100%);
    color: #f5f8ef;
    border-radius: 28px 4px 28px 4px;
    padding: 18px 14px 20px;
    box-shadow: 0 16px 34px rgba(26, 51, 64, 0.28);
}
.bw-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    color: inherit;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.14);
}
.bw-brand img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: rgba(255,255,255,0.92);
    border-radius: 18px;
    padding: 6px;
}
.bw-brand strong {
    font-family: "Fraunces", Georgia, serif;
    font-size: 15px;
    line-height: 1.25;
}
.bw-brand em {
    font-style: normal;
    font-size: 11px;
    opacity: 0.78;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.bw-burger {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    cursor: pointer;
}
.bw-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.bw-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px 4px 999px 4px;
    color: rgba(255,255,255,0.88);
    font-size: 13px;
    font-weight: 700;
    transition: background .2s, transform .2s;
}
.bw-link i { width: 16px; text-align: center; opacity: 0.9; }
.bw-link:hover { background: rgba(255,255,255,0.1); color: #fff; transform: translateX(-2px); }
.bw-link.is-on { background: rgba(232, 196, 90, 0.22); color: #fff; }
.bw-link-moss { border-left: 3px solid #8fbf5a; }
.bw-link-clay { border-left: 3px solid #c9894a; }
.bw-link-sky { border-left: 3px solid #7ec8e3; }
.bw-link-stone { border-left: 3px solid #b7b0a4; }
.bw-link-shop {
    margin-top: 6px;
    justify-content: center;
    background: linear-gradient(135deg, var(--shop), #f0b429);
    color: #2a1a08 !important;
    border-left: 0 !important;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(217, 119, 6, 0.35);
    font-size: 14px;
    padding: 12px 12px;
}
.bw-link-shop:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    color: #2a1a08 !important;
}
.bw-link-shop.is-on {
    outline: 2px solid #fff3;
}

.bw-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--leaf-deep);
    margin-bottom: 8px;
}
.bw-title { font-size: clamp(28px, 4vw, 42px); line-height: 1.12; }
.bw-lead { color: var(--muted); font-size: 16px; line-height: 1.65; margin: 0 0 18px; max-width: 62ch; }

.bw-mast {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 22px;
    align-items: center;
    margin-bottom: 28px;
}
.bw-mast-visual {
    margin: 0;
    border-radius: 8px 32px 8px 32px;
    overflow: hidden;
    border: 1px solid var(--line);
    min-height: 260px;
    background: #cfe8f1;
}
.bw-mast-visual img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
}

.bw-store-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}
.bw-store-row a {
    display: block;
    transition: transform .2s;
}
.bw-store-row a:hover { transform: translateY(-2px); }
.bw-store-row img { height: 48px; width: auto; }

.bw-mosaic {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 14px;
    margin: 8px 0 26px;
}
.bw-panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 4px 20px;
    padding: 18px 18px 16px;
}
.bw-panel h2 { font-size: 22px; }
.bw-panel p { margin: 0 0 12px; color: var(--muted); line-height: 1.6; font-size: 15px; }
.bw-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: 14px;
}
.bw-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.bw-strip img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 14px 4px;
    border: 1px solid var(--line);
}

.bw-split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 22px;
    align-items: start;
}
.bw-split.reverse { grid-template-columns: 1.1fr 0.9fr; }
.bw-photo {
    margin: 0;
    border-radius: 24px 6px;
    overflow: hidden;
    border: 1px solid var(--line);
}
.bw-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.bw-copy p { color: var(--muted); line-height: 1.7; margin: 0 0 14px; }
.bw-feature-list {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}
.bw-feature-list li {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 10px;
    align-items: start;
    background: rgba(90, 138, 40, 0.08);
    border-radius: 12px;
    padding: 12px;
}
.bw-feature-list i {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--leaf);
    color: #fff;
}
.bw-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px;
}
.bw-gallery img {
    width: 100%;
    aspect-ratio: 16/11;
    object-fit: cover;
    border-radius: 8px 18px;
    border: 1px solid var(--line);
}

.bw-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.bw-contact-card {
    background: var(--paper);
    border: 1px dashed rgba(90, 138, 40, 0.35);
    border-radius: 18px 6px;
    padding: 18px;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: start;
}
.bw-contact-card i {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--sky-soft);
    color: #1f5f78;
    font-size: 18px;
}
.bw-contact-card strong { display: block; margin-bottom: 4px; }
.bw-contact-card span, .bw-contact-card a { color: var(--muted); font-size: 15px; line-height: 1.5; }

.bw-notes {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: grid;
    gap: 8px;
}
.bw-notes li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}
.bw-notes i { color: var(--leaf); margin-top: 2px; }

.bw-alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #fef3f2;
    color: var(--danger);
    border: 1px solid #fecdca;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 14px;
}

.bw-money-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
}
.bw-money-btn {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 800;
    cursor: pointer;
    color: var(--ink);
}
.bw-money-btn.is-on {
    background: var(--leaf);
    border-color: var(--leaf);
    color: #fff;
}

.bw-market {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18px;
    align-items: start;
}
.bw-gem-col { min-width: 0; }
.bw-gem-scroll {
    max-height: 520px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--leaf) rgba(58, 42, 26, 0.08);
}
.bw-gem-scroll::-webkit-scrollbar { width: 8px; }
.bw-gem-scroll::-webkit-scrollbar-track {
    background: rgba(58, 42, 26, 0.06);
    border-radius: 999px;
}
.bw-gem-scroll::-webkit-scrollbar-thumb {
    background: var(--leaf);
    border-radius: 999px;
}
.bw-order {
    background: linear-gradient(160deg, #243d2a, #1c3644);
    color: #f4f7ef;
    border-radius: 8px 24px;
    padding: 20px;
    position: sticky;
    top: 18px;
}
.bw-order h2 { color: #fff; font-size: 24px; margin-bottom: 14px; }
.bw-field { margin-bottom: 14px; }
.bw-field label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 6px;
    opacity: 0.85;
}
.bw-field input[type="text"],
.bw-field input[type="email"] {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 10px;
    padding: 11px 12px;
    font: inherit;
}
.bw-field input[readonly] { opacity: 0.85; }
.bw-picked {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 12px;
    font-weight: 700;
}
.bw-pay-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.bw-pay {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.16);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}
.bw-pay input { accent-color: var(--hay); }
.bw-pay.is-on { background: rgba(232, 196, 90, 0.18); border-color: rgba(232, 196, 90, 0.55); }
.bw-agree {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 8px;
    align-items: start;
    font-size: 13px;
    line-height: 1.45;
}
.bw-agree a { color: var(--hay); }
.bw-err { display: block; min-height: 16px; color: #ffb4ab; font-size: 12px; margin-top: 4px; }
.bw-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.bw-gem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.bw-gem {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 10px;
    align-items: center;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px 4px;
    padding: 12px;
    cursor: pointer;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.bw-gem:hover { transform: translateY(-1px); }
.bw-gem.is-on {
    border-color: var(--leaf);
    box-shadow: 0 0 0 2px rgba(90, 138, 40, 0.2);
}
.bw-gem img { width: 56px; height: 56px; object-fit: contain; }
.bw-gem-title { font-weight: 800; font-size: 15px; }
.bw-gem-price {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 700;
    color: var(--shop-deep);
    white-space: nowrap;
}
.bw-load, .bw-empty {
    padding: 22px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: 12px;
}

.bw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 800;
    cursor: pointer;
    font: inherit;
    text-decoration: none;
}
.bw-btn-shop {
    width: 100%;
    background: linear-gradient(135deg, var(--shop), #f0b429);
    color: #2a1a08;
}
.bw-btn-leaf { background: var(--leaf); color: #fff; }
.bw-btn-ghost {
    background: transparent;
    border: 1px solid currentColor;
    color: inherit;
}

.bw-invoice, .bw-result {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px 28px;
    padding: 28px 22px;
}
.bw-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    margin: 18px 0;
}
.bw-table th, .bw-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}
.bw-table th { width: 36%; color: var(--muted); font-weight: 700; }
.bw-total { color: var(--shop-deep); font-weight: 800; font-size: 18px; }
.bw-count {
    font-family: "Fraunces", Georgia, serif;
    font-size: 42px;
    color: var(--leaf-deep);
    margin: 8px 0 16px;
}
.bw-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
}
.bw-result i { font-size: 42px; margin-bottom: 10px; }
.bw-result.ok i { color: var(--ok); }
.bw-result.bad i { color: var(--danger); }

.bw-foot {
    border-top: 1px solid var(--line);
    padding: 22px 0 36px;
    margin-top: 8px;
}
.bw-foot-grid {
    display: grid;
    gap: 14px;
}
.bw-foot-brand {
    display: flex;
    gap: 12px;
    align-items: center;
}
.bw-foot-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
    padding: 4px;
}
.bw-foot-brand strong { display: block; }
.bw-foot-brand span { display: block; color: var(--muted); font-size: 13px; }
.bw-foot-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    font-size: 13px;
    font-weight: 700;
}
.bw-foot-copy { color: var(--muted); font-size: 13px; margin: 0; }

@media (max-width: 920px) {
    .bw-stage { grid-template-columns: 1fr; padding-top: 12px; }
    .bw-spine {
        position: relative;
        top: 0;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        border-radius: 18px;
        order: -1;
    }
    .bw-brand {
        flex-direction: row;
        border: 0;
        margin: 0;
        padding: 0;
        text-align: left;
    }
    .bw-brand img { width: 48px; height: 48px; }
    .bw-burger { display: grid; place-items: center; }
    .bw-menu {
        display: none;
        width: 100%;
    }
    .bw-menu.is-open { display: block; }
    .bw-mast, .bw-mosaic, .bw-split, .bw-split.reverse, .bw-contact-grid {
        grid-template-columns: 1fr;
    }
    .bw-strip, .bw-gallery { grid-template-columns: repeat(2, 1fr); }
    .bw-market { grid-template-columns: 1fr; }
    .bw-gem-scroll { max-height: 360px; }
    .bw-order { position: static; }
    .bw-gem-grid, .bw-pay-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .bw-canvas { padding: 18px 14px 24px; border-radius: 4px 18px; }
    .bw-strip, .bw-gallery { grid-template-columns: 1fr 1fr; }
    .bw-store-row img { height: 42px; }
}
