:root {
    --red: #C8401A;
    --navy: #1A3A5C;
    --bg: #F5F3EE;
    --white: #fff;
    --border: #E2E0DA;
    --grey: #777;
    --surface: #EDEAE3;
    --green: #2A7A4F
}

body {
    background: var(--bg);
    font-family: Arial, sans-serif;
    color: #1A1A1A;
    font-size: 14px;
    min-height: 100vh
}

.wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem
}

.hdr {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border)
}

.dot {
    width: 10px;
    height: 10px;
    background: var(--red);
    border-radius: 50%
}

.bt {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: .05em
}

.bs {
    font-size: 10px;
    color: var(--grey)
}

.api-bar {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--red);
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap
}

.api-bar-label {
    flex: 1;
    min-width: 160px
}

.api-bar-label strong {
    display: block;
    font-size: 13px;
    margin-bottom: 2px
}

.api-bar-label span {
    font-size: 11px;
    color: var(--grey)
}

.api-bar-label a {
    color: var(--navy)
}

.api-input {
    flex: 2;
    min-width: 220px;
    font-family: monospace;
    font-size: 12px;
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 8px 10px
}

.key-st {
    font-size: 12px;
    font-weight: bold;
    min-width: 70px
}

.steps {
    display: flex;
    margin-bottom: 1.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden
}

.step {
    flex: 1;
    padding: 9px 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--grey);
    border-right: 1px solid var(--border);
    cursor: pointer
}

.step:last-child {
    border-right: none
}

.step.active {
    background: var(--red);
    color: #fff
}

.step.done {
    background: var(--surface);
    color: #1A1A1A
}

.sn {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    flex-shrink: 0
}

.step.done .sn {
    background: var(--green);
    border-color: var(--green);
    color: #fff
}

.panel {
    display: none
}

.panel.active {
    display: block
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.75rem;
    margin-bottom: 1rem
}

.ch {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: .3rem
}

.cs {
    font-size: 13px;
    color: var(--grey);
    margin-bottom: 1.5rem
}

label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    margin-top: 1.1rem;
    margin-bottom: .35rem
}

label:first-child {
    margin-top: 0
}

select,
textarea,
input[type=text] {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 13px;
    font-family: Arial, sans-serif;
    background: var(--white);
    color: #1A1A1A
}

textarea {
    resize: vertical;
    line-height: 1.5
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: Arial, sans-serif
}

.btn-p {
    background: var(--red);
    color: #fff;
    border-color: var(--red)
}

.btn-p:hover {
    opacity: .88
}

.btn-p:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed
}

.btn-s {
    background: var(--white);
    color: #1A1A1A;
    border-color: var(--border)
}

.btn-s:hover {
    background: var(--surface)
}

.brow {
    display: flex;
    gap: 10px;
    margin-top: 1.75rem;
    flex-wrap: wrap;
    align-items: center
}

.city-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-top: .75rem;
    display: none
}

.crow {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap
}

.csl {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--grey);
    margin-bottom: 3px
}

.csv {
    font-size: 14px;
    font-weight: bold
}

.vgb {
    display: inline-block;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 3px;
    background: var(--navy);
    color: #fff;
    margin-left: 5px
}

.info {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 6px;
    padding: .875rem 1rem;
    font-size: 12px;
    color: #1E40AF;
    margin-bottom: 1.25rem
}

.warn {
    background: #FEF9C3;
    border: 1px solid #FDE047;
    border-radius: 6px;
    padding: .875rem 1rem;
    font-size: 12px;
    color: #854d0e;
    margin-bottom: .75rem;
    display: none
}

.meta {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: .75rem 1rem;
    margin-top: .75rem;
    font-size: 12px;
    color: var(--grey);
    display: none
}

.dz {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    margin-bottom: 1rem
}

.dz:hover {
    border-color: var(--red);
    background: #FDF4F1
}

.dz.loaded {
    border-style: solid;
    border-color: var(--green);
    background: #F0FFF4
}

.dz-icon {
    font-size: 32px;
    margin-bottom: .5rem
}

.dz-t {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: .25rem
}

.dz-s {
    font-size: 11px;
    color: var(--grey)
}

.det-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 7px;
    margin-bottom: 10px
}

.det-item {
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 8px 11px;
    display: flex;
    gap: 8px;
    cursor: pointer;
    background: var(--white);
    align-items: center
}

.det-item:hover {
    border-color: #ccc;
    background: var(--surface)
}

.det-item.sel {
    border-color: var(--red);
    background: #FDF4F1
}

.dcb {
    width: 16px;
    height: 16px;
    border: 1.5px solid #ccc;
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #fff
}

.det-item.sel .dcb {
    background: var(--red);
    border-color: var(--red)
}

.dn {
    font-size: 13px;
    font-weight: bold;
    flex: 1
}

.c-h {
    background: #D1FAE5;
    color: #065F46;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: bold
}

.c-m {
    background: #FEF3C7;
    color: #92400E;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: bold
}

.c-l {
    background: #F3F4F6;
    color: #6B7280;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: bold
}

.leg {
    background: var(--surface);
    border-left: 3px solid var(--border);
    padding: 9px 13px;
    font-size: 11px;
    color: var(--grey);
    margin: 10px 0 16px;
    border-radius: 0 6px 6px 0
}

.leg strong {
    color: #1A1A1A
}

.st {
    font-size: 12px;
    color: var(--grey);
    margin-top: .875rem;
    display: none
}

.sh {
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--grey);
    border-bottom: 1px solid var(--border);
    padding-bottom: 5px;
    margin: 1.5rem 0 .875rem
}

.resp {
    background: var(--surface);
    border-left: 3px solid var(--red);
    padding: 1.25rem 1.5rem;
    font-size: 13px;
    line-height: 1.7;
    white-space: pre-wrap;
    margin-top: .875rem;
    border-radius: 0 8px 8px 0
}

.pb {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 3px solid var(--navy);
    padding: 11px 15px;
    margin-bottom: 9px;
    font-size: 13px;
    line-height: 1.55;
    border-radius: 0 8px 8px 0
}

.rh {
    background: var(--navy);
    color: #fff;
    border-radius: 10px 10px 0 0;
    padding: 1.75rem
}

.rh h1 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 4px
}

.rb {
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 1.75rem;
    background: var(--white)
}

.sg {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem
}

.sb {
    background: var(--surface);
    border-radius: 8px;
    padding: 1rem;
    text-align: center
}

.sn2 {
    font-size: 28px;
    font-weight: bold;
    color: var(--red)
}

.sl {
    font-size: 11px;
    color: var(--grey);
    margin-top: 3px
}

.tag {
    display: inline-block;
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--grey);
    margin: 2px 3px 2px 0
}

.db {
    border-left: 4px solid var(--red);
    padding: 10px 14px;
    background: var(--surface);
    font-size: 13px;
    font-style: italic;
    line-height: 1.6;
    margin: 5px 0 16px;
    border-radius: 0 7px 7px 0
}

.cp-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--navy);
    border-radius: 0 10px 10px 0;
    padding: 1.25rem 1.5rem;
    margin: 1rem 0 1.5rem
}

.cp-title {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--navy);
    margin-bottom: .875rem
}

.cp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: .875rem;
    margin-bottom: .875rem
}

.cp-stat .cp-l {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--grey);
    margin-bottom: 2px
}

.cp-stat .cp-v {
    font-size: 13px;
    font-weight: bold
}

.cp-text {
    font-size: 12px;
    color: var(--grey);
    line-height: 1.55;
    border-top: 1px solid var(--border);
    padding-top: .75rem
}

.cp-text strong {
    color: #1A1A1A
}

.cp-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 7px;
    border-radius: 3px;
    margin-left: 4px;
    vertical-align: middle
}

.cp-eu {
    background: #003399;
    color: #FFCC00
}

.cp-conf-h {
    background: #D1FAE5;
    color: #065F46
}

.cp-conf-m {
    background: #FEF3C7;
    color: #92400E
}

.cp-conf-l {
    background: #F3F4F6;
    color: #6B7280
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.spin {
    display: inline-block;
    width: 13px;
    height: 13px;
    border: 2px solid #ddd;
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin .7s linear infinite;
    vertical-align: middle
}

.page-footer {
    text-align: center;
    font-size: 11px;
    color: var(--grey);
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border)
}