.main-block:has(> .main-container > .job-offer-page) {
    align-items: stretch;
    background: #f6f7f8;
    min-height: calc(100vh - 260px);
    padding-left: 0;
    padding-right: 0;
}

.main-container:has(> .job-offer-page) {
    background: #f6f7f8;
    max-width: none;
    overflow: visible;
}

.job-offer-page {
    background: transparent;
    color: #222;
    font-family: var(--font-family, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    min-height: 100vh;
    padding-bottom: 72px;
    width: 100%;
}

.job-offer-page *,
.job-offer-page *::before,
.job-offer-page *::after {
    font-family: inherit;
}

.job-offer-page a,
.job-offer-page button {
    text-decoration: none;
}

.job-offer-shell {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 1120px;
    padding: 34px 18px 0;
    width: 100%;
}

.job-offer-title {
    color: #202124;
    font-size: 34px;
    font-weight: 800;
    line-height: 42px;
    margin: 0 0 12px;
}

.job-offer-back {
    align-items: center;
    background: #fff;
    border: 1px solid #e3e7ec;
    border-radius: 8px;
    color: #177de6;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    gap: 8px;
    height: 38px;
    line-height: 22px;
    margin-bottom: 20px;
    padding: 0 13px;
}

.job-offer-back span {
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    height: 8px;
    transform: rotate(45deg);
    width: 8px;
}

.job-offer-section-title {
    color: #202124;
    font-size: 20px;
    font-weight: 800;
    line-height: 24px;
    margin: 0 0 12px;
}

.job-offer-card,
.job-offer-form-card {
    background: #fff;
    border: 1px solid #e3e7ec;
    border-radius: 12px;
    box-sizing: border-box;
    margin-bottom: 24px;
}

.job-offer-card {
    padding: 24px;
}

.job-offer-card__top {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr) 240px;
}

.job-offer-card__main {
    flex: 1 1 auto;
    min-width: 0;
}

.job-offer-card__title {
    font-size: 26px;
    font-weight: 900;
    line-height: 34px;
    margin: 0 0 14px;
    padding: 0;
}

.job-offer-card__title a {
    color: #202124;
}

.job-offer-card__title a:hover,
.job-offer-buyer__name a:hover {
    color: #177de6;
}

.job-offer-card__description {
    color: #3d4248;
    font-size: 15px;
    line-height: 24px;
    overflow-wrap: anywhere;
}

.job-offer-card__description.is-collapsed {
    max-height: 118px;
    overflow: hidden;
}

.job-offer-card__description p,
.job-offer-card__description div {
    margin-bottom: 8px;
}

.job-offer-description-toggle {
    background: transparent;
    border: 0;
    color: #04a51c;
    cursor: pointer;
    font-size: 13px;
    margin-top: 4px;
    padding: 0;
}

.job-offer-description-toggle[hidden] {
    display: none;
}

.job-offer-card__side {
    background: linear-gradient(180deg, #f8fffa 0%, #f6f8fb 100%);
    border: 1px solid #e3e7ec;
    border-radius: 10px;
    box-sizing: border-box;
    height: fit-content;
    padding: 16px;
    text-align: left;
}

.job-offer-card__side span,
.job-offer-card__side em {
    color: #818992;
    display: block;
    font-size: 12px;
    font-style: normal;
    line-height: 18px;
}

.job-offer-card__side strong {
    color: #1e9c35;
    display: block;
    font-size: 24px;
    font-weight: 900;
    line-height: 31px;
    margin: 2px 0;
}

.job-offer-buyer {
    align-items: center;
    display: flex;
    gap: 12px;
    background: #f8fafb;
    border: 1px solid #edf0f2;
    border-radius: 10px;
    margin-top: 20px;
    padding: 12px;
}

.job-offer-buyer__avatar {
    background: #e6edf5;
    border-radius: 10px;
    display: block;
    flex: 0 0 65px;
    height: 65px;
    overflow: hidden;
    width: 65px;
}

.job-offer-buyer__avatar img,
.job-offer-buyer__avatar span {
    height: 100%;
    width: 100%;
}

.job-offer-buyer__avatar img {
    display: block;
    object-fit: cover;
}

.job-offer-buyer__avatar span {
    align-items: center;
    background: #7bc862;
    color: #fff;
    display: flex;
    font-size: 28px;
    font-weight: 700;
    justify-content: center;
    text-transform: uppercase;
}

.job-offer-buyer__name,
.job-offer-buyer__stats {
    font-size: 13px;
    line-height: 21px;
}

.job-offer-buyer__name {
    color: #333;
}

.job-offer-buyer__name a {
    color: #177de6;
}

.job-offer-buyer__stats {
    color: #6f7780;
}

.job-offer-meta {
    border-top: 1px solid #edf0f2;
    color: #6f7780;
    font-size: 13px;
    line-height: 22px;
    margin-top: 20px;
    padding-top: 16px;
}

.job-offer-meta__row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.job-offer-meta__row + .job-offer-meta__row {
    margin-top: 6px;
}

.job-offer-meta__row--muted {
    justify-content: space-between;
}

.job-offer-review {
    background: #fff2d8;
    border-radius: 999px;
    color: #9b6813;
    display: inline-flex;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    padding: 2px 8px;
}

.job-offer-review--interesting {
    background: #e8f6ee;
    color: #187b3b;
}

.job-offer-review--low-price,
.job-offer-review--unclear-description,
.job-offer-review--rules-violation {
    background: #fff0e7;
    color: #c45527;
}

.job-offer-attachment {
    margin-top: 14px;
}

.job-offer-attachment a {
    align-items: center;
    background: #eef5ff;
    border-radius: 8px;
    color: #177de6;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    min-height: 34px;
    padding: 0 12px;
}

.job-offer-form-card {
    padding: 24px;
}

.job-offer-form-card h2 {
    color: #202124;
    font-size: 20px;
    font-weight: 900;
    line-height: 24px;
    margin: 0 0 8px;
}

.job-offer-form-card__intro > label,
.job-offer-field > label,
.job-offer-duration > label {
    color: #202124;
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
    margin-bottom: 8px;
}

.job-offer-tip {
    background: #f7f9fb;
    border: 1px solid #e3e7ec;
    border-radius: 10px;
    color: #525a64;
    font-size: 13px;
    line-height: 21px;
    margin-bottom: 18px;
    padding: 14px 16px;
}

.job-offer-tip ol {
    margin: 0;
    padding-left: 18px;
}

.job-offer-tip li + li {
    margin-top: 4px;
}

.job-offer-field {
    margin-bottom: 16px;
}

.job-offer-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.job-offer-input,
.job-offer-textarea,
.job-offer-file,
.job-offer-duration select {
    background: #fff;
    border: 1px solid #d9dee6;
    border-radius: 8px;
    box-shadow: none;
    box-sizing: border-box;
    color: #202124;
    font-size: 14px;
    outline: none;
    width: 100%;
}

.job-offer-input,
.job-offer-file,
.job-offer-duration select {
    height: 42px;
    line-height: 42px;
    padding: 0 12px;
}

.job-offer-textarea {
    line-height: 22px;
    min-height: 190px;
    padding: 11px 12px;
    resize: vertical;
}

.job-offer-input:focus,
.job-offer-textarea:focus,
.job-offer-file:focus,
.job-offer-duration select:focus {
    border-color: #04a51c;
}

.job-offer-input-wrap {
    position: relative;
}

.job-offer-input-wrap .job-offer-input {
    padding-right: 62px;
}

.job-offer-input-wrap span {
    color: #9aa2ab;
    font-size: 13px;
    line-height: 42px;
    position: absolute;
    right: 12px;
    top: 0;
}

.job-offer-field__hint {
    color: #818992;
    display: block;
    font-size: 12px;
    line-height: 18px;
    margin-top: 6px;
}

.job-offer-summary {
    background: #f7f9fb;
    border: 1px solid #e3e7ec;
    border-radius: 10px;
    color: #525a64;
    font-size: 13px;
    line-height: 21px;
    margin-top: 4px;
    padding: 12px 14px;
}

.job-offer-summary strong {
    color: #202124;
}

.job-offer-actions {
    align-items: center;
    border-top: 1px solid #edf0f2;
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
}

.job-offer-submit {
    align-items: center;
    background: #04a51c;
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 15px;
    font-weight: 600;
    height: 42px;
    justify-content: center;
    min-width: 150px;
    padding: 0 24px;
}

.job-offer-submit:hover {
    background: #038f19;
    color: #fff;
}

.job-offer-submit[disabled] {
    cursor: default;
    opacity: .65;
}

.job-offer-empty-state {
    color: #525a64;
    font-size: 14px;
    line-height: 22px;
}

.job-offer-empty-state .job-offer-submit {
    margin-top: 14px;
}

.job-offer-proposals {
    display: grid;
    gap: 10px;
}

.job-offer-proposal {
    align-items: center;
    background: #f7f9fb;
    border: 1px solid #e3e7ec;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    padding: 12px 14px;
}

.job-offer-proposal strong {
    color: #202124;
    font-size: 14px;
}

.job-offer-proposal span {
    color: #6f7780;
    font-size: 13px;
}

@media (max-width: 767.98px) {
    .job-offer-page {
        padding-bottom: 32px;
    }

    .job-offer-shell {
        padding: 22px 14px 0;
    }

    .job-offer-title {
        font-size: 28px;
        line-height: 34px;
    }

    .job-offer-card,
    .job-offer-form-card {
        padding: 18px 16px;
    }

    .job-offer-card__top,
    .job-offer-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .job-offer-card__side {
        margin-top: 16px;
    }

    .job-offer-meta__row--muted {
        justify-content: flex-start;
    }

    .job-offer-actions {
        justify-content: stretch;
    }

    .job-offer-submit {
        width: 100%;
    }

    .job-offer-proposal {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}
