:root{
    --bg: #f6f7fb;
    --surface: #ffffff;
    --surface-2: #fbfbfd;

    --text: #0f172a;
    --muted: #475569;
    --hint: #64748b;

    --border: rgba(15, 23, 42, 0.10);
    --border-strong: rgba(15, 23, 42, 0.14);
    --shadow: 0 18px 42px rgba(2, 6, 23, 0.10);

    --accent: #2563eb;
    --accent-2: #7c3aed; /* оставляем как вторичный акцент, но без градиента */
    --accent-soft: rgba(37, 99, 235, 0.10);

    --danger: #dc2626;
    --danger-soft: rgba(220, 38, 38, 0.10);

    --ok: #16a34a;
    --ok-soft: rgba(22, 163, 74, 0.10);

    --radius: 18px;
    --radius-sm: 12px;

    --focus: 0 0 0 4px rgba(37, 99, 235, 0.14);

    --container: 1040px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
    color: var(--text);
    background: var(--bg); /* без градиента вообще */
    line-height: 1.5;
}

a{
    color: var(--accent);
    text-decoration: none;
}
a:hover{ text-decoration: underline; }

.container{
    max-width: var(--container);
    margin: 0 auto;
    padding: 28px 16px 56px;
}
.registration-banner{
    margin: 0 0 18px;
    width: 100%;
    max-width: 100%;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.10);
}

.registration-banner img{
    display: block;
    width: 100%;
    max-width: 100%;
    height: clamp(220px, 31vw, 380px);
    object-fit: cover;
    object-position: center;
}

.registration-banner-meta{
    position: absolute;
    left: 18px;
    bottom: 18px;
    max-width: min(640px, calc(100% - 36px));
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.12);
    backdrop-filter: blur(2px);
    overflow-wrap: anywhere;
}

.registration-banner-meta .title{
    margin-bottom: 4px;
}

.registration-banner-meta .subtitle{
    color: var(--muted);
}

.header{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.brand{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.title{
    margin: 0;
    font-size: clamp(22px, 3vw, 32px);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.subtitle{
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.badge{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.92); /* однотон */
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(2, 6, 23, 0.06);
}
.badge-note{
    font-size: 11px;
    color: #e03131;
    white-space: normal;
}

.total-sticky{
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 15px 19px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.12);
    font-size: 18px;
    z-index: 30;
}

.total-sticky-label{
    color: var(--muted);
}

.total-sticky-value{
    color: var(--text);
    font-weight: 600;
}

.input-error{
    border-color: #e03131 !important;
    background: #fff5f5;
    box-shadow: 0 0 0 3px rgba(224, 49, 49, 0.12);
}
.grid{
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 16px;
    align-items: stretch;
}

@media (max-width: 860px){
    .grid{ grid-template-columns: 1fr; }
    .header{
        align-items: flex-start;
        flex-direction: column;
    }

    .total-sticky{
        left: 16px;
        right: 16px;
        bottom: 16px;
        justify-content: space-between;
    }

    .registration-banner img{
        height: clamp(180px, 40vw, 280px);
    }
}

@media (max-width: 640px){
    .registration-banner{
        border-radius: var(--radius-sm);
    }

    .registration-banner img{
        height: clamp(160px, 52vw, 240px);
    }

    .registration-banner-meta{
        position: static;
        max-width: 100%;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
        border-radius: 0;
        box-shadow: none;
        backdrop-filter: none;
    }

}
.card{
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96); /* без градиента */
    box-shadow: var(--shadow);
    overflow: hidden;
    height: 100%;
    min-height: 100%;
}

.grid > .card{ align-self: stretch; }

.card-header{
    padding: 18px 18px 0;
}

.card-body{
    padding: 18px;
    flex: 1 1 auto;
}

.card-footer{
    padding: 16px 18px 18px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(15, 23, 42, 0.01); /* лёгкая однотонная заливка */
}

.section-title{
    margin: 0 0 8px;
    font-size: 15px;
    letter-spacing: -0.01em;
}

.note{
    color: var(--hint);
    font-size: 12px;
    margin-top: 6px;
}

hr.sep{
    border: 0;
    border-top: 1px dashed rgba(15, 23, 42, 0.14);
    margin: 14px 0;
}

.alert{
    border-radius: var(--radius-sm);
    border: 1px solid rgba(220, 38, 38, 0.22);
    background: var(--danger-soft);
    padding: 12px 12px;
    color: #7f1d1d;
    margin: 0 0 14px;
}
.alert strong{ color: #7f1d1d; }

.success{
    border: 1px solid rgba(22, 163, 74, 0.22);
    background: var(--ok-soft);
    border-radius: var(--radius-sm);
    padding: 12px;
    color: #14532d;
}

.form{
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.row{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 640px){
    .row{ grid-template-columns: 1fr; }
}

.field{
    display: flex;
    flex-direction: column;
    gap: 6px;
}


.label{
    font-size: 12px;
    color: var(--muted);
    font-weight: 650;
    letter-spacing: 0.01em;
}

.small{
    font-size: 12px;
    color: var(--hint);
}

.input,
.textarea,
.select{
    width: 100%;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid var(--border-strong);
    background: #ffffff; /* однотон */
    color: var(--text);
    outline: none;
    transition: box-shadow 140ms ease, border-color 140ms ease, transform 140ms ease, background 140ms ease;
}

.input::placeholder,
.textarea::placeholder{
    color: rgba(71, 85, 105, 0.55);
}

.input:focus,
.textarea:focus,
.select:focus{
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: var(--focus);
}

.input:disabled,
.textarea:disabled,
.select:disabled{
    background: rgba(15, 23, 42, 0.04);
    color: rgba(15, 23, 42, 0.45);
    cursor: not-allowed;
}

.textarea{
    min-height: 92px;
    resize: vertical;
}

.radio-group{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.radio{
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: #ffffff; /* однотон */
    cursor: pointer;
    user-select: none;
    transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.radio:hover{
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 10px 18px rgba(2, 6, 23, 0.06);
}

.radio input{ accent-color: var(--accent); }

.radio:has(input:checked){
    border-color: rgba(37, 99, 235, 0.45);
    background: rgba(37, 99, 235, 0.08);
    box-shadow: 0 12px 20px rgba(2, 6, 23, 0.06);
}

@supports not selector(:has(*)){
    .radio input:checked{ outline: none; }
}

.btns{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.btn,
.btn-secondary,
.btn-ghost{
    appearance: none;
    cursor: pointer;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 750;
    line-height: 1;
    letter-spacing: 0.01em;
    transition: transform 140ms ease, filter 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

/* primary: однотон, без градиента */
.btn{
    border: 0;
    color: #ffffff;
    background: var(--accent);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}
.btn:hover{
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.26);
}
.btn:active{
    transform: translateY(0px);
    filter: brightness(0.98);
}

.btn-secondary{
    color: var(--text);
    background: #ffffff;
    border: 1px solid var(--border-strong);
    box-shadow: 0 12px 26px rgba(2, 6, 23, 0.08);
}
.btn-secondary:hover{
    transform: translateY(-1px);
    border-color: rgba(15, 23, 42, 0.20);
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.10);
}

.btn-ghost{
    color: var(--accent);
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.24);
    box-shadow: 0 12px 26px rgba(2, 6, 23, 0.06);
}
.btn-ghost:hover{
    transform: translateY(-1px);
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.34);
}

.btn:disabled,
.btn-secondary:disabled,
.btn-ghost:disabled{
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    filter: none;
}

.field .btns{
    justify-content: flex-end;
}

.guests{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guest-card{
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: #ffffff; /* однотон */
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.05);
}

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

.guest-title{
    font-size: 12px;
    color: var(--muted);
    font-weight: 650;
}

.icon-btn{
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #ffffff; /* однотон */
    color: var(--text);
    border-radius: 12px;
    padding: 8px 10px;
    cursor: pointer;
    transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.icon-btn:hover{
    transform: translateY(-1px);
    border-color: rgba(15, 23, 42, 0.20);
    box-shadow: 0 12px 22px rgba(2, 6, 23, 0.06);
}

.price{
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: #ffffff; /* однотон */
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.05);
}

.price-row{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    font-size: 13px;
    color: var(--muted);
}

.price-row > span{
    flex: 0 0 auto;
}

.price-row b{
    color: var(--text);
    font-weight: 750;
    text-align: right;
    max-width: min(65%, 360px);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.price-total{
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-size: 15px;
    font-weight: 850;
    letter-spacing: -0.01em;
}

.code{
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(15, 23, 42, 0.04);
    color: rgba(15, 23, 42, 0.92);
}
.support-box{
    margin-top: 14px;
    border: 1px solid rgba(22, 163, 74, 0.20);
    background: rgba(22, 163, 74, 0.08);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

.support-box__text{
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.support-box__contacts{
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--text);
}

.support-box__contacts a{
    font-weight: 700;
    color: #14532d;
}


.footer-note{
    margin-top: 14px;
    color: var(--hint);
    font-size: 12px;
}
.consents{
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.consent-item{
    display: flex;
    width: 100%;

    color: var(--muted);
    font-size: 13px;
}

.consent-line{
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
    width: 100%;
}

.consent-item input[type="checkbox"]{
    margin-top: 2px;
    accent-color: var(--accent);
    flex: 0 0 auto;
}

.consent-item input[type="checkbox"].input-error{
    outline: 2px solid #e03131;
    outline-offset: 2px;
}


.card-body .small iframe,
.card-body .small img{
    max-width: 100%;
    border-radius: 14px;
}

.card-body .small a{
    font-weight: 650;
}

.expo-plan{
    border: 1px dashed rgba(15, 23, 42, 0.18);
    border-radius: 14px;
    padding: 12px;
    background: #ffffff;
}

.expo-plan-image{
    border: 1px dashed rgba(15, 23, 42, 0.18);
    border-radius: 14px;
    padding: 10px;
    background: #ffffff;
}

.expo-plan-image img{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.expo-plan .expo-pavilion{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    margin: 6px;
    min-width: 56px;
    border-radius: 10px;
    border: 1px solid rgba(37, 99, 235, 0.35);
    background: rgba(37, 99, 235, 0.08);
    color: var(--text);
    font-weight: 650;
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.expo-plan .expo-pavilion:hover{
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(2, 6, 23, 0.08);
}

.expo-plan .expo-pavilion.is-selected{
    border-color: rgba(22, 163, 74, 0.6);
    background: rgba(22, 163, 74, 0.12);
}

.stand-details{
    margin-top: 12px;
    display: grid;
    gap: 6px;
    background: var(--surface-2);
    border-radius: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(15, 23, 42, 0.06);
}


.stand-picker{
    display: grid;
    gap: 12px;
}

.stand-picker-controls{
    display: grid;
    gap: 10px;
}

.stand-picker-row{
    display: grid;
    gap: 8px;
}

.stand-add-btn{
    justify-self: flex-start;
    margin-top: 2px;
}

.stand-add-btn{
    margin-left: 4px;
}

.stand-selected-list{
    display: grid;
    gap: 10px;
}

.stand-selected-item{
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: #ffffff;
}

.stand-selected-info{
    display: grid;
    gap: 4px;
}

.stand-name{
    font-weight: 600;
}

.stand-meta{
    font-size: 12px;
    color: var(--hint);
}

.stand-promo{
    grid-column: 1 / -1;
}

#add_stand_btn {
    margin-top: 10px;
}

footer{
    display: none !important;
}