* {
    box-sizing: border-box;
}

:root {
    --navy: #0d334f;
    --navy-deep: #0a2b43;
    --yellow: #ffe100;
    --yellow-dark: #e0bf00;
    --blue: #00447a;
    --line: #b8c7d6;
    --text: #002b4f;
}

body {
    margin: 0;
    background: #f6f8fb;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
}

.site-hero {
    height: 84px;
    background:
        linear-gradient(90deg, var(--navy) 0%, rgba(13, 51, 79, 0.96) 28%, rgba(13, 51, 79, 0.78) 50%, var(--navy) 78%),
        linear-gradient(135deg, #244f70 0%, #d8e5eb 48%, #809caf 100%);
    overflow: hidden;
}

.hero-inner {
    position: relative;
    width: min(900px, calc(100% - 32px));
    height: 84px;
    margin: 0 auto;
    display: grid;
    place-items: center;
}

.hero-inner h1 {
    margin: 0;
    color: #ffffff;
    font-size: 28px;
    font-weight: 900;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.24);
}

.page-shell {
    width: min(1040px, calc(100% - 32px));
    min-height: 342px;
    margin: 0 auto;
    padding: 34px 0 42px;
}

.page-shell.compact {
    min-height: calc(100vh - 84px);
    display: grid;
    place-items: center;
}

.brand {
    color: var(--blue);
    font-size: 13px;
    font-weight: 900;
}

.content-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 700px);
    gap: 44px;
    align-items: start;
    justify-content: center;
}

.side-logo {
    position: sticky;
    top: 24px;
    padding-top: 18px;
}

.side-logo img {
    display: block;
    width: 230px;
    height: auto;
}

h1,
h2 {
    margin: 0;
    line-height: 1.15;
}

h2 {
    margin-bottom: 12px;
    color: var(--text);
    font-size: 16px;
    font-weight: 900;
}

p {
    margin: 6px 0 0;
    color: #111827;
}

.lead {
    max-width: 620px;
    font-size: 15px;
    line-height: 1.55;
}

.offer-form {
    display: grid;
    gap: 0;
    padding: 28px 30px 30px;
    border: 1px solid #dbe5ee;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(13, 51, 79, 0.08);
}

.panel,
.alert {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.panel {
    padding: 0 0 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid #e7edf3;
}

.panel:last-of-type {
    margin-bottom: 0;
}

.alert {
    margin-bottom: 14px;
    border: 1px solid #f1b3b3;
    background: #fff1f1;
    color: #9f1239;
    font-weight: 800;
    padding: 9px 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 22px;
}

.field.full {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 6px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 900;
}

.required-marker {
    color: #b91c1c;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: #ffffff;
    color: #102030;
    font: inherit;
    font-size: 15px;
}

input {
    height: 44px;
    padding: 0 13px;
}

input[type="file"] {
    height: auto;
    min-height: 46px;
    padding: 8px;
    border: 1px solid var(--line);
    background: #ffffff;
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    margin-right: 12px;
    border: 1px solid var(--yellow-dark);
    border-radius: 3px;
    background: var(--yellow);
    color: #001f3a;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    padding: 8px 12px;
    cursor: pointer;
}

input[type="file"]::file-selector-button:hover {
    background: #f1d600;
}

.file-list {
    display: grid;
    gap: 7px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.file-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 9px;
    border: 1px solid #e4ebf2;
    border-radius: 4px;
    background: #f8fafc;
    color: #102030;
    font-size: 13px;
    line-height: 1.35;
    word-break: break-word;
}

.remove-file {
    flex: 0 0 auto;
    min-height: 24px;
    width: 24px;
    padding: 0;
    border-color: #d7dde4;
    background: #ffffff;
    color: #9f1239;
    font-size: 16px;
    line-height: 1;
}

.remove-file:hover {
    border-color: #9f1239;
    background: #fff1f2;
}

textarea {
    resize: vertical;
    min-height: 108px;
    padding: 12px;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(0, 68, 122, 0.12);
}

.hint,
.notice {
    color: #405469;
    font-size: 13px;
    line-height: 1.45;
}

.hint {
    margin-top: 7px;
}

.notice {
    margin-top: 12px;
    padding: 11px 13px;
    border: 1px solid #e8dd75;
    border-radius: 4px;
    background: #fffbe6;
    font-style: italic;
}

.choice-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
}

.choice {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    cursor: pointer;
}

.choice input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #30b63f;
}

.choice span {
    color: var(--blue);
    font-size: 15px;
    font-weight: 700;
}

.autocomplete {
    position: relative;
}

.results {
    position: absolute;
    z-index: 10;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(0, 43, 79, 0.2);
}

.results button,
.empty-result {
    display: block;
    width: 100%;
    min-height: 34px;
    padding: 8px 10px;
    border: 0;
    border-bottom: 1px solid #edf2f5;
    background: #ffffff;
    color: #102030;
    text-align: left;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.results button:hover {
    background: #eef6ff;
}

.empty-result {
    color: #6b7785;
    cursor: default;
}

.actions {
    display: flex;
    justify-content: flex-start;
    padding-top: 4px;
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 20px;
    border: 1px solid var(--yellow-dark);
    border-radius: 3px;
    background: var(--yellow);
    color: #001f3a;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

button:hover,
.button:hover {
    background: #f1d600;
}

.site-footer {
    background: var(--navy);
    color: #ffffff;
    min-height: 82px;
}

@media (max-width: 760px) {
    .site-hero,
    .hero-inner {
        height: 76px;
    }

    .hero-inner h1 {
        font-size: 22px;
    }

    .page-shell {
        width: min(100% - 28px, 680px);
    }

    .content-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .side-logo {
        position: static;
        padding-top: 0;
    }

    .side-logo img {
        width: 180px;
        margin: 0 auto;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .offer-form {
        padding: 22px 18px 24px;
    }

    .panel {
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .site-footer {
        min-height: 72px;
    }
}
