:root {
    --blue: #0b86c4;
    --ink: #12263f;
    --bg: #f6f9fc;
    --red: #d32f2f
}

*,
*::before,
*::after {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 13px/1.5 "Segoe UI", system-ui, Arial, sans-serif;
}

.page {
    max-width: 960px;
    margin: 0 auto 60px
}

h1 {
    font-size: 22px;
    margin: 0 0 26px;
    font-weight: 700
}

.card {
    background: #fff;
    padding: 28px 18px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .28)
}

:focus-visible {
    outline: 3px solid #f5a623;
    outline-offset: 2px
}

label,
.lbl {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    margin-bottom: 5px
}

label i,
.lbl i {
    color: var(--red);
    font-style: normal
}

input,
select,
textarea {
    width: 100%;
    font: inherit;
    font-size: 12px;
    padding: 0 10px;
    height: 27px;
    border: 1.5px solid #111;
    border-radius: 2px;
    background: #fff;
    color: var(--ink)
}

select {
    appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23666' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 12px center
}

textarea {
    height: 106px;
    padding: 8px 10px;
    resize: vertical
}

textarea::placeholder {
    color: #888
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 22px
}

.full {
    margin-bottom: 22px
}

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

.tpl {
    margin-bottom: 34px
}

.tpl p {
    margin: 2px 0 0;
    font-size: 13px
}

.tpl a {
    color: var(--blue);
    text-decoration: underline
}

/* file upload */
.file {
    display: flex;
    align-items: center;
    gap: 8px
}

.file input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px
}

.file .pick {
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    padding: 0 10px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    border-radius: 2px
}

.file input:focus-visible+.pick {
    outline: 3px solid #f5a623;
    outline-offset: 2px
}

.file span {
    font-size: 10px;
    color: var(--blue)
}

.submit {
    background: var(--blue);
    color: #fff;
    border: 0;
    font: inherit;
    font-weight: 700;
    font-size: 11px;
    padding: 0 18px;
    height: 26px;
    cursor: pointer;
    border-radius: 2px;
    margin-top: 6px
}

.submit:hover {
    filter: brightness(.9)
}

.err {
    color: var(--red);
    font-size: 11px;
    font-weight: 600;
    margin-top: 10px;
    min-height: 16px
}

.ok {
    color: #1b7f3b
}

/* contact variant */
.contact {
    max-width: 740px;
    margin: 0 auto;
    padding: 16px 14px 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .35)
}

.contact .inner {
    max-width: 726px
}

.contact input,
.contact textarea {
    border-color: #0a7ca8;
    height: 26px
}

.contact textarea {
    height: 105px
}

.contact label {
    margin-bottom: 4px
}

.contact .full {
    margin-bottom: 26px
}

.contact .submit {
    background: #0a7ca8;
    height: 25px;
    margin-top: 2px
}

.qhead {
    display: flex;
    justify-content: space-between;
    align-items: flex-end
}

.count {
    font-size: 10px;
    color: #4a78a8
}

.gap {
    height: 60px
}