:root {
    --bg-main: #120704;
    --bg-panel: #1b0d06;
    --bg-panel-soft: #271208;
    --bg-field: #2d1609;
    --border-soft: rgba(246, 203, 107, 0.68);
    --text-main: #ffffff;
    --text-muted: #fff2d8;
    --text-dim: #e8d1aa;
    --accent: #ffcf66;
    --button-start: #ffcb5b;
    --button-end: #ad6510;
    --danger: #ff8d67;
    --shadow-main: 0 20px 50px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 194, 77, 0.24), transparent 28%),
        radial-gradient(circle at 50% 18%, rgba(139, 69, 19, 0.22), transparent 34%),
        linear-gradient(180deg, #0f0503 0%, #140804 40%, #1b0b05 100%);
    color: var(--text-main);
}

a {
    color: inherit;
    text-decoration: none;
}

.agency-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 8px 0 36px;
}

.page-shell {
    width: min(100%, 390px);
    padding: 0 4px 28px;
}

.hero-panel {
    position: relative;
    padding: 12px 0 4px;
}

.top-logo {
    display: block;
    width: 116px;
    margin: 0 auto 12px;
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.hero-title {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.2;
    text-align: center;
    color: #ffe4a1;
    font-weight: 700;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.form-card,
.rules-card {
    background:
        linear-gradient(180deg, rgba(44, 20, 9, 0.98), rgba(25, 11, 5, 0.99));
    border: 1px solid rgba(245, 196, 95, 0.48);
    border-radius: 16px;
    box-shadow: var(--shadow-main);
}

.rules-card {
    margin-bottom: 14px;
    padding: 14px 12px;
}

.rules-intro h2 {
    margin: 8px 0 10px;
    font-size: 18px;
    line-height: 1.35;
    color: #ffe4a1;
}

.rules-intro p,
.rule-body p,
.rules-contact p {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
}

.rules-kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 204, 94, 0.12);
    border: 1px solid rgba(255, 204, 94, 0.24);
    color: #ffcf66;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rules-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.rule-item {
    border: 1px solid rgba(245, 196, 95, 0.26);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.rule-item summary {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    cursor: pointer;
    padding: 12px 14px;
}

.rule-item summary::-webkit-details-marker {
    display: none;
}

.rule-item[open] summary {
    border-bottom: 1px solid rgba(245, 196, 95, 0.18);
}

.rule-number {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffcb5b, #b16a13);
    color: #2a1303;
    font-size: 13px;
    font-weight: 800;
}

.rule-title {
    color: #fff2d8;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
}

.rule-body {
    padding: 12px 14px 14px;
}

.rule-body ul {
    margin: 0 0 10px;
    padding-left: 18px;
    color: var(--text-muted);
}

.rule-body li {
    margin-bottom: 7px;
    font-size: 13px;
    line-height: 1.55;
}

.rule-note {
    color: #ffde94;
    font-weight: 700;
}

.rules-contact {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(245, 196, 95, 0.18);
}

.form-card {
    padding: 12px 10px 14px;
}

.download-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #ffffff;
    color: #291305;
    border-radius: 14px;
    padding: 11px 12px;
    margin-bottom: 14px;
}

.download-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.download-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(45, 20, 6, 0.18);
}

.download-copy h2,
.download-copy p {
    margin: 0;
}

.download-copy h2 {
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
}

.download-copy p {
    font-size: 9px;
    line-height: 1.25;
    color: #795d35;
    margin-top: 3px;
}

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffd56f, #b56a11);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(156, 90, 10, 0.28);
}

.agency-form {
    display: grid;
    gap: 10px;
}

.field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.field-label {
    display: block;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    color: #ffffff;
}

.field-label span {
    color: var(--danger);
    margin-right: 2px;
}

.plain-label {
    font-weight: 700;
}

.helper-link {
    color: var(--accent);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
}

.text-field {
    width: 100%;
    height: 46px;
    border: 1.5px solid var(--border-soft);
    border-radius: 11px;
    background: rgba(69, 31, 10, 0.88);
    color: #fff6e3;
    font-size: 14px;
    padding: 0 14px;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 231, 180, 0.08);
}

.text-field::placeholder {
    color: rgba(248, 225, 181, 0.7);
}

.split-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 8px;
}

.mini-button,
.submit-button {
    border: 0;
    color: #2a1303;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(180deg, var(--button-start), var(--button-end));
    box-shadow: 0 10px 22px rgba(79, 34, 6, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.mini-button {
    border-radius: 12px;
    font-size: 17px;
}

.submit-button {
    height: 44px;
    margin: 6px 12px 2px;
    border-radius: 999px;
    font-size: 18px;
}

.mini-button:disabled,
.submit-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    box-shadow: none;
}

.field-status {
    min-height: 18px;
    margin: -2px 0 2px;
    font-size: 12px;
    line-height: 1.4;
}

.field-status-success {
    color: #ffd98f;
}

.field-status-error {
    color: #ff9c7e;
}

.steps-card {
    margin-top: 14px;
    padding: 14px 10px 16px;
}

.steps-card h2 {
    margin: 0 0 14px;
    font-size: 17px;
    line-height: 1.2;
    color: #ffe4a1;
}

.step-list {
    position: relative;
    display: grid;
    gap: 12px;
}

.step-list::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 10px;
    bottom: 36px;
    border-left: 2px dashed rgba(255, 255, 255, 0.64);
}

.step-item {
    position: relative;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
}

.step-index {
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #ffcb66;
    text-shadow: 0 0 12px rgba(255, 203, 102, 0.35);
}

.step-body p {
    margin: 0 0 7px;
    font-size: 13px;
    font-weight: 700;
}

.step-body img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

@media (min-width: 391px) {
    .page-shell {
        padding-left: 0;
        padding-right: 0;
    }
}
