﻿:root {
    --brand: #df001b;
    --brand-dark: #a90016;
    --ink: #20242c;
    --muted: #687080;
    --line: #e5e8ee;
    --soft: #f6f7f9;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: var(--brand);
    text-decoration: none;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
    padding: 12px clamp(18px, 4vw, 56px);
    border-bottom: 1px solid var(--line);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-weight: 700;
}

.brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.main-nav form {
    margin: 0;
}

button,
.primary-button,
.secondary-button,
.button-link {
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    font: inherit;
    font-weight: 700;
}

.primary-button,
.button-link {
    background: var(--brand);
    color: var(--white);
}

.secondary-button {
    background: var(--soft);
    color: var(--ink);
    border: 1px solid var(--line);
}

.hero {
    min-height: 520px;
    display: flex;
    align-items: center;
    padding: clamp(48px, 8vw, 96px) clamp(18px, 6vw, 80px);
    background: linear-gradient(135deg, #ffffff 0%, #f7f7f8 58%, #fff1f3 100%);
}

.hero-content {
    max-width: 760px;
}

.eyebrow {
    color: var(--brand);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.82rem;
}

h1,
h2 {
    line-height: 1.12;
    margin: 0 0 14px;
}

h1 {
    font-size: clamp(2rem, 5vw, 4.6rem);
}

h2 {
    font-size: 1.2rem;
}

.hero p,
.page-heading p {
    color: var(--muted);
    max-width: 760px;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.section-grid,
.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 36px clamp(18px, 6vw, 80px);
}

.section-grid article,
.detail-grid article,
.vacancy-card,
.auth-panel,
.empty-state {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    padding: 22px;
}

.page-heading,
.list {
    padding: 36px clamp(18px, 6vw, 80px);
}

.list {
    display: grid;
    gap: 16px;
    padding-top: 0;
}

.vacancy-card {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.meta span {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.88rem;
    padding: 5px 10px;
}

.wide {
    grid-column: 1 / -1;
}

.auth-panel {
    width: min(440px, calc(100% - 36px));
    margin: 48px auto;
}

form {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    min-height: 42px;
    padding: 10px 12px;
    font: inherit;
    color: var(--ink);
}

.alert {
    color: #9f1024;
    background: #fff0f2;
    border: 1px solid #ffd0d8;
    border-radius: 6px;
    padding: 10px 12px;
}

.notice {
    color: #14532d;
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 10px 12px;
}

dt {
    font-weight: 700;
}

dd {
    margin: 0 0 12px;
    color: var(--muted);
}

@media (max-width: 760px) {
    .site-header,
    .vacancy-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .main-nav {
        justify-content: flex-start;
    }

    .section-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 440px;
    }
}

.row-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.table-section,
.form-section {
    padding: 36px clamp(18px, 6vw, 80px);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

table {
    width: 100%;
    min-width: 840px;
    border-collapse: collapse;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
}

th {
    background: var(--soft);
    color: var(--muted);
    font-size: 0.86rem;
    text-transform: uppercase;
}

tr:last-child td {
    border-bottom: 0;
}

.status {
    display: inline-flex;
    border-radius: 999px;
    background: var(--soft);
    border: 1px solid var(--line);
    padding: 4px 10px;
    font-size: 0.86rem;
}

.wide-form {
    gap: 22px;
}

fieldset {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
}

legend {
    padding: 0 8px;
    font-weight: 700;
}

.single-column {
    grid-template-columns: 1fr;
}

.check-label {
    align-content: center;
    grid-template-columns: auto 1fr;
    color: var(--ink);
}

.check-label input {
    width: auto;
    min-height: auto;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 760px) {
    .row-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    fieldset {
        grid-template-columns: 1fr;
    }
}