:root {
    --cocoa: #5b3a29;
    --cocoa-dark: #3c2318;
    --berry: #c9436b;
    --berry-light: #fbe8ee;
    --bg: #fffaf5;
    --surface: #ffffff;
    --border: #f0e2d6;
    --text: #2c211c;
    --text-muted: #77675e;
    --success: #2f7a4f;
    --danger: #a4342a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Trebuchet MS', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}
h1, h2, h3, .brand { font-family: 'Trebuchet MS', Arial, sans-serif; }
a { color: inherit; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

header {
    background: var(--cocoa);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--berry);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { font-size: 20px; font-weight: 700; letter-spacing: .5px; }
.brand span { color: var(--berry); }
nav.main-nav { display: flex; align-items: center; gap: 26px; }
nav.main-nav a { text-decoration: none; color: #f1e2da; font-size: 14px; font-weight: 500; }
nav.main-nav a:hover { color: var(--berry); }
.btn-order {
    background: var(--berry); color: #fff;
    padding: 10px 20px; border-radius: 4px; font-weight: 700; font-size: 14px;
    text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
    border: none; cursor: pointer;
}
.btn-order:hover { background: #b12e58; }

.hero {
    background: linear-gradient(180deg, var(--cocoa) 0%, var(--cocoa-dark) 100%);
    color: #fff; padding: 80px 0 90px; text-align: center;
}
.hero h1 { font-size: 38px; margin-bottom: 16px; }
.hero p { font-size: 16px; color: #ecdccf; max-width: 560px; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-outline { border: 1px solid rgba(255,255,255,.5); color: #fff; padding: 10px 22px; border-radius: 4px; text-decoration: none; font-size: 14px; }
.btn-outline:hover { background: rgba(255,255,255,.08); }

section { padding: 64px 0; }
.section-label { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--berry); font-weight: 700; margin-bottom: 8px; }
.section-title { font-size: 26px; margin-bottom: 18px; }
.section-intro { color: var(--text-muted); max-width: 620px; margin-bottom: 36px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 26px; }
.card .icon-badge { width: 42px; height: 42px; border-radius: 6px; background: var(--berry-light); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-muted); }
.card .price { font-weight: 700; color: var(--berry); margin-top: 10px; font-size: 15px; }

.stats-bar { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-bar .grid-3 { text-align: center; padding: 40px 0; }
.stat-num { font-size: 32px; font-weight: 700; color: var(--cocoa); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.notice-box { background: var(--berry-light); border: 1px solid #f3cdd9; border-radius: 6px; padding: 22px 26px; display: flex; gap: 16px; align-items: flex-start; }
.notice-box h3 { font-size: 15px; margin-bottom: 6px; }
.notice-box p { font-size: 13.5px; color: var(--text-muted); margin-bottom: 12px; }

footer { background: var(--cocoa-dark); color: #d9c9bd; padding: 40px 0 26px; font-size: 13px; }
footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
footer a { text-decoration: none; color: #d9c9bd; }
footer .foot-cols { display: flex; gap: 60px; }
footer h4 { color: #fff; font-size: 13px; margin-bottom: 10px; }
footer li { list-style: none; margin-bottom: 6px; }
.foot-bottom { border-top: 1px solid #4a2f22; margin-top: 26px; padding-top: 18px; text-align: center; font-size: 12px; }

.icon { width: 22px; height: 22px; stroke: var(--cocoa); fill: none; stroke-width: 1.6; }
.icon-sm { width: 16px; height: 16px; }

.page-hero { background: var(--cocoa); color: #fff; padding: 46px 0; text-align: center; }
.page-hero h1 { font-size: 26px; }
.page-hero p { color: #ecdccf; font-size: 14px; margin-top: 6px; }

.form-wrap { max-width: 520px; margin: 50px auto; padding: 0 20px; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 30px; }
.form-group { margin-bottom: 16px; }
label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
input, select {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 4px;
    font-size: 14px; font-family: inherit; background: #fff; color: var(--text);
}
input:focus, select:focus { outline: none; border-color: var(--cocoa); }
.fee-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.btn-submit {
    width: 100%; background: var(--cocoa); color: #fff; border: none; padding: 13px;
    border-radius: 4px; font-size: 15px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-submit:hover { background: var(--cocoa-dark); }
.btn-submit:disabled { opacity: .5; cursor: not-allowed; }

.trust-line { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); margin-top: 16px; justify-content: center; }

.alert-box { padding: 12px 14px; border-radius: 4px; font-size: 13px; margin-top: 16px; display: none; }
.alert-box.show { display: block; }
.alert-error { background: #fbeceb; color: var(--danger); border: 1px solid #f0cdc9; }

.status-panel { text-align: center; padding: 10px 0; }
.status-panel .spinner { width: 30px; height: 30px; margin: 0 auto 18px; border: 3px solid var(--berry-light); border-top-color: var(--berry); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-amount { font-size: 28px; font-weight: 700; color: var(--cocoa); margin: 10px 0 4px; }
.status-ref { font-size: 12px; color: var(--text-muted); }
.status-result-ok { color: var(--success); font-weight: 700; }
.status-result-fail { color: var(--danger); font-weight: 700; }
.btn-link { display: inline-block; margin-top: 18px; font-size: 13px; color: var(--cocoa); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--berry); }

.receipt-wrap { max-width: 480px; margin: 60px auto; padding: 0 20px; }
.receipt-card { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.receipt-head { background: var(--cocoa); color: #fff; padding: 26px; text-align: center; }
.receipt-head .status-tag { display: inline-block; padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.receipt-head .status-tag.ok { background: #1f4d33; color: #b7f3cd; }
.receipt-head .status-tag.pending { background: #4d3f1f; color: #f3dab7; }
.receipt-head .status-tag.fail { background: #4d1f1f; color: #f3b7b7; }
.receipt-head .amount { font-size: 30px; font-weight: 700; }
.receipt-body { padding: 26px; }
.receipt-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.receipt-row:last-child { border-bottom: none; }
.receipt-row .label { color: var(--text-muted); }
.receipt-foot { padding: 18px 26px; background: var(--berry-light); font-size: 12px; color: var(--text-muted); text-align: center; }

@media (max-width: 768px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    nav.main-nav { display: none; }
    footer .container { flex-direction: column; }
}