:root {
    --primary-blue: #336699;
    --secondary-teal: #33cccc;
    --accent-orange: #ff9933;
    --bg-light: #f4f7f9;
    --text-dark: #2c3e50;
    --text-muted: #6d7f92;
    --border-light: #e1e8ed;
    --danger: #c0392b;
    --success: #13895f;
    --white: #ffffff;
    --blue-050: #f2f7fb;
    --teal-050: #effafa;
    --danger-050: #fff7f6;

    --font-family: "Century Gothic", "Trebuchet MS", Arial, sans-serif;
    --type-page: clamp(2rem, 3vw, 2.75rem);
    --type-section: 1.25rem;
    --type-card: 1.05rem;
    --type-body: 0.92rem;
    --type-label: 0.74rem;
    --type-helper: 0.76rem;
    --type-status: 0.7rem;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 28px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;

    --header-height: 96px;
    --page-gutter: clamp(28px, 3.5vw, 58px);
    --page-width: 1548px;
    --qualification-sidebar: 292px;
    --status-sidebar: 286px;
    --input-height: 44px;
    --button-height: 48px;
    --tab-height: 58px;
    --upload-width: 35%;

    --radius-sm: 5px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --shadow-soft: 0 5px 18px rgba(51, 102, 153, 0.08);
    --shadow-float: 0 14px 34px rgba(44, 62, 80, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-family);
    font-size: var(--type-body);
    line-height: 1.45;
}

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid var(--accent-orange);
    outline-offset: 3px;
}

.prototype-notice {
    position: fixed;
    z-index: 1000;
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-muted);
    font-size: 10px;
    pointer-events: none;
}

.site-header {
    height: var(--header-height);
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) 190px;
    align-items: center;
    gap: var(--space-6);
    padding: 12px var(--page-gutter);
    border-bottom: 3px solid var(--secondary-teal);
    background: var(--white);
}

.site-header__logo {
    display: block;
    width: 176px;
    height: auto;
}

.site-header__tagline {
    color: var(--primary-blue);
    font-size: clamp(1rem, 1.45vw, 1.35rem);
    font-weight: 700;
    text-align: center;
}

.site-header__help {
    justify-self: end;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--primary-blue);
    font-weight: 700;
    text-decoration: none;
}

.site-header__help-mark {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.page-shell {
    width: min(calc(100% - (var(--page-gutter) * 2)), var(--page-width));
    margin: 0 auto;
}

.page-title {
    margin: 0;
    color: var(--primary-blue);
    font-size: var(--type-page);
    line-height: 1.12;
    letter-spacing: 0;
}

.section-title {
    margin: 0;
    color: var(--primary-blue);
    font-size: var(--type-section);
    line-height: 1.25;
}

.card-title {
    margin: 0;
    color: var(--primary-blue);
    font-size: var(--type-card);
}

.muted {
    color: var(--text-muted);
}

.surface {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.button {
    min-height: var(--button-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: 10px 22px;
    border: 1px solid var(--primary-blue);
    border-radius: 7px;
    background: var(--white);
    color: var(--primary-blue);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.button--primary {
    background: var(--primary-blue);
    color: var(--white);
}

.button--teal {
    border-color: var(--secondary-teal);
    background: var(--secondary-teal);
    color: var(--text-dark);
}

.button--disabled {
    border-color: var(--border-light);
    background: #f7f9fb;
    color: var(--text-muted);
    cursor: not-allowed;
}

.field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.field label {
    color: #526b80;
    font-size: var(--type-label);
    font-weight: 700;
}

.field input,
.field select,
.field textarea,
.mock-input {
    width: 100%;
    min-height: var(--input-height);
    border: 1px solid #c9d7e2;
    border-radius: 6px;
    background: var(--white);
    padding: 10px 12px;
}

.field textarea {
    min-height: 88px;
    resize: none;
}

.field small,
.helper {
    color: var(--text-muted);
    font-size: var(--type-helper);
}

.required {
    color: var(--danger);
}

.status {
    color: var(--text-muted);
    font-size: var(--type-status);
    font-weight: 700;
}

.status--success {
    color: var(--success);
}

.status--danger {
    color: var(--danger);
}

@media (max-width: 800px) {
    :root {
        --header-height: 76px;
        --page-gutter: 14px;
    }

    .site-header {
        grid-template-columns: 112px minmax(0, 1fr) 44px;
        gap: 8px;
        padding: 8px 14px;
    }

    .site-header__logo {
        width: 108px;
    }

    .site-header__tagline {
        font-size: 10px;
        line-height: 1.25;
    }

    .site-header__help {
        font-size: 0;
    }

    .site-header__help-mark {
        font-size: 15px;
    }

    .button {
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
