:root {
    --site-black: #050608;
    --site-card: #0b0d12;
    --site-input: #0f1218;
    --site-gold: #c9a24d;
    --site-gold-light: #f5e1b9;
    --site-text: #f3f4f6;
    --site-muted: rgba(243, 244, 246, 0.72);
    --site-border: rgba(201, 162, 77, 0.30);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--site-text);
    background: var(--site-black);
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-size:17px;    
}

a {
    color: var(--site-gold);
}

.gold {
    color: var(--site-gold);
}

.small-muted {
    color: var(--site-muted);
}

/* Top bar */

.top-bar {
    position: sticky;
    top: 0;
    z-index: 1050;
    border-bottom: 1px solid rgba(245, 225, 185, 0.18);
    background: rgba(0, 0, 0, 0.90);
    backdrop-filter: blur(10px);
}

.site-brand {
    color: var(--site-gold-light);
    font-weight: 800;
    letter-spacing: 0.6px;
}

/* Burger */

.burger {
    position: relative;
    width: 34px;
    height: 26px;
    padding: 0;
    border: 0;
    background: transparent;
}

.burger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: var(--site-gold-light);
    transition: all 0.25s ease;
}

.burger span:nth-child(1) {
    top: 0;
}

.burger span:nth-child(2) {
    top: 11px;
}

.burger span:nth-child(3) {
    top: 22px;
}

.burger.active span:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    top: 11px;
    transform: rotate(-45deg);
}

/* Offcanvas */

.offcanvas {
    color: var(--site-gold-light);
    background: #0b0b0b;
}

.offcanvas-header {
    border-bottom: 1px solid var(--site-border);
}

/* Shared cards and buttons */

.card-dark {
    color: var(--site-text);
    border: 1px solid var(--site-border);
    background: var(--site-card);
}

.btn-gold {
    color: var(--site-black);
    border-color: var(--site-gold);
    background: var(--site-gold);
    font-weight: 700;
}

.btn-gold:hover,
.btn-gold:focus {
    color: var(--site-black);
    border-color: #d9b35b;
    background: #d9b35b;
}

.btn-outline-gold {
    color: var(--site-text);
    border: 1px solid rgba(201, 162, 77, 0.75);
    font-weight: 700;
}

.btn-outline-gold:hover,
.btn-outline-gold:focus {
    color: #ffffff;
    border-color: var(--site-gold);
    background: rgba(201, 162, 77, 0.14);
}

/* Public page shell */

.public-page {
    padding: 48px 12px 70px;
}

.public-page-wrapper {
    max-width: 920px;
    margin: 0 auto;
}

.public-page-card {
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: 22px;
    background: var(--site-card);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

.public-page-hero {
    padding: 46px 30px;
    text-align: center;
    background:
        linear-gradient(
            135deg,
            rgba(201, 162, 77, 0.18),
            rgba(11, 13, 18, 0.98)
        );
}

.public-page-hero h1 {
    margin-bottom: 14px;
    color: #ffffff;
    font-weight: 800;
}

.public-page-content {
    padding: 38px;
}

/* Forms */

.form-label {
    color: var(--site-text);
    font-weight: 650;
}

.form-control,
.form-select {
    color: #ffffff;
    border: 1px solid rgba(201, 162, 77, 0.45);
    border-radius: 11px;
    background-color: var(--site-input);
}

.form-control::placeholder {
    color: rgba(243, 244, 246, 0.50);
}

.form-control:focus,
.form-select:focus {
    color: #ffffff;
    border-color: var(--site-gold);
    background-color: var(--site-input);
    box-shadow: 0 0 0 0.18rem rgba(201, 162, 77, 0.24);
}

.form-select option {
    color: #ffffff;
    background: var(--site-input);
}

.form-text {
    color: var(--site-muted);
    font-size:15px;
}

.required-mark {
    color: #ff7373;
}

/* Story accordion */

.story-accordion .accordion-item {
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: 16px;
    background: var(--site-card);
}

.story-accordion .accordion-item:not(:first-of-type) {
    border-top: 1px solid var(--site-border);
}

.story-accordion .accordion-button {
    gap: 13px;
    padding: 20px;
    color: var(--site-text);
    background: #10131a;
    box-shadow: none;
}

.story-accordion .accordion-button:not(.collapsed) {
    color: var(--site-gold-light);
    background: rgba(201, 162, 77, 0.12);
    box-shadow: none;
}

.story-accordion .accordion-button:focus {
    border-color: transparent;
    box-shadow: 0 0 0 0.2rem rgba(201, 162, 77, 0.16);
}

.story-accordion .accordion-button::after {
    margin-left: 12px;
    filter: invert(1);
}

.story-accordion .accordion-body {
    padding: 24px;
    color: var(--site-text);
    border-top: 1px solid var(--site-border);
    background: var(--site-card);
}

.accordion-step-number {
    display: inline-flex;
    width: 40px;
    min-width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--site-black);
    background: var(--site-gold);
    font-weight: 800;
}

.accordion-summary {
    display: block;
    margin-top: 3px;
    color: var(--site-muted);
    font-size: 0.88rem;
    font-weight: 400;
}

.step-complete {
    display: inline-flex;
    width: 28px;
    min-width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: #198754;
    font-weight: 800;
}

.story-wrapper{
    max-width:950px;
    margin:auto;
    
}

.story-title{
    font-size:22px;

}

.story-field {
    min-height: 160px;
    padding: 14px;
    resize: vertical;
}

.story-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}

.story-actions .btn {
    min-height: 44px;
    border-radius: 10px;
    font-weight: 700;
}

.footer-note {
    color: rgba(243, 244, 246, 0.60);
    font-size: 12px;
}

/* Mobile */

@media (max-width: 767.98px) {
    .public-page {
        padding: 28px 10px 50px;
    }

    .public-page-hero {
        padding: 34px 20px;
    }

    .public-page-content {
        padding: 22px 15px;
    }

    .story-accordion .accordion-button {
        padding: 16px 13px;
    }

    .story-accordion .accordion-body {
        padding: 18px 13px;
    }

    .accordion-summary {
        display: none;
    }

    .accordion-step-number {
        width: 35px;
        min-width: 35px;
        height: 35px;
    }
}